hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
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
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
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
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f763ba4a7c65936d821b1e5dc3be6eda5f0423c4
8,774
py
Python
Languages/Ruby/Tests/Legacy/Compat/gen_singleton_graph.py
rifraf/IronRuby_Framework_4.7.2
f0dad68e8235cd414e08c13032eb91ab3f54b844
[ "MIT" ]
null
null
null
Languages/Ruby/Tests/Legacy/Compat/gen_singleton_graph.py
rifraf/IronRuby_Framework_4.7.2
f0dad68e8235cd414e08c13032eb91ab3f54b844
[ "MIT" ]
null
null
null
Languages/Ruby/Tests/Legacy/Compat/gen_singleton_graph.py
rifraf/IronRuby_Framework_4.7.2
f0dad68e8235cd414e08c13032eb91ab3f54b844
[ "MIT" ]
null
null
null
# **************************************************************************** # # Copyright (c) Microsoft Corporation. # # This source code is subject to terms and conditions of the Apache License, Version 2.0. A # copy of the license can be found in the License.html file at the root of this distribution. If # you ...
34.956175
188
0.553339
# which access instance/class variables (this part is ugly, not sure how I can/should simplify it) from compat_common import * # globals entities = [] count = 0 class Entity: def __init__(self, name, body, depends=None): self.name = name self.body = body self.set_dependency(depends) ...
true
true
f763ba6f881ea2add19ee58bb9d8872c2a0a9c6e
62
py
Python
apps/utils/urls.py
osw4l/villas-de-san-pablo
89f00dfbbfbfee5111bd9852ddfbdb8727d10ed2
[ "MIT" ]
null
null
null
apps/utils/urls.py
osw4l/villas-de-san-pablo
89f00dfbbfbfee5111bd9852ddfbdb8727d10ed2
[ "MIT" ]
null
null
null
apps/utils/urls.py
osw4l/villas-de-san-pablo
89f00dfbbfbfee5111bd9852ddfbdb8727d10ed2
[ "MIT" ]
null
null
null
from django.conf.urls import url, include urlpatterns = [ ]
10.333333
41
0.725806
from django.conf.urls import url, include urlpatterns = [ ]
true
true
f763badd2dde45372d605cbf2c2d24bd0b21033c
3,423
py
Python
analysis/averageWeights.py
jlubo/memory-consolidation-stc
f9934760e12de324360297d7fc7902623169cb4d
[ "Apache-2.0" ]
2
2021-03-02T21:46:56.000Z
2021-06-30T03:12:07.000Z
analysis/averageWeights.py
jlubo/memory-consolidation-stc
f9934760e12de324360297d7fc7902623169cb4d
[ "Apache-2.0" ]
null
null
null
analysis/averageWeights.py
jlubo/memory-consolidation-stc
f9934760e12de324360297d7fc7902623169cb4d
[ "Apache-2.0" ]
3
2021-03-22T12:56:52.000Z
2021-09-13T07:42:36.000Z
###################################################### ### Averages early- and late-phase weight matrices ### ###################################################### ### Copyright 2019-2021 Jannik Luboeinski ### licensed under Apache-2.0 (http://www.apache.org/licenses/LICENSE-2.0) import numpy as np from pathlib impo...
26.952756
115
0.624598
import numpy as np from pathlib import Path np.set_printoptions(threshold=1e10, linewidth=200) def readWeightMatrixData(filename, Nl): try: with open(filename) as f: rawdata = f.read() except OSError: raise rawdata = rawdata.split('\n\n') rawmatrix_h = rawdata[0].split('\n') rawmatrix_z = rawdata[1]....
true
true
f763bae27967847f3eaac0c7da91d5f728fdb0e3
109
py
Python
yumemi/__init__.py
fpob/yumemi
de6c2eade70eceb6b2e39cdfdc0f47c2ea095637
[ "MIT" ]
5
2018-06-15T20:06:14.000Z
2021-06-13T18:00:52.000Z
yumemi/__init__.py
fpob/yumemi
de6c2eade70eceb6b2e39cdfdc0f47c2ea095637
[ "MIT" ]
2
2019-01-23T19:21:41.000Z
2019-04-22T08:02:55.000Z
yumemi/__init__.py
fpob/yumemi
de6c2eade70eceb6b2e39cdfdc0f47c2ea095637
[ "MIT" ]
null
null
null
__version__ = '1.3.1' from .exceptions import * from .anidb import * # flake8: noqa: F401 (unused imports)
15.571429
37
0.697248
__version__ = '1.3.1' from .exceptions import * from .anidb import *
true
true
f763bb5427a40a9a79ab75192ba6bb3c15f73388
3,216
py
Python
example/image-classification/symbol_vgg.py
Liuxg16/BrainMatrix
0ec70edd4e12dd3719d20dd14d4e24438c60326f
[ "Apache-2.0" ]
159
2016-08-23T22:13:26.000Z
2021-10-24T01:31:35.000Z
example/image-classification/symbol_vgg.py
Liuxg16/BrainMatrix
0ec70edd4e12dd3719d20dd14d4e24438c60326f
[ "Apache-2.0" ]
10
2016-08-23T05:59:07.000Z
2018-05-24T02:31:41.000Z
example/image-classification/symbol_vgg.py
Liuxg16/BrainMatrix
0ec70edd4e12dd3719d20dd14d4e24438c60326f
[ "Apache-2.0" ]
77
2016-08-21T00:35:00.000Z
2021-06-01T05:03:34.000Z
"""References: Simonyan, Karen, and Andrew Zisserman. "Very deep convolutional networks for large-scale image recognition." arXiv preprint arXiv:1409.1556 (2014). """ import find_mxnet import mxnet as mx def get_symbol(num_classes = 1000): ## define alexnet data = mx.symbol.Variable(name="data") # group 1...
51.047619
104
0.661692
import find_mxnet import mxnet as mx def get_symbol(num_classes = 1000): data = mx.symbol.Variable(name="data") conv1_1 = mx.symbol.Convolution(data=data, kernel=(3, 3), pad=(1, 1), num_filter=64, name="conv1_1") relu1_1 = mx.symbol.Activation(data=conv1_1, act_type="relu", name="relu1_1") pool...
true
true
f763bb59b6b1bcf17b10194f1f3bef4556741f07
4,912
py
Python
PyMDL/Search.py
Rocker2234/Python-MDL-API
7d57305e6b61eef466d8a36978172d10563393ed
[ "MIT" ]
4
2021-10-15T07:00:26.000Z
2022-02-24T08:37:03.000Z
PyMDL/Search.py
Rocker2234/Python-MDL-API
7d57305e6b61eef466d8a36978172d10563393ed
[ "MIT" ]
null
null
null
PyMDL/Search.py
Rocker2234/Python-MDL-API
7d57305e6b61eef466d8a36978172d10563393ed
[ "MIT" ]
null
null
null
import bs4 import requests from typing import Union, List from .Infopage import info, InfoPage class SearchResult: def __init__(self, urls: dict): self.names = tuple(urls.keys()) self.urls = urls def __getitem__(self, item): if type(item) == str: return self.urls[item] ...
32.315789
102
0.493893
import bs4 import requests from typing import Union, List from .Infopage import info, InfoPage class SearchResult: def __init__(self, urls: dict): self.names = tuple(urls.keys()) self.urls = urls def __getitem__(self, item): if type(item) == str: return self.urls[item] ...
true
true
f763bbd7c7ce98130f2ac7771468652b1935abad
896
py
Python
tools/leetcode.198.House Robber/leetcode.198.House Robber.submission0.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
4
2015-10-10T00:30:55.000Z
2020-07-27T19:45:54.000Z
tools/leetcode.198.House Robber/leetcode.198.House Robber.submission0.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
tools/leetcode.198.House Robber/leetcode.198.House Robber.submission0.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
class Solution(object): def rob(self, nums): """ :type nums: List[int] :rtype: int """ if not nums: return 0 if len(nums) == 1: return nums[0] if len(nums) == 2: return max(nums) if len(nums) == 3: return...
896
896
0.425223
class Solution(object): def rob(self, nums): """ :type nums: List[int] :rtype: int """ if not nums: return 0 if len(nums) == 1: return nums[0] if len(nums) == 2: return max(nums) if len(nums) == 3: return...
true
true
f763bdd7ae094aa75e68024a00ebc10e727ff3ae
10,449
py
Python
synwatch.py
ishivvers/astro
ff3f3b9f8ef4013157c277bbb5bf82ac1bd3287d
[ "MIT" ]
1
2015-12-06T00:19:35.000Z
2015-12-06T00:19:35.000Z
synwatch.py
ishivvers/astro
ff3f3b9f8ef4013157c277bbb5bf82ac1bd3287d
[ "MIT" ]
null
null
null
synwatch.py
ishivvers/astro
ff3f3b9f8ef4013157c277bbb5bf82ac1bd3287d
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ A command-line program that produces a live plot of the progress of a SYNAPPS task. Requires the path to the yaml of the running SYNAPPS instance and path to a running log of the SYNAPPS process as produced, for example by the following commands: ::: synapps SN2011dh.yaml > synapps.log :...
44.088608
157
0.585032
""" A command-line program that produces a live plot of the progress of a SYNAPPS task. Requires the path to the yaml of the running SYNAPPS instance and path to a running log of the SYNAPPS process as produced, for example by the following commands: ::: synapps SN2011dh.yaml > synapps.log ::: synapps sn2011dh.ya...
false
true
f763bec92b365fdeea0f11b7d1f9c6b527b83962
8,902
py
Python
image_PPAP/train_ppap.py
tgisaturday/PPAP
bac203b2c98ab9dec7b96ec44fb61cd2d778ab22
[ "MIT" ]
5
2019-07-25T08:09:22.000Z
2021-05-21T12:46:43.000Z
image_PPAP/train_ppap.py
tgisaturday/PPAP
bac203b2c98ab9dec7b96ec44fb61cd2d778ab22
[ "MIT" ]
null
null
null
image_PPAP/train_ppap.py
tgisaturday/PPAP
bac203b2c98ab9dec7b96ec44fb61cd2d778ab22
[ "MIT" ]
1
2021-11-03T09:45:19.000Z
2021-11-03T09:45:19.000Z
import tensorflow as tf import numpy as np from utils.utils import * from model import * import sys import os import math import time from utils.data_helper import data_loader from model import xavier_init, he_normal_init dataset = sys.argv[1] model_name = sys.argv[2] prev_iter = int(sys.argv[3]) mb_size, X_dim, widt...
49.18232
144
0.585149
import tensorflow as tf import numpy as np from utils.utils import * from model import * import sys import os import math import time from utils.data_helper import data_loader from model import xavier_init, he_normal_init dataset = sys.argv[1] model_name = sys.argv[2] prev_iter = int(sys.argv[3]) mb_size, X_dim, widt...
true
true
f763becda458e12b6a43b7453ade7ac69e709dbe
693
py
Python
tcenter/center.py
Suspir0n/ctext
d1192ac7e58e70319db7737e506486ab7f2d675e
[ "MIT" ]
1
2021-05-02T22:05:16.000Z
2021-05-02T22:05:16.000Z
tcenter/center.py
Suspir0n/tcenter
d1192ac7e58e70319db7737e506486ab7f2d675e
[ "MIT" ]
null
null
null
tcenter/center.py
Suspir0n/tcenter
d1192ac7e58e70319db7737e506486ab7f2d675e
[ "MIT" ]
null
null
null
def to_center(title, space, object=str()): """ This function is reponsible for centralizing the title. accepted at least two vestments. :param title: receive any title, only string. :param space: receive any value, only numbers. :param object: receive any object, ex: - . = ~ < > _ | between others. ...
36.473684
92
0.606061
def to_center(title, space, object=str()): try: if object == '': receive = f'{title:^{space}}' else: receive = f'{title:{object}^{space}}' except ValueError as err: return f'information value invalid, {err}' except TypeError as err: return f'The type v...
true
true
f763bed6765e8b50ce4be24d5f8c343e633a124c
3,298
py
Python
azext_script/compilers/az/transformer/ScriptTransformer.py
yorek/adl
d9da1b7d46c71415e38a6efe5b1c8d45b02b3704
[ "MIT" ]
null
null
null
azext_script/compilers/az/transformer/ScriptTransformer.py
yorek/adl
d9da1b7d46c71415e38a6efe5b1c8d45b02b3704
[ "MIT" ]
1
2018-10-15T05:51:38.000Z
2018-10-15T05:51:38.000Z
azext_script/compilers/az/transformer/ScriptTransformer.py
yorek/adl
d9da1b7d46c71415e38a6efe5b1c8d45b02b3704
[ "MIT" ]
1
2018-10-18T18:41:02.000Z
2018-10-18T18:41:02.000Z
from __future__ import absolute_import from lark import Transformer, Tree from lark.lexer import Token from azext_script.compilers.HandlerManager import HandlerManager from .TranspilationResult import AZCLICommand, CommandResult, ExportCommand, EmptyCommand from knack.log import get_logger logger = get_logger(__name_...
24.984848
100
0.574287
from __future__ import absolute_import from lark import Transformer, Tree from lark.lexer import Token from azext_script.compilers.HandlerManager import HandlerManager from .TranspilationResult import AZCLICommand, CommandResult, ExportCommand, EmptyCommand from knack.log import get_logger logger = get_logger(__name_...
true
true
f763bfbb74b0c9df9d7ff46ac7fef075b34b1429
1,246
py
Python
backend/patientlog/views.py
Foxnaut/PySician
4cd37e1f707dd9c36619d2580167f4c94d8414f7
[ "MIT" ]
1
2021-08-09T20:34:09.000Z
2021-08-09T20:34:09.000Z
backend/patientlog/views.py
Foxnaut/PySician
4cd37e1f707dd9c36619d2580167f4c94d8414f7
[ "MIT" ]
null
null
null
backend/patientlog/views.py
Foxnaut/PySician
4cd37e1f707dd9c36619d2580167f4c94d8414f7
[ "MIT" ]
null
null
null
from rest_framework import generics from .models import Patient,Doctor,Appt from .serializers import PatientSerializer,DoctorSerializer,ApptSerializer from django.http import HttpResponse import datetime # generic views -- core of CRUD apps # view -- takes request, returns response ''' request -- can come from fronten...
31.15
74
0.810594
from rest_framework import generics from .models import Patient,Doctor,Appt from .serializers import PatientSerializer,DoctorSerializer,ApptSerializer from django.http import HttpResponse import datetime class PatientList(generics.ListCreateAPIView): queryset = Patient.objects.all() serializer_class = PatientSerial...
true
true
f763bfe96e30d9bd2765c6563b7de3a6e5b49249
206
py
Python
blinds/views.py
BoraDowon/BackendBlackberry
e177ac6a986e57534734c009edc12faa595415cc
[ "MIT" ]
2
2018-07-14T15:15:15.000Z
2018-07-28T03:37:55.000Z
blinds/views.py
BoraDowon/BackendBlackberry
e177ac6a986e57534734c009edc12faa595415cc
[ "MIT" ]
null
null
null
blinds/views.py
BoraDowon/BackendBlackberry
e177ac6a986e57534734c009edc12faa595415cc
[ "MIT" ]
null
null
null
from rest_framework.views import APIView class BlindDetail(APIView): def get(self): pass def put(self): pass def post(self): pass def delete(self): pass
12.875
40
0.57767
from rest_framework.views import APIView class BlindDetail(APIView): def get(self): pass def put(self): pass def post(self): pass def delete(self): pass
true
true
f763c0542f53a633f6bd240235204633d348b6df
18,340
py
Python
aqev.py
jeffthenet/airquality
1680f970a78adac13ea960420c56bcba09855906
[ "MIT" ]
1
2018-03-27T15:19:45.000Z
2018-03-27T15:19:45.000Z
aqev.py
jeffthenet/airquality
1680f970a78adac13ea960420c56bcba09855906
[ "MIT" ]
10
2017-02-15T22:35:35.000Z
2017-03-27T17:29:33.000Z
aqev.py
jeffthenet/airquality
1680f970a78adac13ea960420c56bcba09855906
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Air quality monitoring # Science project based on RaspberryPi, GrovePi and Grove sensors and actuators # ## License: Open Source The MIT License (MIT) # LIBRARIES WE ARE USING import os import time from ISStreamer.Streamer import Streamer import atexit # date and time impo...
39.356223
193
0.595692
import os import time from ISStreamer.Streamer import Streamer import atexit import datetime from pytz import timezone from tkinter import * import tkFont import grovepi import grove_co2_lib import grove_sensor_oo_lib BUCKET_NAME_AQ = "Air Quality Monitoring" BUCKET_KEY_AQ = "20070308-EV" ACCESS_KEY = "0Vcs79Qnlz...
true
true
f763c15cc58af88c33f406fba658a6d99f9d73af
10,282
py
Python
hottbox/core/_meta.py
adamurban98/hottbox
26580018ec6d38a1b08266c04ce4408c9e276130
[ "Apache-2.0" ]
167
2018-05-07T10:31:00.000Z
2022-02-24T19:20:31.000Z
hottbox/core/_meta.py
adamurban98/hottbox
26580018ec6d38a1b08266c04ce4408c9e276130
[ "Apache-2.0" ]
19
2018-05-10T13:26:39.000Z
2020-01-31T12:49:27.000Z
hottbox/core/_meta.py
adamurban98/hottbox
26580018ec6d38a1b08266c04ce4408c9e276130
[ "Apache-2.0" ]
24
2018-04-02T17:16:50.000Z
2021-12-07T06:21:40.000Z
""" Classes that bring interpretability into tensor representations """ import itertools class State(object): """ This class describes state of the ``Tensor`` and tracks reshaping modifications Attributes ---------- _normal_shape : tuple Shape of a ``Tensor`` object in normal format (without ...
28.016349
117
0.534818
import itertools class State(object): def __init__(self, normal_shape, rtype=None, mode_order=None) -> None: normal_mode_order_ = tuple([i] for i in range(len(normal_shape))) self._transformations = [("Init", normal_mode_order_)] self._normal_shape = tuple(i for i in normal_shape) ...
true
true
f763c18d293e4cd4e92b8b8dfc967e93e845a249
428
py
Python
backend/foodapp/geolocate.py
RaitzeR/FinnBros
a2d7e3e755af7bb22bb2ce779ea1f36c6bed961b
[ "MIT" ]
null
null
null
backend/foodapp/geolocate.py
RaitzeR/FinnBros
a2d7e3e755af7bb22bb2ce779ea1f36c6bed961b
[ "MIT" ]
10
2020-06-05T18:08:03.000Z
2022-03-11T23:19:52.000Z
backend/foodapp/geolocate.py
RaitzeR/FinnBros
a2d7e3e755af7bb22bb2ce779ea1f36c6bed961b
[ "MIT" ]
null
null
null
import googlemaps class GeoLocate: def __init__(self, address=None, city=None, country=None): self.gmaps = googlemaps.Client(key="AIzaSyC1ullKaTqRdkIy8djqWq7pIkh5A1JaINQ") self.geocode = self.geo_locate(address, city, country) def geo_locate(self, address, city, country): geocode = s...
32.923077
85
0.679907
import googlemaps class GeoLocate: def __init__(self, address=None, city=None, country=None): self.gmaps = googlemaps.Client(key="AIzaSyC1ullKaTqRdkIy8djqWq7pIkh5A1JaINQ") self.geocode = self.geo_locate(address, city, country) def geo_locate(self, address, city, country): geocode = s...
true
true
f763c27c3db0187e46684fdffca6e9909ddf8253
867
py
Python
GodotFacebook/config.py
pratikprajapati30/FBloginGodotiOS
0da58013729b3382ea52472da60218e9aa5b7a96
[ "Apache-2.0" ]
3
2019-10-24T12:24:49.000Z
2020-09-03T14:10:17.000Z
GodotFacebook/config.py
pratikprajapati30/FBloginGodotiOS
0da58013729b3382ea52472da60218e9aa5b7a96
[ "Apache-2.0" ]
1
2021-02-22T04:07:19.000Z
2021-02-23T06:51:40.000Z
GodotFacebook/config.py
pratikprajapati30/FBloginGodotiOS
0da58013729b3382ea52472da60218e9aa5b7a96
[ "Apache-2.0" ]
null
null
null
def can_build(env, plat): return plat=="android" or plat=="iphone" def configure(env): if (env['platform'] == 'android'): env.android_add_maven_repository("url 'https://maven.google.com'") #env.android_add_default_config("manifestPlaceholders = [FACEBOOK_APP_ID: '843075892565403']") env...
51
154
0.683968
def can_build(env, plat): return plat=="android" or plat=="iphone" def configure(env): if (env['platform'] == 'android'): env.android_add_maven_repository("url 'https://maven.google.com'") env.android_add_dependency("compile 'com.facebook.android:facebook-android-sdk:4.33.+'") e...
false
true
f763c48d28e98b7f218f0746b786fcc2ffc25aba
82
py
Python
Problem 001-010/p001.py
bgaborg/euler
712d8ea6a46cc334a7b38535a8d25e928a1c4a80
[ "MIT" ]
1
2015-12-15T17:57:11.000Z
2015-12-15T17:57:11.000Z
Problem 001-010/p001.py
bgaborg/euler
712d8ea6a46cc334a7b38535a8d25e928a1c4a80
[ "MIT" ]
null
null
null
Problem 001-010/p001.py
bgaborg/euler
712d8ea6a46cc334a7b38535a8d25e928a1c4a80
[ "MIT" ]
null
null
null
__author__ = 'bg' class p001: def __init__(self): nums = range(2, 50)
16.4
27
0.585366
__author__ = 'bg' class p001: def __init__(self): nums = range(2, 50)
true
true
f763c5903ebdc7e7831c20dd336de57532e3c968
1,862
py
Python
nextdl/extractor/jwplatform.py
devenu85/nextdl
0b458f556e2e0be80cb94bd9a9b1405ad2e9182d
[ "MIT" ]
1
2021-12-19T13:55:20.000Z
2021-12-19T13:55:20.000Z
nextdl/extractor/jwplatform.py
devenu85/nextdl
0b458f556e2e0be80cb94bd9a9b1405ad2e9182d
[ "MIT" ]
null
null
null
nextdl/extractor/jwplatform.py
devenu85/nextdl
0b458f556e2e0be80cb94bd9a9b1405ad2e9182d
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals import re from ..utils import unsmuggle_url from .common import InfoExtractor class JWPlatformIE(InfoExtractor): _VALID_URL = r"(?:https?://(?:content\.jwplatform|cdn\.jwplayer)\.com/(?:(?:feed|player|thumb|preview)s|jw6|v2/media)/|jwplatform:)(?P<id>[a-zA...
33.854545
158
0.571429
from __future__ import unicode_literals import re from ..utils import unsmuggle_url from .common import InfoExtractor class JWPlatformIE(InfoExtractor): _VALID_URL = r"(?:https?://(?:content\.jwplatform|cdn\.jwplayer)\.com/(?:(?:feed|player|thumb|preview)s|jw6|v2/media)/|jwplatform:)(?P<id>[a-zA-Z0-9]{8})" ...
true
true
f763c6c2d115c0fd960c9450b851a5eba33d5563
142
py
Python
restF/apps.py
GraceMwende/ReviewApp
51f287056f33e0fd98431f1fa5a66259ae31a3d8
[ "MIT" ]
null
null
null
restF/apps.py
GraceMwende/ReviewApp
51f287056f33e0fd98431f1fa5a66259ae31a3d8
[ "MIT" ]
null
null
null
restF/apps.py
GraceMwende/ReviewApp
51f287056f33e0fd98431f1fa5a66259ae31a3d8
[ "MIT" ]
null
null
null
from django.apps import AppConfig class RestfConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'restF'
20.285714
56
0.753521
from django.apps import AppConfig class RestfConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'restF'
true
true
f763c72ae4464068009c6ea5af48e8fd7909615f
866
py
Python
day50/problem.py
Nitin-Diwakar/100-days-of-code
637006b111054ab9a3b81867d3395fefc6584f02
[ "MIT" ]
1
2021-04-24T11:51:00.000Z
2021-04-24T11:51:00.000Z
day50/problem.py
Nitin-Diwakar/100-days-of-code
637006b111054ab9a3b81867d3395fefc6584f02
[ "MIT" ]
null
null
null
day50/problem.py
Nitin-Diwakar/100-days-of-code
637006b111054ab9a3b81867d3395fefc6584f02
[ "MIT" ]
1
2021-07-13T17:59:38.000Z
2021-07-13T17:59:38.000Z
def magic_square_test(my_matrix): iSize = len(my_matrix[0]) sum_list = [] #Horizontal Part: sum_list.extend([sum (lines) for lines in my_matrix]) #Vertical Part: for col in range(iSize): sum_list.append(sum(row[col] for row in my_matrix)) #Diagonals Part ...
24.055556
67
0.547344
def magic_square_test(my_matrix): iSize = len(my_matrix[0]) sum_list = [] sum_list.extend([sum (lines) for lines in my_matrix]) for col in range(iSize): sum_list.append(sum(row[col] for row in my_matrix)) result1 = 0 for i in range(0,iSize): ...
true
true
f763c7e4205f8aca60cad3ff3166c98c4deac24a
588
py
Python
rpaas/flower_uimodules.py
pedrokiefer/rpaas
7e2285ef4fbd3959109eead15c82d8ff3accdc94
[ "BSD-3-Clause" ]
39
2015-01-22T14:06:01.000Z
2021-03-26T15:35:24.000Z
rpaas/flower_uimodules.py
pedrokiefer/rpaas
7e2285ef4fbd3959109eead15c82d8ff3accdc94
[ "BSD-3-Clause" ]
31
2015-01-27T12:23:38.000Z
2018-11-05T12:50:58.000Z
rpaas/flower_uimodules.py
pedrokiefer/rpaas
7e2285ef4fbd3959109eead15c82d8ff3accdc94
[ "BSD-3-Clause" ]
21
2015-06-16T20:42:37.000Z
2021-08-08T22:12:23.000Z
import tornado.web class FixTasks(tornado.web.UIModule): def embedded_css(self): return """ #tasks-table, .dataTable { table-layout: fixed; } #tasks-table th:nth-child(3), .dataTable th:nth-child(3) { width: 50px !important; } #tasks-table th:nth-child(4), .dataTable th:nth-child(4) { width: 1...
21
58
0.644558
import tornado.web class FixTasks(tornado.web.UIModule): def embedded_css(self): return """ #tasks-table, .dataTable { table-layout: fixed; } #tasks-table th:nth-child(3), .dataTable th:nth-child(3) { width: 50px !important; } #tasks-table th:nth-child(4), .dataTable th:nth-child(4) { width: 1...
true
true
f763c838915b879755cc2f5259e6bab5fd951226
5,414
py
Python
tests/functional/simple_snapshot/test_select_exclude_snapshot.py
tomasfarias/dbt-core
ed5df342ca5d99c5e6971ee6d11c8cf3e6e263b3
[ "Apache-2.0" ]
799
2021-10-13T21:40:33.000Z
2022-03-31T16:19:31.000Z
tests/functional/simple_snapshot/test_select_exclude_snapshot.py
tomasfarias/dbt-core
ed5df342ca5d99c5e6971ee6d11c8cf3e6e263b3
[ "Apache-2.0" ]
939
2021-10-13T17:45:24.000Z
2022-03-31T22:09:58.000Z
tests/functional/simple_snapshot/test_select_exclude_snapshot.py
tomasfarias/dbt-core
ed5df342ca5d99c5e6971ee6d11c8cf3e6e263b3
[ "Apache-2.0" ]
175
2021-10-14T18:59:06.000Z
2022-03-31T16:17:32.000Z
import os import pytest from dbt.tests.util import run_dbt, check_relations_equal, check_table_does_not_exist from tests.functional.simple_snapshot.fixtures import ( seeds__seed_newcol_csv, seeds__seed_csv, models__schema_yml, models__ref_snapshot_sql, macros__test_no_overlaps_sql, snapshots_pg_...
34.705128
95
0.713521
import os import pytest from dbt.tests.util import run_dbt, check_relations_equal, check_table_does_not_exist from tests.functional.simple_snapshot.fixtures import ( seeds__seed_newcol_csv, seeds__seed_csv, models__schema_yml, models__ref_snapshot_sql, macros__test_no_overlaps_sql, snapshots_pg_...
true
true
f763c92418732ac22c4df2e6388cdaecab8f0389
3,828
py
Python
integrationtest/vm/multihosts/migrate/test_migrate_stopped_vm_imagecache_cleanup.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
1
2021-03-21T12:41:11.000Z
2021-03-21T12:41:11.000Z
integrationtest/vm/multihosts/migrate/test_migrate_stopped_vm_imagecache_cleanup.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
null
null
null
integrationtest/vm/multihosts/migrate/test_migrate_stopped_vm_imagecache_cleanup.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
1
2017-05-19T06:40:40.000Z
2017-05-19T06:40:40.000Z
''' New Integration test for testing imagecache cleanup after vm migration between hosts. @author: quarkonics ''' import os import zstackwoodpecker.test_util as test_util import zstackwoodpecker.test_lib as test_lib import zstackwoodpecker.test_state as test_state import zstackwoodpecker.operations.resour...
39.875
99
0.738245
import os import zstackwoodpecker.test_util as test_util import zstackwoodpecker.test_lib as test_lib import zstackwoodpecker.test_state as test_state import zstackwoodpecker.operations.resource_operations as res_ops import zstackwoodpecker.operations.primarystorage_operations as ps_ops import zstackwoodpecker....
true
true
f763c9fca1f291fa6c721aa4d647e95fe8a55414
13,809
py
Python
main.py
kicw118/contribution
020f7a45ce91f5e8a66ae4ee2718c909dfb20be0
[ "MIT" ]
1
2020-09-14T03:26:36.000Z
2020-09-14T03:26:36.000Z
main.py
kicw118/contribution
020f7a45ce91f5e8a66ae4ee2718c909dfb20be0
[ "MIT" ]
null
null
null
main.py
kicw118/contribution
020f7a45ce91f5e8a66ae4ee2718c909dfb20be0
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import time import json import telegram.ext import telegram import sys import datetime import os import logging import threading import six if six.PY2: reload(sys) sys.setdefaultencoding('utf8') Version_Code = 'v1.0.0' logging.basicConfig(level=l...
41.593373
91
0.543848
import time import json import telegram.ext import telegram import sys import datetime import os import logging import threading import six if six.PY2: reload(sys) sys.setdefaultencoding('utf8') Version_Code = 'v1.0.0' logging.basicConfig(level=logging.INFO, format='%(...
true
true
f763cb2c7da7da1a9f15e9d203976cb89c4c6241
9,770
py
Python
example_project/registration/tests/models.py
lincolnloop/django-activity-stream
b1b4884624fab982b35fbcbd28ed321d12e3d054
[ "BSD-3-Clause" ]
28
2016-01-27T04:27:40.000Z
2021-09-13T18:42:15.000Z
example_project/registration/tests/models.py
mattcaldwell/django-activity-stream
db9fd4038c1ac19d817c6be4b9836d1c3e68129a
[ "BSD-3-Clause" ]
60
2017-10-10T21:49:26.000Z
2021-06-10T19:12:42.000Z
example_project/registration/tests/models.py
mattcaldwell/django-activity-stream
db9fd4038c1ac19d817c6be4b9836d1c3e68129a
[ "BSD-3-Clause" ]
21
2016-01-17T18:29:59.000Z
2021-11-18T10:51:25.000Z
import datetime import re from django.conf import settings from django.contrib.auth.models import User from django.contrib.sites.models import Site from django.core import mail from django.core import management from django.test import TestCase from django.utils.hashcompat import sha_constructor from registration.mod...
43.230088
104
0.605937
import datetime import re from django.conf import settings from django.contrib.auth.models import User from django.contrib.sites.models import Site from django.core import mail from django.core import management from django.test import TestCase from django.utils.hashcompat import sha_constructor from registration.mod...
true
true
f763cc0293c71bc4cd013ef3331903a15a10e840
625
py
Python
manage.py
syz247179876/e_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
7
2021-04-10T13:20:56.000Z
2022-03-29T15:00:29.000Z
manage.py
syz247179876/E_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
9
2021-05-11T03:53:31.000Z
2022-03-12T00:58:03.000Z
manage.py
syz247179876/E_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
2
2020-11-24T08:59:22.000Z
2020-11-24T14:10:59.000Z
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Emall.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportEr...
28.409091
73
0.6816
import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Emall.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's installed and " ...
true
true
f763cc88c98f8ddd8a052c8da1e3298f2a70f104
21,258
py
Python
reinforcement_learning/rl_deepracer_robomaker_coach_gazebo/src/markov/evaluation_worker.py
RedMokeys/amazon-sagemaker-examples
a9b07c008c549383c7c0b15cc50f7569c9dbb9f6
[ "Apache-2.0" ]
2
2020-11-03T00:53:17.000Z
2020-11-12T07:10:14.000Z
reinforcement_learning/rl_deepracer_robomaker_coach_gazebo/src/markov/evaluation_worker.py
RedMokeys/amazon-sagemaker-examples
a9b07c008c549383c7c0b15cc50f7569c9dbb9f6
[ "Apache-2.0" ]
2
2020-02-20T01:38:36.000Z
2020-02-20T18:24:23.000Z
reinforcement_learning/rl_deepracer_robomaker_coach_gazebo/src/markov/evaluation_worker.py
RedMokeys/amazon-sagemaker-examples
a9b07c008c549383c7c0b15cc50f7569c9dbb9f6
[ "Apache-2.0" ]
1
2022-02-01T07:21:19.000Z
2022-02-01T07:21:19.000Z
'''This module is responsible for launching evaluation jobs''' import argparse import json import logging import os import time import rospy from rl_coach.base_parameters import TaskParameters from rl_coach.core_types import EnvironmentSteps from rl_coach.data_stores.data_store import SyncFiles from markov import util...
54.507692
115
0.65914
import argparse import json import logging import os import time import rospy from rl_coach.base_parameters import TaskParameters from rl_coach.core_types import EnvironmentSteps from rl_coach.data_stores.data_store import SyncFiles from markov import utils from markov.log_handler.logger import Logger from markov.log_...
true
true
f763ce123dfc557d15160875a5155c9d6269fbfa
40,866
py
Python
tensorflow/python/tpu/tpu_embedding_v2_utils.py
wainshine/tensorflow
dc7a8dc8546c679b9c7b3df7494ce4506bfc1a6d
[ "Apache-2.0" ]
54
2017-06-17T14:07:48.000Z
2022-03-29T02:11:20.000Z
tensorflow/python/tpu/tpu_embedding_v2_utils.py
wainshine/tensorflow
dc7a8dc8546c679b9c7b3df7494ce4506bfc1a6d
[ "Apache-2.0" ]
14
2018-08-11T00:55:13.000Z
2022-03-14T23:24:30.000Z
tensorflow/python/tpu/tpu_embedding_v2_utils.py
wainshine/tensorflow
dc7a8dc8546c679b9c7b3df7494ce4506bfc1a6d
[ "Apache-2.0" ]
11
2018-04-19T22:36:01.000Z
2021-08-02T08:44:43.000Z
# Copyright 2020 The TensorFlow 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 applica...
43.107595
128
0.71524
import abc import math import typing from typing import Any, Dict, Callable, List, Optional, Text, Tuple, TypeVar, Union from absl import logging import six from tensorflow.core.protobuf.tpu import optimization_parameters_pb2 from tensorflow.core.protobuf.tpu import tpu_embedding_configuration_pb2 from tensorflow.py...
true
true
f763ce619bb43eee116b2a0645cd43814e9b6a11
28,573
py
Python
api/registrations/views.py
mdicgovbr/osf.io
5959d3a29f73acc520e2ae7b56d270db8b519072
[ "Apache-2.0" ]
null
null
null
api/registrations/views.py
mdicgovbr/osf.io
5959d3a29f73acc520e2ae7b56d270db8b519072
[ "Apache-2.0" ]
7
2019-03-11T18:59:10.000Z
2019-03-15T13:54:20.000Z
api/registrations/views.py
mdicgovbr/osf.io
5959d3a29f73acc520e2ae7b56d270db8b519072
[ "Apache-2.0" ]
null
null
null
from rest_framework import generics, permissions as drf_permissions from rest_framework.exceptions import ValidationError, NotFound, PermissionDenied from framework.auth.oauth_scopes import CoreScopes from osf.models import AbstractNode, Registration, OSFUser from api.base import permissions as base_permissions from a...
40.586648
150
0.711581
from rest_framework import generics, permissions as drf_permissions from rest_framework.exceptions import ValidationError, NotFound, PermissionDenied from framework.auth.oauth_scopes import CoreScopes from osf.models import AbstractNode, Registration, OSFUser from api.base import permissions as base_permissions from a...
true
true
f763cea45155305fcdd82d6976b1a2edcdd24c5d
1,569
py
Python
app/utils/filters.py
ludolatin/ludolatin
0d4ca703564d7958f61e87f19cb2f594dabefd3f
[ "MIT" ]
22
2018-01-08T00:14:29.000Z
2022-01-22T04:07:24.000Z
app/utils/filters.py
ludolatin/ludolatin
0d4ca703564d7958f61e87f19cb2f594dabefd3f
[ "MIT" ]
27
2017-07-27T10:17:27.000Z
2019-02-06T22:50:56.000Z
app/utils/filters.py
merelinguist/ingenuity
0d4ca703564d7958f61e87f19cb2f594dabefd3f
[ "MIT" ]
5
2017-07-27T10:14:18.000Z
2021-07-19T11:56:42.000Z
import time from datetime import datetime from . import utils # Thanks to Dan Jacob and Sean Vieira for making the following snippet # available at http://flask.pocoo.org/snippets/33/ @utils.app_template_filter('humanize') def humanize_time(dt, past_='ago', future_='from now', default='just now'): """ Return...
25.721311
75
0.580625
import time from datetime import datetime from . import utils @utils.app_template_filter('humanize') def humanize_time(dt, past_='ago', future_='from now', default='just now'): now = datetime.utcnow() dt = dt.replace(tzinfo=None) if now > dt: diff = now - dt dt_is_past = True els...
true
true
f763cf7236e682362c954ef597128c4e3747a09e
1,357
py
Python
currentAccount.py
thebigyovadiaz/poo_account_py
7673f53be26323e8e82d119b79e66361297ce69b
[ "MIT" ]
null
null
null
currentAccount.py
thebigyovadiaz/poo_account_py
7673f53be26323e8e82d119b79e66361297ce69b
[ "MIT" ]
null
null
null
currentAccount.py
thebigyovadiaz/poo_account_py
7673f53be26323e8e82d119b79e66361297ce69b
[ "MIT" ]
null
null
null
from account import Account from person import Person class CurrentAccount(Account): def __init__(self, nombre, apellido, numeroCuenta, cantidad, tipo = 0.0, tarjetaDebito = False, tarjetaCredito = False, cuota = 0.0): Account.__init__(self, numeroCuenta, cantidad) self.__tipoInteres = 1 + float(tipo) self.__ta...
26.607843
134
0.76566
from account import Account from person import Person class CurrentAccount(Account): def __init__(self, nombre, apellido, numeroCuenta, cantidad, tipo = 0.0, tarjetaDebito = False, tarjetaCredito = False, cuota = 0.0): Account.__init__(self, numeroCuenta, cantidad) self.__tipoInteres = 1 + float(tipo) self.__ta...
true
true
f763d016061f2f08e13ed4e9dfad257490becc39
27,721
py
Python
src/grammar_learner/pqa_table.py
vsbogd/language-learning
601e7bc7f97a0b6c1f713f8108fc6e81d492e921
[ "MIT" ]
21
2018-01-30T08:18:20.000Z
2020-02-18T08:15:53.000Z
src/grammar_learner/pqa_table.py
vsbogd/language-learning
601e7bc7f97a0b6c1f713f8108fc6e81d492e921
[ "MIT" ]
3
2018-02-09T18:22:45.000Z
2018-07-10T10:31:25.000Z
src/grammar_learner/pqa_table.py
vsbogd/language-learning
601e7bc7f97a0b6c1f713f8108fc6e81d492e921
[ "MIT" ]
10
2018-01-30T10:31:43.000Z
2021-01-26T07:54:24.000Z
# language-learning/src/grammar_learner/pqa_table.py # 190410 # Test Grammar Learner to fill in ULL Project Plan Parses spreadshit import logging # TODO: refactor 81217 wide_rows (archived) and ppln.py (make independent) import os, sys, time from ..common import handle_path_string from ..grammar_te...
41.312966
202
0.509
import logging import os, sys, time from ..common import handle_path_string from ..grammar_tester import test_grammar from ..common.optconst import * from .utl import sec2string, kwa from .read_files import check_dir from .learner import learn_grammar, learn from .write_files import list2file def params(corpus_, d...
true
true
f763d0dc6f801a89cbef4bc794b77d12b4788b7d
4,817
py
Python
BeautyWorld/models.py
leoniknik/BeautyWorldDjango
93c44cd7ebf283b663020f166ec7075ceeb070c8
[ "MIT" ]
null
null
null
BeautyWorld/models.py
leoniknik/BeautyWorldDjango
93c44cd7ebf283b663020f166ec7075ceeb070c8
[ "MIT" ]
null
null
null
BeautyWorld/models.py
leoniknik/BeautyWorldDjango
93c44cd7ebf283b663020f166ec7075ceeb070c8
[ "MIT" ]
null
null
null
# Create your models here. from django.db import models from django.contrib.auth.models import BaseUserManager from django.contrib.auth.base_user import AbstractBaseUser import datetime import django.utils as ut class Credentials(models.Model): email = models.CharField(verbose_name='email', max_length=255, default...
48.656566
95
0.745692
from django.db import models from django.contrib.auth.models import BaseUserManager from django.contrib.auth.base_user import AbstractBaseUser import datetime import django.utils as ut class Credentials(models.Model): email = models.CharField(verbose_name='email', max_length=255, default="", null=True) passwor...
true
true
f763d1fca4adbfb921a7420ea6d3592fc5c11ba5
729
py
Python
project/expenses/tests/test_reports.py
MaciejChoromanski/parleto-recruitment-task
f6e459646feea776eba7d10fc17aa34ec32bd5c5
[ "MIT" ]
null
null
null
project/expenses/tests/test_reports.py
MaciejChoromanski/parleto-recruitment-task
f6e459646feea776eba7d10fc17aa34ec32bd5c5
[ "MIT" ]
null
null
null
project/expenses/tests/test_reports.py
MaciejChoromanski/parleto-recruitment-task
f6e459646feea776eba7d10fc17aa34ec32bd5c5
[ "MIT" ]
null
null
null
from decimal import Decimal, ROUND_HALF_UP from django.test import TestCase from .utils import create_test_expenses from ..models import Expense from ..reports import summary_overall class ReportsTestCase(TestCase): """Test reports utilities for the expenses""" def setUp(self) -> None: """Set up fo...
29.16
77
0.683128
from decimal import Decimal, ROUND_HALF_UP from django.test import TestCase from .utils import create_test_expenses from ..models import Expense from ..reports import summary_overall class ReportsTestCase(TestCase): def setUp(self) -> None: create_test_expenses() def test_summary_overall(self) -> ...
true
true
f763d23f7c6e60127c20b2cf205ffaa090ae3b26
471
py
Python
demos/simple-demo.py
Nyctanthous/labjack-controller
ba64f67e6522f3db5e2b81d8cc471a14f0130469
[ "MIT" ]
10
2019-04-14T21:10:27.000Z
2021-05-25T21:48:40.000Z
demos/simple-demo.py
Nyctanthous/labjack-controller
ba64f67e6522f3db5e2b81d8cc471a14f0130469
[ "MIT" ]
5
2019-03-12T17:26:32.000Z
2019-06-03T18:55:16.000Z
demos/simple-demo.py
Nyctanthous/labjack-controller
ba64f67e6522f3db5e2b81d8cc471a14f0130469
[ "MIT" ]
4
2019-04-14T13:54:50.000Z
2021-12-01T22:25:56.000Z
from labjackcontroller.labtools import LabjackReader duration = 10 # seconds frequency = 100 # sampling frequency in Hz channels = ["AIN0", "DIO1"] # read Analog INput 0, Digital INput 1. analog_voltages = [10.0] # i.e. read input voltages from -10 to 10 volts # Instantiate a LabjackReader with LabjackReader("T...
29.4375
73
0.734607
from labjackcontroller.labtools import LabjackReader duration = 10 frequency = 100 channels = ["AIN0", "DIO1"] analog_voltages = [10.0] with LabjackReader("T7") as my_lj: my_lj.collect_data(channels, analog_voltages, duration, frequency) print(my_lj.to_dataframe())
true
true
f763d2be8338f8de507561addb4a1aeb9f060312
164
py
Python
src/models/train_model.py
Chutlhu/python_kickstart
3fa7ee6830fa8c99b7e9887206d7fcda7361d292
[ "MIT" ]
1
2020-06-18T11:46:30.000Z
2020-06-18T11:46:30.000Z
src/models/train_model.py
Chutlhu/python_kickstart
3fa7ee6830fa8c99b7e9887206d7fcda7361d292
[ "MIT" ]
5
2020-03-24T17:02:01.000Z
2021-06-01T23:42:25.000Z
src/models/train_model.py
Chutlhu/python_kickstart
3fa7ee6830fa8c99b7e9887206d7fcda7361d292
[ "MIT" ]
null
null
null
from sklearn import svm def train(data, target, C, gamma): clf = svm.SVC(C, 'rbf', gamma=gamma) clf.fit(data[:90], target[:90]) return clf
20.5
40
0.585366
from sklearn import svm def train(data, target, C, gamma): clf = svm.SVC(C, 'rbf', gamma=gamma) clf.fit(data[:90], target[:90]) return clf
true
true
f763d3114e2a9ead4a5ddc41fc55b59ddf559a59
249
py
Python
snntoolbox/simulation/target_simulators/INI_ttfs_corrective_target_sim.py
embeddedlabsiu/snn_exploration_spinnaker
5cde5f4c705719058bc0b913f2353eac3bd580b3
[ "MIT" ]
1
2020-06-05T13:04:29.000Z
2020-06-05T13:04:29.000Z
snntoolbox/simulation/target_simulators/INI_ttfs_corrective_target_sim.py
embeddedlabsiu/snn_exploration_spinnaker
5cde5f4c705719058bc0b913f2353eac3bd580b3
[ "MIT" ]
null
null
null
snntoolbox/simulation/target_simulators/INI_ttfs_corrective_target_sim.py
embeddedlabsiu/snn_exploration_spinnaker
5cde5f4c705719058bc0b913f2353eac3bd580b3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """INI simulator with time-to-first-spike code and corrective spikes. @author: rbodo """ # noinspection PyUnresolvedReferences from snntoolbox.simulation.target_simulators.INI_temporal_mean_rate_target_sim \ import SNN
24.9
80
0.7751
from snntoolbox.simulation.target_simulators.INI_temporal_mean_rate_target_sim \ import SNN
true
true
f763d38804a77cd5931ff3de8fdb6312ba5eb643
47
py
Python
moonhill/nn/__init__.py
longod/moonhill
278e53c715ac0287c4d1199ce83a4a42b27d8039
[ "MIT" ]
1
2020-07-03T00:11:43.000Z
2020-07-03T00:11:43.000Z
moonhill/nn/__init__.py
longod/moonhill
278e53c715ac0287c4d1199ce83a4a42b27d8039
[ "MIT" ]
null
null
null
moonhill/nn/__init__.py
longod/moonhill
278e53c715ac0287c4d1199ce83a4a42b27d8039
[ "MIT" ]
null
null
null
from . import callbacks from . import models
15.666667
24
0.744681
from . import callbacks from . import models
true
true
f763d3884418e740d47a4bc296a19ad8369c4854
35
py
Python
pydifact/control/__init__.py
mj0nez/pydifact
3833060d30a3ac5601ec14902d844655ca9b0fc4
[ "MIT" ]
1
2021-11-02T23:43:01.000Z
2021-11-02T23:43:01.000Z
pydifact/control/__init__.py
mj0nez/pydifact
3833060d30a3ac5601ec14902d844655ca9b0fc4
[ "MIT" ]
null
null
null
pydifact/control/__init__.py
mj0nez/pydifact
3833060d30a3ac5601ec14902d844655ca9b0fc4
[ "MIT" ]
null
null
null
from .characters import Characters
17.5
34
0.857143
from .characters import Characters
true
true
f763d3928d4c8421adedb257b1b251cfa9cd8e0f
1,266
py
Python
okta/models/application_sign_on_mode.py
cluesblues/okta-sdk-python
c1d839f0d8fb4a0b564b0a1f4570bc18e117e0d7
[ "Apache-2.0" ]
null
null
null
okta/models/application_sign_on_mode.py
cluesblues/okta-sdk-python
c1d839f0d8fb4a0b564b0a1f4570bc18e117e0d7
[ "Apache-2.0" ]
null
null
null
okta/models/application_sign_on_mode.py
cluesblues/okta-sdk-python
c1d839f0d8fb4a0b564b0a1f4570bc18e117e0d7
[ "Apache-2.0" ]
null
null
null
# flake8: noqa """ Copyright 2020 - Present Okta, 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 ...
30.878049
76
0.747235
from aenum import MultiValueEnum class ApplicationSignOnMode( str, MultiValueEnum ): BOOKMARK = "BOOKMARK", "bookmark" BASIC_AUTH = "BASIC_AUTH", "basic_auth" BROWSER_PLUGIN = "BROWSER_PLUGIN", "browser_plugin" SECURE_PASSWORD_STORE = "SECURE_PASSWORD_STORE", "secure_password_store" AUT...
true
true
f763d3da64cf15fecefd372f9e4562985097a9ff
1,939
py
Python
source/conf.py
dionresearch/signethic
3d9d1981f5d1e2667e31dc14ea7defdc1f932aae
[ "MIT" ]
1
2020-03-25T03:11:43.000Z
2020-03-25T03:11:43.000Z
source/conf.py
dionresearch/signethic
3d9d1981f5d1e2667e31dc14ea7defdc1f932aae
[ "MIT" ]
null
null
null
source/conf.py
dionresearch/signethic
3d9d1981f5d1e2667e31dc14ea7defdc1f932aae
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
34.625
79
0.665291
project = 'signethic' copyright = '2020, Dion Research LLC and Francois Dion' author = 'Francois Dion' release = '0.3' extensions = [ 'sphinx.ext.autodoc' ] templates_path = ['_templates'] exclude_patterns = [] html_theme = 'alabaster' html_static_path = ['_static']
true
true
f763d42e17e2548a4b009ab5f5dd48a1adaa0b8d
10,377
py
Python
tools/cefbuilds/cef_html_builder.py
afeng0007/libcef
51bdb46ac209b30499297c4200acc2cda70c9112
[ "BSD-3-Clause" ]
1
2020-06-30T01:18:35.000Z
2020-06-30T01:18:35.000Z
tools/cefbuilds/cef_html_builder.py
afeng0007/libcef
51bdb46ac209b30499297c4200acc2cda70c9112
[ "BSD-3-Clause" ]
null
null
null
tools/cefbuilds/cef_html_builder.py
afeng0007/libcef
51bdb46ac209b30499297c4200acc2cda70c9112
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights # reserved. Use of this source code is governed by a BSD-style license that # can be found in the LICENSE file. from cef_json_builder import cef_json_builder import datetime import math import os import sys # Class used to build the cefbuilds HT...
36.03125
305
0.676303
from cef_json_builder import cef_json_builder import datetime import math import os import sys class cef_html_builder: """ Class used to build the cefbuilds HTML file. """ def __init__(self, branding=''): """ Create a new cef_html_builder object. """ self.clear() self._branding = branding def cle...
false
true
f763d4314f260a7cff6c71e840d72b7354e925cc
3,120
py
Python
src/bullets/strategy.py
CaballeroM/BullETS
3071387128a51fd85cdfa807c9e6c0b8e3bfc0db
[ "Apache-2.0" ]
6
2021-05-12T23:51:47.000Z
2022-02-04T02:39:41.000Z
src/bullets/strategy.py
CaballeroM/BullETS
3071387128a51fd85cdfa807c9e6c0b8e3bfc0db
[ "Apache-2.0" ]
73
2021-05-12T02:12:02.000Z
2022-03-31T22:26:29.000Z
src/bullets/strategy.py
CaballeroM/BullETS
3071387128a51fd85cdfa807c9e6c0b8e3bfc0db
[ "Apache-2.0" ]
7
2021-05-12T03:34:19.000Z
2021-11-21T09:15:07.000Z
from abc import abstractmethod from datetime import datetime from bullets.portfolio.portfolio import Portfolio from bullets.data_source.data_source_interface import DataSourceInterface, Resolution from bullets import logger class Strategy: def __init__(self, resolution: Resolution, start_time: datetime, end_time:...
41.052632
118
0.678205
from abc import abstractmethod from datetime import datetime from bullets.portfolio.portfolio import Portfolio from bullets.data_source.data_source_interface import DataSourceInterface, Resolution from bullets import logger class Strategy: def __init__(self, resolution: Resolution, start_time: datetime, end_time:...
true
true
f763d5d0df8fda9cf304ca8d63ad7556f8811afe
55,851
py
Python
fhirclient/r4models/claim_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/claim_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/claim_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b on 2019-05-07. # 2019, SMART Health IT. import os import io import unittest import json from . import claim from .fhirdate import FHIRDate class ClaimTests(unittest.TestCase): def instantiate_from(self, file...
71.787918
187
0.680507
import os import io import unittest import json from . import claim from .fhirdate import FHIRDate class ClaimTests(unittest.TestCase): def instantiate_from(self, filename): datadir = os.environ.get('FHIR_UNITTEST_DATADIR') or '' with io.open(os.path.join(datadir, filename), 'r', en...
true
true
f763d5eeb271098fc34551fa58db936b5e456351
10,168
py
Python
py/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_filtering.py
FXTD-ODYSSEY/vscode-mayapy
7a21872f80b5b740fc653e79c3f9b5268e87b3c3
[ "MIT" ]
20
2019-09-20T00:30:22.000Z
2021-12-26T06:56:16.000Z
py/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_filtering.py
minjiang999/vscode-mayapy
7a21872f80b5b740fc653e79c3f9b5268e87b3c3
[ "MIT" ]
5
2019-12-29T15:19:03.000Z
2022-03-29T16:54:19.000Z
py/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_filtering.py
minjiang999/vscode-mayapy
7a21872f80b5b740fc653e79c3f9b5268e87b3c3
[ "MIT" ]
8
2019-09-23T05:46:44.000Z
2022-01-11T14:42:14.000Z
import fnmatch import glob import os.path import sys from _pydev_bundle import pydev_log import pydevd_file_utils import json from collections import namedtuple from _pydev_imps._pydev_saved_modules import threading try: xrange # noqa except NameError: xrange = range # noqa ExcludeFilter = namedtuple('Excl...
34.120805
117
0.605035
import fnmatch import glob import os.path import sys from _pydev_bundle import pydev_log import pydevd_file_utils import json from collections import namedtuple from _pydev_imps._pydev_saved_modules import threading try: xrange except NameError: xrange = range ExcludeFilter = namedtuple('ExcludeFilter', 'n...
true
true
f763d63fceffc43ca5ff57f91f4a2b58c0253b0c
26
py
Python
test.py
mojgan1975/test
6cf98c54400abafa9e5cbbd8d9fac8483587d443
[ "MIT" ]
null
null
null
test.py
mojgan1975/test
6cf98c54400abafa9e5cbbd8d9fac8483587d443
[ "MIT" ]
null
null
null
test.py
mojgan1975/test
6cf98c54400abafa9e5cbbd8d9fac8483587d443
[ "MIT" ]
null
null
null
print "How is everything?"
26
26
0.769231
print "How is everything?"
false
true
f763d7102aece8c6dee0b1b5247836712dfc9cfb
14,538
py
Python
QWeb/keywords/element.py
osciso/qweb
cc44a6633a73f582748b09544cc2d1d80c18c8ef
[ "Apache-2.0" ]
null
null
null
QWeb/keywords/element.py
osciso/qweb
cc44a6633a73f582748b09544cc2d1d80c18c8ef
[ "Apache-2.0" ]
null
null
null
QWeb/keywords/element.py
osciso/qweb
cc44a6633a73f582748b09544cc2d1d80c18c8ef
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # -------------------------- # Copyright © 2014 - Qentinel Group. # # 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/LIC...
36.527638
98
0.62684
from QWeb.internal.exceptions import QWebValueError, QWebElementNotFoundError from QWeb.internal import element, decorators, actions, text, input_,\ dropdown, checkbox @decorators.timeout_decorator def click_element(xpath, timeout=0, js=False, index=1, **kwargs): index = int(index) - 1 kwargs['element_k...
true
true
f763d7b2f4c385d93b608f88652fae1aa0866eb7
1,208
py
Python
corehq/apps/zapier/urls.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/apps/zapier/urls.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/apps/zapier/urls.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
from __future__ import absolute_import from __future__ import unicode_literals from django.conf.urls import url, include from corehq.apps.api.urls import CommCareHqApi from corehq.apps.zapier.api.v0_5 import ( ZapierXFormInstanceResource, ZapierCustomFieldCaseResource, ZapierCustomTriggerFieldFormResource,...
36.606061
86
0.793046
from __future__ import absolute_import from __future__ import unicode_literals from django.conf.urls import url, include from corehq.apps.api.urls import CommCareHqApi from corehq.apps.zapier.api.v0_5 import ( ZapierXFormInstanceResource, ZapierCustomFieldCaseResource, ZapierCustomTriggerFieldFormResource,...
true
true
f763d99e4e5c543c7ada62e18bad85258f6bf0e7
2,755
py
Python
tests/core/test_config.py
manikos/beauty-ocean
e640e92284aa9f20fdebc5e9016d618dd4042d7c
[ "MIT" ]
2
2018-09-16T08:14:46.000Z
2018-09-22T18:30:51.000Z
tests/core/test_config.py
manikos/beauty-ocean
e640e92284aa9f20fdebc5e9016d618dd4042d7c
[ "MIT" ]
4
2020-03-24T17:13:15.000Z
2021-04-09T16:10:52.000Z
tests/core/test_config.py
manikos/beauty-ocean
e640e92284aa9f20fdebc5e9016d618dd4042d7c
[ "MIT" ]
1
2021-01-14T19:13:55.000Z
2021-01-14T19:13:55.000Z
from unittest import mock from yaspin.spinners import Spinners from inquirer import Text, List, Checkbox, Password, Confirm from beauty_ocean.core import config def test_config_constants(): assert config.DEFAULT_ENV_NAME == "DO_TOKEN" assert config.DEFAULT_QUESTION_NAME == "choice" assert config.SORRY =...
30.955056
74
0.715064
from unittest import mock from yaspin.spinners import Spinners from inquirer import Text, List, Checkbox, Password, Confirm from beauty_ocean.core import config def test_config_constants(): assert config.DEFAULT_ENV_NAME == "DO_TOKEN" assert config.DEFAULT_QUESTION_NAME == "choice" assert config.SORRY =...
true
true
f763da77c6cdd352ca88498fd7eb20c0748e2185
9,485
py
Python
Examples/Image/Detection/FastRCNN/A2_RunCntk_py3.py
Wootai/CNTK
5eca042341c8152594e67652a44c3b733a2acaa0
[ "RSA-MD" ]
5
2017-08-28T08:27:18.000Z
2021-04-20T21:12:52.000Z
Examples/Image/Detection/FastRCNN/A2_RunCntk_py3.py
Wootai/CNTK
5eca042341c8152594e67652a44c3b733a2acaa0
[ "RSA-MD" ]
null
null
null
Examples/Image/Detection/FastRCNN/A2_RunCntk_py3.py
Wootai/CNTK
5eca042341c8152594e67652a44c3b733a2acaa0
[ "RSA-MD" ]
3
2019-08-23T11:42:14.000Z
2022-01-06T08:41:32.000Z
# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE.md file in the project root # for full license information. # ============================================================================== from __future__ import print_function from cntk import * from cntk.initializer impo...
42.533632
123
0.690142
from __future__ import print_function from cntk import * from cntk.initializer import glorot_uniform from cntk.io import MinibatchSource, ImageDeserializer, CTFDeserializer, StreamDefs, StreamDef from cntk.io.transforms import scale from cntk.layers import placeholder, constant from cntk.learners import momentum_sgd,...
false
true
f763dc34a5cb24e44b76c06682fb3d39e4ff270f
670
py
Python
students/K33401/Kunal_Shubham/lab2/homework_board-main/manage.py
ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021
bb91c91a56d21cec2b12ae4cc722eaa652a88420
[ "MIT" ]
7
2021-09-02T08:20:58.000Z
2022-01-12T11:48:07.000Z
students/K33401/Kunal_Shubham/lab2/homework_board-main/manage.py
ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021
bb91c91a56d21cec2b12ae4cc722eaa652a88420
[ "MIT" ]
76
2021-09-17T23:01:50.000Z
2022-03-18T16:42:03.000Z
students/K33401/Kunal_Shubham/lab2/homework_board-main/manage.py
ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021
bb91c91a56d21cec2b12ae4cc722eaa652a88420
[ "MIT" ]
69
2020-09-06T10:32:37.000Z
2021-11-28T18:13:17.000Z
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'homework_board.settings') try: from django.core.management import execute_from_command_line exce...
29.130435
78
0.68209
import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'homework_board.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's installed and "...
true
true
f763dd1acf0c2c4d7b55ce0286860239cfdc99b6
7,900
py
Python
tests/integration/aurorabridge_test/util.py
amittbose/peloton
679ac0946f35f6ea17bd73b97e1a115530941f6e
[ "Apache-2.0" ]
null
null
null
tests/integration/aurorabridge_test/util.py
amittbose/peloton
679ac0946f35f6ea17bd73b97e1a115530941f6e
[ "Apache-2.0" ]
null
null
null
tests/integration/aurorabridge_test/util.py
amittbose/peloton
679ac0946f35f6ea17bd73b97e1a115530941f6e
[ "Apache-2.0" ]
null
null
null
import time import requests from tests.integration.aurorabridge_test.client import api from tests.integration.util import load_config TEST_CONFIG_DIR = '/aurorabridge_test/test_configs' def wait_for_rolled_forward(client, job_update_key): '''Wait for job update to be in "ROLLED_FORWARD" state, triggers ass...
31.726908
99
0.663671
import time import requests from tests.integration.aurorabridge_test.client import api from tests.integration.util import load_config TEST_CONFIG_DIR = '/aurorabridge_test/test_configs' def wait_for_rolled_forward(client, job_update_key): wait_for_update_status( client, job_update_key, ...
true
true
f763dd9d34b03b6d534002256c4925b1cd4127ed
15,241
py
Python
src/oci/data_integration/models/update_pipeline_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/data_integration/models/update_pipeline_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/data_integration/models/update_pipeline_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
32.989177
245
0.653697
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class UpdatePipelineDetails(object): def __init__(self, **kwargs): self.swagger_types = { 'key': 'str', ...
true
true
f763ddcd5de84e4174306db2a49368c96a093882
429
py
Python
Session 5/security.py
valdirsalustino/python-rest-api
55ead3e1cb9eddcc5ab8482fbaaf3a90c10ab884
[ "MIT" ]
null
null
null
Session 5/security.py
valdirsalustino/python-rest-api
55ead3e1cb9eddcc5ab8482fbaaf3a90c10ab884
[ "MIT" ]
null
null
null
Session 5/security.py
valdirsalustino/python-rest-api
55ead3e1cb9eddcc5ab8482fbaaf3a90c10ab884
[ "MIT" ]
null
null
null
from werkzeug.security import safe_str_cmp from user import User users = [ User(1, 'bob', '1234') ] username_mapping = {u.username: u for u in users} userid_mapping = {u.id: u for u in users} def authenticate(username, password): user = User.find_by_username(username) if user and safe_str_cmp(user.password, passw...
21.45
51
0.745921
from werkzeug.security import safe_str_cmp from user import User users = [ User(1, 'bob', '1234') ] username_mapping = {u.username: u for u in users} userid_mapping = {u.id: u for u in users} def authenticate(username, password): user = User.find_by_username(username) if user and safe_str_cmp(user.password, passw...
true
true
f763de2d26cddf444ed4db9bb90e880458d82c00
13,654
py
Python
veppy/consequences.py
solvebio/veppy
75d581d562a6d50fd6181b2870feda26ff50115c
[ "MIT" ]
13
2016-10-04T19:41:48.000Z
2021-01-14T15:38:28.000Z
veppy/consequences.py
solvebio/veppy
75d581d562a6d50fd6181b2870feda26ff50115c
[ "MIT" ]
7
2016-10-05T18:58:50.000Z
2020-07-15T13:01:07.000Z
veppy/consequences.py
solvebio/veppy
75d581d562a6d50fd6181b2870feda26ff50115c
[ "MIT" ]
5
2016-10-05T12:51:32.000Z
2016-11-14T19:26:28.000Z
import functions def to_dict(csq): return { 'so_accession': csq['SO_accession'], 'so_term': csq['SO_term'], 'impact': csq['impact'], 'rank': csq['rank'] } class Consequence(object): @staticmethod def impact_score(imp): return \ { im...
32.432304
191
0.654314
import functions def to_dict(csq): return { 'so_accession': csq['SO_accession'], 'so_term': csq['SO_term'], 'impact': csq['impact'], 'rank': csq['rank'] } class Consequence(object): @staticmethod def impact_score(imp): return \ { im...
true
true
f763deabf283ca98265284c7d6c6a21d01dfcc18
654
py
Python
tests/test_bench/cldfbench_test_bench.py
dictionaria/cldf2lift
a3c956283f8de4b5cac759296c43f2f2b6648ebd
[ "Apache-2.0" ]
null
null
null
tests/test_bench/cldfbench_test_bench.py
dictionaria/cldf2lift
a3c956283f8de4b5cac759296c43f2f2b6648ebd
[ "Apache-2.0" ]
1
2021-04-01T14:35:32.000Z
2021-04-08T10:49:59.000Z
tests/test_bench/cldfbench_test_bench.py
dictionaria/cldf2lift
a3c956283f8de4b5cac759296c43f2f2b6648ebd
[ "Apache-2.0" ]
null
null
null
import pathlib from cldfbench import Dataset as BaseDataset class Dataset(BaseDataset): dir = pathlib.Path(__file__).parent id = "test_bench" def cldf_specs(self): # A dataset must declare all CLDF sets it creates. return super().cldf_specs() def cmd_download(self, args): """ ...
24.222222
97
0.617737
import pathlib from cldfbench import Dataset as BaseDataset class Dataset(BaseDataset): dir = pathlib.Path(__file__).parent id = "test_bench" def cldf_specs(self): return super().cldf_specs() def cmd_download(self, args): pass def cmd_makecldf(self, args):
true
true
f763dfaeee0fe1867cf847630c450bc95c45b63b
594
py
Python
lego/apps/users/views/penalties.py
ollfkaih/lego
b15aacaf09efe90e7f984d25b0e7bddbe12647e8
[ "MIT" ]
45
2017-10-24T12:09:06.000Z
2021-11-03T21:21:03.000Z
lego/apps/users/views/penalties.py
ollfkaih/lego
b15aacaf09efe90e7f984d25b0e7bddbe12647e8
[ "MIT" ]
980
2017-10-24T12:29:07.000Z
2022-03-31T04:04:31.000Z
lego/apps/users/views/penalties.py
ollfkaih/lego
b15aacaf09efe90e7f984d25b0e7bddbe12647e8
[ "MIT" ]
23
2018-04-11T16:34:22.000Z
2021-11-23T12:28:30.000Z
from rest_framework import mixins from rest_framework.viewsets import GenericViewSet from lego.apps.permissions.api.views import AllowedPermissionsMixin from lego.apps.users.filters import PenaltyFilterSet from lego.apps.users.models import Penalty from lego.apps.users.serializers.penalties import PenaltySerializer ...
29.7
67
0.816498
from rest_framework import mixins from rest_framework.viewsets import GenericViewSet from lego.apps.permissions.api.views import AllowedPermissionsMixin from lego.apps.users.filters import PenaltyFilterSet from lego.apps.users.models import Penalty from lego.apps.users.serializers.penalties import PenaltySerializer ...
true
true
f763e0481655fcafb4c1448342f7149225844c85
8,818
py
Python
code/kg2/filter_kg_and_remap_predicates.py
RichardBruskiewich/RTX
ce126fdc5df6b5b13cc3ac2857ffee23954a0a7f
[ "MIT" ]
null
null
null
code/kg2/filter_kg_and_remap_predicates.py
RichardBruskiewich/RTX
ce126fdc5df6b5b13cc3ac2857ffee23954a0a7f
[ "MIT" ]
null
null
null
code/kg2/filter_kg_and_remap_predicates.py
RichardBruskiewich/RTX
ce126fdc5df6b5b13cc3ac2857ffee23954a0a7f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 '''Filters the RTX "KG2" second-generation knowledge graph, simplifying predicates and removing redundant edges. Usage: filter_kg_and_remap_predicates.py <predicate-remap.yaml> <kg-input.json> <kg-output.json> ''' __author__ = 'Stephen Ramsey' __copyright__ = 'Oregon State University' __cred...
51.567251
148
0.683602
__author__ = 'Stephen Ramsey' __copyright__ = 'Oregon State University' __credits__ = ['Stephen Ramsey'] __license__ = 'MIT' __version__ = '0.1.0' __maintainer__ = '' __email__ = '' __status__ = 'Prototype' import argparse import kg2_util import pprint import sys from datetime import datetime # - change 'xref' to sk...
true
true
f763e0695cafc9c037fce227d06d8086ba429677
1,465
py
Python
users/views.py
IshantThulla/Know-my-view
e6df6ab7a536538c6f1d0132607926d0307e1cb4
[ "bzip2-1.0.6" ]
null
null
null
users/views.py
IshantThulla/Know-my-view
e6df6ab7a536538c6f1d0132607926d0307e1cb4
[ "bzip2-1.0.6" ]
null
null
null
users/views.py
IshantThulla/Know-my-view
e6df6ab7a536538c6f1d0132607926d0307e1cb4
[ "bzip2-1.0.6" ]
null
null
null
from django.shortcuts import render, redirect from django.contrib.auth.forms import UserCreationForm from django.contrib import messages from .forms import UserRegisterForm, UserUpdateForm, ProfileUpdateForm from django.contrib.auth.decorators import login_required def register(request): if request.method == 'POST...
37.564103
120
0.674403
from django.shortcuts import render, redirect from django.contrib.auth.forms import UserCreationForm from django.contrib import messages from .forms import UserRegisterForm, UserUpdateForm, ProfileUpdateForm from django.contrib.auth.decorators import login_required def register(request): if request.method == 'POST...
true
true
f763e13b42a4391e3e37aa010e87161bd6e4bbd5
2,761
py
Python
cogdl/models/nn/agc.py
THUDM/cogdl
37359d559ae4f9f2c0c34d851abaa0a0950d120a
[ "MIT" ]
1,072
2019-08-02T05:46:21.000Z
2022-03-31T07:51:53.000Z
cogdl/models/nn/agc.py
THUDM/cogdl
37359d559ae4f9f2c0c34d851abaa0a0950d120a
[ "MIT" ]
96
2019-08-05T17:27:22.000Z
2022-03-03T08:36:57.000Z
cogdl/models/nn/agc.py
THUDM/cogdl
37359d559ae4f9f2c0c34d851abaa0a0950d120a
[ "MIT" ]
299
2019-08-08T07:33:10.000Z
2022-03-31T09:30:07.000Z
import torch import numpy as np from sklearn.cluster import SpectralClustering from cogdl.utils import spmm from .. import BaseModel, register_model @register_model("agc") class AGC(BaseModel): r"""The AGC model from the `"Attributed Graph Clustering via Adaptive Graph Convolution" <https://arxiv.org/abs/190...
34.08642
92
0.586382
import torch import numpy as np from sklearn.cluster import SpectralClustering from cogdl.utils import spmm from .. import BaseModel, register_model @register_model("agc") class AGC(BaseModel): @staticmethod def add_args(parser): parser.add_argument("--num-clusters", type=int, default=7) ...
true
true
f763e14861a918243bceeccb506339d5a58ef632
5,880
py
Python
chorderator/chords/Chord.py
billyblu2000/Chorderator
6e5e077da649966e872dbd1494f3606a23937e8b
[ "MIT" ]
7
2021-04-12T08:17:10.000Z
2022-01-30T05:55:25.000Z
chorderator/chords/Chord.py
billyblu2000/Chorderator
6e5e077da649966e872dbd1494f3606a23937e8b
[ "MIT" ]
null
null
null
chorderator/chords/Chord.py
billyblu2000/Chorderator
6e5e077da649966e872dbd1494f3606a23937e8b
[ "MIT" ]
null
null
null
from ..utils.constants import * from ..utils.parse_chord import CHORDS_ANALYSIS_2 from ..utils.structured import str_to_root, chord_type_to_pitch_relation, root_to_pitch_low from ..utils.utils import Logging class Chord: # TODO finish chord class def __init__(self, root=None, attr=None, name=None): s...
34.385965
102
0.481463
from ..utils.constants import * from ..utils.parse_chord import CHORDS_ANALYSIS_2 from ..utils.structured import str_to_root, chord_type_to_pitch_relation, root_to_pitch_low from ..utils.utils import Logging class Chord: def __init__(self, root=None, attr=None, name=None): self.root = -1 self...
true
true
f763e1e4e70a3044fc6a4f5c8624f98d915a1470
66,568
py
Python
zutil/__init__.py
zCFD/zutil
aeccc9b3fa337ad68b03d6d21b720b5c1d0d06b8
[ "MIT" ]
null
null
null
zutil/__init__.py
zCFD/zutil
aeccc9b3fa337ad68b03d6d21b720b5c1d0d06b8
[ "MIT" ]
11
2017-10-20T20:40:28.000Z
2021-01-25T11:10:09.000Z
zutil/__init__.py
zCFD/zutil
aeccc9b3fa337ad68b03d6d21b720b5c1d0d06b8
[ "MIT" ]
2
2018-07-05T15:16:23.000Z
2019-10-07T14:07:22.000Z
""" Copyright (c) 2012-2017, Zenotech Ltd All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and th...
36.099783
145
0.522023
from past.builtins import execfile from builtins import zip from builtins import str from builtins import range from past.utils import old_div import math import sys from os import path import numpy as np import imp def get_parameters_from_file(filename): conf = filename mymodule = __import__(conf) i...
true
true
f763e45584e1f2d349d83ca29d52973edcab774a
17,146
py
Python
app/main/routes.py
darien-schettler/flask-microblog
ed61652a3060a79db5ad86147976892396574a37
[ "MIT" ]
null
null
null
app/main/routes.py
darien-schettler/flask-microblog
ed61652a3060a79db5ad86147976892396574a37
[ "MIT" ]
null
null
null
app/main/routes.py
darien-schettler/flask-microblog
ed61652a3060a79db5ad86147976892396574a37
[ "MIT" ]
null
null
null
from datetime import datetime from flask import render_template, flash, redirect, url_for, request, g, jsonify, current_app from flask_login import current_user, login_required from flask_babel import _, get_locale from guess_language import guess_language from app import db from app.main.forms import EditProfileForm, ...
58.518771
119
0.726817
from datetime import datetime from flask import render_template, flash, redirect, url_for, request, g, jsonify, current_app from flask_login import current_user, login_required from flask_babel import _, get_locale from guess_language import guess_language from app import db from app.main.forms import EditProfileForm, ...
true
true
f763e48800de5532de670eed01e9cb2f41f6af04
2,157
py
Python
ooobuild/lo/presentation/effect_node_type.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/presentation/effect_node_type.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/presentation/effect_node_type.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
31.26087
141
0.704682
class EffectNodeType(object): __ooo_ns__: str = 'com.sun.star.presentation' __ooo_full_ns__: str = 'com.sun.star.presentation.EffectNodeType' __ooo_type_name__: str = 'const' DEFAULT = 0 ON_CLICK = 1 WITH_PREVIOUS = 2 AFTER_PREVIOUS = 3 MAIN_SEQUENCE = 4 TIMING_ROOT = 5 INTERA...
true
true
f763e4f25416659a3d2143eae04ee17335d75a40
39,054
py
Python
onmt/opts.py
vrublack/OpenNMT-py
8ff007107bbe9056820982509dce09c99d547435
[ "MIT" ]
1
2019-06-27T06:16:06.000Z
2019-06-27T06:16:06.000Z
onmt/opts.py
joker298/OpenNMT-py
fae4d620ff94113e9c0cb2cd4e71e46635b79aa9
[ "MIT" ]
null
null
null
onmt/opts.py
joker298/OpenNMT-py
fae4d620ff94113e9c0cb2cd4e71e46635b79aa9
[ "MIT" ]
null
null
null
""" Implementation of all available options """ from __future__ import print_function import configargparse from onmt.models.sru import CheckSRU def config_opts(parser): parser.add('-config', '--config', required=False, is_config_file_arg=True, help='config file path') parser.add('-save_config...
52.141522
79
0.595918
from __future__ import print_function import configargparse from onmt.models.sru import CheckSRU def config_opts(parser): parser.add('-config', '--config', required=False, is_config_file_arg=True, help='config file path') parser.add('-save_config', '--save_config', required=False, ...
true
true
f763e5820b2399dac64ae0650dd342acd8b4ae29
36,285
py
Python
cupy_setup_build.py
venkywonka/cupy
1bfea322e6ee341fc4a66f43cc6c13e44ae11671
[ "MIT" ]
null
null
null
cupy_setup_build.py
venkywonka/cupy
1bfea322e6ee341fc4a66f43cc6c13e44ae11671
[ "MIT" ]
null
null
null
cupy_setup_build.py
venkywonka/cupy
1bfea322e6ee341fc4a66f43cc6c13e44ae11671
[ "MIT" ]
null
null
null
import argparse import copy from distutils import ccompiler from distutils import errors from distutils import msvccompiler from distutils import sysconfig from distutils import unixccompiler import os from os import path import shutil import sys import pkg_resources import setuptools from setuptools.command import bu...
34.102444
118
0.57459
import argparse import copy from distutils import ccompiler from distutils import errors from distutils import msvccompiler from distutils import sysconfig from distutils import unixccompiler import os from os import path import shutil import sys import pkg_resources import setuptools from setuptools.command import bu...
true
true
f763e5aaecf164619bd5620b7957e92d387cb196
8,211
py
Python
cirq-core/cirq/optimizers/cphase_to_fsim.py
allen91wu/Cirq
c33bd9bd6d08650f41b0db5cf69abb3daed72a8f
[ "Apache-2.0" ]
1
2020-12-24T06:27:26.000Z
2020-12-24T06:27:26.000Z
cirq-core/cirq/optimizers/cphase_to_fsim.py
allen91wu/Cirq
c33bd9bd6d08650f41b0db5cf69abb3daed72a8f
[ "Apache-2.0" ]
null
null
null
cirq-core/cirq/optimizers/cphase_to_fsim.py
allen91wu/Cirq
c33bd9bd6d08650f41b0db5cf69abb3daed72a8f
[ "Apache-2.0" ]
null
null
null
# pylint: disable=wrong-or-nonexistent-copyright-notice from typing import Optional, Sequence, Tuple, TYPE_CHECKING import numpy as np from cirq import devices, ops, protocols if TYPE_CHECKING: import cirq def _asinsin(x: float) -> float: """Computes arcsin(sin(x)) for any x. Return value in [-π/2, π/2].""...
37.153846
91
0.65193
from typing import Optional, Sequence, Tuple, TYPE_CHECKING import numpy as np from cirq import devices, ops, protocols if TYPE_CHECKING: import cirq def _asinsin(x: float) -> float: k = round(x / np.pi) if k % 2 == 0: return x - k * np.pi return k * np.pi - x def compute_cphase_exponents...
true
true
f763e60ec792d9464872dc398fb44e9784fa5268
449
py
Python
env/lib/python3.8/site-packages/plotly/validators/scatter/error_y/_arraysrc.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/scatter/error_y/_arraysrc.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/scatter/error_y/_arraysrc.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__(self, plotly_name="arraysrc", parent_name="scatter.error_y", **kwargs): super(ArraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
34.538462
88
0.657016
import _plotly_utils.basevalidators class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__(self, plotly_name="arraysrc", parent_name="scatter.error_y", **kwargs): super(ArraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
true
true
f763e71a6d17ee22a1251fc95cb45a05651fd398
2,639
py
Python
tests/test_registry.py
soofaloofa/gutter-appengine
279073e18939e8070421210ca4d65f2f16d7ee5c
[ "MIT" ]
1
2015-06-01T19:31:33.000Z
2015-06-01T19:31:33.000Z
tests/test_registry.py
soofaloofa/gutter-appengine
279073e18939e8070421210ca4d65f2f16d7ee5c
[ "MIT" ]
null
null
null
tests/test_registry.py
soofaloofa/gutter-appengine
279073e18939e8070421210ca4d65f2f16d7ee5c
[ "MIT" ]
null
null
null
from fixtures import GaeTestCase from gutter.client import arguments from gutter.appengine import registry class User(arguments.Container): nickname = arguments.String(lambda self: self.input.nickname()) email = arguments.String(lambda self: self.input.email()) user_id = arguments.String(lambda self: se...
38.808824
77
0.584691
from fixtures import GaeTestCase from gutter.client import arguments from gutter.appengine import registry class User(arguments.Container): nickname = arguments.String(lambda self: self.input.nickname()) email = arguments.String(lambda self: self.input.email()) user_id = arguments.String(lambda self: se...
true
true
f763e78aa5f65d155142d4c6260424e3354f904a
3,660
py
Python
Resblock/BasicBlock.py
JamesPerlman/Dain-App
f589abdca8309cfdb6dd106da7c7c4613d152c72
[ "MIT" ]
688
2020-12-02T18:02:21.000Z
2022-03-31T09:56:14.000Z
Resblock/BasicBlock.py
JamesPerlman/Dain-App
f589abdca8309cfdb6dd106da7c7c4613d152c72
[ "MIT" ]
29
2020-12-03T00:21:25.000Z
2021-12-04T22:32:42.000Z
Resblock/BasicBlock.py
JamesPerlman/Dain-App
f589abdca8309cfdb6dd106da7c7c4613d152c72
[ "MIT" ]
88
2020-12-03T00:13:29.000Z
2022-03-26T16:03:38.000Z
import torch.nn as nn import math import torch.utils.model_zoo as model_zoo import torch.nn.init as weight_init import torch __all__ = ['MultipleBasicBlock','MultipleBasicBlock_4'] def conv3x3(in_planes, out_planes, dilation = 1, stride=1): "3x3 convolution with padding" return nn.Conv2d(in_planes, out_planes, ...
35.533981
112
0.59918
import torch.nn as nn import math import torch.utils.model_zoo as model_zoo import torch.nn.init as weight_init import torch __all__ = ['MultipleBasicBlock','MultipleBasicBlock_4'] def conv3x3(in_planes, out_planes, dilation = 1, stride=1): return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, ...
true
true
f763eb29240c2c1c74270c583bd7d18ca9898ef5
1,053
py
Python
schedulesy/apps/ade_api/migrations/0001_initial.py
unistra/schedulesy
bcd8c42281013f02ecd5c89fba9b622f20e47761
[ "Apache-2.0" ]
1
2020-07-24T19:17:56.000Z
2020-07-24T19:17:56.000Z
schedulesy/apps/ade_api/migrations/0001_initial.py
unistra/schedulesy
bcd8c42281013f02ecd5c89fba9b622f20e47761
[ "Apache-2.0" ]
1
2020-07-09T10:23:28.000Z
2020-07-09T10:23:28.000Z
schedulesy/apps/ade_api/migrations/0001_initial.py
unistra/schedulesy
bcd8c42281013f02ecd5c89fba9b622f20e47761
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.4 on 2019-08-26 08:39 import django.contrib.postgres.fields.jsonb from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Fingerprint', f...
31.909091
114
0.580247
import django.contrib.postgres.fields.jsonb from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Fingerprint', fields=[ ('id', models.AutoField(...
true
true
f763ec9dcdd5909e4d8bfc795a9427677034f2d6
2,453
py
Python
configs/free_anchor/hv_pointpillars_regnet-1.6gf_fpn_sbn-all_free-anchor_strong-aug_4x8_3x_nus-3d.py
Divadi/mmdetection3d-1
e9b37389f820e33b9657d194cce8afbf88dfe45d
[ "Apache-2.0" ]
null
null
null
configs/free_anchor/hv_pointpillars_regnet-1.6gf_fpn_sbn-all_free-anchor_strong-aug_4x8_3x_nus-3d.py
Divadi/mmdetection3d-1
e9b37389f820e33b9657d194cce8afbf88dfe45d
[ "Apache-2.0" ]
1
2021-05-09T12:11:04.000Z
2021-05-12T04:44:46.000Z
configs/free_anchor/hv_pointpillars_regnet-1.6gf_fpn_sbn-all_free-anchor_strong-aug_4x8_3x_nus-3d.py
kathy-lee/mmdetection3d-with-newdataset
716f35bc6959135b85f5a62ec35a473cdd6ea6e8
[ "Apache-2.0" ]
null
null
null
_base_ = './hv_pointpillars_fpn_sbn-all_free-anchor_4x8_2x_nus-3d.py' model = dict( pretrained=dict(pts='open-mmlab://regnetx_1.6gf'), pts_backbone=dict( _delete_=True, type='NoStemRegNet', arch='regnetx_1.6gf', out_indices=(1, 2, 3), frozen_stages=-1, strides=(1...
35.042857
76
0.6649
_base_ = './hv_pointpillars_fpn_sbn-all_free-anchor_4x8_2x_nus-3d.py' model = dict( pretrained=dict(pts='open-mmlab://regnetx_1.6gf'), pts_backbone=dict( _delete_=True, type='NoStemRegNet', arch='regnetx_1.6gf', out_indices=(1, 2, 3), frozen_stages=-1, strides=(1...
true
true
f763ed42470014fc1f641464f2723a109a93466f
1,327
bzl
Python
test/starlark_tests/rules/analysis_failure_message_test.bzl
tnek/rules_apple
739aa74febeb95902dded57f7a49c85c1f153756
[ "Apache-2.0" ]
313
2017-03-29T21:47:08.000Z
2022-03-29T03:09:50.000Z
test/starlark_tests/rules/analysis_failure_message_test.bzl
tnek/rules_apple
739aa74febeb95902dded57f7a49c85c1f153756
[ "Apache-2.0" ]
786
2017-03-30T16:15:59.000Z
2022-03-31T19:58:05.000Z
test/starlark_tests/rules/analysis_failure_message_test.bzl
tnek/rules_apple
739aa74febeb95902dded57f7a49c85c1f153756
[ "Apache-2.0" ]
172
2017-04-24T01:55:24.000Z
2022-03-25T19:23:31.000Z
# Copyright 2019 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 # # Unless required by applicable la...
33.175
101
0.727204
load( "@bazel_skylib//lib:unittest.bzl", "analysistest", "asserts", ) def _analysis_failure_message_test_impl(ctx): env = analysistest.begin(ctx) asserts.expect_failure(env, ctx.attr.expected_error) return analysistest.end(env) analysis_failure_message_test = analysistest.make( _analysis...
true
true
f763ee27bc44c0cd065988aaad85ae3ce0cec9e1
3,454
py
Python
qualitube/video.py
qualichat/qualitube
6d1b9b67cc3a6cc41f5d3a6ecfd2d66b3f65c72e
[ "MIT" ]
null
null
null
qualitube/video.py
qualichat/qualitube
6d1b9b67cc3a6cc41f5d3a6ecfd2d66b3f65c72e
[ "MIT" ]
null
null
null
qualitube/video.py
qualichat/qualitube
6d1b9b67cc3a6cc41f5d3a6ecfd2d66b3f65c72e
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2021 Vítor Mussa 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, d...
33.862745
87
0.685582
from typing import Dict, Any, Optional, List from pandas import DataFrame __all__ = ('Video',) def _try_parse_int(value: Optional[str]) -> Optional[int]: if value is None: return None return int(value) class Video: __slots__ = ( 'id', 'title', 'description', 'tags', 'view_count', '...
true
true
f763eebfd0efc60633eade0e914fc2f708acc2ad
1,268
py
Python
road situation analysis/research/road/state estimation/sdc/linear_movement_model.py
MikhailKitikov/DrivingMonitor
0b698d1ba644ce74e1c7d88c3e18a1ef997aabc0
[ "MIT" ]
100
2018-04-01T14:40:49.000Z
2022-03-29T14:43:31.000Z
road situation analysis/research/road/state estimation/sdc/linear_movement_model.py
MikhailKitikov/DrivingMonitor
0b698d1ba644ce74e1c7d88c3e18a1ef997aabc0
[ "MIT" ]
2
2020-06-11T10:01:22.000Z
2021-05-27T13:48:08.000Z
road situation analysis/research/road/state estimation/sdc/linear_movement_model.py
MikhailKitikov/DrivingMonitor
0b698d1ba644ce74e1c7d88c3e18a1ef997aabc0
[ "MIT" ]
57
2018-04-05T07:57:56.000Z
2022-03-30T16:17:00.000Z
# -*- coding: utf-8 -*- import numpy as np from .timestamp import Timestamp from .movement_model_base import MovementModelBase class LinearMovementModel(MovementModelBase): """Продвигает автомобиль вперед с его текущей скоростью""" def __init__(self, *args, **kwargs): super(LinearMovementModel, self)....
36.228571
67
0.646688
import numpy as np from .timestamp import Timestamp from .movement_model_base import MovementModelBase class LinearMovementModel(MovementModelBase): def __init__(self, *args, **kwargs): super(LinearMovementModel, self).__init__(*args, **kwargs) def _move(self, dt): assert isinstance(dt, Time...
true
true
f763eee82b463be774a2732d917809592a132c79
5,084
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/storage/netapp/test_netapp_e_syslog.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/storage/netapp/test_netapp_e_syslog.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/storage/netapp/test_netapp_e_syslog.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# (c) 2018, NetApp Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from ansible_collections.community.general.plugins.modules.storage.netapp.netapp_e_syslog import Syslog from ansible_collections.community.general.tests.unit.modules.utils import AnsibleFailJson, Module...
41
123
0.54406
from ansible_collections.community.general.plugins.modules.storage.netapp.netapp_e_syslog import Syslog from ansible_collections.community.general.tests.unit.modules.utils import AnsibleFailJson, ModuleTestCase, set_module_args __metaclass__ = type from ansible_collections.community.general.tests.unit.compat import m...
true
true
f763ef363fc5d4add9b137a1c512be4bd19c434b
7,221
py
Python
xero_python/identity/models/connection.py
parasharrk/xero-python
e8416f3bd893520a343af014f5bb65acbf1f4f13
[ "MIT" ]
null
null
null
xero_python/identity/models/connection.py
parasharrk/xero-python
e8416f3bd893520a343af014f5bb65acbf1f4f13
[ "MIT" ]
null
null
null
xero_python/identity/models/connection.py
parasharrk/xero-python
e8416f3bd893520a343af014f5bb65acbf1f4f13
[ "MIT" ]
null
null
null
# coding: utf-8 """ Xero oAuth 2 identity service This specifing endpoints related to managing authentication tokens and identity for Xero API # noqa: E501 OpenAPI spec version: 2.4.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from xero_pyth...
29
207
0.619582
import re from xero_python.models import BaseModel class Connection(BaseModel): openapi_types = { "id": "str", "tenant_id": "str", "auth_event_id": "str", "tenant_type": "str", "tenant_name": "str", "created_date_utc": "datetime", "updated_date_utc": "...
true
true
f763efa97d0a86654d7de1b48c84b73efd878388
734
py
Python
Tarefa03/Tarefa03.py
igorlimasan/poo-python
4d7a5702d70036930c5457a54442f708eac6ef2e
[ "MIT" ]
null
null
null
Tarefa03/Tarefa03.py
igorlimasan/poo-python
4d7a5702d70036930c5457a54442f708eac6ef2e
[ "MIT" ]
null
null
null
Tarefa03/Tarefa03.py
igorlimasan/poo-python
4d7a5702d70036930c5457a54442f708eac6ef2e
[ "MIT" ]
null
null
null
lista = enumerate('zero um dois três quatro cinco seis sete oito nove'.split()) numero_string=dict(lista) string_numero={valor:chave for chave,valor in numero_string.items()} print (numero_string) print(string_numero) def para_numeral(n): numeros=[] for digito in str(n): numeros.append(numero_...
24.466667
80
0.66485
lista = enumerate('zero um dois três quatro cinco seis sete oito nove'.split()) numero_string=dict(lista) string_numero={valor:chave for chave,valor in numero_string.items()} print (numero_string) print(string_numero) def para_numeral(n): numeros=[] for digito in str(n): numeros.append(numero_...
true
true
f763f085af6bbad2e1a6e70bddc31c83bec063cd
1,496
py
Python
app/tool4convert.py
wulihtc/SmartTodo
822f044c39623138fc75d43e4066d1312522ecd2
[ "MIT" ]
null
null
null
app/tool4convert.py
wulihtc/SmartTodo
822f044c39623138fc75d43e4066d1312522ecd2
[ "MIT" ]
5
2020-12-21T03:02:31.000Z
2021-10-05T06:45:34.000Z
app/tool4convert.py
wulihtc/SmartTodo
822f044c39623138fc75d43e4066d1312522ecd2
[ "MIT" ]
1
2021-09-17T08:56:10.000Z
2021-09-17T08:56:10.000Z
# -*- coding: UTF-8 -*- import getopt import os import sys def update_web_files(): import shutil shutil.rmtree('static') shutil.copytree("web/dist", "static") def commit_web_file(): os.system('git add static/') os.system('git commit -m "更新前端文件"') def static_file_updated(): try: # 1...
24.933333
65
0.550134
import getopt import os import sys def update_web_files(): import shutil shutil.rmtree('static') shutil.copytree("web/dist", "static") def commit_web_file(): os.system('git add static/') os.system('git commit -m "更新前端文件"') def static_file_updated(): try: st = 0.0 fo...
true
true
f763f0beeb4f8e81fe3209d814e99f8578d71f00
457
py
Python
Statistics/ZScore.py
hl533/IS601-CalculatorProject
f44a72e29afbfc4477c41a1e87346e628c43bc91
[ "MIT" ]
null
null
null
Statistics/ZScore.py
hl533/IS601-CalculatorProject
f44a72e29afbfc4477c41a1e87346e628c43bc91
[ "MIT" ]
null
null
null
Statistics/ZScore.py
hl533/IS601-CalculatorProject
f44a72e29afbfc4477c41a1e87346e628c43bc91
[ "MIT" ]
21
2019-11-01T18:02:40.000Z
2021-07-15T02:38:45.000Z
from Calculator.Square import squaring from Calculator.Division import division from Calculator.Addition import addition from Calculator.Subtraction import subtraction from Statistics.PopulationMean import populationmean from Statistics.StandardDeviation import stddev def zscore(num): zmean = populationmean(num) ...
25.388889
52
0.73523
from Calculator.Square import squaring from Calculator.Division import division from Calculator.Addition import addition from Calculator.Subtraction import subtraction from Statistics.PopulationMean import populationmean from Statistics.StandardDeviation import stddev def zscore(num): zmean = populationmean(num) ...
true
true
f763f2aa757d5309256b01aa6733a51cbcdbd5df
2,796
py
Python
magi/agents/sac/agent.py
ethanluoyc/magi
2ef2ba60989a55ccf8c90ba74c8e712fe301e2fa
[ "Apache-2.0" ]
86
2021-11-24T21:53:29.000Z
2022-03-27T13:35:45.000Z
magi/agents/sac/agent.py
ethanluoyc/magi
2ef2ba60989a55ccf8c90ba74c8e712fe301e2fa
[ "Apache-2.0" ]
7
2021-11-26T17:23:29.000Z
2022-03-07T21:49:44.000Z
magi/agents/sac/agent.py
ethanluoyc/magi
2ef2ba60989a55ccf8c90ba74c8e712fe301e2fa
[ "Apache-2.0" ]
3
2021-11-27T11:13:18.000Z
2022-01-24T14:38:53.000Z
"""Soft Actor-Critic implementation""" from typing import Dict, Optional, Sequence from acme import core from acme import specs from acme.jax import networks as networks_lib from acme.utils import counting from acme.utils import loggers import dm_env import jax import reverb from magi.agents.sac import builder from m...
34.518519
83
0.686338
from typing import Dict, Optional, Sequence from acme import core from acme import specs from acme.jax import networks as networks_lib from acme.utils import counting from acme.utils import loggers import dm_env import jax import reverb from magi.agents.sac import builder from magi.agents.sac import config as sac_con...
true
true
f763f3d23decda832552b236c466b43525a0589c
689
py
Python
src-gen/openapi_server/test/test_test_controller.py
etherisc/bima-bolt-api
14201a3055d94ff9c42afbb755109a69e77248f4
[ "Apache-2.0" ]
null
null
null
src-gen/openapi_server/test/test_test_controller.py
etherisc/bima-bolt-api
14201a3055d94ff9c42afbb755109a69e77248f4
[ "Apache-2.0" ]
null
null
null
src-gen/openapi_server/test/test_test_controller.py
etherisc/bima-bolt-api
14201a3055d94ff9c42afbb755109a69e77248f4
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import import unittest from flask import json from six import BytesIO from openapi_server.test import BaseTestCase class TestTestController(BaseTestCase): """TestController integration test stubs""" def test_test_systemtest_post(self): """Test case f...
21.53125
77
0.622642
from __future__ import absolute_import import unittest from flask import json from six import BytesIO from openapi_server.test import BaseTestCase class TestTestController(BaseTestCase): def test_test_systemtest_post(self): headers = { } response = self.client.open( '/api/...
true
true
f763f4b9037ad329624c7266210494205f595fd1
25,837
py
Python
nikola/plugins/task/taxonomies.py
vault-the/nikola
c7a556b587004df442fdc9127c07997715556265
[ "MIT" ]
null
null
null
nikola/plugins/task/taxonomies.py
vault-the/nikola
c7a556b587004df442fdc9127c07997715556265
[ "MIT" ]
null
null
null
nikola/plugins/task/taxonomies.py
vault-the/nikola
c7a556b587004df442fdc9127c07997715556265
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright © 2012-2018 Roberto Alsina and others. # 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 t...
54.279412
189
0.648489
import blinker import os import natsort from collections import defaultdict from copy import copy try: from urlparse import urljoin except ImportError: from urllib.parse import urljoin from nikola.plugin_categories import Task from nikola import utils, hierarchy_utils from nikola.nikola import _enclosure ...
true
true
f763f6917227a4d197b65a9691cb7c4cfc7dc532
2,259
py
Python
utils/auto_upload/track_on_videos.py
ErlingLie/cvat
f053d14955b1e48bf6498466949f4beb1833fe8e
[ "MIT" ]
null
null
null
utils/auto_upload/track_on_videos.py
ErlingLie/cvat
f053d14955b1e48bf6498466949f4beb1833fe8e
[ "MIT" ]
1
2020-09-17T19:27:02.000Z
2020-09-29T11:56:26.000Z
utils/auto_upload/track_on_videos.py
ErlingLie/cvat
f053d14955b1e48bf6498466949f4beb1833fe8e
[ "MIT" ]
null
null
null
import numpy as np import sys import time import os import json import argparse from sort.sort import Sort def track_from_detections(detection_path, output_path, num_classes): ''' Runs tracking on detections and saves result to a json file on form list(class_db) Where each class_db is on the form: - t...
40.339286
98
0.656042
import numpy as np import sys import time import os import json import argparse from sort.sort import Sort def track_from_detections(detection_path, output_path, num_classes): trackers = [] for i in range(num_classes): tracker = Sort(5,1) trackers.append(tracker) with open(detection_p...
true
true
f763f76e7edc38e0cd469c0deb781726caef6e8f
454
py
Python
code/partition.py
Koomook/nsmc
64fb83769072be3822f663383d0855dd66c92855
[ "CC0-1.0" ]
460
2015-08-29T07:16:07.000Z
2022-03-23T07:46:58.000Z
code/partition.py
Koomook/nsmc
64fb83769072be3822f663383d0855dd66c92855
[ "CC0-1.0" ]
1
2020-06-02T07:51:28.000Z
2020-06-04T00:11:17.000Z
code/partition.py
Koomook/nsmc
64fb83769072be3822f663383d0855dd66c92855
[ "CC0-1.0" ]
219
2015-12-05T05:56:05.000Z
2022-03-31T01:59:05.000Z
#! /usr/bin/python # -*- coding: utf-8 -*- import numpy as np; np.random.seed(1234) import pandas as pd ntrain = 150000 data = pd.read_csv('../ratings.txt', sep='\t', quoting=3) data = pd.DataFrame(np.random.permutation(data)) trn, tst = data[:ntrain], data[ntrain:] header = 'id document label'.split() trn.to_csv(...
26.705882
72
0.678414
import numpy as np; np.random.seed(1234) import pandas as pd ntrain = 150000 data = pd.read_csv('../ratings.txt', sep='\t', quoting=3) data = pd.DataFrame(np.random.permutation(data)) trn, tst = data[:ntrain], data[ntrain:] header = 'id document label'.split() trn.to_csv('../ratings_train.txt', sep='\t', index=Fal...
true
true
f763f7cad9cc60fe06399840eff010adc94c8202
5,255
py
Python
tests/Cpl/System/_0test/simtime/linux/gcc/mytoolchain.py
johnttaylor/foxtail
86e4e1d19d5e8f9c1d1064cf0939f4bf62615400
[ "BSD-3-Clause" ]
null
null
null
tests/Cpl/System/_0test/simtime/linux/gcc/mytoolchain.py
johnttaylor/foxtail
86e4e1d19d5e8f9c1d1064cf0939f4bf62615400
[ "BSD-3-Clause" ]
null
null
null
tests/Cpl/System/_0test/simtime/linux/gcc/mytoolchain.py
johnttaylor/foxtail
86e4e1d19d5e8f9c1d1064cf0939f4bf62615400
[ "BSD-3-Clause" ]
null
null
null
#--------------------------------------------------------------------------- # This python module is used to customize a supported toolchain for your # project specific settings. # # Notes: # - ONLY edit/add statements in the sections marked by BEGIN/END EDITS # markers. # - Maintain indentation level and u...
32.84375
122
0.624358
# - rvalues must be enclosed in quotes (single ' ' or double " ") # - The structure/class 'BuildValues' contains (at a minimum the # following data members. Any member not specifically set defaults # to null/empty string # .inc # .asminc # .cflags # .cppflag...
true
true
f763f7e4e6048304260392fba084ec6f4e6ffe18
332
py
Python
projectwo/coreservice/application/models.py
ayonadee/prizegenerator
d772850c1e13714bdc3272a4f4dcf96f53451f08
[ "MIT" ]
null
null
null
projectwo/coreservice/application/models.py
ayonadee/prizegenerator
d772850c1e13714bdc3272a4f4dcf96f53451f08
[ "MIT" ]
null
null
null
projectwo/coreservice/application/models.py
ayonadee/prizegenerator
d772850c1e13714bdc3272a4f4dcf96f53451f08
[ "MIT" ]
null
null
null
from application import db class Users(db.Model): id = db.Column(db.Integer, primary_key=True) first_name = db.Column(db.String(30), nullable=False) last_name = db.Column(db.String(30), nullable=False) account_number = db.Column(db.String(15), nullable=False) message = db.Column(db.String(300), nul...
41.5
61
0.71988
from application import db class Users(db.Model): id = db.Column(db.Integer, primary_key=True) first_name = db.Column(db.String(30), nullable=False) last_name = db.Column(db.String(30), nullable=False) account_number = db.Column(db.String(15), nullable=False) message = db.Column(db.String(300), nul...
true
true
f763f803c24a30be55e99690226f1e162eb6e386
3,242
py
Python
hatsploit/payloads/linux/x64/shell_bind_tcp.py
enty8080/HatSplo
57ea81c2bc73838cbf7d7062d7e665eda1143d18
[ "MIT" ]
139
2021-02-17T15:52:30.000Z
2022-03-30T14:50:42.000Z
hatsploit/payloads/linux/x64/shell_bind_tcp.py
enty8080/HatSplo
57ea81c2bc73838cbf7d7062d7e665eda1143d18
[ "MIT" ]
27
2021-03-24T17:14:30.000Z
2022-03-02T18:50:43.000Z
hatsploit/payloads/linux/x64/shell_bind_tcp.py
enty8080/HatSplo
57ea81c2bc73838cbf7d7062d7e665eda1143d18
[ "MIT" ]
85
2021-02-17T15:39:03.000Z
2022-03-07T09:08:58.000Z
#!/usr/bin/env python3 # # This payload requires HatSploit: https://hatsploit.netlify.app # Current source: https://github.com/EntySec/HatSploit # from hatsploit.lib.payload import Payload class HatSploitPayload(Payload): details = { 'Category': "stager", 'Name': "Linux x64 Shell Bind TCP", ...
37.697674
76
0.360271
from hatsploit.lib.payload import Payload class HatSploitPayload(Payload): details = { 'Category': "stager", 'Name': "Linux x64 Shell Bind TCP", 'Payload': "linux/x64/shell_bind_tcp", 'Authors': [ 'Ivan Nikolsky (enty8080) - payload developer' ], 'Desc...
true
true
f763f90a1de97d722e881b619d2c05619ced87e4
1,088
py
Python
frappe/core/doctype/session_default_settings/test_session_default_settings.py
oryxsolutions/frappe
d193ea22d17ca40d57432040a8afad72287d9e23
[ "MIT" ]
null
null
null
frappe/core/doctype/session_default_settings/test_session_default_settings.py
oryxsolutions/frappe
d193ea22d17ca40d57432040a8afad72287d9e23
[ "MIT" ]
null
null
null
frappe/core/doctype/session_default_settings/test_session_default_settings.py
oryxsolutions/frappe
d193ea22d17ca40d57432040a8afad72287d9e23
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2019, Frappe Technologies and Contributors # License: MIT. See LICENSE import unittest import frappe from frappe.core.doctype.session_default_settings.session_default_settings import ( clear_session_defaults, set_session_default_values, ) class TestSessionDefaultSettings(uni...
32
97
0.770221
import unittest import frappe from frappe.core.doctype.session_default_settings.session_default_settings import ( clear_session_defaults, set_session_default_values, ) class TestSessionDefaultSettings(unittest.TestCase): def test_set_session_default_settings(self): frappe.set_user("Administrator") settings = ...
true
true
f763f948ccd05d448cf5773325ff9569173ee73a
105
py
Python
python/atca_rapid_response_api/__init__.py
ste616/atca-rapid-response-api
523b47a38db31689d884de9fbd4af170fb1c78ba
[ "MIT" ]
null
null
null
python/atca_rapid_response_api/__init__.py
ste616/atca-rapid-response-api
523b47a38db31689d884de9fbd4af170fb1c78ba
[ "MIT" ]
2
2018-08-05T22:35:37.000Z
2020-03-18T09:50:40.000Z
python/atca_rapid_response_api/__init__.py
ste616/atca-rapid-response-api
523b47a38db31689d884de9fbd4af170fb1c78ba
[ "MIT" ]
null
null
null
# ATCA Rapid Response API # Python library # Jamie.Stevens@csiro.au from .api import api,responseError
15
34
0.771429
from .api import api,responseError
true
true
f763f9e08f6928a688488354fa9a2ec894a7615d
1,204
py
Python
src/discolight/augmentations/randomrotate.py
datature/discolight
ad29e75b472cf892a087d23cc9436f47f1b15441
[ "MIT" ]
27
2020-07-23T08:09:25.000Z
2022-03-01T08:24:43.000Z
src/discolight/augmentations/randomrotate.py
ghnreigns/discolight
71ee176e0e58489867f21ddfcf8cce338631129c
[ "MIT" ]
7
2020-08-05T07:26:55.000Z
2020-12-31T04:20:40.000Z
src/discolight/augmentations/randomrotate.py
ghnreigns/discolight
71ee176e0e58489867f21ddfcf8cce338631129c
[ "MIT" ]
6
2020-07-27T04:30:01.000Z
2020-08-13T02:39:25.000Z
"""An augmentation to randomly rotate an image.""" import random from discolight.params.params import Params from .augmentation.types import Augmentation, NumericalRange from .rotate import Rotate from .decorators.accepts_probs import accepts_probs @accepts_probs class RandomRotate(Augmentation): """Randomly rot...
30.1
71
0.666944
import random from discolight.params.params import Params from .augmentation.types import Augmentation, NumericalRange from .rotate import Rotate from .decorators.accepts_probs import accepts_probs @accepts_probs class RandomRotate(Augmentation): def __init__(self, angle_range): super().__init__() ...
true
true
f763fafeb7372b12a9028f0c132afc331e12c5d2
580
py
Python
.history/gram/forms_20201122004023.py
Nyash-Mauro/Instagram-clone
39f3b660b3bdd59996fa88816712c906d0e3fba5
[ "MIT" ]
null
null
null
.history/gram/forms_20201122004023.py
Nyash-Mauro/Instagram-clone
39f3b660b3bdd59996fa88816712c906d0e3fba5
[ "MIT" ]
null
null
null
.history/gram/forms_20201122004023.py
Nyash-Mauro/Instagram-clone
39f3b660b3bdd59996fa88816712c906d0e3fba5
[ "MIT" ]
null
null
null
from django import forms from . models import Image,Profile,Comments from django.forms import ModelForm from .models import Photo class PhotoForm(ModelForm): class Meta: model = Photo class PhotoForm(ModelForm): class Meta: model = Photo exclude = ['profile','likes','comments','user'...
23.2
55
0.636207
from django import forms from . models import Image,Profile,Comments from django.forms import ModelForm from .models import Photo class PhotoForm(ModelForm): class Meta: model = Photo class PhotoForm(ModelForm): class Meta: model = Photo exclude = ['profile','likes','comments','user'...
true
true
f763fb6b9969a81fe9dabd3ea80026426ea9e5d9
103
py
Python
final.py
saskakarsi/final
eebd21053c768377c6916440d70db37a2901e970
[ "MIT" ]
null
null
null
final.py
saskakarsi/final
eebd21053c768377c6916440d70db37a2901e970
[ "MIT" ]
null
null
null
final.py
saskakarsi/final
eebd21053c768377c6916440d70db37a2901e970
[ "MIT" ]
null
null
null
from options import pv, european_call_value, european_put_value from fama_french_48 import sic_to_ff_48
51.5
63
0.893204
from options import pv, european_call_value, european_put_value from fama_french_48 import sic_to_ff_48
true
true
f763fd85e6bdeb69d1ca20d7239cbe69002a9300
2,417
py
Python
venv/Lib/site-packages/pyrogram/raw/functions/messages/send_scheduled_messages.py
iamgeorgiy/heroku-userbot
5a92417d16f8ead949d88cb38da213fc2da5d3a4
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/functions/messages/send_scheduled_messages.py
iamgeorgiy/heroku-userbot
5a92417d16f8ead949d88cb38da213fc2da5d3a4
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/functions/messages/send_scheduled_messages.py
iamgeorgiy/heroku-userbot
5a92417d16f8ead949d88cb38da213fc2da5d3a4
[ "Apache-2.0" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2020 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
30.987179
103
0.612743
from io import BytesIO from pyrogram.raw.core.primitives import Int, Long, Int128, Int256, Bool, Bytes, String, Double, Vector from pyrogram.raw.core import TLObject from pyrogram import raw from typing import List, Union, Any class SendScheduledMessages(TLObject): __slots__: List[str] = ["peer", "id"] ...
true
true
f763ff56ca9a6e1bd693c348c039800ac458265e
6,874
py
Python
process.py
kotl/RaspberryCast
342f7c73e55bf0e5fb2222510295c377accf7877
[ "MIT" ]
null
null
null
process.py
kotl/RaspberryCast
342f7c73e55bf0e5fb2222510295c377accf7877
[ "MIT" ]
null
null
null
process.py
kotl/RaspberryCast
342f7c73e55bf0e5fb2222510295c377accf7877
[ "MIT" ]
null
null
null
import youtube_dl import os import threading import logging import json logger = logging.getLogger("RaspberryCast") volume = 0 def launchvideo(url, config, sub=False): setState("2") os.system("echo -n q > /tmp/cmd &") # Kill previous instance of OMX if config["new_log"]: os.system("sudo fbi -T ...
33.207729
79
0.544516
import youtube_dl import os import threading import logging import json logger = logging.getLogger("RaspberryCast") volume = 0 def launchvideo(url, config, sub=False): setState("2") os.system("echo -n q > /tmp/cmd &") if config["new_log"]: os.system("sudo fbi -T 1 -a --noverbose images/processi...
true
true
f763fff7ca4ca769cbb814717120fcb0e2c9ca9b
31,466
py
Python
pyServer/GuestFishWrapper.py
anandramakrishna/azure-diskinspect-service
c3260ea3830ad2fe5da470648acea35e939acf80
[ "MIT" ]
null
null
null
pyServer/GuestFishWrapper.py
anandramakrishna/azure-diskinspect-service
c3260ea3830ad2fe5da470648acea35e939acf80
[ "MIT" ]
null
null
null
pyServer/GuestFishWrapper.py
anandramakrishna/azure-diskinspect-service
c3260ea3830ad2fe5da470648acea35e939acf80
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import shutil import os from GuestFS import GuestFS from GuestFS_registry import GuestFS_Registry from datetime import datetime import zipfile import urllib """ LibGuestFS Wrapper for Disk Information Extraction This class is responsible for extracting the required logs and configuration files fro...
59.258004
320
0.538391
import shutil import os from GuestFS import GuestFS from GuestFS_registry import GuestFS_Registry from datetime import datetime import zipfile import urllib class GuestFishWrapper: environment = None httpRequestHandler = None storageUrl = None outputDirName = None outputFileName = None mode = N...
true
true
f764006a21de6193d7c03f595dfd3edaace127d0
1,325
py
Python
project/helpers/bands.py
SCiO-systems/india-rice-production-igc
1777a27965e216242baccc7b703c60a16fd6171d
[ "MIT" ]
1
2020-07-12T19:02:23.000Z
2020-07-12T19:02:23.000Z
project/helpers/bands.py
SCiO-systems/india-rice-production-igc
1777a27965e216242baccc7b703c60a16fd6171d
[ "MIT" ]
null
null
null
project/helpers/bands.py
SCiO-systems/india-rice-production-igc
1777a27965e216242baccc7b703c60a16fd6171d
[ "MIT" ]
1
2019-09-03T11:33:31.000Z
2019-09-03T11:33:31.000Z
'''Contains helper function for this project filenames and example band dictionary and list''' def dirname(measurement): '''Returns directory of .asc file in CMIP5 dataset''' _dirname_prefix = 'bcc_csm1_1_m_rcp8_5_2080s' _dirname_postfix = '10min_r1i1p1_no_tile_asc' _dirname_global = './data/CMIP5' ...
30.813953
82
0.592453
def dirname(measurement): _dirname_prefix = 'bcc_csm1_1_m_rcp8_5_2080s' _dirname_postfix = '10min_r1i1p1_no_tile_asc' _dirname_global = './data/CMIP5' return f'{_dirname_global}/{_dirname_prefix}_{measurement}_{_dirname_postfix}' TEMPLATE = '#' BANDS = [ { 'path': f'{dirname("con...
true
true
f764008fdbcdd0f143356274d6cbbe6789750b63
2,902
py
Python
tpdatasrc/tpgamefiles/rules/char_class/class014_ranger.py
dolio/TemplePlus
37446bb3d1fcbf460e611a4fcb2caff167e9ac08
[ "MIT" ]
69
2015-05-05T14:09:25.000Z
2022-02-15T06:13:04.000Z
tpdatasrc/tpgamefiles/rules/char_class/class014_ranger.py
anatoliy-savchak/TemplePlus
50922bb14cc2d7dcf8fceeccf45c3b905c1b512f
[ "MIT" ]
457
2015-05-01T22:07:45.000Z
2022-03-31T02:19:10.000Z
tpdatasrc/tpgamefiles/rules/char_class/class014_ranger.py
anatoliy-savchak/TemplePlus
50922bb14cc2d7dcf8fceeccf45c3b905c1b512f
[ "MIT" ]
25
2016-02-04T21:19:53.000Z
2021-11-15T23:14:51.000Z
from toee import * import char_class_utils import char_editor ################################################### def GetConditionName(): # used by API return "Ranger" # def GetSpellCasterConditionName(): # return "Ranger Spellcasting" def GetCategory(): return "Core 3.5 Ed Classes" def GetClassDefinitionFlags(...
22.850394
300
0.702963
from toee import * import char_class_utils import char_editor def GetConditionName(): return "Ranger" def GetCategory(): return "Core 3.5 Ed Classes" def GetClassDefinitionFlags(): return CDF_BaseClass | CDF_CoreClass def GetClassHelpTopic(): return "TAG_RANGERS" classEnum = stat_level_ranger class_feats...
true
true
f7640167e5d048b8f2d073f6dcb0dc099af88327
10,416
py
Python
DOCS/conf.py
rcmorehead/simpleabc
998f79bcab5931c6b9e2355fd22dada2de26f1af
[ "MIT" ]
37
2016-04-18T09:57:32.000Z
2022-02-20T13:08:04.000Z
DOCS/conf.py
rcmorehead/SIMPLE-ABC
998f79bcab5931c6b9e2355fd22dada2de26f1af
[ "MIT" ]
null
null
null
DOCS/conf.py
rcmorehead/SIMPLE-ABC
998f79bcab5931c6b9e2355fd22dada2de26f1af
[ "MIT" ]
16
2015-08-25T06:59:47.000Z
2021-11-26T19:33:04.000Z
# -*- coding: utf-8 -*- # # SIMPLE documentation build configuration file, created by # sphinx-quickstart on Sun Feb 23 13:39:13 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # Al...
30.816568
80
0.716686
import sys import os sys.path.append("/Users/Robert/CODE/SIMPLE") extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.pngmath', 'sphinx.ext.mathjax', 'sphinx.ext.viewcode', 'numpydoc', ] templates_path = ['_templates'] source_suffix = '.rst' master_doc = 'index' projec...
true
true