hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
1daee0c91aad8b50c4b72bda2d5d6e4ec98d2423
4,399
py
Python
subprojects/python3_gen_engine/src/x.py
xhd2015/rsp3-armv8-baremetal
f7e2ac04abd3be20daa94ad9c7ad2c1bad5159b0
[ "MIT" ]
21
2018-03-14T09:45:26.000Z
2021-09-13T01:13:27.000Z
subprojects/python3_gen_engine/src/x.py
xhd2015/rsp3-armv8-baremetal
f7e2ac04abd3be20daa94ad9c7ad2c1bad5159b0
[ "MIT" ]
null
null
null
subprojects/python3_gen_engine/src/x.py
xhd2015/rsp3-armv8-baremetal
f7e2ac04abd3be20daa94ad9c7ad2c1bad5159b0
[ "MIT" ]
4
2018-03-18T11:56:09.000Z
2021-02-04T16:26:52.000Z
# -*-encoding:utf8-*- from support import * hasMultiFields = (len(fields)>1) ori_fields=fields fields=processedFields(ori_fields) qualScaleType = scale_type qualTemplateSpecArgs="" qualTemplateAssert="" if templateSpecArgs is not None: qualTemplateSpecArgs="<"+templateSpecArgs+">" if templateArgs is not None: ...
29.722973
89
0.53353
67fe1b83e0a2557e1de69ca90c361bebf5bac028
407
py
Python
app/infrastructure/abstract_repository.py
pvsfair/architecture-patterns-python
3959cbeae8cb9083d4a7a798bd389cf6d8cd6502
[ "MIT" ]
null
null
null
app/infrastructure/abstract_repository.py
pvsfair/architecture-patterns-python
3959cbeae8cb9083d4a7a798bd389cf6d8cd6502
[ "MIT" ]
null
null
null
app/infrastructure/abstract_repository.py
pvsfair/architecture-patterns-python
3959cbeae8cb9083d4a7a798bd389cf6d8cd6502
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import List from app.domain.models.Batch import Batch class AbstractRepository(ABC): @abstractmethod def add(self, batch: Batch): raise NotImplementedError @abstractmethod def get(self, reference) -> Batch: raise NotImplementedError ...
21.421053
41
0.710074
0981df23baad1e3539b52fe250ded26d372793bc
31
py
Python
dttpy/__init__.py
neouniverse/dttpy
c5ff8870d796d84b39c4e6f82ec4eefe523cc3e7
[ "MIT" ]
null
null
null
dttpy/__init__.py
neouniverse/dttpy
c5ff8870d796d84b39c4e6f82ec4eefe523cc3e7
[ "MIT" ]
null
null
null
dttpy/__init__.py
neouniverse/dttpy
c5ff8870d796d84b39c4e6f82ec4eefe523cc3e7
[ "MIT" ]
null
null
null
# from .dttdata import DttData
10.333333
28
0.774194
934165304eb5ff95c3669863b15209c8b18ca3f6
2,702
py
Python
webserver/python2.7/site-packages/joblib/testing.py
maxr1876/Radix
bf9a5470908ea0823c8398565086b1e6b960c73b
[ "BSD-2-Clause" ]
4
2018-07-04T17:20:12.000Z
2019-07-14T18:07:25.000Z
webserver/python2.7/site-packages/joblib/testing.py
maxr1876/Radix
bf9a5470908ea0823c8398565086b1e6b960c73b
[ "BSD-2-Clause" ]
null
null
null
webserver/python2.7/site-packages/joblib/testing.py
maxr1876/Radix
bf9a5470908ea0823c8398565086b1e6b960c73b
[ "BSD-2-Clause" ]
1
2018-09-03T03:02:06.000Z
2018-09-03T03:02:06.000Z
""" Helper for testing. """ import sys import warnings import os.path import re import subprocess import threading from joblib._compat import PY3_OR_LATER def warnings_to_stdout(): """ Redirect all warnings to stdout. """ showwarning_orig = warnings.showwarning def showwarning(msg, cat, fname, lno,...
31.418605
78
0.583642
82a7436a9572d857d1ef96ba2dc15f66dace36cc
1,049
py
Python
portal/permissions.py
rajexp/quizzer
b88a7f2fd68d2e664688a006e40ae1c42c713254
[ "Apache-2.0" ]
1
2017-10-24T16:13:37.000Z
2017-10-24T16:13:37.000Z
portal/permissions.py
rajexp/quizzer
b88a7f2fd68d2e664688a006e40ae1c42c713254
[ "Apache-2.0" ]
null
null
null
portal/permissions.py
rajexp/quizzer
b88a7f2fd68d2e664688a006e40ae1c42c713254
[ "Apache-2.0" ]
null
null
null
from rest_framework import permissions from django.contrib.auth.models import User class IsStaffOrTargetUser(permissions.BasePermission): def has_permission(self, request, view): # allow user to list all users if logged in user is staff return view.action == 'retrieve' or request.user.is_authent...
49.952381
98
0.734032
7dfd4403e2d091fc2fec6b8d8e0fb20d46807565
645
py
Python
jobs/migrations/0014_auto_20161104_1732.py
kevinvargasp/my_proyecto
2f1534cbcaf6fa50b52924dd494705d21cbdf0f6
[ "Apache-2.0" ]
null
null
null
jobs/migrations/0014_auto_20161104_1732.py
kevinvargasp/my_proyecto
2f1534cbcaf6fa50b52924dd494705d21cbdf0f6
[ "Apache-2.0" ]
null
null
null
jobs/migrations/0014_auto_20161104_1732.py
kevinvargasp/my_proyecto
2f1534cbcaf6fa50b52924dd494705d21cbdf0f6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-11-04 21:32 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('jobs', '0013_remove_profilejob_state'), ] operations = [ migrations.AlterFi...
24.807692
76
0.6
cbf946b518f6db39f2b8ee5142fecc6baa19550c
308
py
Python
modularwebapplication/conftest.py
ScastrillonE/modularwebapp
2635bfbb6984d5966651010d547f4537ac6f6860
[ "MIT" ]
null
null
null
modularwebapplication/conftest.py
ScastrillonE/modularwebapp
2635bfbb6984d5966651010d547f4537ac6f6860
[ "MIT" ]
23
2021-12-23T06:24:05.000Z
2022-03-31T06:27:16.000Z
modularwebapplication/conftest.py
ScastrillonE/modularwebapp
2635bfbb6984d5966651010d547f4537ac6f6860
[ "MIT" ]
null
null
null
import pytest from modularwebapplication.users.models import User from modularwebapplication.users.tests.factories import UserFactory @pytest.fixture(autouse=True) def media_storage(settings, tmpdir): settings.MEDIA_ROOT = tmpdir.strpath @pytest.fixture def user() -> User: return UserFactory()
20.533333
67
0.795455
407ce5a7283ab7ee11bf52913607d54fadfe94b2
1,866
py
Python
src/main/resources/meetup/Client.py
zvercodebender/xlr-meetup-plugin
5043c8bb1248bed237d71e5183199c9160e8684c
[ "MIT" ]
null
null
null
src/main/resources/meetup/Client.py
zvercodebender/xlr-meetup-plugin
5043c8bb1248bed237d71e5183199c9160e8684c
[ "MIT" ]
null
null
null
src/main/resources/meetup/Client.py
zvercodebender/xlr-meetup-plugin
5043c8bb1248bed237d71e5183199c9160e8684c
[ "MIT" ]
null
null
null
# # Copyright 2020 XEBIALABS # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, s...
58.3125
462
0.729368
59c6040a171753c18ca87faf0daeeaf6f609da66
4,968
py
Python
vaetc/evaluation/metrics/do2020/entropy.py
ganmodokix/vaetc
866b79677b4f06603203376d967989dedadbffae
[ "MIT" ]
null
null
null
vaetc/evaluation/metrics/do2020/entropy.py
ganmodokix/vaetc
866b79677b4f06603203376d967989dedadbffae
[ "MIT" ]
null
null
null
vaetc/evaluation/metrics/do2020/entropy.py
ganmodokix/vaetc
866b79677b4f06603203376d967989dedadbffae
[ "MIT" ]
null
null
null
import numpy as np from scipy.special import logsumexp, erf, xlogy def sample_gaussian(mean: np.ndarray, logvar: np.ndarray) -> np.ndarray: noise = np.random.standard_normal(size=mean.shape) z = mean + np.exp(logvar * 0.5) * noise return z def log_gaussian_density( mean1: np.ndarray, logvar1: np.ndarr...
27
94
0.586151
c31f6f46801978a181e55c5be6caab6c84375dfb
1,743
py
Python
utils/config_helpers.py
cgiliberto/RESDOG
5e2603251d8673a9360211b57a51177af63def17
[ "MIT" ]
1
2020-04-03T09:14:48.000Z
2020-04-03T09:14:48.000Z
utils/config_helpers.py
cgiliberto/RESDOG
5e2603251d8673a9360211b57a51177af63def17
[ "MIT" ]
15
2020-01-28T21:50:59.000Z
2022-03-11T23:19:14.000Z
utils/config_helpers.py
cgiliberto/RESDOG
5e2603251d8673a9360211b57a51177af63def17
[ "MIT" ]
null
null
null
from easydict import EasyDict def merge_configs(config_list): if config_list == None or len(config_list) == 0: return None base_config = config_list[0] if type(base_config) is dict: base_config = EasyDict(base_config) if type(base_config) is not EasyDict: print("The...
31.690909
114
0.561675
469c4b26e1fc82c3c75d828fe5614375f0049508
437
py
Python
dashboard/internet_nl_dashboard/signals.py
bslavin/Internet.nl-dashboard
5fd6d8fe8edb5f181727ddd1729697d9fc586c29
[ "Apache-2.0" ]
null
null
null
dashboard/internet_nl_dashboard/signals.py
bslavin/Internet.nl-dashboard
5fd6d8fe8edb5f181727ddd1729697d9fc586c29
[ "Apache-2.0" ]
null
null
null
dashboard/internet_nl_dashboard/signals.py
bslavin/Internet.nl-dashboard
5fd6d8fe8edb5f181727ddd1729697d9fc586c29
[ "Apache-2.0" ]
null
null
null
from actstream import action from django.contrib.auth.signals import user_logged_in, user_logged_out from django.dispatch import receiver @receiver(user_logged_in) def stream_login(sender, **kwargs): # sender = user action.send(kwargs['user'], verb='logged in', public=False) @receiver(user_logged_out) def s...
27.3125
71
0.748284
94bec13e2b71c5749a077a0e42182b44b083ecb8
347
py
Python
tests/test_350_statics.py
manatlan/guy
c6fe47997dfdc314896eabb35f4bd35a0b9c50af
[ "Apache-2.0" ]
194
2019-08-15T16:53:40.000Z
2022-03-22T02:57:23.000Z
tests/test_350_statics.py
manatlan/guy
c6fe47997dfdc314896eabb35f4bd35a0b9c50af
[ "Apache-2.0" ]
23
2019-11-24T12:31:41.000Z
2021-04-05T16:37:42.000Z
tests/test_350_statics.py
manatlan/guy
c6fe47997dfdc314896eabb35f4bd35a0b9c50af
[ "Apache-2.0" ]
24
2019-11-14T23:01:40.000Z
2021-07-20T04:52:18.000Z
# import sys; sys.path.insert(0,"..") from guy import Guy def test_useStatic(runner): class UseStatic(Guy): classvar=45 def __init__(self,v): self.instancevar=v Guy.__init__(self) def verif(self,a,b): self.exit(a+b) t=UseStatic(42) total=runne...
19.277778
37
0.567723
aed2a7ed7694d10777650e61c675273549587b26
3,338
py
Python
guild/model_proxy.py
guildai/guild-cli
d3db493fb7a4952a334684e36578dd4b18afa124
[ "Apache-2.0" ]
63
2016-11-01T13:06:46.000Z
2018-08-21T08:38:36.000Z
guild/model_proxy.py
guildai/guild-cli
d3db493fb7a4952a334684e36578dd4b18afa124
[ "Apache-2.0" ]
28
2016-11-02T01:41:23.000Z
2018-10-19T22:57:06.000Z
guild/model_proxy.py
guildai/guild-cli
d3db493fb7a4952a334684e36578dd4b18afa124
[ "Apache-2.0" ]
8
2017-01-15T14:58:43.000Z
2018-07-27T11:51:39.000Z
# Copyright 2017-2022 RStudio, PBC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
28.775862
84
0.616836
c69f0dff07d65e46ce74eba250c01697d1296e51
546
py
Python
analysis/migrations/0027_auto_20210331_1002.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
5
2021-01-14T03:34:42.000Z
2022-03-07T15:34:18.000Z
analysis/migrations/0027_auto_20210331_1002.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
551
2020-10-19T00:02:38.000Z
2022-03-30T02:18:22.000Z
analysis/migrations/0027_auto_20210331_1002.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
null
null
null
# Generated by Django 3.1.3 on 2021-03-30 23:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('analysis', '0026_auto_20210322_1506'), ] operations = [ migrations.AlterField( model_name='nodeallelefrequencyrange', ...
22.75
50
0.582418
d140dbcfa025406b1bfa7a502de8cdf16ecbb2f8
2,682
py
Python
ping_client.py
sdwannfv/pyopenvpn
b7e4a9494abaf11bc4404b9c225683e7f55c7600
[ "MIT" ]
null
null
null
ping_client.py
sdwannfv/pyopenvpn
b7e4a9494abaf11bc4404b9c225683e7f55c7600
[ "MIT" ]
null
null
null
ping_client.py
sdwannfv/pyopenvpn
b7e4a9494abaf11bc4404b9c225683e7f55c7600
[ "MIT" ]
null
null
null
#!/bin/python3 import logging from argparse import ArgumentParser from datetime import datetime, timedelta from scapy.all import * from pyopenvpn import Client, Settings class PingClient: def __init__(self, args): self.host = args.host self.interval = timedelta(seconds=args.interval) self...
33.525
87
0.564504
1387adc628a1ce90c0bb7420923ce99196e0aa69
719
py
Python
meetings/utils/html_template.py
githubliuyang777/app-meeting-server
0775691545a33d4ad65c6a8329d34a63dc09ac8b
[ "Apache-2.0" ]
1
2021-01-26T08:44:17.000Z
2021-01-26T08:44:17.000Z
meetings/utils/html_template.py
githubliuyang777/app-meeting-server
0775691545a33d4ad65c6a8329d34a63dc09ac8b
[ "Apache-2.0" ]
6
2020-08-07T15:09:02.000Z
2022-03-14T07:51:05.000Z
meetings/utils/html_template.py
githubliuyang777/app-meeting-server
0775691545a33d4ad65c6a8329d34a63dc09ac8b
[ "Apache-2.0" ]
10
2020-08-05T10:04:13.000Z
2022-03-01T12:06:31.000Z
def cover_content(topic, group_name, date, start_time, end_time): content = """ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>cover</title> </head> <body> <div style="display: inline-block; height: 688px; width: 1024px; text-align: center; backgrou...
37.842105
129
0.568846
dcff8cd6e61d5d31698df84f0c38a0c524c876ea
135
py
Python
avatar/apps.py
johanneswilm/django-avatar
348fade5a802eb7163c8f9684c824df7954d1286
[ "BSD-3-Clause" ]
null
null
null
avatar/apps.py
johanneswilm/django-avatar
348fade5a802eb7163c8f9684c824df7954d1286
[ "BSD-3-Clause" ]
null
null
null
avatar/apps.py
johanneswilm/django-avatar
348fade5a802eb7163c8f9684c824df7954d1286
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig class Config(AppConfig): name = 'avatar' default_auto_field = 'django.db.models.AutoField'
19.285714
53
0.740741
0f2974919dab42319abecb7aadc0491acc313ca3
11,455
py
Python
perfkitbenchmarker/linux_packages/mutilate.py
doitintl/PerfKitBenchmarker
9aa10195ab945025790f5280cdc2fcfa8073f6c5
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/linux_packages/mutilate.py
doitintl/PerfKitBenchmarker
9aa10195ab945025790f5280cdc2fcfa8073f6c5
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/linux_packages/mutilate.py
doitintl/PerfKitBenchmarker
9aa10195ab945025790f5280cdc2fcfa8073f6c5
[ "Apache-2.0" ]
1
2021-07-12T16:09:26.000Z
2021-07-12T16:09:26.000Z
# Copyright 2020 PerfKitBenchmarker Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
35.685358
80
0.669926
56ce9f3df1d8834c2204c5641afdf9f569f6eed7
75,307
py
Python
sdk/python/pulumi_aws/cloudtrail/trail.py
dmelo/pulumi-aws
dd1a08d1fb93bab0d046aa410ca660f05ca0a58c
[ "ECL-2.0", "Apache-2.0" ]
1
2021-11-10T16:33:40.000Z
2021-11-10T16:33:40.000Z
sdk/python/pulumi_aws/cloudtrail/trail.py
dmelo/pulumi-aws
dd1a08d1fb93bab0d046aa410ca660f05ca0a58c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/cloudtrail/trail.py
dmelo/pulumi-aws
dd1a08d1fb93bab0d046aa410ca660f05ca0a58c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
50.406292
389
0.640352
32de03afe487ee3e2cf4c1c215ac2c60162ea94f
5,730
py
Python
src/Utils/Scheduling/_private/_macos/__init__.py
schmouk/ArcheryVideoTraining
8c7f5fadc485e0b3a0851d0227a26bd799d3eb69
[ "MIT" ]
null
null
null
src/Utils/Scheduling/_private/_macos/__init__.py
schmouk/ArcheryVideoTraining
8c7f5fadc485e0b3a0851d0227a26bd799d3eb69
[ "MIT" ]
65
2021-01-25T22:27:55.000Z
2021-03-05T10:19:49.000Z
src/Utils/Scheduling/_private/_macos/__init__.py
schmouk/ArcheryVideoTraining
8c7f5fadc485e0b3a0851d0227a26bd799d3eb69
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright (c) 2021 Philippe Schmouker Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
43.082707
78
0.572775
6264313d2daf895f3a80ff81dbd98b1cbc2cdceb
2,089
py
Python
ucsmsdk/mometa/fabric/FabricFcEstcCloud.py
Kego/ucsmsdk
244f283a5c295cf746110bb96686d079b19927ce
[ "Apache-2.0" ]
78
2015-11-30T14:10:05.000Z
2022-02-13T00:29:08.000Z
ucsmsdk/mometa/fabric/FabricFcEstcCloud.py
Kego/ucsmsdk
244f283a5c295cf746110bb96686d079b19927ce
[ "Apache-2.0" ]
113
2015-11-20T09:42:46.000Z
2022-03-16T16:53:29.000Z
ucsmsdk/mometa/fabric/FabricFcEstcCloud.py
Kego/ucsmsdk
244f283a5c295cf746110bb96686d079b19927ce
[ "Apache-2.0" ]
86
2015-12-12T08:22:18.000Z
2022-01-23T03:56:34.000Z
"""This module contains the general information for FabricFcEstcCloud ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class FabricFcEstcCloudConsts: pass class FabricFcEstcCloud(ManagedObject): """This is FabricFcEstc...
48.581395
288
0.662518
02d83e2d36820392d281aceff22b38221cf85cd7
2,660
py
Python
metaedia.py
TheRealVira/metaedia
0fa435b31230356199fc9b9e4536657cbcf5bf79
[ "MIT" ]
2
2021-08-19T14:09:25.000Z
2021-09-10T01:47:33.000Z
metaedia.py
TheRealVira/metaedia
0fa435b31230356199fc9b9e4536657cbcf5bf79
[ "MIT" ]
null
null
null
metaedia.py
TheRealVira/metaedia
0fa435b31230356199fc9b9e4536657cbcf5bf79
[ "MIT" ]
1
2021-08-19T13:55:23.000Z
2021-08-19T13:55:23.000Z
import requests, time, colorama, argparse, re colorama.init() GREEN = colorama.Fore.GREEN RED = colorama.Fore.RED RESET = colorama.Fore.RESET discovered_urls = set() wiki_source = "" wiki_prefix = "" start_time = time.time() url_journey = [] HTML_TAG_REGEX = re.compile(r"<a[^<>] ?href=([\'\"])(.*?)\1", re.IGNORECASE...
28
92
0.592481
011949330e2cac346820ac2c65c84a441f0c4e03
203
py
Python
python/maya/site-packages/pymel-1.0.5/pymel/core/runtime.py
CountZer0/PipelineConstructionSet
0aa73a8a63c72989b2d1c677efd78dad4388d335
[ "BSD-3-Clause" ]
21
2015-04-27T05:01:36.000Z
2021-11-22T13:45:14.000Z
python/maya/site-packages/pymel-1.0.5/pymel/core/runtime.py
0xb1dd1e/PipelineConstructionSet
621349da1b6d1437e95d0c9e48ee9f36d59f19fd
[ "BSD-3-Clause" ]
null
null
null
python/maya/site-packages/pymel-1.0.5/pymel/core/runtime.py
0xb1dd1e/PipelineConstructionSet
621349da1b6d1437e95d0c9e48ee9f36d59f19fd
[ "BSD-3-Clause" ]
7
2015-04-11T11:37:19.000Z
2020-05-22T09:49:04.000Z
""" Runtime commands. These are kept in their own namespace to prevent conflict with other functions and classes. """ import pymel.internal.factories as _factories _factories.createFunctions( __name__ )
33.833333
109
0.807882
18732ff78540ba19638ef0fc85a1d20ae9d6d7cb
2,717
py
Python
ntnui/tmp/accounts/api/exeline.py
kapteinstein/tdt4290
7bc2d2dbdbcc3fd35a05f1d2893d83255803f73b
[ "MIT" ]
null
null
null
ntnui/tmp/accounts/api/exeline.py
kapteinstein/tdt4290
7bc2d2dbdbcc3fd35a05f1d2893d83255803f73b
[ "MIT" ]
null
null
null
ntnui/tmp/accounts/api/exeline.py
kapteinstein/tdt4290
7bc2d2dbdbcc3fd35a05f1d2893d83255803f73b
[ "MIT" ]
null
null
null
import requests as req class Exeline(object): def __init__(self, username, password, requests=None): if requests is None: self.requests = req else: self.requests = requests self.username = username self.password = password self.base_url = 'http://ex...
38.267606
100
0.557968
675b9a0c74fc418be0d04e04dca67c262a858c5e
1,703
py
Python
s3/prefix.py
Rome84/AWS
32f5b6a83e37e62b0e33658bdab03ea493c905cb
[ "MIT" ]
null
null
null
s3/prefix.py
Rome84/AWS
32f5b6a83e37e62b0e33658bdab03ea493c905cb
[ "MIT" ]
null
null
null
s3/prefix.py
Rome84/AWS
32f5b6a83e37e62b0e33658bdab03ea493c905cb
[ "MIT" ]
null
null
null
# Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/ # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy,...
39.604651
75
0.694069
3066a1f4bda208df4f5aba33f42d4ced277cc266
19,975
py
Python
examples/ScanNet/utils.py
c6376315qqso/occuseg
ae7a2d9f0927dec515acf445f0bdd6d28510e915
[ "BSD-3-Clause" ]
null
null
null
examples/ScanNet/utils.py
c6376315qqso/occuseg
ae7a2d9f0927dec515acf445f0bdd6d28510e915
[ "BSD-3-Clause" ]
null
null
null
examples/ScanNet/utils.py
c6376315qqso/occuseg
ae7a2d9f0927dec515acf445f0bdd6d28510e915
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import torch, numpy as np import plyfile import torch import torch.nn as nn import torch.nn.functional as F from torch.aut...
39.632937
240
0.499124
3f7ab6df46fff56006c51fd5bf5469af9696b3b8
2,633
py
Python
src/questions/models.py
Maelstroms38/Matchmaker
082ff442901fcfc8ecb3b968f8197a792344b901
[ "MIT" ]
null
null
null
src/questions/models.py
Maelstroms38/Matchmaker
082ff442901fcfc8ecb3b968f8197a792344b901
[ "MIT" ]
null
null
null
src/questions/models.py
Maelstroms38/Matchmaker
082ff442901fcfc8ecb3b968f8197a792344b901
[ "MIT" ]
null
null
null
from django.db import models from django.conf import settings from django.db.models.signals import post_save, pre_save from django.dispatch import receiver # Create your models here. class Question(models.Model): text = models.TextField() active = models.BooleanField(default=True) draft = models.BooleanField(defaul...
33.75641
93
0.773262
abaf4597a9aac7c5ad8c2e3d8bfb47d865cd6375
117
py
Python
main.py
ongzhixian/bukit-bintang
be41abe81bee13a33fead806438a739a6e8aa4c7
[ "MIT" ]
null
null
null
main.py
ongzhixian/bukit-bintang
be41abe81bee13a33fead806438a739a6e8aa4c7
[ "MIT" ]
null
null
null
main.py
ongzhixian/bukit-bintang
be41abe81bee13a33fead806438a739a6e8aa4c7
[ "MIT" ]
null
null
null
from modules.sample_game import SampleGame1 if __name__ == "__main__": game = SampleGame1() game.run_game()
19.5
43
0.717949
8ddeb2f64b0c1a6b2ec4934af17c88253e5a26f4
1,508
py
Python
Python for Data Analysis and Visualisation/Lecture 9- Indexing arrays.py
peternewman22/Python_Courses
07a798b6f264fc6069eb1205c9d429f00fb54bc5
[ "MIT" ]
null
null
null
Python for Data Analysis and Visualisation/Lecture 9- Indexing arrays.py
peternewman22/Python_Courses
07a798b6f264fc6069eb1205c9d429f00fb54bc5
[ "MIT" ]
null
null
null
Python for Data Analysis and Visualisation/Lecture 9- Indexing arrays.py
peternewman22/Python_Courses
07a798b6f264fc6069eb1205c9d429f00fb54bc5
[ "MIT" ]
null
null
null
"""Tools: arr.copy() --> explicitly makes a copy of an array. By default, all slices etc are VIEWS of the original array. """ import numpy as np # this should create an array starting at zero and ending at 10, gap 1 arr = np.arange(0,11) print(arr) # Calling the value at 8 print(arr[8]) # slicing print(...
21.855072
112
0.704244
de3175cf404da7dad2059b7f1bcc3e72afcec76c
4,983
py
Python
src/analyze.py
quocpp/RTH
4cf39044e18ad23c9c02753fcbe6780e4430e2d8
[ "MIT" ]
null
null
null
src/analyze.py
quocpp/RTH
4cf39044e18ad23c9c02753fcbe6780e4430e2d8
[ "MIT" ]
null
null
null
src/analyze.py
quocpp/RTH
4cf39044e18ad23c9c02753fcbe6780e4430e2d8
[ "MIT" ]
null
null
null
from __future__ import division from __future__ import print_function import sys import math import pickle import copy import numpy as np import cv2 import matplotlib.pyplot as plt from DataLoader import Batch from Model import Model, DecoderType from SamplePreprocessor import preprocess # constants like filepaths c...
30.018072
129
0.730283
919d4cb2b1fbf8521bf8df30d28666a7732eb3a9
16,843
py
Python
novaclient/tests/unit/test_utils.py
dtroyer/python-novaclient
4c483322fe5454c8ece66cc9c86cbc0702e14368
[ "Apache-1.1" ]
null
null
null
novaclient/tests/unit/test_utils.py
dtroyer/python-novaclient
4c483322fe5454c8ece66cc9c86cbc0702e14368
[ "Apache-1.1" ]
null
null
null
novaclient/tests/unit/test_utils.py
dtroyer/python-novaclient
4c483322fe5454c8ece66cc9c86cbc0702e14368
[ "Apache-1.1" ]
1
2019-01-11T16:15:52.000Z
2019-01-11T16:15:52.000Z
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
36.45671
79
0.490055
ebac6ce39ff6d93d756089be8a7f68626df9409d
3,573
py
Python
pytext/utils/precision_utils.py
huntermonk/pytext
34e3fd20dc0976d243d7260174d7847f4741b079
[ "BSD-3-Clause" ]
null
null
null
pytext/utils/precision_utils.py
huntermonk/pytext
34e3fd20dc0976d243d7260174d7847f4741b079
[ "BSD-3-Clause" ]
null
null
null
pytext/utils/precision_utils.py
huntermonk/pytext
34e3fd20dc0976d243d7260174d7847f4741b079
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved _APEX_DISABLED = False try: from apex import amp except ImportError: print("Install apex from https://github.com/NVIDIA/apex/.") _APEX_DISABLED = True except AttributeError as e: print(f"Fail to import apex: {...
29.528926
86
0.65911
d95ebbe719394829ebd21eb1bf15a55a1eb732a1
1,399
py
Python
tests/testPublicKey.py
pibara/ecdsa-python
908f3c7612bec89759e1b4407e40c2a9e2d28cf1
[ "MIT" ]
null
null
null
tests/testPublicKey.py
pibara/ecdsa-python
908f3c7612bec89759e1b4407e40c2a9e2d28cf1
[ "MIT" ]
null
null
null
tests/testPublicKey.py
pibara/ecdsa-python
908f3c7612bec89759e1b4407e40c2a9e2d28cf1
[ "MIT" ]
null
null
null
# coding=utf-8 from unittest.case import TestCase from ellipticcurve.privateKey import PrivateKey from ellipticcurve.publicKey import PublicKey from ellipticcurve.utils.compatibility import * class PublicKeyTest(TestCase): def testPemConversion(self): privateKey = PrivateKey() publicKey1 = priva...
37.810811
64
0.712652
474bc9b014eb47d2a2795a51cf912b7d85bffbd9
27,717
py
Python
tensorflow_quantum/core/ops/batch_util.py
NunoEdgarGFlowHub/quantum
260ad7e4631ed10109eab9fc34f242cfc1aac3af
[ "Apache-2.0" ]
1
2020-03-18T19:48:36.000Z
2020-03-18T19:48:36.000Z
tensorflow_quantum/core/ops/batch_util.py
NunoEdgarGFlowHub/quantum
260ad7e4631ed10109eab9fc34f242cfc1aac3af
[ "Apache-2.0" ]
1
2022-02-10T02:26:00.000Z
2022-02-10T02:26:00.000Z
tensorflow_quantum/core/ops/batch_util.py
NunoEdgarGFlowHub/quantum
260ad7e4631ed10109eab9fc34f242cfc1aac3af
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The TensorFlow Quantum Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
43.105754
80
0.636902
33be441ee8dbf83c1b0037675e803015ae9b8cf1
929
py
Python
tests/reduction_complex.py
manopapad/legate.numpy
896f4fd9b32db445da6cdabf7b78d523fca96936
[ "Apache-2.0" ]
null
null
null
tests/reduction_complex.py
manopapad/legate.numpy
896f4fd9b32db445da6cdabf7b78d523fca96936
[ "Apache-2.0" ]
null
null
null
tests/reduction_complex.py
manopapad/legate.numpy
896f4fd9b32db445da6cdabf7b78d523fca96936
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 NVIDIA Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
26.542857
74
0.691066
8b90ee4be04365222424a1a9afaa810bceb434b3
5,510
py
Python
my_account/my_account/doctype/sync_server_settings.py
bobzz-zone/saas_my_account
0349bf14714bd070ec003dd96b3f60878af1b9b1
[ "MIT" ]
null
null
null
my_account/my_account/doctype/sync_server_settings.py
bobzz-zone/saas_my_account
0349bf14714bd070ec003dd96b3f60878af1b9b1
[ "MIT" ]
null
null
null
my_account/my_account/doctype/sync_server_settings.py
bobzz-zone/saas_my_account
0349bf14714bd070ec003dd96b3f60878af1b9b1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, erpx and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from my_account.my_account.doctype.frappeclient import FrappeClient import json import os impo...
26.878049
105
0.574592
1fb9470af41162f99511873fac84a5f435fa264f
1,198
py
Python
utils/puzzle_reader.py
nitekat1124/advent-of-code-2017
a18884137fa5354ebe537b8730930b9a59c613af
[ "WTFPL" ]
null
null
null
utils/puzzle_reader.py
nitekat1124/advent-of-code-2017
a18884137fa5354ebe537b8730930b9a59c613af
[ "WTFPL" ]
null
null
null
utils/puzzle_reader.py
nitekat1124/advent-of-code-2017
a18884137fa5354ebe537b8730930b9a59c613af
[ "WTFPL" ]
null
null
null
import os, sys, glob, re class PuzzleReader: @staticmethod def get_puzzle_input(day_num, is_raw): return [line.strip("\n") if is_raw else line.strip() for line in open(f"{PuzzleReader.get_path()}/data/day{day_num:02d}/puzzle_input.txt", "r").readlines()] @staticmethod def get_test_input(day_n...
42.785714
164
0.626878
1709a46fb50f853ba289e10d94e65b695cf17a67
3,197
py
Python
src/timelord/timelord_api.py
DONG-Jason/chia-blockchain
27b28d62f6b315e45bc00231e007c775f07a414a
[ "Apache-2.0" ]
null
null
null
src/timelord/timelord_api.py
DONG-Jason/chia-blockchain
27b28d62f6b315e45bc00231e007c775f07a414a
[ "Apache-2.0" ]
null
null
null
src/timelord/timelord_api.py
DONG-Jason/chia-blockchain
27b28d62f6b315e45bc00231e007c775f07a414a
[ "Apache-2.0" ]
null
null
null
from typing import Callable, Optional import logging from src.protocols import timelord_protocol from src.timelord.timelord import Timelord, iters_from_sub_block, Chain, IterationType from src.util.api_decorators import api_request from src.util.ints import uint64 log = logging.getLogger(__name__) class TimelordAPI...
45.671429
119
0.632781
fb93e366da3a83762556253ce8f6f9b28a343fa6
10,842
py
Python
integration/airflow/tests/extractors/test_bigquery_extractor.py
Arnaud-Nauwynck/OpenLineage
18e711e1c7187a85bc7c98790466d4593c8306ed
[ "Apache-2.0" ]
null
null
null
integration/airflow/tests/extractors/test_bigquery_extractor.py
Arnaud-Nauwynck/OpenLineage
18e711e1c7187a85bc7c98790466d4593c8306ed
[ "Apache-2.0" ]
null
null
null
integration/airflow/tests/extractors/test_bigquery_extractor.py
Arnaud-Nauwynck/OpenLineage
18e711e1c7187a85bc7c98790466d4593c8306ed
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
33.987461
82
0.655691
bbe1c84be4cb3822d0c5c7e3e38b027fe248e438
6,438
py
Python
tools/python/runfiles/runfiles_test.py
JoesaDmercado/bazel
89b8f153d5ce145bbde177233eef02f4d16c2ab5
[ "Apache-2.0" ]
1
2018-04-12T15:36:03.000Z
2018-04-12T15:36:03.000Z
tools/python/runfiles/runfiles_test.py
Corroler/bazel
073ea095a6c6a826ccdbbce1b213de47115e701a
[ "Apache-2.0" ]
1
2018-06-07T01:41:04.000Z
2018-07-25T06:43:27.000Z
tools/python/runfiles/runfiles_test.py
Corroler/bazel
073ea095a6c6a826ccdbbce1b213de47115e701a
[ "Apache-2.0" ]
null
null
null
# pylint: disable=g-bad-file-header # Copyright 2018 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
35.180328
80
0.635446
32725e2c62b53ce55413466d07d5a35efa332fa2
45
py
Python
punch_version.py
jnnr/oemof-tabular
ab58d8c3035b6e97d9d45169832745de11e5bb36
[ "BSD-3-Clause" ]
2
2019-12-09T17:34:31.000Z
2022-02-04T12:55:15.000Z
punch_version.py
jnnr/oemof-tabular
ab58d8c3035b6e97d9d45169832745de11e5bb36
[ "BSD-3-Clause" ]
28
2018-11-24T16:56:55.000Z
2022-03-25T12:19:41.000Z
punch_version.py
jnnr/oemof-tabular
ab58d8c3035b6e97d9d45169832745de11e5bb36
[ "BSD-3-Clause" ]
7
2018-12-19T13:42:52.000Z
2021-11-21T18:43:45.000Z
major = 0 minor = 0 patch = 2 status = 'dev'
9
14
0.6
63910c516521486868a40c1db4e73b647262358d
1,135
py
Python
sdis/contrib/sites/migrations/0002_set_site_domain_and_name.py
dbca-wa/sdis4
a40f6025bc6fc90dde251d65567a0c94f1f96967
[ "MIT" ]
1
2018-03-12T01:50:55.000Z
2018-03-12T01:50:55.000Z
sdis/contrib/sites/migrations/0002_set_site_domain_and_name.py
dbca-wa/sdis4
a40f6025bc6fc90dde251d65567a0c94f1f96967
[ "MIT" ]
3
2021-06-10T20:23:45.000Z
2022-01-13T00:46:30.000Z
sdis/contrib/sites/migrations/0002_set_site_domain_and_name.py
dbca-wa/sdis4
a40f6025bc6fc90dde251d65567a0c94f1f96967
[ "MIT" ]
null
null
null
""" To understand why this file is here, please read: http://cookiecutter-django.readthedocs.org/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django """ # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.db import migration...
24.148936
130
0.639648
1dc970452d084af6100fafdb8b8b8b883ada1ffa
7,322
py
Python
trestle/core/jinja.py
jayhawk87/compliance-trestle
d0262826f30e0c7f89f8a3551b93142669fa2c66
[ "Apache-2.0" ]
null
null
null
trestle/core/jinja.py
jayhawk87/compliance-trestle
d0262826f30e0c7f89f8a3551b93142669fa2c66
[ "Apache-2.0" ]
null
null
null
trestle/core/jinja.py
jayhawk87/compliance-trestle
d0262826f30e0c7f89f8a3551b93142669fa2c66
[ "Apache-2.0" ]
null
null
null
# -*- mode:python; coding:utf-8 -*- # Copyright (c) 2020 IBM Corp. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # ...
40.677778
118
0.647228
0969a3e71f8f97cc5d824c2b4755427e17051e9a
499
py
Python
core/migrations/0023_auto_20210502_1749.py
Braineanear/AL3wn
b523d25386a8b2e45487d1b9d2c78cead623c1e6
[ "Apache-2.0" ]
null
null
null
core/migrations/0023_auto_20210502_1749.py
Braineanear/AL3wn
b523d25386a8b2e45487d1b9d2c78cead623c1e6
[ "Apache-2.0" ]
null
null
null
core/migrations/0023_auto_20210502_1749.py
Braineanear/AL3wn
b523d25386a8b2e45487d1b9d2c78cead623c1e6
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.4 on 2021-05-02 15:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0022_auto_20210329_1751'), ] operations = [ migrations.AlterField( model_name='outerexam', nam...
26.263158
148
0.55511
3f624cb5f562fa25ff153249401d046947fe480c
48
py
Python
iam/__version__.py
uddmorningsun/iam-python-sdk
5afe5de520632d1cd67626e0ef04264fa7a95d40
[ "MIT" ]
10
2021-03-08T09:50:12.000Z
2022-02-09T04:08:09.000Z
iam/__version__.py
uddmorningsun/iam-python-sdk
5afe5de520632d1cd67626e0ef04264fa7a95d40
[ "MIT" ]
11
2021-03-15T03:03:15.000Z
2022-03-04T03:15:22.000Z
iam/__version__.py
uddmorningsun/iam-python-sdk
5afe5de520632d1cd67626e0ef04264fa7a95d40
[ "MIT" ]
11
2021-03-08T09:19:47.000Z
2021-11-22T02:36:25.000Z
# -*- coding: utf-8 -*- __version__ = "1.1.20"
12
23
0.520833
9a5001bb164a555e5d3aaeb7b48e49317018016b
5,409
py
Python
tests/integration/moto_server.py
neuro-inc/platform-buckets-api
ba04edeb8565fa06e5af6d0316957a8816b087b2
[ "Apache-2.0" ]
null
null
null
tests/integration/moto_server.py
neuro-inc/platform-buckets-api
ba04edeb8565fa06e5af6d0316957a8816b087b2
[ "Apache-2.0" ]
55
2021-11-16T00:26:52.000Z
2022-03-29T03:16:55.000Z
tests/integration/moto_server.py
neuro-inc/platform-buckets-api
ba04edeb8565fa06e5af6d0316957a8816b087b2
[ "Apache-2.0" ]
null
null
null
import asyncio import json import logging import os from collections.abc import AsyncIterator, Iterator import aiobotocore.session import aiohttp import pytest from aiobotocore.client import AioBaseClient from async_timeout import timeout from docker import DockerClient from docker.errors import NotFound as ContainerN...
31.086207
88
0.672768
4bf2a38c5030564c0e986bc2e40f1ed9cf0a33d1
4,123
py
Python
structural/composite_concept.py
EdiBoba/python_patterns
b3343eed5592beea2996316feb8df4bad107e1fc
[ "MIT" ]
2
2022-02-08T16:30:22.000Z
2022-03-16T08:20:25.000Z
structural/composite_concept.py
EdiBoba/python_patterns
b3343eed5592beea2996316feb8df4bad107e1fc
[ "MIT" ]
null
null
null
structural/composite_concept.py
EdiBoba/python_patterns
b3343eed5592beea2996316feb8df4bad107e1fc
[ "MIT" ]
3
2021-08-06T15:47:47.000Z
2021-12-09T18:59:38.000Z
from abc import ABC, abstractmethod from typing import List class Component(ABC): """ Базовый класс Компонент объявляет общие операции как для простых, так и для сложных объектов структуры. """ _parent: 'Component' @property def parent(self) -> 'Component': return self._parent ...
28.832168
80
0.663109
4d5829da32eb9fee515d29603c37f8dcf677e0a8
2,779
py
Python
setup.py
zmetcalf/django-widgy
41f0f791bc8aaf003c10e3c41dffd68ea5c28d48
[ "Apache-2.0" ]
null
null
null
setup.py
zmetcalf/django-widgy
41f0f791bc8aaf003c10e3c41dffd68ea5c28d48
[ "Apache-2.0" ]
null
null
null
setup.py
zmetcalf/django-widgy
41f0f791bc8aaf003c10e3c41dffd68ea5c28d48
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand import os import sys __doc__ = """ A CMS framework for Django built on a heterogenous tree editor. """ class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_opti...
28.357143
91
0.639079
7167f93758bbf1998011f4f3c2effb389f694a80
1,411
py
Python
examples/copy_and_paste.py
MrTeferi/photoshop-python-api
3467c345c836e0515af793d365edb83fe9166643
[ "MIT" ]
270
2020-04-11T22:41:20.000Z
2022-03-29T09:16:43.000Z
examples/copy_and_paste.py
MrTeferi/photoshop-python-api
3467c345c836e0515af793d365edb83fe9166643
[ "MIT" ]
67
2020-04-18T08:12:34.000Z
2022-03-31T16:51:56.000Z
examples/copy_and_paste.py
MrTeferi/photoshop-python-api
3467c345c836e0515af793d365edb83fe9166643
[ "MIT" ]
32
2020-05-13T10:51:04.000Z
2022-03-19T02:53:43.000Z
""" References: https://github.com/lohriialo/photoshop-scripting-python/blob/master/CopyAndPaste.py """ # Import local modules import photoshop.api as ps app = ps.Application() startRulerUnits = app.preferences.rulerUnits app.preferences.rulerUnits = ps.Units.Inches doc = app.documents.add( 7, 5, 72, Non...
30.673913
87
0.719348
a5fb3741b081bc081ab240abcd2d062959e17059
1,660
py
Python
main.py
pders01/check-library-on-protondb
ea85bb03f815b7b9c5c327769bcae573e695e3c9
[ "MIT" ]
null
null
null
main.py
pders01/check-library-on-protondb
ea85bb03f815b7b9c5c327769bcae573e695e3c9
[ "MIT" ]
null
null
null
main.py
pders01/check-library-on-protondb
ea85bb03f815b7b9c5c327769bcae573e695e3c9
[ "MIT" ]
null
null
null
import argparse from operator import contains from os import listdir from os.path import isfile, join from pprint import pprint import requests import json import uuid BASE_URL = 'https://protondb.max-p.me' def parse_args(): parser = argparse.ArgumentParser(description='Supply full paths to your game libraries. '...
28.62069
94
0.693373
b77ccd38ec4f0fffd983acfe05258b58d1951f88
1,740
py
Python
step2/asprep/as_2a.py
funderburkjim/boesp-prep
a8738671a8f8760feb945f4932bf4f2d19ed4f86
[ "MIT" ]
null
null
null
step2/asprep/as_2a.py
funderburkjim/boesp-prep
a8738671a8f8760feb945f4932bf4f2d19ed4f86
[ "MIT" ]
50
2021-08-28T23:02:22.000Z
2022-01-18T18:31:21.000Z
step2/asprep/as_2a.py
funderburkjim/boesp-prep
a8738671a8f8760feb945f4932bf4f2d19ed4f86
[ "MIT" ]
1
2021-09-02T04:36:26.000Z
2021-09-02T04:36:26.000Z
# coding=utf-8 """ as_2.py """ from __future__ import print_function import sys, re,codecs from pwgbib_altera import read_pwgbib class AS(object): def __init__(self,line): self.line = line.rstrip('\r\n') self.code,self.count = self.line.split(r' : ') self.pwgrec = None def read_as_1(filein): with codecs.op...
24.507042
70
0.67069
99d1492a50ab8306e37f3871cd3ce1f7fdefe338
2,794
py
Python
datapack/data/scripts/quests/638_SeekersOfTheHolyGrail/__init__.py
DigitalCoin1/L2SPERO
f9ec069804d7bf13f9c4bfb508db2eb6ce37ab94
[ "Unlicense" ]
null
null
null
datapack/data/scripts/quests/638_SeekersOfTheHolyGrail/__init__.py
DigitalCoin1/L2SPERO
f9ec069804d7bf13f9c4bfb508db2eb6ce37ab94
[ "Unlicense" ]
null
null
null
datapack/data/scripts/quests/638_SeekersOfTheHolyGrail/__init__.py
DigitalCoin1/L2SPERO
f9ec069804d7bf13f9c4bfb508db2eb6ce37ab94
[ "Unlicense" ]
null
null
null
import sys from com.l2jfrozen import Config from com.l2jfrozen.gameserver.model.quest import State from com.l2jfrozen.gameserver.model.quest import QuestState from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest qn = "638_SeekersOfTheHolyGrail" DROP_CHANCE = 30 #NPC INNOCENTIN = 31328 #MOBS...
28.510204
153
0.639227
00882248e3b032c3cf10de3eec40c882e8ae846a
238
py
Python
src/pyrepo/__init__.py
energyinpython/pre-pyrepo
92e44594e12d1110247f011e51734e5ce1fe0b8e
[ "MIT" ]
null
null
null
src/pyrepo/__init__.py
energyinpython/pre-pyrepo
92e44594e12d1110247f011e51734e5ce1fe0b8e
[ "MIT" ]
null
null
null
src/pyrepo/__init__.py
energyinpython/pre-pyrepo
92e44594e12d1110247f011e51734e5ce1fe0b8e
[ "MIT" ]
null
null
null
from . import mcda_methods from . import additions from . import compromise_rankings from . import correlations from . import distance_metrics from . import normalizations from . import sensitivity_analysis from . import weighting_methods
29.75
34
0.836134
516a257a9c513b976e6e8b392b61507a3c65a068
4,472
py
Python
plotters/bar_timeline_plotter.py
msingam/covid-chicago
761abfec2ef40bfb7084009d456ad6dafe3b24f4
[ "Apache-2.0" ]
null
null
null
plotters/bar_timeline_plotter.py
msingam/covid-chicago
761abfec2ef40bfb7084009d456ad6dafe3b24f4
[ "Apache-2.0" ]
null
null
null
plotters/bar_timeline_plotter.py
msingam/covid-chicago
761abfec2ef40bfb7084009d456ad6dafe3b24f4
[ "Apache-2.0" ]
null
null
null
import argparse import os import pandas as pd import numpy as np import sys sys.path.append('../') from load_paths import load_box_paths import matplotlib.pyplot as plt import matplotlib as mpl import matplotlib.dates as mdates import seaborn as sns #from plotting.colors import load_color_palette mpl.rcParams['pdf....
34.9375
129
0.633945
a9c8d74fb9e7a10fc0dfef47cfb3ac7c7187bde9
190
py
Python
TkinterWithMatplotlib-dev/je_matplotlib_wrapper/save_as_png/save_as_png.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
TkinterWithMatplotlib-dev/je_matplotlib_wrapper/save_as_png/save_as_png.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
TkinterWithMatplotlib-dev/je_matplotlib_wrapper/save_as_png/save_as_png.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
from matplotlib import pyplot def save_as_png(filename: str, what_plot_you_want_to_save: pyplot, **kwargs): what_plot_you_want_to_save.savefig(filename, bbox_inches='tight', **kwargs)
31.666667
79
0.8
b4600257be196a4736f5f1c602134c2ed2448b5d
3,188
py
Python
library/nsxt_compute_collection_transport_templates_facts.py
lcamarda/nsxtlivefire-v2-siteb
7d0dcba24fb57728230f9f04494fad63f8054d10
[ "BSD-2-Clause" ]
6
2020-03-25T16:49:52.000Z
2020-04-11T16:01:35.000Z
library/nsxt_compute_collection_transport_templates_facts.py
khyoon/nsxtlivefire-v2-siteb
1a21367dae2bee66ec96402a89fb82ab3f6f58ea
[ "BSD-2-Clause" ]
3
2020-03-26T19:30:15.000Z
2020-04-16T22:17:24.000Z
library/nsxt_compute_collection_transport_templates_facts.py
khyoon/nsxtlivefire-v2-siteb
1a21367dae2bee66ec96402a89fb82ab3f6f58ea
[ "BSD-2-Clause" ]
3
2019-07-24T02:03:52.000Z
2021-06-15T22:19:51.000Z
#!/usr/bin/env python # # Copyright 2018 VMware, Inc. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL...
37.952381
136
0.741217
134cb260436ed3ea534264fec0b449c9181694b8
87,257
py
Python
tests/python/unittest/test_sparse_operator.py
rah9eu/p3
530628be7b7a8dd3e6199c3bebebdbf104005e5f
[ "Apache-2.0" ]
22
2019-02-20T12:42:20.000Z
2021-12-25T06:09:46.000Z
tests/python/unittest/test_sparse_operator.py
rah9eu/p3
530628be7b7a8dd3e6199c3bebebdbf104005e5f
[ "Apache-2.0" ]
4
2019-04-01T07:36:04.000Z
2022-03-24T03:11:26.000Z
tests/python/unittest/test_sparse_operator.py
rah9eu/p3
530628be7b7a8dd3e6199c3bebebdbf104005e5f
[ "Apache-2.0" ]
7
2019-03-20T16:04:37.000Z
2021-04-28T18:40:11.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
48.341828
122
0.506022
275bc96bafc6a0d01aaaf36a844cd302cc146fea
4,062
py
Python
ttwidgets/__init__.py
GaryBloom/ttwidgets
7a067be9a3dd96fc2cf812d0db34428503832737
[ "Apache-2.0" ]
2
2020-12-11T15:01:04.000Z
2021-03-12T12:49:26.000Z
ttwidgets/__init__.py
GaryBloom/ttwidgets
7a067be9a3dd96fc2cf812d0db34428503832737
[ "Apache-2.0" ]
null
null
null
ttwidgets/__init__.py
GaryBloom/ttwidgets
7a067be9a3dd96fc2cf812d0db34428503832737
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 Gary Michael Bloom mailto:bloominator@hotmail.com mailto:GaryBloomLaw@gmail.com TTWidgets - Tagged-Text Multi-Font Enhanced Tkinter Widgets ========= Package **TTWidgets** improves the Button, Label, and Listbox widgets of the Tkinter library, and provides a b...
39.436893
335
0.718119
4026da48cb9a13823ff5dd9bc2f605977edaac3f
23,270
py
Python
ironic/drivers/modules/redfish/management.py
pgaxatte/ironic
4af622db2fa68e8302d385357fef793c9b0c9b9a
[ "Apache-2.0" ]
1
2019-07-29T04:57:15.000Z
2019-07-29T04:57:15.000Z
ironic/drivers/modules/redfish/management.py
pgaxatte/ironic
4af622db2fa68e8302d385357fef793c9b0c9b9a
[ "Apache-2.0" ]
13
2019-04-12T21:55:36.000Z
2020-05-26T14:07:13.000Z
ironic/drivers/modules/redfish/management.py
cdearborn/ironic
4d41af5038369b31ae44e18d2cbf2e311a8bc7fa
[ "Apache-2.0" ]
11
2019-04-10T04:43:33.000Z
2020-01-31T10:34:14.000Z
# Copyright 2017 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
39.043624
79
0.5685
7f712ab4907aa60851e759e54928778cac57e063
2,882
py
Python
unittest/python/bindings_geometry_object.py
yDMhaven/pinocchio
fabed17d5ad0dc1c8d251c64cfa656a0215469a5
[ "BSD-2-Clause-FreeBSD" ]
1
2020-04-07T07:23:34.000Z
2020-04-07T07:23:34.000Z
unittest/python/bindings_geometry_object.py
yDMhaven/pinocchio
fabed17d5ad0dc1c8d251c64cfa656a0215469a5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
unittest/python/bindings_geometry_object.py
yDMhaven/pinocchio
fabed17d5ad0dc1c8d251c64cfa656a0215469a5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import unittest import pinocchio as pin pin.switchToNumpyMatrix() import numpy as np @unittest.skipUnless(pin.WITH_HPP_FCL,"Needs HPP-FCL") class TestGeometryObjectBindings(unittest.TestCase): def setUp(self): self.model = pin.buildSampleModelHumanoid() self.collision_model = pin.buildSampleGeomet...
38.426667
84
0.699167
6bda0d3827a53cafe56caf83facb9538a0fe5497
16,124
py
Python
tests/safety/common.py
HyreAS/panda
1a635b2d66f2b79b6305ac80e9ba31085347077d
[ "MIT" ]
null
null
null
tests/safety/common.py
HyreAS/panda
1a635b2d66f2b79b6305ac80e9ba31085347077d
[ "MIT" ]
null
null
null
tests/safety/common.py
HyreAS/panda
1a635b2d66f2b79b6305ac80e9ba31085347077d
[ "MIT" ]
null
null
null
import os import abc import struct import unittest import importlib import numpy as np from typing import Optional, List, Dict from opendbc.can.packer import CANPacker # pylint: disable=import-error from panda.tests.safety import libpandasafety_py MAX_WRONG_COUNTERS = 5 class UNSAFE_MODE: DEFAULT = 0 DISABLE_DIS...
36.152466
108
0.71651
6dcc997b4c7327471116aa56a186ebdd482c8c16
9,638
py
Python
Lib/pipes.py
arvindm95/unladen-swallow
8175e37eaea7ca66ed03283b46bc1d2db0d3f9c3
[ "PSF-2.0" ]
2,293
2015-01-02T12:46:10.000Z
2022-03-29T09:45:43.000Z
python/src/Lib/pipes.py
weiqiangzheng/sl4a
d3c17dca978cbeee545e12ea240a9dbf2a6999e9
[ "Apache-2.0" ]
315
2015-05-31T11:55:46.000Z
2022-01-12T08:36:37.000Z
python/src/Lib/pipes.py
weiqiangzheng/sl4a
d3c17dca978cbeee545e12ea240a9dbf2a6999e9
[ "Apache-2.0" ]
1,033
2015-01-04T07:48:40.000Z
2022-03-24T09:34:37.000Z
"""Conversion pipeline templates. The problem: ------------ Suppose you have some data that you want to convert to another format, such as from GIF image format to PPM image format. Maybe the conversion involves several steps (e.g. piping it through compress or uuencode). Some of the conversion steps may require th...
34.056537
81
0.56298
58fd3e3c8857b8ede1d2d1f1e058e64645f835f3
1,609
py
Python
Software/src/liv/iotConnectors/emoncms/emoncms.py
nadaol/Weather_Station
5bfb31c2974227fcc8d912e3911f356d4e3fb187
[ "MIT" ]
null
null
null
Software/src/liv/iotConnectors/emoncms/emoncms.py
nadaol/Weather_Station
5bfb31c2974227fcc8d912e3911f356d4e3fb187
[ "MIT" ]
null
null
null
Software/src/liv/iotConnectors/emoncms/emoncms.py
nadaol/Weather_Station
5bfb31c2974227fcc8d912e3911f356d4e3fb187
[ "MIT" ]
null
null
null
import httplib, urllib import httplib2 as http import datetime import json from urlparse import urlparse import time if __name__ == "__main__": apiKey = 'YOUR_API_KEY_HERE' e_conn = httplib.HTTPConnection("emoncms.org:80") e_headers = {"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain...
29.796296
165
0.670603
01c5c457033a644aa2bbd2840bef8d1771037484
1,215
py
Python
res/functions.py
RainMaker1707/SAT_in_python
1d69a652811f598221ed8425223f45669a3cbcc9
[ "MIT" ]
null
null
null
res/functions.py
RainMaker1707/SAT_in_python
1d69a652811f598221ed8425223f45669a3cbcc9
[ "MIT" ]
null
null
null
res/functions.py
RainMaker1707/SAT_in_python
1d69a652811f598221ed8425223f45669a3cbcc9
[ "MIT" ]
null
null
null
from res.members import * from res.candidates import * from random import randint, getrandbits def setup(member_nbr: int, candidate_nbr: int): """ This function will make a list of potential candidates and a list of member Each member has a random list of random demand :non-param complexity: Ω(member_...
45
87
0.665021
f3231a6bb69219ec625692aa5a99246bcabfc2f2
4,530
py
Python
delta/data/datasets/base_dataset.py
pangge/delta
212939f9aa67e3971dc75914f75b9aecc40d1261
[ "Apache-2.0" ]
null
null
null
delta/data/datasets/base_dataset.py
pangge/delta
212939f9aa67e3971dc75914f75b9aecc40d1261
[ "Apache-2.0" ]
null
null
null
delta/data/datasets/base_dataset.py
pangge/delta
212939f9aa67e3971dc75914f75b9aecc40d1261
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
34.580153
80
0.685872
5ca55deb68159f11c32774cd61eb0e41961fb9f2
3,752
py
Python
movie/settings.py
mwerumuchai/technical_screening
cc58d977436813bcb7fd1129f8f6bf053a569b15
[ "MIT" ]
null
null
null
movie/settings.py
mwerumuchai/technical_screening
cc58d977436813bcb7fd1129f8f6bf053a569b15
[ "MIT" ]
null
null
null
movie/settings.py
mwerumuchai/technical_screening
cc58d977436813bcb7fd1129f8f6bf053a569b15
[ "MIT" ]
null
null
null
""" Django settings for movie project. Generated by 'django-admin startproject' using Django 2.0.3. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os from...
25.69863
91
0.702559
99914489c0bf07682f61844e6493fccf95d549c3
12,185
py
Python
rl_coach/environments/starcraft2_environment.py
JohnnyPeng18/coach
1ee9e10747c535b387a00c946efa220efd114d47
[ "Apache-2.0" ]
1,960
2017-10-19T10:31:24.000Z
2020-11-07T18:19:23.000Z
rl_coach/environments/starcraft2_environment.py
JohnnyPeng18/coach
1ee9e10747c535b387a00c946efa220efd114d47
[ "Apache-2.0" ]
349
2017-10-21T17:17:18.000Z
2020-10-17T13:39:56.000Z
rl_coach/environments/starcraft2_environment.py
JohnnyPeng18/coach
1ee9e10747c535b387a00c946efa220efd114d47
[ "Apache-2.0" ]
428
2017-10-21T01:32:58.000Z
2020-11-07T13:49:49.000Z
# # Copyright (c) 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
48.162055
130
0.665737
e0fafc0a2a53a7f59a2f6ffba546962afa43dc9b
1,679
py
Python
test/device/test_SM_adb_remote.py
jochenparm/moler
0253d677e0ef150206758c7991197ba5687d0965
[ "BSD-3-Clause" ]
57
2018-02-20T08:16:47.000Z
2022-03-28T10:36:57.000Z
test/device/test_SM_adb_remote.py
jochenparm/moler
0253d677e0ef150206758c7991197ba5687d0965
[ "BSD-3-Clause" ]
377
2018-07-19T11:56:27.000Z
2021-07-09T13:08:12.000Z
test/device/test_SM_adb_remote.py
jochenparm/moler
0253d677e0ef150206758c7991197ba5687d0965
[ "BSD-3-Clause" ]
24
2018-04-14T20:49:40.000Z
2022-03-29T10:44:26.000Z
__author__ = 'Grzegorz Latuszek' __copyright__ = 'Copyright (C) 2020, Nokia' __email__ = 'grzegorz.latuszek@nokia.com' import pytest from moler.util.devices_SM import iterate_over_device_states, get_device def test_adb_remote_device(device_connection, adb_remote_output): adb_remote = get_device(name="ADB_REMOTE...
35.723404
155
0.583681
6e9cec9e32382f645a7ca983891ff3724e55139e
459
py
Python
esp/migrations/0003_auto_20161101_2006.py
amillar2/light-django
bea10041bef2fc3d833634a2a0a44e6af8733a21
[ "MIT" ]
null
null
null
esp/migrations/0003_auto_20161101_2006.py
amillar2/light-django
bea10041bef2fc3d833634a2a0a44e6af8733a21
[ "MIT" ]
null
null
null
esp/migrations/0003_auto_20161101_2006.py
amillar2/light-django
bea10041bef2fc3d833634a2a0a44e6af8733a21
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-11-02 01:06 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('esp', '0002_auto_20160519_2114'), ] operations = [ migrations.AlterField( ...
21.857143
67
0.6122
807f76e8b311efe150bc2015bd0a2e90a39379dc
11,992
py
Python
src/storage-blob-preview/azext_storage_blob_preview/tests/latest/test_storage_account_scenarios.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
2
2021-03-24T21:06:20.000Z
2021-03-24T21:07:58.000Z
src/storage-blob-preview/azext_storage_blob_preview/tests/latest/test_storage_account_scenarios.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
3
2020-05-27T20:16:26.000Z
2020-07-23T19:46:49.000Z
src/storage-blob-preview/azext_storage_blob_preview/tests/latest/test_storage_account_scenarios.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
5
2020-05-09T17:47:09.000Z
2020-10-01T19:52:06.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
60.261307
150
0.684456
58bcea4952e2ac314b452d3e2c38ffc3573c3549
183
py
Python
packages/postgres-database/src/simcore_postgres_database/settings.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
25
2018-04-13T12:44:12.000Z
2022-03-12T15:01:17.000Z
packages/postgres-database/src/simcore_postgres_database/settings.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
2,553
2018-01-18T17:11:55.000Z
2022-03-31T16:26:40.000Z
packages/postgres-database/src/simcore_postgres_database/settings.py
mrnicegyu11/osparc-simcore
b6fa6c245dbfbc18cc74a387111a52de9b05d1f4
[ "MIT" ]
20
2018-01-18T19:45:33.000Z
2022-03-29T07:08:47.000Z
from . import metadata from .utils import build_url # Schemas metadata (pre-loaded in __init__.py) target_metadatas = [ metadata, ] __all__ = ["target_metadatas", "build_url"]
16.636364
46
0.73224
378be6550a789a55f3a3be9fcb3eb3f8dc279e1e
5,035
py
Python
api/main.py
ziegeer/autocert
285df181508573918e280948e51cdd7c65743281
[ "MIT" ]
null
null
null
api/main.py
ziegeer/autocert
285df181508573918e280948e51cdd7c65743281
[ "MIT" ]
null
null
null
api/main.py
ziegeer/autocert
285df181508573918e280948e51cdd7c65743281
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import imp import pwd import sys from flask import Flask, request, jsonify, make_response from pdb import set_trace as breakpoint from pprint import pformat from endpoint.factory import create_endpoint from utils.version import get_version as get_api_version f...
27.972222
96
0.660775
f23f28594607e2b2c7a5d03c92c370ee065d2416
7,516
py
Python
tests/test_resources.py
FNNDSC/dacom
78083a31d247a7907ff4fd935f64263222ae96a5
[ "MIT" ]
null
null
null
tests/test_resources.py
FNNDSC/dacom
78083a31d247a7907ff4fd935f64263222ae96a5
[ "MIT" ]
null
null
null
tests/test_resources.py
FNNDSC/dacom
78083a31d247a7907ff4fd935f64263222ae96a5
[ "MIT" ]
null
null
null
import logging from pathlib import Path import shutil import os import io import time import zipfile from unittest import TestCase from unittest import mock, skip from flask import url_for from pfcon.app import create_app from pfcon.services import PmanService, ServiceException class ResourceTests(TestCase): "...
35.121495
89
0.588212
d22bfb1315602b6a4b82a0954c358bf1c3ea4f30
1,095
py
Python
tools/bazel/setup.py
Falital/codechecker
b4a7958783a923998dd9d386e89af6411c8d593c
[ "Apache-2.0" ]
null
null
null
tools/bazel/setup.py
Falital/codechecker
b4a7958783a923998dd9d386e89af6411c8d593c
[ "Apache-2.0" ]
null
null
null
tools/bazel/setup.py
Falital/codechecker
b4a7958783a923998dd9d386e89af6411c8d593c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import setuptools with open("README.md", "r", encoding="utf-8", errors="ignore") as fh: long_description = fh.read() setuptools.setup( name="bazel-compile-commands", version="0.1.0", author='CodeChecker Team (Ericsson)', description="Generate compilation database (compile_c...
31.285714
89
0.652968
1f74017c2c6ff386c963483953b8daf40c19ce19
395
py
Python
fundamentals/14-advance-python-modules/5-datetime.py
davidokun/Python
0172e4c6669dc0bdb1beab762948f0ade248bde0
[ "MIT" ]
null
null
null
fundamentals/14-advance-python-modules/5-datetime.py
davidokun/Python
0172e4c6669dc0bdb1beab762948f0ade248bde0
[ "MIT" ]
null
null
null
fundamentals/14-advance-python-modules/5-datetime.py
davidokun/Python
0172e4c6669dc0bdb1beab762948f0ade248bde0
[ "MIT" ]
null
null
null
import datetime # Create a time t = datetime.time(9, 16, 10) print(t) # Get time print(t.hour) print(t.minute) print(t.second) # Dates today = datetime.date.today() print(today) print(today.timetuple()) # Replace date d1 = datetime.date(2016, 3, 11) print(d1) d2 = d1.replace(year=2018) print(d2) # Operations d1 =...
14.107143
31
0.688608
929df4828a21413c61e8977d01b6c4f1ee7df282
9,567
py
Python
model/sketch.nyu/models/network_seg_2d.py
denyingmxd/Torchssc
9080c8aadd15d6ae6f7698ba64c6c2bae7393a24
[ "MIT" ]
null
null
null
model/sketch.nyu/models/network_seg_2d.py
denyingmxd/Torchssc
9080c8aadd15d6ae6f7698ba64c6c2bae7393a24
[ "MIT" ]
null
null
null
model/sketch.nyu/models/network_seg_2d.py
denyingmxd/Torchssc
9080c8aadd15d6ae6f7698ba64c6c2bae7393a24
[ "MIT" ]
null
null
null
# encoding: utf-8 import torch import torch.nn as nn import torch.nn.functional as F class SimpleRB(nn.Module): def __init__(self, in_channel, norm_layer, bn_momentum): super(SimpleRB, self).__init__() self.path = nn.Sequential( nn.Conv3d(in_channel, in_channel, kernel_size=3, padding=...
43.094595
120
0.598829
e364ba1b872799f2f1f243b623c62023c5db34fe
518
py
Python
v2/ansible/roles/bngsudheer.opendkim/molecule/default/tests/test_default.py
jonfairbanks/rtsp-nvr
c770c77e74a062c63fb5e2419bc00a17543da332
[ "MIT" ]
558
2017-10-04T14:33:18.000Z
2022-03-24T21:25:08.000Z
v2/ansible/roles/bngsudheer.opendkim/molecule/default/tests/test_default.py
jonfairbanks/rtsp-nvr
c770c77e74a062c63fb5e2419bc00a17543da332
[ "MIT" ]
22
2018-04-29T04:25:49.000Z
2021-08-02T17:26:02.000Z
v2/ansible/roles/bngsudheer.opendkim/molecule/default/tests/test_default.py
jonfairbanks/rtsp-nvr
c770c77e74a062c63fb5e2419bc00a17543da332
[ "MIT" ]
127
2017-11-14T19:47:27.000Z
2022-03-24T21:25:12.000Z
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') def test_hosts_file(host): f = host.file('/etc/hosts') assert f.exists assert f.user == 'root' assert f.group == 'root' def t...
21.583333
63
0.733591
3653c5e79afcf424535d23a1ab30337be8757613
28
py
Python
plugins/pelican-cite/__init__.py
mohnjahoney/website_source
edc86a869b90ae604f32e736d9d5ecd918088e6a
[ "MIT" ]
13
2020-01-27T09:02:25.000Z
2022-01-20T07:45:26.000Z
plugins/pelican-cite/__init__.py
mohnjahoney/website_source
edc86a869b90ae604f32e736d9d5ecd918088e6a
[ "MIT" ]
29
2020-03-22T06:57:57.000Z
2022-01-24T22:46:42.000Z
plugins/pelican-cite/__init__.py
mohnjahoney/website_source
edc86a869b90ae604f32e736d9d5ecd918088e6a
[ "MIT" ]
6
2020-07-10T00:13:30.000Z
2022-01-26T08:22:33.000Z
from .pelican_cite import *
14
27
0.785714
3f0d5c4f1a5d58931463792fa80851254994760d
2,148
py
Python
python/examples/postgresql.py
spk/language-examples
0c283e9ad2a5a70631458acc3275074176c1621b
[ "MIT" ]
4
2020-02-22T14:39:21.000Z
2021-03-01T20:17:38.000Z
python/examples/postgresql.py
spk/language-examples
0c283e9ad2a5a70631458acc3275074176c1621b
[ "MIT" ]
21
2019-02-21T22:37:41.000Z
2021-09-20T16:19:40.000Z
python/examples/postgresql.py
spk/language-examples
0c283e9ad2a5a70631458acc3275074176c1621b
[ "MIT" ]
6
2019-09-14T16:03:50.000Z
2021-03-01T19:39:09.000Z
import psycopg2 from platformshconfig import Config def usage_example(): # Create a new Config object to ease reading the Platform.sh environment variables. # You can alternatively use os.environ yourself. config = Config() # The 'database' relationship is generally the name of primary SQL database o...
26.85
98
0.524674
ec3ee4983825335e201c03a8d7472a539d9b9aa6
6,411
py
Python
feature_engineering_functions.py
Martina385/Kickstarter
992ddbfd3aa01eb45befba04e7ede634ec011630
[ "MIT" ]
null
null
null
feature_engineering_functions.py
Martina385/Kickstarter
992ddbfd3aa01eb45befba04e7ede634ec011630
[ "MIT" ]
null
null
null
feature_engineering_functions.py
Martina385/Kickstarter
992ddbfd3aa01eb45befba04e7ede634ec011630
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import seaborn as sns from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import train_test_split import matplotlib.pyplot as plt import time import datetime as dt import json from pathlib import Path import pickle import os, glob def string_len_w(s...
41.901961
128
0.70301
348c5f7883ea14f5c64aeb8245049b678cbeda8b
1,057
py
Python
src/array/hour_glass_sum.py
vasanthonline/python-algos
7bbdd3bf72894388f4026f4cf9f610d6a4158b8f
[ "Apache-2.0" ]
null
null
null
src/array/hour_glass_sum.py
vasanthonline/python-algos
7bbdd3bf72894388f4026f4cf9f610d6a4158b8f
[ "Apache-2.0" ]
null
null
null
src/array/hour_glass_sum.py
vasanthonline/python-algos
7bbdd3bf72894388f4026f4cf9f610d6a4158b8f
[ "Apache-2.0" ]
null
null
null
#!/bin/python3 ''' To take a 6x6 array and find the sum of each hour glass from the array. Return the maximum sum of the sums from the hour glasses. :param arr: The input 2-dimensional 6x6 array :type arr: 6x6 array :return: The maximum sum of the sums from the hour glasses. :rtype: int ''' def hourGlassS...
33.03125
128
0.555345
b1c2bbf2150af5659cacccccf1de976c11448048
4,219
py
Python
libraries/unified-model/unified_model/cli_handler.py
felixridinger/machine-learning-lab
410e2f5fecb7ea91dcec12a5b9cb9161331191bf
[ "Apache-2.0", "MIT" ]
55
2020-08-28T12:26:15.000Z
2022-02-01T08:57:26.000Z
libraries/unified-model/unified_model/cli_handler.py
felixridinger/machine-learning-lab
410e2f5fecb7ea91dcec12a5b9cb9161331191bf
[ "Apache-2.0", "MIT" ]
38
2020-09-01T17:17:22.000Z
2022-03-31T15:44:57.000Z
libraries/unified-model/unified_model/cli_handler.py
felixridinger/machine-learning-lab
410e2f5fecb7ea91dcec12a5b9cb9161331191bf
[ "Apache-2.0", "MIT" ]
19
2020-08-31T16:38:09.000Z
2022-03-09T13:59:58.000Z
from __future__ import absolute_import, print_function import logging import sys import click from unified_model import compatibility_utils from unified_model import model_handler from unified_model.server import api_server MODEL_PATH = click.option("--model-path", "-m", metavar="PATH", required=False, type=click.P...
36.686957
128
0.67196
3ae435f6d3d5b666093236c9bb32ae8850a6c948
180
py
Python
Python/math/test_plotting.py
AlexLemna/learns
7282d93f4c6ed7692443ca826ca97a2709f23e41
[ "Unlicense" ]
null
null
null
Python/math/test_plotting.py
AlexLemna/learns
7282d93f4c6ed7692443ca826ca97a2709f23e41
[ "Unlicense" ]
null
null
null
Python/math/test_plotting.py
AlexLemna/learns
7282d93f4c6ed7692443ca826ca97a2709f23e41
[ "Unlicense" ]
null
null
null
import matplotlib.pyplot as pt some_numbers = [1, 2, 3, 5.5, 8, 22, 3, 7, 7, 21] other_numbers = [0, 3, 3, 14, 9, 9, 4.7, 3, 5, 7] pt.plot(some_numbers, other_numbers) pt.show()
22.5
49
0.627778
7aa5d390ab4f9e8f73bb4ed1df44ba55c4330e64
4,755
py
Python
wavefront_api_client/models/response_container_user_api_token.py
PowerOlive/python-client
eebda67381fcf893914c309103878236b609a70b
[ "Apache-2.0" ]
11
2016-05-30T17:16:45.000Z
2021-06-11T19:32:59.000Z
wavefront_api_client/models/response_container_user_api_token.py
PowerOlive/python-client
eebda67381fcf893914c309103878236b609a70b
[ "Apache-2.0" ]
25
2016-05-02T23:05:19.000Z
2020-11-18T22:43:20.000Z
wavefront_api_client/models/response_container_user_api_token.py
PowerOlive/python-client
eebda67381fcf893914c309103878236b609a70b
[ "Apache-2.0" ]
30
2016-04-29T17:17:11.000Z
2022-02-11T04:58:37.000Z
# coding: utf-8 """ Wavefront REST API <p>The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.</p><p>When you make REST API calls outside the Wavefront REST ...
31.490066
409
0.610936
7d9e3048b8e13f4e0c06a13ccf9f675c7c0feebc
12,332
py
Python
sdk/python/pulumi_azure_nextgen/servicefabric/v20200101preview/get_node_type.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/servicefabric/v20200101preview/get_node_type.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/servicefabric/v20200101preview/get_node_type.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
42.524138
379
0.674505
4a594674f143afda1e1604cf798d5b3ad76b7426
18
py
Python
cadastro.py
EderBevacqua/DevOps
4fd5f72c5362a8ab3845321fc898f43804fd3cd0
[ "Apache-2.0" ]
2
2021-02-10T21:28:26.000Z
2021-08-18T19:52:28.000Z
cadastro.py
EderBevacqua/DevOps
4fd5f72c5362a8ab3845321fc898f43804fd3cd0
[ "Apache-2.0" ]
null
null
null
cadastro.py
EderBevacqua/DevOps
4fd5f72c5362a8ab3845321fc898f43804fd3cd0
[ "Apache-2.0" ]
null
null
null
print("Olá mundo")
18
18
0.722222
7757da58bf599d4ae7661c1076d3a285fbee6ef2
2,360
py
Python
examples/teleop_example.py
chstetco/assistive-gym
cc797c86051ed4d09688d60ce9f378b884547264
[ "MIT" ]
216
2019-10-11T01:33:50.000Z
2022-03-28T23:24:58.000Z
examples/teleop_example.py
chstetco/assistive-gym
cc797c86051ed4d09688d60ce9f378b884547264
[ "MIT" ]
19
2019-12-18T03:28:56.000Z
2021-11-10T22:02:01.000Z
examples/teleop_example.py
chstetco/assistive-gym
cc797c86051ed4d09688d60ce9f378b884547264
[ "MIT" ]
62
2019-10-12T00:42:43.000Z
2022-03-28T01:26:05.000Z
import gym, assistive_gym import pybullet as p import numpy as np env = gym.make('FeedingSawyer-v1') env.render() observation = env.reset() # Map keys to position and orientation end effector movements pos_keys_actions = {ord('j'): np.array([-0.01, 0, 0]), ord('l'): np.array([0.01, 0, 0]), ord('u'...
50.212766
190
0.664831
613ae120ce50360d8de3b55e30df0d1f50c7d421
4,011
py
Python
shaker/tests/test_agent.py
mail2nsrajesh/shaker
610d47957481b8018a0fb38a47a634a9c7fbc6cc
[ "Apache-2.0" ]
null
null
null
shaker/tests/test_agent.py
mail2nsrajesh/shaker
610d47957481b8018a0fb38a47a634a9c7fbc6cc
[ "Apache-2.0" ]
null
null
null
shaker/tests/test_agent.py
mail2nsrajesh/shaker
610d47957481b8018a0fb38a47a634a9c7fbc6cc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
34.282051
79
0.670656
ce2981cdd5ab9a7b248f5afe572b170ecb7db9e1
414
py
Python
CyberGuard_v2/secrets/secrets.py
CyberTriber/python
3d9cffa4f6fc3a3348bc2ce8070c243f047927e1
[ "MIT" ]
1
2018-09-16T05:50:52.000Z
2018-09-16T05:50:52.000Z
CyberGuard_v2/secrets/secrets.py
CyberTriber/python
3d9cffa4f6fc3a3348bc2ce8070c243f047927e1
[ "MIT" ]
null
null
null
CyberGuard_v2/secrets/secrets.py
CyberTriber/python
3d9cffa4f6fc3a3348bc2ce8070c243f047927e1
[ "MIT" ]
null
null
null
# coding=utf-8 # Firebase secrets CONFIG = { "apiKey": <firebase_api_key>, "authDomain": "<project_name>.firebaseapp.com", "databaseURL": "https://<project_name>.firebaseio.com", "storageBucket": "<project_name>.appspot.com", "serviceAccount": "./secrets/firebase.json" } FBEMAIL = '<name>@discord.app' FBPASS...
24.352941
57
0.714976
fb7f2ccee0a3ded2f34467d40e47bae199be3fce
18,366
py
Python
src/pyroofit/plotting.py
simonUU/PyrooFit
cacd0b7624a648276835c31e1a4b4d27284ef69f
[ "MIT" ]
11
2018-09-06T11:37:10.000Z
2021-08-25T07:15:38.000Z
src/pyroofit/plotting.py
simonUU/PyrooFit
cacd0b7624a648276835c31e1a4b4d27284ef69f
[ "MIT" ]
7
2019-01-14T12:32:20.000Z
2021-03-31T17:35:27.000Z
src/pyroofit/plotting.py
simonUU/PyrooFit
cacd0b7624a648276835c31e1a4b4d27284ef69f
[ "MIT" ]
10
2018-10-22T13:53:22.000Z
2022-01-24T11:56:17.000Z
# -*- coding: utf-8 -*- """ Plot function for the PDF class Tools to make nice plots from RooFit pdfs. The function fast_plot is used by the PDF class to make default plots. Todo: * Plotter class containing the RooFit frame * Equal length ticks * Provide matplolib functionality """ from __future__ impor...
37.712526
170
0.617282
b184113847200f5b082e012a49155198ad3dc863
1,672
py
Python
Python/shortest-distance-from-all-buildings.py
black-shadows/LeetCode-Solutions
b1692583f7b710943ffb19b392b8bf64845b5d7a
[ "Fair", "Unlicense" ]
null
null
null
Python/shortest-distance-from-all-buildings.py
black-shadows/LeetCode-Solutions
b1692583f7b710943ffb19b392b8bf64845b5d7a
[ "Fair", "Unlicense" ]
null
null
null
Python/shortest-distance-from-all-buildings.py
black-shadows/LeetCode-Solutions
b1692583f7b710943ffb19b392b8bf64845b5d7a
[ "Fair", "Unlicense" ]
null
null
null
# Time: O(k * m * n), k is the number of the buildings # Space: O(m * n) class Solution(object): def shortestDistance(self, grid): """ :type grid: List[List[int]] :rtype: int """ def bfs(grid, dists, cnts, x, y): dist, m, n = 0, len(grid), len(grid[0])...
34.833333
96
0.393541
37b78476aaa166f10b9221d6e31c2dcab4516a26
14,392
py
Python
bin/install/resources/starcluster/plugins/automount.py
aguadev/aguadev
db22858faa425b7af2743d98c31dabef644e519c
[ "MIT" ]
1
2022-01-26T14:09:30.000Z
2022-01-26T14:09:30.000Z
bin/install/resources/starcluster/plugins/automount.py
aguadev/aguadev
db22858faa425b7af2743d98c31dabef644e519c
[ "MIT" ]
null
null
null
bin/install/resources/starcluster/plugins/automount.py
aguadev/aguadev
db22858faa425b7af2743d98c31dabef644e519c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import re import string import sys import time import posixpath import subprocess from starcluster.clustersetup import ClusterSetup from starcluster.logger import log class NfsShares (ClusterSetup): """ Automatically mounts external NFS shares on StarCluster nodes """ d...
41.356322
130
0.603877
f8aa6d581c25bb06744dd4e43854b79ed16922a3
14,852
py
Python
doit_doc_template/core/yaml.py
i386x/abcdoc
04246ce33a480ce3039832db80d0f5c86a86ff54
[ "MIT" ]
null
null
null
doit_doc_template/core/yaml.py
i386x/abcdoc
04246ce33a480ce3039832db80d0f5c86a86ff54
[ "MIT" ]
null
null
null
doit_doc_template/core/yaml.py
i386x/abcdoc
04246ce33a480ce3039832db80d0f5c86a86ff54
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #! \file ~/doit_doc_template/core/yaml.py #! \author Jiří Kučera, <sanczes AT gmail.com> #! \stamp 2019-05-18 16:03:58 +0200 #! \project DoIt! Doc: Sphinx Extension for DoIt! Documentation #! \license MIT #! \version See doit_doc_temp...
25.301533
79
0.5946
0e35cec481bf2319eb9437badeca860361bf0255
40,474
py
Python
celery/concurrency/processes/pool.py
cangove/celery
20be2ef744efc52d1e11ef7dc3ae0edd53dcb8f9
[ "BSD-3-Clause" ]
1
2016-08-19T19:42:22.000Z
2016-08-19T19:42:22.000Z
celery/concurrency/processes/pool.py
cangove/celery
20be2ef744efc52d1e11ef7dc3ae0edd53dcb8f9
[ "BSD-3-Clause" ]
null
null
null
celery/concurrency/processes/pool.py
cangove/celery
20be2ef744efc52d1e11ef7dc3ae0edd53dcb8f9
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Module providing the `Pool` class for managing a process pool # # multiprocessing/pool.py # # Copyright (c) 2007-2008, R Oudkerk --- see COPYING.txt # from __future__ import absolute_import # # Imports # import collections import errno import itertools import logging import os import signa...
31.819182
79
0.554282
7811bebd99ec25f433c0a6ed27e8a627c3b61246
1,982
py
Python
RCJ_pcms_base/scripts/action_commands/go_to_point.py
FablabHome/The_Essense_of_the_Grey_Region
6385ada0879bdc6c00cb707192841fdab9ab7bf1
[ "MIT" ]
1
2021-09-23T09:42:32.000Z
2021-09-23T09:42:32.000Z
RCJ_pcms_base/scripts/action_commands/go_to_point.py
FablabHome/The_Essense_of_the_Grey_Region
6385ada0879bdc6c00cb707192841fdab9ab7bf1
[ "MIT" ]
null
null
null
RCJ_pcms_base/scripts/action_commands/go_to_point.py
FablabHome/The_Essense_of_the_Grey_Region
6385ada0879bdc6c00cb707192841fdab9ab7bf1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import json import sys from os import path import rospy from geometry_msgs.msg import PoseStamped from rospkg import RosPack def main(args, goal_pub): global config msg = PoseStamped() if args['point']: x, y, z, w = args['point'] else: try: ...
29.147059
76
0.584763
433ee25d9a374330a03552535f57c0612f6abbd5
1,134
py
Python
google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/errors/types/operator_error.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/errors/types/operator_error.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/errors/types/operator_error.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
29.076923
74
0.709877
fd0e2fe78c47cd90e97c5735bbb277a23664626c
8,078
py
Python
django/apps/config.py
doismellburning/django
039465a6a7a18f48ea77ceadb6949990c0ec92e1
[ "BSD-3-Clause" ]
null
null
null
django/apps/config.py
doismellburning/django
039465a6a7a18f48ea77ceadb6949990c0ec92e1
[ "BSD-3-Clause" ]
null
null
null
django/apps/config.py
doismellburning/django
039465a6a7a18f48ea77ceadb6949990c0ec92e1
[ "BSD-3-Clause" ]
null
null
null
from importlib import import_module import os from django.core.exceptions import AppRegistryNotReady, ImproperlyConfigured from django.utils.module_loading import module_has_submodule from django.utils._os import upath MODELS_MODULE_NAME = 'models' class AppConfig(object): """ Class representing a Django a...
39.404878
81
0.617108
dce732a2e499ad42ab8e275ba3b4a55eaee281b5
2,868
py
Python
src/sima/hla/controlpanel.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/hla/controlpanel.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/hla/controlpanel.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
# This an autogenerated file # # Generated with ControlPanel from typing import Dict,Sequence,List from dmt.entity import Entity from dmt.blueprint import Blueprint from .blueprints.controlpanel import ControlPanelBlueprint from typing import Dict from sima.custom.customcomponent import CustomComponent from sima.sima....
25.837838
77
0.599721
6b2e9b0b58d70e87a28968a46061fc81cf050717
378
py
Python
base_app/other_app/models.py
cs-fullstack-fall-2018/django-form-post1-bachmanryan
377b0c46b7f6aac02b4fe164b612082a0643f0bd
[ "Apache-2.0" ]
null
null
null
base_app/other_app/models.py
cs-fullstack-fall-2018/django-form-post1-bachmanryan
377b0c46b7f6aac02b4fe164b612082a0643f0bd
[ "Apache-2.0" ]
null
null
null
base_app/other_app/models.py
cs-fullstack-fall-2018/django-form-post1-bachmanryan
377b0c46b7f6aac02b4fe164b612082a0643f0bd
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.utils import timezone class Game(models.Model): name = models.CharField(max_length=100) genre = models.CharField(max_length=100) release_date = models.DateTimeField(default=timezone.now) def release(self): self.release_date = timezone.now() sel...
23.625
61
0.698413
de23fa276fd8c9edb6f7641671a3688d1647ee41
3,907
py
Python
dpr/index_simple_corpus.py
IBM/kgi-slot-filling
24f8005bc1d010746e046a8c2ec292a2222fff00
[ "Apache-2.0" ]
21
2021-05-27T23:14:19.000Z
2022-02-10T06:36:55.000Z
dpr/index_simple_corpus.py
IBM/retrieve-write-slot-filling
24f8005bc1d010746e046a8c2ec292a2222fff00
[ "Apache-2.0" ]
1
2021-11-26T04:00:19.000Z
2021-11-26T04:00:19.000Z
dpr/index_simple_corpus.py
IBM/kgi-slot-filling
24f8005bc1d010746e046a8c2ec292a2222fff00
[ "Apache-2.0" ]
3
2021-06-04T13:14:22.000Z
2022-03-09T14:45:50.000Z
from util.line_corpus import read_lines, write_open, jsonl_files import ujson as json import logging import os from util.args_help import fill_from_args import torch from typing import List import numpy as np from dpr.simple_mmap_dataset import gzip_str from dpr.faiss_index import build_index, IndexOptions import base6...
38.683168
123
0.730484