hexsha
stringlengths
40
40
size
int64
4
996k
ext
stringclasses
8 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
4
996k
avg_line_length
float64
1.33
58.2k
max_line_length
int64
2
323k
alphanum_fraction
float64
0
0.97
content_no_comment
stringlengths
0
946k
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
f72ab179dcc3caf0aecde8a069b2cd8ed3626836
2,754
py
Python
src/main/resources/classes/assassin/multihit.py
WynnLab/WynnLab
9950bc1485fa187394c1b1326fa0b5c6b6a1ac96
[ "MIT" ]
2
2021-03-17T19:28:36.000Z
2021-03-26T09:31:22.000Z
src/main/resources/classes/assassin/multihit.py
FauxKiwi/Wynnlab
9950bc1485fa187394c1b1326fa0b5c6b6a1ac96
[ "MIT" ]
5
2021-06-08T12:13:40.000Z
2021-08-09T15:04:23.000Z
src/main/resources/classes/assassin/multihit.py
FauxKiwi/Wynnlab
9950bc1485fa187394c1b1326fa0b5c6b6a1ac96
[ "MIT" ]
4
2021-08-09T15:17:23.000Z
2022-03-05T14:08:26.000Z
from org.bukkit import Particle, Sound from org.bukkit.potion import PotionEffectType from com.wynnlab.spells import PySpell from com.wynnlab.util import BukkitUtils class Spell(PySpell): def __init__(self): self.l = None self.entities = None self.shift = False def init(self): ...
41.727273
187
0.576253
from org.bukkit import Particle, Sound from org.bukkit.potion import PotionEffectType from com.wynnlab.spells import PySpell from com.wynnlab.util import BukkitUtils class Spell(PySpell): def __init__(self): self.l = None self.entities = None self.shift = False def init(self): ...
true
true
f72ab1a21ac26d83b6dfe2d7a8390897f1a6f645
5,138
py
Python
DSPdu.py
Francisobiagwu/SecureDocumentSharing
d8fe27f3ca4d1b470a8cbe6d3e475226bdb796c1
[ "MIT" ]
2
2018-06-21T18:06:15.000Z
2021-08-19T15:27:55.000Z
DSPdu.py
Francisobiagwu/DocumentSharing
d8fe27f3ca4d1b470a8cbe6d3e475226bdb796c1
[ "MIT" ]
null
null
null
DSPdu.py
Francisobiagwu/DocumentSharing
d8fe27f3ca4d1b470a8cbe6d3e475226bdb796c1
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ @author: Francis Obiagwu @software: SecureDocumentSharing @file: DSPdu.py @time: 6/6/18 7:16 PM """ import binascii import struct from datetime import datetime from DSCodes import DSCode class DSPdu: """ The DSPdu class is used to create a generic pdu object. The user have the opti...
30.583333
127
0.527053
import binascii import struct from datetime import datetime from DSCodes import DSCode class DSPdu: def __init__( self ): elf ): pass def pack( self, array ): self.s = struct.Struct(self.format) self.size = self.s.size return self.s.pack(*array) def unpack( se...
true
true
f72ab2180c0e9b438ab38e4580406e4f2106a777
731
py
Python
main.py
beetrandahiya/project-Zurich
e46584c1e036ec95a9f612d04a3855349568e082
[ "MIT" ]
null
null
null
main.py
beetrandahiya/project-Zurich
e46584c1e036ec95a9f612d04a3855349568e082
[ "MIT" ]
null
null
null
main.py
beetrandahiya/project-Zurich
e46584c1e036ec95a9f612d04a3855349568e082
[ "MIT" ]
null
null
null
import numpy as np #test inputs inputs = [1, 2, 3, 2.5] weights = [[0.2, 0.8, -0.5, 1], [0.5, -0.91, 0.26, -0.5], [-0.26, -0.27, 0.17, 0.87]] biases = [2, 3, 0.5] def neuron_output(inputs, weights,bias): return sum(inputs[i] * weights[i] for i in range(len(inputs)))+ bias #this can also be done with numpy becau...
22.151515
88
0.674419
import numpy as np inputs = [1, 2, 3, 2.5] weights = [[0.2, 0.8, -0.5, 1], [0.5, -0.91, 0.26, -0.5], [-0.26, -0.27, 0.17, 0.87]] biases = [2, 3, 0.5] def neuron_output(inputs, weights,bias): return sum(inputs[i] * weights[i] for i in range(len(inputs)))+ bias def neuron_layer_output(inputs, weights, biase...
true
true
f72ab2e85de44330df2bccc1d1ebf94901b9c48b
387
py
Python
students/K33401/Goncharov_Vladimir/Lr3/hotel/hotel/asgi.py
ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021
bb91c91a56d21cec2b12ae4cc722eaa652a88420
[ "MIT" ]
4
2020-09-03T15:41:42.000Z
2021-12-24T15:28:20.000Z
students/K33401/Goncharov_Vladimir/Lr3/hotel/hotel/asgi.py
ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021
bb91c91a56d21cec2b12ae4cc722eaa652a88420
[ "MIT" ]
48
2020-09-13T20:22:42.000Z
2021-04-30T11:13:30.000Z
students/K33401/Goncharov_Vladimir/Lr3/hotel/hotel/asgi.py
ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021
bb91c91a56d21cec2b12ae4cc722eaa652a88420
[ "MIT" ]
69
2020-09-06T10:32:37.000Z
2021-11-28T18:13:17.000Z
""" ASGI config for hotel project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTING...
22.764706
78
0.782946
import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hotel.settings') application = get_asgi_application()
true
true
f72ab3141e4951a0fbf2744f08280c033d6a9acf
13,023
py
Python
imgcls/modeling/backbone/mobilenet.py
TuranSKT/detectron2_class
c90e68abbd39afa8c34d83ac760cabf3b5d02868
[ "MIT" ]
22
2020-06-09T11:06:15.000Z
2022-03-29T16:24:23.000Z
imgcls/modeling/backbone/mobilenet.py
TuranSKT/detectron2_class
c90e68abbd39afa8c34d83ac760cabf3b5d02868
[ "MIT" ]
4
2020-07-09T16:39:48.000Z
2020-11-25T13:34:52.000Z
imgcls/modeling/backbone/mobilenet.py
TuranSKT/detectron2_class
c90e68abbd39afa8c34d83ac760cabf3b5d02868
[ "MIT" ]
9
2020-06-10T09:55:09.000Z
2021-08-20T12:55:26.000Z
''' @Copyright (c) tkianai All Rights Reserved. @Author : tkianai @Github : https://github.com/tkianai @Date : 2020-04-26 14:14:18 @FilePath : /ImageCls.detectron2/imgcls/modeling/backbone/mobilenet.py @Description : ''' import torch import torch.nn as nn from detectron2.layers imp...
35.581967
95
0.543807
import torch import torch.nn as nn from detectron2.layers import Conv2d, ShapeSpec from detectron2.modeling.backbone.build import BACKBONE_REGISTRY from detectron2.modeling.backbone import Backbone from detectron2.modeling.backbone.fpn import FPN, LastLevelMaxPool, LastLevelP6P7 __all__ = [ 'build_mnetv1_backbo...
true
true
f72ab477380e68f511e89a12fe5e0154052fb2b7
854
py
Python
sleap/io/format/text.py
jens-k/sleap
4e99ed037f1f7f41d9f15e2efaac638fc7e12b09
[ "BSD-3-Clause-Clear" ]
null
null
null
sleap/io/format/text.py
jens-k/sleap
4e99ed037f1f7f41d9f15e2efaac638fc7e12b09
[ "BSD-3-Clause-Clear" ]
null
null
null
sleap/io/format/text.py
jens-k/sleap
4e99ed037f1f7f41d9f15e2efaac638fc7e12b09
[ "BSD-3-Clause-Clear" ]
null
null
null
from .adaptor import Adaptor, SleapObjectType from .filehandle import FileHandle class TextAdaptor(Adaptor): @property def handles(self): return SleapObjectType.misc @property def default_ext(self): return "txt" @property def all_exts(self): return ["txt", "log"] ...
21.35
56
0.619438
from .adaptor import Adaptor, SleapObjectType from .filehandle import FileHandle class TextAdaptor(Adaptor): @property def handles(self): return SleapObjectType.misc @property def default_ext(self): return "txt" @property def all_exts(self): return ["txt", "log"] ...
true
true
f72ab504565970994d8e7ad4fc8bc28fa7d14daa
14,614
py
Python
tests/unit/anchore_engine/services/policy_engine/policy/test_parameters.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
1
2019-06-27T08:47:48.000Z
2019-06-27T08:47:48.000Z
tests/unit/anchore_engine/services/policy_engine/policy/test_parameters.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
4
2020-11-07T00:16:02.000Z
2020-11-08T20:52:06.000Z
tests/unit/anchore_engine/services/policy_engine/policy/test_parameters.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
1
2019-11-23T03:39:28.000Z
2019-11-23T03:39:28.000Z
import unittest from anchore_engine.services.policy_engine.engine.policy.params import JsonSchemaValidator, BooleanStringValidator, TypeValidator, CommaDelimitedNumberListValidator, EnumValidator, \ DelimitedEnumStringValidator, IntegerValidator, NameVersionListValidator, PipeDelimitedStringListValidator, CommaDel...
32.189427
258
0.531066
import unittest from anchore_engine.services.policy_engine.engine.policy.params import JsonSchemaValidator, BooleanStringValidator, TypeValidator, CommaDelimitedNumberListValidator, EnumValidator, \ DelimitedEnumStringValidator, IntegerValidator, NameVersionListValidator, PipeDelimitedStringListValidator, CommaDel...
true
true
f72ab6805d5b4e650b8e6b745b9ad9b0ed680de0
329
py
Python
clingine/clock.py
avancayetano/clingine
55e8bd6366aad3ae8e7ac9537fa3ae85efab9ddc
[ "MIT" ]
12
2020-04-10T09:10:29.000Z
2022-03-12T03:45:08.000Z
clingine/clock.py
avancayetano/clingine
55e8bd6366aad3ae8e7ac9537fa3ae85efab9ddc
[ "MIT" ]
6
2020-04-11T10:47:01.000Z
2020-10-19T14:15:55.000Z
clingine/clock.py
avancayetano/clingine
55e8bd6366aad3ae8e7ac9537fa3ae85efab9ddc
[ "MIT" ]
1
2021-09-04T00:40:34.000Z
2021-09-04T00:40:34.000Z
import time class Clock: def __init__(self): self.start_time = time.time() self.current_time = time.time() def get_time(self): return time.time() - self.start_time def get_dt(self): return time.time() - self.current_time def update(self): self.current_time = time.time() def delay(self, sec): time.s...
19.352941
40
0.702128
import time class Clock: def __init__(self): self.start_time = time.time() self.current_time = time.time() def get_time(self): return time.time() - self.start_time def get_dt(self): return time.time() - self.current_time def update(self): self.current_time = time.time() def delay(self, sec): time.s...
true
true
f72ab6e6434d9b5f426cef3c89cc2fec38e25ed5
1,703
py
Python
scripts/maf_covered_regions.py
tweirick/bx-python
f16a57e9f0a133ab4d62aed6fec087b8ce4ec848
[ "MIT" ]
null
null
null
scripts/maf_covered_regions.py
tweirick/bx-python
f16a57e9f0a133ab4d62aed6fec087b8ce4ec848
[ "MIT" ]
null
null
null
scripts/maf_covered_regions.py
tweirick/bx-python
f16a57e9f0a133ab4d62aed6fec087b8ce4ec848
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Read a maf file and print the regions covered to a set of bed files (one for each sequence source referenced in the maf). Only blocks with a positive percent identity are written out. TODO: Can this be generalized to be made more useful? usage: %prog bed_outfile_prefix < maf """ from __f...
28.864407
107
0.570757
from __future__ import division, print_function import sys import bx.align.maf import psyco_full def block_pid( comp1, comp2 ): match = 0 total = 0 t1 = comp1.text.lower() t2 = comp2.text.lower() for i in range( 0, len(t1) ): a, b = t1[i], t2[i] if a == '-' or b == '-': ...
true
true
f72ab71ef7ac9e4ef3368da23f0af720b87fc67f
448
py
Python
M101P/week1/pymongo_exception_processing/mongo_exception.py
lambdaxymox/mongodb-university
fbab1dfa61b0c422f0d45209d0047261da3525c9
[ "Unlicense" ]
1
2020-04-08T03:03:16.000Z
2020-04-08T03:03:16.000Z
M101P/week1/pymongo_exception_processing/mongo_exception.py
lambdaxymox/mongodb-university
fbab1dfa61b0c422f0d45209d0047261da3525c9
[ "Unlicense" ]
null
null
null
M101P/week1/pymongo_exception_processing/mongo_exception.py
lambdaxymox/mongodb-university
fbab1dfa61b0c422f0d45209d0047261da3525c9
[ "Unlicense" ]
1
2020-04-08T03:03:18.000Z
2020-04-08T03:03:18.000Z
import sys import pymongo connection = pymongo.MongoClient("mongodb://localhost") db = connection.test users = db.users doc = {'firstname':'Andrew', 'lastname':'Erlichson'} print doc print "about to insert the document" try: users.insert_one(doc) except Exception as e: print "insert failed:", e print doc ...
15.448276
55
0.716518
import sys import pymongo connection = pymongo.MongoClient("mongodb://localhost") db = connection.test users = db.users doc = {'firstname':'Andrew', 'lastname':'Erlichson'} print doc print "about to insert the document" try: users.insert_one(doc) except Exception as e: print "insert failed:", e print doc ...
false
true
f72ab7e4fe69751d46adb928a0232848fd36398f
4,962
py
Python
apps/log_extract/handlers/thread.py
yiqiwang-17/bk-log
7b356fced63b667baea300cfd194ad70a842c3ee
[ "MIT" ]
null
null
null
apps/log_extract/handlers/thread.py
yiqiwang-17/bk-log
7b356fced63b667baea300cfd194ad70a842c3ee
[ "MIT" ]
null
null
null
apps/log_extract/handlers/thread.py
yiqiwang-17/bk-log
7b356fced63b667baea300cfd194ad70a842c3ee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-LOG 蓝鲸日志平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-LOG 蓝鲸日志平台 is licensed under the MIT License. License for BK-LOG 蓝鲸日志平台: ------------------------------------------------...
38.169231
116
0.689238
import logging from functools import partial from multiprocessing.pool import ThreadPool as _ThreadPool from django import db from django.utils import timezone, translation from apps.utils.local import activate_request, get_request from .local import local logger = logging.getLogger(__name__) def r...
true
true
f72ab8481e4f48f3a7a7d665752d25ae94efa665
3,571
py
Python
basic/string1.py
hmln/google-python-exercises
c9b55063708ea22a99914a3ad14fd2aae54336f2
[ "Apache-2.0" ]
null
null
null
basic/string1.py
hmln/google-python-exercises
c9b55063708ea22a99914a3ad14fd2aae54336f2
[ "Apache-2.0" ]
null
null
null
basic/string1.py
hmln/google-python-exercises
c9b55063708ea22a99914a3ad14fd2aae54336f2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ # Basic string exercises # Fill in the code for the functions below. main() is already se...
32.463636
80
0.659199
# http://code.google.com/edu/languages/google-python-class/ # Basic string exercises # Fill in the code for the functions below. main() is already set up # to call the functions with a few different inputs, # printing 'OK' when each function is correct. # The starter code for each function includes a 'return' # ...
true
true
f72ab89546778e858c6dc70b6873b930fa6fde29
518
py
Python
tests/test_config.py
kraeki/openair-jac
760b1b1be7efebde1146b31cf0a9326a7362a82c
[ "BSD-3-Clause" ]
null
null
null
tests/test_config.py
kraeki/openair-jac
760b1b1be7efebde1146b31cf0a9326a7362a82c
[ "BSD-3-Clause" ]
null
null
null
tests/test_config.py
kraeki/openair-jac
760b1b1be7efebde1146b31cf0a9326a7362a82c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Test configs.""" from openair.app import create_app from openair.settings import DevConfig, ProdConfig def test_production_config(): """Production config.""" app = create_app(ProdConfig) assert app.config['ENV'] == 'prod' assert app.config['DEBUG'] is False assert app.co...
25.9
50
0.675676
from openair.app import create_app from openair.settings import DevConfig, ProdConfig def test_production_config(): app = create_app(ProdConfig) assert app.config['ENV'] == 'prod' assert app.config['DEBUG'] is False assert app.config['DEBUG_TB_ENABLED'] is False def test_dev_config(): app = cre...
true
true
f72ab8a2448743b933326291b648e8d737b17a76
142
py
Python
config/prd.py
by46/camel
b1ac2609bc5d1cd22933c07c9fce7b935f2d9394
[ "MIT" ]
null
null
null
config/prd.py
by46/camel
b1ac2609bc5d1cd22933c07c9fce7b935f2d9394
[ "MIT" ]
null
null
null
config/prd.py
by46/camel
b1ac2609bc5d1cd22933c07c9fce7b935f2d9394
[ "MIT" ]
null
null
null
# PRD environment setting # Flask-NegLog Settings LOG_LEVEL = 'debug' LOG_FILENAME = "/var/camel/error.log" LOG_ENABLE_CONSOLE = False
20.285714
38
0.739437
LOG_LEVEL = 'debug' LOG_FILENAME = "/var/camel/error.log" LOG_ENABLE_CONSOLE = False
true
true
f72ab9e2e5e78bac6263ebb24b7540ab94fc5895
1,304
py
Python
clean_prediction.py
richardanarfi/Recsys-Challenge-2018-TeamFL
81e00a2417d530ea1033dcb22fbe29b7ceb12bb2
[ "Apache-2.0" ]
null
null
null
clean_prediction.py
richardanarfi/Recsys-Challenge-2018-TeamFL
81e00a2417d530ea1033dcb22fbe29b7ceb12bb2
[ "Apache-2.0" ]
null
null
null
clean_prediction.py
richardanarfi/Recsys-Challenge-2018-TeamFL
81e00a2417d530ea1033dcb22fbe29b7ceb12bb2
[ "Apache-2.0" ]
null
null
null
from gensim.models import Word2Vec from sklearn.decomposition import PCA from matplotlib import pyplot import string import fnmatch # define training data #sentences = open('new_file_sentence.txt', 'r', encoding='utf-8') path = 'predictions_v11_1500_clean.txt' output_file = open("predictions_v11_500.txt", "...
26.612245
66
0.595859
from gensim.models import Word2Vec from sklearn.decomposition import PCA from matplotlib import pyplot import string import fnmatch path = 'predictions_v11_1500_clean.txt' output_file = open("predictions_v11_500.txt", "w") input_texts = () with open(path) as f: lines = f.read().split('\n') for lin...
true
true
f72aba22fc109af958a6de438269df6a2c4a6b07
1,733
py
Python
tests/test_data/test_structured.py
el/elizabeth
dc82cd9d2bb230acdb2f1a49bc16b1c3d12077ff
[ "MIT" ]
null
null
null
tests/test_data/test_structured.py
el/elizabeth
dc82cd9d2bb230acdb2f1a49bc16b1c3d12077ff
[ "MIT" ]
null
null
null
tests/test_data/test_structured.py
el/elizabeth
dc82cd9d2bb230acdb2f1a49bc16b1c3d12077ff
[ "MIT" ]
1
2019-12-27T19:34:17.000Z
2019-12-27T19:34:17.000Z
# -*- coding: utf-8 -*- import re import csv from elizabeth.core.providers import Structured from unittest import TestCase from elizabeth.core import interdata as common from ._patterns import STR_REGEX class StructuredBaseTest(TestCase): def setUp(self): self.structured = Structured('en') def tear...
36.104167
87
0.663589
import re import csv from elizabeth.core.providers import Structured from unittest import TestCase from elizabeth.core import interdata as common from ._patterns import STR_REGEX class StructuredBaseTest(TestCase): def setUp(self): self.structured = Structured('en') def tearDown(self): del...
true
true
f72aba59680a1148f9878e622e1a32e4cbb7706a
212
py
Python
mayan/apps/document_states/managers.py
eshbeata/open-paperless
6b9ed1f21908116ad2795b3785b2dbd66713d66e
[ "Apache-2.0" ]
2,743
2017-12-18T07:12:30.000Z
2022-03-27T17:21:25.000Z
mayan/apps/document_states/managers.py
kyper999/mayan-edms
ca7b8301a1f68548e8e718d42a728a500d67286e
[ "Apache-2.0" ]
15
2020-06-06T00:00:48.000Z
2022-03-12T00:03:54.000Z
mayan/apps/document_states/managers.py
kyper999/mayan-edms
ca7b8301a1f68548e8e718d42a728a500d67286e
[ "Apache-2.0" ]
257
2017-12-18T03:12:58.000Z
2022-03-25T08:59:10.000Z
from django.db import models class WorkflowManager(models.Manager): def launch_for(self, document): for workflow in document.document_type.workflows.all(): workflow.launch_for(document)
26.5
63
0.726415
from django.db import models class WorkflowManager(models.Manager): def launch_for(self, document): for workflow in document.document_type.workflows.all(): workflow.launch_for(document)
true
true
f72aba799455f6cc85c2295c96a774ff725ab946
18,200
py
Python
tests/onnx/test_onnx_model_export.py
kokoff/mlflow
062722b172f403e613c41f9bb024b3e1673dfe31
[ "Apache-2.0" ]
1
2020-08-17T21:50:32.000Z
2020-08-17T21:50:32.000Z
tests/onnx/test_onnx_model_export.py
kokoff/mlflow
062722b172f403e613c41f9bb024b3e1673dfe31
[ "Apache-2.0" ]
null
null
null
tests/onnx/test_onnx_model_export.py
kokoff/mlflow
062722b172f403e613c41f9bb024b3e1673dfe31
[ "Apache-2.0" ]
null
null
null
import sys import os import pytest import mock from keras.models import Sequential from keras.layers import Dense import sklearn.datasets as datasets import pandas as pd import numpy as np import yaml import tensorflow as tf import mlflow.pyfunc.scoring_server as pyfunc_scoring_server from mlflow import pyfunc from m...
34.469697
99
0.720879
import sys import os import pytest import mock from keras.models import Sequential from keras.layers import Dense import sklearn.datasets as datasets import pandas as pd import numpy as np import yaml import tensorflow as tf import mlflow.pyfunc.scoring_server as pyfunc_scoring_server from mlflow import pyfunc from m...
true
true
f72abaa0b0eceda9463707c365f8a64adba68be2
30,975
py
Python
.happydoc.fsa.py
osteele/pyfsa
58a44106d3e3918a17a5a106584d1a91636f9d52
[ "Artistic-1.0-Perl" ]
7
2015-11-25T10:52:43.000Z
2018-09-11T21:35:25.000Z
.happydoc.fsa.py
osteele/pyfsa
58a44106d3e3918a17a5a106584d1a91636f9d52
[ "Artistic-1.0-Perl" ]
null
null
null
.happydoc.fsa.py
osteele/pyfsa
58a44106d3e3918a17a5a106584d1a91636f9d52
[ "Artistic-1.0-Perl" ]
7
2015-12-23T05:22:20.000Z
2021-07-13T19:17:32.000Z
(S'822675c38199b44f85699c1653abb0fc' p1 (ihappydoclib.parseinfo.moduleinfo ModuleInfo p2 (dp3 S'_namespaces' p4 ((dp5 S'FSA' p6 (ihappydoclib.parseinfo.classinfo ClassInfo p7 (dp8 g4 ((dp9 (dp10 S'nextStates' p11 (ihappydoclib.parseinfo.functioninfo FunctionInfo (dp12 g4 ((dp13 (dp14 tsS'_exception_info' p15 (dsS'_para...
10.604245
7,695
0.761195
(S'822675c38199b44f85699c1653abb0fc' p1 (ihappydoclib.parseinfo.moduleinfo ModuleInfo p2 (dp3 S'_namespaces' p4 ((dp5 S'FSA' p6 (ihappydoclib.parseinfo.classinfo ClassInfo p7 (dp8 g4 ((dp9 (dp10 S'nextStates' p11 (ihappydoclib.parseinfo.functioninfo FunctionInfo (dp12 g4 ((dp13 (dp14 tsS'_exception_info' p15 (dsS'_para...
false
true
f72ababf067d4c75b7546894366ccba2992a76c1
8,329
py
Python
test/functional/feature_proxy.py
KingricharVD/DSW
7281f6ed5c102687805d2bca707e675cbce7dd4d
[ "MIT" ]
3
2020-10-02T13:11:53.000Z
2021-11-06T18:02:32.000Z
test/functional/feature_proxy.py
KingricharVD/DSW
7281f6ed5c102687805d2bca707e675cbce7dd4d
[ "MIT" ]
3
2020-08-06T17:35:37.000Z
2021-07-22T01:37:56.000Z
test/functional/feature_proxy.py
KingricharVD/DSW
7281f6ed5c102687805d2bca707e675cbce7dd4d
[ "MIT" ]
6
2020-10-09T16:42:49.000Z
2021-07-05T20:57:23.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-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. """Test bitcoind with different proxy configuration. Test plan: - Start nesteggd's with different proxy c...
41.232673
121
0.625405
import socket import os from test_framework.socks5 import Socks5Configuration, Socks5Command, Socks5Server, AddressType from test_framework.test_framework import PivxTestFramework from test_framework.util import ( PORT_MIN, PORT_RANGE, assert_equal, ) from test_framework.netutil import test_ipv6_local...
true
true
f72abb4a157ff48785fee482319d874695a9722b
10,815
py
Python
tensorflow/python/training/tracking/resource.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
7
2022-03-04T21:14:47.000Z
2022-03-22T23:07:39.000Z
tensorflow/python/training/tracking/resource.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
1
2022-03-08T18:28:46.000Z
2022-03-08T18:37:20.000Z
tensorflow/python/training/tracking/resource.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
1
2022-03-22T00:45:15.000Z
2022-03-22T00:45:15.000Z
# Copyright 2017 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...
34.887097
85
0.713269
import contextlib import copy import weakref import six from tensorflow.python.eager import context from tensorflow.python.eager import def_function from tensorflow.python.framework import ops from tensorflow.python.training.tracking import base from tensorflow.python.util import tf_contextlib from ten...
true
true
f72abbd3ee1fb7ddc9a51049416b8d1194ab3660
9,235
py
Python
remove_code/sotas/SSAH-adversarial-attack-main/utils/fid_score.py
JohnZhang000/adaptive-jpeg-compression
f54e4798c01169812958f4d5539a03927dbdc313
[ "MIT" ]
9
2022-03-15T02:59:32.000Z
2022-03-26T09:16:44.000Z
remove_code/sotas/SSAH-adversarial-attack-main/utils/fid_score.py
JohnZhang000/adaptive-jpeg-compression
f54e4798c01169812958f4d5539a03927dbdc313
[ "MIT" ]
1
2022-03-30T02:59:55.000Z
2022-03-30T02:59:55.000Z
remove_code/sotas/SSAH-adversarial-attack-main/utils/fid_score.py
JohnZhang000/adaptive-jpeg-compression
f54e4798c01169812958f4d5539a03927dbdc313
[ "MIT" ]
1
2022-03-20T12:19:26.000Z
2022-03-20T12:19:26.000Z
"""Calculates the Frechet Inception Distance (FID) to evalulate GANs The FID metric calculates the distance between two distributions of images. Typically, we have summary statistics (mean & covariance matrix) of one of these distributions, while the 2nd distribution is given by a GAN. When run as a stand-alone progr...
35.794574
78
0.636492
import os import pathlib from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser from multiprocessing import cpu_count import numpy as np import torch import torchvision.transforms as TF from PIL import Image from scipy import linalg from torch.nn.functional import adaptive_avg_pool2d try: from tqdm im...
true
true
f72abcf519c3d777dae73575160a3505946609c2
421
py
Python
test/command_line/test_plot_Fo_vs_Fc.py
TiankunZhou/dials
bd5c95b73c442cceb1c61b1690fd4562acf4e337
[ "BSD-3-Clause" ]
58
2015-10-15T09:28:20.000Z
2022-03-28T20:09:38.000Z
test/command_line/test_plot_Fo_vs_Fc.py
TiankunZhou/dials
bd5c95b73c442cceb1c61b1690fd4562acf4e337
[ "BSD-3-Clause" ]
1,741
2015-11-24T08:17:02.000Z
2022-03-31T15:46:42.000Z
test/command_line/test_plot_Fo_vs_Fc.py
TiankunZhou/dials
bd5c95b73c442cceb1c61b1690fd4562acf4e337
[ "BSD-3-Clause" ]
45
2015-10-14T13:44:16.000Z
2022-03-22T14:45:56.000Z
import procrunner def test(dials_data, tmp_path): mtz_file = dials_data("lysozyme_electron_diffraction").join("refmac_final.mtz") result = procrunner.run( ["dials.plot_Fo_vs_Fc", "hklin=" + mtz_file.strpath], working_directory=tmp_path ) assert not result.returncode and not result.stderr a...
35.083333
88
0.719715
import procrunner def test(dials_data, tmp_path): mtz_file = dials_data("lysozyme_electron_diffraction").join("refmac_final.mtz") result = procrunner.run( ["dials.plot_Fo_vs_Fc", "hklin=" + mtz_file.strpath], working_directory=tmp_path ) assert not result.returncode and not result.stderr a...
true
true
f72ac027d54393cfbc8f4c4a085d814d8add6b01
99
py
Python
algo228/shooter_game.py
voidwalker-so2/vasya228
cf766ee40341aa46799a461a246fa1f8f24df0ec
[ "BSD-2-Clause" ]
null
null
null
algo228/shooter_game.py
voidwalker-so2/vasya228
cf766ee40341aa46799a461a246fa1f8f24df0ec
[ "BSD-2-Clause" ]
null
null
null
algo228/shooter_game.py
voidwalker-so2/vasya228
cf766ee40341aa46799a461a246fa1f8f24df0ec
[ "BSD-2-Clause" ]
null
null
null
#Создай собственный Шутер! from pygame import * dfgshfhsdljfvhs ssdkgvkshdv sdhvljsdhv sljgvksjdg
12.375
26
0.848485
from pygame import * dfgshfhsdljfvhs ssdkgvkshdv sdhvljsdhv sljgvksjdg
true
true
f72ac04ea85e822cd8063706b8bc88973fb8d216
7,842
py
Python
src/python/pants/backend/jvm/tasks/classpath_util.py
AllClearID/pants
c4fdf00a3bdf9f26f876e85c46909d0729f7132c
[ "Apache-2.0" ]
1
2021-11-11T14:04:24.000Z
2021-11-11T14:04:24.000Z
src/python/pants/backend/jvm/tasks/classpath_util.py
AllClearID/pants
c4fdf00a3bdf9f26f876e85c46909d0729f7132c
[ "Apache-2.0" ]
2
2016-10-13T21:37:42.000Z
2018-07-20T20:14:33.000Z
src/python/pants/backend/jvm/tasks/classpath_util.py
AllClearID/pants
c4fdf00a3bdf9f26f876e85c46909d0729f7132c
[ "Apache-2.0" ]
1
2018-03-08T22:21:44.000Z
2018-03-08T22:21:44.000Z
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import itertools imp...
43.087912
97
0.733614
from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import itertools import os from collections import OrderedDict from twitter.common.collections import OrderedSet from pants.util.contextutil import open_zip from...
true
true
f72ac0bed67e590b7732695c441a21acb5828469
2,176
py
Python
Slider_Trinkey/Hue_Brightness_Python_Code/Hue_Brightness_Python_code.py
albinger/Adafruit_Learning_System_Guides
4fe2da261fe5d1ca282b86bd3b93ee1466346fa7
[ "MIT" ]
null
null
null
Slider_Trinkey/Hue_Brightness_Python_Code/Hue_Brightness_Python_code.py
albinger/Adafruit_Learning_System_Guides
4fe2da261fe5d1ca282b86bd3b93ee1466346fa7
[ "MIT" ]
null
null
null
Slider_Trinkey/Hue_Brightness_Python_Code/Hue_Brightness_Python_code.py
albinger/Adafruit_Learning_System_Guides
4fe2da261fe5d1ca282b86bd3b93ee1466346fa7
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries # # SPDX-License-Identifier: MIT """ Slider Trinkey Hue Brightness Python Example (Requires Hue and Monitor Brightness CircuitPython example to be running on the Slider Trinkey) """ import sys from phue import Bridge import serial from serial.tools i...
31.085714
96
0.688879
import sys from phue import Bridge import serial from serial.tools import list_ports LAMP_OR_GROUP_NAME = "Office" b = Bridge("0.0.0.0") slider_trinkey_port = None ports = list_ports.comports(include_links=False) for p in ports: if p.pid is not None: print("Port:", p.device, "-", hex(p.pid), end="\...
true
true
f72ac1123188353e94ecd664682ea810ce628d26
2,748
py
Python
mira/auth.py
Bl4ck4/mira-1
2b907c1a4c09585f0c68223e0435cc7414eab3c5
[ "MIT" ]
null
null
null
mira/auth.py
Bl4ck4/mira-1
2b907c1a4c09585f0c68223e0435cc7414eab3c5
[ "MIT" ]
null
null
null
mira/auth.py
Bl4ck4/mira-1
2b907c1a4c09585f0c68223e0435cc7414eab3c5
[ "MIT" ]
1
2021-10-02T10:36:21.000Z
2021-10-02T10:36:21.000Z
"""Mira 2020.""" import functools import requests from flask import ( Blueprint, flash, g, redirect, render_template, request, session, url_for ) from werkzeug.security import check_password_hash, generate_password_hash BLUEPRINT = Blueprint('auth', __name__, url_prefix='/auth') @BLUEPRINT.route('/login', methods...
31.953488
81
0.612445
import functools import requests from flask import ( Blueprint, flash, g, redirect, render_template, request, session, url_for ) from werkzeug.security import check_password_hash, generate_password_hash BLUEPRINT = Blueprint('auth', __name__, url_prefix='/auth') @BLUEPRINT.route('/login', methods = ['GET', 'POST'...
true
true
f72ac2161ec154a6fbc2d4c0db4116346291b457
9,690
py
Python
homeassistant/components/zha/core/discovery.py
twrecked/core
d3ae8a938cdea9b6e0d443c91c37ac3dbbd459ab
[ "Apache-2.0" ]
2
2021-09-13T21:44:02.000Z
2021-12-17T21:20:51.000Z
homeassistant/components/zha/core/discovery.py
twrecked/core
d3ae8a938cdea9b6e0d443c91c37ac3dbbd459ab
[ "Apache-2.0" ]
5
2021-02-08T20:55:25.000Z
2022-03-12T00:51:18.000Z
homeassistant/components/zha/core/discovery.py
twrecked/core
d3ae8a938cdea9b6e0d443c91c37ac3dbbd459ab
[ "Apache-2.0" ]
2
2020-11-04T07:40:01.000Z
2021-09-13T21:44:03.000Z
"""Device discovery functions for Zigbee Home Automation.""" from collections import Counter import logging from typing import Callable, List, Tuple from homeassistant import const as ha_const from homeassistant.core import callback from homeassistant.helpers.dispatcher import ( async_dispatcher_connect, asyn...
36.022305
88
0.637771
from collections import Counter import logging from typing import Callable, List, Tuple from homeassistant import const as ha_const from homeassistant.core import callback from homeassistant.helpers.dispatcher import ( async_dispatcher_connect, async_dispatcher_send, ) from homeassistant.helpers.entity_regist...
true
true
f72ac2c60476f898867047bfebd012f5f4feae2c
3,209
py
Python
autocalibration/lib/python2.7/site-packages/matplotlib/tests/test_units.py
prcalopa/reactable-autocalibration
eb67a5b5ee0e50f1effa773f6f3f934b5fda6fcf
[ "MIT" ]
5
2017-11-15T10:33:42.000Z
2021-11-16T02:21:31.000Z
matplotlib/tests/test_units.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
2
2017-10-28T03:30:26.000Z
2017-10-28T03:31:00.000Z
matplotlib/tests/test_units.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
6
2017-11-30T00:34:20.000Z
2021-05-20T02:58:02.000Z
from matplotlib.cbook import iterable import matplotlib.pyplot as plt from matplotlib.testing.decorators import image_comparison import matplotlib.units as munits import numpy as np try: # mock in python 3.3+ from unittest.mock import MagicMock except ImportError: from mock import MagicMock # Basic class...
33.778947
78
0.644126
from matplotlib.cbook import iterable import matplotlib.pyplot as plt from matplotlib.testing.decorators import image_comparison import matplotlib.units as munits import numpy as np try: from unittest.mock import MagicMock except ImportError: from mock import MagicMock class Quantity(object): def _...
true
true
f72ac3357d035fb96b484046450f998989af2f98
36,873
py
Python
src/unity/python/turicreate/toolkits/drawing_classifier/drawing_classifier.py
jolinlaw/turicreate
6b2057dc29533da225d18138e93cc15680eea85d
[ "BSD-3-Clause" ]
null
null
null
src/unity/python/turicreate/toolkits/drawing_classifier/drawing_classifier.py
jolinlaw/turicreate
6b2057dc29533da225d18138e93cc15680eea85d
[ "BSD-3-Clause" ]
null
null
null
src/unity/python/turicreate/toolkits/drawing_classifier/drawing_classifier.py
jolinlaw/turicreate
6b2057dc29533da225d18138e93cc15680eea85d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright © 2019 Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can # be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause import turicreate as _tc import numpy as _np import time as _time from turicreate.t...
41.901136
123
0.609389
import turicreate as _tc import numpy as _np import time as _time from turicreate.toolkits._model import CustomModel as _CustomModel from turicreate.toolkits._model import PythonProxy as _PythonProxy from turicreate.toolkits import evaluation as _evaluation import turicreate.toolkits._internal_utils as _tkutl fro...
true
true
f72ac42fd9ceac1af5051c46c0355962da805968
15,671
py
Python
restio/model.py
eduardostarling/restio
66bdb0f86105bf090d7f109da2dd37cbd0096da7
[ "MIT" ]
3
2019-11-11T14:18:26.000Z
2020-09-04T20:50:11.000Z
restio/model.py
eduardostarling/restio
66bdb0f86105bf090d7f109da2dd37cbd0096da7
[ "MIT" ]
16
2019-11-19T14:39:30.000Z
2021-06-26T15:08:21.000Z
restio/model.py
eduardostarling/restio
66bdb0f86105bf090d7f109da2dd37cbd0096da7
[ "MIT" ]
null
null
null
from __future__ import annotations from collections.abc import Iterable from reprlib import Repr from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Set, Tuple, Type from uuid import UUID, uuid4 from restio.event import EventListener from restio.fields.base import Field, T_co from restio.shared imp...
35.942661
88
0.639972
from __future__ import annotations from collections.abc import Iterable from reprlib import Repr from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Set, Tuple, Type from uuid import UUID, uuid4 from restio.event import EventListener from restio.fields.base import Field, T_co from restio.shared imp...
true
true
f72ac444a8eab9e84fe6a3ecf0f61835271a6e97
4,638
py
Python
opencv3_align_images.py
jaydenmedia/OpenCV3-Python
e0bfed6582447c567f100c507f5a8c59b621dfe1
[ "MIT" ]
null
null
null
opencv3_align_images.py
jaydenmedia/OpenCV3-Python
e0bfed6582447c567f100c507f5a8c59b621dfe1
[ "MIT" ]
null
null
null
opencv3_align_images.py
jaydenmedia/OpenCV3-Python
e0bfed6582447c567f100c507f5a8c59b621dfe1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Input data files are available in the "../input/" directory. # For example, running this (by clicking run or pressing Shift+Enter) will # list the files in the input directory from subprocess import check_output #print(check_output(["ls", "../input"]).decode("utf8")) #ORB is basically a fu...
32.661972
80
0.625916
import numpy as np import cv2 import os import csv import sys from time import sleep def im_align_orb(imp1, imp2, nf=10000): img1 = cv2.imread(imp1, 0) img2 = cv2.imread(imp2, 0) h2, w2 = img2.shape[:2] orb = cv2.ORB_create(nfeatures=nf, WTA_K=2) kp1, des1 = orb.detectAndCom...
true
true
f72ac5724f4c0949289c5827a02bc25b216cc4ef
687
py
Python
setup.py
DocNow/twarc-hashtags
2a8ab84c9585b6efe9696194b6030ce5486a9e7e
[ "MIT" ]
3
2021-09-09T06:22:39.000Z
2022-02-25T13:51:29.000Z
setup.py
DocNow/twarc-hashtags
2a8ab84c9585b6efe9696194b6030ce5486a9e7e
[ "MIT" ]
1
2022-01-25T11:07:05.000Z
2022-01-27T01:33:00.000Z
setup.py
DocNow/twarc-hashtags
2a8ab84c9585b6efe9696194b6030ce5486a9e7e
[ "MIT" ]
null
null
null
import setuptools with open("README.md") as f: long_description = f.read() setuptools.setup( name='twarc-hashtags', version='0.0.5', url='https://github.com/docnow/twarc-hashtags', author='Ed Summers', author_email='ehs@pobox.com', py_modules=['twarc_hashtags'], description='A twarc pl...
27.48
71
0.6754
import setuptools with open("README.md") as f: long_description = f.read() setuptools.setup( name='twarc-hashtags', version='0.0.5', url='https://github.com/docnow/twarc-hashtags', author='Ed Summers', author_email='ehs@pobox.com', py_modules=['twarc_hashtags'], description='A twarc pl...
true
true
f72ac585b2ba49e680b69313a2fa0d0a5d6a749c
137
py
Python
Python/Regex and Parsing/Validating Roman Numerals/Solution.py
PawarAditi/HackerRank
fcd9d1450ee293372ce5f1d4a3b7284ecf472657
[ "MIT" ]
219
2018-06-17T19:47:22.000Z
2022-03-27T15:28:56.000Z
Python/Regex and Parsing/Validating Roman Numerals/Solution.py
PawarAditi/HackerRank
fcd9d1450ee293372ce5f1d4a3b7284ecf472657
[ "MIT" ]
2
2020-08-12T16:47:41.000Z
2020-12-15T17:05:57.000Z
Python/Regex and Parsing/Validating Roman Numerals/Solution.py
PawarAditi/HackerRank
fcd9d1450ee293372ce5f1d4a3b7284ecf472657
[ "MIT" ]
182
2018-12-12T21:36:50.000Z
2022-03-26T17:49:51.000Z
import re regex_pattern = r'M{0,3}(C[MD]|D?C{0,3})(X[CL]|L?X{0,3})(I[VX]|V?I{0,3})$' print(str(bool(re.match(regex_pattern, input()))))
27.4
74
0.605839
import re regex_pattern = r'M{0,3}(C[MD]|D?C{0,3})(X[CL]|L?X{0,3})(I[VX]|V?I{0,3})$' print(str(bool(re.match(regex_pattern, input()))))
true
true
f72ac6556032482e4ba83a528d58e88c2de8f5b6
3,955
py
Python
SimpleServer.py
wanzhiguo/mininero
7dd71b02a4613478b59b2670ccf7c74a22cc2ffd
[ "BSD-3-Clause" ]
64
2015-06-12T19:29:51.000Z
2022-01-03T17:14:56.000Z
SimpleServer.py
wanzhiguo/mininero
7dd71b02a4613478b59b2670ccf7c74a22cc2ffd
[ "BSD-3-Clause" ]
4
2015-11-27T18:49:40.000Z
2017-12-14T21:32:48.000Z
SimpleServer.py
wanzhiguo/mininero
7dd71b02a4613478b59b2670ccf7c74a22cc2ffd
[ "BSD-3-Clause" ]
39
2016-02-07T08:47:02.000Z
2022-03-07T06:07:10.000Z
import MiniNero import ed25519 import binascii import PaperWallet import cherrypy import os import time import bitmonerod import SimpleXMR2 lasttime = 0 def HexSigningPubKey(s): return binascii.hexlify(ed25519.publickey(ed25519.encodeint(MiniNero.hexToInt(s)))) def Signature(m, sk): #note this seems to return ni...
35.3125
100
0.588369
import MiniNero import ed25519 import binascii import PaperWallet import cherrypy import os import time import bitmonerod import SimpleXMR2 lasttime = 0 def HexSigningPubKey(s): return binascii.hexlify(ed25519.publickey(ed25519.encodeint(MiniNero.hexToInt(s)))) def Signature(m, sk): sk2 = ed25519.encodeint...
true
true
f72ac71ab4bf2592bbd31344ee98206db5efb0b0
1,390
py
Python
dvc/command/run.py
IlyaKisil/dvc
1f549d665944a314331282a132b1ba3cc3a835f5
[ "Apache-2.0" ]
null
null
null
dvc/command/run.py
IlyaKisil/dvc
1f549d665944a314331282a132b1ba3cc3a835f5
[ "Apache-2.0" ]
null
null
null
dvc/command/run.py
IlyaKisil/dvc
1f549d665944a314331282a132b1ba3cc3a835f5
[ "Apache-2.0" ]
null
null
null
import dvc.logger as logger from dvc.command.base import CmdBase from dvc.exceptions import DvcException class CmdRun(CmdBase): def _joined_cmd(self): if len(self.args.command) == 0: return '' if len(self.args.command) == 1: return self.args.command[0] cmd = '' ...
33.095238
77
0.488489
import dvc.logger as logger from dvc.command.base import CmdBase from dvc.exceptions import DvcException class CmdRun(CmdBase): def _joined_cmd(self): if len(self.args.command) == 0: return '' if len(self.args.command) == 1: return self.args.command[0] cmd = '' ...
true
true
f72ac72145f9cff31e471c1a682180a9ab441579
1,584
py
Python
python/misc.py
dnbh/kpg
c9e79b8092434919e9ac90dc199f49845403c2ba
[ "MIT" ]
69
2018-01-08T19:56:55.000Z
2022-03-05T17:14:05.000Z
python/misc.py
dnbaker/emp
c9e79b8092434919e9ac90dc199f49845403c2ba
[ "MIT" ]
6
2018-04-14T21:09:51.000Z
2021-07-17T21:08:54.000Z
python/misc.py
dnbaker/emp
c9e79b8092434919e9ac90dc199f49845403c2ba
[ "MIT" ]
11
2018-03-21T19:28:35.000Z
2021-06-29T17:33:34.000Z
#!/usr/bin/env python import sys import string from collections import defaultdict def freq(iterable): """ Returns a dictionary of counts for each item in an iterable. >>>freq("ACGTTTAAA") {'A': 4, 'C': 1, 'G': 1, 'T': 3} """ ret = defaultdict(int) for el in iterable: ret[el] += 1 ...
22.628571
73
0.571338
import sys import string from collections import defaultdict def freq(iterable): ret = defaultdict(int) for el in iterable: ret[el] += 1 return ret try: from cytoolz import frequencies as freq except ImportError: pass REV_CMP_TABLE = (str if sys.version_info[0] == 3 ...
true
true
f72ac86bdcf9c11af4e34184f7bc61e8e47c1475
1,781
py
Python
dex/dextIR/CommandListIR.py
jmorse/dexter
79cefa890d041dfc927aea2a84737aa704ddd35c
[ "MIT" ]
null
null
null
dex/dextIR/CommandListIR.py
jmorse/dexter
79cefa890d041dfc927aea2a84737aa704ddd35c
[ "MIT" ]
null
null
null
dex/dextIR/CommandListIR.py
jmorse/dexter
79cefa890d041dfc927aea2a84737aa704ddd35c
[ "MIT" ]
null
null
null
# DExTer : Debugging Experience Tester # ~~~~~~ ~ ~~ ~ ~~ # # Copyright (c) 2018 by SN Systems Ltd., Sony Interactive Entertainment Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # ...
39.577778
79
0.718136
from dex.dextIR.CommandIR import CommandIR from dex.utils.serialize import SrField, SrObject class CommandListIR(SrObject): sr_fields = [ SrField( 'command_list', CommandIR, list_of=True, required_in_init=False, default_val...
true
true
f72ac92ca104149447f8f64cf75ef595d16ca300
9,128
py
Python
tests/operators/test_gcs_to_s3.py
InigoSJ/airflow
8b97a387dc30d8c88390d500ec99333798c20f1c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2019-09-06T09:55:18.000Z
2019-09-06T09:55:18.000Z
tests/operators/test_gcs_to_s3.py
InigoSJ/airflow
8b97a387dc30d8c88390d500ec99333798c20f1c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
tests/operators/test_gcs_to_s3.py
InigoSJ/airflow
8b97a387dc30d8c88390d500ec99333798c20f1c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2019-12-09T08:41:32.000Z
2019-12-09T08:41:32.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 #...
48.296296
86
0.594106
import unittest from airflow.operators.gcs_to_s3 import GoogleCloudStorageToS3Operator from airflow.hooks.S3_hook import S3Hook from tests.compat import mock try: from moto import mock_s3 except ImportError: mock_s3 = None TASK_ID = 'test-gcs-list-operator' GCS_BUCKET = 'test-bucket' DELIM...
true
true
f72ac9963aa7ac311bd31b4b62e26bdb62abf353
4,930
py
Python
apps/fig8.py
songhan/Halide
e7f78ac4ed6e154474732b1d53b9418fe353b0c0
[ "MIT" ]
null
null
null
apps/fig8.py
songhan/Halide
e7f78ac4ed6e154474732b1d53b9418fe353b0c0
[ "MIT" ]
null
null
null
apps/fig8.py
songhan/Halide
e7f78ac4ed6e154474732b1d53b9418fe353b0c0
[ "MIT" ]
1
2021-02-18T14:18:09.000Z
2021-02-18T14:18:09.000Z
#/usr/bin/env python from pygg import * import pandas from sqlalchemy import create_engine from tempfile import mkstemp import sys, os resfname='fig8.csv' res = pandas.read_csv(resfname) """ t = theme(axis.line=element_blank(), axis.text.x=element_blank(), axis.text.y=element_blank(), ...
33.537415
117
0.582353
from pygg import * import pandas from sqlalchemy import create_engine from tempfile import mkstemp import sys, os resfname='fig8.csv' res = pandas.read_csv(resfname) """ t = theme(axis.line=element_blank(), axis.text.x=element_blank(), axis.text.y=element_blank(), axis.ticks=element...
false
true
f72acb68ed93a51226e787125180c68eb7131f4d
5,030
py
Python
gdxpds/read_gdx.py
cdgaete/gdx-pandas
2b9b00a177268227bce189939cdab081e09cb0dc
[ "BSD-3-Clause" ]
null
null
null
gdxpds/read_gdx.py
cdgaete/gdx-pandas
2b9b00a177268227bce189939cdab081e09cb0dc
[ "BSD-3-Clause" ]
null
null
null
gdxpds/read_gdx.py
cdgaete/gdx-pandas
2b9b00a177268227bce189939cdab081e09cb0dc
[ "BSD-3-Clause" ]
null
null
null
# [LICENSE] # Copyright (c) 2018, Alliance for Sustainable Energy. # All rights reserved. # # Redistribution and use in source and binary forms, # with or without modification, are permitted provided # that the following conditions are met: # # 1. Redistributions of source code must retain the above # copyright no...
34.689655
91
0.706362
from collections import OrderedDict import logging from gdxpds.tools import Error from gdxpds.gdx import GdxFile logger = logging.getLogger(__name__) class Translator(object): def __init__(self,gdx_file,gams_dir=None,lazy_load=False): self.__gdx = GdxFile(gams_dir=g...
true
true
f72acbaa7eb80d299ab01ae2d3c86752036d4dac
24,244
py
Python
test/api/table/test_table.py
rizwanniazigroupdocs/aspose-words-cloud-python
b943384a1e3c0710cc84df74119e6edf7356037e
[ "MIT" ]
null
null
null
test/api/table/test_table.py
rizwanniazigroupdocs/aspose-words-cloud-python
b943384a1e3c0710cc84df74119e6edf7356037e
[ "MIT" ]
null
null
null
test/api/table/test_table.py
rizwanniazigroupdocs/aspose-words-cloud-python
b943384a1e3c0710cc84df74119e6edf7356037e
[ "MIT" ]
null
null
null
# ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="test_table.py"> # Copyright (c) 2020 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and asso...
51.803419
201
0.735068
import os import dateutil.parser import asposewordscloud.models.requests from test.base_test_context import BaseTestContext class TestTable(BaseTestContext): def test_get_tables(self): remoteDataFolder = self.remote_test_folder + '/DocumentElements/Tables' ...
true
true
f72acc530ce86db9d84ee3320a91420735f171b5
1,307
py
Python
setup.py
jamenor/pichetprofile
6633ea6eaa7473af9e10f34f6a19428c2db92465
[ "MIT" ]
null
null
null
setup.py
jamenor/pichetprofile
6633ea6eaa7473af9e10f34f6a19428c2db92465
[ "MIT" ]
null
null
null
setup.py
jamenor/pichetprofile
6633ea6eaa7473af9e10f34f6a19428c2db92465
[ "MIT" ]
null
null
null
import io from os.path import abspath, dirname, join from setuptools import find_packages, setup HERE = dirname(abspath(__file__)) LOAD_TEXT = lambda name: io.open(join(HERE, name), encoding='UTF-8').read() DESCRIPTION = '\n\n'.join(LOAD_TEXT(_) for _ in [ 'README.rst' ]) setup( name = 'pichetprof...
35.324324
82
0.613619
import io from os.path import abspath, dirname, join from setuptools import find_packages, setup HERE = dirname(abspath(__file__)) LOAD_TEXT = lambda name: io.open(join(HERE, name), encoding='UTF-8').read() DESCRIPTION = '\n\n'.join(LOAD_TEXT(_) for _ in [ 'README.rst' ]) setup( name = 'pichetprof...
false
true
f72accd8900bf752d4868f03ba6ce4c1c4210e08
7,851
py
Python
kaggle/ghouls-goblins-and-ghosts-boo/script_3.py
josepablocam/janus-public
4713092b27d02386bdb408213d8edc0dc5859eec
[ "MIT" ]
null
null
null
kaggle/ghouls-goblins-and-ghosts-boo/script_3.py
josepablocam/janus-public
4713092b27d02386bdb408213d8edc0dc5859eec
[ "MIT" ]
null
null
null
kaggle/ghouls-goblins-and-ghosts-boo/script_3.py
josepablocam/janus-public
4713092b27d02386bdb408213d8edc0dc5859eec
[ "MIT" ]
null
null
null
#Libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns sns.set_style('whitegrid') from sklearn.preprocessing import LabelEncoder from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestClassifier from sklearn.calibration import Calib...
47.011976
104
0.672271
import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns sns.set_style('whitegrid') from sklearn.preprocessing import LabelEncoder from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestClassifier from sklearn.calibration import CalibratedClass...
true
true
f72acedfe31ef0d6425a9d5e280c234bf012eb1c
2,456
py
Python
example.py
macky168/gaopt
bf2785325d3cb4489513f47ed06f745a059262f8
[ "MIT" ]
null
null
null
example.py
macky168/gaopt
bf2785325d3cb4489513f47ed06f745a059262f8
[ "MIT" ]
null
null
null
example.py
macky168/gaopt
bf2785325d3cb4489513f47ed06f745a059262f8
[ "MIT" ]
null
null
null
import gaopt from gaopt import search_space import pandas as pd import numpy as np import lightgbm as lgb from sklearn.model_selection import train_test_split from sklearn.metrics import r2_score from sklearn.datasets import load_diabetes params_range={ 'lambda_l1': search_space.discrete_int(-8, 2), 'lambda_...
31.487179
157
0.664088
import gaopt from gaopt import search_space import pandas as pd import numpy as np import lightgbm as lgb from sklearn.model_selection import train_test_split from sklearn.metrics import r2_score from sklearn.datasets import load_diabetes params_range={ 'lambda_l1': search_space.discrete_int(-8, 2), 'lambda_...
true
true
f72acf6685fa304f560b7aba21b3cc59df08af86
1,407
py
Python
plotly/validators/contour/colorbar/_tickfont.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
1
2018-07-16T01:51:47.000Z
2018-07-16T01:51:47.000Z
plotly/validators/contour/colorbar/_tickfont.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/contour/colorbar/_tickfont.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
1
2019-02-18T04:12:56.000Z
2019-02-18T04:12:56.000Z
import _plotly_utils.basevalidators class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name='tickfont', parent_name='contour.colorbar', **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent...
39.083333
78
0.570007
import _plotly_utils.basevalidators class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name='tickfont', parent_name='contour.colorbar', **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent...
true
true
f72acf916cc7270f998cfd07db89c1ac93ca5b18
1,812
py
Python
src/scripts/extract_syscall.py
Manouchehri/Triton-docker
ce49ce9ba49965a5e7f814f2b46e50cc74b704de
[ "BSD-3-Clause" ]
1
2020-11-15T15:21:12.000Z
2020-11-15T15:21:12.000Z
src/scripts/extract_syscall.py
Manouchehri/Triton-docker
ce49ce9ba49965a5e7f814f2b46e50cc74b704de
[ "BSD-3-Clause" ]
null
null
null
src/scripts/extract_syscall.py
Manouchehri/Triton-docker
ce49ce9ba49965a5e7f814f2b46e50cc74b704de
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python # # This script is used to generate the files src/utils/syscalls{32,64}.cpp. # As the list of syscalls depends of your Kernel version. We must # generate the list at the compile time. # from __future__ import print_function import argparse import sys import re import platform HEADER = """ /*! ...
25.885714
98
0.570088
from __future__ import print_function import argparse import sys import re import platform HEADER = """ /*! \\file */ #if defined(__unix__) || defined(__APPLE__) #include <syscalls.hpp> namespace triton { namespace os { namespace unix { """ FOOTER = """ }; /* unix namespace */ }; /* os namespa...
true
true
f72ad055c9ca2d52827b7e4aa011c2370f6292dc
15,695
py
Python
electrum_ltc/tests/test_lnpeer.py
SynchrotronCoinDev/electrum-ltc
178589f30ce57ca84e4d8bc7587f39522e9d17b3
[ "MIT" ]
null
null
null
electrum_ltc/tests/test_lnpeer.py
SynchrotronCoinDev/electrum-ltc
178589f30ce57ca84e4d8bc7587f39522e9d17b3
[ "MIT" ]
null
null
null
electrum_ltc/tests/test_lnpeer.py
SynchrotronCoinDev/electrum-ltc
178589f30ce57ca84e4d8bc7587f39522e9d17b3
[ "MIT" ]
null
null
null
import asyncio import tempfile from decimal import Decimal import os from contextlib import contextmanager from collections import defaultdict import logging import concurrent from concurrent import futures import unittest from aiorpcx import TaskGroup from electrum_ltc import constants from electrum_ltc.network impo...
39.633838
139
0.680663
import asyncio import tempfile from decimal import Decimal import os from contextlib import contextmanager from collections import defaultdict import logging import concurrent from concurrent import futures import unittest from aiorpcx import TaskGroup from electrum_ltc import constants from electrum_ltc.network impo...
true
true
f72ad123a16de5b88d83b7f0efe6887a58556b76
1,491
py
Python
examples/map_view_simple_example.py
TomSchimansky/TkinterMapView
eb84f600e9b6bb8c60d88149e277b3abee704a70
[ "CC0-1.0" ]
43
2022-01-02T04:23:28.000Z
2022-03-30T03:04:03.000Z
examples/map_view_simple_example.py
TomSchimansky/TkinterMapView
eb84f600e9b6bb8c60d88149e277b3abee704a70
[ "CC0-1.0" ]
6
2022-02-24T09:19:35.000Z
2022-03-24T18:32:22.000Z
examples/map_view_simple_example.py
TomSchimansky/TkinterMapView
eb84f600e9b6bb8c60d88149e277b3abee704a70
[ "CC0-1.0" ]
4
2022-01-03T16:49:04.000Z
2022-03-21T09:25:44.000Z
import tkinter import tkintermapview # create tkinter window root_tk = tkinter.Tk() root_tk.geometry(f"{1000}x{700}") root_tk.title("map_view_simple_example.py") # create map widget map_widget = tkintermapview.TkinterMapView(root_tk, width=1000, height=700, corner_radius=0) map_widget.pack(fill="both", expand=True) ...
36.365854
126
0.739772
import tkinter import tkintermapview root_tk = tkinter.Tk() root_tk.geometry(f"{1000}x{700}") root_tk.title("map_view_simple_example.py") map_widget = tkintermapview.TkinterMapView(root_tk, width=1000, height=700, corner_radius=0) map_widget.pack(fill="both", expand=True) rker clicked - text: {marker.text} posit...
true
true
f72ad1768efdd493f94b24b3d7caadf10628ed7b
5,376
py
Python
qtc_scoop.py
keceli/qtc
334fae9cd0eea493437e95c9aeb5a3088cbac343
[ "Apache-2.0" ]
null
null
null
qtc_scoop.py
keceli/qtc
334fae9cd0eea493437e95c9aeb5a3088cbac343
[ "Apache-2.0" ]
null
null
null
qtc_scoop.py
keceli/qtc
334fae9cd0eea493437e95c9aeb5a3088cbac343
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import argparse import subprocess import iotools as io import obtools as ob import qctools as qc import tctools as tc try: _runserial = False from scoop import futures from scoop import utils except: _runserial = True print "No scoop, no concurency \n Running in serial mode......
33.391304
94
0.607515
import argparse import subprocess import iotools as io import obtools as ob import qctools as qc import tctools as tc try: _runserial = False from scoop import futures from scoop import utils except: _runserial = True print "No scoop, no concurency \n Running in serial mode..." __updated__ = "201...
false
true
f72ad17de09166bbcef6aaac4ff6b283c77049fa
2,206
py
Python
retrieve_response.py
kit-data-manager/gemma
0ae4e64f966b389c7e7c5619c8fd09bef78c8c87
[ "Apache-2.0" ]
null
null
null
retrieve_response.py
kit-data-manager/gemma
0ae4e64f966b389c7e7c5619c8fd09bef78c8c87
[ "Apache-2.0" ]
null
null
null
retrieve_response.py
kit-data-manager/gemma
0ae4e64f966b389c7e7c5619c8fd09bef78c8c87
[ "Apache-2.0" ]
null
null
null
import http.client import os import json import wget import mapping_functions import pprint import sys HOST = 'episteme2.scc.kit.edu' PORT = '8080' URL = os.path.join('http://' + HOST + ':' + PORT, 'api/v1/dataresources') output_folder = sys.argv[1] payload = "{\n \t\"resourceType\": {\n \t\t\"typeGeneral\":\"TEXT\"...
30.638889
115
0.629193
import http.client import os import json import wget import mapping_functions import pprint import sys HOST = 'episteme2.scc.kit.edu' PORT = '8080' URL = os.path.join('http://' + HOST + ':' + PORT, 'api/v1/dataresources') output_folder = sys.argv[1] payload = "{\n \t\"resourceType\": {\n \t\t\"typeGeneral\":\"TEXT\"...
true
true
f72ad2f82bf260bd112b090bded6d3c5ba2e8a43
1,180
py
Python
profiles_api/serializers.py
Atique-7/drf-genesis
a333564d285885c7661e3324d5503488d9ced6ae
[ "MIT" ]
null
null
null
profiles_api/serializers.py
Atique-7/drf-genesis
a333564d285885c7661e3324d5503488d9ced6ae
[ "MIT" ]
null
null
null
profiles_api/serializers.py
Atique-7/drf-genesis
a333564d285885c7661e3324d5503488d9ced6ae
[ "MIT" ]
null
null
null
from rest_framework import serializers from profiles_api import models class UserProfileSerializer(serializers.ModelSerializer): """serializes a user profile object""" class Meta: model = models.UserProfile fields = ('id', 'name', 'email', 'password') extra_kwargs = { 'pas...
29.5
68
0.561864
from rest_framework import serializers from profiles_api import models class UserProfileSerializer(serializers.ModelSerializer): class Meta: model = models.UserProfile fields = ('id', 'name', 'email', 'password') extra_kwargs = { 'password' : { 'write_only' : T...
true
true
f72ad439a6e7cf5dac1b087074d4ee471a260a4b
52
py
Python
tests/python/overload1.py
jacereda/py2nim
56fc2699d31241c60bed726f59efea4bf46be238
[ "MIT" ]
10
2020-03-10T12:01:01.000Z
2021-05-23T19:47:06.000Z
tests/python/overload1.py
jacereda/py2nim
56fc2699d31241c60bed726f59efea4bf46be238
[ "MIT" ]
null
null
null
tests/python/overload1.py
jacereda/py2nim
56fc2699d31241c60bed726f59efea4bf46be238
[ "MIT" ]
1
2020-07-17T11:20:56.000Z
2020-07-17T11:20:56.000Z
def a(z, b): print(z + b) a(0, 0.0) a('e', '')
8.666667
16
0.365385
def a(z, b): print(z + b) a(0, 0.0) a('e', '')
true
true
f72ad5b39fcaee399cd011abf25e5fda0c0342a6
24,914
py
Python
jina/flow/mixin/async_crud.py
liushuigs/jina
b3550e901b2a340924330b5ba2801603e493c933
[ "Apache-2.0" ]
null
null
null
jina/flow/mixin/async_crud.py
liushuigs/jina
b3550e901b2a340924330b5ba2801603e493c933
[ "Apache-2.0" ]
2
2021-02-15T01:40:38.000Z
2021-02-15T02:00:21.000Z
jina/flow/mixin/async_crud.py
liushuigs/jina
b3550e901b2a340924330b5ba2801603e493c933
[ "Apache-2.0" ]
null
null
null
import warnings from typing import Union, Iterable, TextIO, Dict, Optional import numpy as np from ...clients.base import InputType, CallbackFnType from ...enums import DataInputType from ...helper import deprecated_alias class AsyncCRUDFlowMixin: """The asynchronous version of the Mixin for CRUD in Flow""" ...
40.70915
120
0.603837
import warnings from typing import Union, Iterable, TextIO, Dict, Optional import numpy as np from ...clients.base import InputType, CallbackFnType from ...enums import DataInputType from ...helper import deprecated_alias class AsyncCRUDFlowMixin: @deprecated_alias( input_fn=('inputs', 0), buff...
true
true
f72ad5bc7ad2d8fb6d61ac7005b04ae01a495d56
1,629
py
Python
packages/tool_util/tests/test_tool_linters.py
lawrence14701/galaxy
7eb2fcb708e7b63e17800c87613ddfa5497c0654
[ "CC-BY-3.0" ]
2
2017-03-28T12:11:41.000Z
2017-04-22T02:58:25.000Z
packages/tool_util/tests/test_tool_linters.py
lawrence14701/galaxy
7eb2fcb708e7b63e17800c87613ddfa5497c0654
[ "CC-BY-3.0" ]
12
2020-07-24T23:55:19.000Z
2021-12-19T11:40:06.000Z
packages/tool_util/tests/test_tool_linters.py
lawrence14701/galaxy
7eb2fcb708e7b63e17800c87613ddfa5497c0654
[ "CC-BY-3.0" ]
1
2019-01-16T22:21:54.000Z
2019-01-16T22:21:54.000Z
import pytest from galaxy.tool_util.lint import LintContext from galaxy.tool_util.linters import inputs from galaxy.util import etree NO_SECTIONS_XML = """ <tool name="BWA Mapper" id="bwa" version="1.0.1" is_multi_byte="true" display_interface="true" require_login="true" hidden="true"> <description>The BWA Mappe...
39.731707
166
0.715163
import pytest from galaxy.tool_util.lint import LintContext from galaxy.tool_util.linters import inputs from galaxy.util import etree NO_SECTIONS_XML = """ <tool name="BWA Mapper" id="bwa" version="1.0.1" is_multi_byte="true" display_interface="true" require_login="true" hidden="true"> <description>The BWA Mappe...
true
true
f72ad5f44335464611bcb3461699a32b7602d505
7,802
py
Python
virtual/lib/python3.6/site-packages/PIL/PsdImagePlugin.py
Ruterana/clone_instagram
a068587ef1d1a93ec8d1c08086bf11c0fb274b83
[ "MIT" ]
99
2019-10-09T16:14:46.000Z
2022-03-17T02:23:47.000Z
virtual/lib/python3.6/site-packages/PIL/PsdImagePlugin.py
Ruterana/clone_instagram
a068587ef1d1a93ec8d1c08086bf11c0fb274b83
[ "MIT" ]
123
2019-09-10T14:48:01.000Z
2019-11-28T21:24:06.000Z
virtual/lib/python3.6/site-packages/PIL/PsdImagePlugin.py
Ruterana/clone_instagram
a068587ef1d1a93ec8d1c08086bf11c0fb274b83
[ "MIT" ]
98
2019-10-17T14:48:28.000Z
2022-01-21T03:33:38.000Z
# # The Python Imaging Library # $Id$ # # Adobe PSD 2.5/3.0 file handling # # History: # 1995-09-01 fl Created # 1997-01-03 fl Read most PSD images # 1997-01-18 fl Fixed P and CMYK support # 2001-10-21 fl Added seek/tell support (for layers) # # Copyright (c) 1997-2001 by Secret Labs AB. # Copyright (c) 1995-20...
24.38125
81
0.481671
__version__ = "0.4" import io from . import Image, ImageFile, ImagePalette from ._binary import i8, i16be as i16, i32be as i32 MODES = { (0, 1): ("1", 1), (0, 8): ("L", 1), (1, 8): ("L", 1), (2, 8): ("P", 1), (3, 8): ("RGB", 3), (4, 8): ("CMYK", 4), (7, 8): ("L", ...
true
true
f72ad8ba1938d20c873989d306f99b76c1ee53bf
11,515
py
Python
qiskit/tools/jupyter/backend_overview.py
t-imamichi/qiskit-core
8d2eeeac44f97af1e10514cdae4157e5923ff2e5
[ "Apache-2.0" ]
92
2018-06-05T11:18:38.000Z
2018-07-01T23:50:44.000Z
qiskit/tools/jupyter/backend_overview.py
t-imamichi/qiskit-core
8d2eeeac44f97af1e10514cdae4157e5923ff2e5
[ "Apache-2.0" ]
107
2018-06-05T08:41:19.000Z
2018-07-02T12:10:53.000Z
qiskit/tools/jupyter/backend_overview.py
t-imamichi/qiskit-core
8d2eeeac44f97af1e10514cdae4157e5923ff2e5
[ "Apache-2.0" ]
39
2018-06-05T09:55:56.000Z
2018-07-02T08:47:35.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2017, 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
35.650155
99
0.590881
import time import threading import types from IPython.display import display from IPython.core.magic import line_magic, Magics, magics_class from IPython.core import magic_arguments import matplotlib.pyplot as plt import ipywidgets as widgets from qiskit.tools.monitor.overview import get_unique_backends f...
true
true
f72ada2ce523c5d4764bb97fbbec0c1d62c192e2
897
py
Python
idaes/generic_models/unit_models/column_models/__init__.py
eslickj/idaes-pse
328ed07ffb0b4d98c03e972675ea32c41dd2531a
[ "RSA-MD" ]
112
2019-02-11T23:16:36.000Z
2022-03-23T20:59:57.000Z
idaes/generic_models/unit_models/column_models/__init__.py
eslickj/idaes-pse
328ed07ffb0b4d98c03e972675ea32c41dd2531a
[ "RSA-MD" ]
621
2019-03-01T14:44:12.000Z
2022-03-31T19:49:25.000Z
idaes/generic_models/unit_models/column_models/__init__.py
eslickj/idaes-pse
328ed07ffb0b4d98c03e972675ea32c41dd2531a
[ "RSA-MD" ]
154
2019-02-01T23:46:33.000Z
2022-03-23T15:07:10.000Z
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021 # by the softwar...
52.764706
81
0.654404
true
true
f72adb7883b52f3f1c6bf8306f57b1dd0008ab29
868
py
Python
enviorment/colors.py
JLMadsen/TetrisAI
c6f2ef47a57e60b1ec73666406931ca46c9d1233
[ "MIT" ]
1
2020-11-23T22:11:33.000Z
2020-11-23T22:11:33.000Z
enviorment/colors.py
JLMadsen/TetrisAI
c6f2ef47a57e60b1ec73666406931ca46c9d1233
[ "MIT" ]
1
2021-07-13T15:31:00.000Z
2021-07-13T15:31:00.000Z
enviorment/colors.py
JLMadsen/TetrisAI
c6f2ef47a57e60b1ec73666406931ca46c9d1233
[ "MIT" ]
1
2021-02-02T14:11:57.000Z
2021-02-02T14:11:57.000Z
class Color: WHITE = (255, 255, 255) BLACK = (0, 0, 0 ) GRAY = (100, 100, 100) RED = (220, 20, 60 ) GREEN = (50, 205, 50 ) YELLOW = (255, 255, 0 ) PURPLE = (218, 112, 214) ALL = [WHITE, BLACK, GRAY, RED, GREEN] # just for printing colors in terminal class bcolo...
22.842105
43
0.562212
class Color: WHITE = (255, 255, 255) BLACK = (0, 0, 0 ) GRAY = (100, 100, 100) RED = (220, 20, 60 ) GREEN = (50, 205, 50 ) YELLOW = (255, 255, 0 ) PURPLE = (218, 112, 214) ALL = [WHITE, BLACK, GRAY, RED, GREEN] class bcolors: HEADER = '\033[95m' OKB...
true
true
f72adc47d855b9bd8cfb880f4445828ea9fe2109
9,267
py
Python
pysot/datasets/dataset_template.py
wattanapong/DFA
c05851beca2f8739f80531eb4de2f61639715cab
[ "Apache-2.0" ]
null
null
null
pysot/datasets/dataset_template.py
wattanapong/DFA
c05851beca2f8739f80531eb4de2f61639715cab
[ "Apache-2.0" ]
null
null
null
pysot/datasets/dataset_template.py
wattanapong/DFA
c05851beca2f8739f80531eb4de2f61639715cab
[ "Apache-2.0" ]
null
null
null
# Copyright (c) SenseTime. All Rights Reserved. from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import json import logging import sys import os import cv2 import numpy as np from torch.utils.data import Dataset from...
34.449814
107
0.555627
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import json import logging import sys import os import cv2 import numpy as np from torch.utils.data import Dataset from pysot.utils.bbox import center2corner, Center ...
true
true
f72addc1225c0aa169e2bb36069de6d370480522
12,614
py
Python
src/gluonnlp/data/utils.py
yifeim/gluon-nlp
ea30d3399d87404b731d513535af9a31a5672799
[ "Apache-2.0" ]
null
null
null
src/gluonnlp/data/utils.py
yifeim/gluon-nlp
ea30d3399d87404b731d513535af9a31a5672799
[ "Apache-2.0" ]
2
2019-02-13T09:10:26.000Z
2019-02-20T02:59:43.000Z
src/gluonnlp/data/utils.py
yifeim/gluon-nlp
ea30d3399d87404b731d513535af9a31a5672799
[ "Apache-2.0" ]
1
2019-02-13T03:07:06.000Z
2019-02-13T03:07:06.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 # "License...
30.616505
98
0.641589
from __future__ import absolute_import from __future__ import print_function __all__ = [ 'Counter', 'count_tokens', 'concat_sequence', 'slice_sequence', 'train_valid_split', 'line_splitter', 'whitespace_splitter', 'Splitter' ] import os import collections import zipfile import tarfile impor...
true
true
f72addc1825c766c27b5ea9433ca8b1b439ac3e5
33,419
py
Python
cirq/ops/common_gates.py
philiptmassey/Cirq
b8b457c2fc484d76bf8a82a73f6ecc11756229a6
[ "Apache-2.0" ]
null
null
null
cirq/ops/common_gates.py
philiptmassey/Cirq
b8b457c2fc484d76bf8a82a73f6ecc11756229a6
[ "Apache-2.0" ]
null
null
null
cirq/ops/common_gates.py
philiptmassey/Cirq
b8b457c2fc484d76bf8a82a73f6ecc11756229a6
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
32.071977
80
0.552739
from typing import ( Any, Callable, cast, Iterable, List, Optional, Tuple, Union, ) import numpy as np from cirq import linalg, protocols, value from cirq.ops import gate_features, eigen_gate, raw_types, gate_operation from cirq.type_workarounds import NotImplementedType import cirq.ops.phased_x_...
true
true
f72adde5fd070ac204654007f643a021dddeff3a
4,967
py
Python
sensirion_shdlc_sensorbridge/commands/firmware_update.py
Sensirion/python-shdlc-sensorbridge
c441c17d89697ecf0f7b61955f54c3da195e30e6
[ "BSD-3-Clause" ]
null
null
null
sensirion_shdlc_sensorbridge/commands/firmware_update.py
Sensirion/python-shdlc-sensorbridge
c441c17d89697ecf0f7b61955f54c3da195e30e6
[ "BSD-3-Clause" ]
1
2021-03-28T22:15:29.000Z
2021-11-03T09:06:14.000Z
sensirion_shdlc_sensorbridge/commands/firmware_update.py
Sensirion/python-shdlc-sensorbridge
c441c17d89697ecf0f7b61955f54c3da195e30e6
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # (c) Copyright 2020 Sensirion AG, Switzerland ############################################################################## ############################################################################## # _____ _ _ _______ _____ ____ _ _ # / ____| ...
35.733813
79
0.562915
true
true
f72adf1f6af0532364f442d4ae606bac033e4b53
584
py
Python
tutorials/migrations/0031_auto_20210211_1605.py
ericrobskyhuntley/vialab.mit.edu
1318d03b8eeb106c1662052e1caa53290e206ae7
[ "MIT" ]
null
null
null
tutorials/migrations/0031_auto_20210211_1605.py
ericrobskyhuntley/vialab.mit.edu
1318d03b8eeb106c1662052e1caa53290e206ae7
[ "MIT" ]
null
null
null
tutorials/migrations/0031_auto_20210211_1605.py
ericrobskyhuntley/vialab.mit.edu
1318d03b8eeb106c1662052e1caa53290e206ae7
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2021-02-11 21:05 from django.db import migrations import martor.models class Migration(migrations.Migration): dependencies = [ ('tutorials', '0030_auto_20200408_1257'), ] operations = [ migrations.AlterField( model_name='historicalsoftware', ...
23.36
60
0.601027
from django.db import migrations import martor.models class Migration(migrations.Migration): dependencies = [ ('tutorials', '0030_auto_20200408_1257'), ] operations = [ migrations.AlterField( model_name='historicalsoftware', name='desc', field=martor...
true
true
f72adf93c081da254d9748d047115a98b9ef3ffc
6,631
py
Python
feature_export.py
TAMU-CPT/blast-db-download
53261f08d1f9193c4f538fa90983a465502190a9
[ "BSD-3-Clause" ]
null
null
null
feature_export.py
TAMU-CPT/blast-db-download
53261f08d1f9193c4f538fa90983a465502190a9
[ "BSD-3-Clause" ]
3
2017-09-15T18:58:21.000Z
2020-03-24T19:11:16.000Z
feature_export.py
TAMU-CPT/blast-db-download
53261f08d1f9193c4f538fa90983a465502190a9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys import argparse import logging from Bio import SeqIO from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord from Bio.SeqFeature import SeqFeature, FeatureLocation logging.basicConfig(level=logging.INFO) log = logging.getLogger() def get_id(feature=None, parent_prefix=None): r...
44.503356
120
0.527975
import sys import argparse import logging from Bio import SeqIO from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord from Bio.SeqFeature import SeqFeature, FeatureLocation logging.basicConfig(level=logging.INFO) log = logging.getLogger() def get_id(feature=None, parent_prefix=None): result = "" if par...
false
true
f72adfbd0b4913e9c0e119e52b6aa8237cc00b2a
2,757
py
Python
tools/count_opsize.py
VDIGPKU/OPANAS
873ff09a65d3253ce8351e54880a642517f7e8b5
[ "Apache-2.0" ]
39
2021-03-31T21:15:48.000Z
2022-03-30T03:34:14.000Z
tools/count_opsize.py
VDIGPKU/OPANAS
873ff09a65d3253ce8351e54880a642517f7e8b5
[ "Apache-2.0" ]
8
2021-04-06T07:58:03.000Z
2022-01-11T17:10:51.000Z
tools/count_opsize.py
VDIGPKU/OPANAS
873ff09a65d3253ce8351e54880a642517f7e8b5
[ "Apache-2.0" ]
4
2021-04-06T03:28:56.000Z
2022-03-06T19:57:50.000Z
import argparse import os import warnings import mmcv import torch from mmcv import Config, DictAction from mmcv.cnn import fuse_conv_bn from mmcv.parallel import MMDataParallel, MMDistributedDataParallel from mmcv.runner import get_dist_info, init_dist, load_checkpoint from mmcv.runner import (HOOKS, DistSamplerSeedH...
31.689655
163
0.660863
import argparse import os import warnings import mmcv import torch from mmcv import Config, DictAction from mmcv.cnn import fuse_conv_bn from mmcv.parallel import MMDataParallel, MMDistributedDataParallel from mmcv.runner import get_dist_info, init_dist, load_checkpoint from mmcv.runner import (HOOKS, DistSamplerSeedH...
true
true
f72ae0a27f7cd75894571c6fa943dd5463f7ef49
15,394
py
Python
tests/test_rtc_parse_aec.py
fyntex/lib-cl-sii-python
b6ffb72be1f173a1d2e44b17ae5c08caf96ebf34
[ "MIT" ]
8
2020-03-07T19:58:40.000Z
2021-12-15T13:47:40.000Z
tests/test_rtc_parse_aec.py
fyntex/lib-cl-sii-python
b6ffb72be1f173a1d2e44b17ae5c08caf96ebf34
[ "MIT" ]
141
2020-01-17T22:47:35.000Z
2022-03-31T18:29:47.000Z
tests/test_rtc_parse_aec.py
fyntex/lib-cl-sii-python
b6ffb72be1f173a1d2e44b17ae5c08caf96ebf34
[ "MIT" ]
3
2020-03-07T20:30:02.000Z
2021-03-22T03:14:26.000Z
from __future__ import annotations import unittest from datetime import date, datetime from cl_sii.dte.data_models import DteDataL1, DteXmlData from cl_sii.dte.constants import TipoDteEnum from cl_sii.dte.parse import DTE_XMLNS from cl_sii.libs import encoding_utils from cl_sii.libs import tz_utils from cl_sii.libs i...
44.235632
100
0.59023
from __future__ import annotations import unittest from datetime import date, datetime from cl_sii.dte.data_models import DteDataL1, DteXmlData from cl_sii.dte.constants import TipoDteEnum from cl_sii.dte.parse import DTE_XMLNS from cl_sii.libs import encoding_utils from cl_sii.libs import tz_utils from cl_sii.libs i...
true
true
f72ae0f6c794d479f6cdc796193f0e7a465e9821
15,152
py
Python
Perception-Project/project_template.py
renowator/Udacity_Robotics_Projects
3dc1f1ebff3c33d6bbb031653398ace5beb7f809
[ "MIT" ]
null
null
null
Perception-Project/project_template.py
renowator/Udacity_Robotics_Projects
3dc1f1ebff3c33d6bbb031653398ace5beb7f809
[ "MIT" ]
null
null
null
Perception-Project/project_template.py
renowator/Udacity_Robotics_Projects
3dc1f1ebff3c33d6bbb031653398ace5beb7f809
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Import modules import matplotlib.colors import matplotlib.pyplot as plt import numpy as np import sklearn from sklearn.preprocessing import LabelEncoder import pickle from sensor_stick.srv import GetNormals from sensor_stick.features import compute_color_histograms from sensor_stick.features im...
38.262626
159
0.714625
import matplotlib.colors import matplotlib.pyplot as plt import numpy as np import sklearn from sklearn.preprocessing import LabelEncoder import pickle from sensor_stick.srv import GetNormals from sensor_stick.features import compute_color_histograms from sensor_stick.features import compute_normal_histograms from v...
false
true
f72ae161a0eb4e5d0974932d1ca4ef7364cf371f
152
py
Python
aiocloudflare/api/zones/dns_records/import_/import_.py
Stewart86/aioCloudflare
341c0941f8f888a8b7e696e64550bce5da4949e6
[ "MIT" ]
2
2021-09-14T13:20:55.000Z
2022-02-24T14:18:24.000Z
aiocloudflare/api/zones/dns_records/import_/import_.py
Stewart86/aioCloudflare
341c0941f8f888a8b7e696e64550bce5da4949e6
[ "MIT" ]
46
2021-09-08T08:39:45.000Z
2022-03-29T12:31:05.000Z
aiocloudflare/api/zones/dns_records/import_/import_.py
Stewart86/aioCloudflare
341c0941f8f888a8b7e696e64550bce5da4949e6
[ "MIT" ]
1
2021-12-30T23:02:23.000Z
2021-12-30T23:02:23.000Z
from aiocloudflare.commons.auth import Auth class Import_(Auth): _endpoint1 = "zones" _endpoint2 = "dns_records/import" _endpoint3 = None
19
43
0.723684
from aiocloudflare.commons.auth import Auth class Import_(Auth): _endpoint1 = "zones" _endpoint2 = "dns_records/import" _endpoint3 = None
true
true
f72ae291978b1bc7fcf2a7bbfa465ce316156938
596
py
Python
ROSpractice/src/topics_quiz/src/topics_quiz_node.py
kasiv008/Robotics
302b3336005acd81202ebbbb0c52a4b2692fa9c7
[ "MIT" ]
1
2021-07-19T10:15:08.000Z
2021-07-19T10:15:08.000Z
ROSpractice/src/topics_quiz/src/topics_quiz_node.py
kasiv008/Robotics
302b3336005acd81202ebbbb0c52a4b2692fa9c7
[ "MIT" ]
null
null
null
ROSpractice/src/topics_quiz/src/topics_quiz_node.py
kasiv008/Robotics
302b3336005acd81202ebbbb0c52a4b2692fa9c7
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from geometry_msgs.msg import Twist from sensor_msgs.msg import LaserScan def callback(msg): L,M,R = msg.ranges[719],msg.ranges[360],msg.ranges[0] move.linear.x = .2 if M < 1.2: move.linear.x = .05 move.angular.z = .1 elif L > 30 and R > 30 and M > 30:...
24.833333
57
0.642617
import rospy from geometry_msgs.msg import Twist from sensor_msgs.msg import LaserScan def callback(msg): L,M,R = msg.ranges[719],msg.ranges[360],msg.ranges[0] move.linear.x = .2 if M < 1.2: move.linear.x = .05 move.angular.z = .1 elif L > 30 and R > 30 and M > 30: move.linear....
true
true
f72ae3fa136caa90b5e27aab7455fdec4407560e
2,016
py
Python
alipay/aop/api/domain/KoubeiSalesKbassetStuffProduceqrcodeBatchqueryModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/KoubeiSalesKbassetStuffProduceqrcodeBatchqueryModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/KoubeiSalesKbassetStuffProduceqrcodeBatchqueryModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.constant.ParamConstants import * class KoubeiSalesKbassetStuffProduceqrcodeBatchqueryModel(object): def __init__(self): self._batch_id = None self._page_size = None self._produce_order_id = None ...
28.394366
83
0.613095
import simplejson as json from alipay.aop.api.constant.ParamConstants import * class KoubeiSalesKbassetStuffProduceqrcodeBatchqueryModel(object): def __init__(self): self._batch_id = None self._page_size = None self._produce_order_id = None @property def batch_id(self): ...
true
true
f72ae4fe9cb98106976c818db916bbe6b063c51a
2,243
py
Python
sdk/python/tests/unit/test_feature_views.py
kevjumba/feast
44d53fda71b5a82d9fb6e044b01d97080c2d018c
[ "Apache-2.0" ]
810
2018-12-25T15:16:11.000Z
2020-05-14T09:49:40.000Z
sdk/python/tests/unit/test_feature_views.py
kevjumba/feast
44d53fda71b5a82d9fb6e044b01d97080c2d018c
[ "Apache-2.0" ]
701
2018-12-21T05:18:43.000Z
2020-05-16T01:30:21.000Z
sdk/python/tests/unit/test_feature_views.py
kevjumba/feast
44d53fda71b5a82d9fb6e044b01d97080c2d018c
[ "Apache-2.0" ]
155
2018-12-22T11:05:04.000Z
2020-05-14T07:33:41.000Z
from datetime import timedelta import pytest from feast import PushSource from feast.batch_feature_view import BatchFeatureView from feast.data_format import AvroFormat from feast.data_source import KafkaSource from feast.infra.offline_stores.file_source import FileSource from feast.stream_feature_view import StreamF...
27.353659
79
0.628622
from datetime import timedelta import pytest from feast import PushSource from feast.batch_feature_view import BatchFeatureView from feast.data_format import AvroFormat from feast.data_source import KafkaSource from feast.infra.offline_stores.file_source import FileSource from feast.stream_feature_view import StreamF...
true
true
f72ae59ecb83441e8b44b0616951c153ac6dd839
8,726
py
Python
lambda/py/mutagen/_file.py
frivas/alexa-mixed-polly
bf0fde9005a66f3d6f0193799eacef934d166de7
[ "W3C" ]
2
2019-07-29T15:45:31.000Z
2019-11-17T23:33:58.000Z
lambda/py/mutagen/_file.py
frivas/alexa-mixed-polly
bf0fde9005a66f3d6f0193799eacef934d166de7
[ "W3C" ]
null
null
null
lambda/py/mutagen/_file.py
frivas/alexa-mixed-polly
bf0fde9005a66f3d6f0193799eacef934d166de7
[ "W3C" ]
1
2019-01-06T15:18:58.000Z
2019-01-06T15:18:58.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2005 Michael Urman # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. import wa...
28.990033
79
0.607609
import warnings from mutagen._util import DictMixin, loadfile from mutagen._compat import izip class FileType(DictMixin): __module__ = "mutagen" info = None tags = None filename = None _mimes = ["application/octet-stream"] def __init__(self, *args, **kwargs): if not args an...
true
true
f72ae5ad21d0d2e7c0cc825a649cff1858a27800
5,781
py
Python
src/coolbeans/extort/ib.py
runarp/coolbeans
128a7f2e45690d2d22b05608e555c44334f46859
[ "MIT" ]
5
2020-05-17T04:48:25.000Z
2022-01-27T09:36:45.000Z
src/coolbeans/extort/ib.py
runarp/coolbeans
128a7f2e45690d2d22b05608e555c44334f46859
[ "MIT" ]
1
2020-05-17T06:21:52.000Z
2020-05-22T13:49:33.000Z
src/coolbeans/extort/ib.py
runarp/coolbeans
128a7f2e45690d2d22b05608e555c44334f46859
[ "MIT" ]
1
2021-01-28T03:00:27.000Z
2021-01-28T03:00:27.000Z
"""Example Extorter, useful as a starting point""" import typing import logging import dataclasses import datetime # 3rdparty import slugify # We use ibflex from ibflex import parser, FlexStatement, CashAction from coolbeans.extort.base import ExtortionProtocol from coolbeans.tools.seeds import Trade, Transfer, E...
33.034286
130
0.530877
import typing import logging import dataclasses import datetime import slugify from ibflex import parser, FlexStatement, CashAction from coolbeans.extort.base import ExtortionProtocol from coolbeans.tools.seeds import Trade, Transfer, Expense, Income, EventDetail logger = logging.getLogger(__name__) def tra...
true
true
f72ae5e176716f5b8b5bebf5ecd595df75c371dc
1,555
py
Python
example/run_SolveOneAgent_online.py
zehuilu/DrMaMP-Distributed-Real-time-Multi-agent-Mission-Planning-Algorithm
894875ebddf7d1f6bbf7a47ce82f05d7be2bafdc
[ "Apache-2.0" ]
4
2022-02-22T05:12:18.000Z
2022-03-29T01:56:37.000Z
example/run_SolveOneAgent_online.py
zehuilu/DrMaMP-Distributed-Real-time-Multi-agent-Mission-Planning-Algorithm
894875ebddf7d1f6bbf7a47ce82f05d7be2bafdc
[ "Apache-2.0" ]
null
null
null
example/run_SolveOneAgent_online.py
zehuilu/DrMaMP-Distributed-Real-time-Multi-agent-Mission-Planning-Algorithm
894875ebddf7d1f6bbf7a47ce82f05d7be2bafdc
[ "Apache-2.0" ]
3
2022-02-23T03:14:56.000Z
2022-03-14T12:22:05.000Z
#!/usr/bin/env python3 import asyncio import random import matplotlib.pyplot as plt import pathmagic with pathmagic.context(): from Simulator import Simulator from MissionPlanner import MissionPlanner if __name__ == "__main__": # define the world map_width_meter = 25.0 map_height_meter = 25.0 ...
34.555556
104
0.686817
import asyncio import random import matplotlib.pyplot as plt import pathmagic with pathmagic.context(): from Simulator import Simulator from MissionPlanner import MissionPlanner if __name__ == "__main__": map_width_meter = 25.0 map_height_meter = 25.0 map_resolution = 2 value_non_obs = 0...
true
true
f72ae622b3e7a87cfbd8de23dda483349b388bb1
26,682
py
Python
test/functional/tests/io_class/test_io_classification.py
josehu07/open-cas-linux-mf
5c6870be8bbb6816645955b6e479c9b5c7c0074d
[ "BSD-3-Clause-Clear" ]
2
2021-08-13T14:44:45.000Z
2022-01-10T07:41:40.000Z
test/functional/tests/io_class/test_io_classification.py
josehu07/open-cas-linux-mf
5c6870be8bbb6816645955b6e479c9b5c7c0074d
[ "BSD-3-Clause-Clear" ]
null
null
null
test/functional/tests/io_class/test_io_classification.py
josehu07/open-cas-linux-mf
5c6870be8bbb6816645955b6e479c9b5c7c0074d
[ "BSD-3-Clause-Clear" ]
null
null
null
# # Copyright(c) 2019-2020 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause-Clear # import random from itertools import permutations import pytest from api.cas.ioclass_config import IoClass from storage_devices.disk import DiskType, DiskTypeSet, DiskTypeLowerThan from test_tools import fs_utils from test_to...
39.296024
100
0.670227
import random from itertools import permutations import pytest from api.cas.ioclass_config import IoClass from storage_devices.disk import DiskType, DiskTypeSet, DiskTypeLowerThan from test_tools import fs_utils from test_tools.dd import Dd from test_tools.disk_utils import Filesystem from test_tools.fio.fio imp...
true
true
f72ae69658ad2a7325bb00e82f738fd441ad6552
1,684
py
Python
flask_controller/controller.py
AlexFence/FlaskController
efbd51a6970d407128f79876e8724b75fe6ec156
[ "MIT" ]
3
2020-10-19T08:18:51.000Z
2022-02-06T04:29:38.000Z
flask_controller/controller.py
TypicalFence/FlaskController
efbd51a6970d407128f79876e8724b75fe6ec156
[ "MIT" ]
null
null
null
flask_controller/controller.py
TypicalFence/FlaskController
efbd51a6970d407128f79876e8724b75fe6ec156
[ "MIT" ]
null
null
null
from abc import ABC def route(rule, **options): """Decorator for defining routes of FlaskController classes. Acts in the same way ass @app.route. Can be used for a class to set a base route too. Args: path (str): The path of the newly defined route options: refer to flasks docs for t...
28.066667
78
0.604513
from abc import ABC def route(rule, **options): def decorator(f): f._route = (rule, options) return f return decorator class FlaskController(ABC): def __init__(self): super(FlaskController, self).__init__() def register(self, app): members = dir(self) route...
true
true
f72ae6adfbd9100ea1e159819c5e0ed61df33f44
24,028
py
Python
windows_packages_gpu/torch/testing/_internal/jit_metaprogramming_utils.py
codeproject/DeepStack
d96368a3db1bc0266cb500ba3701d130834da0e6
[ "Apache-2.0" ]
353
2020-12-10T10:47:17.000Z
2022-03-31T23:08:29.000Z
windows_packages_gpu/torch/testing/_internal/jit_metaprogramming_utils.py
codeproject/DeepStack
d96368a3db1bc0266cb500ba3701d130834da0e6
[ "Apache-2.0" ]
80
2020-12-10T09:54:22.000Z
2022-03-30T22:08:45.000Z
windows_packages_gpu/torch/testing/_internal/jit_metaprogramming_utils.py
codeproject/DeepStack
d96368a3db1bc0266cb500ba3701d130834da0e6
[ "Apache-2.0" ]
63
2020-12-10T17:10:34.000Z
2022-03-28T16:27:07.000Z
# Torch from torch.jit.annotations import BroadcastingList2, BroadcastingList3 # noqa: F401 from torch.testing._internal.common_methods_invocations import non_differentiable, create_input, \ unpack_variables import torch.nn.functional as F import torch import torch.cuda import torch.jit import torch.jit._l...
44.91215
125
0.579657
from torch.jit.annotations import BroadcastingList2, BroadcastingList3 from torch.testing._internal.common_methods_invocations import non_differentiable, create_input, \ unpack_variables import torch.nn.functional as F import torch import torch.cuda import torch.jit import torch.jit._logging import torch....
true
true
f72ae77f6af21241e139bcfcb73ffd4cb6993215
566
py
Python
setup.py
galperins4/python-client
c8b6ea1f33801254eb560429b2c775d10fe60273
[ "MIT" ]
1
2018-06-15T11:19:23.000Z
2018-06-15T11:19:23.000Z
setup.py
galperins4/mirror-python-client
c8b6ea1f33801254eb560429b2c775d10fe60273
[ "MIT" ]
null
null
null
setup.py
galperins4/mirror-python-client
c8b6ea1f33801254eb560429b2c775d10fe60273
[ "MIT" ]
null
null
null
import sys import setuptools requires = [ 'requests>=2.19.1', 'backoff>=1.6.0', 'flatten_dict>=0.3.0' ] tests_require = [] extras_require = {} setuptools.setup( name='hedera-python-client', description='Python API client for Hedera Hashgraph.', version='0.0.1', author='TBD', author...
20.214286
68
0.676678
import sys import setuptools requires = [ 'requests>=2.19.1', 'backoff>=1.6.0', 'flatten_dict>=0.3.0' ] tests_require = [] extras_require = {} setuptools.setup( name='hedera-python-client', description='Python API client for Hedera Hashgraph.', version='0.0.1', author='TBD', author...
true
true
f72ae7e848291c51786e5d2a992f0c9c85761179
7,832
py
Python
plugins/modules/oci_object_storage_replication_policy_facts.py
sagar2938/oci-ansible-collection
5b8ce583a0d5d0aabf14494d61aea4649e18d1e6
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_object_storage_replication_policy_facts.py
sagar2938/oci-ansible-collection
5b8ce583a0d5d0aabf14494d61aea4649e18d1e6
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_object_storage_replication_policy_facts.py
sagar2938/oci-ansible-collection
5b8ce583a0d5d0aabf14494d61aea4649e18d1e6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2020, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
32.633333
122
0.655388
from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { "metadata_version": "1.1", "status": ["preview"], "supported_by": "community", } DOCUMENTATION = """ --- module: oci_object_storage_replication_policy_facts short_description: Fetches detai...
true
true
f72ae8822be3a2b344c2b3ee4a5a5f5d65da61a6
3,218
py
Python
NTP_Bot/msg_interpreter.py
PEI-I1/Nos_Tech_Problems
cf8b0b51285a912988a96cc96438f81c75fa45b7
[ "MIT" ]
null
null
null
NTP_Bot/msg_interpreter.py
PEI-I1/Nos_Tech_Problems
cf8b0b51285a912988a96cc96438f81c75fa45b7
[ "MIT" ]
14
2020-06-05T20:19:18.000Z
2021-09-22T18:18:23.000Z
NTP_Bot/msg_interpreter.py
PEI-I1/Nos_Tech_Problems
cf8b0b51285a912988a96cc96438f81c75fa45b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import tensorflow_hub as hub import numpy as np import tensorflow_text import json, re, os from threading import Thread from keywords import keywords embeddings = {} embed = None def loadModelData(): ''' Loads Tensorflow enconder and pre-encodes the problem data ''' global embed ...
37.858824
112
0.720945
import tensorflow_hub as hub import numpy as np import tensorflow_text import json, re, os from threading import Thread from keywords import keywords embeddings = {} embed = None def loadModelData(): global embed global embeddings embed = hub.load("https://tfhub.dev/google/universal-sentence-encoder-mul...
true
true
f72ae89046ac8b319ed71a62b07e68d530306531
3,901
py
Python
powerwatch/analysis/old_analysis_scripts/average_time_pw_uplug.py
nklugman/PlugWatch
4fbd2506a6808542fc5246e87d3c382761da1eaf
[ "MIT" ]
null
null
null
powerwatch/analysis/old_analysis_scripts/average_time_pw_uplug.py
nklugman/PlugWatch
4fbd2506a6808542fc5246e87d3c382761da1eaf
[ "MIT" ]
null
null
null
powerwatch/analysis/old_analysis_scripts/average_time_pw_uplug.py
nklugman/PlugWatch
4fbd2506a6808542fc5246e87d3c382761da1eaf
[ "MIT" ]
null
null
null
#!/usr/bin/env python from pyspark.sql import SparkSession from pyspark.sql.functions import col, window, asc, desc, lead, lag, udf, hour from pyspark.sql.functions import month, year, lit, when, collect_list, struct, mean, stddev, stddev_pop import pyspark.sql.functions as F from pyspark.sql.window import Window from ...
40.216495
162
0.722892
from pyspark.sql import SparkSession from pyspark.sql.functions import col, window, asc, desc, lead, lag, udf, hour from pyspark.sql.functions import month, year, lit, when, collect_list, struct, mean, stddev, stddev_pop import pyspark.sql.functions as F from pyspark.sql.window import Window from pyspark.sql.types imp...
true
true
f72ae8f83fbcedd3eb02039ff2317a6935549fc8
5,975
py
Python
lightlab/equipment/visa_bases/driver_base.py
CharLee674/rvisa_lightlab
b43e36f3436b60c8c5f3088b4cb0896c5360aa4a
[ "MIT" ]
null
null
null
lightlab/equipment/visa_bases/driver_base.py
CharLee674/rvisa_lightlab
b43e36f3436b60c8c5f3088b4cb0896c5360aa4a
[ "MIT" ]
null
null
null
lightlab/equipment/visa_bases/driver_base.py
CharLee674/rvisa_lightlab
b43e36f3436b60c8c5f3088b4cb0896c5360aa4a
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from contextlib import contextmanager import socket import time from lightlab import visalogger as logger from rvisa.util import from_ascii_block class InstrumentSessionBase(ABC): ''' Base class for Instrument sessions, to be inherited and specialized by VISAObject and Prol...
29.146341
110
0.594979
from abc import ABC, abstractmethod from contextlib import contextmanager import socket import time from lightlab import visalogger as logger from rvisa.util import from_ascii_block class InstrumentSessionBase(ABC): @abstractmethod def spoll(self): pass @abstractmethod def LLO(self): ...
true
true
f72ae943e83fcbed48d9e3f084fe924867622c96
2,382
py
Python
simple_ado/user.py
Bhaskers-Blu-Org2/simple_ado
bbfb1cd5d513cce0f606188e803db3dcf667cb75
[ "MIT" ]
null
null
null
simple_ado/user.py
Bhaskers-Blu-Org2/simple_ado
bbfb1cd5d513cce0f606188e803db3dcf667cb75
[ "MIT" ]
null
null
null
simple_ado/user.py
Bhaskers-Blu-Org2/simple_ado
bbfb1cd5d513cce0f606188e803db3dcf667cb75
[ "MIT" ]
1
2020-07-30T13:18:16.000Z
2020-07-30T13:18:16.000Z
#!/usr/bin/env python3 # Copyright (c) Microsoft Corporation. # Licensed under the MIT license. """ADO user API wrapper.""" import logging from typing import cast from simple_ado.base_client import ADOBaseClient from simple_ado.context import ADOContext from simple_ado.exceptions import ADOException from simple_ado...
35.552239
110
0.670025
import logging from typing import cast from simple_ado.base_client import ADOBaseClient from simple_ado.context import ADOContext from simple_ado.exceptions import ADOException from simple_ado.http_client import ADOHTTPClient from simple_ado.types import TeamFoundationId class ADOUserClient(ADOBaseClient): ...
true
true
f72aea0d6cc0cce475a487b99abf5840a183729c
152
py
Python
controller/apps.py
skyrred/Gestion
c38c4d1fa229f5b0e0ef2667ff98864a28dc3241
[ "Apache-2.0" ]
1
2021-11-15T14:55:36.000Z
2021-11-15T14:55:36.000Z
controller/apps.py
skyrred/Gestion
c38c4d1fa229f5b0e0ef2667ff98864a28dc3241
[ "Apache-2.0" ]
null
null
null
controller/apps.py
skyrred/Gestion
c38c4d1fa229f5b0e0ef2667ff98864a28dc3241
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class ControllerConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'controller'
21.714286
56
0.769737
from django.apps import AppConfig class ControllerConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'controller'
true
true
f72aeafc60f1c50f2b50e3c33dc739dfa7cb4e8a
1,675
py
Python
opening2d.py
Nobu575/AppItk
91de313115b753a6fb1ae67f53d4979580ef768b
[ "MIT" ]
null
null
null
opening2d.py
Nobu575/AppItk
91de313115b753a6fb1ae67f53d4979580ef768b
[ "MIT" ]
null
null
null
opening2d.py
Nobu575/AppItk
91de313115b753a6fb1ae67f53d4979580ef768b
[ "MIT" ]
null
null
null
import numpy as np import itk import matplotlib.pyplot as plt # Input file name input_filename = './jenga_g_150.png' # Set dimension Dimension = 2 # Read input image itk_image = itk.imread(input_filename) # Setting for input image (Grayscale) InputPixelType = itk.UC InputImageType = itk.Image[InputPixelType, Dimens...
33.5
102
0.819104
import numpy as np import itk import matplotlib.pyplot as plt input_filename = './jenga_g_150.png' Dimension = 2 itk_image = itk.imread(input_filename) InputPixelType = itk.UC InputImageType = itk.Image[InputPixelType, Dimension] reader = itk.ImageFileReader[InputImageType].New() reader.SetFileName(input_file...
true
true
f72aed1738f6ccb62f4bf6aeaaf1bcc63b40247b
2,587
py
Python
update.py
boost/bucket-antivirus-function
6eb93406e28f81a4c612f0dec29670451e0c5589
[ "Apache-2.0" ]
null
null
null
update.py
boost/bucket-antivirus-function
6eb93406e28f81a4c612f0dec29670451e0c5589
[ "Apache-2.0" ]
null
null
null
update.py
boost/bucket-antivirus-function
6eb93406e28f81a4c612f0dec29670451e0c5589
[ "Apache-2.0" ]
1
2020-07-16T12:47:24.000Z
2020-07-16T12:47:24.000Z
# -*- coding: utf-8 -*- # Upside Travel, 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...
39.8
87
0.719366
import os import boto3 import clamav from common import AV_DEFINITION_PATH from common import AV_DEFINITION_S3_BUCKET from common import AV_DEFINITION_S3_PREFIX from common import CLAMAVLIB_PATH from common import get_timestamp import shutil def lambda_handler(event, context): s3 = boto3.resource...
true
true
f72aeddbd79707ad743350eba5e76f34ba47af5c
15,728
py
Python
ssd.py
tristanmooo/ssd_keras
e4be1dae086e91a81b020787f94560836379dc68
[ "MIT" ]
null
null
null
ssd.py
tristanmooo/ssd_keras
e4be1dae086e91a81b020787f94560836379dc68
[ "MIT" ]
null
null
null
ssd.py
tristanmooo/ssd_keras
e4be1dae086e91a81b020787f94560836379dc68
[ "MIT" ]
null
null
null
"""Keras implementation of SSD.""" import keras.backend as K from keras.layers import Activation from keras.layers import AtrousConvolution2D from keras.layers import Convolution2D from keras.layers import Dense from keras.layers import Flatten from keras.layers import GlobalAveragePooling2D from keras.layers import I...
51.398693
127
0.532363
import keras.backend as K from keras.layers import Activation from keras.layers import AtrousConvolution2D from keras.layers import Convolution2D from keras.layers import Dense from keras.layers import Flatten from keras.layers import GlobalAveragePooling2D from keras.layers import Input from keras.layers import MaxPo...
true
true
f72aedf20d5a4dd130832d24767e5a8c5c2c559a
850
py
Python
test/record/parser/test_response_whois_nic_ve_property_nameservers_missing.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
test/record/parser/test_response_whois_nic_ve_property_nameservers_missing.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
test/record/parser/test_response_whois_nic_ve_property_nameservers_missing.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
# This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.ve/property_nameservers_missing # # and regenerate the tests with the following script # # $ scripts/generate_tests.py # from nose.tools import * from dateutil.parser im...
31.481481
94
0.711765
from nose.tools import * from dateutil.parser import parse as time_parse import yawhois class TestWhoisNicVePropertyNameserversMissing(object): def setUp(self): fixture_path = "spec/fixtures/responses/whois.nic.ve/property_nameservers_missing.txt" host = "whois.nic.ve" p...
true
true
f72aee673e41aaa5710037678b883636f5df28d7
7,947
py
Python
src/python/pants/backend/python/lint/pylint/rules.py
danxmoran/pants
7fafd7d789747c9e6a266847a0ccce92c3fa0754
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/lint/pylint/rules.py
danxmoran/pants
7fafd7d789747c9e6a266847a0ccce92c3fa0754
[ "Apache-2.0" ]
22
2022-01-27T09:59:50.000Z
2022-03-30T07:06:49.000Z
src/python/pants/backend/python/lint/pylint/rules.py
danxmoran/pants
7fafd7d789747c9e6a266847a0ccce92c3fa0754
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations from dataclasses import dataclass from typing import Tuple from pants.backend.python.lint.pylint.subsystem import ( Pylint, PylintFieldSet, ...
35.959276
100
0.707059
from __future__ import annotations from dataclasses import dataclass from typing import Tuple from pants.backend.python.lint.pylint.subsystem import ( Pylint, PylintFieldSet, PylintFirstPartyPlugins, ) from pants.backend.python.subsystems.setup import PythonSetup from pants.backend.python.util_rules im...
true
true
f72aef2c46434bd7fee98942b7dd5f4091b26225
9,102
py
Python
homeassistant/components/philips_js/media_player.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
6
2020-07-18T16:33:25.000Z
2021-09-26T09:52:04.000Z
homeassistant/components/philips_js/media_player.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
47
2020-07-23T07:14:33.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/philips_js/media_player.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
5
2020-03-29T00:29:13.000Z
2021-09-06T20:58:40.000Z
"""Media Player component to integrate TVs exposing the Joint Space API.""" from datetime import timedelta import logging from haphilipsjs import PhilipsTV import voluptuous as vol from homeassistant.components.media_player import PLATFORM_SCHEMA, MediaPlayerEntity from homeassistant.components.media_player.const imp...
30.854237
88
0.64777
from datetime import timedelta import logging from haphilipsjs import PhilipsTV import voluptuous as vol from homeassistant.components.media_player import PLATFORM_SCHEMA, MediaPlayerEntity from homeassistant.components.media_player.const import ( MEDIA_TYPE_CHANNEL, SUPPORT_NEXT_TRACK, SUPPORT_PLAY_MEDIA...
true
true
f72aef7afd8a21811ad53f8b289714ccd5098693
8,333
py
Python
genie/assay.py
veo-ibd/Genie
735e3aa0dc71aab0c404fd0cb3a34c8e1d9784c2
[ "MIT" ]
null
null
null
genie/assay.py
veo-ibd/Genie
735e3aa0dc71aab0c404fd0cb3a34c8e1d9784c2
[ "MIT" ]
null
null
null
genie/assay.py
veo-ibd/Genie
735e3aa0dc71aab0c404fd0cb3a34c8e1d9784c2
[ "MIT" ]
1
2022-01-20T16:33:19.000Z
2022-01-20T16:33:19.000Z
import os import logging import subprocess import yaml import pandas as pd from .example_filetype_format import FileTypeFormat from . import process_functions logger = logging.getLogger(__name__) class Assayinfo(FileTypeFormat): ''' Assay information file type ''' _fileType = "assayinfo" _proc...
36.388646
89
0.582503
import os import logging import subprocess import yaml import pandas as pd from .example_filetype_format import FileTypeFormat from . import process_functions logger = logging.getLogger(__name__) class Assayinfo(FileTypeFormat): _fileType = "assayinfo" _process_kwargs = ["newPath", "databaseSynId"] d...
true
true
f72af06f509cb3b16be313e070fe087431a96b9c
1,550
py
Python
dlfairness/other/get_weight/alm.py
lin-tan/fairness-variance
7f6aee23160707ffe78f429e5d960022ea1c9fe4
[ "BSD-3-Clause" ]
null
null
null
dlfairness/other/get_weight/alm.py
lin-tan/fairness-variance
7f6aee23160707ffe78f429e5d960022ea1c9fe4
[ "BSD-3-Clause" ]
null
null
null
dlfairness/other/get_weight/alm.py
lin-tan/fairness-variance
7f6aee23160707ffe78f429e5d960022ea1c9fe4
[ "BSD-3-Clause" ]
null
null
null
import argparse import pandas as pd import json import pickle import numpy as np from pathlib import Path from scipy.special import softmax import shutil parser = argparse.ArgumentParser() parser.add_argument('--config', type=str) parser.add_argument('--raw_result_dir', type=str) parser.add_argument('--output_dir', ty...
35.227273
124
0.570323
import argparse import pandas as pd import json import pickle import numpy as np from pathlib import Path from scipy.special import softmax import shutil parser = argparse.ArgumentParser() parser.add_argument('--config', type=str) parser.add_argument('--raw_result_dir', type=str) parser.add_argument('--output_dir', ty...
true
true
f72af113f201219d494c2ae51b9d0c0fae085aeb
925
py
Python
Codefights/arcade/intro/level-7/33.stringsRearrangement/Python/solution1.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
7
2017-09-20T16:40:39.000Z
2021-08-31T18:15:08.000Z
Codefights/arcade/intro/level-7/33.stringsRearrangement/Python/solution1.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
Codefights/arcade/intro/level-7/33.stringsRearrangement/Python/solution1.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
# Python3 def diffOne(a, b): count = 0 for i in range(len(a)): if a[i] != b[i]: count += 1 if count == 2: return False return bool(count) def func(inputArray, curr): if len(inputArray) == 1: return diffOne(inputArray[0], curr) for i in range(len(inpu...
30.833333
73
0.572973
def diffOne(a, b): count = 0 for i in range(len(a)): if a[i] != b[i]: count += 1 if count == 2: return False return bool(count) def func(inputArray, curr): if len(inputArray) == 1: return diffOne(inputArray[0], curr) for i in range(len(inputArray)):...
true
true
f72af114783cb0a76af49c20e78ca72551409642
1,378
py
Python
setup.py
jamesgregson/easy_image_io
4b5af29f3ccc37e4b10fbdc1e18d508ed04b882d
[ "MIT" ]
1
2017-08-17T11:59:45.000Z
2017-08-17T11:59:45.000Z
setup.py
jamesgregson/easy_image_io
4b5af29f3ccc37e4b10fbdc1e18d508ed04b882d
[ "MIT" ]
null
null
null
setup.py
jamesgregson/easy_image_io
4b5af29f3ccc37e4b10fbdc1e18d508ed04b882d
[ "MIT" ]
null
null
null
from setuptools import setup, Extension import numpy import os import config def find(name, path): for root, dirs, files in os.walk(path): if name in files: return os.path.join(root, name) return ''; print('locating directories...') defines = [ ('MAJOR_VERSION',0),('MINOR_VERSION',1) ...
30.622222
74
0.650218
from setuptools import setup, Extension import numpy import os import config def find(name, path): for root, dirs, files in os.walk(path): if name in files: return os.path.join(root, name) return ''; print('locating directories...') defines = [ ('MAJOR_VERSION',0),('MINOR_VERSION',1) ...
true
true
f72af1e60284b4758cddcb59383f494df80a1a1a
148,700
py
Python
all/emojitations/data/hy.py
idleberg/sublime-emojitations
b2b4e8ce2c33ed0f6b8d6db6085e21da4e8d895b
[ "MIT" ]
6
2016-08-31T14:42:36.000Z
2021-09-05T23:55:47.000Z
all/emojitations/data/hy.py
idleberg/sublime-emojitations
b2b4e8ce2c33ed0f6b8d6db6085e21da4e8d895b
[ "MIT" ]
1
2016-10-20T10:52:06.000Z
2016-10-20T18:47:19.000Z
all/emojitations/data/hy.py
idleberg/sublime-emojitations
b2b4e8ce2c33ed0f6b8d6db6085e21da4e8d895b
[ "MIT" ]
5
2016-08-31T14:48:11.000Z
2021-09-05T23:55:33.000Z
from emojitations.emojitypes import EmojiAnnotations emoji = [ EmojiAnnotations(emoji='😀', codepoints=(128512,), name='ծիծաղող դեմք', slug='ծիծաղող_դեմք', annotations=frozenset({'դեմք', 'քմծիծաղել'})), EmojiAnnotations(emoji='😁', codepoints=(128513,), name='ծիծաղող դեմք ժպտացող աչքերով', slug='ծիծաղող_դեմք_ժպտացո...
154.573805
252
0.714472
from emojitations.emojitypes import EmojiAnnotations emoji = [ EmojiAnnotations(emoji='😀', codepoints=(128512,), name='ծիծաղող դեմք', slug='ծիծաղող_դեմք', annotations=frozenset({'դեմք', 'քմծիծաղել'})), EmojiAnnotations(emoji='😁', codepoints=(128513,), name='ծիծաղող դեմք ժպտացող աչքերով', slug='ծիծաղող_դեմք_ժպտացո...
true
true
f72af208934e1a6893d8de9bece97fef4e04f823
68,824
py
Python
spec/API_specification/array_api/elementwise_functions.py
oleksandr-pavlyk/array-api
34aa9251bec8e53d8e7f4330f0b2b6221b3f6dcb
[ "MIT" ]
null
null
null
spec/API_specification/array_api/elementwise_functions.py
oleksandr-pavlyk/array-api
34aa9251bec8e53d8e7f4330f0b2b6221b3f6dcb
[ "MIT" ]
null
null
null
spec/API_specification/array_api/elementwise_functions.py
oleksandr-pavlyk/array-api
34aa9251bec8e53d8e7f4330f0b2b6221b3f6dcb
[ "MIT" ]
null
null
null
from ._types import array def abs(x: array, /) -> array: """ Calculates the absolute value for each element ``x_i`` of the input array ``x`` (i.e., the element-wise result has the same magnitude as the respective element in ``x`` but has positive sign). .. note:: For signed integer data types, the ...
49.407035
614
0.621527
from ._types import array def abs(x: array, /) -> array: def acos(x: array, /) -> array: def acosh(x: array, /) -> array: def add(x1: array, x2: array, /) -> array: def asin(x: array, /) -> array: def asinh(x: array, /) -> array: def atan(x: array, /) -> array: def atan2(x1: array, x2: array, /) -> array: def ...
true
true
f72af3b77a6c41b7fa62f8cf773835380670f57a
130
py
Python
cwlkernel/__main__.py
codacy-badger/CWLJNIKernel
89c830d2ab300f3775e4e49cfc2d0fe894170f5e
[ "Apache-2.0" ]
null
null
null
cwlkernel/__main__.py
codacy-badger/CWLJNIKernel
89c830d2ab300f3775e4e49cfc2d0fe894170f5e
[ "Apache-2.0" ]
null
null
null
cwlkernel/__main__.py
codacy-badger/CWLJNIKernel
89c830d2ab300f3775e4e49cfc2d0fe894170f5e
[ "Apache-2.0" ]
null
null
null
from ipykernel.kernelapp import IPKernelApp from .CWLKernel import CWLKernel IPKernelApp.launch_instance(kernel_class=CWLKernel)
26
51
0.876923
from ipykernel.kernelapp import IPKernelApp from .CWLKernel import CWLKernel IPKernelApp.launch_instance(kernel_class=CWLKernel)
true
true
f72af4bbb77cd40f08c0addf4a50faf422264aa8
7,875
py
Python
TorchRay/torchray/benchmark/evaluate_imagenet_gradcam_energy_inside_bbox.py
UMBCvision/Consistent-Explanations-by-Contrastive-Learning
589ff89cbcc96a1d8bd8d5b7bd7a785448ed2de3
[ "MIT" ]
null
null
null
TorchRay/torchray/benchmark/evaluate_imagenet_gradcam_energy_inside_bbox.py
UMBCvision/Consistent-Explanations-by-Contrastive-Learning
589ff89cbcc96a1d8bd8d5b7bd7a785448ed2de3
[ "MIT" ]
null
null
null
TorchRay/torchray/benchmark/evaluate_imagenet_gradcam_energy_inside_bbox.py
UMBCvision/Consistent-Explanations-by-Contrastive-Learning
589ff89cbcc96a1d8bd8d5b7bd7a785448ed2de3
[ "MIT" ]
null
null
null
import argparse import time import numpy as np import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim import torch.utils.data.distributed import torchvision.transforms as transforms import resnet_multigpu_cgc as resnet import cv2 import datasets as pointing_d...
36.971831
112
0.616381
import argparse import time import numpy as np import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim import torch.utils.data.distributed import torchvision.transforms as transforms import resnet_multigpu_cgc as resnet import cv2 import datasets as pointing_d...
true
true
f72af5153bd9f88566e3d6863c7c6bad63faba5c
558
py
Python
var_global_local.py
Spy142/python_lesson_4
1539576301c2bf61be803be7846c9278f350a0f3
[ "MIT" ]
null
null
null
var_global_local.py
Spy142/python_lesson_4
1539576301c2bf61be803be7846c9278f350a0f3
[ "MIT" ]
null
null
null
var_global_local.py
Spy142/python_lesson_4
1539576301c2bf61be803be7846c9278f350a0f3
[ "MIT" ]
1
2020-09-09T09:27:06.000Z
2020-09-09T09:27:06.000Z
global_var = 10 def function_example(local_var_1, local_var_2): print(local_var_1, local_var_2, global_var) function_example(11, 12) def function_example_1(local_var_1, local_var_2): global global_var global_var = 20 print(local_var_1, local_var_2, global_var, id(global_var)) function_example_1(11...
16.909091
63
0.702509
global_var = 10 def function_example(local_var_1, local_var_2): print(local_var_1, local_var_2, global_var) function_example(11, 12) def function_example_1(local_var_1, local_var_2): global global_var global_var = 20 print(local_var_1, local_var_2, global_var, id(global_var)) function_example_1(11...
true
true