hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
7fb8436c321cd41d538c60fc97d0a72987f9c800
1,837
py
Python
app.py
dev-ng/report-text-extraction
1a476bdd3c5d835ccdf736588184b014bd8a20f1
[ "BSD-3-Clause" ]
null
null
null
app.py
dev-ng/report-text-extraction
1a476bdd3c5d835ccdf736588184b014bd8a20f1
[ "BSD-3-Clause" ]
null
null
null
app.py
dev-ng/report-text-extraction
1a476bdd3c5d835ccdf736588184b014bd8a20f1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- import os from flask import Flask, request, jsonify, send_from_directory, redirect # , send_file from flask_cors import CORS from flask_httpauth import HTTPBasicAuth import lng import pdf import storage import services app = Flask(__name__) auth = HTTPBasicAuth() CORS(app) ...
26.623188
105
0.686445
0
0
0
0
1,353
0.736527
0
0
512
0.278715
7fb884cdf3b199693369a238fa941c8032007550
510
py
Python
205-isomorphic-strings/205-isomorphic-strings.py
marzy-bn/Leetcode_2022
07d6b9050279e82f610ed4a54209b33db3e3f8f9
[ "MIT" ]
null
null
null
205-isomorphic-strings/205-isomorphic-strings.py
marzy-bn/Leetcode_2022
07d6b9050279e82f610ed4a54209b33db3e3f8f9
[ "MIT" ]
null
null
null
205-isomorphic-strings/205-isomorphic-strings.py
marzy-bn/Leetcode_2022
07d6b9050279e82f610ed4a54209b33db3e3f8f9
[ "MIT" ]
null
null
null
class Solution: def isIsomorphic(self, s: str, t: str) -> bool: lookup = {} out = [] i = 0 for l1 in s: if l1 not in lookup: lookup[l1] = i i += 1 out.append(lookup[l1]) lookup2 = {} i = 0 out2 =...
24.285714
51
0.366667
497
0.97451
0
0
0
0
0
0
0
0
7fb891be986425209fac4babd0667c2c41294a2b
683
py
Python
setup.py
simon-weber/kleroteria
750ddf926ad0c4ab993bdde5c2f05edc1c2a2ba5
[ "Apache-2.0" ]
6
2020-12-01T01:41:07.000Z
2021-03-10T05:18:22.000Z
setup.py
simon-weber/kleroteria
750ddf926ad0c4ab993bdde5c2f05edc1c2a2ba5
[ "Apache-2.0" ]
null
null
null
setup.py
simon-weber/kleroteria
750ddf926ad0c4ab993bdde5c2f05edc1c2a2ba5
[ "Apache-2.0" ]
null
null
null
from codecs import open import re from setuptools import setup, find_packages setup( name='kleroteria', # this version doesn't really mean anything since this ships as an app. # it's also hardcoded in the requirements files. version='0.0.1', description='An email lottery and spiritual successor to ...
23.551724
77
0.660322
0
0
0
0
0
0
0
0
339
0.49634
7fb8a2d01a0b8780de371becc7f40508be277d45
8,596
py
Python
Algorithms/Off-Policy/DDPG-TD3/main.py
baturaysaglam/DISCOVER
423158c84a5935ca5755ccad06ea5fe20fb57d76
[ "MIT" ]
null
null
null
Algorithms/Off-Policy/DDPG-TD3/main.py
baturaysaglam/DISCOVER
423158c84a5935ca5755ccad06ea5fe20fb57d76
[ "MIT" ]
null
null
null
Algorithms/Off-Policy/DDPG-TD3/main.py
baturaysaglam/DISCOVER
423158c84a5935ca5755ccad06ea5fe20fb57d76
[ "MIT" ]
null
null
null
import argparse import os import socket import gym import numpy as np import torch import DDPG import TD3 import DISCOVER_DDPG import DISCOVER_TD3 import utils # DDPG tuned hyper-parameters are imported from # OpenAI Baselines3 Zoo: https://github.com/DLR-RM/rl-baselines3-zoo def hyper_parameter_dict_DDPG(args): ...
40.168224
136
0.620405
0
0
0
0
0
0
0
0
2,769
0.322127
7fbb4e52d64906788fb583d0d26e7df5468dcdca
1,590
py
Python
setup.py
PlaidCloud/sqlalchemy-greenplum
b40beeee8b775290b262d3b9989e8faeba8b2d20
[ "BSD-3-Clause" ]
6
2019-05-10T18:31:05.000Z
2021-09-08T16:59:46.000Z
setup.py
PlaidCloud/sqlalchemy-greenplum
b40beeee8b775290b262d3b9989e8faeba8b2d20
[ "BSD-3-Clause" ]
2
2018-06-04T23:28:16.000Z
2022-03-08T14:20:14.000Z
setup.py
PlaidCloud/sqlalchemy-greenplum
b40beeee8b775290b262d3b9989e8faeba8b2d20
[ "BSD-3-Clause" ]
1
2019-06-13T10:12:44.000Z
2019-06-13T10:12:44.000Z
import os from setuptools import setup, find_packages source_location = os.path.abspath(os.path.dirname(__file__)) def get_version(): with open(os.path.join(source_location, "VERSION")) as version: return version.readline().strip() setup( name="sqlalchemy-greenplum", version=get_version(), li...
33.829787
78
0.648428
0
0
0
0
0
0
0
0
851
0.53522
7fbd170ddca2f532e47d512537a2706fb3db9b79
4,976
py
Python
src/cray/cfs/operator/__main__.py
Cray-HPE/cfs-operator
16cd12155ba52b89e504ed668c49b544b92d3794
[ "MIT" ]
null
null
null
src/cray/cfs/operator/__main__.py
Cray-HPE/cfs-operator
16cd12155ba52b89e504ed668c49b544b92d3794
[ "MIT" ]
2
2021-12-16T19:29:28.000Z
2022-03-02T22:38:35.000Z
src/cray/cfs/operator/__main__.py
Cray-HPE/cfs-operator
16cd12155ba52b89e504ed668c49b544b92d3794
[ "MIT" ]
1
2021-11-10T22:28:36.000Z
2021-11-10T22:28:36.000Z
#!/usr/bin/env python # # MIT License # # (C) Copyright 2019-2022 Hewlett Packard Enterprise Development LP # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including wi...
33.395973
94
0.712018
0
0
0
0
0
0
0
0
2,475
0.497387
7fbd6c101c88c86adca08569b698ed439f1e762d
25,986
py
Python
disco_aws_automation/disco_metanetwork.py
amplifylitco/asiaq
a1a292f6e9cbf32a30242405e4947b17910e5369
[ "BSD-2-Clause" ]
27
2016-03-08T16:50:22.000Z
2018-11-26T06:33:25.000Z
disco_aws_automation/disco_metanetwork.py
amplifylitco/asiaq
a1a292f6e9cbf32a30242405e4947b17910e5369
[ "BSD-2-Clause" ]
202
2016-03-08T17:13:08.000Z
2019-02-01T00:49:06.000Z
disco_aws_automation/disco_metanetwork.py
amplify-education/asiaq
fb6004bc4da0acef40e7bc18b148db4f72fa2f32
[ "BSD-2-Clause" ]
2
2016-03-17T18:52:37.000Z
2016-10-06T20:36:37.000Z
""" Network abstraction """ import logging from random import choice from netaddr import IPNetwork, IPAddress from boto.ec2.networkinterface import ( NetworkInterfaceSpecification, NetworkInterfaceCollection ) from boto.exception import EC2ResponseError from boto.vpc import VPCConnection import boto3 from di...
42.881188
109
0.619949
25,311
0.974024
0
0
3,357
0.129185
0
0
6,563
0.252559
7fbda92d5e5b22dc691a6f5f033c42ec9d5340cb
602
py
Python
examples/docs/example1.py
jzuhone/xija
1e423d0c48056cc4ea9e4993d28e34794c1420fa
[ "BSD-3-Clause" ]
2
2016-01-05T19:20:43.000Z
2021-06-04T08:23:08.000Z
examples/docs/example1.py
jzuhone/xija
1e423d0c48056cc4ea9e4993d28e34794c1420fa
[ "BSD-3-Clause" ]
61
2015-02-24T02:27:11.000Z
2022-03-23T13:52:15.000Z
examples/docs/example1.py
jzuhone/xija
1e423d0c48056cc4ea9e4993d28e34794c1420fa
[ "BSD-3-Clause" ]
1
2016-01-04T21:08:17.000Z
2016-01-04T21:08:17.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Example with a single node (ACA CCD temperature) with solar heating (2 bins). """ import xija name = __file__[:-3] model = xija.XijaModel(name, start='2015:001', stop='2015:050') model.add(xija.Node, 'aacccdpt') model.add(xija.Pitch) model.add(xi...
20.066667
67
0.607973
0
0
0
0
0
0
0
0
223
0.370432
7fbe5ab33f430353b7e3d2a97fe210687b0799f6
856
py
Python
Flask/Graph/flask_graph.py
stanman71/Python
fe442e421362b22f61d05235e835a568d9ce3aef
[ "MIT" ]
1
2019-02-18T18:56:07.000Z
2019-02-18T18:56:07.000Z
Flask/Graph/flask_graph.py
stanman71/Python
fe442e421362b22f61d05235e835a568d9ce3aef
[ "MIT" ]
null
null
null
Flask/Graph/flask_graph.py
stanman71/Python
fe442e421362b22f61d05235e835a568d9ce3aef
[ "MIT" ]
null
null
null
# https://technovechno.com/creating-graphs-in-python-using-matplotlib-flask-framework-pythonanywhere/ # https://stackoverflow.com/questions/50728328/python-how-to-show-matplotlib-in-flask from flask import Flask, render_template from graph import build_graph app = Flask(__name__) @app.route('/') # Change U...
27.612903
102
0.625
0
0
0
0
492
0.574766
0
0
268
0.313084
7fc041998c5f911ec0835b904ff421afbc6ae394
594
py
Python
webapp/extensions.py
openbikebox/open-bike-box-connect
ed153dd191c75810cbd2d9b74aee2962380a54d0
[ "MIT" ]
1
2021-04-07T18:42:41.000Z
2021-04-07T18:42:41.000Z
webapp/extensions.py
openbikebox/open-bike-box-connect
ed153dd191c75810cbd2d9b74aee2962380a54d0
[ "MIT" ]
null
null
null
webapp/extensions.py
openbikebox/open-bike-box-connect
ed153dd191c75810cbd2d9b74aee2962380a54d0
[ "MIT" ]
1
2021-04-07T18:42:55.000Z
2021-04-07T18:42:55.000Z
# encoding: utf-8 """ open booking connect Copyright (c) 2021, binary butterfly GmbH Use of this source code is governed by an MIT-style license that can be found in the LICENSE file. """ from .common.database import QuartDatabase db = QuartDatabase() from .common.logger import Logger logger = Logger() from .common...
22.846154
98
0.781145
0
0
0
0
0
0
0
0
208
0.350168
f68110d06e89b1eedf0ec730b2d3342465b0961c
2,687
py
Python
inventory-check.py
jwnichols3/s3-batch-ops-restore-status-check
0331cdbf68f5b7dc71042aece8d128af4cd523f0
[ "Apache-2.0" ]
null
null
null
inventory-check.py
jwnichols3/s3-batch-ops-restore-status-check
0331cdbf68f5b7dc71042aece8d128af4cd523f0
[ "Apache-2.0" ]
null
null
null
inventory-check.py
jwnichols3/s3-batch-ops-restore-status-check
0331cdbf68f5b7dc71042aece8d128af4cd523f0
[ "Apache-2.0" ]
null
null
null
import argparse import boto3 from botocore.exceptions import ClientError from urllib.parse import unquote import time from smart_open import open import os import sys s3 = boto3.resource('s3') parser = argparse.ArgumentParser( description="Analyze Inventory Files") parser.add_argument('--inventory_file', '-i', ...
33.5875
226
0.694827
0
0
0
0
0
0
0
0
1,051
0.391143
f6827b188401595203a70b0eec5054bb98bd151d
999
py
Python
source/faker_extensions/tattoo_provider.py
UKHomeOffice/PythonFakerExtensions
7b515956e36608a9344ab2a8a57b48387a1be54c
[ "MIT" ]
null
null
null
source/faker_extensions/tattoo_provider.py
UKHomeOffice/PythonFakerExtensions
7b515956e36608a9344ab2a8a57b48387a1be54c
[ "MIT" ]
null
null
null
source/faker_extensions/tattoo_provider.py
UKHomeOffice/PythonFakerExtensions
7b515956e36608a9344ab2a8a57b48387a1be54c
[ "MIT" ]
1
2021-04-11T09:14:48.000Z
2021-04-11T09:14:48.000Z
from enum import Enum from random import randint from faker import Faker from faker_extensions.abstract_providers import WeightedProvider from faker_extensions.common_categories import Gender from faker_extensions.distinguishing_features_provider import BodyArea class TattooProvider(WeightedProvider): """ Eye we...
27
74
0.704705
509
0.50951
0
0
0
0
0
0
156
0.156156
f6871130aca8bc035570cfce18414c9e75c78265
238
py
Python
lpthw/ex15p2.py
jaredmanning/learning
1d1767ea78a8f9f72275b18147d47bfc44a1696e
[ "MIT" ]
null
null
null
lpthw/ex15p2.py
jaredmanning/learning
1d1767ea78a8f9f72275b18147d47bfc44a1696e
[ "MIT" ]
null
null
null
lpthw/ex15p2.py
jaredmanning/learning
1d1767ea78a8f9f72275b18147d47bfc44a1696e
[ "MIT" ]
null
null
null
from sys import argv script, filename = argv # First we open the file that was created in the normal excercise textfile = open(filename) #Next we print its contents print textfile.read() # Now we close the damn thing textfile.close()
18.307692
65
0.760504
0
0
0
0
0
0
0
0
121
0.508403
f687363bbe027e7fee10fb9ed06c03c8bca72792
1,626
py
Python
dbas/helper/tests/test_query.py
tbsschroeder/dbas
9c86eccde65cd64bc5719573b3b8449d8f333e08
[ "MIT" ]
23
2017-05-18T13:33:51.000Z
2021-12-26T18:04:09.000Z
dbas/helper/tests/test_query.py
tbsschroeder/dbas
9c86eccde65cd64bc5719573b3b8449d8f333e08
[ "MIT" ]
8
2019-12-26T17:19:44.000Z
2020-05-28T15:38:31.000Z
dbas/helper/tests/test_query.py
tbsschroeder/dbas
9c86eccde65cd64bc5719573b3b8449d8f333e08
[ "MIT" ]
7
2017-09-27T11:15:42.000Z
2021-12-26T18:12:38.000Z
from dbas.database import DBDiscussionSession from dbas.database.discussion_model import ShortLinks from dbas.helper.query import set_user_language, generate_short_url from dbas.tests.utils import TestCaseWithConfig class QueryHelperTest(TestCaseWithConfig): def test_set_german_language(self): result = s...
36.954545
86
0.686962
1,407
0.865314
0
0
0
0
0
0
212
0.130381
f687ceae557a30b4c24e95330633294a15df8931
1,029
py
Python
src/lib/StandardSensorSweep.py
sredbull/steep-hooked
8a624927a22f39c728dc116e059ab1639daadbc1
[ "MIT" ]
null
null
null
src/lib/StandardSensorSweep.py
sredbull/steep-hooked
8a624927a22f39c728dc116e059ab1639daadbc1
[ "MIT" ]
16
2021-12-22T20:26:29.000Z
2022-03-01T00:08:04.000Z
src/lib/StandardSensorSweep.py
sredbull/steep-hooked
8a624927a22f39c728dc116e059ab1639daadbc1
[ "MIT" ]
null
null
null
from sensorSimulation import sweeper from System.Timers import Timer eventTimer = Timer(1000) sweepCadence = sweeper() sweepCadence.minValue = 0.0 sweepCadence.maxValue = 254.0 sweepCadence.sweepTime = 60 sweepCadence.constantTime = 5.0 eventCount = 1 logScriptEvent("Sweeping Instantaneous Power & Ins...
27.810811
74
0.782313
0
0
0
0
0
0
0
0
57
0.055286
f68b865589b413c178df9c90f4d9076655b75ea3
4,036
py
Python
hw2/test.py
zeynepCankara/NTU_DLCV2019
2dc44584ec7b9e1d84e688551eb8cef48d501b45
[ "MIT" ]
1
2022-01-17T14:28:46.000Z
2022-01-17T14:28:46.000Z
hw2/test.py
zeynepCankara/NTU_DLCV2019
2dc44584ec7b9e1d84e688551eb8cef48d501b45
[ "MIT" ]
null
null
null
hw2/test.py
zeynepCankara/NTU_DLCV2019
2dc44584ec7b9e1d84e688551eb8cef48d501b45
[ "MIT" ]
2
2021-11-08T19:05:57.000Z
2022-01-17T14:28:48.000Z
import os import parser import models import data import data_test import numpy as np import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from sklearn.metrics import accuracy_score import skimage from mean_iou_evaluate import mean_iou_score # import torch library import torch # model...
30.345865
106
0.557483
0
0
0
0
0
0
0
0
704
0.17443
f68c0aed306b7f3cb69cdebd512e4da33319782f
7,028
py
Python
config/custom_components/ir_fan/fan.py
Poeschl/home-assistant-config
380640bc46b14542866fbf8bbdc4218b2d58b55c
[ "MIT" ]
7
2020-05-29T11:54:36.000Z
2021-11-20T06:24:31.000Z
config/custom_components/ir_fan/fan.py
Poeschl/home-assistant-config
380640bc46b14542866fbf8bbdc4218b2d58b55c
[ "MIT" ]
null
null
null
config/custom_components/ir_fan/fan.py
Poeschl/home-assistant-config
380640bc46b14542866fbf8bbdc4218b2d58b55c
[ "MIT" ]
1
2022-02-17T03:13:52.000Z
2022-02-17T03:13:52.000Z
import logging import asyncio import voluptuous as vol import homeassistant.helpers.config_validation as cv from homeassistant.components.fan import ( FanEntity, PLATFORM_SCHEMA, SPEED_OFF, SUPPORT_SET_SPEED, SUPPORT_OSCILLATE, SPEED_LOW, SPEED_MEDIUM, SPEED_HIGH) from homeassistant.const import ( CONF_NAME, ...
33.788462
140
0.652675
5,743
0.81716
0
0
1,179
0.167758
3,791
0.539414
526
0.074843
f68c414cfe15c93050fbef9ed4e125294af5c073
2,405
py
Python
billingclient/v1/client.py
nubeliu/billingclient
f2539e211ca049f3ddc9ce5680932f8f5eff7434
[ "Apache-2.0" ]
1
2018-01-04T16:20:51.000Z
2018-01-04T16:20:51.000Z
billingclient/v1/client.py
nubeliu/billingclient
f2539e211ca049f3ddc9ce5680932f8f5eff7434
[ "Apache-2.0" ]
null
null
null
billingclient/v1/client.py
nubeliu/billingclient
f2539e211ca049f3ddc9ce5680932f8f5eff7434
[ "Apache-2.0" ]
null
null
null
# NubeliU Billing SDK # @autor: Sergio Colinas from stevedore import extension from billingclient import client as ckclient from billingclient.openstack.common.apiclient import client from billingclient.v1 import chart from billingclient.v1 import core from billingclient.v1 import metric from billingclient.v1.rating.g...
38.790323
74
0.664449
1,923
0.799584
0
0
0
0
0
0
591
0.245738
f68c7b6a1c337b78b3059bef1f2eeb2a9a2ad6e5
208
py
Python
stackoverflow/__init__.py
wereii/we-cogs
327ef21f0a777b7411bbe51f6df69ef46433f597
[ "MIT" ]
null
null
null
stackoverflow/__init__.py
wereii/we-cogs
327ef21f0a777b7411bbe51f6df69ef46433f597
[ "MIT" ]
1
2019-11-13T18:55:10.000Z
2019-11-13T18:55:10.000Z
stackoverflow/__init__.py
wereii/we-cogs
327ef21f0a777b7411bbe51f6df69ef46433f597
[ "MIT" ]
null
null
null
# This init is required for each cog. # Import your main class from the cog's folder. from .stackoverflow import StackOverflow def setup(bot): # Add the cog to the bot. bot.add_cog(StackOverflow())
23.111111
47
0.725962
0
0
0
0
0
0
0
0
109
0.524038
f68ee06b4403b24127d1bc436027460ec0d3f2b5
2,658
py
Python
Console/Module/ClassBroadcast.py
yangzhongtian001/PYCM
081e200cf53024c45d94f9896bafdde0e23e0aa4
[ "Apache-2.0" ]
29
2021-02-01T12:30:19.000Z
2022-03-24T13:40:34.000Z
Console/Module/ClassBroadcast.py
yangzhongtian001/PYCM
081e200cf53024c45d94f9896bafdde0e23e0aa4
[ "Apache-2.0" ]
4
2021-02-01T12:33:52.000Z
2021-11-06T02:27:21.000Z
Console/Module/ClassBroadcast.py
yangzhongtian001/PYCM
081e200cf53024c45d94f9896bafdde0e23e0aa4
[ "Apache-2.0" ]
18
2021-11-16T15:28:27.000Z
2022-03-17T00:09:42.000Z
from PyQt5.QtCore import QObject import socket import struct import base64 from Module.Packages import ClassBroadcastFlag class ClassBroadcast(QObject): current_ip = None socket_ip = None socket_port = None socket_buffer_size = None socket_obj = None def __init__(self, config): super(...
39.671642
100
0.701279
2,533
0.952972
0
0
0
0
0
0
206
0.077502
f6908dcaaa5d2842b23cd9c05cdda3c923e0e6a0
3,572
py
Python
main.py
berkurka/chameleon
ee84a5a7da1e49734ffd885606aa39db73e6ae9d
[ "MIT" ]
null
null
null
main.py
berkurka/chameleon
ee84a5a7da1e49734ffd885606aa39db73e6ae9d
[ "MIT" ]
null
null
null
main.py
berkurka/chameleon
ee84a5a7da1e49734ffd885606aa39db73e6ae9d
[ "MIT" ]
1
2020-11-16T01:07:33.000Z
2020-11-16T01:07:33.000Z
#!/usr/bin/env python # coding: utf-8 # In[ ]: # pip install pypdf2 # conda install -c conda-forge pypdf2 # In[ ]: import os import re import pandas as pd import PyPDF2 # In[ ]: INP_PATH = './input/' OUT_PATH = './output/' # In[ ]: def load_pdf_files(file_path:str): ''' Loads pdf files and into P...
22.049383
84
0.468085
0
0
0
0
0
0
0
0
1,215
0.340146
f690fdd47205b08324635e05a16d09bdf0637cc9
8,913
py
Python
pydyn/solvers/RungeKuttaFehlberg.py
rwl/PyDyn
87f89c63fdb1bc9449c05430dd4265eece771739
[ "Apache-2.0" ]
4
2017-04-12T05:19:19.000Z
2021-08-28T18:41:53.000Z
pydyn/solvers/RungeKuttaFehlberg.py
rwl/PyDyn
87f89c63fdb1bc9449c05430dd4265eece771739
[ "Apache-2.0" ]
null
null
null
pydyn/solvers/RungeKuttaFehlberg.py
rwl/PyDyn
87f89c63fdb1bc9449c05430dd4265eece771739
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2009 Stijn Cole # Copyright (C) 2010-2011 Richard Lincoln # # 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 require...
32.889299
131
0.556042
0
0
0
0
0
0
0
0
1,673
0.187703
f692b2b698a75b104d98d5b6025c0874f29e10b4
279
py
Python
ArticleSpider/utils/zhihu_login.py
zxjlm/ArticleSpider
0fdfa29733c1739ddb230cf15f9331ea2122905c
[ "MIT" ]
null
null
null
ArticleSpider/utils/zhihu_login.py
zxjlm/ArticleSpider
0fdfa29733c1739ddb230cf15f9331ea2122905c
[ "MIT" ]
null
null
null
ArticleSpider/utils/zhihu_login.py
zxjlm/ArticleSpider
0fdfa29733c1739ddb230cf15f9331ea2122905c
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- __author__ = 'harumonia' import requests import cookiejar as cookielib import re def zhihulogin(account,pwd): if re.match("1\d{10}",account): print("shoujihaomadenglu") url_post='https://www.zhihu.com/signin' req=requests.get()
18.6
47
0.666667
0
0
0
0
0
0
0
0
91
0.326165
f69362c8e53efb7e2fecf441d12805e528ccf267
188
py
Python
util/tokenizer/base_tokenizer.py
Kimgijoon/Product-recommendation-system
6163dc8ff46f8f4b003c13f56eb7ed30943d03b0
[ "Apache-2.0" ]
2
2021-04-03T13:32:55.000Z
2021-04-04T07:20:12.000Z
util/tokenizer/base_tokenizer.py
Kimgijoon/Product-recommendation-system
6163dc8ff46f8f4b003c13f56eb7ed30943d03b0
[ "Apache-2.0" ]
null
null
null
util/tokenizer/base_tokenizer.py
Kimgijoon/Product-recommendation-system
6163dc8ff46f8f4b003c13f56eb7ed30943d03b0
[ "Apache-2.0" ]
null
null
null
from abc import abstractmethod from typing import List class BaseTokenizer(object): """tokenizer meta class""" @abstractmethod def tokenize(self, text: str) -> List[str]: pass
18.8
45
0.723404
130
0.691489
0
0
70
0.37234
0
0
26
0.138298
f695a0f7bbf428a5741cd48621797ea600fe6aa3
1,898
py
Python
twitter/dbconnect.py
madeleinel/womentor
3623ced61a2ee81e9d403d4011e3830c36e50918
[ "MIT" ]
2
2017-03-16T09:11:54.000Z
2017-03-24T13:29:15.000Z
twitter/dbconnect.py
madeleinel/womentor
3623ced61a2ee81e9d403d4011e3830c36e50918
[ "MIT" ]
42
2017-03-12T10:08:18.000Z
2017-04-05T11:08:21.000Z
twitter/dbconnect.py
madeleinel/womentor
3623ced61a2ee81e9d403d4011e3830c36e50918
[ "MIT" ]
1
2017-04-03T17:12:37.000Z
2017-04-03T17:12:37.000Z
from configvars import database_url from sqlalchemy import * from sqlalchemy.orm import relationship from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm.session import sessionmaker engine = create_engine(database_url) Session = sessionmaker(bind=engine) session = Session() # # now session is a...
34.509091
78
0.721286
1,366
0.719705
0
0
0
0
0
0
338
0.178082
f696efa59729939ba926957507833fcd86d29ed3
288,902
py
Python
google/ads/google_ads/v6/proto/services/google_ads_service_pb2.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
1
2021-04-09T04:28:47.000Z
2021-04-09T04:28:47.000Z
google/ads/google_ads/v6/proto/services/google_ads_service_pb2.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v6/proto/services/google_ads_service_pb2.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v6/proto/services/google_ads_service.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from g...
89.3051
38,948
0.833279
0
0
0
0
0
0
0
0
98,954
0.342518
f69743b787b702578c7ba56ec9b8b5874bcafb55
6,668
py
Python
main.py
foobarbazblarg/subreddit-grabber
03d240c824e5dd810ccd40674df950f3e26d02c6
[ "MIT" ]
null
null
null
main.py
foobarbazblarg/subreddit-grabber
03d240c824e5dd810ccd40674df950f3e26d02c6
[ "MIT" ]
null
null
null
main.py
foobarbazblarg/subreddit-grabber
03d240c824e5dd810ccd40674df950f3e26d02c6
[ "MIT" ]
null
null
null
import praw import datetime from ConfigParser import ConfigParser import OAuth2Util import os import markdown import bleach import sys import mysql.connector from mysql.connector import errorcode reload(sys) sys.setdefaultencoding('utf8') config = ConfigParser() config.read("./subreddit-grabber.cfg") subredditName = ...
42.471338
275
0.673965
0
0
0
0
0
0
0
0
1,970
0.295441
f697747af011ec78b14bc18aa233c9ce0da6df30
205
py
Python
tests/unit/test_module.py
briancline/jmap
475198b5598c0fa4ae9c44d9dfcac88e36fe8ef1
[ "MIT" ]
6
2017-07-31T20:01:59.000Z
2021-07-10T21:48:11.000Z
tests/unit/test_module.py
briancline/jmap
475198b5598c0fa4ae9c44d9dfcac88e36fe8ef1
[ "MIT" ]
1
2017-05-13T07:30:00.000Z
2017-05-13T07:30:00.000Z
tests/unit/test_module.py
briancline/jmap
475198b5598c0fa4ae9c44d9dfcac88e36fe8ef1
[ "MIT" ]
3
2017-10-31T15:25:55.000Z
2020-12-10T16:58:52.000Z
import unittest import jmap class TestModule(unittest.TestCase): def test_module_semantic_version(self): ver_info = jmap.VERSION.split('.') self.assertGreaterEqual(len(ver_info), 3)
20.5
49
0.721951
173
0.843902
0
0
0
0
0
0
3
0.014634
f697902655c546a9b52d9b54de085df083209dfb
2,120
py
Python
app.py
zelihaerim/ToDoAppWithFlask
c4c904976a25e4781a6366ec753f2ac7774be2c3
[ "Apache-2.0" ]
null
null
null
app.py
zelihaerim/ToDoAppWithFlask
c4c904976a25e4781a6366ec753f2ac7774be2c3
[ "Apache-2.0" ]
null
null
null
app.py
zelihaerim/ToDoAppWithFlask
c4c904976a25e4781a6366ec753f2ac7774be2c3
[ "Apache-2.0" ]
null
null
null
from flask import Flask,render_template,request from flask.globals import request from flask.helpers import url_for from werkzeug.utils import redirect from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////Users/Zeliha/Desktop/TodoApp/todo.db' db = SQLAlchem...
32.121212
89
0.690566
382
0.179934
0
0
1,354
0.637777
0
0
752
0.354216
f697ec6fc787c238ea294d841019f5bb361224e4
4,558
py
Python
knn_kdtree.py
zhoucen/ml
8f0386f57597f3f25ff2e844f682325ed7d97f20
[ "MIT" ]
1
2015-06-17T04:30:40.000Z
2015-06-17T04:30:40.000Z
knn_kdtree.py
zhoucen/ml
8f0386f57597f3f25ff2e844f682325ed7d97f20
[ "MIT" ]
null
null
null
knn_kdtree.py
zhoucen/ml
8f0386f57597f3f25ff2e844f682325ed7d97f20
[ "MIT" ]
null
null
null
#coding=utf-8 import os import math import collections class KdNode(object): """docstring for KdNode""" def __init__(self, train_set): super(KdNode, self).__init__() self.train_set = train_set self.dot = None self.dimension = None self.left_set = None self.left_...
31.652778
126
0.529399
3,698
0.798015
0
0
0
0
0
0
233
0.050281
f697fcf33036f0447c00db52e0fcc8aab5a7c40c
3,488
py
Python
utils/build_nfr_dataset.py
chaiyujin/AudioDVP
1b7a6bc85bda6df16c9709d08d7b1415b449c584
[ "MIT" ]
200
2020-11-14T16:23:11.000Z
2022-03-31T17:40:37.000Z
utils/build_nfr_dataset.py
chaiyujin/AudioDVP
1b7a6bc85bda6df16c9709d08d7b1415b449c584
[ "MIT" ]
36
2020-11-15T14:17:51.000Z
2022-01-04T08:22:43.000Z
utils/build_nfr_dataset.py
chaiyujin/AudioDVP
1b7a6bc85bda6df16c9709d08d7b1415b449c584
[ "MIT" ]
42
2020-11-14T16:29:18.000Z
2022-03-20T01:16:39.000Z
""" Following https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix/blob/master/datasets/combine_A_and_B.py """ import os import cv2 import numpy as np from tqdm import tqdm import sys sys.path.append(".") from models import networks from options.options import Options from utils.util import create_dir, load_coef,...
39.191011
106
0.639335
0
0
0
0
0
0
0
0
453
0.129874
f698dad22020589950c8089c9875710976db064e
502
py
Python
lit_main.py
Mindful/gector
92d13263a9ccf402070ee1ec5825de1f8c28fc14
[ "Apache-2.0" ]
null
null
null
lit_main.py
Mindful/gector
92d13263a9ccf402070ee1ec5825de1f8c28fc14
[ "Apache-2.0" ]
null
null
null
lit_main.py
Mindful/gector
92d13263a9ccf402070ee1ec5825de1f8c28fc14
[ "Apache-2.0" ]
null
null
null
from lit_nlp import dev_server from lit_nlp import server_flags from absl import app from lit_classes import GectorBertModel, GeceProdigyData def main(_): models = {"gector": GectorBertModel('bert_0_gector.th')} datasets = {"test_data": GeceProdigyData('test_sample.jsonl')} # Start the LIT server. See s...
26.421053
78
0.741036
0
0
0
0
0
0
0
0
129
0.256972
f699061b2bbf5ff76fa79f4d51d6a690622f7110
666
py
Python
pyxrd/file_parsers/goniometer_parsers/__init__.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
27
2018-06-15T15:28:18.000Z
2022-03-10T12:23:50.000Z
pyxrd/file_parsers/goniometer_parsers/__init__.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
22
2018-06-14T08:29:16.000Z
2021-07-05T13:33:44.000Z
pyxrd/file_parsers/goniometer_parsers/__init__.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
8
2019-04-13T13:03:51.000Z
2021-06-19T09:29:11.000Z
# coding=UTF-8 # ex:ts=4:sw=4:et=on # Copyright (c) 2013, Mathijs Dumon # All rights reserved. # Complete license can be found in the LICENSE file. import zipfile from pyxrd.generic.io import get_case_insensitive_glob, COMPRESSION from pyxrd.file_parsers.json_parser import JSONParser from pyxrd.file_parsers.registr...
26.64
67
0.780781
222
0.333333
0
0
260
0.39039
0
0
248
0.372372
f69a0402d79e3e6e23987987a39cea442751a085
5,650
py
Python
src/genotype/mutagen/option.py
sash-a/CoDeepNEAT
3476078a48986107ea1fc1a7ab1b42a55ac4f62f
[ "MIT" ]
28
2019-10-18T06:44:00.000Z
2021-11-09T18:54:52.000Z
src/genotype/mutagen/option.py
sash-a/CoDeepNEAT
3476078a48986107ea1fc1a7ab1b42a55ac4f62f
[ "MIT" ]
2
2019-10-21T07:21:52.000Z
2022-01-12T22:34:03.000Z
src/genotype/mutagen/option.py
sash-a/CoDeepNEAT
3476078a48986107ea1fc1a7ab1b42a55ac4f62f
[ "MIT" ]
11
2019-07-01T13:01:32.000Z
2022-03-31T20:18:56.000Z
import random from typing import Dict, Any, Union, List from src.genotype.mutagen import mutagen as MutagenFile from src.genotype.mutagen.mutagen import Mutagen from src.genotype.neat.operators.mutators.mutation_report import MutationReport class _Null: """Default current value, allows for an option to be None""...
37.417219
120
0.641239
4,940
0.874336
0
0
0
0
0
0
871
0.154159
f69a6a8b42d76e0e9d08c5bd6c7c15447c9d0847
1,351
py
Python
solutions/0169-majority-element/majority-element.py
iFun/Project-G
d33b3b3c7bcee64f93dc2539fd9955a27f321d96
[ "MIT" ]
null
null
null
solutions/0169-majority-element/majority-element.py
iFun/Project-G
d33b3b3c7bcee64f93dc2539fd9955a27f321d96
[ "MIT" ]
null
null
null
solutions/0169-majority-element/majority-element.py
iFun/Project-G
d33b3b3c7bcee64f93dc2539fd9955a27f321d96
[ "MIT" ]
null
null
null
# Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. # # You may assume that the array is non-empty and the majority element always exist in the array. # # Example 1: # # # Input: [3,2,3] # Output: 3 # # Example 2: # # # Input: [2,2,1,1,1...
18.506849
129
0.592894
348
0.256071
0
0
0
0
0
0
953
0.701251
f69a7073c8aa756b577c30107b1f581b0badf39a
1,709
py
Python
servers/viewset.py
foundations/nodequery-server
f0ee517e17fbd15d1fc7f8ed83ede07539fe93c1
[ "MIT" ]
81
2021-01-05T14:30:23.000Z
2021-11-10T23:26:38.000Z
servers/viewset.py
foundations/nodequery-server
f0ee517e17fbd15d1fc7f8ed83ede07539fe93c1
[ "MIT" ]
2
2021-02-09T05:16:10.000Z
2021-02-26T02:21:11.000Z
servers/viewset.py
foundations/nodequery-server
f0ee517e17fbd15d1fc7f8ed83ede07539fe93c1
[ "MIT" ]
32
2021-01-05T15:23:20.000Z
2021-10-20T08:17:14.000Z
from django.http import Http404 from django.db.models import Q from rest_framework.response import Response from rest_framework import status, generics, viewsets from django_filters.rest_framework import DjangoFilterBackend # from rest_framework_filters.backends import DjangoFilterBackend as rsf_DjangoFilterBackend ...
37.152174
96
0.800468
1,200
0.667037
0
0
0
0
0
0
576
0.320178
f69b35574cfb6a7f842438c399bfb0ddf88909e6
3,972
py
Python
old_phase_gen.py
cthom055/gen_audio_rnn
bb244a538cf83ae283bc490d6f9f0d245f4e6cc0
[ "MIT" ]
1
2020-01-09T06:45:18.000Z
2020-01-09T06:45:18.000Z
old_phase_gen.py
cthom055/gen_audio_rnn
bb244a538cf83ae283bc490d6f9f0d245f4e6cc0
[ "MIT" ]
null
null
null
old_phase_gen.py
cthom055/gen_audio_rnn
bb244a538cf83ae283bc490d6f9f0d245f4e6cc0
[ "MIT" ]
null
null
null
#This python script acts a function library used by the other files to the generate phases. # coding: utf-8 # In[13]: #inport nessessary libraries. import os import numpy as np import librosa # In[9]: #Polar to read convertion of numpy matricies def polar2real(mag, angle): #Matrix of magnitudes * the exponent ...
43.173913
171
0.73716
0
0
0
0
0
0
0
0
2,529
0.636707
f69b801d1aad3f7c50691c620ba96ade26870d95
8,145
py
Python
kite-python/kite_pkgexploration/kite/pkgexploration/reflectutils.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
17
2022-01-10T11:01:50.000Z
2022-03-25T03:21:08.000Z
kite-python/kite_pkgexploration/kite/pkgexploration/reflectutils.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
1
2022-01-13T14:28:47.000Z
2022-01-13T14:28:47.000Z
kite-python/kite_pkgexploration/kite/pkgexploration/reflectutils.py
kiteco/kiteco-public
74aaf5b9b0592153b92f7ed982d65e15eea885e3
[ "BSD-3-Clause" ]
7
2022-01-07T03:58:10.000Z
2022-03-24T07:38:20.000Z
import inspect import logging import re import sys from .runtime.qualname import get_qualname from .runtime.decorated import get_decorated try: # py2/3 compatibility basestring except NameError: basestring = (str, bytes) try: import builtins except ImportError: import __builtin__ as builtins _PY3 =...
31.206897
130
0.641621
0
0
0
0
0
0
0
0
2,898
0.355801
f69d50b79bb2cf94bbd6f6e08bfe1cc9753de50a
3,929
py
Python
tests/st/ops/gpu/test_dropout_nd.py
httpsgithu/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
1
2022-02-23T09:13:43.000Z
2022-02-23T09:13:43.000Z
tests/st/ops/gpu/test_dropout_nd.py
949144093/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
null
null
null
tests/st/ops/gpu/test_dropout_nd.py
949144093/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
null
null
null
# Copyright 2021-2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
39.29
114
0.694833
424
0.107916
0
0
1,131
0.28786
0
0
1,204
0.306439
f69d983260154b7c587e7a2f65e955149432f5db
99
py
Python
CodeChef/Python Codes/TSORT.py
khaleeque-ansari/Online-Coding-Problems-Solutions-Python
c8378ccad88ce5f50239f82cf9569344e1b92f18
[ "Apache-2.0" ]
null
null
null
CodeChef/Python Codes/TSORT.py
khaleeque-ansari/Online-Coding-Problems-Solutions-Python
c8378ccad88ce5f50239f82cf9569344e1b92f18
[ "Apache-2.0" ]
null
null
null
CodeChef/Python Codes/TSORT.py
khaleeque-ansari/Online-Coding-Problems-Solutions-Python
c8378ccad88ce5f50239f82cf9569344e1b92f18
[ "Apache-2.0" ]
null
null
null
import sys n=int(raw_input()) a=[] a=map(int,sys.stdin) a.sort() for _ in a: print _
11
21
0.565657
0
0
0
0
0
0
0
0
0
0
f69f1fed5cdb673fcdaeff3944d87246ff0fa59c
1,846
py
Python
custom_components/envoystream/config_flow.py
PoppyPop/integration_envoystream
8faf951e30c9fae5cea1cf13a56255cd291dd569
[ "MIT" ]
null
null
null
custom_components/envoystream/config_flow.py
PoppyPop/integration_envoystream
8faf951e30c9fae5cea1cf13a56255cd291dd569
[ "MIT" ]
28
2022-01-26T18:22:37.000Z
2022-03-31T18:23:34.000Z
custom_components/envoystream/config_flow.py
PoppyPop/integration_envoystream
8faf951e30c9fae5cea1cf13a56255cd291dd569
[ "MIT" ]
null
null
null
"""Config flow for IRegul integration.""" from __future__ import annotations import logging from typing import Any import voluptuous as vol from homeassistant import config_entries from homeassistant.core import HomeAssistant from .const import CONF_HOST from .const import CONF_PASSWORD from .const import CONF_USERN...
27.969697
86
0.686891
937
0.507584
0
0
0
0
1,123
0.608342
338
0.183099
f69f531965456d98859d0057da7c70b698a88862
4,940
py
Python
controllers/vessel/vessel_vpn_update.py
gbf-labs/rh-api
317a812164ad8943ab638c06f61723cb928bfd12
[ "Apache-2.0" ]
null
null
null
controllers/vessel/vessel_vpn_update.py
gbf-labs/rh-api
317a812164ad8943ab638c06f61723cb928bfd12
[ "Apache-2.0" ]
6
2020-03-30T23:11:27.000Z
2022-03-12T00:21:45.000Z
controllers/vessel/vessel_vpn_update.py
gbf-labs/rh-api
317a812164ad8943ab638c06f61723cb928bfd12
[ "Apache-2.0" ]
null
null
null
# pylint: disable=too-many-arguments, too-many-locals, too-many-statements, too-many-instance-attributes, too-many-branches, no-member, no-name-in-module, anomalous-backslash-in-string, too-many-function-args, no-self-use """VPN Update""" import time import urllib.request from configparser import ConfigParser from...
31.666667
222
0.548583
4,356
0.881781
0
0
0
0
0
0
2,121
0.429352
f6a1ab7a5685a3961db0eeae7e99d46d7957d6a0
1,297
py
Python
d12p1.py
Maselkov/advent-of-code-2020
a719127ce21e4731ddb9132c8c7f42856c972220
[ "MIT" ]
null
null
null
d12p1.py
Maselkov/advent-of-code-2020
a719127ce21e4731ddb9132c8c7f42856c972220
[ "MIT" ]
null
null
null
d12p1.py
Maselkov/advent-of-code-2020
a719127ce21e4731ddb9132c8c7f42856c972220
[ "MIT" ]
null
null
null
import puzzleinput x = 0 y = 0 x_direction = 1 y_direction = 0 for line in puzzleinput.lines: action = line[0] value = int(line[1:]) if action == "F": x += x_direction * value y += y_direction * value if action == "N": y -= value if action == "S": y += value if a...
25.431373
36
0.428682
0
0
0
0
0
0
0
0
21
0.016191
f6a218a53ac1edd1067e3e1d89028beb187d4302
47
py
Python
football/__init__.py
Zebfred/DS-OOP-Review
e44577d145f40039457793caa484016443bb39c6
[ "MIT" ]
null
null
null
football/__init__.py
Zebfred/DS-OOP-Review
e44577d145f40039457793caa484016443bb39c6
[ "MIT" ]
null
null
null
football/__init__.py
Zebfred/DS-OOP-Review
e44577d145f40039457793caa484016443bb39c6
[ "MIT" ]
4
2019-12-04T22:35:09.000Z
2020-01-21T08:53:34.000Z
""" Still empty, but will keep you updated """
15.666667
39
0.659574
0
0
0
0
0
0
0
0
47
1
f6a2c7e0854b4bfb4bdf91f358afcc75ceac053b
167
py
Python
app.py
Pandelytics/pandelytics
5950d4a95595dadf076ac9270be0dbcdcfa59a1a
[ "Apache-2.0" ]
null
null
null
app.py
Pandelytics/pandelytics
5950d4a95595dadf076ac9270be0dbcdcfa59a1a
[ "Apache-2.0" ]
11
2020-04-02T22:36:36.000Z
2020-09-27T11:19:23.000Z
app.py
Pandelytics/pandelytics
5950d4a95595dadf076ac9270be0dbcdcfa59a1a
[ "Apache-2.0" ]
1
2020-10-07T15:48:06.000Z
2020-10-07T15:48:06.000Z
import json from pandelytics import search if __name__ == "__main__": news = search.search("jhu", "Data") if news: print(json.dumps(news, indent=4))
18.555556
41
0.652695
0
0
0
0
0
0
0
0
21
0.125749
f6a31c2011000a082736d9d587f09c391b1c8680
900
py
Python
5-python-dataviz-notebook/4-matplotlib_decorating_plots.py
reetasharma11/winter2020-code
6875ca13e4f3d2a95ad36dca386a3a87e8ed08f7
[ "MIT" ]
1
2020-02-11T04:29:14.000Z
2020-02-11T04:29:14.000Z
5-python-dataviz-notebook/4-matplotlib_decorating_plots.py
reetasharma11/winter2020-code
6875ca13e4f3d2a95ad36dca386a3a87e8ed08f7
[ "MIT" ]
null
null
null
5-python-dataviz-notebook/4-matplotlib_decorating_plots.py
reetasharma11/winter2020-code
6875ca13e4f3d2a95ad36dca386a3a87e8ed08f7
[ "MIT" ]
5
2020-01-18T21:22:04.000Z
2020-02-27T23:00:07.000Z
#!/usr/bin/env python3 import numpy as np import matplotlib.pyplot as plt import os linear = np.arange(1, 20) square = linear ** 2 log = np.log(linear) random = np.random.randint(0, 100, 20) fig, axes = plt.subplots(2, 1, figsize=(5, 5)) # In order to decorate plots we can set the title, the x/y label and the ticks...
27.272727
84
0.735556
0
0
0
0
0
0
0
0
419
0.465556
f6a5507a124cc84322328feab772d57c8ebeb1a8
772
py
Python
markdown2pdf/css_styles.py
simao-ferreira/markdown-resume
c01fd8700e40d2eda4ba7ea3a03be13b00d0709c
[ "MIT" ]
null
null
null
markdown2pdf/css_styles.py
simao-ferreira/markdown-resume
c01fd8700e40d2eda4ba7ea3a03be13b00d0709c
[ "MIT" ]
null
null
null
markdown2pdf/css_styles.py
simao-ferreira/markdown-resume
c01fd8700e40d2eda4ba7ea3a03be13b00d0709c
[ "MIT" ]
null
null
null
import os from settings import STYLES_DIR class CssStyles: bar_style = os.path.join(STYLES_DIR, "bar-style.css") divider_style = os.path.join(STYLES_DIR, "divider-style.css") simple_style = os.path.join(STYLES_DIR, "simple-style.css") default_style = simple_style @staticmethod def stylenames...
29.692308
69
0.651554
726
0.940415
0
0
477
0.617876
0
0
189
0.244819
f6a5f9427bcd35cf17e213bb60dc81bb58e7cdee
783
py
Python
forecast/util/univariate_forecast_item.py
jobine/smartAI-plugin
b19709315eccf553518fceed1b369be709b113ce
[ "MIT" ]
null
null
null
forecast/util/univariate_forecast_item.py
jobine/smartAI-plugin
b19709315eccf553518fceed1b369be709b113ce
[ "MIT" ]
null
null
null
forecast/util/univariate_forecast_item.py
jobine/smartAI-plugin
b19709315eccf553518fceed1b369be709b113ce
[ "MIT" ]
null
null
null
from common.util.constant import TIMESTAMP FORECAST_VALUE = 'forecastValue' CONFIDENCE = 'confidence' UPPER_BOUNDARY = 'upperBoundary' LOWER_BOUNDARY = 'lowerBoundary' class UnivariateForecastItem: def __init__(self, forecast_value, lower_boundary, upper_boundary, confidence, timestamp): self.forecast_val...
41.210526
116
0.739464
612
0.781609
0
0
0
0
0
0
76
0.097063
f6a60d0fa2163b6eee0c0cf66c93273831f0ea5e
33,075
py
Python
configuration_driver.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
null
null
null
configuration_driver.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
1
2019-10-22T21:28:31.000Z
2019-10-22T21:39:12.000Z
configuration_driver.py
bopopescu/Lauecollect
60ae2b05ea8596ba0decf426e37aeaca0bc8b6be
[ "MIT" ]
2
2019-06-06T15:06:46.000Z
2020-07-20T02:03:22.000Z
""" Data base save and recall motor positions Author: Friedrich Schotte Date created: 2013-11-29 Date last modified: 2019-05-28 """ __version__ = "4.1.2" # "%s.line%d.%s" % (..,int(row),..): ValueError: cannot convert float NaN to integer from logging import debug,info,warn,error import numpy numpy.warnings.filterwarn...
39.993954
106
0.641391
30,544
0.923477
540
0.016327
3,370
0.10189
0
0
6,558
0.198277
f6a6f92bdae1e2320d7606a320a1b644f61b3a4d
191
py
Python
python_tuto_variables.py
khinthandarkyaw98/Python_Practice
9b431129c79315a57dae81048a22bf85c4b5132c
[ "MIT" ]
null
null
null
python_tuto_variables.py
khinthandarkyaw98/Python_Practice
9b431129c79315a57dae81048a22bf85c4b5132c
[ "MIT" ]
null
null
null
python_tuto_variables.py
khinthandarkyaw98/Python_Practice
9b431129c79315a57dae81048a22bf85c4b5132c
[ "MIT" ]
null
null
null
# global variables x = "awesome" def myfunc(): print("Python is " + x) myfunc() print("Python is " + x) # Global Keyword def func(): global x x = "fantastic" func()
10.611111
25
0.560209
0
0
0
0
0
0
0
0
80
0.418848
f6a6f96660b59865f95a5c11e6f5b37b62d8c6b8
19,911
py
Python
glycan_profiling/composition_distribution_model/glycome_network_smoothing.py
mstim/glycresoft
1d305c42c7e6cba60326d8246e4a485596a53513
[ "Apache-2.0" ]
4
2019-04-26T15:47:57.000Z
2021-04-20T22:53:58.000Z
glycan_profiling/composition_distribution_model/glycome_network_smoothing.py
mstim/glycresoft
1d305c42c7e6cba60326d8246e4a485596a53513
[ "Apache-2.0" ]
8
2017-11-22T19:20:20.000Z
2022-02-14T01:49:58.000Z
glycan_profiling/composition_distribution_model/glycome_network_smoothing.py
mstim/glycresoft
1d305c42c7e6cba60326d8246e4a485596a53513
[ "Apache-2.0" ]
3
2017-11-21T18:05:28.000Z
2021-09-23T18:38:33.000Z
import numpy as np from glypy import GlycanComposition from glycan_profiling.database.composition_network import ( CompositionGraphNode, NeighborhoodWalker) from glycan_profiling.task import log_handle from .constants import ( DEFAULT_LAPLACIAN_REGULARIZATION, NORMALIZATION, DEFAULT_RHO, RESET_T...
46.412587
114
0.657626
17,078
0.857717
0
0
0
0
0
0
5,969
0.299784
f6a940ae1fea232392cf90b5597c48422a8248e7
626
py
Python
37_function.py
onowdev/python-selflearning
3d7245de0207a5bfcbce4f7adde60e7316b70a8e
[ "MIT" ]
null
null
null
37_function.py
onowdev/python-selflearning
3d7245de0207a5bfcbce4f7adde60e7316b70a8e
[ "MIT" ]
null
null
null
37_function.py
onowdev/python-selflearning
3d7245de0207a5bfcbce4f7adde60e7316b70a8e
[ "MIT" ]
null
null
null
# A function is a block of organized, reusable code that is used to perform a single, related action. # Functions provide better modularity for your application and a high degree of code reusing. # As you already know, Python gives you many built-in functions like print(), # etc. but you can also create your own func...
41.733333
102
0.758786
0
0
0
0
0
0
0
0
549
0.876997
f6ab1104eb009ad9680af17ef349cc7bccac8a09
204
py
Python
Inventario/baixa/urls.py
FuryAndRage/InventarioTeste
6ee92fc2e209863558082f8bd88be88dfaaa1c76
[ "Unlicense" ]
null
null
null
Inventario/baixa/urls.py
FuryAndRage/InventarioTeste
6ee92fc2e209863558082f8bd88be88dfaaa1c76
[ "Unlicense" ]
null
null
null
Inventario/baixa/urls.py
FuryAndRage/InventarioTeste
6ee92fc2e209863558082f8bd88be88dfaaa1c76
[ "Unlicense" ]
null
null
null
from django.urls import path from . import views app_name='baixa' urlpatterns = [ path('log/', views.log_baixa, name='log_baixa'), path('<int:pk>/produto/', views.baixa_produto, name='baixa_produto') ]
25.5
69
0.72549
0
0
0
0
0
0
0
0
58
0.284314
f6abd2bb70c830656d6dec419339541fc37671cc
97
py
Python
office365/sharepoint/lists/list_rule.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
null
null
null
office365/sharepoint/lists/list_rule.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
null
null
null
office365/sharepoint/lists/list_rule.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
null
null
null
from office365.sharepoint.base_entity import BaseEntity class SPListRule(BaseEntity): pass
16.166667
55
0.814433
38
0.391753
0
0
0
0
0
0
0
0
f6ad4eb8b29be724bdb073d946e7e0063a5425fb
95
py
Python
classTest.py
csitedexperts/Python2.xPractice
fd03ceebe920a76ca47aec3651a69ba5a1cc412b
[ "Apache-2.0" ]
3
2019-04-13T04:00:42.000Z
2020-10-02T01:14:42.000Z
classTest.py
csitedexperts/Python2.xPractice
fd03ceebe920a76ca47aec3651a69ba5a1cc412b
[ "Apache-2.0" ]
null
null
null
classTest.py
csitedexperts/Python2.xPractice
fd03ceebe920a76ca47aec3651a69ba5a1cc412b
[ "Apache-2.0" ]
2
2019-03-30T18:55:32.000Z
2020-05-10T16:30:34.000Z
class things(object): def test(hi): print "Hi" t = things() t.test("hello world")
13.571429
21
0.578947
58
0.610526
0
0
0
0
0
0
17
0.178947
f6ae515cfe79c68afb075360cf5f75341ab00831
1,497
py
Python
tests/test_wrappers.py
chrisbrake/aerial
6a33cf048820aab948dd24d5867e53f0f1eaa11d
[ "BSD-3-Clause" ]
null
null
null
tests/test_wrappers.py
chrisbrake/aerial
6a33cf048820aab948dd24d5867e53f0f1eaa11d
[ "BSD-3-Clause" ]
1
2018-09-20T04:39:02.000Z
2018-09-21T04:19:15.000Z
tests/test_wrappers.py
chrisbrake/aerial
6a33cf048820aab948dd24d5867e53f0f1eaa11d
[ "BSD-3-Clause" ]
null
null
null
import signal as s from aerial import Feed, wrappers as w def test_feed_init(): """ Confirm feed is initialized if it is None """ w.feed = None w.received(s.SIGINT) assert isinstance(w.feed, Feed) def test_received_false(): """ Confirm the method returns False if no signal recieved """ asser...
29.352941
78
0.678023
0
0
0
0
0
0
0
0
464
0.309953
f6aee9f9d96c710dc628f8ed454d998f3e896d5b
923
py
Python
setup.py
newliver/tencentyun-porndetect
0941931fd78f49c530e2071248114721154b3c9e
[ "MIT" ]
18
2016-05-11T12:19:42.000Z
2021-10-03T10:43:21.000Z
setup.py
newliver/tencentyun-porndetect
0941931fd78f49c530e2071248114721154b3c9e
[ "MIT" ]
null
null
null
setup.py
newliver/tencentyun-porndetect
0941931fd78f49c530e2071248114721154b3c9e
[ "MIT" ]
5
2015-12-01T04:00:28.000Z
2020-01-19T13:18:34.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- from os import path from codecs import open try: from setuptools import setup except ImportError: from distutils.core import setup here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description =...
23.666667
63
0.704225
0
0
0
0
0
0
0
0
298
0.32286
f6b06e24315b971b76d107d8572119071dcbbe2e
7,230
py
Python
heredity/heredity.py
immortal-zeus/CS50-AI_Projects
cac627ea75650960ddc22f9dd60777e3ee64eacf
[ "BSD-3-Clause" ]
1
2021-06-22T06:31:59.000Z
2021-06-22T06:31:59.000Z
heredity/heredity.py
immortal-zeus/CS50-AI_Projects
cac627ea75650960ddc22f9dd60777e3ee64eacf
[ "BSD-3-Clause" ]
null
null
null
heredity/heredity.py
immortal-zeus/CS50-AI_Projects
cac627ea75650960ddc22f9dd60777e3ee64eacf
[ "BSD-3-Clause" ]
null
null
null
import csv import itertools import sys PROBS = { # Unconditional probabilities for having gene "gene": { 2: 0.01, 1: 0.03, 0: 0.96 }, "trait": { # Probability of trait given two copies of gene 2: { True: 0.65, False: 0.35 }, ...
31.572052
117
0.547303
0
0
0
0
0
0
0
0
2,192
0.303181
f6b0f025ad48f88945b93b850eb2f1bf03a9f188
2,977
py
Python
Lab5_7/Repositories/PickleRepo.py
alexnaiman/Fundamentals-Of-Programming---Lab-assignments
ef066e6036e20b9c686799f507f10e15e50e3285
[ "MIT" ]
4
2018-02-19T13:57:38.000Z
2022-01-08T04:10:54.000Z
Lab5_7/Repositories/PickleRepo.py
alexnaiman/Fundamentals-Of-Programming---Lab-assignments
ef066e6036e20b9c686799f507f10e15e50e3285
[ "MIT" ]
null
null
null
Lab5_7/Repositories/PickleRepo.py
alexnaiman/Fundamentals-Of-Programming---Lab-assignments
ef066e6036e20b9c686799f507f10e15e50e3285
[ "MIT" ]
null
null
null
import pickle from Repositories.BaseRepository import Repository class PickleRepo(Repository): ''' A generic class for a repository for a given class ''' def __init__(self, fileName, name): ''' The constructor of the Repository class :param fileName: the ...
31.336842
102
0.575076
2,902
0.974807
0
0
0
0
0
0
1,511
0.507558
f6b2c3a5a820b975a2e3e297c5d76cb1dc060bb6
5,322
py
Python
bibtex_interface/import_bibtex_file.py
julio-navarro-lara/biblio
3a86b9133d6470e89425e7a1fdea72cef0b6528b
[ "Apache-2.0" ]
1
2020-09-23T11:54:16.000Z
2020-09-23T11:54:16.000Z
bibtex_interface/import_bibtex_file.py
julio-navarro-lara/biblio
3a86b9133d6470e89425e7a1fdea72cef0b6528b
[ "Apache-2.0" ]
null
null
null
bibtex_interface/import_bibtex_file.py
julio-navarro-lara/biblio
3a86b9133d6470e89425e7a1fdea72cef0b6528b
[ "Apache-2.0" ]
null
null
null
#Copyright 2018 Julio Navarro #Built at the University of Strasbourg (France). CSTB team @ ICube laboratory # -*- coding: utf-8 -*- import sys sys.path.insert(0,'../') sys.path.insert(0,'../database_queries/') from database_queries_biblio import * import bibtexparser import codecs import unidecode def recover_acce...
29.731844
105
0.649192
0
0
0
0
0
0
0
0
1,138
0.213829
f6b3328c566ef126d74431b64f1f2183ec8ed890
9,565
py
Python
src/tests/ftest/security/container_security_acl.py
sherintg/daos
a54e347938a0a7b2fe8771c982336f1d28654b1f
[ "BSD-2-Clause-Patent" ]
2
2021-07-14T12:21:50.000Z
2021-07-14T12:21:52.000Z
src/tests/ftest/security/container_security_acl.py
sherintg/daos
a54e347938a0a7b2fe8771c982336f1d28654b1f
[ "BSD-2-Clause-Patent" ]
null
null
null
src/tests/ftest/security/container_security_acl.py
sherintg/daos
a54e347938a0a7b2fe8771c982336f1d28654b1f
[ "BSD-2-Clause-Patent" ]
1
2021-11-03T05:00:42.000Z
2021-11-03T05:00:42.000Z
#!/usr/bin/python3 """ (C) Copyright 2020-2021 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent """ import os import security_test_base as secTestBase from cont_security_test_base import ContSecurityTestBase from pool_security_test_base import PoolSecurityTestBase class DaosContainterSecurityTest(C...
46.658537
79
0.612964
9,278
0.969995
0
0
0
0
0
0
4,136
0.43241
f6b3c15f1c2351ca221f6a3291a1eb60723fa6bc
1,205
py
Python
get_links.py
jabbalaci/Bash-Utils
c6fb115834a221c4aaba8eaa37f650beea45ef29
[ "MIT" ]
73
2015-03-31T01:12:26.000Z
2021-07-10T19:45:04.000Z
get_links.py
doc22940/Bash-Utils
c6fb115834a221c4aaba8eaa37f650beea45ef29
[ "MIT" ]
2
2017-01-06T17:17:42.000Z
2017-08-23T18:35:55.000Z
get_links.py
doc22940/Bash-Utils
c6fb115834a221c4aaba8eaa37f650beea45ef29
[ "MIT" ]
27
2015-01-03T18:51:23.000Z
2020-11-15T11:49:51.000Z
#!/usr/bin/env python3 """ Extract all links from a web page ================================= Author: Laszlo Szathmary, 2011 (jabba.laci@gmail.com) Website: https://pythonadventures.wordpress.com/2011/03/10/extract-all-links-from-a-web-page/ GitHub: https://github.com/jabbalaci/Bash-Utils Given a webpage, extract ...
24.1
99
0.6
0
0
0
0
0
0
0
0
671
0.556846
f6b6c0f6b1a695df96a661e8da3cdd75b9963602
2,563
py
Python
texas/views/AnnotationViewSet.py
HeglerTissot/TEXAS
fdcfc4e4042b9c6de49d50324937858d7c1a7c45
[ "Apache-2.0" ]
null
null
null
texas/views/AnnotationViewSet.py
HeglerTissot/TEXAS
fdcfc4e4042b9c6de49d50324937858d7c1a7c45
[ "Apache-2.0" ]
null
null
null
texas/views/AnnotationViewSet.py
HeglerTissot/TEXAS
fdcfc4e4042b9c6de49d50324937858d7c1a7c45
[ "Apache-2.0" ]
1
2021-02-11T15:54:35.000Z
2021-02-11T15:54:35.000Z
#!/usr/bin/python #-*- coding: utf-8 -*- from texas.annotations.AnnotationSet import AnnotationSet from texas.views.AnnotationView import AnnotationView from texas.views.CharView import CharView from texas.views.TokenView import TokenView from texas.views.SpanView import SpanView from texas.views.RelationView import R...
40.046875
123
0.633632
2,229
0.869684
0
0
0
0
0
0
511
0.199376
f6b8ddf5ee17747909885ae7a8e492c2e777ab81
1,496
py
Python
examples/todo_react/app.py
Lothiraldan/ZeroServices
c6b0bdf755be6bcc0ff6070aabcfb36f0e4c2f37
[ "MIT" ]
21
2015-01-31T17:45:42.000Z
2017-11-12T05:02:44.000Z
examples/todo_react/app.py
Lothiraldan/ZeroServices
c6b0bdf755be6bcc0ff6070aabcfb36f0e4c2f37
[ "MIT" ]
7
2015-01-07T09:52:06.000Z
2015-02-01T00:59:35.000Z
examples/todo_react/app.py
Lothiraldan/ZeroServices
c6b0bdf755be6bcc0ff6070aabcfb36f0e4c2f37
[ "MIT" ]
2
2017-06-29T19:40:42.000Z
2019-06-01T12:18:56.000Z
import pymongo from zeroservices import ResourceService, ZeroMQMedium from zeroservices.backend.mongodb import MongoDBCollection, MongoDBResource from zeroservices.memory import MemoryCollection, MemoryCollection from zeroservices.resources import is_callable import sys from zmq.eventloop import ioloop, zmqstream iol...
27.703704
87
0.760027
474
0.316845
0
0
0
0
0
0
98
0.065508
f6ba94639224284f876fee2bcfe84861cc05d4cf
2,743
py
Python
slideshows/views.py
hossein20s/emencia-django-slideshows
83b194be3943573bf3b6ed7a3839bbbcc949df67
[ "MIT" ]
null
null
null
slideshows/views.py
hossein20s/emencia-django-slideshows
83b194be3943573bf3b6ed7a3839bbbcc949df67
[ "MIT" ]
null
null
null
slideshows/views.py
hossein20s/emencia-django-slideshows
83b194be3943573bf3b6ed7a3839bbbcc949df67
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Views """ import random from django.db.models import Count from django import template from django.views.generic.detail import DetailView from django.utils.safestring import mark_safe from slideshows.models import Slideshow, DEFAULT_SLIDESHOWS_TEMPLATE, DEFAULT_SLIDESHOWS_RANDOM_SLIDE_TEMP...
31.895349
110
0.683558
2,409
0.878236
0
0
0
0
0
0
1,070
0.390084
f6baeadb060a169301ac91bc55252c337b0c1960
12,212
py
Python
preprocessing_2.0/entityExtraction/code/addEntitiesToText.py
ahsi/Multilingual_Event_Extraction
eed002e864e16dc06c2b2970267b1465adcf825c
[ "MIT" ]
34
2017-11-28T12:23:00.000Z
2022-01-19T16:10:52.000Z
preprocessing_2.0/entityExtraction/code/addEntitiesToText.py
ahsi/Multilingual_Event_Extraction
eed002e864e16dc06c2b2970267b1465adcf825c
[ "MIT" ]
3
2018-12-24T09:53:45.000Z
2019-11-19T03:26:41.000Z
preprocessing_2.0/entityExtraction/code/addEntitiesToText.py
ahsi/Multilingual_Event_Extraction
eed002e864e16dc06c2b2970267b1465adcf825c
[ "MIT" ]
9
2018-01-16T03:37:17.000Z
2021-11-05T21:18:07.000Z
import sys import xml.etree.ElementTree as ET import string from xml.sax.saxutils import escape # set to maintain unique coref labels across all entities corefSet = set() def processEvents(root, triggerDict, argDict): if root.tag == "event": eventType = root.attrib["TYPE"] eventSubtype = root.attr...
34.016713
135
0.560432
0
0
0
0
0
0
0
0
1,698
0.139044
f6bd4d588241d1dc77c6591b3c2c3f80f0410cf6
2,737
py
Python
modules/data_handler/__init__.py
tamslo/koala
9f8bb0e201bd9a773752f1fd70ecbfc2fe98eb5c
[ "MIT" ]
null
null
null
modules/data_handler/__init__.py
tamslo/koala
9f8bb0e201bd9a773752f1fd70ecbfc2fe98eb5c
[ "MIT" ]
null
null
null
modules/data_handler/__init__.py
tamslo/koala
9f8bb0e201bd9a773752f1fd70ecbfc2fe98eb5c
[ "MIT" ]
null
null
null
import os import yaml import json import modules.file_utils as file_utils from .instance_handler import InstanceHandler from .instances.experiment import Experiment from .instances.dataset import Dataset from .cache import Cache class DataHandler: def __init__(self, data_directory): self.experiments_direct...
48.017544
91
0.679576
2,506
0.915601
0
0
0
0
0
0
326
0.119109
f6bfbf21f0ab05b2cba9ffc3d4de3d8629a8d0b9
7,512
py
Python
vmock/methodmock.py
vburenin/vmock
8af296938328a1178418e479cb60a008111eb1d3
[ "MIT" ]
1
2015-07-04T05:57:45.000Z
2015-07-04T05:57:45.000Z
vmock/methodmock.py
vburenin/vmock
8af296938328a1178418e479cb60a008111eb1d3
[ "MIT" ]
null
null
null
vmock/methodmock.py
vburenin/vmock
8af296938328a1178418e479cb60a008111eb1d3
[ "MIT" ]
null
null
null
"""MethodMock class that keeps method data. """ import inspect import functools from vmock import matchers from vmock.mockerrors import CallSequenceError from vmock.mockerrors import InterfaceError from vmock.mockerrors import UnexpectedCall class MethodMock(object): """Method mock. Method mock object rec...
34.939535
79
0.600905
7,262
0.96672
0
0
654
0.087061
0
0
2,781
0.370208
f6c0e78179bef616d68fd16014e74c5008efe77d
2,532
py
Python
in.py
dlinsley/youtube-resource
82ef203c292a6a6ceb9ac84a9931f1aeec1ebdce
[ "MIT" ]
null
null
null
in.py
dlinsley/youtube-resource
82ef203c292a6a6ceb9ac84a9931f1aeec1ebdce
[ "MIT" ]
null
null
null
in.py
dlinsley/youtube-resource
82ef203c292a6a6ceb9ac84a9931f1aeec1ebdce
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from __future__ import unicode_literals import yt_dlp import json import sys import os class MyLogger(object): def __init__(self): self.vidmeta = {} def debug(self, msg): if msg.startswith('{"'): self.vidmeta = json.loads(msg) return print...
33.315789
100
0.644945
1,537
0.60703
0
0
0
0
0
0
647
0.255529
f6c11c4d0de6932b651c3860ae6be6b7daceb829
321
py
Python
game_exceptions.py
thomasmarlow/chessterisk
be759474c550584949cb189cb6817fbee32304d9
[ "MIT" ]
null
null
null
game_exceptions.py
thomasmarlow/chessterisk
be759474c550584949cb189cb6817fbee32304d9
[ "MIT" ]
null
null
null
game_exceptions.py
thomasmarlow/chessterisk
be759474c550584949cb189cb6817fbee32304d9
[ "MIT" ]
null
null
null
class NoSuchPlayerInGame(Exception): pass class GameIsFull(Exception): pass class NoSuchColor(Exception): pass class ThisPieceCantMoveThere(Exception): pass class InvalidStringCoordinates(Exception): pass class NoSuchPieceSubtype(Exception): pass class NotThisColorsTurn(Exception): pas...
16.05
42
0.766355
309
0.962617
0
0
0
0
0
0
0
0
f6c1cb6598ac1209aec6a6d526452c0ee83bb0ea
4,579
py
Python
ossreport/printer/printer.py
craftslab/ossreport
7c60963af28e9cc22a4c107c58b697e02261d105
[ "Apache-2.0" ]
null
null
null
ossreport/printer/printer.py
craftslab/ossreport
7c60963af28e9cc22a4c107c58b697e02261d105
[ "Apache-2.0" ]
null
null
null
ossreport/printer/printer.py
craftslab/ossreport
7c60963af28e9cc22a4c107c58b697e02261d105
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import openpyxl import os from reportlab.lib import colors from reportlab.lib.styles import getSampleStyleSheet from reportlab.platypus import Paragraph, SimpleDocTemplate, Table from ossreport.proto.proto import Component, File, Level, Risk risk_head = { "A": Risk.__name__.capitalize()...
30.939189
88
0.540293
3,518
0.76829
0
0
0
0
0
0
278
0.060712
f6c2888bef0b0d4bea8c7f3b58dc3320eb64f8f4
3,411
py
Python
pydmap_read.py
loxodes/SuperDARN_pydmap_write
63b08e77a7725ff8e73e3d011880ca1b71649ce1
[ "MIT" ]
null
null
null
pydmap_read.py
loxodes/SuperDARN_pydmap_write
63b08e77a7725ff8e73e3d011880ca1b71649ce1
[ "MIT" ]
null
null
null
pydmap_read.py
loxodes/SuperDARN_pydmap_write
63b08e77a7725ff8e73e3d011880ca1b71649ce1
[ "MIT" ]
null
null
null
# script for reading in dmap strings over a socket into a dictionary # 7/1/2015 # jon klein, jtklein@alaska.edu import numpy as np import pdb import socket import time import json import datetime import time DATACODE = 33 DATACHAR = 1 DATASHORT = 2 DATAINT = 3 DATAFLOAT = 4 DATADOUBLE = 8 DATASTRING = 9 DATALONG = 1...
24.021127
95
0.602756
0
0
0
0
0
0
0
0
390
0.114336
f6c2acd218cca04a11f0f3775ecde0c74f8938eb
1,179
py
Python
transformer-openai/parse_output.py
fredriko/tweet-stance-prediction
f12cf924db7c947d5b681c01f492da029c08c415
[ "MIT" ]
109
2019-01-16T01:47:34.000Z
2022-03-07T08:02:45.000Z
transformer-openai/parse_output.py
fredriko/tweet-stance-prediction
f12cf924db7c947d5b681c01f492da029c08c415
[ "MIT" ]
2
2019-11-04T07:15:16.000Z
2020-09-16T18:45:40.000Z
transformer-openai/parse_output.py
fredriko/tweet-stance-prediction
f12cf924db7c947d5b681c01f492da029c08c415
[ "MIT" ]
65
2019-01-20T20:51:47.000Z
2022-03-27T15:50:46.000Z
import pandas as pd import sys def output_predictions(test_path, pred_path, out_path, topic): test = pd.read_csv(test_path, delimiter='\t', header=0, encoding = "latin-1") if topic is not None: test = test.loc[test["Target"] == topic].reset_index() def clean_ascii(text): # function to remov...
39.3
90
0.631043
0
0
0
0
0
0
0
0
274
0.2324
f6c39ed6dcaa6f4e4a1e00abaa066ab255bcf56d
1,333
py
Python
entifyfishing_client/models/category.py
kairntech/entifyfishing-client
10a86166cf7895d681fe7e4adf0f01622b48dcb8
[ "Apache-2.0" ]
null
null
null
entifyfishing_client/models/category.py
kairntech/entifyfishing-client
10a86166cf7895d681fe7e4adf0f01622b48dcb8
[ "Apache-2.0" ]
null
null
null
entifyfishing_client/models/category.py
kairntech/entifyfishing-client
10a86166cf7895d681fe7e4adf0f01622b48dcb8
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict, Type, TypeVar, Union import attr from ..types import UNSET, Unset T = TypeVar("T", bound="Category") @attr.s(auto_attribs=True) class Category: """ """ category: str source: Union[Unset, str] = UNSET weight: Union[Unset, float] = UNSET page_id: Union[Unset, int] =...
22.59322
63
0.546137
1,169
0.876969
0
0
1,196
0.897224
0
0
90
0.067517
f6c538bf317f0f8bf220aa7aa6e223706398ea78
12,890
py
Python
gen.py
roj4s/FSRCNN-TensorFlow
17fec785296a4c125d37432a176d523040a7a26d
[ "MIT" ]
9
2017-10-19T14:20:39.000Z
2022-02-08T09:45:28.000Z
gen.py
roj4s/FSRCNN-TensorFlow
17fec785296a4c125d37432a176d523040a7a26d
[ "MIT" ]
1
2019-05-14T08:14:29.000Z
2019-05-14T08:14:29.000Z
gen.py
roj4s/FSRCNN-TensorFlow
17fec785296a4c125d37432a176d523040a7a26d
[ "MIT" ]
7
2017-08-06T10:49:46.000Z
2021-10-03T04:33:39.000Z
import sys import math from itertools import islice radius = 1 def get_line_number(phrase, file_name): with open(file_name) as f: for i, line in enumerate(f, 1): if phrase in line: return i return False def read_weights(file_name, ln, size=1): content = [] with...
47.389706
236
0.482933
0
0
0
0
0
0
0
0
2,589
0.200853
f6c590d35cefe876370b91aaeb9f5e4722545073
451
py
Python
library/migrations/0011_auto_20200703_0906.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
2
2016-09-02T12:45:31.000Z
2018-02-10T10:18:11.000Z
library/migrations/0011_auto_20200703_0906.py
Socialsquare/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
17
2020-03-24T15:58:05.000Z
2022-02-10T08:08:57.000Z
library/migrations/0011_auto_20200703_0906.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
1
2018-01-05T08:02:18.000Z
2018-01-05T08:02:18.000Z
# Generated by Django 2.2.8 on 2020-07-03 09:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('library', '0010_onlinecourse_course_url'), ] operations = [ migrations.AlterField( model_name='onlinecourse', name='...
23.736842
100
0.629712
358
0.793792
0
0
0
0
0
0
124
0.274945
f6c6629b33bb8ab2ddebf182d46d07ca242a6b8c
10,568
py
Python
SAFEcomments/safe_comments.py
kittypr/SAFEcomments
5157335941477d58492538ffe80fbe4aaa749932
[ "MIT" ]
null
null
null
SAFEcomments/safe_comments.py
kittypr/SAFEcomments
5157335941477d58492538ffe80fbe4aaa749932
[ "MIT" ]
null
null
null
SAFEcomments/safe_comments.py
kittypr/SAFEcomments
5157335941477d58492538ffe80fbe4aaa749932
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import os from lxml import etree from SAFEcomments import annotation from SAFEcomments import archive_handler from SAFEcomments import compare from SAFEcomments import odt_namespaces exact_similarity = 0.6 fuzzy_similarity = 0.6 parser = argparse.ArgumentParser(description='T...
46.968889
177
0.674962
0
0
0
0
0
0
0
0
850
0.080431
f6c7c421ad38800a15857692e302afbb85bc977e
18,997
py
Python
musegan.py
vab10266/wolfGANg_Vaud
254634cd2eb9043d282236d3af86ba7938d92319
[ "MIT" ]
null
null
null
musegan.py
vab10266/wolfGANg_Vaud
254634cd2eb9043d282236d3af86ba7938d92319
[ "MIT" ]
null
null
null
musegan.py
vab10266/wolfGANg_Vaud
254634cd2eb9043d282236d3af86ba7938d92319
[ "MIT" ]
null
null
null
import time import argparse from copy import deepcopy from progress.bar import IncrementalBar import numpy as np import torch from torch import nn import torch.nn.functional as F import torch.optim as optim from torchvision import utils as vutils from itertools import chain from gan.generator import MuseGenerator from ...
44.804245
155
0.549245
18,244
0.960362
0
0
0
0
0
0
5,938
0.312576
f6cad5ab473aa63a7aa0c5477b6f59c7555c512a
304
py
Python
setup.py
techborn/pIRC
cb866e307e082947ef209bca88d01706311552c3
[ "MIT" ]
null
null
null
setup.py
techborn/pIRC
cb866e307e082947ef209bca88d01706311552c3
[ "MIT" ]
null
null
null
setup.py
techborn/pIRC
cb866e307e082947ef209bca88d01706311552c3
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='pIRC', version='0.5.5', description='A light, customizable python-based IRC bot library.', url='https://github.com/techborn/pIRC', author='Techborn', author_email='unborntech@pm.me', license='Custom', packages=['pIRC'])
27.636364
72
0.641447
0
0
0
0
0
0
0
0
142
0.467105
f6cb8c44cdef8528ecf631c976c8504ece69afaf
2,880
py
Python
company/tests/test_emails.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
1
2021-11-06T12:08:26.000Z
2021-11-06T12:08:26.000Z
company/tests/test_emails.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
null
null
null
company/tests/test_emails.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
null
null
null
from django.db.models import signals from unittest import mock from unittest.mock import ANY, Mock import factory import pytest from django.conf import settings from company.email import CollaboratorNotification, OwnershipChangeNotification from .factories import CollaboratorInviteFactory, OwnershipInviteFactory @p...
33.103448
79
0.782639
0
0
0
0
2,546
0.884028
0
0
242
0.084028
f6cbb638c7d86c902db1e8bf832a0ff78bbdb70f
523
py
Python
citybuilder/core.py
Tankernn/citybuilder
aee8ac217d7371df854a151bab4f5345ff1cd9b7
[ "Apache-2.0" ]
null
null
null
citybuilder/core.py
Tankernn/citybuilder
aee8ac217d7371df854a151bab4f5345ff1cd9b7
[ "Apache-2.0" ]
null
null
null
citybuilder/core.py
Tankernn/citybuilder
aee8ac217d7371df854a151bab4f5345ff1cd9b7
[ "Apache-2.0" ]
null
null
null
import yaml import _thread from . import server import time config = yaml.load(open("config/game.yaml"))['game'] def main_loop(): for player in list(server.players.values()): player.update(time.time() - main_loop.last_tick) main_loop.last_tick = time.time() time.sleep(1) main_loop.last_tick = tim...
21.791667
56
0.661568
0
0
0
0
0
0
0
0
64
0.122371
f6cbe6216c1d3065e771a051dc775fda5c1d5d09
14,266
py
Python
dart_backend/Components/Calibration/EllipseUtils.py
Akkarin007/TeamProject-WiSe-DartImageProcessing
14ecabb795bbda3c5158ce92750c12baae147294
[ "MIT" ]
null
null
null
dart_backend/Components/Calibration/EllipseUtils.py
Akkarin007/TeamProject-WiSe-DartImageProcessing
14ecabb795bbda3c5158ce92750c12baae147294
[ "MIT" ]
null
null
null
dart_backend/Components/Calibration/EllipseUtils.py
Akkarin007/TeamProject-WiSe-DartImageProcessing
14ecabb795bbda3c5158ce92750c12baae147294
[ "MIT" ]
null
null
null
import cv2 import numpy as np import math import sys from .Utils import * def getEllipseLineIntersection(Ellipse, lines_seg, image_proc_img): x = Ellipse.x y = Ellipse.y a = Ellipse.a b = Ellipse.b angle = (Ellipse.angle) * math.pi / 180 # build transformation matrix http://math.stac...
42.082596
156
0.589724
0
0
0
0
0
0
0
0
1,872
0.131221
f6ce139e91ce806c7fc0cc9832e37d0e3f9265fe
279
py
Python
arlobot_common/src/common/utils.py
tslator/arlobot_tx2
5b6b0ead86e54ec7ba5664f32263a1c8c27249c9
[ "MIT" ]
null
null
null
arlobot_common/src/common/utils.py
tslator/arlobot_tx2
5b6b0ead86e54ec7ba5664f32263a1c8c27249c9
[ "MIT" ]
null
null
null
arlobot_common/src/common/utils.py
tslator/arlobot_tx2
5b6b0ead86e54ec7ba5664f32263a1c8c27249c9
[ "MIT" ]
null
null
null
import rospy # Wraps Rate so that the hz parameter can be retrieved ''' class RateWrapper(rospy.Rate): def __init__(self, rate): self.super(self, RateWrapper).__init__(rate) self._hz = rate @attr.getter def Rate(self): return self._hz '''
17.4375
54
0.641577
0
0
0
0
0
0
0
0
261
0.935484
f6ce9204eef4f76cb6594dc3744ddcbcbae73ea5
720
py
Python
dms/exceptions/__init__.py
zhmsg/dms
3ac2b71c4a83ac721987c6f5a2f81bc0618ceca2
[ "MIT" ]
null
null
null
dms/exceptions/__init__.py
zhmsg/dms
3ac2b71c4a83ac721987c6f5a2f81bc0618ceca2
[ "MIT" ]
12
2015-09-18T01:19:28.000Z
2021-12-13T19:51:10.000Z
dms/exceptions/__init__.py
zhmsg/dms
3ac2b71c4a83ac721987c6f5a2f81bc0618ceca2
[ "MIT" ]
1
2017-06-30T08:11:10.000Z
2017-06-30T08:11:10.000Z
# !/usr/bin/env python # coding: utf-8 __author__ = 'zhouhenglc' class DmsException(Exception): code = 500 message = '' def __init__(self, detail=None, *args, **kwargs): self.msg = self.message % kwargs if detail is None: self.detail = self.msg else: self...
18.947368
61
0.593056
641
0.890278
0
0
0
0
0
0
119
0.165278
f6ceb83178b7c8b4ff2b9f133bd2f18c84b420ff
247
py
Python
output/models/nist_data/atomic/any_uri/schema_instance/nistschema_sv_iv_atomic_any_uri_pattern_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/atomic/any_uri/schema_instance/nistschema_sv_iv_atomic_any_uri_pattern_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/atomic/any_uri/schema_instance/nistschema_sv_iv_atomic_any_uri_pattern_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.atomic.any_uri.schema_instance.nistschema_sv_iv_atomic_any_uri_pattern_1_xsd.nistschema_sv_iv_atomic_any_uri_pattern_1 import NistschemaSvIvAtomicAnyUriPattern1 __all__ = [ "NistschemaSvIvAtomicAnyUriPattern1", ]
41.166667
189
0.890688
0
0
0
0
0
0
0
0
36
0.145749
f6cf14095733225d606bb01959662b8b0abc07a2
1,011
py
Python
koala/message/message.py
egmkang/koala
70ea68c0d4380242c61faa8a6f023fa248049ec8
[ "MIT" ]
15
2021-06-02T12:43:26.000Z
2022-01-24T19:14:02.000Z
koala/message/message.py
egmkang/flash
70ea68c0d4380242c61faa8a6f023fa248049ec8
[ "MIT" ]
1
2021-06-14T10:08:46.000Z
2021-06-14T10:08:46.000Z
koala/message/message.py
egmkang/flash
70ea68c0d4380242c61faa8a6f023fa248049ec8
[ "MIT" ]
1
2021-01-20T06:38:01.000Z
2021-01-20T06:38:01.000Z
from koala.typing import * from koala.message.base import JsonMessage from dataclasses import dataclass @dataclass class RpcRequest(JsonMessage): service_name: str = "" method_name: str = "" actor_id: ActorID = "" reentrant_id: int = 0 request_id: int = 0 # server_id为0, 那么就不强制校验server_id #...
21.0625
70
0.678536
949
0.855726
0
0
993
0.895401
0
0
218
0.196573
f6d12a9824b023acf8f17981d556e586819b533f
389
py
Python
flask/Docs/10_request_object.py
shubhamnag14/Python-Documents
d3fee0ad90232b413f6ac1b562588fb255b79e42
[ "Apache-2.0" ]
2
2020-11-27T13:21:05.000Z
2021-04-19T21:14:21.000Z
flask/Docs/10_request_object.py
shubhamnag14/Python-Documents
d3fee0ad90232b413f6ac1b562588fb255b79e42
[ "Apache-2.0" ]
null
null
null
flask/Docs/10_request_object.py
shubhamnag14/Python-Documents
d3fee0ad90232b413f6ac1b562588fb255b79e42
[ "Apache-2.0" ]
1
2021-06-27T20:31:42.000Z
2021-06-27T20:31:42.000Z
from flask import Flask, request app = Flask(__name__) @app.route('/login', methods=['POST', 'GET']) def login(): error = None if request.method == 'POST': if valid_login(request.form['username'], request.form['password']): return log_the_user_in(request.form['usern...
25.933333
60
0.588689
0
0
0
0
330
0.848329
0
0
82
0.210797
f6d2d74f3f54c4f51662dfe6138f6ef14972234c
1,261
py
Python
src/largest_rectangle.py
kemingy/daily-coding-problem
0839311ec0848f8f0b4a9edba817ecceb8f944a0
[ "Unlicense" ]
3
2019-03-06T03:14:56.000Z
2020-01-07T16:00:48.000Z
src/largest_rectangle.py
kemingy/daily-coding-problem
0839311ec0848f8f0b4a9edba817ecceb8f944a0
[ "Unlicense" ]
null
null
null
src/largest_rectangle.py
kemingy/daily-coding-problem
0839311ec0848f8f0b4a9edba817ecceb8f944a0
[ "Unlicense" ]
null
null
null
# Given an N by M matrix consisting only of 1's and 0's, find the largest # rectangle containing only 1's and return its area. # For example, given the following matrix: # [[1, 0, 0, 0], # [1, 0, 1, 1], # [1, 0, 1, 1], # [0, 1, 0, 0]] # Return 4. def largest_rectangle(matrix): if not matrix or...
24.25
74
0.436955
0
0
0
0
0
0
0
0
260
0.206186
f6d2e5c6ff68cb1bdb35e291b71a6f58705d4f91
7,207
py
Python
anodos/swarm/models.py
abezpalov/anodos.ru
6b905eb44b6f4a54f6e199b80cd714522deed277
[ "MIT" ]
2
2020-04-26T07:28:38.000Z
2022-03-31T14:24:44.000Z
anodos/swarm/models.py
abezpalov/anodos.ru
6b905eb44b6f4a54f6e199b80cd714522deed277
[ "MIT" ]
9
2017-12-01T04:43:31.000Z
2022-01-01T13:26:04.000Z
anodos/swarm/models.py
abezpalov/anodos.ru
6b905eb44b6f4a54f6e199b80cd714522deed277
[ "MIT" ]
null
null
null
import os import uuid from django.db import models from django.conf import settings from django.utils import timezone class SourceManager(models.Manager): def take(self, name, **kwargs): if not name: return None try: o = self.get(name=name) except Source.DoesNotE...
29.780992
100
0.579159
7,093
0.979561
0
0
765
0.105648
0
0
481
0.066427
f6d41864018d10abd6471ccdb2d9fb3efa2863e0
2,675
py
Python
inventory/inv_admin/item_admin.py
kaajavi/itsventory
0543f402e124828c2af662f73361c68fc45002a2
[ "Apache-2.0" ]
null
null
null
inventory/inv_admin/item_admin.py
kaajavi/itsventory
0543f402e124828c2af662f73361c68fc45002a2
[ "Apache-2.0" ]
null
null
null
inventory/inv_admin/item_admin.py
kaajavi/itsventory
0543f402e124828c2af662f73361c68fc45002a2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' # Model admin <= https://docs.djangoproject.com/es/1.10/_modules/django/contrib/admin/options/#ModelAdmin In the after link, see you all configuration and options about model admin. Is very important understand the getters: + e.g.: get_form(self, request, obj=None,...
33.860759
264
0.585794
1,402
0.523916
0
0
0
0
0
0
954
0.356502
f6d505231ba879f61e9253759941879591d04805
2,098
py
Python
raxcli/actions.py
racker/python-raxcli
c59d7ef9abca0a7cea56882113bd71feb6c5c6ef
[ "Apache-2.0" ]
1
2020-01-16T09:45:28.000Z
2020-01-16T09:45:28.000Z
raxcli/actions.py
racker/python-raxcli
c59d7ef9abca0a7cea56882113bd71feb6c5c6ef
[ "Apache-2.0" ]
null
null
null
raxcli/actions.py
racker/python-raxcli
c59d7ef9abca0a7cea56882113bd71feb6c5c6ef
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Rackspace # # 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...
36.807018
79
0.606292
1,257
0.599142
0
0
0
0
0
0
998
0.475691
f6d563aa962d8c0e6ddaba79c71c22e3395f937e
5,146
py
Python
backend/app/api/api_v1/endpoints/cars.py
rufusnufus/BTSParking
3bb6e7fd20943f258e297428ab1624c4f2786444
[ "MIT" ]
2
2021-11-13T08:05:14.000Z
2021-12-02T11:36:11.000Z
backend/app/api/api_v1/endpoints/cars.py
rufusnufus/BTSParking
3bb6e7fd20943f258e297428ab1624c4f2786444
[ "MIT" ]
44
2021-11-23T10:06:11.000Z
2021-12-18T07:23:22.000Z
backend/app/api/api_v1/endpoints/cars.py
rufusnufus/BTSParking
3bb6e7fd20943f258e297428ab1624c4f2786444
[ "MIT" ]
null
null
null
from fastapi import APIRouter, Body, Depends, HTTPException, Response, status from fastapi.encoders import jsonable_encoder from app.core.security import cookie_is_none, oauth2_scheme from app.logs import logger from app.models.car import Car as ModelCar from app.models.user import User as ModelUser from app.schemas.c...
34.536913
85
0.570152
0
0
0
0
4,765
0.925962
2,832
0.55033
1,302
0.253012
f6d776568eca974a8ecbb4a81cd83bc189940526
121
py
Python
output/models/ms_data/regex/re_e13_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/regex/re_e13_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/regex/re_e13_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.regex.re_e13_xsd.re_e13 import ( Regex, Doc, ) __all__ = [ "Regex", "Doc", ]
12.1
59
0.603306
0
0
0
0
0
0
0
0
12
0.099174
f6d7eedf8e35cf51f0468c77344e42c3f74d4297
15,170
py
Python
python/paddle/fluid/contrib/slim/graph/graph.py
wanghaoshuang/Paddle
8c19599bc640f51b279d95054bbd5eccde210c0c
[ "Apache-2.0" ]
2
2019-04-03T05:36:17.000Z
2020-04-29T03:38:54.000Z
python/paddle/fluid/contrib/slim/graph/graph.py
wanghaoshuang/Paddle
8c19599bc640f51b279d95054bbd5eccde210c0c
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/contrib/slim/graph/graph.py
wanghaoshuang/Paddle
8c19599bc640f51b279d95054bbd5eccde210c0c
[ "Apache-2.0" ]
3
2019-01-07T06:50:29.000Z
2019-03-13T08:48:23.000Z
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
31.213992
80
0.57416
9,456
0.623336
113
0.007449
0
0
0
0
3,230
0.21292
f6da820c4abc9ef5201cde172e227e1dceff3e33
117
py
Python
main.py
cgmon/code-challenge
07d058ca679d8f2094a5f61dcd8b32baafbba8a5
[ "Apache-2.0" ]
null
null
null
main.py
cgmon/code-challenge
07d058ca679d8f2094a5f61dcd8b32baafbba8a5
[ "Apache-2.0" ]
null
null
null
main.py
cgmon/code-challenge
07d058ca679d8f2094a5f61dcd8b32baafbba8a5
[ "Apache-2.0" ]
1
2021-02-26T08:22:11.000Z
2021-02-26T08:22:11.000Z
from utils import lazy_iterator, iterator import sys if("-s" in sys.argv): lazy_iterator() else: iterator()
16.714286
42
0.700855
0
0
0
0
0
0
0
0
4
0.034188
f6da904f7f681efcd992cf44a70eccaeb7874412
133
py
Python
random/d.py
tjguk/winsys
346a5bc0ad74f3f70b1099e714b544a6f008b72c
[ "MIT" ]
51
2015-01-14T09:23:48.000Z
2021-11-08T12:53:54.000Z
random/d.py
tjguk/winsys
346a5bc0ad74f3f70b1099e714b544a6f008b72c
[ "MIT" ]
2
2019-05-30T12:34:40.000Z
2020-06-13T20:00:55.000Z
random/d.py
tjguk/winsys
346a5bc0ad74f3f70b1099e714b544a6f008b72c
[ "MIT" ]
15
2015-04-21T19:48:48.000Z
2020-07-29T19:30:43.000Z
#!python3 import os, sys print(sys.executable) from winsys import fs, dialogs print(dialogs.dialog("abc", ("def", ["1", "2", "3"])))
22.166667
54
0.661654
0
0
0
0
0
0
0
0
28
0.210526
f6db0c0fe44871d66aec1af61af13db4d5dd28cf
555
py
Python
backend/cubes/migrations/0008_auto_20200729_1234.py
landdafku11/mobile-backend
3f3328afd81f85f90170a57689af72f8f705b8a3
[ "MIT" ]
null
null
null
backend/cubes/migrations/0008_auto_20200729_1234.py
landdafku11/mobile-backend
3f3328afd81f85f90170a57689af72f8f705b8a3
[ "MIT" ]
null
null
null
backend/cubes/migrations/0008_auto_20200729_1234.py
landdafku11/mobile-backend
3f3328afd81f85f90170a57689af72f8f705b8a3
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-07-29 04:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cubes', '0007_auto_20200729_1232'), ] operations = [ migrations.AlterField( model_name='cubecomment', name='created_...
23.125
50
0.585586
462
0.832432
0
0
0
0
0
0
129
0.232432
f6ddf629e795a6505fd5e3933f0fe8bde89f8a86
4,438
py
Python
src/mpdb_api/views.py
casol/MotionPictureDB-API
478e73726f40a41fea2de88f6441f5c3ecd8dd68
[ "MIT" ]
null
null
null
src/mpdb_api/views.py
casol/MotionPictureDB-API
478e73726f40a41fea2de88f6441f5c3ecd8dd68
[ "MIT" ]
7
2020-06-06T01:08:08.000Z
2021-06-10T19:37:35.000Z
src/mpdb_api/views.py
casol/MotionPictureDB-API
478e73726f40a41fea2de88f6441f5c3ecd8dd68
[ "MIT" ]
null
null
null
from rest_framework import permissions, viewsets from mpdb_api.filters import CustomSearchFilter from users.models import CustomUser from mpdb_api.models import Comment, Movie, Watchlist, Favorite, UserRating from mpdb_api.permissions import IsOwnerOrReadOnly, IsAdminOrReadOnly from mpdb_api.serializers import ( C...
24.655556
75
0.681839
3,976
0.895899
0
0
0
0
0
0
1,845
0.415728
f6de152204ab9a0e887e32daa4b8b1a96f2cbbad
37
py
Python
login.py
JOHN-XW/test007
4aa258010591c2f697fa40fc28dcaa28fe83a893
[ "MIT" ]
null
null
null
login.py
JOHN-XW/test007
4aa258010591c2f697fa40fc28dcaa28fe83a893
[ "MIT" ]
null
null
null
login.py
JOHN-XW/test007
4aa258010591c2f697fa40fc28dcaa28fe83a893
[ "MIT" ]
null
null
null
num1=1 num2=2 num3=3 num4=4 num5=100
6.166667
8
0.72973
0
0
0
0
0
0
0
0
0
0
f6df525bd0becdd17eea24b4afd64de5fe57d9ff
1,359
py
Python
server/server.py
wooky/xtremettt
e8088fce6ddc8a01ce9530a6bb5eb4434328bef5
[ "WTFPL" ]
null
null
null
server/server.py
wooky/xtremettt
e8088fce6ddc8a01ce9530a6bb5eb4434328bef5
[ "WTFPL" ]
null
null
null
server/server.py
wooky/xtremettt
e8088fce6ddc8a01ce9530a6bb5eb4434328bef5
[ "WTFPL" ]
null
null
null
import SocketServer class Server(SocketServer.BaseRequestHandler): clients = 0 def setup(self): print "Received connection from " + self.client_address[0] + ":" + str(self.client_address[1]) self.lost = False self.shutdown = False if Server.clients > 1: print "Server is full!" self.request.send("S...
29.543478
96
0.70493
1,257
0.924945
0
0
0
0
0
0
288
0.211921