hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
797620ddca2cd20916d834d86186eb177e9a7497
3,213
py
Python
angr/knowledge_plugins/cfg/memory_data.py
Alexeyan/angr
445fa2036584598d310ffd58436566847bbc7e1c
[ "BSD-2-Clause" ]
null
null
null
angr/knowledge_plugins/cfg/memory_data.py
Alexeyan/angr
445fa2036584598d310ffd58436566847bbc7e1c
[ "BSD-2-Clause" ]
null
null
null
angr/knowledge_plugins/cfg/memory_data.py
Alexeyan/angr
445fa2036584598d310ffd58436566847bbc7e1c
[ "BSD-2-Clause" ]
null
null
null
# pylint:disable=no-member from ...protos import cfg_pb2 from ...serializable import Serializable class MemoryDataSort: Unspecified = None Unknown = "unknown" Integer = "integer" PointerArray = "pointer-array" String = "string" UnicodeString = "unicode" SegmentBoundary = "segment-boundary"...
29.75
114
0.630875
f2a5011518e607bc483e1d5e191da6a752d0904e
8,134
py
Python
0x0C-python-almost_a_circle/tests/test_models/test_base.py
BennettDixon/holbertonschool-higher_level_programming
3fbcd5e009548aab5539ce8610b4113f005964c4
[ "MIT" ]
1
2022-02-07T12:13:18.000Z
2022-02-07T12:13:18.000Z
0x0C-python-almost_a_circle/tests/test_models/test_base.py
BennettDixon/holbertonschool-higher_level_programming
3fbcd5e009548aab5539ce8610b4113f005964c4
[ "MIT" ]
null
null
null
0x0C-python-almost_a_circle/tests/test_models/test_base.py
BennettDixon/holbertonschool-higher_level_programming
3fbcd5e009548aab5539ce8610b4113f005964c4
[ "MIT" ]
1
2021-12-06T18:15:54.000Z
2021-12-06T18:15:54.000Z
#!/usr/bin/python3 """module for use in testing base class """ import os import unittest from models.base import Base from models.rectangle import Rectangle from models.square import Square class TestBase(unittest.TestCase): """class for test case for base class """ def test_basic(self): ""...
35.060345
72
0.57401
a64ee290e673b2f4b2884de5491df958776104d8
482
py
Python
src/checkMonotone.py
denghz/Probabilistic-Programming
fa505a75c4558e507fd3effd2737c63537bfe50d
[ "BSD-3-Clause" ]
null
null
null
src/checkMonotone.py
denghz/Probabilistic-Programming
fa505a75c4558e507fd3effd2737c63537bfe50d
[ "BSD-3-Clause" ]
null
null
null
src/checkMonotone.py
denghz/Probabilistic-Programming
fa505a75c4558e507fd3effd2737c63537bfe50d
[ "BSD-3-Clause" ]
null
null
null
from wolframclient.evaluation.kernel.localsession import WolframLanguageSession from nnDiff import Func, sys if __name__ == "__main__": exp = Func(sys.argv[1:]) #exp = Func(["D", "x", "x"]) with WolframLanguageSession() as session: session.evaluate("Inv[zzz_] := 1/zzz") d ...
25.368421
79
0.562241
f98de3c28feef6f0cda1372f0e7a7efd5f30a094
60,545
py
Python
webresume/frontend/views.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-carrolji
75a7b828f7a47e32e9d9b500a57c2d3f0a62d0cb
[ "MIT" ]
null
null
null
webresume/frontend/views.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-carrolji
75a7b828f7a47e32e9d9b500a57c2d3f0a62d0cb
[ "MIT" ]
3
2020-02-11T23:15:05.000Z
2021-06-10T20:50:21.000Z
webresume/frontend/views.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-carrolji
75a7b828f7a47e32e9d9b500a57c2d3f0a62d0cb
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse import base64 def index(request): return render(request, 'index.html', {}) # Example for returning a file from an endpoint def text_file(request): return HttpResponse("Hello World", content_type="text/plain") # FIX THIS to return the conte...
3,027.25
59,988
0.969708
3fca25f07a105f4a0e4fb1ae27d883ae133186a7
1,138
py
Python
src/addresses/migrations/0001_initial.py
utshab-1603022/Ecommerce_site
34c1bda73879f841dd77eb0b8b17a5edb9a7c6a3
[ "bzip2-1.0.6" ]
2
2020-07-29T15:05:13.000Z
2020-07-29T16:17:01.000Z
src/addresses/migrations/0001_initial.py
utshabkg/Ecommerce_site_Django
34c1bda73879f841dd77eb0b8b17a5edb9a7c6a3
[ "bzip2-1.0.6" ]
null
null
null
src/addresses/migrations/0001_initial.py
utshabkg/Ecommerce_site_Django
34c1bda73879f841dd77eb0b8b17a5edb9a7c6a3
[ "bzip2-1.0.6" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.17 on 2019-12-19 16:33 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('billing', '0002_auto_20191219_1620'), ...
35.5625
129
0.615993
044ec903197ba1ce318ef29acc25c0582eed0a0b
34,760
py
Python
Lib/test/test_java_integration.py
omunroe-com/jython
c86dbc315bd20fc649ae8d3d946e94c4f63fb32c
[ "CNRI-Jython" ]
null
null
null
Lib/test/test_java_integration.py
omunroe-com/jython
c86dbc315bd20fc649ae8d3d946e94c4f63fb32c
[ "CNRI-Jython" ]
1
2019-01-15T07:33:46.000Z
2019-01-15T07:33:46.000Z
Lib/test/test_java_integration.py
omunroe-com/jython
c86dbc315bd20fc649ae8d3d946e94c4f63fb32c
[ "CNRI-Jython" ]
null
null
null
import copy import glob import importlib import operator import os import os.path import unittest import shutil import subprocess import sys import tempfile import re from collections import deque from test import test_support from distutils.spawn import find_executable from java.lang import ( ClassCastException,...
36.170656
464
0.640736
d2724955281fce5c2eac602ad7fdbfd9deca01ee
458
py
Python
Chap08/sets.py
RiddhiDamani/Python
06cba66aeafd9dc0fa849ec2112c0786a3e8f001
[ "MIT" ]
null
null
null
Chap08/sets.py
RiddhiDamani/Python
06cba66aeafd9dc0fa849ec2112c0786a3e8f001
[ "MIT" ]
null
null
null
Chap08/sets.py
RiddhiDamani/Python
06cba66aeafd9dc0fa849ec2112c0786a3e8f001
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2009-2017 BHG http://bw.org/ def main(): a = set("We're gonna need a bigger boat.") b = set("I'm sorry, Dave. I'm afraid I can't do that.") print_set(sorted(a)) print_set(sorted(b)) print_set(a - b) print_set(a | b) print_set(a ^ b) print_set(a & b) ...
18.32
59
0.554585
4722efdc678273ff6e6c59ad105761e7d7ca2dc7
6,592
py
Python
src/pymyinstall/setuphelper/ipython_helper.py
sdpython/pymyinstall
72b3a56a29def0694e34ccae910bf288a95cf4a5
[ "MIT" ]
8
2015-08-24T21:01:49.000Z
2018-01-04T06:34:51.000Z
src/pymyinstall/setuphelper/ipython_helper.py
sdpython/pymyinstall
72b3a56a29def0694e34ccae910bf288a95cf4a5
[ "MIT" ]
66
2015-06-14T22:04:58.000Z
2021-11-11T13:46:03.000Z
src/pymyinstall/setuphelper/ipython_helper.py
sdpython/pymyinstall
72b3a56a29def0694e34ccae910bf288a95cf4a5
[ "MIT" ]
5
2016-09-13T18:14:46.000Z
2021-08-23T12:03:28.000Z
""" @file @brief Change Jupyter configuration """ import sys import os import re from ..installhelper.link_shortcuts import add_shortcut_to_desktop, suffix def noLOG(*args, **kwargs): pass def install_mathjax(): """ install a local copy of mathjax """ from IPython.external import mathjax # pyl...
37.668571
119
0.530188
285fad6ab5c23e5fc717c68fbf387d80a2508838
3,294
py
Python
twitchapi.py
Winter259/twitch-statistics
4d65a76ed5a9ea15fdd4e67bd6281523113b8d60
[ "MIT" ]
3
2020-09-10T03:35:51.000Z
2021-02-16T16:34:31.000Z
twitchapi.py
Winter259/twitch-statistics
4d65a76ed5a9ea15fdd4e67bd6281523113b8d60
[ "MIT" ]
1
2016-02-17T15:14:49.000Z
2016-04-03T17:36:31.000Z
twitchapi.py
Winter259/twitch-statistics
4d65a76ed5a9ea15fdd4e67bd6281523113b8d60
[ "MIT" ]
2
2016-06-29T01:11:35.000Z
2019-04-02T07:26:44.000Z
import requests from datetime import datetime class APIStreamsRequest: def __init__(self, game_url_name, game_full_names, client_id, timeout=10, verbose=False): self.game_url_name = game_url_name self.game_full_names = game_full_names self.client_id = client_id self.json_url = 'htt...
36.6
93
0.576503
19f2b353a472ec503c65b70bbf6cc3f2d88b0856
756
py
Python
RLBotPack/Rocketnoodles/src/strategy/coaches/mr_cover.py
L0laapk3/RLBotPack
f54038475d2a57428f3784560755f96bfcf8015f
[ "MIT" ]
13
2019-05-25T20:25:51.000Z
2022-03-19T13:36:23.000Z
RLBotPack/Rocketnoodles/src/strategy/coaches/mr_cover.py
L0laapk3/RLBotPack
f54038475d2a57428f3784560755f96bfcf8015f
[ "MIT" ]
53
2019-06-07T13:31:59.000Z
2022-03-28T22:53:47.000Z
RLBotPack/Rocketnoodles/src/strategy/coaches/mr_cover.py
L0laapk3/RLBotPack
f54038475d2a57428f3784560755f96bfcf8015f
[ "MIT" ]
78
2019-06-30T08:42:13.000Z
2022-03-23T20:11:42.000Z
from strategy.base_ccp import BaseCoach from strategy.captains import * from strategy.players import Cover class MrCover(BaseCoach): """"This class calls the captain that makes all drones cover, standing between the ball and your own goal.""" def __init__(self): # Initial role assignment! fo...
28
113
0.624339
ecccf339b914f678bde7ae8aa0e690e3bf1e7a9f
5,080
py
Python
evaluation_scripts/test_wic.py
cambridgeltl/MirrorWiC
a0b6ed5ff980f0ed92d84640f07729b6e02f1f6f
[ "MIT" ]
3
2021-11-01T07:14:47.000Z
2022-03-28T02:52:51.000Z
evaluation_scripts/test_wic.py
cambridgeltl/MirrorWiC
a0b6ed5ff980f0ed92d84640f07729b6e02f1f6f
[ "MIT" ]
1
2021-10-03T09:27:07.000Z
2022-02-16T14:28:11.000Z
evaluation_scripts/test_wic.py
cambridgeltl/MirrorWiC
a0b6ed5ff980f0ed92d84640f07729b6e02f1f6f
[ "MIT" ]
null
null
null
import sys import os import numpy as np import torch from transformers import AutoTokenizer, AutoModel from tqdm.auto import tqdm from sklearn import metrics from src.helper import * def eval_wic_cosine(scores_pred,golds,thres=None): scores_pred,golds=np.array(scores_pred),np.array(golds) if thres: ...
40.967742
150
0.69252
142d54de66e85c0adea9f01f40ea213710265f4b
3,406
py
Python
scripts/appveyor_mingw_find.py
dejbug/lovec
12c80f6526b5683e2e62449fd6a197148e655b44
[ "MIT" ]
null
null
null
scripts/appveyor_mingw_find.py
dejbug/lovec
12c80f6526b5683e2e62449fd6a197148e655b44
[ "MIT" ]
null
null
null
scripts/appveyor_mingw_find.py
dejbug/lovec
12c80f6526b5683e2e62449fd6a197148e655b44
[ "MIT" ]
null
null
null
## Designed with <3 by dejbug. import os, os.path import re import sys from argparse import ArgumentParser from collections import namedtuple ROOTS = ( ur"C:\mingw-w64", ur"mingw-w64", ) """https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/ """ SAMPLE_DIR_STDOUT = """ ...
26
251
0.658837
e06eabf29fdbdfd3728bc03c553e56fa02ba2870
12,849
py
Python
tests/test_coordinate_analysis.py
theavey/ParaTemp
6d6c92064ec36640063cc271a245f21b95ddee96
[ "Apache-2.0" ]
12
2018-03-01T21:49:11.000Z
2021-09-02T15:47:40.000Z
tests/test_coordinate_analysis.py
theavey/ParaTemp
6d6c92064ec36640063cc271a245f21b95ddee96
[ "Apache-2.0" ]
34
2017-12-18T02:32:57.000Z
2019-10-11T12:08:57.000Z
tests/test_coordinate_analysis.py
theavey/ParaTemp
6d6c92064ec36640063cc271a245f21b95ddee96
[ "Apache-2.0" ]
3
2019-05-08T05:29:13.000Z
2022-02-14T09:21:42.000Z
"""This contains a set of tests for paratemp.coordinate_analysis""" ######################################################################## # # # This test was written by Thomas Heavey in 2018. # # theavey@bu.edu thom...
40.661392
78
0.55981
02797e119f38ff2abc27264e935b5e9d9bea0f01
3,760
py
Python
src/ctc/toolbox/backend_utils/backend_crud.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
94
2022-02-15T19:34:49.000Z
2022-03-26T19:26:22.000Z
src/ctc/toolbox/backend_utils/backend_crud.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
7
2022-03-03T02:58:47.000Z
2022-03-11T18:41:05.000Z
src/ctc/toolbox/backend_utils/backend_crud.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
7
2022-02-15T17:53:07.000Z
2022-03-17T19:14:17.000Z
"""this code is fragile and hacky, it needs to get replaced in future""" from __future__ import annotations import typing from . import backend_exceptions T = typing.TypeVar('T') def get_backend_order( backend: str | None = None, backend_order: typing.Sequence[str] | None = None, ) -> typing.Sequence[str]:...
32.413793
78
0.664362
2567f375f219a5a1259c4d6f7c63e7cd36154c3e
53,070
py
Python
sklearn/tests/test_pipeline.py
Raieen/scikit-learn
94747d2e553c36305f33e677001660e5f4b0be85
[ "BSD-3-Clause" ]
null
null
null
sklearn/tests/test_pipeline.py
Raieen/scikit-learn
94747d2e553c36305f33e677001660e5f4b0be85
[ "BSD-3-Clause" ]
null
null
null
sklearn/tests/test_pipeline.py
Raieen/scikit-learn
94747d2e553c36305f33e677001660e5f4b0be85
[ "BSD-3-Clause" ]
null
null
null
""" Test the pipeline module. """ from tempfile import mkdtemp import shutil import time import re import itertools import pytest import numpy as np from scipy import sparse import joblib from sklearn.utils.fixes import parse_version from sklearn.utils._testing import ( assert_allclose, assert_array_equal, ...
34.084778
88
0.650386
ffd98cfc7935f076db06a07aab426e25846391fa
4,554
py
Python
drf_admin/apps/system/views/jobs.py
DingGuodong/drf_admin
1a2a5d0a568ddd37718ccfc169677e6e31070641
[ "MIT" ]
228
2020-06-20T10:07:03.000Z
2022-03-29T07:11:01.000Z
drf_admin/apps/system/views/jobs.py
DingGuodong/drf_admin
1a2a5d0a568ddd37718ccfc169677e6e31070641
[ "MIT" ]
25
2020-07-16T12:29:04.000Z
2022-02-16T06:31:06.000Z
drf_admin/apps/system/views/jobs.py
DingGuodong/drf_admin
1a2a5d0a568ddd37718ccfc169677e6e31070641
[ "MIT" ]
82
2020-10-26T07:14:15.000Z
2022-03-29T07:53:23.000Z
# -*- coding: utf-8 -*- """ @author : Wang Meng @github : https://github.com/tianpangji @software : PyCharm @file : jobs.py @create : 2020/11/25 20:56 """ from inspect import isfunction, getmembers from apscheduler.jobstores.base import JobLookupError from django_apscheduler.models import DjangoJobExecuti...
30.15894
108
0.669082
b862a05de4a03db72986267b62e056d40e9e6374
1,996
py
Python
lib/python2.7/keyword.py
eladkarako/1st_font_webkit_gen
7e91abda7988b7b1beec28021e43f0dab5ca199c
[ "Unlicense" ]
3
2018-12-25T15:33:48.000Z
2019-12-04T20:32:32.000Z
lib/python2.7/keyword.py
eladkarako/1st_font_webkit_gen
7e91abda7988b7b1beec28021e43f0dab5ca199c
[ "Unlicense" ]
null
null
null
lib/python2.7/keyword.py
eladkarako/1st_font_webkit_gen
7e91abda7988b7b1beec28021e43f0dab5ca199c
[ "Unlicense" ]
1
2020-11-04T07:54:34.000Z
2020-11-04T07:54:34.000Z
#!/usr/bin/env python2 """Keywords (from "graminit.c") This file is automatically generated; please don't muck it up! To update the symbols in this file, 'cd' to the top directory of the python source tree after building the interpreter and run: ./python Lib/keyword.py """ __all__ = ["iskeyword", "kwlist"] kw...
21.234043
68
0.507014
f7168e80f5e8ed5edf7f7288316f9a3d0d8192e3
5,675
py
Python
nimiqclient/models/block.py
rraallvv/python-client
65d0c3f835ed8ce3ba6bfa2565cac61f7da6b748
[ "Apache-2.0" ]
4
2020-11-03T21:13:13.000Z
2022-01-18T08:40:27.000Z
nimiqclient/models/block.py
rraallvv/python-client
65d0c3f835ed8ce3ba6bfa2565cac61f7da6b748
[ "Apache-2.0" ]
1
2020-08-09T21:36:02.000Z
2020-08-09T21:36:02.000Z
nimiqclient/models/block.py
rraallvv/python-client
65d0c3f835ed8ce3ba6bfa2565cac61f7da6b748
[ "Apache-2.0" ]
1
2020-08-03T01:05:44.000Z
2020-08-03T01:05:44.000Z
__all__ = ["Block", "BlockTemplateHeader", "BlockTemplateBody", "BlockTemplate"] from .transaction import Transaction class Block: """ Block returned by the server. :param number: Height of the block. :type number: int :param hash: Hex-encoded 32-byte hash of the block. :type hash: str :...
34.815951
166
0.66185
7aefd6f8acbcfef3744c9277d0b9b7f9f45cc77a
571
py
Python
chores/create_weekly_lists.py
beegisfay/home-automation
4423b36500c946182619f73d07b483623f920ea4
[ "MIT" ]
null
null
null
chores/create_weekly_lists.py
beegisfay/home-automation
4423b36500c946182619f73d07b483623f920ea4
[ "MIT" ]
1
2020-07-02T18:24:25.000Z
2020-07-02T18:24:25.000Z
chores/create_weekly_lists.py
beegisfay/home-automation
4423b36500c946182619f73d07b483623f920ea4
[ "MIT" ]
null
null
null
# This code sample uses the 'requests' library: # http://docs.python-requests.org import requests import os url = "https://api.trello.com/1/lists" board_pos = int(os.environ.get("DAYS_OUT")) + 2 query = { 'key': os.environ.get("TRELLO_KEY"), 'token': os.environ.get("TRELLO_TOKEN"), 'name': os.environ.get("FO...
21.148148
63
0.684764
40d96461ac318310c5658d37611b850977c5203b
1,711
py
Python
src/models/appbasemodel.py
solnsumei/properties
45361b7d46a5ac34931f3ed24bb6c5eb7fc8a81b
[ "MIT" ]
null
null
null
src/models/appbasemodel.py
solnsumei/properties
45361b7d46a5ac34931f3ed24bb6c5eb7fc8a81b
[ "MIT" ]
null
null
null
src/models/appbasemodel.py
solnsumei/properties
45361b7d46a5ac34931f3ed24bb6c5eb7fc8a81b
[ "MIT" ]
null
null
null
from src.utils.status import Status from slugify import slugify from tortoise import fields, models class AppBaseModel(models.Model): id = fields.IntField(pk=True) status = fields.CharEnumField(Status, default=Status.ACTIVE) created_at = fields.DatetimeField(null=True, auto_now_add=True) modified_at =...
27.596774
77
0.653419
b8a8d3cc8dd894229616164399685c0a3821e63c
1,364
py
Python
project/max_subarray.py
gradeawarrior/python-interview-problems
ede738df98f979c45b6657aa6147f0fd5cbfc3dc
[ "Apache-2.0" ]
null
null
null
project/max_subarray.py
gradeawarrior/python-interview-problems
ede738df98f979c45b6657aa6147f0fd5cbfc3dc
[ "Apache-2.0" ]
null
null
null
project/max_subarray.py
gradeawarrior/python-interview-problems
ede738df98f979c45b6657aa6147f0fd5cbfc3dc
[ "Apache-2.0" ]
null
null
null
""" Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Input: [-2,1,-3,4,-1,2,1,-5,4], Output: 6 Explanation: [4,-1,2,1] has the largest sum = 6. Follow up: If you have figured out the O(n) solution, try codin...
26.745098
99
0.542522
5759f359dbd15dd951857b7935603e74a42c789f
10,080
py
Python
pychron/experiment/image_browser.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
31
2016-03-07T02:38:17.000Z
2022-02-14T18:23:43.000Z
pychron/experiment/image_browser.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
1,626
2015-01-07T04:52:35.000Z
2022-03-25T19:15:59.000Z
pychron/experiment/image_browser.py
UIllinoisHALPychron/pychron
f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc
[ "Apache-2.0" ]
26
2015-05-23T00:10:06.000Z
2022-03-07T16:51:57.000Z
# =============================================================================== # Copyright 2012 Jake Ross # # 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/licens...
31.401869
110
0.510417
a33579293e13253cb2362f054b14c586224a12b7
640
py
Python
SMS_18/main/migrations/0004_currenttime.py
ujjwalgandhi/sms18
78d1476367bb255c8c13f19b13a103905a36014f
[ "MIT" ]
8
2018-02-24T22:32:39.000Z
2022-03-18T18:28:41.000Z
SMS_18/main/migrations/0004_currenttime.py
ujjwalgandhi/sms18
78d1476367bb255c8c13f19b13a103905a36014f
[ "MIT" ]
3
2020-06-06T00:41:08.000Z
2021-06-10T22:34:45.000Z
SMS_18/main/migrations/0004_currenttime.py
ujjwalgandhi/sms18
78d1476367bb255c8c13f19b13a103905a36014f
[ "MIT" ]
3
2019-01-16T09:20:44.000Z
2019-01-22T07:05:38.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-01-21 10:20 from __future__ import unicode_literals import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0003_remove_stock_stocks_sold'), ] operations = [ mig...
26.666667
114
0.625
c1915944767eff1b28c2c7e03da56efda8de42e3
881
py
Python
bot.py
damiankw/gitlib-bot
8c576a03c66e8332284887a708cd0ff49181f8ff
[ "MIT" ]
null
null
null
bot.py
damiankw/gitlib-bot
8c576a03c66e8332284887a708cd0ff49181f8ff
[ "MIT" ]
null
null
null
bot.py
damiankw/gitlib-bot
8c576a03c66e8332284887a708cd0ff49181f8ff
[ "MIT" ]
null
null
null
import logging import threading import time import ezclib log = logging.getLogger(__name__) def main(): client = ezclib.EzcapechatRTMPProtocol(ezclib.CONFIG.ROOM, ezclib.CONFIG.USER, ezclib.CONFIG.EMAIL, ezclib.CONFIG.PASSWORD) t = threading.Thread(target=client.connect) t.daemon = True t.start() ...
25.911765
127
0.69126
4051efb4d36eaabd90005d714014088e60b5d367
3,113
py
Python
Chatbot-Emotion-Recognition/topic_extraction.py
NareshCJ/Deep-Learning-Team-2-Final-Project
caae1aadcc24f35a733688810c89dd30b9324286
[ "MIT" ]
null
null
null
Chatbot-Emotion-Recognition/topic_extraction.py
NareshCJ/Deep-Learning-Team-2-Final-Project
caae1aadcc24f35a733688810c89dd30b9324286
[ "MIT" ]
null
null
null
Chatbot-Emotion-Recognition/topic_extraction.py
NareshCJ/Deep-Learning-Team-2-Final-Project
caae1aadcc24f35a733688810c89dd30b9324286
[ "MIT" ]
null
null
null
# Code based on work from: # Author: Olivier Grisel <olivier.grisel@ensta.org> # Lars Buitinck # Chyi-Kwei Yau <chyikwei.yau@gmail.com> # License: BSD 3 clause # URL: http://scikit-learn.org/stable/auto_examples/applications/topics_extraction_with_nmf_lda.html from sklearn.feature_extraction.text impor...
37.963415
100
0.610022
f687b8e87e8b76982a849c057c614f4e49f0660e
251,912
py
Python
python/ccxt/huobi.py
petardudas/ccxt
f82b54ab688768cbe7a884ad92d2ad71986451ed
[ "MIT" ]
null
null
null
python/ccxt/huobi.py
petardudas/ccxt
f82b54ab688768cbe7a884ad92d2ad71986451ed
[ "MIT" ]
null
null
null
python/ccxt/huobi.py
petardudas/ccxt
f82b54ab688768cbe7a884ad92d2ad71986451ed
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError from ccxt.base.errors import Authenticati...
46.928465
355
0.468255
36ea6c23b7f4805eaa168075ed6c798fc0a50c09
4,207
py
Python
tests/test_querier.py
Jeketam/supertokens-flask
36a4b798f81e03caac8b0985c8c6f736b0aa186b
[ "Apache-2.0" ]
5
2020-06-01T13:27:42.000Z
2021-05-03T16:19:28.000Z
tests/test_querier.py
Jeketam/supertokens-flask
36a4b798f81e03caac8b0985c8c6f736b0aa186b
[ "Apache-2.0" ]
8
2020-09-15T20:26:55.000Z
2020-11-02T04:13:43.000Z
tests/test_querier.py
Jeketam/supertokens-flask
36a4b798f81e03caac8b0985c8c6f736b0aa186b
[ "Apache-2.0" ]
8
2020-10-05T11:27:24.000Z
2020-10-21T13:39:23.000Z
""" Copyright (c) 2020, VRAI Labs and/or its affiliates. All rights reserved. This software is licensed under the Apache License, Version 2.0 (the "License") as published by the Apache Software Foundation. You may not use this file except in compliance with the License. You may obtain a copy of the License at http://...
36.582609
101
0.754932
1c5da41aefe207fe784a69f570788f7916feae63
554
py
Python
nlu_bert_crosswoz/util/nlu.py
huakeda1/Basic-algorithm-and-framework-study-for-AI
8776dc500772a6c1f28be9c4a426ed9eca2ec775
[ "MIT" ]
2
2020-11-24T02:58:24.000Z
2021-08-18T06:50:28.000Z
nlu_bert_crosswoz/util/nlu.py
huakeda1/Basic-algorithm-and-framework-study-for-AI
8776dc500772a6c1f28be9c4a426ed9eca2ec775
[ "MIT" ]
null
null
null
nlu_bert_crosswoz/util/nlu.py
huakeda1/Basic-algorithm-and-framework-study-for-AI
8776dc500772a6c1f28be9c4a426ed9eca2ec775
[ "MIT" ]
null
null
null
"""Natural language understanding interface.""" from util.module import Module class NLU(Module): """NLU module interface.""" def predict(self, utterance, context=list()): """Predict the dialog act of a natural language utterance. Args: utterance (string): ...
25.181818
66
0.555957
bb8353d0f5d93d7b633fc2ee6815c5f703045ef0
1,263
py
Python
Implementation/ANN/section_three/main.py
FarshidNooshi/CI_ANN_Fruit_Detector
e027ab95e744f6421dee1ca9a96cac80ff89f881
[ "MIT" ]
1
2022-02-08T18:01:10.000Z
2022-02-08T18:01:10.000Z
Implementation/ANN/section_three/main.py
FarshidNooshi/CI_ANN_Fruit_Detector
e027ab95e744f6421dee1ca9a96cac80ff89f881
[ "MIT" ]
null
null
null
Implementation/ANN/section_three/main.py
FarshidNooshi/CI_ANN_Fruit_Detector
e027ab95e744f6421dee1ca9a96cac80ff89f881
[ "MIT" ]
null
null
null
import time import numpy as np from ANN.section_one.credentials import get_path_of_Datasets, get_path_of_documents from ANN.section_one.utils.utilsV1 import load_data from ANN.section_three.utils.utilsV3 import L_layer_model def run_program(file): path = get_path_of_Datasets() train_set_x_orig, train_set_y_...
35.083333
131
0.672209
435f52c8fbd4fb57fce9932cf02c52a4ab8a5a0c
1,324
py
Python
sample/mt5Server.py
jettom/JtSpider
7e2cb32415ca5d439b117c0277a7f7b2b27fa0bf
[ "Apache-2.0" ]
1
2019-01-25T12:54:24.000Z
2019-01-25T12:54:24.000Z
sample/mt5Server.py
jettom/JtSpider
7e2cb32415ca5d439b117c0277a7f7b2b27fa0bf
[ "Apache-2.0" ]
null
null
null
sample/mt5Server.py
jettom/JtSpider
7e2cb32415ca5d439b117c0277a7f7b2b27fa0bf
[ "Apache-2.0" ]
1
2020-05-16T01:18:25.000Z
2020-05-16T01:18:25.000Z
import socket, numpy as np from sklearn.linear_model import LinearRegression class socketserver: def __init__(self, address='', port=9090): self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.address = address self.port = port self.sock.bind((self.address, self.port)...
26.48
70
0.586103
0ce81275e9705650e0e210341b126b81d83b245a
5,035
py
Python
k_run.py
dewyeon/patchcore
ca68cce8d814357178668de5663d027337c999b6
[ "Apache-2.0" ]
null
null
null
k_run.py
dewyeon/patchcore
ca68cce8d814357178668de5663d027337c999b6
[ "Apache-2.0" ]
null
null
null
k_run.py
dewyeon/patchcore
ca68cce8d814357178668de5663d027337c999b6
[ "Apache-2.0" ]
null
null
null
import subprocess import argparse parser=argparse.ArgumentParser(description="run") parser.add_argument("--n", type=int) args = parser.parse_args() n = args.n root = 'results_k' coreset = 0.01 if args.n == 0: for cl in ['bottle', 'cable', 'wood', 'capsule', 'carpet', 'grid', 'hazelnut','zipper', 'leather', 'transi...
69.930556
225
0.597617
e937e790415aa60e52e95e0fcf3c8bfae5182ea4
3,122
py
Python
app/app/settings.py
devansh204/django-app-tutorial
be5053ad24733d888e56e967b2f515b4771def7c
[ "MIT" ]
null
null
null
app/app/settings.py
devansh204/django-app-tutorial
be5053ad24733d888e56e967b2f515b4771def7c
[ "MIT" ]
null
null
null
app/app/settings.py
devansh204/django-app-tutorial
be5053ad24733d888e56e967b2f515b4771def7c
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 3.0.7. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # Bui...
25.177419
91
0.692184
b442687dda5a6d1b8828235e15e61cec5e108582
1,531
py
Python
tests/test_utils.py
ericmand/lambdo
48cbfac1429f19a0830f33535922247409230bac
[ "MIT" ]
1
2021-02-24T09:06:32.000Z
2021-02-24T09:06:32.000Z
tests/test_utils.py
wangchengrong/lambdo
7de0e4bd61ffa6d03f23290c198f08a22c3fcf28
[ "MIT" ]
null
null
null
tests/test_utils.py
wangchengrong/lambdo
7de0e4bd61ffa6d03f23290c198f08a22c3fcf28
[ "MIT" ]
null
null
null
import unittest from lambdo.Workflow import * class TablesTestCase(unittest.TestCase): def setUp(self): pass def test_imports(self): wf_json = { "id": "My workflow", "imports": ["tests.udf", "os.path"], "tables": [ { "id...
25.949153
94
0.444807
6faa0c35f8864a255612bed8f388617ebb6096d3
28,924
py
Python
tests/unit/test_observe_unit.py
svedel/greattunes
e241d0f6a30479b600d85aafabf27058d3fd1072
[ "MIT" ]
null
null
null
tests/unit/test_observe_unit.py
svedel/greattunes
e241d0f6a30479b600d85aafabf27058d3fd1072
[ "MIT" ]
20
2021-07-14T06:44:56.000Z
2022-03-17T05:06:23.000Z
tests/unit/test_observe_unit.py
svedel/greattunes
e241d0f6a30479b600d85aafabf27058d3fd1072
[ "MIT" ]
null
null
null
import pandas as pd import pytest import torch import greattunes.utils from greattunes.data_format_mappings import tensor2pretty_covariate @pytest.mark.parametrize("method, tmp_val", [ ["functions", 1.0], ["iterative", 2.0] ...
44.158779
398
0.696031
2ba07f2ab754ce5007b7f012408566167f503464
40,856
py
Python
src/sage/geometry/polyhedron/representation.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
src/sage/geometry/polyhedron/representation.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
src/sage/geometry/polyhedron/representation.py
fredstro/sage
c936d2cda81ec7ec3552a3bdb29c994b40d1bb24
[ "BSL-1.0" ]
null
null
null
""" H(yperplane) and V(ertex) representation objects for polyhedra """ #***************************************************************************** # Copyright (C) 2008 Marshall Hampton <hamptonio@gmail.com> # Copyright (C) 2011 Volker Braun <vbraun.name@gmail.com> # # This program is free software: you ...
30.218935
96
0.513731
adf1932bdbe321ed06a432af9033777d5ce0f624
2,118
py
Python
test/integration_test/tester/node.py
heshu-by/likelib-ws
85987d328dc274622f4b758afa1b6af43d15564f
[ "Apache-2.0" ]
null
null
null
test/integration_test/tester/node.py
heshu-by/likelib-ws
85987d328dc274622f4b758afa1b6af43d15564f
[ "Apache-2.0" ]
null
null
null
test/integration_test/tester/node.py
heshu-by/likelib-ws
85987d328dc274622f4b758afa1b6af43d15564f
[ "Apache-2.0" ]
null
null
null
import signal import subprocess import time from .base import Logger, LogicException, BadResultException class Node: def __init__(self, *, name: str, work_dir: str, config_file_path: str, node_file_path: str, logger: Logger): self.name = name self.work_dir = work_dir self.config_file_path...
40.730769
112
0.612842
3186a5575dc99357ef3a5f2f94da001734a49d44
45,674
py
Python
sdks/python/apache_beam/io/gcp/bigquery.py
chamikaramj/beam
7c710360868d784c5b6bf99b8341748807b08101
[ "Apache-2.0" ]
1
2019-05-24T14:03:58.000Z
2019-05-24T14:03:58.000Z
sdks/python/apache_beam/io/gcp/bigquery.py
kavyasmj/beam0.6
d59dfeb339bd56feb7569531e5c421a297b0d3dc
[ "Apache-2.0" ]
2
2017-04-24T20:32:25.000Z
2022-03-29T12:59:55.000Z
sdks/python/apache_beam/io/gcp/bigquery.py
kavyasmj/beam0.6
d59dfeb339bd56feb7569531e5c421a297b0d3dc
[ "Apache-2.0" ]
2
2019-03-04T02:12:46.000Z
2021-08-10T20:29:37.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
42.212569
80
0.699676
a7b655390835e53b5d0315507ec028f23f661289
4,774
py
Python
vulcanai/mnist_loader.py
priyatharsan/Vulcan
15a196f1b267ec1c9cc88304b93508ca68c94fc1
[ "Apache-2.0" ]
1
2018-05-23T23:49:01.000Z
2018-05-23T23:49:01.000Z
vulcanai/mnist_loader.py
priyatharsan/Vulcan
15a196f1b267ec1c9cc88304b93508ca68c94fc1
[ "Apache-2.0" ]
null
null
null
vulcanai/mnist_loader.py
priyatharsan/Vulcan
15a196f1b267ec1c9cc88304b93508ca68c94fc1
[ "Apache-2.0" ]
null
null
null
import os import urllib import gzip import numpy as np def load_fashion_mnist(): """ Get the fashion MNIST training data (downloading it if it is not already accessible), and return it as NumPy arrays. Extracted from https://github.com/zalandoresearch/fashion-mnist/blob/master/README.md :return:...
39.131148
127
0.690406
d9f9799f5b13c067fc0a52fd03d7a201653cf327
7,473
py
Python
lib/JumpScale/lib/ssh/ufw/manager.py
rudecs/jumpscale_core7
30c03f26f1cdad3edbb9d79d50fbada8acc974f5
[ "Apache-2.0" ]
null
null
null
lib/JumpScale/lib/ssh/ufw/manager.py
rudecs/jumpscale_core7
30c03f26f1cdad3edbb9d79d50fbada8acc974f5
[ "Apache-2.0" ]
4
2016-08-25T12:08:39.000Z
2018-04-12T12:36:01.000Z
lib/JumpScale/lib/ssh/ufw/manager.py
rudecs/jumpscale_core7
30c03f26f1cdad3edbb9d79d50fbada8acc974f5
[ "Apache-2.0" ]
3
2016-03-08T07:49:34.000Z
2018-10-19T13:56:43.000Z
import re import collections from fabric.api import settings from JumpScale import j STATUS_LINE = re.compile('^Status:\s*(.+)') RULE_LINE = re.compile('^\[\s*(\d+)\] (.+?)\s{2,}(.+?)\s{2,}(.+)$') ParsedDestination = collections.namedtuple('ParsedDestination', 'ip proto p...
25.332203
80
0.540479
fe92707ac951326db9bc91c54b5ba2d78cb380f5
320
py
Python
descuento.py
BrayanTorres2/algoritmos_programacion
21bfa47e50f8405fb683064b6cf5071158609f63
[ "MIT" ]
null
null
null
descuento.py
BrayanTorres2/algoritmos_programacion
21bfa47e50f8405fb683064b6cf5071158609f63
[ "MIT" ]
null
null
null
descuento.py
BrayanTorres2/algoritmos_programacion
21bfa47e50f8405fb683064b6cf5071158609f63
[ "MIT" ]
1
2021-11-19T02:25:30.000Z
2021-11-19T02:25:30.000Z
""" Entradas total_pagar-->float-->total_ pagar Salidas descuento-->float-->descuento """ #entradas total_pagar=float(input("Digite total a pagar")) #Caja negra descuento=total_pagar-total_pagar*0.15#float #Salida print("debe pagar: ", descuento) print("debe pagar:"+str(descuento)) print(f"debe pagar: {descuento}")
17.777778
48
0.74375
8e038e354ec4626e8fb649c5decd2786272676f0
3,763
py
Python
archive/model_archive/LSTMNoWindows.py
Sensors-in-Paradise/OpportunityML
a123b4842de45f735d517be6bcd96ca35171db91
[ "MIT" ]
1
2022-03-25T16:00:36.000Z
2022-03-25T16:00:36.000Z
archive/model_archive/LSTMNoWindows.py
Sensors-in-Paradise/OpportunityML
a123b4842de45f735d517be6bcd96ca35171db91
[ "MIT" ]
1
2022-03-28T13:50:28.000Z
2022-03-28T13:50:28.000Z
archive/model_archive/LSTMNoWindows.py
Sensors-in-Paradise/OpportunityML
a123b4842de45f735d517be6bcd96ca35171db91
[ "MIT" ]
null
null
null
from models.JensModel import LSTMModel from tensorflow.keras.layers import Conv1D, Dense, Dropout # type: ignore import tensorflow as tf # type: ignore from tensorflow.keras.layers import Input, Dense, LSTM, concatenate, Activation, Masking # type: ignore from tensorflow.keras.layers import Conv1D, BatchNormalizatio...
33.598214
120
0.612012
7452711eed4529cc0f4e3b0aae3b9eab16598d03
2,023
py
Python
ydkgen/printer/go/class_get_children_printer.py
geordish/ydk-gen
eb95b2a86f61180a773b18d0c65b6b906ed542ee
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
ydkgen/printer/go/class_get_children_printer.py
geordish/ydk-gen
eb95b2a86f61180a773b18d0c65b6b906ed542ee
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
ydkgen/printer/go/class_get_children_printer.py
geordish/ydk-gen
eb95b2a86f61180a773b18d0c65b6b906ed542ee
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# ---------------------------------------------------------------- # Copyright 2016 Cisco Systems # # 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/LICENS...
37.462963
84
0.625803
cbdcc405dc18c27ab3e09d58ef27a9ba50785e32
2,457
py
Python
scripts/evaluation/config.py
taikusa/rcrs-server
29b530a8a0f2d3a604c6a71020d2e1dd4972c719
[ "BSD-3-Clause" ]
1
2020-06-21T21:27:57.000Z
2020-06-21T21:27:57.000Z
scripts/evaluation/config.py
taikusa/rcrs-server
29b530a8a0f2d3a604c6a71020d2e1dd4972c719
[ "BSD-3-Clause" ]
null
null
null
scripts/evaluation/config.py
taikusa/rcrs-server
29b530a8a0f2d3a604c6a71020d2e1dd4972c719
[ "BSD-3-Clause" ]
null
null
null
all_teams = ["ANC", "APO", "CSU", "GUC", "LTI", "MIN", "MRL", "NAI", "POS", "RI1", "RAK", "SOS", "ZJU"] semi_teams = ["APO", "CSU", "GUC", "MIN", "MRL", "POS", "SOS", "ZJU"] team_names = { # "BAS" : "Baseline (no agents)", "ANC" : "anct_rescue2013", "APO" : "Apollo-Rescue", "CSU" : "CSU-YUNLU", "GU...
30.333333
107
0.490435
24bd2b35d4f8a1a9ef5e3323ebff8ed767132b3d
4,215
py
Python
dask/dataframe/optimize.py
srijan-deepsource/dask
0673d9084e02f985f3fdf5ba6ede80e8de5ac15c
[ "BSD-3-Clause" ]
20
2015-01-19T14:04:10.000Z
2020-01-14T03:43:19.000Z
dask/dataframe/optimize.py
srijan-deepsource/dask
0673d9084e02f985f3fdf5ba6ede80e8de5ac15c
[ "BSD-3-Clause" ]
12
2015-01-22T22:00:43.000Z
2020-07-28T19:22:16.000Z
dask/dataframe/optimize.py
srijan-deepsource/dask
0673d9084e02f985f3fdf5ba6ede80e8de5ac15c
[ "BSD-3-Clause" ]
7
2015-01-04T18:50:00.000Z
2020-07-29T11:00:04.000Z
""" Dataframe optimizations """ import operator from dask.base import tokenize from ..optimization import cull, fuse from .. import config, core from ..highlevelgraph import HighLevelGraph from ..utils import ensure_dict from ..blockwise import optimize_blockwise, fuse_roots, Blockwise def optimize(dsk, keys, **kwar...
33.991935
88
0.563227
6cfb114e0a8693e73285d5aed9257ae0230d86ff
2,602
py
Python
nova/api/openstack/compute/views/flavors.py
NetApp/nova
ca490d48a762a423449c654d5a7caeadecf2f6ca
[ "Apache-2.0" ]
2
2015-11-05T04:52:34.000Z
2016-03-07T03:00:06.000Z
nova/api/openstack/compute/views/flavors.py
NetApp/nova
ca490d48a762a423449c654d5a7caeadecf2f6ca
[ "Apache-2.0" ]
1
2018-01-19T07:50:49.000Z
2018-01-19T07:50:49.000Z
nova/api/openstack/compute/views/flavors.py
NetApp/nova
ca490d48a762a423449c654d5a7caeadecf2f6ca
[ "Apache-2.0" ]
1
2020-07-24T07:32:11.000Z
2020-07-24T07:32:11.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010-2011 OpenStack Foundation # 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....
35.643836
78
0.544197
653783fe3967b3c031395beb8ef4772406a2d441
4,209
py
Python
vmtkScripts/vmtkbranchpatching.py
michelebucelli/vmtk
738bd1d152e8836847ab4d75f7e8360bd574e724
[ "Apache-2.0" ]
217
2015-01-05T19:08:30.000Z
2022-03-31T12:14:59.000Z
vmtkScripts/vmtkbranchpatching.py
mrp089/vmtk
64675f598e31bc6be3d4fba903fb59bf1394f492
[ "Apache-2.0" ]
226
2015-03-31T07:16:06.000Z
2022-03-01T14:59:30.000Z
vmtkScripts/vmtkbranchpatching.py
mrp089/vmtk
64675f598e31bc6be3d4fba903fb59bf1394f492
[ "Apache-2.0" ]
132
2015-02-16T11:38:34.000Z
2022-03-18T04:38:45.000Z
#!/usr/bin/env python ## Program: VMTK ## Module: $RCSfile: vmtkbranchpatching.py,v $ ## Language: Python ## Date: $Date: 2006/07/07 10:46:17 $ ## Version: $Revision: 1.9 $ ## Copyright (c) Luca Antiga, David Steinman. All rights reserved. ## See LICENSE file for details. ## This software is di...
40.471154
159
0.68401
bbfbeef81a0bfc9b4ee6a61bbe3f8132b1dcc8db
1,897
py
Python
provision/management/commands/sync_clusterpaths_from_int_to_dev.py
NOAA-GSD/qrba_os
83d079e43a7fa026c5ced79d7bc65f62cd74b90b
[ "CC0-1.0" ]
1
2019-11-14T03:43:32.000Z
2019-11-14T03:43:32.000Z
provision/management/commands/sync_clusterpaths_from_int_to_dev.py
NOAA-GSD/qrba_os
83d079e43a7fa026c5ced79d7bc65f62cd74b90b
[ "CC0-1.0" ]
null
null
null
provision/management/commands/sync_clusterpaths_from_int_to_dev.py
NOAA-GSD/qrba_os
83d079e43a7fa026c5ced79d7bc65f62cd74b90b
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/python from __future__ import unicode_literals # https://stackoverflow.com/questions/19475955/using-django-models-in-external-python-script from django.core.management.base import BaseCommand, CommandError import datetime from django.utils import timezone from provision.models import Cluster from qrba impo...
44.116279
120
0.618872
e13e1f25be8830ac2e2c100cb6a7a6f71d674ced
509
py
Python
server/lib/Cgi.py
worldflat/Aceserver
fbc63f2128e17af55034297b3619004c06b2132f
[ "Apache-2.0" ]
null
null
null
server/lib/Cgi.py
worldflat/Aceserver
fbc63f2128e17af55034297b3619004c06b2132f
[ "Apache-2.0" ]
null
null
null
server/lib/Cgi.py
worldflat/Aceserver
fbc63f2128e17af55034297b3619004c06b2132f
[ "Apache-2.0" ]
null
null
null
from http.server import HTTPServer, CGIHTTPRequestHandler import socketserver class CGIServer: def __init__(self, port, address, dir): self.port = port self.addr = address self.dir = dir def runserver(self): port = self.port addr = self.addr dir = self.dir ...
26.789474
57
0.616896
d00701b322548b7242292ce26f2c52be7e121e71
4,074
py
Python
textworld/envs/zmachine/jericho.py
bibidang/CS4033ShortRL
336a453efe6232008be05e0d7fb41665ec292271
[ "MIT" ]
2
2021-04-25T21:27:55.000Z
2021-04-28T08:13:50.000Z
textworld/envs/zmachine/jericho.py
bibidang/CS4033ShortRL
336a453efe6232008be05e0d7fb41665ec292271
[ "MIT" ]
null
null
null
textworld/envs/zmachine/jericho.py
bibidang/CS4033ShortRL
336a453efe6232008be05e0d7fb41665ec292271
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT license. import os import warnings import jericho import textworld from textworld.core import GameState from textworld.core import GameNotRunningError class JerichoEnv(textworld.Environment): def __init__(self, *args, **kwar...
31.581395
103
0.62273
12b9af2af54fab0d1dc7c4d663f91a5f4347361f
4,219
py
Python
generator/generate_routes.py
paulritzy/dropbox-sdk-js
cf7ea0fed6fb5cbc7e641cb70b2ab5024150177c
[ "MIT" ]
1
2022-02-22T14:29:43.000Z
2022-02-22T14:29:43.000Z
generator/generate_routes.py
paulritzy/dropbox-sdk-js
cf7ea0fed6fb5cbc7e641cb70b2ab5024150177c
[ "MIT" ]
null
null
null
generator/generate_routes.py
paulritzy/dropbox-sdk-js
cf7ea0fed6fb5cbc7e641cb70b2ab5024150177c
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import absolute_import, division, print_function, unicode_literals import argparse import glob import json import os import subprocess import sys cmdline_desc = """\ Runs Stone to generate JS routes for the Dropbox client. """ _cmdline_parser = argparse.ArgumentParser(descriptio...
33.220472
210
0.615312
09dbeca8c91cf3d2eedd37575120a47c32dc4add
1,611
py
Python
user_menu/menu.py
skjoshi267/ucd_20200200_shreyankjoshi
96f97950944458dd6b4c5081e88352b4deb425ed
[ "MIT" ]
null
null
null
user_menu/menu.py
skjoshi267/ucd_20200200_shreyankjoshi
96f97950944458dd6b4c5081e88352b4deb425ed
[ "MIT" ]
null
null
null
user_menu/menu.py
skjoshi267/ucd_20200200_shreyankjoshi
96f97950944458dd6b4c5081e88352b4deb425ed
[ "MIT" ]
null
null
null
#Get all errors from Errors class from errors import Errors #Get all configurations from Configuration Class from config import Configuration #Import Stock Data and Operations from stock_database import stock_data import pandas as pd #Select the mode of application : 1. Command Line 2. GUI def user_menu(): operati...
27.305085
100
0.671633
3f889ccdaa4b4e0b9c3fe9ea482ef42ae1b90269
92
py
Python
acmicpc/5554/5554.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
3
2019-03-09T05:19:23.000Z
2019-04-06T09:26:36.000Z
acmicpc/5554/5554.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2020-02-23T10:38:04.000Z
2020-02-23T10:38:04.000Z
acmicpc/5554/5554.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2019-05-22T13:47:53.000Z
2019-05-22T13:47:53.000Z
t = [int(input()) for _ in range(4)] h = sum(t) // 60 print(h) m = sum(t) - 60 * h print(m)
15.333333
36
0.521739
9627f29bb71685a38f0493ba10b06d6258dfda85
1,510
py
Python
openslides/core/access_permissions.py
boehlke/OpenSlides
7a64fb83ebda2cb41706f62d7cfc5a63dbcab4a2
[ "MIT" ]
null
null
null
openslides/core/access_permissions.py
boehlke/OpenSlides
7a64fb83ebda2cb41706f62d7cfc5a63dbcab4a2
[ "MIT" ]
null
null
null
openslides/core/access_permissions.py
boehlke/OpenSlides
7a64fb83ebda2cb41706f62d7cfc5a63dbcab4a2
[ "MIT" ]
null
null
null
from ..utils.access_permissions import BaseAccessPermissions from ..utils.auth import GROUP_ADMIN_PK, async_in_some_groups class ProjectorAccessPermissions(BaseAccessPermissions): """ Access permissions container for Projector and ProjectorViewSet. """ base_permission = "core.can_see_projector" cla...
24.754098
73
0.733113
717739f2ef171f81187b9199007d7d87c53e6218
13,405
py
Python
santoku/utils/url_handler.py
wiris/santoku
1243b68d3363a3b7205ac47e1772a32787f9ed35
[ "MIT" ]
3
2020-07-08T19:33:11.000Z
2022-03-12T10:05:40.000Z
santoku/utils/url_handler.py
wiris/santoku
1243b68d3363a3b7205ac47e1772a32787f9ed35
[ "MIT" ]
1
2021-04-21T09:13:51.000Z
2021-04-21T09:13:51.000Z
santoku/utils/url_handler.py
wiris/santoku
1243b68d3363a3b7205ac47e1772a32787f9ed35
[ "MIT" ]
1
2020-11-11T18:09:34.000Z
2020-11-11T18:09:34.000Z
import ipaddress from typing import List from urllib.parse import urlparse import tldextract class InvalidURLError(Exception): def __init__(self, message): super().__init__(message) class URLHandler: @classmethod def get_partial_domain( cls, url: str, num_subdomains: int = 0, raise_exce...
36.826923
101
0.581052
702051c80d920784630738f16b1ada90d4e520ea
7,446
py
Python
amlb/utils/core.py
automl/automlbenchmark
59e796fe6632637233a7104dfffe65f210f9eef5
[ "MIT" ]
2
2020-12-06T22:09:12.000Z
2022-02-09T00:02:29.000Z
amlb/utils/core.py
automl/automlbenchmark
59e796fe6632637233a7104dfffe65f210f9eef5
[ "MIT" ]
null
null
null
amlb/utils/core.py
automl/automlbenchmark
59e796fe6632637233a7104dfffe65f210f9eef5
[ "MIT" ]
null
null
null
from ast import literal_eval from collections.abc import Iterable from functools import reduce, wraps import json import logging import pprint log = logging.getLogger(__name__) class Namespace: printer = pprint.PrettyPrinter(indent=2) @staticmethod def parse(*args, **kwargs): raw = dict(*args, ...
27.88764
152
0.559226
519231d92ccd46474ab28c587b1e5c027823e25e
2,321
py
Python
PythonXMLTags/parser_excerpt.py
kevinburleigh75/NSFPatents
1f7f93dff4128793d43d177cff43d087e25b6c28
[ "Apache-2.0" ]
1
2015-03-08T02:32:39.000Z
2015-03-08T02:32:39.000Z
PythonXMLTags/parser_excerpt.py
ahirschberg/NSFPatents
e70d7369ea05aff7edf2715545bd674c8c9293d5
[ "Apache-2.0" ]
null
null
null
PythonXMLTags/parser_excerpt.py
ahirschberg/NSFPatents
e70d7369ea05aff7edf2715545bd674c8c9293d5
[ "Apache-2.0" ]
2
2016-05-26T13:52:02.000Z
2020-04-26T02:31:35.000Z
def setTags(self, year): print 'Year is %s' % year if year >= 07: # 2007 tagslist self.ipa_enclosing = 'us-patent-application' self.ipa_pubnum = 'publication-reference/document-id/doc-number' self.ipa_pubdate = 'publication-reference/document-id/date' #Pub...
82.892857
318
0.69539
93f28c5796cc43ee8cf5802b50b3938dd9926674
3,333
py
Python
asreview/ascii.py
bmkramer/automated-systematic-review
f99079926f381bc7895ff6fefa9e6e729a2c26b8
[ "Apache-2.0" ]
1
2021-01-22T15:18:33.000Z
2021-01-22T15:18:33.000Z
asreview/ascii.py
bmkramer/automated-systematic-review
f99079926f381bc7895ff6fefa9e6e729a2c26b8
[ "Apache-2.0" ]
null
null
null
asreview/ascii.py
bmkramer/automated-systematic-review
f99079926f381bc7895ff6fefa9e6e729a2c26b8
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The ASReview 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 applicabl...
43.285714
82
0.428443
8a11e12381808cab9fb41b692575f66664a5bd6a
348
py
Python
invenio_requests/resolvers/__init__.py
mb-wali/invenio-requests
897084787bf3af51425043dad9183b4d5773938e
[ "MIT" ]
null
null
null
invenio_requests/resolvers/__init__.py
mb-wali/invenio-requests
897084787bf3af51425043dad9183b4d5773938e
[ "MIT" ]
87
2021-11-08T12:58:56.000Z
2022-03-29T08:52:48.000Z
invenio_requests/resolvers/__init__.py
mb-wali/invenio-requests
897084787bf3af51425043dad9183b4d5773938e
[ "MIT" ]
10
2021-11-04T19:15:37.000Z
2022-02-21T09:27:07.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2021 - 2022 TU Wien. # # Invenio-Requests is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see LICENSE file for more # details. """Module for entity resolvers.""" # NOTE: no imports made available here because that introduces ci...
26.769231
79
0.715517
1a93f98335bdfadee18cd32475c67e00a5ae4018
276
py
Python
tests/artificial/transf_Integration/trend_MovingAverage/cycle_30/ar_/test_artificial_128_Integration_MovingAverage_30__20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/artificial/transf_Integration/trend_MovingAverage/cycle_30/ar_/test_artificial_128_Integration_MovingAverage_30__20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/artificial/transf_Integration/trend_MovingAverage/cycle_30/ar_/test_artificial_128_Integration_MovingAverage_30__20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 30, transform = "Integration", sigma = 0.0, exog_count = 20, ar_order = 0);
39.428571
171
0.73913
a638ff6f9a1b41dd1794c511c8a242d89ce00dfe
16,099
py
Python
mmic_openmm/components/ff_component.py
MolSSI/mmic_openmm
a0fea2a3d743282f3ebe74056d170a8e435c4eb9
[ "BSD-3-Clause" ]
null
null
null
mmic_openmm/components/ff_component.py
MolSSI/mmic_openmm
a0fea2a3d743282f3ebe74056d170a8e435c4eb9
[ "BSD-3-Clause" ]
null
null
null
mmic_openmm/components/ff_component.py
MolSSI/mmic_openmm
a0fea2a3d743282f3ebe74056d170a8e435c4eb9
[ "BSD-3-Clause" ]
null
null
null
from mmelemental.models import forcefield from mmic_translator.models import ( TransInput, TransOutput, ) from mmic_translator.components import TransComponent from mmic_openmm.mmic_openmm import units as openmm_units from typing import List, Tuple, Optional from collections.abc import Iterable from mmelemental...
34.921909
120
0.541152
0955f57121327f9e4edcd58c26e125db07ab800e
93
py
Python
blockcert/apps.py
amit502/digi_cert
a0d9669ed1470961509b69e9c9b18bf197079d3d
[ "MIT" ]
null
null
null
blockcert/apps.py
amit502/digi_cert
a0d9669ed1470961509b69e9c9b18bf197079d3d
[ "MIT" ]
null
null
null
blockcert/apps.py
amit502/digi_cert
a0d9669ed1470961509b69e9c9b18bf197079d3d
[ "MIT" ]
2
2018-08-08T14:46:35.000Z
2021-07-13T12:08:16.000Z
from django.apps import AppConfig class BlockcertConfig(AppConfig): name = 'blockcert'
15.5
33
0.763441
ef2a751ba0a9dc7e3c77eeeb7c406bad32fe60f2
3,179
py
Python
scripts/utils/best_component_membership.py
mikeireland/chronostar
fcf37614e1d145f3a5e265e54512bf8cd98051a0
[ "MIT" ]
4
2018-05-28T11:05:42.000Z
2021-05-14T01:13:11.000Z
scripts/utils/best_component_membership.py
mikeireland/chronostar
fcf37614e1d145f3a5e265e54512bf8cd98051a0
[ "MIT" ]
13
2019-08-14T07:30:24.000Z
2021-11-08T23:44:29.000Z
scripts/utils/best_component_membership.py
mikeireland/chronostar
fcf37614e1d145f3a5e265e54512bf8cd98051a0
[ "MIT" ]
4
2016-04-21T08:25:26.000Z
2021-02-25T06:53:52.000Z
""" Add columns to the table with best component memberships """ import numpy as np from astropy.table import Table, vstack, unique, join import sys sys.path.insert(0, '/Users/marusa/chronostar/chronostar/') import coordinate ############################################ data_filename = '../gaia_200_pc_for_scocen_wi...
32.773196
122
0.710915
e3ff21c0b452ee7c9e8219991912f9e1b4846576
5,974
py
Python
irods-rest.py
alanking/irods_client_rest_cpp
848775e109d9204836488879028109356938ce18
[ "BSD-3-Clause" ]
null
null
null
irods-rest.py
alanking/irods_client_rest_cpp
848775e109d9204836488879028109356938ce18
[ "BSD-3-Clause" ]
null
null
null
irods-rest.py
alanking/irods_client_rest_cpp
848775e109d9204836488879028109356938ce18
[ "BSD-3-Clause" ]
null
null
null
import os, pycurl, getopt, sys, urllib from functools import partial from StringIO import StringIO try: from io import BytesIO except ImportError: from StringIO import StringIO as BytesIO def base_url(): return "http://localhost/irods-rest/1.0.0/" def authenticate(_user_name, _password, _auth_typ...
24.383673
158
0.592735
9f694f4bc30236766d7f05711c104624508f72a7
2,745
py
Python
nova/tests/test_wsgi.py
781778304/nova
05aff1959c9f94dae095635133386418390efb37
[ "Apache-2.0" ]
null
null
null
nova/tests/test_wsgi.py
781778304/nova
05aff1959c9f94dae095635133386418390efb37
[ "Apache-2.0" ]
null
null
null
nova/tests/test_wsgi.py
781778304/nova
05aff1959c9f94dae095635133386418390efb37
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compli...
29.516129
78
0.671403
c25f3f19d59e52c6063b44d4ed9e3d4b93058ae3
6,146
py
Python
__init__.py
NeonGeckoCom/skill-support_helper
4164dfe712c7a21dd9803d0ef199c8e222aa9a34
[ "Apache-2.0" ]
null
null
null
__init__.py
NeonGeckoCom/skill-support_helper
4164dfe712c7a21dd9803d0ef199c8e222aa9a34
[ "Apache-2.0" ]
null
null
null
__init__.py
NeonGeckoCom/skill-support_helper
4164dfe712c7a21dd9803d0ef199c8e222aa9a34
[ "Apache-2.0" ]
null
null
null
# NEON AI (TM) SOFTWARE, Software Development Kit & Application Framework # All trademark and other rights reserved by their respective owners # Copyright 2008-2022 Neongecko.com Inc. # Contributors: Daniel McKnight, Guy Daniels, Elon Gasper, Richard Leeds, # Regina Bloomstine, Casimiro Ferreira, Andrii Pernatii, Kiril...
43.9
78
0.657013
b90be324b0b3c42c6471cefcae9c950041ae993f
3,362
py
Python
flights/views.py
solnsubuga/flightapp
2da79cb4edef51507152a1d27388292a15b67815
[ "Apache-2.0" ]
null
null
null
flights/views.py
solnsubuga/flightapp
2da79cb4edef51507152a1d27388292a15b67815
[ "Apache-2.0" ]
8
2020-02-12T00:24:07.000Z
2021-09-08T01:11:22.000Z
flights/views.py
solnsubuga/flightapp
2da79cb4edef51507152a1d27388292a15b67815
[ "Apache-2.0" ]
null
null
null
# pylint: disable=E1101 from flights.serializers import FlightSerializer, FlightReservationSerializer, QueryReservationSerializer from flights.models import Flight, Reservation from rest_framework import generics from rest_framework import exceptions from rest_framework.views import APIView, status from rest_framework....
38.204545
105
0.696312
af2b8e71c3677774c33a67a3a976fd9468bf2c17
767
py
Python
train.py
igorperic17/object_detection_tf_example
4d79eb45f5cf05af51e1055f72e4226dfa0f3538
[ "Apache-2.0" ]
null
null
null
train.py
igorperic17/object_detection_tf_example
4d79eb45f5cf05af51e1055f72e4226dfa0f3538
[ "Apache-2.0" ]
null
null
null
train.py
igorperic17/object_detection_tf_example
4d79eb45f5cf05af51e1055f72e4226dfa0f3538
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf mnist = tf.keras.datasets.mnist (x_train, y_train), (x_test, y_test) = mnist.load_data() x_train, x_test = x_train / 255.0, x_test / 255.0 model = tf.keras.models.Sequential([ tf.keras.layers.Flatten(input_shape=(28, 28)), tf.keras.layers.Dense(128, activation='relu'), tf.keras.layers.D...
25.566667
73
0.711864
0eda28056a7dd0b5844c348a56491adcc47830d2
1,871
py
Python
bin/build-results.py
adjspecies/furrypoll-munger
8dfe57e873ccad899fbb4c1395cf89e5a70d043a
[ "MIT" ]
1
2019-01-24T01:57:17.000Z
2019-01-24T01:57:17.000Z
bin/build-results.py
adjspecies/furrypoll-munger
8dfe57e873ccad899fbb4c1395cf89e5a70d043a
[ "MIT" ]
1
2016-01-10T23:59:39.000Z
2016-01-10T23:59:39.000Z
bin/build-results.py
adjspecies/furrypoll-munger
8dfe57e873ccad899fbb4c1395cf89e5a70d043a
[ "MIT" ]
1
2015-04-05T18:43:12.000Z
2015-04-05T18:43:12.000Z
import csv import logging import sys import tempfile import subprocess import shutil from results.meta import FIELDNAMES def main(out_dir): # Modules for resetting modules = sys.modules.copy() def reset_imports(): logger.info("Resetting imports") n = 0 for k, v in sys.modules.item...
31.183333
79
0.602352
852b4b1056c06613a7e7ca9f4139ce3620f45e02
2,828
py
Python
adbus/server/signal.py
wuhanck/adbus
a5d4840fa99828f6da58c8912633c2bfd30a997f
[ "MIT" ]
31
2017-09-07T22:57:54.000Z
2021-08-15T01:45:42.000Z
adbus/server/signal.py
wuhanck/adbus
a5d4840fa99828f6da58c8912633c2bfd30a997f
[ "MIT" ]
41
2017-08-23T17:44:02.000Z
2021-04-21T21:22:24.000Z
adbus/server/signal.py
wuhanck/adbus
a5d4840fa99828f6da58c8912633c2bfd30a997f
[ "MIT" ]
10
2018-08-22T06:08:20.000Z
2020-07-06T11:05:04.000Z
# Copyright: 2017, CCX Technologies """D-Bus Signal""" from .. import sdbus class Signal: """Provides a method to emit a signal via D-Bus. This class is to be used as a Decorator for signals in an adbus.server.Object which will be exported via the D-Bus. Args: name (str): optional, signal n...
32.505747
74
0.582744
9b9f83f37ec0d88d71125f9e1f49e506c410ec44
2,400
py
Python
funtests/tests/test_mongodb.py
hudolejev/kombu
1bd9ac8f9725a4e11520e424f927b4a43f42a4a5
[ "BSD-3-Clause" ]
2
2017-08-28T17:15:06.000Z
2018-02-09T08:04:39.000Z
funtests/tests/test_mongodb.py
hudolejev/kombu
1bd9ac8f9725a4e11520e424f927b4a43f42a4a5
[ "BSD-3-Clause" ]
null
null
null
funtests/tests/test_mongodb.py
hudolejev/kombu
1bd9ac8f9725a4e11520e424f927b4a43f42a4a5
[ "BSD-3-Clause" ]
1
2019-08-16T18:50:50.000Z
2019-08-16T18:50:50.000Z
from kombu import Consumer, Producer, Exchange, Queue from kombu.five import range from kombu.utils import nested from kombu.tests.case import skip_if_not_module from funtests import transport class test_mongodb(transport.TransportCase): transport = 'mongodb' prefix = 'mongodb' event_loop_max = 100 ...
30.769231
76
0.605833
0c51a07c14a9af1a181cb39312082b42aabc3a39
4,863
py
Python
PDF.co Web API/PDF Merging API/Python/Merge PDF Documents From Uploaded Files Asynchronously/MergePDFDocumentsFromUploadedFileAsynchronously.py
atkins126/ByteScout-SDK-SourceCode
cc4bc9e779ad95f85be0a8630c17878006059684
[ "Apache-2.0" ]
null
null
null
PDF.co Web API/PDF Merging API/Python/Merge PDF Documents From Uploaded Files Asynchronously/MergePDFDocumentsFromUploadedFileAsynchronously.py
atkins126/ByteScout-SDK-SourceCode
cc4bc9e779ad95f85be0a8630c17878006059684
[ "Apache-2.0" ]
null
null
null
PDF.co Web API/PDF Merging API/Python/Merge PDF Documents From Uploaded Files Asynchronously/MergePDFDocumentsFromUploadedFileAsynchronously.py
atkins126/ByteScout-SDK-SourceCode
cc4bc9e779ad95f85be0a8630c17878006059684
[ "Apache-2.0" ]
null
null
null
""" Cloud API asynchronous "PDF To Text" job example. Allows to avoid timeout errors when processing huge or scanned PDF documents. """ import os import requests # pip install requests import time import datetime # The authentication key (API Key). # Get your own by registering at https://app.pdf.co/documentation/...
34.006993
128
0.581328
daab7482e6fcd4530ee66c906699733ce138c12d
324
py
Python
rxbp/multicast/impl/multicastsubscriberimpl.py
MichaelSchneeberger/rx_backpressure
16173827498bf1bbee3344933cb9efbfd19699f5
[ "Apache-2.0" ]
24
2018-11-22T21:04:49.000Z
2021-11-08T11:18:09.000Z
rxbp/multicast/impl/multicastsubscriberimpl.py
MichaelSchneeberger/rx_backpressure
16173827498bf1bbee3344933cb9efbfd19699f5
[ "Apache-2.0" ]
1
2019-02-06T15:58:46.000Z
2019-02-12T20:31:50.000Z
rxbp/multicast/impl/multicastsubscriberimpl.py
MichaelSchneeberger/rx_backpressure
16173827498bf1bbee3344933cb9efbfd19699f5
[ "Apache-2.0" ]
1
2021-01-26T12:41:37.000Z
2021-01-26T12:41:37.000Z
from typing import Tuple from dataclass_abc import dataclass_abc from rxbp.multicast.multicastsubscriber import MultiCastSubscriber from rxbp.schedulers.trampolinescheduler import TrampolineScheduler @dataclass_abc class MultiCastSubscriberImpl(MultiCastSubscriber): subscribe_schedulers: Tuple[TrampolineSchedul...
27
67
0.876543
adadd945be16c596bc332905f941a9e083f8fdfe
4,388
py
Python
fluent_pages/management/commands/rebuild_page_tree.py
vinnyrose/django-fluent-pages
960b40dcf4e5cecd440f6414d28be6b51f31eb4e
[ "Apache-2.0" ]
null
null
null
fluent_pages/management/commands/rebuild_page_tree.py
vinnyrose/django-fluent-pages
960b40dcf4e5cecd440f6414d28be6b51f31eb4e
[ "Apache-2.0" ]
null
null
null
fluent_pages/management/commands/rebuild_page_tree.py
vinnyrose/django-fluent-pages
960b40dcf4e5cecd440f6414d28be6b51f31eb4e
[ "Apache-2.0" ]
null
null
null
from django.core.management.base import NoArgsCommand from django.utils.encoding import smart_text from optparse import make_option from fluent_pages import appsettings from fluent_pages.models.db import UrlNode_Translation, UrlNode class Command(NoArgsCommand): """ Update the tree, rebuild the translated URL...
40.256881
167
0.590018
b1462bb95b585e8b788163481dc21824a6b1e84c
7,562
py
Python
test/functional/wallet_dump.py
Manu-2009/Geranium
93c08aa10ea151f4efd8337c1d5599ee7e8d58ea
[ "MIT" ]
2
2022-01-09T15:32:02.000Z
2022-01-09T15:32:22.000Z
test/functional/wallet_dump.py
Manu-2009/Geranium
93c08aa10ea151f4efd8337c1d5599ee7e8d58ea
[ "MIT" ]
2
2021-12-23T01:04:41.000Z
2021-12-30T18:47:39.000Z
test/functional/wallet_dump.py
Manu-2009/Geranium
93c08aa10ea151f4efd8337c1d5599ee7e8d58ea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016-2019 The Geranium Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the dumpwallet RPC.""" import os from test_framework.test_framework import GeraniumTestFramework...
43.710983
146
0.605395
f23e6d75490dfb678c44672ba1d54f6a0737e5ce
43,338
py
Python
pyboto3/codestar.py
gehad-shaat/pyboto3
4a0c2851a8bc04fb1c71c36086f7bb257e48181d
[ "MIT" ]
91
2016-12-31T11:38:37.000Z
2021-09-16T19:33:23.000Z
pyboto3/codestar.py
gehad-shaat/pyboto3
4a0c2851a8bc04fb1c71c36086f7bb257e48181d
[ "MIT" ]
7
2017-01-02T18:54:23.000Z
2020-08-11T13:54:02.000Z
pyboto3/codestar.py
gehad-shaat/pyboto3
4a0c2851a8bc04fb1c71c36086f7bb257e48181d
[ "MIT" ]
26
2016-12-31T13:11:00.000Z
2022-03-03T21:01:12.000Z
''' The MIT License (MIT) Copyright (c) 2016 WavyCloud 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, p...
28.681668
2,625
0.69844
fbadf1b6ba7f9ecf0e050a629ab13f47532601be
10,849
py
Python
src/fastly_bouncer/fastly_api.py
crowdsecurity/cs-fastly-bouncer
76db68c11c6dcd2174c25496009a11109368265c
[ "MIT" ]
null
null
null
src/fastly_bouncer/fastly_api.py
crowdsecurity/cs-fastly-bouncer
76db68c11c6dcd2174c25496009a11109368265c
[ "MIT" ]
1
2022-03-02T10:58:05.000Z
2022-03-09T09:44:55.000Z
src/fastly_bouncer/fastly_api.py
crowdsecurity/cs-fastly-bouncer
76db68c11c6dcd2174c25496009a11109368265c
[ "MIT" ]
null
null
null
import datetime import ipaddress import logging from dataclasses import asdict, dataclass, field from functools import partial from typing import Dict, List, Set from urllib.parse import urljoin import httpx import trio from dateutil.parser import parse as parse_date from fastly_bouncer.utils import with_suffix logg...
33.17737
155
0.578026
7e67dfd7a125ad975254d78a51124e355b37775e
448
py
Python
General Skills/mus1c (300 points)/flag.py
root-ji218at/2019game.picoctf.com
48ae89edbe06eef3f651cc535615ebfb067d57bc
[ "MIT" ]
null
null
null
General Skills/mus1c (300 points)/flag.py
root-ji218at/2019game.picoctf.com
48ae89edbe06eef3f651cc535615ebfb067d57bc
[ "MIT" ]
null
null
null
General Skills/mus1c (300 points)/flag.py
root-ji218at/2019game.picoctf.com
48ae89edbe06eef3f651cc535615ebfb067d57bc
[ "MIT" ]
null
null
null
############################################## ####### By Arijit bhowmick ##### ############################################## import os print("#"*27, "\nRockstar_encoded decoding as ASCII\n", "#"*27, "\n\n") ascii_enc = open("rockstar_code_enc.txt", "r") ascii_enc_list = ascii_enc.readlines() ascii_enc.close() ...
22.4
71
0.502232
22ecec7550ef9e176988fc95054e77b12d87f4ca
3,485
py
Python
server/plato/api/domains.py
zhlooking/plato
9daf0dfd8b376603453eadf2d981c71d3adb2632
[ "MIT" ]
null
null
null
server/plato/api/domains.py
zhlooking/plato
9daf0dfd8b376603453eadf2d981c71d3adb2632
[ "MIT" ]
null
null
null
server/plato/api/domains.py
zhlooking/plato
9daf0dfd8b376603453eadf2d981c71d3adb2632
[ "MIT" ]
null
null
null
from flask import Blueprint, make_response, jsonify, request from sqlalchemy import exc from plato import db from plato.api.utils import authenticate, is_admin from plato.model.domain import Domain domains_blueprint = Blueprint('domains', __name__, template_folder='./templates') @domains_blueprint.route('/domains',...
31.681818
81
0.570732
9de63807cf645d34eb02489c55b50a339bb0fab1
16,024
py
Python
mindarmour/adv_robustness/attacks/deep_fool.py
hboshnak/mindarmour
0609a4eaea875a84667bed279add9305752880cc
[ "Apache-2.0" ]
null
null
null
mindarmour/adv_robustness/attacks/deep_fool.py
hboshnak/mindarmour
0609a4eaea875a84667bed279add9305752880cc
[ "Apache-2.0" ]
null
null
null
mindarmour/adv_robustness/attacks/deep_fool.py
hboshnak/mindarmour
0609a4eaea875a84667bed279add9305752880cc
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Huawei Technologies Co., Ltd # # 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...
47.129412
117
0.587119
8f7f58586717e6600de56063186ef3843cd9553c
4,579
py
Python
sumy/summarizers/text_rank.py
Mike-debug/sumy
c948bc72ebd07dc4c4f41d905bab0de38163779c
[ "Apache-2.0" ]
2,880
2015-01-02T14:59:08.000Z
2022-03-30T08:49:11.000Z
sumy/summarizers/text_rank.py
Mike-debug/sumy
c948bc72ebd07dc4c4f41d905bab0de38163779c
[ "Apache-2.0" ]
129
2015-02-09T20:42:19.000Z
2022-03-30T21:28:56.000Z
sumy/summarizers/text_rank.py
Mike-debug/sumy
c948bc72ebd07dc4c4f41d905bab0de38163779c
[ "Apache-2.0" ]
545
2015-01-12T06:15:50.000Z
2022-03-30T21:11:58.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division, print_function, unicode_literals import math try: import numpy except ImportError: numpy = None from ._summarizer import AbstractSummarizer class TextRankSummarizer(AbstractSummarizer): """An implementation...
39.474138
117
0.674383
fe6ee04c5b260e130e41e3813084eecf6a8ab779
5,822
py
Python
nablapps/events/models/mixins.py
pettaroni/nablaweb
5e610698a276884b9cd779a718dfdee641713636
[ "MIT" ]
null
null
null
nablapps/events/models/mixins.py
pettaroni/nablaweb
5e610698a276884b9cd779a718dfdee641713636
[ "MIT" ]
null
null
null
nablapps/events/models/mixins.py
pettaroni/nablaweb
5e610698a276884b9cd779a718dfdee641713636
[ "MIT" ]
null
null
null
""" Mixins to be inherited by AbstractEvent They are split up in order make them easier to read, and because there was (once upon a time) an idea to split up the information about an event and the registration info into different models. """ from datetime import datetime, date from django.db import models from django....
37.56129
109
0.665922
79d6ac62bd6a35338e4f0fdcc47c6867830b2c8a
3,758
py
Python
py/hwid/service/appengine/test/e2e_test.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
3
2022-01-06T16:52:52.000Z
2022-03-07T11:30:47.000Z
py/hwid/service/appengine/test/e2e_test.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
null
null
null
py/hwid/service/appengine/test/e2e_test.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
1
2021-10-24T01:47:22.000Z
2021-10-24T01:47:22.000Z
#!/usr/bin/env python3 # Copyright 2018 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Tests for e2e test. Before deploying HWID Service to prod environment, one should run this test on the staging environment. The...
37.58
80
0.668707
5cf1755f41112d2149ccb6aedb0cb52eedacdb7a
18,985
py
Python
paasta_tools/long_running_service_tools.py
eric-erki/An-open-distributed-platform-as-a-service
6769c5601685deb1017910ab8d09109e8e998892
[ "Apache-2.0" ]
null
null
null
paasta_tools/long_running_service_tools.py
eric-erki/An-open-distributed-platform-as-a-service
6769c5601685deb1017910ab8d09109e8e998892
[ "Apache-2.0" ]
4
2021-02-08T20:42:08.000Z
2021-06-02T00:51:04.000Z
paasta_tools/long_running_service_tools.py
eric-erki/An-open-distributed-platform-as-a-service
6769c5601685deb1017910ab8d09109e8e998892
[ "Apache-2.0" ]
null
null
null
import logging import socket from typing import Dict from typing import List from typing import Mapping from typing import Optional from typing import Tuple import service_configuration_lib from kazoo.exceptions import NoNodeError from mypy_extensions import TypedDict from paasta_tools.utils import BranchDictV2 from ...
40.653105
120
0.689755
369fc6c76d890a703c63eda67287919ff59e6c4b
1,322
py
Python
notifications/tests.py
GilbertTan19/Empire_of_Movies-deploy
e9e05530a25e76523e624591c966dccf84898ace
[ "MIT" ]
null
null
null
notifications/tests.py
GilbertTan19/Empire_of_Movies-deploy
e9e05530a25e76523e624591c966dccf84898ace
[ "MIT" ]
2
2021-03-30T14:31:18.000Z
2021-04-08T21:22:09.000Z
notifications/tests.py
GilbertTan19/Empire_of_Movies-deploy
e9e05530a25e76523e624591c966dccf84898ace
[ "MIT" ]
5
2020-07-13T03:17:07.000Z
2020-07-22T03:15:57.000Z
from django.contrib.auth import get_user_model from django.contrib.auth.models import Permission from django.test import Client, TestCase from django.urls import reverse from .models import Notification from articles.models import Movie, Discussion from django.test import TestCase from .models import Notification # C...
37.771429
170
0.695159
b95ace5e7a153e3d7754c8f2137ad7aeb9d3cb15
3,582
py
Python
haareyfac.py
cyberdrk/haarcascades
42e037299f8fba9e337cfb7c2e5d2999e06a9666
[ "BSD-3-Clause" ]
2
2020-10-30T06:27:38.000Z
2021-05-07T14:33:09.000Z
haareyfac.py
cyberdrk/haarcascades
42e037299f8fba9e337cfb7c2e5d2999e06a9666
[ "BSD-3-Clause" ]
null
null
null
haareyfac.py
cyberdrk/haarcascades
42e037299f8fba9e337cfb7c2e5d2999e06a9666
[ "BSD-3-Clause" ]
1
2020-10-30T06:27:39.000Z
2020-10-30T06:27:39.000Z
''' IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. By downloading, copying, installing or using the software you agree to this license. If you do not agree to this license, do not download, install, copy or use the software. Intel License Agreement ...
49.068493
165
0.706309
b64bf2492cf5fd30a220d07fa7b292511f335184
5,516
py
Python
contrib/seeds/makeseeds.py
dmitriy79/dystem-core
22222e08c4ac5f29dbed99f087436dcbc65019c5
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
dmitriy79/dystem-core
22222e08c4ac5f29dbed99f087436dcbc65019c5
[ "MIT" ]
null
null
null
contrib/seeds/makeseeds.py
dmitriy79/dystem-core
22222e08c4ac5f29dbed99f087436dcbc65019c5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2013-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Generate seeds.txt from Pieter's DNS seeder # NSEEDS=512 MAX_SEEDS_PER_ASN=2 MIN_BLOCKS = 615801 #...
32.069767
186
0.567078
1abce05106555daf87913576bf9ddaa90a5600f4
1,488
py
Python
google/ads/googleads/v4/errors/types/ad_group_ad_error.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v4/errors/types/ad_group_ad_error.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v4/errors/types/ad_group_ad_error.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
31
74
0.714382
00b3bf43ff356fed555d8e18fb9396b5d0884149
3,277
py
Python
examples/datacamp-blogpost/05-it-aint-what-yo-do-it-s-the-time-that-you-do-it.py
sathiscode/trumania
bcf21c4f9e1ff0fe03fd9cbe2dc367f0df033fbc
[ "Apache-2.0" ]
97
2018-01-15T19:29:31.000Z
2022-03-11T00:27:34.000Z
examples/datacamp-blogpost/05-it-aint-what-yo-do-it-s-the-time-that-you-do-it.py
sathiscode/trumania
bcf21c4f9e1ff0fe03fd9cbe2dc367f0df033fbc
[ "Apache-2.0" ]
10
2018-01-15T22:44:55.000Z
2022-02-18T09:44:10.000Z
examples/datacamp-blogpost/05-it-aint-what-yo-do-it-s-the-time-that-you-do-it.py
sathiscode/trumania
bcf21c4f9e1ff0fe03fd9cbe2dc367f0df033fbc
[ "Apache-2.0" ]
33
2018-01-15T19:34:23.000Z
2022-03-05T22:39:33.000Z
import logging import pandas as pd from tabulate import tabulate from trumania.core import circus, operations from trumania.core.random_generators import SequencialGenerator, FakerGenerator, NumpyRandomGenerator, ConstantDependentGenerator, ConstantGenerator import trumania.core.util_functions as util_functions from ...
33.438776
148
0.728715
87389f8edad48ed85f43e0285b46e4a24c7eb144
14,921
py
Python
src/deeponto/onto/text/thesaurus.py
KRR-Oxford/DeepOnto
9262e372e2e404c907fe47e4964c75c492a278d9
[ "Apache-2.0" ]
6
2021-12-19T18:00:34.000Z
2022-03-28T22:53:44.000Z
src/deeponto/onto/text/thesaurus.py
KRR-Oxford/Onto-PLM
e2e0bb8a5b6d2aa320222b4f829eb741c67c6774
[ "Apache-2.0" ]
null
null
null
src/deeponto/onto/text/thesaurus.py
KRR-Oxford/Onto-PLM
e2e0bb8a5b6d2aa320222b4f829eb741c67c6774
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Yuan He (KRR-Oxford). 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 l...
48.602606
138
0.640574
13d6f3033237d069eceb963f9510ab365a3d50a5
31,462
py
Python
Bio/Graphics/BasicChromosome.py
rwst/biopython
d8280b25e3fefdf7aebb7700a7080879a4146200
[ "BSD-3-Clause" ]
2
2020-08-25T13:55:00.000Z
2020-08-25T16:36:03.000Z
Bio/Graphics/BasicChromosome.py
rwst/biopython
d8280b25e3fefdf7aebb7700a7080879a4146200
[ "BSD-3-Clause" ]
1
2020-04-25T20:36:07.000Z
2020-04-25T20:36:07.000Z
site-packages/Bio/Graphics/BasicChromosome.py
Wristlebane/Pyto
901ac307b68486d8289105c159ca702318bea5b0
[ "MIT" ]
1
2019-04-12T20:52:12.000Z
2019-04-12T20:52:12.000Z
# Copyright 2001, 2003 by Brad Chapman. All rights reserved. # Revisions copyright 2011 by Peter Cock. All rights reserved. # # This file is part of the Biopython distribution and governed by your # choice of the "Biopython License Agreement" or the "BSD 3-Clause License". # Please see the LICENSE file that should ha...
39.875792
89
0.622274
ba2afca5df7abc62ecc372282d367e6212f72e93
601
py
Python
RaspberryPi/Utility/MySqlHelper.py
sevenTiny/SevenTiny.SmartHome
59d1704a3faef114664dfbbb1d74b0ed41eb7ddf
[ "Apache-2.0" ]
2
2019-10-09T04:17:17.000Z
2019-11-12T11:43:51.000Z
RaspberryPi/Utility/MySqlHelper.py
sevenTiny/SevenTiny.SmartHome
59d1704a3faef114664dfbbb1d74b0ed41eb7ddf
[ "Apache-2.0" ]
null
null
null
RaspberryPi/Utility/MySqlHelper.py
sevenTiny/SevenTiny.SmartHome
59d1704a3faef114664dfbbb1d74b0ed41eb7ddf
[ "Apache-2.0" ]
1
2019-11-12T11:43:50.000Z
2019-11-12T11:43:50.000Z
# coding=utf-8 import pymysql from Utility.Configs import Cfg_MySql class MySqlHelper: conn = None def __init__(self, db): cfg_mysql = Cfg_MySql() self.conn = pymysql.connect(host=cfg_mysql.get('host'), port=int(cfg_mysql.get('port')), user=cfg_mysql.get('user'), passwd=cfg_mysql.get('passwd')...
24.04
163
0.637271
89b1804e0226bc83c86d43d234ce404f0c2ecacc
1,871
py
Python
sqlite4dummy-0.0.6/build/lib/sqlite4dummy/tests/sqlite3_in_python/func/test_quote.py
link-money-dev/link-api-web-service
3da226c7115ee4267f8346620029b710b9987e74
[ "BSD-3-Clause" ]
null
null
null
sqlite4dummy-0.0.6/build/lib/sqlite4dummy/tests/sqlite3_in_python/func/test_quote.py
link-money-dev/link-api-web-service
3da226c7115ee4267f8346620029b710b9987e74
[ "BSD-3-Clause" ]
1
2021-06-01T22:32:25.000Z
2021-06-01T22:32:25.000Z
sqlite4dummy-0.0.6/sqlite4dummy/tests/sqlite3_in_python/func/test_quote.py
link-money-dev/link-api-web-service
3da226c7115ee4267f8346620029b710b9987e74
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ QUOTE函数返回列所对应的原生SQL表达式。 Ref: https://www.sqlite.org/lang_corefunc.html """ from sqlite4dummy.tests.basetest import BaseUnittest from datetime import datetime, date import unittest class Unittest(BaseUnittest): def setUp(self): self.connect...
27.514706
72
0.463923
27e064d6d4f2a90b99850bfc9d533cb04d657bc5
9,469
py
Python
elasticapm/utils/encoding.py
RyanKung/apm-agent-python
125a3f0001011f07e74f879967880ef5dbf06130
[ "BSD-3-Clause" ]
null
null
null
elasticapm/utils/encoding.py
RyanKung/apm-agent-python
125a3f0001011f07e74f879967880ef5dbf06130
[ "BSD-3-Clause" ]
null
null
null
elasticapm/utils/encoding.py
RyanKung/apm-agent-python
125a3f0001011f07e74f879967880ef5dbf06130
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # BSD 3-Clause License # # Copyright (c) 2012, the Sentry Team, see AUTHORS for more details # Copyright (c) 2019, Elasticsearch BV # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following cond...
38.49187
118
0.660154
3ec5aba417b3d439193513f14ba0d2a91a54b686
22,552
py
Python
mediaplatform_jwp/sync.py
jbrownrs/issue-376-GDS-link
e8cce1b79f46b98a7d24b2da5eca48430fd904a3
[ "MIT" ]
5
2019-01-07T17:22:34.000Z
2020-10-08T15:03:12.000Z
mediaplatform_jwp/sync.py
jbrownrs/issue-376-GDS-link
e8cce1b79f46b98a7d24b2da5eca48430fd904a3
[ "MIT" ]
203
2017-12-14T09:51:56.000Z
2018-08-28T14:04:08.000Z
mediaplatform_jwp/sync.py
jbrownrs/issue-376-GDS-link
e8cce1b79f46b98a7d24b2da5eca48430fd904a3
[ "MIT" ]
5
2018-10-22T11:36:01.000Z
2020-07-20T05:47:49.000Z
import datetime import dateutil.parser from django.db import models, transaction from django.db.models import expressions, functions from django.utils import timezone import pytz import mediaplatform.models as mpmodels import mediaplatform_jwp.models as jwpmodels import legacysms.models as legacymodels import mediapl...
42.874525
99
0.67147
03c5f8872aa26991997879c9084e20553f4fef32
46,774
py
Python
katdal/ms_extra.py
adriaanph/katdal
a3d01a08c5e74b6143caef02e499f2073056acd7
[ "BSD-3-Clause" ]
null
null
null
katdal/ms_extra.py
adriaanph/katdal
a3d01a08c5e74b6143caef02e499f2073056acd7
[ "BSD-3-Clause" ]
null
null
null
katdal/ms_extra.py
adriaanph/katdal
a3d01a08c5e74b6143caef02e499f2073056acd7
[ "BSD-3-Clause" ]
null
null
null
################################################################################ # Copyright (c) 2011-2019, National Research Foundation (Square Kilometre Array) # # Licensed under the BSD 3-Clause License (the "License"); you may not use # this file except in compliance with the License. You may obtain a copy # of the...
45.946955
115
0.684975
88ae1288fefc73aa88f1f89de0c0855a8d6e4fa3
14,748
py
Python
rocketmq/client.py
francisoliverlee/rocketmq-client-python
2b683d9f80aebb7a1ee505c5cbf32ca7973b9fe3
[ "Apache-2.0" ]
212
2018-10-11T06:59:15.000Z
2022-03-30T09:45:10.000Z
rocketmq/client.py
francisoliverlee/rocketmq-client-python
2b683d9f80aebb7a1ee505c5cbf32ca7973b9fe3
[ "Apache-2.0" ]
89
2018-11-02T07:50:43.000Z
2022-03-16T00:44:18.000Z
rocketmq/client.py
francisoliverlee/rocketmq-client-python
2b683d9f80aebb7a1ee505c5cbf32ca7973b9fe3
[ "Apache-2.0" ]
97
2018-10-17T11:57:16.000Z
2022-03-08T05:12:08.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
33.518182
119
0.662395
07000e84a07cd073afcf1b3f46f582afd8035244
940
py
Python
sveedocuments/urls.py
sveetch/sveedocuments
c829ec78da79f8735935548ca881574cb8a8dfd2
[ "MIT" ]
1
2015-03-28T19:19:34.000Z
2015-03-28T19:19:34.000Z
sveedocuments/urls.py
sveetch/sveedocuments
c829ec78da79f8735935548ca881574cb8a8dfd2
[ "MIT" ]
10
2015-01-10T01:03:45.000Z
2016-01-16T11:04:42.000Z
sveedocuments/urls.py
sveetch/sveedocuments
c829ec78da79f8735935548ca881574cb8a8dfd2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Root url's map for application """ from django.conf.urls import * from sveedocuments.models import ATTACHMENTS_WITH_SENDFILE from sveedocuments.views.page import ( HelpPageView, PageIndexView, PageDetailsView, PageSourceView ) urlpatterns = patterns('', url(r'^$', PageIndexVie...
32.413793
146
0.674468
2314e361eed31093646693abc2eab49b6f2260e4
310
py
Python
vkwave/bots/core/dispatching/filters/__init__.py
Arsen-chechen/vkwave
71a450c50fd23b4f80f6e69e27a8d78d0ab2da95
[ "MIT" ]
null
null
null
vkwave/bots/core/dispatching/filters/__init__.py
Arsen-chechen/vkwave
71a450c50fd23b4f80f6e69e27a8d78d0ab2da95
[ "MIT" ]
null
null
null
vkwave/bots/core/dispatching/filters/__init__.py
Arsen-chechen/vkwave
71a450c50fd23b4f80f6e69e27a8d78d0ab2da95
[ "MIT" ]
null
null
null
from .base import BaseFilter # noqa: F401 from .builtin import ( EventTypeFilter, TextFilter, RegexFilter, FromMeFilter, PayloadFilter, ChatActionFilter, CommandsFilter, MessageFromConversationTypeFilter, ) # noqa: F401 from .cast import caster as filter_caster # noqa: F401
23.846154
55
0.722581
73021bec10038f0adacd686e341a51187cae4f65
1,890
py
Python
Eigenvalue_distribution_plots/appendix_figure/generate_data/fisher_easy_qnn.py
fpetitzon/effective_dimension
5d9a9b638967bee5ff848c9564f4c90849afc5ca
[ "Apache-2.0" ]
19
2021-05-02T11:42:19.000Z
2022-03-24T16:26:06.000Z
Eigenvalue_distribution_plots/appendix_figure/generate_data/fisher_easy_qnn.py
yuguoshao/QDNN_eDim
1f6384422cfc9e4d05be9c678fd6e7cf65b3bd4f
[ "Apache-2.0" ]
null
null
null
Eigenvalue_distribution_plots/appendix_figure/generate_data/fisher_easy_qnn.py
yuguoshao/QDNN_eDim
1f6384422cfc9e4d05be9c678fd6e7cf65b3bd4f
[ "Apache-2.0" ]
12
2021-06-24T16:53:17.000Z
2022-03-24T16:26:09.000Z
from effective_dimension import Model, EffectiveDimension, QuantumNeuralNetwork from qiskit.circuit.library import ZFeatureMap, RealAmplitudes import numpy as np # this code generates the data for the easy quantum models' fisher information eigenvalue distribution plot \ # in the Supplementary Information figure # Gl...
45
123
0.654497
39b4407bbf9ea35defa33fd9822c57b3f6bb88bc
5,951
py
Python
userbot/modules/whois.py
nayslaa/naysla
0352971c5cd6389d0eafaf398cdc83025a46f730
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2022-02-21T18:40:44.000Z
2022-02-21T18:40:44.000Z
userbot/modules/whois.py
nayslaa/naysla
0352971c5cd6389d0eafaf398cdc83025a46f730
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/whois.py
nayslaa/naysla
0352971c5cd6389d0eafaf398cdc83025a46f730
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # # The entire source code is OSSRPL except 'whois' which is MPL # License: MPL and OSSRPL """ Userbot module for getiing...
37.664557
91
0.62729