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
7f982e2d7b9d04a27d39368ea1137d719db208d1
2,030
py
Python
pulsar/async/consts.py
goodboy/pulsar
e4b42d94b7e262a165782747d65f8b39fb8d3ba9
[ "BSD-3-Clause" ]
1
2020-11-30T07:36:57.000Z
2020-11-30T07:36:57.000Z
pulsar/async/consts.py
goodboy/pulsar
e4b42d94b7e262a165782747d65f8b39fb8d3ba9
[ "BSD-3-Clause" ]
null
null
null
pulsar/async/consts.py
goodboy/pulsar
e4b42d94b7e262a165782747d65f8b39fb8d3ba9
[ "BSD-3-Clause" ]
null
null
null
''' Constants used throughout pulsar. ''' from pulsar.utils.structures import AttributeDictionary # LOW LEVEL CONSTANTS - NO NEED TO CHANGE THOSE ########################### ACTOR_STATES = AttributeDictionary(INITIAL=0X0, INACTIVE=0X1, STARTING=0x2,...
39.038462
75
0.600493
0
0
0
0
0
0
0
0
1,090
0.536946
7f983a73e7043a31b4df3adf2be126e5bcbbdc71
1,732
py
Python
tornado/test/twisted_test.py
dave-shawley/tornado
00c9e0ae31a5a0d12e09109fb77ffe391bfe1131
[ "Apache-2.0" ]
1
2022-03-24T00:58:47.000Z
2022-03-24T00:58:47.000Z
tornado/test/twisted_test.py
dave-shawley/tornado
00c9e0ae31a5a0d12e09109fb77ffe391bfe1131
[ "Apache-2.0" ]
null
null
null
tornado/test/twisted_test.py
dave-shawley/tornado
00c9e0ae31a5a0d12e09109fb77ffe391bfe1131
[ "Apache-2.0" ]
null
null
null
# Author: Ovidiu Predescu # Date: July 2011 # # 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 ...
26.646154
81
0.662818
614
0.354503
534
0.308314
631
0.364319
0
0
799
0.461316
7f99395d006207eb956af04a6f570e6ac0ee2c30
5,590
py
Python
related_name/migrations/0001_initial.py
thinkAmi-sandbox/django_30-sample
5ce2408a27100b0975f92c0f99a15671ad0c2465
[ "Unlicense" ]
null
null
null
related_name/migrations/0001_initial.py
thinkAmi-sandbox/django_30-sample
5ce2408a27100b0975f92c0f99a15671ad0c2465
[ "Unlicense" ]
null
null
null
related_name/migrations/0001_initial.py
thinkAmi-sandbox/django_30-sample
5ce2408a27100b0975f92c0f99a15671ad0c2465
[ "Unlicense" ]
null
null
null
# Generated by Django 3.0.6 on 2020-06-14 05:26 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Color', fields=[ ...
50.818182
188
0.597138
5,520
0.977683
0
0
0
0
0
0
1,103
0.19536
7f9b2596a347b694b0723898dcd1d3a1c8ef87bd
380
py
Python
architectures/utils.py
eddardd/torchDA
f53e3a8d5add454a7a2601fb4642da5c89608018
[ "MIT" ]
null
null
null
architectures/utils.py
eddardd/torchDA
f53e3a8d5add454a7a2601fb4642da5c89608018
[ "MIT" ]
null
null
null
architectures/utils.py
eddardd/torchDA
f53e3a8d5add454a7a2601fb4642da5c89608018
[ "MIT" ]
null
null
null
import torch class GradReverse(torch.autograd.Function): @staticmethod def forward(ctx, x): return x.view_as(x) @staticmethod def backward(ctx, grad_output): return - grad_output class LambdaLayer(torch.nn.Module): def __init__(self, fn): super().__init__() self....
19
43
0.626316
362
0.952632
0
0
144
0.378947
0
0
0
0
7f9be0ddb5a30a9415b074670d8819f33e76a562
550
py
Python
tests/binary_search.py
jpages/twopy
d0ae42b02ee60cf432e716884f43ec6670bcae2b
[ "BSD-3-Clause" ]
7
2018-12-18T20:32:04.000Z
2021-05-30T04:20:22.000Z
tests/binary_search.py
jpages/twopy
d0ae42b02ee60cf432e716884f43ec6670bcae2b
[ "BSD-3-Clause" ]
null
null
null
tests/binary_search.py
jpages/twopy
d0ae42b02ee60cf432e716884f43ec6670bcae2b
[ "BSD-3-Clause" ]
1
2021-11-14T17:47:11.000Z
2021-11-14T17:47:11.000Z
# Binary search of an item in a (sorted) list def binary_search(alist, item): first = 0 last = len(alist) - 1 found = False while first <= last and not found: middle = (first + last) // 2 if alist[middle] == item: found = True else: if item < alist[midd...
22
45
0.503636
0
0
0
0
0
0
0
0
70
0.127273
7f9ccadbcf78416f1bb7daee7a2f287bb5176549
5,052
py
Python
controller/modules/Logger.py
saumitraaditya/xmppSignal
5f74153f19e1d1700fc4af954400bfd8fd440dfb
[ "MIT" ]
null
null
null
controller/modules/Logger.py
saumitraaditya/xmppSignal
5f74153f19e1d1700fc4af954400bfd8fd440dfb
[ "MIT" ]
null
null
null
controller/modules/Logger.py
saumitraaditya/xmppSignal
5f74153f19e1d1700fc4af954400bfd8fd440dfb
[ "MIT" ]
null
null
null
# ipop-project # Copyright 2016, University of Florida # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, m...
43.930435
117
0.600752
3,803
0.752771
0
0
0
0
0
0
2,064
0.408551
7f9d05c84680fa636b07deb1bc4b9da548452f7b
3,879
py
Python
setup.py
annieapp/annie
82e0e858d835fcafa70629377a58102699bb8bb2
[ "MIT" ]
4
2019-06-17T15:44:54.000Z
2022-03-25T15:40:04.000Z
setup.py
annieapp/annie
82e0e858d835fcafa70629377a58102699bb8bb2
[ "MIT" ]
5
2019-06-12T15:25:51.000Z
2019-07-04T23:33:06.000Z
setup.py
RDIL/annie
82e0e858d835fcafa70629377a58102699bb8bb2
[ "MIT" ]
1
2019-06-18T00:04:41.000Z
2019-06-18T00:04:41.000Z
""" Annie Modified MIT License Copyright (c) 2019-present year Reece Dunham and the Annie Team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation th...
39.181818
78
0.685228
0
0
0
0
0
0
0
0
3,118
0.803815
7f9deee06e30542f48efc2735e6a677bc1ee2c2d
427
py
Python
store/migrations/0011_watch_slug.py
StilyanMinchev/OnlineStore
9f4c5a4d13150d753a0a85908c0cd56246106fb8
[ "MIT" ]
1
2020-12-27T09:36:28.000Z
2020-12-27T09:36:28.000Z
store/migrations/0011_watch_slug.py
StilyanMinchev/OnlineStore
9f4c5a4d13150d753a0a85908c0cd56246106fb8
[ "MIT" ]
7
2021-06-05T00:01:05.000Z
2022-03-12T00:52:05.000Z
store/migrations/0011_watch_slug.py
StilyanMinchev/OnlineStore
9f4c5a4d13150d753a0a85908c0cd56246106fb8
[ "MIT" ]
1
2020-12-27T09:36:31.000Z
2020-12-27T09:36:31.000Z
# Generated by Django 3.1.3 on 2020-12-13 08:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('store', '0010_auto_20201212_2058'), ] operations = [ migrations.AddField( model_name='watch', name='slug', ...
21.35
62
0.594848
334
0.782201
0
0
0
0
0
0
92
0.215457
7f9f23fa80527780dae80cad8f55b90a2cf98725
11,329
py
Python
main.py
SantiagoBeltranO/teenscooktoo
8a73981c67ca80eb774cecc7d34e7b0e547c5da9
[ "MIT" ]
null
null
null
main.py
SantiagoBeltranO/teenscooktoo
8a73981c67ca80eb774cecc7d34e7b0e547c5da9
[ "MIT" ]
null
null
null
main.py
SantiagoBeltranO/teenscooktoo
8a73981c67ca80eb774cecc7d34e7b0e547c5da9
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- import os import jinja2 import webapp2 from models.models import * from google.appengine.ext import blobstore from google.appengine.ext.webapp import blobstore_handlers from libs import mylib template_dir = os.path.join(os.path.dirname(__file__), 'views') jinja_env = jinja2.Environment (loade...
35.514107
116
0.57728
10,275
0.906884
0
0
0
0
0
0
1,236
0.109091
7fa0b2e0b6ffafed2c4103aacf903f5f57d207fd
108
py
Python
core/urls.py
pouya007RN/Voice-Changer
829e5a9ed6332b692d3f9f73b36c2d773f44182b
[ "MIT" ]
null
null
null
core/urls.py
pouya007RN/Voice-Changer
829e5a9ed6332b692d3f9f73b36c2d773f44182b
[ "MIT" ]
null
null
null
core/urls.py
pouya007RN/Voice-Changer
829e5a9ed6332b692d3f9f73b36c2d773f44182b
[ "MIT" ]
null
null
null
from .views import index from django.urls import path urlpatterns = [ path('', index, name='index'), ]
15.428571
34
0.675926
0
0
0
0
0
0
0
0
9
0.083333
7fa185743757eeee2b89a1731ab4ef8f9039d128
154
py
Python
shared/__init__.py
seenu-andi-rajendran/plagcomps
98e82cfb871f73bbd8f4ab1452c2b27a95beee83
[ "MIT" ]
2
2015-01-18T06:20:27.000Z
2021-03-19T21:19:16.000Z
shared/__init__.py
NoahCarnahan/plagcomps
98e82cfb871f73bbd8f4ab1452c2b27a95beee83
[ "MIT" ]
null
null
null
shared/__init__.py
NoahCarnahan/plagcomps
98e82cfb871f73bbd8f4ab1452c2b27a95beee83
[ "MIT" ]
2
2015-11-19T12:52:14.000Z
2016-11-11T17:00:50.000Z
# Required to use access this directory as a "package." Could add more to this file later! # See http://docs.python.org/2/tutorial/modules.html#packages
51.333333
91
0.75974
0
0
0
0
0
0
0
0
152
0.987013
7fa2a0f0ee0be54fb76852220d29ddc43297d130
937
py
Python
mytravelblog/accounts/tests/forms/tests_EditPasswordForm.py
yetoshimo/my-travel-blog
de67dd135e66f2dda121850d54fd56fd644b9bff
[ "MIT" ]
null
null
null
mytravelblog/accounts/tests/forms/tests_EditPasswordForm.py
yetoshimo/my-travel-blog
de67dd135e66f2dda121850d54fd56fd644b9bff
[ "MIT" ]
null
null
null
mytravelblog/accounts/tests/forms/tests_EditPasswordForm.py
yetoshimo/my-travel-blog
de67dd135e66f2dda121850d54fd56fd644b9bff
[ "MIT" ]
null
null
null
from django import test as django_tests from django.contrib.auth import get_user_model from mytravelblog.accounts.forms import UserLoginForm, EditPasswordForm UserModel = get_user_model() class EditPasswordFromTests(django_tests.TestCase): def setUp(self): self.username = 'testuser' self.passwor...
33.464286
107
0.693703
744
0.794023
0
0
0
0
0
0
100
0.106724
7fa380f39d2046691cd5b2cd72080ca55bc6fd09
295
py
Python
attic/operator/dispatch.py
matteoshen/example-code
b54c22a1b8cee3fc53d1473cb38ca46eb179b4c3
[ "MIT" ]
5,651
2015-01-06T21:58:46.000Z
2022-03-31T13:39:07.000Z
attic/operator/dispatch.py
matteoshen/example-code
b54c22a1b8cee3fc53d1473cb38ca46eb179b4c3
[ "MIT" ]
42
2016-12-11T19:17:11.000Z
2021-11-23T19:41:16.000Z
attic/operator/dispatch.py
matteoshen/example-code
b54c22a1b8cee3fc53d1473cb38ca46eb179b4c3
[ "MIT" ]
2,394
2015-01-18T10:57:38.000Z
2022-03-31T11:41:12.000Z
""" Experiments with infix operator dispatch >>> kadd = KnowsAdd() >>> kadd + 1 (<KnowsAdd object>, 1) >>> kadd * 1 """ class KnowsAdd: def __add__(self, other): return self, other def __repr__(self): return '<{} object>'.format(type(self).__name__)
16.388889
56
0.572881
153
0.518644
0
0
0
0
0
0
150
0.508475
7fa45f3fdd3c79db48d1ae0e9746ea8d56e463f4
125
py
Python
diary/admin.py
yokoc1322/day_has_a_name
6d4bb47d07e3cade2c89995f3a744244ce95158f
[ "MIT" ]
null
null
null
diary/admin.py
yokoc1322/day_has_a_name
6d4bb47d07e3cade2c89995f3a744244ce95158f
[ "MIT" ]
4
2021-03-19T01:28:08.000Z
2021-06-04T22:52:46.000Z
diary/admin.py
yokoc1322/day_has_a_name
6d4bb47d07e3cade2c89995f3a744244ce95158f
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Writer, Record admin.site.register(Writer) admin.site.register(Record)
20.833333
34
0.816
0
0
0
0
0
0
0
0
0
0
7fa5e85b7397fa24db26c6520e306df8fed85fb5
1,279
py
Python
cs498_positioning/kalman.py
liuzikai/UWB_Master
7ee360e15388912e26d2e624e8b8a288e7999963
[ "Apache-2.0" ]
1
2020-12-07T16:15:12.000Z
2020-12-07T16:15:12.000Z
cs498_positioning/kalman.py
liuzikai/UWB_Master
7ee360e15388912e26d2e624e8b8a288e7999963
[ "Apache-2.0" ]
null
null
null
cs498_positioning/kalman.py
liuzikai/UWB_Master
7ee360e15388912e26d2e624e8b8a288e7999963
[ "Apache-2.0" ]
1
2020-01-08T10:08:00.000Z
2020-01-08T10:08:00.000Z
from pykalman import KalmanFilter import numpy as np kf = KalmanFilter(transition_matrices=np.array([[1.0, 0.0, 0.0, 1.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 1.0, 0.0, 0.0, 1.0], ...
44.103448
102
0.433933
0
0
0
0
0
0
0
0
47
0.036747
7fa63fc07d4fb1ef716494e877960f58b0ca18d6
1,935
py
Python
year_3/databases_sem1/lab2/rdmslab2/api/dbmodels/payrolls.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_3/databases_sem1/lab2/rdmslab2/api/dbmodels/payrolls.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_3/databases_sem1/lab2/rdmslab2/api/dbmodels/payrolls.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
from api.models import Payroll class Payrolls(object): def __init__(self, cursor): """ :param cursor: MySQLdb.cursor.Cursor """ self.cursor = cursor cursor.execute('SET NAMES utf8;') cursor.execute('SET CHARACTER SET utf8;') cursor.execute('SET character_set...
23.888889
61
0.477519
1,901
0.982429
0
0
93
0.048062
0
0
765
0.395349
7fa65605f373bb773e7700052c14cdd58e55214a
929
py
Python
Python/eight_kyu/abbrev_name.py
Brokenshire/codewars-projects
db9cd09618b8a7085b0d53ad76f73f9e249b9396
[ "Apache-2.0" ]
1
2019-12-20T04:09:56.000Z
2019-12-20T04:09:56.000Z
Python/eight_kyu/abbrev_name.py
Brokenshire/codewars-projects
db9cd09618b8a7085b0d53ad76f73f9e249b9396
[ "Apache-2.0" ]
null
null
null
Python/eight_kyu/abbrev_name.py
Brokenshire/codewars-projects
db9cd09618b8a7085b0d53ad76f73f9e249b9396
[ "Apache-2.0" ]
null
null
null
# Python solution for 'Abbreviate a Two Word Name' codewars question. # Level: 8 kyu # Tags: FUNDAMENTALS, STRINGS, and ARRAYS. # Author: Jack Brokenshire # Date: 16/05/2020 import unittest def abbrev_name(name): """ Converts name of two words into initials. :param name: a string. :return: two capita...
28.151515
69
0.658773
421
0.453175
0
0
0
0
0
0
464
0.499462
7fa7c7a849af2d16d11ffa6cce19f13ddd50d411
1,876
py
Python
assets/python_scripts/cvScale.py
weiSupreme/weiSupreme.github.io
59d419f2d8207c7da0a427330b21546f4f0d85d0
[ "CC-BY-4.0" ]
3
2018-09-15T05:47:35.000Z
2019-04-08T07:00:02.000Z
assets/python_scripts/cvScale.py
weiSupreme/weiSupreme.github.io
59d419f2d8207c7da0a427330b21546f4f0d85d0
[ "CC-BY-4.0" ]
null
null
null
assets/python_scripts/cvScale.py
weiSupreme/weiSupreme.github.io
59d419f2d8207c7da0a427330b21546f4f0d85d0
[ "CC-BY-4.0" ]
null
null
null
import os import cv2 import random src_dir = "select2000/" name_idx = 6000 dest_img_dir = "scale/image/" dest_txt_dir = "scale/txt/" img_list = os.listdir(src_dir) def write_label(old_name, new_name, hratio_, wratio_): old_obj = open(src_dir+old_name) new_obj = open(dest_txt_dir+new_name, 'w') old_txt = ...
30.258065
244
0.591151
0
0
0
0
0
0
0
0
134
0.071429
7fa9c8f061e4bf8efdf7486f8dd64dceb09e0005
2,912
py
Python
segway_ros/src/segway/segway_system_wd.py
shengchen-liu/segway_v3
6469b92f66e6e05aeff26cb525520948119aacac
[ "BSD-3-Clause" ]
null
null
null
segway_ros/src/segway/segway_system_wd.py
shengchen-liu/segway_v3
6469b92f66e6e05aeff26cb525520948119aacac
[ "BSD-3-Clause" ]
null
null
null
segway_ros/src/segway/segway_system_wd.py
shengchen-liu/segway_v3
6469b92f66e6e05aeff26cb525520948119aacac
[ "BSD-3-Clause" ]
null
null
null
"""-------------------------------------------------------------------- COPYRIGHT 2014 Stanley Innovation Inc. Software License Agreement: 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 m...
35.084337
91
0.65831
930
0.319368
0
0
0
0
0
0
2,109
0.724245
7faa1f86c7a3da87c151ad577e7101f3270f7242
340
py
Python
src/boot.py
macbury/pussificator
1a8a3e0d029ec6f22161dfc41349f82b5df55a9f
[ "MIT" ]
3
2019-01-09T09:54:25.000Z
2019-06-30T07:10:01.000Z
src/boot.py
macbury/pussificator
1a8a3e0d029ec6f22161dfc41349f82b5df55a9f
[ "MIT" ]
null
null
null
src/boot.py
macbury/pussificator
1a8a3e0d029ec6f22161dfc41349f82b5df55a9f
[ "MIT" ]
null
null
null
import logging import os from ruamel.yaml import YAML LOGGER = logging.getLogger('pussy') logging.basicConfig( level=logging.INFO, format="[%(asctime)s] %(levelname)s:%(name)s:%(message)s" ) CONFIG_PATH = os.path.join('./', 'config.yaml') LOGGER.info("Loading config: " + CONFIG_PATH) CONFIG = YAML(typ='safe').loa...
26.153846
59
0.717647
0
0
0
0
0
0
0
0
98
0.288235
7fad1ad0db50dcc08b312498186ef8fc1fe2906e
501
py
Python
app/helpers/response.py
trongdth/python-flask
a9db95a93d828e984399dc40735fe9db9aea974c
[ "MIT" ]
2
2020-06-30T18:03:12.000Z
2021-09-02T11:31:59.000Z
restapi/app/helpers/response.py
ninjadotorg/KPI
430617a1e85304a254cc7364d524d721b8d45b11
[ "MIT" ]
10
2020-09-05T23:29:52.000Z
2022-03-11T23:36:59.000Z
restapi/app/helpers/response.py
ninjadotorg/KPI
430617a1e85304a254cc7364d524d721b8d45b11
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from flask import jsonify def response_ok(value=None, message='', code=-1): result = { 'status': 1, 'message': message, 'code': code } if len(message) > 0: result['message'] = message if value is not None: result.update({'data': value}) return jsonify(result...
16.16129
50
0.636727
0
0
0
0
0
0
0
0
105
0.209581
7fae23033f24a25e823cfa616f0af4eaa950d635
3,344
py
Python
utest/resources/robotdata/datagenerator.py
guojiajiaok/RIDE
d797155ed931fe865e62fad20ffb4c60d9934e81
[ "ECL-2.0", "Apache-2.0" ]
775
2015-01-12T06:54:09.000Z
2022-03-25T05:18:05.000Z
utest/resources/robotdata/datagenerator.py
guojiajiaok/RIDE
d797155ed931fe865e62fad20ffb4c60d9934e81
[ "ECL-2.0", "Apache-2.0" ]
2,191
2015-05-19T16:49:09.000Z
2022-03-28T21:38:34.000Z
utest/resources/robotdata/datagenerator.py
guojiajiaok/RIDE
d797155ed931fe865e62fad20ffb4c60d9934e81
[ "ECL-2.0", "Apache-2.0" ]
382
2015-01-24T08:41:44.000Z
2022-03-13T10:14:20.000Z
#!/usr/bin/env python # Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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...
25.333333
120
0.639653
0
0
0
0
0
0
0
0
1,455
0.435108
7fae83cec822c86f4d08919e0c38bf973182583d
3,074
py
Python
pyrobolearn/policies/linear.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
2
2021-01-21T21:08:30.000Z
2022-03-29T16:45:49.000Z
pyrobolearn/policies/linear.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
null
null
null
pyrobolearn/policies/linear.py
Pandinosaurus/pyrobolearn
9cd7c060723fda7d2779fa255ac998c2c82b8436
[ "Apache-2.0" ]
1
2020-09-29T21:25:39.000Z
2020-09-29T21:25:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Provide the linear policy. The linear policy uses a linear parametric approximator to predict the action vector based on the state vector. """ from pyrobolearn.policies.policy import Policy from pyrobolearn.approximators import LinearApproximator __author__ = "Brian ...
45.880597
117
0.686727
2,181
0.709499
0
0
0
0
0
0
2,196
0.714379
7fb00f904badbb5beb0199c4114151cfe440b175
875
py
Python
C/resolve.py
staguchi0703/Nomura2020
9931419d9c1f6827a7fa1d417c568bf9954581d3
[ "MIT" ]
null
null
null
C/resolve.py
staguchi0703/Nomura2020
9931419d9c1f6827a7fa1d417c568bf9954581d3
[ "MIT" ]
null
null
null
C/resolve.py
staguchi0703/Nomura2020
9931419d9c1f6827a7fa1d417c568bf9954581d3
[ "MIT" ]
null
null
null
def resolve(): ''' code here ''' N = int(input()) A_list = [int(item) for item in input().split()] hp = sum(A_list) #leaf is_slove = True res = 1 # root prev = 1 prev_add_num = 0 delete_cnt = 0 if hp > 2**N: is_slove = False elif A_list[0] == 1: i...
23.026316
58
0.442286
0
0
0
0
0
0
0
0
46
0.052571
7fb037fc5e93403c24d4069718d9478ba79f717e
13,941
py
Python
mod_spotted_extended_light/mod_spotted_extended_light308.py
chipsi007/spoter-mods
0b8745cf06c651d84e356d16ce9d49f574dac81e
[ "WTFPL" ]
null
null
null
mod_spotted_extended_light/mod_spotted_extended_light308.py
chipsi007/spoter-mods
0b8745cf06c651d84e356d16ce9d49f574dac81e
[ "WTFPL" ]
null
null
null
mod_spotted_extended_light/mod_spotted_extended_light308.py
chipsi007/spoter-mods
0b8745cf06c651d84e356d16ce9d49f574dac81e
[ "WTFPL" ]
null
null
null
# -*- coding: utf-8 -*- import os import re import json import codecs import datetime import threading import urllib import urllib2 import string import random import BigWorld from constants import AUTH_REALM from gui.Scaleform.daapi.view.lobby.hangar.Hangar import Hangar from gui.battle_control import g_sessionProvi...
46.781879
197
0.582742
12,994
0.917202
0
0
1,622
0.114491
0
0
3,359
0.2371
7fb04acdd54e9cb4cbbbf41f4ccf06ce95b2ef6e
19,118
py
Python
sahara/service/edp/oozie/engine.py
ksshanam/sahara
0d259f7a71447cd0cefe4f11184cc2ee335f4e33
[ "Apache-2.0" ]
161
2015-01-05T11:46:42.000Z
2022-01-05T07:41:39.000Z
sahara/service/edp/oozie/engine.py
ksshanam/sahara
0d259f7a71447cd0cefe4f11184cc2ee335f4e33
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
sahara/service/edp/oozie/engine.py
ksshanam/sahara
0d259f7a71447cd0cefe4f11184cc2ee335f4e33
[ "Apache-2.0" ]
118
2015-01-29T06:34:35.000Z
2021-12-06T07:30:09.000Z
# Copyright (c) 2014 OpenStack Foundation # # 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 ...
40.850427
79
0.616016
17,791
0.930589
0
0
17,823
0.932263
0
0
2,918
0.152631
7fb04d7e5c955b6114c4a179c5490fcab0e0ff9c
3,497
py
Python
adjutantclient/osc/v1/tokens.py
openstack/python-adjutantclient
20d234bc370056184a0885e6e6f735db056668a2
[ "Apache-2.0" ]
6
2017-10-31T13:27:59.000Z
2019-01-28T22:09:25.000Z
adjutantclient/osc/v1/tokens.py
openstack/python-adjutantclient
20d234bc370056184a0885e6e6f735db056668a2
[ "Apache-2.0" ]
null
null
null
adjutantclient/osc/v1/tokens.py
openstack/python-adjutantclient
20d234bc370056184a0885e6e6f735db056668a2
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 Catalyst IT 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 ...
32.682243
78
0.654847
2,411
0.689448
0
0
0
0
0
0
1,074
0.30712
7fb19ef2495c344620752f4d76a363c1d3413606
3,126
py
Python
Chapter05/Low_Quality.py
PacktPublishing/Bioinformatics-with-Python-Cookbook-third-edition
94fc361fdadc15ec0d8b0cd101bfc3717a0ab50e
[ "MIT" ]
9
2021-10-01T23:00:46.000Z
2022-03-11T02:35:24.000Z
Chapter05/Low_Quality.py
PacktPublishing/Bioinformatics-with-Python-Cookbook-third-edition
94fc361fdadc15ec0d8b0cd101bfc3717a0ab50e
[ "MIT" ]
null
null
null
Chapter05/Low_Quality.py
PacktPublishing/Bioinformatics-with-Python-Cookbook-third-edition
94fc361fdadc15ec0d8b0cd101bfc3717a0ab50e
[ "MIT" ]
6
2021-11-17T15:46:48.000Z
2022-02-25T13:53:35.000Z
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.13.4 # kernelspec: # display_name: Python 3 (ipykernel) # language: python # name: python3 # --- # + import gzip import numpy as np import...
29.771429
150
0.627639
0
0
0
0
0
0
0
0
1,034
0.330774
7fb391590f55d21149c4442ca20b07a2041ace3f
6,835
py
Python
experiments/2_Maze_Neutrality/experiment/stimuli_creation/stim_csv_iterator.py
BranPap/gender_ideology
2b2b87e13cb7a8abd0403828fbc235768a774aaa
[ "MIT" ]
1
2021-03-30T03:12:05.000Z
2021-03-30T03:12:05.000Z
experiments/2_Maze_Neutrality/experiment/stimuli_creation/stim_csv_iterator.py
BranPap/gender_ideology
2b2b87e13cb7a8abd0403828fbc235768a774aaa
[ "MIT" ]
null
null
null
experiments/2_Maze_Neutrality/experiment/stimuli_creation/stim_csv_iterator.py
BranPap/gender_ideology
2b2b87e13cb7a8abd0403828fbc235768a774aaa
[ "MIT" ]
1
2021-03-30T03:41:32.000Z
2021-03-30T03:41:32.000Z
import json import pandas as pd import random df = pd.read_csv("experiment\stimuli_creation\maze_lexemes.csv") states = ["California","Alabama","Alaska","Arizona","Arkansas","Connecticut","Colorado","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Ma...
42.71875
582
0.574689
0
0
0
0
0
0
0
0
2,154
0.315143
7fb495b0933b679faafdbcf8c0bfaeffd39c71bb
737
py
Python
Choruslib/chorusio.py
kramundson/Chorus2
43be15e082f346dc45b94a7fadb141b3a6f8c37c
[ "MIT" ]
11
2019-05-23T13:28:39.000Z
2022-02-10T00:24:54.000Z
Choruslib/chorusio.py
kramundson/Chorus2
43be15e082f346dc45b94a7fadb141b3a6f8c37c
[ "MIT" ]
3
2019-03-15T01:47:53.000Z
2021-12-16T07:41:08.000Z
Choruslib/chorusio.py
kramundson/Chorus2
43be15e082f346dc45b94a7fadb141b3a6f8c37c
[ "MIT" ]
11
2019-02-28T08:17:02.000Z
2021-12-13T11:44:02.000Z
from pyfasta import Fasta def writebed(probelist, outbedfile): '''probe list format: chr\tstart\tend ''' outio = open(outbedfile, 'w') for pbnow in probelist: print(pbnow, file=outio) outio.close() def writefa(genomefile, bedfile, outfile): fastafile = Fasta(genomefile...
14.74
55
0.569878
0
0
0
0
0
0
0
0
90
0.122117
7fb5da94eb1a0567d0a8b0b1f7117ea8c8244199
77
py
Python
p001.py
scottwillmoore/project-euler
e8b24a72d88fc30e8ab701e2f56622c363600ea4
[ "MIT" ]
1
2018-07-09T09:19:58.000Z
2018-07-09T09:19:58.000Z
p001.py
scottwillmoore/project-euler
e8b24a72d88fc30e8ab701e2f56622c363600ea4
[ "MIT" ]
null
null
null
p001.py
scottwillmoore/project-euler
e8b24a72d88fc30e8ab701e2f56622c363600ea4
[ "MIT" ]
null
null
null
c = lambda n: n % 3 == 0 or n % 5 == 0 print(sum(filter(c, range(0, 1000))))
25.666667
38
0.532468
0
0
0
0
0
0
0
0
0
0
7fb602d2e2a1eb7cec67da9528c261af68059799
770
py
Python
source/Tutorials/Actions/client_0.py
dsauval/ros2_documentation
19627272befdd4affa3bdb5b99bedb28c9975584
[ "CC-BY-4.0" ]
291
2018-10-05T17:35:45.000Z
2022-03-29T02:46:57.000Z
source/Tutorials/Actions/client_0.py
dsauval/ros2_documentation
19627272befdd4affa3bdb5b99bedb28c9975584
[ "CC-BY-4.0" ]
978
2018-10-18T17:00:46.000Z
2022-03-29T12:25:21.000Z
source/Tutorials/Actions/client_0.py
dsauval/ros2_documentation
19627272befdd4affa3bdb5b99bedb28c9975584
[ "CC-BY-4.0" ]
883
2018-10-01T19:18:13.000Z
2022-03-28T03:03:09.000Z
import rclpy from rclpy.action import ActionClient from rclpy.node import Node from action_tutorials_interfaces.action import Fibonacci class FibonacciActionClient(Node): def __init__(self): super().__init__('fibonacci_action_client') self._action_client = ActionClient(self, Fibonacci, 'fibonacc...
22
72
0.727273
393
0.51039
0
0
0
0
0
0
46
0.05974
7fb60d8a8b3c137ea51b2200982c164df6a11a71
655
py
Python
label_demo.py
encela95dus/ios_pythonista_examples
e136cdcb05126f0f9b9f6fb6365870876b419619
[ "MIT" ]
36
2019-01-12T04:17:49.000Z
2022-03-31T05:33:29.000Z
label_demo.py
Backup-eric645/ios_pythonista_examples
e136cdcb05126f0f9b9f6fb6365870876b419619
[ "MIT" ]
null
null
null
label_demo.py
Backup-eric645/ios_pythonista_examples
e136cdcb05126f0f9b9f6fb6365870876b419619
[ "MIT" ]
15
2018-12-30T21:18:05.000Z
2022-01-30T13:17:07.000Z
import ui def make_label(text, font, alignment, background_color, x, y): w, h = ui.measure_string(text, font=font, alignment=alignment, max_width=0) #print(w,h) label = ui.Label(text=text, font=font, alignment=alignment, background_color=background_color, f...
31.190476
83
0.622901
0
0
0
0
0
0
0
0
171
0.261069
7fb6655e444707235655b6b04ce814593df93517
153
py
Python
dev.py
wabscale/flasq
ea5cba81c3259441f64e96a7c63d2234728100a3
[ "MIT" ]
1
2022-02-25T02:12:10.000Z
2022-02-25T02:12:10.000Z
dev.py
wabscale/flasq
ea5cba81c3259441f64e96a7c63d2234728100a3
[ "MIT" ]
null
null
null
dev.py
wabscale/flasq
ea5cba81c3259441f64e96a7c63d2234728100a3
[ "MIT" ]
null
null
null
from web import app from glob import glob app.run( debug=True, host='0.0.0.0', port=5000, extra_files=glob('./web/templates/**.html') )
15.3
47
0.627451
0
0
0
0
0
0
0
0
34
0.222222
7fb71d82abd96a4b2037456c5481862b49d126e5
6,010
py
Python
src/django/addr/addr/settings.py
deshk04/addressparser
03c33859bb585a6cf767e0f4d3dfd23cabd2d78b
[ "MIT" ]
null
null
null
src/django/addr/addr/settings.py
deshk04/addressparser
03c33859bb585a6cf767e0f4d3dfd23cabd2d78b
[ "MIT" ]
null
null
null
src/django/addr/addr/settings.py
deshk04/addressparser
03c33859bb585a6cf767e0f4d3dfd23cabd2d78b
[ "MIT" ]
null
null
null
""" Django settings for addr project. Generated by 'django-admin startproject' using Django 1.11.29. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os f...
29.033816
99
0.67604
0
0
0
0
0
0
0
0
4,003
0.666057
7fb79206ce5753b6ec8f399db4b0f99941b1fce3
1,243
py
Python
Hash PWs for Cisco/setupPW.py
NetworkNick-US/PythonScripts
b8441e4d433be59f4b3c4bd5c61543b2ef66ae4b
[ "MIT" ]
null
null
null
Hash PWs for Cisco/setupPW.py
NetworkNick-US/PythonScripts
b8441e4d433be59f4b3c4bd5c61543b2ef66ae4b
[ "MIT" ]
null
null
null
Hash PWs for Cisco/setupPW.py
NetworkNick-US/PythonScripts
b8441e4d433be59f4b3c4bd5c61543b2ef66ae4b
[ "MIT" ]
null
null
null
import getpass import os import platform import subprocess class Style: BLACK = '\033[30m' RED = '\033[31m' GREEN = '\033[32m' YELLOW = '\033[33m' BLUE = '\033[34m' MAGENTA = '\033[35m' CYAN = '\033[36m' WHITE = '\033[37m' UNDERLINE = '\033[4m' RESET = '\033[0m' BLUEBACKGRO...
29.595238
120
0.65889
280
0.225261
0
0
0
0
0
0
538
0.432824
7fb8126383e7f0de2870b766de35128210bc222a
2,197
py
Python
web-scraping-challenge/scrape_mars.py
Felicia620/web-scraping-challenge
6ad1087c940ad5b54ca5fcc889ee4a864b4ccead
[ "ADSL" ]
null
null
null
web-scraping-challenge/scrape_mars.py
Felicia620/web-scraping-challenge
6ad1087c940ad5b54ca5fcc889ee4a864b4ccead
[ "ADSL" ]
null
null
null
web-scraping-challenge/scrape_mars.py
Felicia620/web-scraping-challenge
6ad1087c940ad5b54ca5fcc889ee4a864b4ccead
[ "ADSL" ]
null
null
null
from bs4 import BeautifulSoup import requests import pymongo from splinter import Browser from flask import Flask, render_template, redirect from flask_pymongo import PyMongo import pandas as pd def init_browser(): executable_path = {"executable_path": "chromedriver"} return Browser("chrome", **execu...
27.810127
82
0.648612
0
0
0
0
0
0
0
0
492
0.223942
7fb8c4bd3537291e9cb99243f7a04c75639a3244
332
py
Python
proyo/templates/create/python/{{package_name}}/__main__.py
MatthewScholefield/proyo
ca5e0c55b7f8c2ea33dd4eea7525d36af48ea58b
[ "MIT" ]
null
null
null
proyo/templates/create/python/{{package_name}}/__main__.py
MatthewScholefield/proyo
ca5e0c55b7f8c2ea33dd4eea7525d36af48ea58b
[ "MIT" ]
3
2019-08-07T04:26:45.000Z
2019-08-07T05:21:17.000Z
proyo/templates/create/python/{{package_name}}/__main__.py
MatthewScholefield/proyo
ca5e0c55b7f8c2ea33dd4eea7525d36af48ea58b
[ "MIT" ]
null
null
null
# ~ if project_type == 'script': # ~ with proyo.config_as(var_regex=r'# ---(.*?)--- #'): # ---gen_license_header('#')--- # # ~ # from argparse import ArgumentParser def main(): parser = ArgumentParser(description='{{description or tagline or ""}}') args = parser.parse_args() if __name__ == '__main__': m...
20.75
75
0.60241
0
0
0
0
0
0
0
0
174
0.524096
7fb9490ea330e6c5777107c4f40c564b13d5c3b1
5,435
py
Python
get_sd_ou/databaseUtil.py
ErfanPY/siencedirect-authors-data
5ea248954efbdb4f84820870ed3e55a930c42732
[ "MIT" ]
null
null
null
get_sd_ou/databaseUtil.py
ErfanPY/siencedirect-authors-data
5ea248954efbdb4f84820870ed3e55a930c42732
[ "MIT" ]
null
null
null
get_sd_ou/databaseUtil.py
ErfanPY/siencedirect-authors-data
5ea248954efbdb4f84820870ed3e55a930c42732
[ "MIT" ]
null
null
null
import logging import mysql.connector from get_sd_ou.config import Config logger = logging.getLogger('mainLogger') def init_db(host=None, user=None, password=None, port=None): logger.debug('[databaseUtil][init_db][IN]') cnx = mysql.connector.connect( host = host or Config.DATABASE_HOST, ...
35.522876
117
0.673965
0
0
0
0
0
0
0
0
1,444
0.265685
7fba6b53744ed7ffa8875853e834cde754de773e
5,106
py
Python
xxhh/rank.py
jannson/Similar
975527fae5fe63ab63913fa1f24619d616331687
[ "MIT" ]
2
2015-12-17T17:25:44.000Z
2019-01-24T16:46:55.000Z
xxhh/rank.py
jannson/Similar
975527fae5fe63ab63913fa1f24619d616331687
[ "MIT" ]
null
null
null
xxhh/rank.py
jannson/Similar
975527fae5fe63ab63913fa1f24619d616331687
[ "MIT" ]
null
null
null
import sys, os, os.path, re import codecs import numpy as np from scipy.sparse import * from scipy import * from sklearn.externals import joblib import networkx as nx django_path = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(13, django_path) os.environ['DJANGO_SETTINGS_MODULE'] = 'xxhh.settings' from d...
33.372549
138
0.53584
3,958
0.775166
96
0.018801
0
0
0
0
1,101
0.215629
7fba717dbec6526dc8e6412f2a8a1599a712edeb
6,248
py
Python
qcfractal/tests/test_server.py
MolSSI/dqm_server
ceff64fe032590095e0f865bc1d0c2da4684404e
[ "BSD-3-Clause" ]
113
2018-08-04T20:33:41.000Z
2022-02-08T21:17:52.000Z
qcfractal/tests/test_server.py
MolSSI/dqm_server
ceff64fe032590095e0f865bc1d0c2da4684404e
[ "BSD-3-Clause" ]
665
2018-08-04T14:16:53.000Z
2022-03-25T15:37:41.000Z
qcfractal/tests/test_server.py
MolSSI/dqm_server
ceff64fe032590095e0f865bc1d0c2da4684404e
[ "BSD-3-Clause" ]
40
2018-08-16T21:41:02.000Z
2022-01-26T15:07:06.000Z
""" Tests the DQM Server class """ import json import os import threading import pytest import requests import qcfractal.interface as ptl from qcfractal import FractalServer, FractalSnowflake, FractalSnowflakeHandler from qcfractal.testing import ( await_true, find_open_port, pristine_loop, test_serv...
32.884211
116
0.645327
0
0
0
0
1,241
0.198624
0
0
1,878
0.300576
7fbaf525baf4d7f1485c7c18c534796d329fc79c
2,278
py
Python
WLED_WiFi/WLED_WiFi.py
nirkons/Prismatik-WLED-WiFi
7716d3c8e045c968a5c614b7847b51f0387ec548
[ "MIT" ]
null
null
null
WLED_WiFi/WLED_WiFi.py
nirkons/Prismatik-WLED-WiFi
7716d3c8e045c968a5c614b7847b51f0387ec548
[ "MIT" ]
null
null
null
WLED_WiFi/WLED_WiFi.py
nirkons/Prismatik-WLED-WiFi
7716d3c8e045c968a5c614b7847b51f0387ec548
[ "MIT" ]
null
null
null
import lightpack, socket, configparser, os from time import sleep import sys class WLED_WiFi: def __init__(self): self.loadConfig() self.lp = lightpack.Lightpack() self.status = False try: self.lp.connect() except lightpack.CannotConnectError as e: pr...
35.59375
76
0.47849
2,166
0.950834
0
0
0
0
0
0
434
0.190518
7fbb3e0a262f49733f933fde19767b6609edf780
16,513
py
Python
learning_experiments/src3/eval_trained_model.py
TommasoBendinelli/spatial_relations_experiments
cd165437835a37c947ccf13a77531a5a42d4c925
[ "MIT" ]
null
null
null
learning_experiments/src3/eval_trained_model.py
TommasoBendinelli/spatial_relations_experiments
cd165437835a37c947ccf13a77531a5a42d4c925
[ "MIT" ]
null
null
null
learning_experiments/src3/eval_trained_model.py
TommasoBendinelli/spatial_relations_experiments
cd165437835a37c947ccf13a77531a5a42d4c925
[ "MIT" ]
null
null
null
import argparse import os import os.path as osp import cv2 import numpy as np from scipy.stats import multivariate_normal from scipy.stats import norm import matplotlib # matplotlib.use('agg') from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import subprocess import shutil import chainer from ch...
36.452539
146
0.664507
0
0
0
0
0
0
0
0
3,408
0.206383
7fbb8f0f4fee8e352ae2772b0862fa10d84c521b
1,290
py
Python
temp/pattern.py
BlueBeret/ComputerGraphics-Assignment
5df905adfe8bcc958493337a80bd6eb75806bf6b
[ "MIT" ]
1
2022-03-11T14:03:37.000Z
2022-03-11T14:03:37.000Z
temp/pattern.py
BlueBeret/ComputerGraphics-Assignment
5df905adfe8bcc958493337a80bd6eb75806bf6b
[ "MIT" ]
null
null
null
temp/pattern.py
BlueBeret/ComputerGraphics-Assignment
5df905adfe8bcc958493337a80bd6eb75806bf6b
[ "MIT" ]
null
null
null
from tkinter import * root = Tk() canvas = Canvas(root, width=1000, height=1000, background="#FFFFFF") canvas.pack(expand=YES, fill=BOTH) def dot(x,y,size=1, color="#FF0000", outline=""): if size==1: canvas.create_line(x,y,x+1,y, fill=color, width=size) return canvas.create_ova...
29.318182
100
0.591473
0
0
0
0
0
0
0
0
41
0.031783
7fbc6027f656cd1c5bb097bcdf8644aa472c2b01
7,034
py
Python
AKextensions.py
bmilosh/Common-Information-and-Matroid-Ports
653908c2d1a4b9c1774573b1f95b870e7f99f875
[ "BSD-3-Clause" ]
1
2020-10-19T05:20:53.000Z
2020-10-19T05:20:53.000Z
AKextensions.py
bmilosh/Common-Information-and-Matroid-Ports
653908c2d1a4b9c1774573b1f95b870e7f99f875
[ "BSD-3-Clause" ]
null
null
null
AKextensions.py
bmilosh/Common-Information-and-Matroid-Ports
653908c2d1a4b9c1774573b1f95b870e7f99f875
[ "BSD-3-Clause" ]
null
null
null
from gurobipy import * from itertools import combinations from time import localtime, strftime, time import config from fibonew2 import ( AK2exp, InitMatNew, MatroidCompatible, Resol2m, bi, bs, disjoint, rankfinder, ib, sb) from timing import endlog, log def CheckOneAK(mbases,gset,rnk): ''' We check ...
43.419753
136
0.540517
0
0
0
0
0
0
0
0
2,104
0.299119
7fbcbad92e0529fe666dd21bc3e6c50e0d0a628f
7,160
py
Python
Multiobjective Optimization/Compass.py
joymallyac/Fairway
6aa11e4a182e7271059a473cd6857f91d1668e7f
[ "BSD-2-Clause" ]
6
2020-07-15T06:33:05.000Z
2022-03-22T14:02:09.000Z
Multiobjective Optimization/Compass.py
joymallyac/Fairway
6aa11e4a182e7271059a473cd6857f91d1668e7f
[ "BSD-2-Clause" ]
1
2020-07-15T06:34:43.000Z
2020-07-15T06:34:43.000Z
Multiobjective Optimization/Compass.py
joymallyac/Fairway
6aa11e4a182e7271059a473cd6857f91d1668e7f
[ "BSD-2-Clause" ]
1
2020-07-15T06:39:31.000Z
2020-07-15T06:39:31.000Z
import pandas as pd import numpy as np import random,time import math,copy from sklearn.linear_model import LogisticRegression from sklearn.model_selection import train_test_split from sklearn.tree import DecisionTreeRegressor from sklearn.metrics import classification_report, confusion_matrix, accuracy_score from skle...
53.834586
727
0.714246
0
0
0
0
0
0
0
0
2,241
0.312989
7fbccc8974c67902bc5ad1e661356673f890179b
2,814
py
Python
test_module.py
devsysenv/tests
6aa7635b281f2e186daa6375abb8050e44c02d6a
[ "MIT" ]
null
null
null
test_module.py
devsysenv/tests
6aa7635b281f2e186daa6375abb8050e44c02d6a
[ "MIT" ]
null
null
null
test_module.py
devsysenv/tests
6aa7635b281f2e186daa6375abb8050e44c02d6a
[ "MIT" ]
1
2022-03-09T12:23:26.000Z
2022-03-09T12:23:26.000Z
#!/usr/bin/env python import pytest import os import sys import logging logging.basicConfig() logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) from pathlib import Path from dselib.thread import initTLS initTLS() from constants import CONST from dselib.path import normalizePath from dselib.dir impo...
29.3125
93
0.702914
0
0
0
0
0
0
0
0
705
0.250533
7fbcf17f7708af8db907793b903a38dee32b4986
4,823
py
Python
pilemma/env/pilemma_env.py
cmackeen/pilemma
614542081c963063d0255af7b24395fae37b5934
[ "MIT" ]
null
null
null
pilemma/env/pilemma_env.py
cmackeen/pilemma
614542081c963063d0255af7b24395fae37b5934
[ "MIT" ]
6
2020-04-17T20:05:04.000Z
2022-03-12T00:24:39.000Z
pilemma/env/pilemma_env.py
cmackeen/pilemma
614542081c963063d0255af7b24395fae37b5934
[ "MIT" ]
null
null
null
import gym from gym import error, spaces, utils from gym.utils import seeding import numpy as np import pandas as pd import gym from gym import error, spaces, utils from gym.utils import seeding from pilemma.env.dai_auct import Urn import glob import os import random init_dai=1000 init_eth=0 ACTION_SKIP = 0 ACTION_...
28.538462
173
0.571014
4,328
0.897367
0
0
0
0
0
0
294
0.060958
7fbdd22fcfc2573215684df2e76cac9a67962312
154
py
Python
String/P151 - reverseWordsInString.py
HarshOza36/LeetCode_Problems
6d7035e0d681213ac602b9e0382dbfa87f8d4745
[ "MIT" ]
null
null
null
String/P151 - reverseWordsInString.py
HarshOza36/LeetCode_Problems
6d7035e0d681213ac602b9e0382dbfa87f8d4745
[ "MIT" ]
null
null
null
String/P151 - reverseWordsInString.py
HarshOza36/LeetCode_Problems
6d7035e0d681213ac602b9e0382dbfa87f8d4745
[ "MIT" ]
null
null
null
class Solution: def reverseWords(self, s: str) -> str: s = s.split(" ") s = [i for i in s if i != ""] return " ".join(s[::-1])
30.8
42
0.454545
154
1
0
0
0
0
0
0
8
0.051948
7fbe88d42805d4e48e13a5db9e5dcc9dd3f4444c
2,700
py
Python
kaggle-santa-2015/submission.py
gabormakrai/kaggle-santa-2015
fa383c7130b30e501a7533efd5d372ccde0e6f29
[ "Apache-2.0" ]
null
null
null
kaggle-santa-2015/submission.py
gabormakrai/kaggle-santa-2015
fa383c7130b30e501a7533efd5d372ccde0e6f29
[ "Apache-2.0" ]
null
null
null
kaggle-santa-2015/submission.py
gabormakrai/kaggle-santa-2015
fa383c7130b30e501a7533efd5d372ccde0e6f29
[ "Apache-2.0" ]
null
null
null
from haversine import haversine def loadOrder(fileName): print("Loading order from " + fileName + "...") order = [] # open the file with open(fileName) as infile: # read line by line for line in infile: # remove newline character from the end...
31.395349
154
0.534444
0
0
0
0
0
0
0
0
517
0.191481
7fbfa1a77953c005769371575397429508029495
4,425
py
Python
healthkit_to_sqlite/utils.py
cwkendall/healthkit-to-sqlite
f0bb31079370b7e25b17ddd057e68023763a0938
[ "Apache-2.0" ]
null
null
null
healthkit_to_sqlite/utils.py
cwkendall/healthkit-to-sqlite
f0bb31079370b7e25b17ddd057e68023763a0938
[ "Apache-2.0" ]
null
null
null
healthkit_to_sqlite/utils.py
cwkendall/healthkit-to-sqlite
f0bb31079370b7e25b17ddd057e68023763a0938
[ "Apache-2.0" ]
null
null
null
from xml.etree import ElementTree as ET import io import os.path import sys import gpxpy import builtins def find_all_tags(fp, tags, progress_callback=None): parser = ET.XMLPullParser(("start", "end")) root = None while True: chunk = fp.read(1024 * 1024) if not chunk: break ...
34.570313
115
0.598644
0
0
551
0.12452
0
0
0
0
764
0.172655
7fc0a9a618c9ad1b7397ee8f2734d93ece534de6
9,628
py
Python
tests/utils/test_kronecker.py
gtpash/rom-operator-inference-Python3
a5e05a4442121f7c536060194fec0166976b04b1
[ "MIT" ]
null
null
null
tests/utils/test_kronecker.py
gtpash/rom-operator-inference-Python3
a5e05a4442121f7c536060194fec0166976b04b1
[ "MIT" ]
null
null
null
tests/utils/test_kronecker.py
gtpash/rom-operator-inference-Python3
a5e05a4442121f7c536060194fec0166976b04b1
[ "MIT" ]
null
null
null
# utils/test_kronecker.py """Tests for rom_operator_inference.utils._kronecker.""" import pytest import numpy as np import rom_operator_inference as opinf # Index generation for fast self-product kronecker evaluation ================= def test_kron2c_indices(n_tests=100): """Test utils._kronecker.kron2c_indices...
34.141844
79
0.575301
0
0
0
0
0
0
0
0
3,047
0.316079
f68072e40e9326d2208563fb1dc9bb70cc1a0ff4
3,420
py
Python
gadann/updater.py
dpineo/gadann
ff5dce9a8fc6192ba1efd854672f593872116beb
[ "MIT" ]
null
null
null
gadann/updater.py
dpineo/gadann
ff5dce9a8fc6192ba1efd854672f593872116beb
[ "MIT" ]
null
null
null
gadann/updater.py
dpineo/gadann
ff5dce9a8fc6192ba1efd854672f593872116beb
[ "MIT" ]
null
null
null
# # GADANN - GPU Accelerated Deep Artificial Neural Network # # Copyright (C) 2014 Daniel Pineo (daniel@pineo.net) # # 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 restricti...
37.173913
142
0.65614
2,108
0.616374
0
0
0
0
0
0
1,205
0.352339
f682fe676c7e1a1a9637f751482cd8ab906a78f3
880
py
Python
Aula37/View/testesquad.py
PabloSchumacher/TrabalhosPython
828edd35eb40442629211bc9f1477f75fb025d74
[ "bzip2-1.0.6", "MIT" ]
null
null
null
Aula37/View/testesquad.py
PabloSchumacher/TrabalhosPython
828edd35eb40442629211bc9f1477f75fb025d74
[ "bzip2-1.0.6", "MIT" ]
null
null
null
Aula37/View/testesquad.py
PabloSchumacher/TrabalhosPython
828edd35eb40442629211bc9f1477f75fb025d74
[ "bzip2-1.0.6", "MIT" ]
null
null
null
import sys sys.path.append( r"C:\Users\900157\Documents\Github\TrabalhosPython\Aula37" ) from Controller.squad_controller import SquadController from Model.squad import Squad squad = Squad() squad.nome = 'JooJ' squad.descricao = 'Intermediário' squad.npessoas = 20 squad.backend.nome = 'Lua' #Adicionar squad.b...
38.26087
77
0.671591
0
0
0
0
0
0
0
0
351
0.398411
f684bccdded45f6ae63003186c9bee87eac9d795
5,427
py
Python
restapi/resources/login.py
fossabot/http-api
57a646884e62fe024f6dd7edcc572c85f2955f16
[ "MIT" ]
null
null
null
restapi/resources/login.py
fossabot/http-api
57a646884e62fe024f6dd7edcc572c85f2955f16
[ "MIT" ]
null
null
null
restapi/resources/login.py
fossabot/http-api
57a646884e62fe024f6dd7edcc572c85f2955f16
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime, timedelta import pytz from restapi.rest.definition import EndpointResource from restapi.exceptions import RestApiException from restapi.connectors.authentication import HandleSecurity from restapi import decorators from restapi.confs import WRAP_RESPONSE from re...
32.112426
87
0.575456
5,064
0.933112
0
0
2,631
0.484798
0
0
1,160
0.213746
f684dba1f0e8b0d64fb281ab8830a5710f866b0a
13,196
py
Python
bot.py
egor5q/casino
732c35e2f87074be86329ad4706098d23f52fc4b
[ "MIT" ]
null
null
null
bot.py
egor5q/casino
732c35e2f87074be86329ad4706098d23f52fc4b
[ "MIT" ]
null
null
null
bot.py
egor5q/casino
732c35e2f87074be86329ad4706098d23f52fc4b
[ "MIT" ]
1
2019-05-18T16:19:20.000Z
2019-05-18T16:19:20.000Z
# -*- coding: utf-8 -*- import redis import os import telebot import math import random import threading from telebot import types from emoji import emojize from pymongo import MongoClient token = os.environ['TELEGRAM_TOKEN'] bot = telebot.TeleBot(token) admins=[441399484] games={} client1=os.environ['database'] clie...
39.508982
221
0.510533
0
0
0
0
4,674
0.328877
0
0
4,321
0.304039
f6852dfc604081fcd05261f22cc95fbff38847fc
2,317
py
Python
qrogue/game/logic/collectibles/collectible.py
7Magic7Mike7/Qrogue
70bd5671a77981c1d4b633246321ba44f13c21ff
[ "MIT" ]
4
2021-12-14T19:13:43.000Z
2022-02-16T13:25:38.000Z
qrogue/game/logic/collectibles/collectible.py
7Magic7Mike7/Qrogue
70bd5671a77981c1d4b633246321ba44f13c21ff
[ "MIT" ]
null
null
null
qrogue/game/logic/collectibles/collectible.py
7Magic7Mike7/Qrogue
70bd5671a77981c1d4b633246321ba44f13c21ff
[ "MIT" ]
1
2022-01-04T18:35:51.000Z
2022-01-04T18:35:51.000Z
import math from abc import ABC, abstractmethod from enum import Enum from typing import Iterator class CollectibleType(Enum): Consumable = 1 Gate = 2 ActiveItem = 3 PassiveItem = 4 Pickup = 5 Qubit = 6 Multi = 0 # wraps multiple collectibles def type_str(c_type: CollectibleType) -> s...
22.715686
69
0.616314
2,069
0.892965
0
0
447
0.192922
0
0
149
0.064307
f685eb18698eec9ccc94c0ce1603ea2b34b10c5c
2,952
py
Python
flux/resources/workflow.py
siq/flux
ca7563deb9ebef14840bbf0cb7bab4d9478b2470
[ "Linux-OpenIB" ]
null
null
null
flux/resources/workflow.py
siq/flux
ca7563deb9ebef14840bbf0cb7bab4d9478b2470
[ "Linux-OpenIB" ]
null
null
null
flux/resources/workflow.py
siq/flux
ca7563deb9ebef14840bbf0cb7bab4d9478b2470
[ "Linux-OpenIB" ]
null
null
null
from mesh.standard import * from scheme import * __all__ = ('Workflow',) Layout = Sequence(Structure({ 'title': Text(), 'view': Token(), 'elements': Sequence(Structure({ 'type': Token(nonempty=True), 'field': Token(nonempty=True), 'label': Text(), 'options': Field(), })...
31.073684
77
0.570122
2,529
0.856707
0
0
0
0
0
0
595
0.201558
f6862c3a762adb42778672f66157ed1731e5cdfe
1,079
py
Python
Most Asked DSA By Companies/Meta/3-973.py
neelaadityakumar/leetcode
e78e0b8dc0113bdc1721bf7d025a463bea04847f
[ "MIT" ]
null
null
null
Most Asked DSA By Companies/Meta/3-973.py
neelaadityakumar/leetcode
e78e0b8dc0113bdc1721bf7d025a463bea04847f
[ "MIT" ]
null
null
null
Most Asked DSA By Companies/Meta/3-973.py
neelaadityakumar/leetcode
e78e0b8dc0113bdc1721bf7d025a463bea04847f
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/k-closest-points-to-origin/ # 973. K Closest Points to Origin # Medium # Share # Given an array of points where points[i] = [xi, yi] represents a point on the X-Y plane and an integer k, return the k closest points to the origin (0, 0). # The distance between two points on the X-Y plane...
34.806452
157
0.644115
0
0
0
0
0
0
0
0
1,051
0.972248
f6866a52596fe4972475bf119793b740f2d4ea78
1,232
py
Python
src/huaytools/pytorch/modules/loss/cosine_similarity.py
imhuay/studies-gitbook
69a31c20c91d131d0fafce0622f4035b9b95e93a
[ "MIT" ]
100
2021-10-13T01:22:27.000Z
2022-03-31T09:52:49.000Z
src/huaytools/pytorch/modules/loss/cosine_similarity.py
imhuay/studies-gitbook
69a31c20c91d131d0fafce0622f4035b9b95e93a
[ "MIT" ]
null
null
null
src/huaytools/pytorch/modules/loss/cosine_similarity.py
imhuay/studies-gitbook
69a31c20c91d131d0fafce0622f4035b9b95e93a
[ "MIT" ]
27
2021-11-01T01:05:09.000Z
2022-03-31T03:32:01.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- """ Time: 2021-10-13 8:30 下午 Author: huayang Subject: """ import os import sys import json import doctest from typing import * from collections import defaultdict from torch.nn import functional as F # noqa from huaytools.pytorch.modules.loss.mean_squared_error import...
21.614035
95
0.624188
0
0
0
0
0
0
0
0
803
0.624417
f688e307748f33124d94de4e0957467d5780593f
866
py
Python
Tree/98. 验证二叉搜索树.py
graveszhang/LeetCode-Practice
72be5ce43048461e0b702b84eee1f2f86f356d11
[ "MIT" ]
null
null
null
Tree/98. 验证二叉搜索树.py
graveszhang/LeetCode-Practice
72be5ce43048461e0b702b84eee1f2f86f356d11
[ "MIT" ]
null
null
null
Tree/98. 验证二叉搜索树.py
graveszhang/LeetCode-Practice
72be5ce43048461e0b702b84eee1f2f86f356d11
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right # if root.left and root.right: # if v <= root.left.val or v >= root.right.val: return False # elif ...
30.928571
72
0.553118
396
0.457275
0
0
0
0
0
0
399
0.460739
f689b3c7d9297254645c801a0aa3f131ae851790
11,197
py
Python
scNLP_spaCy_GeneExpression_word2vec.py
alexcwsmith/scNLP
1691316f1dc13774fa05b0e6ea075941667fa6b0
[ "MIT" ]
1
2021-06-23T13:07:29.000Z
2021-06-23T13:07:29.000Z
scNLP_spaCy_GeneExpression_word2vec.py
alexcwsmith/scNLP
1691316f1dc13774fa05b0e6ea075941667fa6b0
[ "MIT" ]
null
null
null
scNLP_spaCy_GeneExpression_word2vec.py
alexcwsmith/scNLP
1691316f1dc13774fa05b0e6ea075941667fa6b0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jul 1 12:48:08 2020 @author: smith """ import spacy from gensim.test.utils import common_texts, get_tmpfile from gensim.models import Word2Vec from gensim.models.phrases import Phrases, Phraser import os import multiprocessing import csv import re impo...
42.093985
183
0.662945
0
0
0
0
0
0
0
0
3,691
0.329642
f689cb30eecdf29de4c6be77cd697849835314bd
180
py
Python
cvp/setup.py
hashnfv/hashnfv-dovetail
73f332fc513f184513be483db6a108bd3c7b7d9b
[ "Apache-2.0" ]
1
2017-11-03T01:06:51.000Z
2017-11-03T01:06:51.000Z
cvp/setup.py
hashnfv/hashnfv-dovetail
73f332fc513f184513be483db6a108bd3c7b7d9b
[ "Apache-2.0" ]
null
null
null
cvp/setup.py
hashnfv/hashnfv-dovetail
73f332fc513f184513be483db6a108bd3c7b7d9b
[ "Apache-2.0" ]
2
2017-09-05T13:38:20.000Z
2017-10-12T21:56:11.000Z
import setuptools __author__ = 'serena' try: import multiprocessing # noqa except ImportError: pass setuptools.setup( setup_requires=['pbr==2.0.0'], pbr=True)
12.857143
34
0.683333
0
0
0
0
0
0
0
0
26
0.144444
f68a9ad9cd1070d7dee249f1f3d7af1fd606f8ce
3,406
py
Python
data_utils/preprocess.py
AnastasiiaNovikova/sentiment-discovery
eaae55921038d674e2f16fbd0bfd2e63194a9545
[ "BSD-3-Clause" ]
null
null
null
data_utils/preprocess.py
AnastasiiaNovikova/sentiment-discovery
eaae55921038d674e2f16fbd0bfd2e63194a9545
[ "BSD-3-Clause" ]
null
null
null
data_utils/preprocess.py
AnastasiiaNovikova/sentiment-discovery
eaae55921038d674e2f16fbd0bfd2e63194a9545
[ "BSD-3-Clause" ]
1
2019-03-13T11:43:13.000Z
2019-03-13T11:43:13.000Z
import os import re import html import unidecode import torch HTML_CLEANER_REGEX = re.compile('<.*?>') def clean_html(text): """remove html div tags""" return re.sub(HTML_CLEANER_REGEX, ' ', text) def binarize_labels(labels, hard=True): """If hard, binarizes labels to values of 0 & 1. If soft thresholds...
31.537037
139
0.654433
0
0
0
0
0
0
0
0
1,085
0.318555
f68c3bc365dd845146ca474b6dad80a6bde410a7
659
py
Python
Python/_10_09/2.3.19.py
MBkkt/Homework
db92bdb9262f1737d637f01d5cf2d3680e379a7b
[ "MIT" ]
1
2019-04-07T18:27:29.000Z
2019-04-07T18:27:29.000Z
Python/_10_09/2.3.19.py
MBkkt/Homework
db92bdb9262f1737d637f01d5cf2d3680e379a7b
[ "MIT" ]
1
2019-10-02T23:01:01.000Z
2019-10-02T23:01:01.000Z
Python/_10_09/2.3.19.py
MBkkt/Homework
db92bdb9262f1737d637f01d5cf2d3680e379a7b
[ "MIT" ]
2
2018-10-19T22:42:54.000Z
2019-03-10T14:57:59.000Z
""" Комбинации. Составьте программу combinations. ру, получающую из командной строки один аргумент n и выводящую все 2" комбинаций любого размера. Комбинация - это подмножество из п элементов, независимо от порядка. Например, когда п = 3, вы должны получить следующий вывод: а аЬ аЬс ас Ь ьс с Обратите внимание, чт...
34.684211
123
0.70258
0
0
0
0
0
0
0
0
706
0.741597
f68c40097ffb41e51b2152c6fd56a2d8749d4869
2,445
py
Python
KerasTest_XOR.py
RaduGrig/DeepLearning
96bc451ea2c77f184df9c015a57068ada4363727
[ "Apache-2.0" ]
null
null
null
KerasTest_XOR.py
RaduGrig/DeepLearning
96bc451ea2c77f184df9c015a57068ada4363727
[ "Apache-2.0" ]
null
null
null
KerasTest_XOR.py
RaduGrig/DeepLearning
96bc451ea2c77f184df9c015a57068ada4363727
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jun 16 22:19:57 2017 @author: RaduGrig @inspiration: NikCleju """ # import stuff from keras.optimizers import Adam from keras.models import Sequential from keras.layers import Dense, Activation import numpy as np import matplotlib.pyplot as plot #Params DataPoints = 100 No...
31.753247
97
0.686299
0
0
0
0
0
0
0
0
429
0.17546
f68cede11c2ec066665c8fcba60338febd58bbff
221
py
Python
lib/opentok/__init__.py
Rudi9719/booksearch-web
c48300e04ebdf2f01a990c67d4ff63d282da8168
[ "Apache-2.0" ]
null
null
null
lib/opentok/__init__.py
Rudi9719/booksearch-web
c48300e04ebdf2f01a990c67d4ff63d282da8168
[ "Apache-2.0" ]
null
null
null
lib/opentok/__init__.py
Rudi9719/booksearch-web
c48300e04ebdf2f01a990c67d4ff63d282da8168
[ "Apache-2.0" ]
null
null
null
from .opentok import OpenTok, Roles, MediaModes, ArchiveModes from .session import Session from .archives import Archive, ArchiveList, OutputModes from .exceptions import OpenTokException from .version import __version__
36.833333
61
0.841629
0
0
0
0
0
0
0
0
0
0
f68d61972a56264e1422d85b1127e77df23bf4c2
2,130
py
Python
src/rubrik_config/rubrik_config_base.py
rubrikinc/rubrik-config-backup
4c421f5090064372f6e89673a5d445de8248ddda
[ "MIT" ]
2
2021-01-27T21:15:24.000Z
2021-06-08T17:31:15.000Z
src/rubrik_config/rubrik_config_base.py
rubrikinc/rubrik-config-backup
4c421f5090064372f6e89673a5d445de8248ddda
[ "MIT" ]
1
2020-12-10T07:01:09.000Z
2020-12-10T07:01:09.000Z
src/rubrik_config/rubrik_config_base.py
rubrikinc/rubrik-config-backup
4c421f5090064372f6e89673a5d445de8248ddda
[ "MIT" ]
null
null
null
import abc import json import os from rubrik_config import helpers class RubrikConfigBase(abc.ABC): def __init__(self, path, rubrik, logger): self.path = path self.rubrik = rubrik self.logger = logger self.cluster_version = self.rubrik.cluster_version() self.cluster_name...
26.296296
89
0.567606
2,059
0.966667
0
0
799
0.375117
0
0
788
0.369953
f68d9b8db5553fd496f890e0ba612aaca3bab81b
26,309
py
Python
Gather_Data.py
batumoglu/Home_Credit
bf3f918bafdc0e9be1c24809068fac1242fff881
[ "Apache-2.0" ]
1
2019-11-04T08:49:34.000Z
2019-11-04T08:49:34.000Z
Gather_Data.py
batumoglu/Home_Credit
bf3f918bafdc0e9be1c24809068fac1242fff881
[ "Apache-2.0" ]
null
null
null
Gather_Data.py
batumoglu/Home_Credit
bf3f918bafdc0e9be1c24809068fac1242fff881
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon May 28 19:51:12 2018 @author: ozkan """ import pandas as pd import numpy as np #from sklearn.preprocessing import MinMaxScaler, LabelEncoder from scipy import stats import gc import GatherTables def one_hot_encoder(df): original_columns = list(df....
47.661232
130
0.656505
0
0
0
0
0
0
0
0
7,412
0.281729
f68df4f6b83e61acb9a971c85b9efef84578fc72
216
py
Python
ois/data_request.py
pandincus/ois-service
7ed45ea5a758f5b529d823aeda60b73a89da66e2
[ "MIT" ]
3
2018-07-09T04:02:01.000Z
2018-08-29T09:57:36.000Z
ois/data_request.py
pandincus/ois-service
7ed45ea5a758f5b529d823aeda60b73a89da66e2
[ "MIT" ]
null
null
null
ois/data_request.py
pandincus/ois-service
7ed45ea5a758f5b529d823aeda60b73a89da66e2
[ "MIT" ]
null
null
null
from .data_request_type import DataRequestType class DataRequest(): def __init__(self, fieldName, requestType): self.fieldName = fieldName self.requestType = requestType self.value = 0
21.6
47
0.699074
166
0.768519
0
0
0
0
0
0
0
0
f68e6d7c7601724ef28e0085ff5c928432db3954
15,242
py
Python
doc/source/conf.py
OpenTreeOfLife/nexson
d2c803b58300ed5024bc1be98e280cfa8fefeb2e
[ "BSD-2-Clause" ]
null
null
null
doc/source/conf.py
OpenTreeOfLife/nexson
d2c803b58300ed5024bc1be98e280cfa8fefeb2e
[ "BSD-2-Clause" ]
null
null
null
doc/source/conf.py
OpenTreeOfLife/nexson
d2c803b58300ed5024bc1be98e280cfa8fefeb2e
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Sphinx configuration for nexson. Largely based on Jeet Sukumaran's conf.py in DendroPy. """ import sys import os import time from sphinx.ext import autodoc from nexson import __version__ as PROJECT_VERSION # -- Sphinx Hackery ------------------------------------------------ # Following ...
32.778495
106
0.708831
1,127
0.07394
0
0
0
0
0
0
12,961
0.850348
f68e8c40892b76a4713ca99cffde2e9dcbf87b67
2,105
py
Python
prev_ob_models/exclude/GilraBhalla2015/synapses/mitral_granule_NMDA.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
null
null
null
prev_ob_models/exclude/GilraBhalla2015/synapses/mitral_granule_NMDA.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
null
null
null
prev_ob_models/exclude/GilraBhalla2015/synapses/mitral_granule_NMDA.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import math # The PYTHONPATH should contain the location of moose.py and _moose.so # files. Putting ".." with the assumption that moose.py and _moose.so # has been generated in ${MOOSE_SOURCE_DIRECTORY}/pymoose/ (as default # pymoose build does) and this file i...
38.981481
106
0.679335
1,481
0.703563
0
0
0
0
0
0
1,168
0.554869
f6900c8bcfbed26d0c4e1219d03eea149f0418aa
31,420
py
Python
marltoolbox/experiments/rllib_api/amtft_various_env.py
longtermrisk/marltoolbox
cae1ba94ccb44700b66a32e0734a0f11c9c6c7fe
[ "MIT" ]
17
2021-01-17T21:21:08.000Z
2022-01-27T00:57:30.000Z
marltoolbox/experiments/rllib_api/amtft_various_env.py
longtermrisk/marltoolbox
cae1ba94ccb44700b66a32e0734a0f11c9c6c7fe
[ "MIT" ]
5
2021-02-21T21:43:00.000Z
2021-05-04T12:27:23.000Z
marltoolbox/experiments/rllib_api/amtft_various_env.py
longtermrisk/marltoolbox
cae1ba94ccb44700b66a32e0734a0f11c9c6c7fe
[ "MIT" ]
3
2021-02-21T11:38:22.000Z
2022-03-04T12:06:19.000Z
import copy import logging import os import ray from ray import tune from ray.rllib.agents import dqn from ray.rllib.agents.dqn.dqn_torch_policy import postprocess_nstep_and_prio from ray.rllib.utils import merge_dicts from ray.rllib.utils.schedules import PiecewiseSchedule from ray.tune.integration.wandb import Wandb...
38.646986
125
0.614258
0
0
0
0
0
0
0
0
12,495
0.397677
f690fa8f1e57e3fdc1e97a3ebbefe8d097b05980
1,370
py
Python
src/core/utils/win32/media_control.py
younger-1/yasb
d0ad23e65eb481f7c05dde1e040f55bec2aa6689
[ "MIT" ]
53
2021-11-02T21:04:25.000Z
2022-03-30T12:45:55.000Z
src/core/utils/win32/media_control.py
younger-1/yasb
d0ad23e65eb481f7c05dde1e040f55bec2aa6689
[ "MIT" ]
12
2021-12-02T05:06:18.000Z
2022-03-20T13:39:07.000Z
src/core/utils/win32/media_control.py
younger-1/yasb
d0ad23e65eb481f7c05dde1e040f55bec2aa6689
[ "MIT" ]
4
2022-01-18T06:17:56.000Z
2022-03-30T13:18:55.000Z
from winrt.windows.media.control import GlobalSystemMediaTransportControlsSessionManager from winrt.windows.storage.streams import DataReader, Buffer, InputStreamOptions async def get_current_session(): """ current_session.try_play_async() current_session.try_pause_async() current_session.try_toggle_p...
36.052632
88
0.766423
0
0
0
0
0
0
1,191
0.869343
288
0.210219
f69101537e1714c27d7b564d92d8f58ca2160bfc
4,001
py
Python
lawerWeb/settings.py
xia-deng/lawerWeb
6d2fe3642b2b7fbdda568e3af240bbcf6fda6c48
[ "Apache-2.0" ]
null
null
null
lawerWeb/settings.py
xia-deng/lawerWeb
6d2fe3642b2b7fbdda568e3af240bbcf6fda6c48
[ "Apache-2.0" ]
null
null
null
lawerWeb/settings.py
xia-deng/lawerWeb
6d2fe3642b2b7fbdda568e3af240bbcf6fda6c48
[ "Apache-2.0" ]
null
null
null
""" Django settings for lawerWeb project. Generated by 'django-admin startproject' using Django 2.1.3. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os ...
27.784722
121
0.699075
0
0
0
0
0
0
0
0
2,914
0.709866
f691044e8c6bcf3b4b49b0a2b8a4fe8c5bbb4023
91
py
Python
kriging/__init__.py
solab-ntu/kriging
1f9b4144dd5a18c63f212473216593d5f1722c14
[ "MIT" ]
null
null
null
kriging/__init__.py
solab-ntu/kriging
1f9b4144dd5a18c63f212473216593d5f1722c14
[ "MIT" ]
null
null
null
kriging/__init__.py
solab-ntu/kriging
1f9b4144dd5a18c63f212473216593d5f1722c14
[ "MIT" ]
null
null
null
from .kparam import Kparam from .variogram import Variogram from .utilities import predict
22.75
32
0.835165
0
0
0
0
0
0
0
0
0
0
f691db8dd8822bcebc9d504797dbc6f906497158
900
py
Python
hparams.py
SuzukiDaishi/AutoVC.pytorch
0ce6f2dd5b6e34f812c56fc1466bb3444ef837bd
[ "MIT" ]
25
2020-06-09T14:44:14.000Z
2022-03-26T11:19:47.000Z
hparams.py
SuzukiDaishi/AutoVC.pytorch
0ce6f2dd5b6e34f812c56fc1466bb3444ef837bd
[ "MIT" ]
2
2020-10-27T02:31:28.000Z
2021-02-21T02:47:02.000Z
hparams.py
SuzukiDaishi/AutoVC.pytorch
0ce6f2dd5b6e34f812c56fc1466bb3444ef837bd
[ "MIT" ]
4
2020-10-27T02:03:35.000Z
2022-03-26T11:19:41.000Z
class hparams: sample_rate = 16000 n_fft = 1024 #fft_bins = n_fft // 2 + 1 num_mels = 80 hop_length = 256 win_length = 1024 fmin = 90 fmax = 7600 min_level_db = -100 ref_level_db = 20 seq_len_factor = 64 bits = 12 seq_len = seq_len_factor * hop_length d...
21.428571
45
0.61
899
0.998889
0
0
0
0
0
0
53
0.058889
f69215f25e7debe516c3b3acd6ad6f0976bbd082
1,338
py
Python
custom_components/hdhomerun/__init__.py
Berserkir-Wolf/ha-hdhomerun
2d62d37c21b4ee712c86b7f5241b39e5d42d90e7
[ "MIT" ]
4
2021-04-22T13:41:25.000Z
2022-03-04T17:10:50.000Z
custom_components/hdhomerun/__init__.py
Berserkir-Wolf/ha-hdhomerun
2d62d37c21b4ee712c86b7f5241b39e5d42d90e7
[ "MIT" ]
null
null
null
custom_components/hdhomerun/__init__.py
Berserkir-Wolf/ha-hdhomerun
2d62d37c21b4ee712c86b7f5241b39e5d42d90e7
[ "MIT" ]
null
null
null
"""The HDHomeRun component.""" import voluptuous as vol import homeassistant.helpers.config_validation as cv from homeassistant import config_entries from homeassistant.const import CONF_PORT from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN from .const import DOMAIN, CONF_HOST DEVICE_SCHEMA = vol....
23.473684
78
0.670404
0
0
0
0
0
0
752
0.562033
146
0.109118
f692bbf1983670a97677d806c68b916963e86d4a
2,542
py
Python
expRT/BTS_Material.py
EJ-Chang/OSD-Study
d7029879fa95406daf8f8e67a15bf859e7bcbce9
[ "MIT" ]
null
null
null
expRT/BTS_Material.py
EJ-Chang/OSD-Study
d7029879fa95406daf8f8e67a15bf859e7bcbce9
[ "MIT" ]
15
2020-04-17T08:38:50.000Z
2020-06-04T10:01:50.000Z
expRT/BTS_Material.py
EJ-Chang/OSD-Study
d7029879fa95406daf8f8e67a15bf859e7bcbce9
[ "MIT" ]
null
null
null
# Material buttonType = ['Arrow button', 'Radio button', 'Switch button', 'Option'] requestLUT = [ { 'name' : 'Radio', 'on' : 'OSD_ImgFolder/radio_on.png', 'off' : 'OSD_ImgFolder/radio_off.png', 'default' : 'off', 'hint_path' : 'OSD_ImgFolder/L4 off.png', 'hint': 0 }, { 'nam...
21.361345
84
0.486231
0
0
0
0
0
0
0
0
1,299
0.511015
f6973c3813278e555197312de18aff5e1c09e73a
2,142
py
Python
URMC_CTSI_openbadge_analysis/Demo.py
VerolaX/Capstone-URMC
754bff5699383d1270a2301d39f60ca4359952c7
[ "MIT" ]
1
2020-07-10T16:02:36.000Z
2020-07-10T16:02:36.000Z
URMC_CTSI_openbadge_analysis/Demo.py
txiao3/Capstone-URMC
754bff5699383d1270a2301d39f60ca4359952c7
[ "MIT" ]
1
2021-11-15T17:49:48.000Z
2021-11-15T17:49:48.000Z
URMC_CTSI_openbadge_analysis/Demo.py
VerolaX/Capstone-URMC
754bff5699383d1270a2301d39f60ca4359952c7
[ "MIT" ]
2
2019-11-15T19:44:27.000Z
2020-06-12T16:39:22.000Z
import Dynamic_Network_Graph_Exploration_py3 as dynamic import Data_Cleaning as dc #import heatmap_functions as heatmap #import Member_Distribution as dist ''' So far the main method only includes dynamic network graph functions Heatmap_functions and Member_Distribution functions to be added ''' def ma...
36.305085
92
0.639122
0
0
0
0
0
0
0
0
916
0.427638
f697ae39334810b9255aec06cc2f5e7c7c446c65
6,606
py
Python
evap/rewards/tests.py
karyon/EvaP
9026fe0af4e261be73423131cfc52a7e655c82e6
[ "MIT" ]
null
null
null
evap/rewards/tests.py
karyon/EvaP
9026fe0af4e261be73423131cfc52a7e655c82e6
[ "MIT" ]
null
null
null
evap/rewards/tests.py
karyon/EvaP
9026fe0af4e261be73423131cfc52a7e655c82e6
[ "MIT" ]
null
null
null
from django.conf import settings from django_webtest import WebTest from evap.evaluation.models import Course from evap.evaluation.models import UserProfile from evap.rewards.models import SemesterActivation from evap.rewards.models import RewardPointRedemptionEvent from evap.rewards.tools import reward_points_of_user ...
45.558621
117
0.690887
6,170
0.933999
0
0
0
0
0
0
2,338
0.353921
f69968193f8656cf1f5a6508a5e4bdf8cffb6a3d
1,416
py
Python
tests/test_seo_client.py
bedroesb/ddipy
fec0c6954c6455ac2487c93542564a41909f715f
[ "Apache-2.0" ]
1
2020-08-24T18:55:02.000Z
2020-08-24T18:55:02.000Z
tests/test_seo_client.py
bedroesb/ddipy
fec0c6954c6455ac2487c93542564a41909f715f
[ "Apache-2.0" ]
8
2020-02-04T10:19:45.000Z
2021-02-09T17:08:52.000Z
tests/test_seo_client.py
bedroesb/ddipy
fec0c6954c6455ac2487c93542564a41909f715f
[ "Apache-2.0" ]
2
2020-02-04T19:24:07.000Z
2020-05-06T15:57:44.000Z
from unittest import TestCase from ddipy.constants import MISSING_PARAMETER from ddipy.ddi_utils import BadRequest from ddipy.seo_client import SeoClient class TestSeoClient(TestCase): def test_seo_home(self): client = SeoClient() res = client.get_seo_home() assert len(res.graph) > 0 ...
29.5
124
0.637006
1,258
0.888418
0
0
0
0
0
0
187
0.132062
f6996c46ab316655cd0bf4a158ff83417ba37b8e
3,900
py
Python
construction/markdown.py
rik/mesconseilscovid
ff4b365a677da6bb73284ca5bba73651cde570e9
[ "MIT" ]
null
null
null
construction/markdown.py
rik/mesconseilscovid
ff4b365a677da6bb73284ca5bba73651cde570e9
[ "MIT" ]
null
null
null
construction/markdown.py
rik/mesconseilscovid
ff4b365a677da6bb73284ca5bba73651cde570e9
[ "MIT" ]
null
null
null
import re from textwrap import indent import mistune from jinja2 import Template from .directives.injection import InjectionDirective from .directives.renvoi import RenvoiDirective from .directives.section import SectionDirective from .directives.question import QuestionDirective from .directives.toc import Directive...
27.857143
92
0.647436
2,272
0.581818
0
0
0
0
0
0
712
0.18233
f699d90b4f3cca23aac7e6c012ba4fdf6a39d432
5,404
py
Python
HMS/Hospital/models.py
Arshad360/Hospital-Management-System-Cse327-Projectr
707ab80d021f8a2d10e28b25dd8df5aea512787a
[ "MIT" ]
2
2021-02-10T18:10:30.000Z
2021-04-27T18:07:51.000Z
HMS/Hospital/models.py
Arshad360/Hospital-Management-System-Cse327-Projectr
707ab80d021f8a2d10e28b25dd8df5aea512787a
[ "MIT" ]
1
2020-09-23T19:00:54.000Z
2020-09-23T19:04:22.000Z
HMS/Hospital/models.py
Arshad360/Hospital-Management-System-Cse327-Projectr
707ab80d021f8a2d10e28b25dd8df5aea512787a
[ "MIT" ]
1
2021-05-02T17:11:33.000Z
2021-05-02T17:11:33.000Z
from django.db import models from django.contrib.auth.models import User # Create your models here # All the departments departments = [('Cardiologist', 'Cardiologist'), ('Dermatologists', 'Dermatologists'), ('Emergency Medicine Specialists', 'Emergency Medicine Specialists'), ...
29.210811
98
0.675611
4,274
0.790896
0
0
152
0.028127
0
0
957
0.177091
f69a73d2180c85c42d121979fa3a85f52e293b5b
2,008
py
Python
intents/connectors/_experimental/snips/entities_test.py
dario-chiappetta/dialogflow_agents
ecb03bdce491a3c9d6769816507f3027fd5a60d1
[ "Apache-2.0" ]
6
2021-06-24T12:22:21.000Z
2021-07-21T21:06:19.000Z
intents/connectors/_experimental/snips/entities_test.py
dario-chiappetta/dialogflow_agents
ecb03bdce491a3c9d6769816507f3027fd5a60d1
[ "Apache-2.0" ]
27
2021-06-05T10:41:08.000Z
2021-11-01T17:29:38.000Z
intents/connectors/_experimental/snips/entities_test.py
dariowho/intents
ecb03bdce491a3c9d6769816507f3027fd5a60d1
[ "Apache-2.0" ]
null
null
null
from datetime import datetime import pytest from intents import Sys from intents.connectors._experimental.snips import entities from intents.connectors._experimental.snips import prediction_format as pf def test_date_mapping_from_service(): mapping = entities.DateMapping() snips_date_result = { 'inpu...
31.375
82
0.569721
0
0
0
0
0
0
0
0
466
0.232072
f69bf13f443e655c01aa380fb78f77a007b8bcce
150
py
Python
src/tests/unit/common/test_common_management_commands.py
hnzlmnn/pretalx
fcdf1a03c9428c1207ee4f4228694b2ed8e7495b
[ "Apache-2.0" ]
1
2018-12-09T12:35:10.000Z
2018-12-09T12:35:10.000Z
src/tests/unit/common/test_common_management_commands.py
hnzlmnn/pretalx
fcdf1a03c9428c1207ee4f4228694b2ed8e7495b
[ "Apache-2.0" ]
1
2019-07-05T20:03:42.000Z
2019-07-05T20:03:42.000Z
src/tests/unit/common/test_common_management_commands.py
hnzlmnn/pretalx
fcdf1a03c9428c1207ee4f4228694b2ed8e7495b
[ "Apache-2.0" ]
null
null
null
import pytest from django.core.management import call_command @pytest.mark.django_db def test_common_runperiodic(): call_command('runperiodic')
18.75
47
0.813333
0
0
0
0
85
0.566667
0
0
13
0.086667
f69d29d7625c1a49845d962bb860467f26d1ff33
2,907
py
Python
src/ui_elements/dropdown.py
MichalKacprzak99/WFIIS-3D-Graphics-2021
3daf87300daa6ba505d81a81c78f90be64c8dda4
[ "MIT" ]
null
null
null
src/ui_elements/dropdown.py
MichalKacprzak99/WFIIS-3D-Graphics-2021
3daf87300daa6ba505d81a81c78f90be64c8dda4
[ "MIT" ]
null
null
null
src/ui_elements/dropdown.py
MichalKacprzak99/WFIIS-3D-Graphics-2021
3daf87300daa6ba505d81a81c78f90be64c8dda4
[ "MIT" ]
null
null
null
from typing import List, Optional import pygame from OpenGL.GL import * from src.utils.drawing_utils import draw_texture, surface_to_texture class DropDown: def __init__(self, color_menu, color_option, x: int, y: int, width: int, height: int, font_name: str, font_size: int, main: str, options: ...
36.3375
111
0.602683
2,761
0.949776
0
0
0
0
0
0
7
0.002408
f69dfd5273c85c83e5fd287ed67d12b45233de18
43
py
Python
simulation/device/simulated/air_conditioner/__init__.py
LBNL-ETA/LPDM
3384a784b97e49cd7a801b758717a7107a51119f
[ "BSD-3-Clause-LBNL" ]
2
2019-01-05T02:33:38.000Z
2020-04-22T16:57:50.000Z
simulation/device/simulated/air_conditioner/__init__.py
LBNL-ETA/LPDM
3384a784b97e49cd7a801b758717a7107a51119f
[ "BSD-3-Clause-LBNL" ]
3
2019-04-17T18:13:08.000Z
2021-04-23T22:40:23.000Z
simulation/device/simulated/air_conditioner/__init__.py
LBNL-ETA/LPDM
3384a784b97e49cd7a801b758717a7107a51119f
[ "BSD-3-Clause-LBNL" ]
1
2019-01-31T08:37:44.000Z
2019-01-31T08:37:44.000Z
from air_conditioner import AirConditioner
21.5
42
0.906977
0
0
0
0
0
0
0
0
0
0
f69e65dd3ff7506ec8da4973473cc712782b9ed8
2,333
py
Python
Chapter_2/rock_paper_scissors_functions.py
MrRiahi/Practices-of-the-Python-Pro
e1af57d31944a0b181890271639ac064eb151678
[ "MIT" ]
null
null
null
Chapter_2/rock_paper_scissors_functions.py
MrRiahi/Practices-of-the-Python-Pro
e1af57d31944a0b181890271639ac064eb151678
[ "MIT" ]
null
null
null
Chapter_2/rock_paper_scissors_functions.py
MrRiahi/Practices-of-the-Python-Pro
e1af57d31944a0b181890271639ac064eb151678
[ "MIT" ]
null
null
null
import random OPTIONS = ['rock', 'paper', 'scissors'] def print_options(): """ This function prints game's options :return: """ print('(1) Rock\n(2) Paper\n(3) Scissors') def get_human_choice(): """ This function gets the choice of the human :return: """ human_choice_numb...
27.127907
90
0.676811
0
0
0
0
0
0
0
0
900
0.385769
f6a17ab311cc2ce265a769f7064d5bdc6f1392e2
899
py
Python
ndcontainers/utils/mixins.py
MattEding/Array-Containers
12156599d2f8f9e5f8cf5d3f784e98e2651e8bc1
[ "MIT" ]
null
null
null
ndcontainers/utils/mixins.py
MattEding/Array-Containers
12156599d2f8f9e5f8cf5d3f784e98e2651e8bc1
[ "MIT" ]
null
null
null
ndcontainers/utils/mixins.py
MattEding/Array-Containers
12156599d2f8f9e5f8cf5d3f784e98e2651e8bc1
[ "MIT" ]
null
null
null
import inspect import itertools __all__ = ['NDArrayReprMixin'] class NDArrayReprMixin: def _name_params(self, ignore=()): name = type(self).__name__ sig = inspect.signature(type(self)) params = tuple(p for p in sig.parameters if p not in ignore) return name, params def _repr_...
31
77
0.607341
832
0.925473
0
0
0
0
0
0
68
0.07564
f6a1e1d0b083371e879f30be890154f2c8a815bc
3,417
py
Python
demo/python/horizon.py
ebraminio/astronomy-fork
f395ac486893858d9badd7a26181b2e392ec9fd5
[ "MIT" ]
138
2019-05-31T01:46:16.000Z
2022-03-30T12:31:49.000Z
demo/python/horizon.py
ebraminio/astronomy-fork
f395ac486893858d9badd7a26181b2e392ec9fd5
[ "MIT" ]
152
2019-04-09T23:28:39.000Z
2022-03-31T18:27:52.000Z
demo/python/horizon.py
ebraminio/astronomy-fork
f395ac486893858d9badd7a26181b2e392ec9fd5
[ "MIT" ]
19
2019-06-21T07:38:40.000Z
2022-02-28T09:50:00.000Z
#!/usr/bin/env python3 # # horizon.py - by Don Cross - 2019-12-18 # # Example Python program for Astronomy Engine: # https://github.com/cosinekitty/astronomy # # This is a more advanced example. It shows how to use coordinate # transforms and a binary search to find the two azimuths where the # ecli...
35.968421
126
0.651156
0
0
0
0
0
0
0
0
1,679
0.491367
f6a574e48a07bd8f39a756c8f8ad677e91f5bd1e
1,101
py
Python
ProtocolHandlerAddonPython/tools/step1settings.py
p--q/ProtocolHandlerAddonPython
5dbb6034b4b9b7cb39cb9d397c812550668dd27f
[ "BSD-3-Clause" ]
null
null
null
ProtocolHandlerAddonPython/tools/step1settings.py
p--q/ProtocolHandlerAddonPython
5dbb6034b4b9b7cb39cb9d397c812550668dd27f
[ "BSD-3-Clause" ]
null
null
null
ProtocolHandlerAddonPython/tools/step1settings.py
p--q/ProtocolHandlerAddonPython
5dbb6034b4b9b7cb39cb9d397c812550668dd27f
[ "BSD-3-Clause" ]
null
null
null
#!/opt/libreoffice5.2/program/python # -*- coding: utf-8 -*- # This name will be rdb file name, .components file name, oxt file name. BASE_NAME = "ProtocolHandlerAddonPython" # これがrdbファイル名、.componentsファイル名、oxtファイル名になる。 # a list of a dict of Python UNO Component Files: (file name,service implementation name, service ...
55.05
204
0.722979
0
0
0
0
0
0
0
0
1,085
0.765702
f6a747c50017c4e0b7f038e1a5a105c807c87a64
8,508
py
Python
backup/socketbackend.py
bit0fun/plugins
1f6f701bf1e60882b8fa61cb735e7033c8c29e3c
[ "BSD-3-Clause" ]
173
2019-01-17T12:40:47.000Z
2022-03-27T12:14:00.000Z
backup/socketbackend.py
bit0fun/plugins
1f6f701bf1e60882b8fa61cb735e7033c8c29e3c
[ "BSD-3-Clause" ]
284
2019-03-01T17:54:14.000Z
2022-03-29T13:27:51.000Z
backup/socketbackend.py
bit0fun/plugins
1f6f701bf1e60882b8fa61cb735e7033c8c29e3c
[ "BSD-3-Clause" ]
92
2019-02-26T03:45:40.000Z
2022-03-28T03:23:50.000Z
from collections import namedtuple import json, logging, socket, re, struct, time from typing import Tuple, Iterator from urllib.parse import urlparse, parse_qs from backend import Backend, Change from protocol import PacketType, recvall, PKT_CHANGE_TYPES, change_from_packet, packet_from_change, send_packet, recv_pack...
38.672727
165
0.608134
5,663
0.665609
710
0.083451
0
0
0
0
2,033
0.238952
f6a8dbd297e720489b31ab7872d3338536905501
7,564
py
Python
src/aac_map.py
vlomonaco/crlmaze
b9607b92b098ffb4fd350941f6c34aecd0ed0fe9
[ "CC-BY-4.0" ]
20
2019-05-27T16:38:59.000Z
2021-04-06T16:24:10.000Z
src/aac_map.py
ThyLor/crlmaze
b9607b92b098ffb4fd350941f6c34aecd0ed0fe9
[ "CC-BY-4.0" ]
2
2021-04-08T15:52:17.000Z
2021-09-08T13:16:29.000Z
src/aac_map.py
ThyLor/crlmaze
b9607b92b098ffb4fd350941f6c34aecd0ed0fe9
[ "CC-BY-4.0" ]
4
2019-06-19T07:55:28.000Z
2020-12-20T22:02:06.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################################ # Copyright (c) 2019. Vincenzo Lomonaco, Karan Desai, Eugenio Culurciello, # # Davide Maltoni. All rights reserved. # # See the accompanying LICENSE...
37.078431
98
0.574167
6,451
0.852856
0
0
0
0
0
0
1,289
0.170412
f6a95519c740e8ae96e87997c89a4bc0b5d76c61
1,029
py
Python
questions/8.py
xiaochus/LeetCode
bf4d7a39fd6b0fb2682490f90999cb218a910e14
[ "MIT" ]
1
2018-06-18T04:40:23.000Z
2018-06-18T04:40:23.000Z
questions/8.py
xiaochus/LeetCode
bf4d7a39fd6b0fb2682490f90999cb218a910e14
[ "MIT" ]
null
null
null
questions/8.py
xiaochus/LeetCode
bf4d7a39fd6b0fb2682490f90999cb218a910e14
[ "MIT" ]
1
2020-02-03T12:58:26.000Z
2020-02-03T12:58:26.000Z
"""8. String to Integer (atoi) Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input cases. Notes: It is intended for this problem to be specified vaguely (ie, no given input sp...
27.078947
65
0.556851
629
0.611273
0
0
0
0
0
0
467
0.453839
f6a98ab922bb283e3d03fe3c75cc8eb473f34455
95
py
Python
models/dbconfig.py
FusionX9000/Reddit-Saves-Manager
6109f3b40a992f99ba95346b1e39a2df07e1bcb7
[ "MIT" ]
null
null
null
models/dbconfig.py
FusionX9000/Reddit-Saves-Manager
6109f3b40a992f99ba95346b1e39a2df07e1bcb7
[ "MIT" ]
1
2021-06-02T01:12:35.000Z
2021-06-02T01:12:35.000Z
models/dbconfig.py
FusionX9000/Reddit-Saves-Manager
6109f3b40a992f99ba95346b1e39a2df07e1bcb7
[ "MIT" ]
null
null
null
database = "database" user = "postgres" password = "password" host = "localhost" port = "5432"
15.833333
21
0.684211
0
0
0
0
0
0
0
0
47
0.494737
f6a9f53335a90945beeac0881642656ecefd349b
318
py
Python
Programs/HowToUse.py
aposum23/laborathory14
03e251e267b5783b12ea9b2f4ba2da41194f349e
[ "MIT" ]
null
null
null
Programs/HowToUse.py
aposum23/laborathory14
03e251e267b5783b12ea9b2f4ba2da41194f349e
[ "MIT" ]
null
null
null
Programs/HowToUse.py
aposum23/laborathory14
03e251e267b5783b12ea9b2f4ba2da41194f349e
[ "MIT" ]
null
null
null
def mul(a, b): return a * b mul(3, 4) #12 def mul5(a): return mul(5,a) mul5(2) #10 def mul(a): def helper(b): return a * b return helper mul(5)(2) #10 def fun1(a): x = a * 3 def fun2(b): nonlocal x return b + x return fun2 test_fun = fun1(4) test_fun(7) #19
9.9375
20
0.512579
0
0
0
0
0
0
0
0
12
0.037736
f6ab9a9d8d75aed7d16ae4d945c1c5fe7a289970
152
py
Python
py_tdlib/constructors/set_bot_updates_status.py
Mr-TelegramBot/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
24
2018-10-05T13:04:30.000Z
2020-05-12T08:45:34.000Z
py_tdlib/constructors/set_bot_updates_status.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
3
2019-06-26T07:20:20.000Z
2021-05-24T13:06:56.000Z
py_tdlib/constructors/set_bot_updates_status.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
5
2018-10-05T14:29:28.000Z
2020-08-11T15:04:10.000Z
from ..factory import Method class setBotUpdatesStatus(Method): pending_update_count = None # type: "int32" error_message = None # type: "string"
21.714286
45
0.743421
120
0.789474
0
0
0
0
0
0
31
0.203947
f6ac1d6095f521421f885471df134a2eb8d6bf74
811
py
Python
Chapter 9/code1.py
PacktPublishing/Mastering-IPython-4
d752f7ba38e0c9399a83d57da406fe26152f272b
[ "MIT" ]
22
2016-06-07T07:52:35.000Z
2021-11-08T13:12:21.000Z
Chapter 9/code1.py
PacktPublishing/Mastering-IPython-4
d752f7ba38e0c9399a83d57da406fe26152f272b
[ "MIT" ]
2
2016-05-23T08:20:54.000Z
2018-07-02T08:21:32.000Z
Chapter 9/code1.py
PacktPublishing/Mastering-IPython-4
d752f7ba38e0c9399a83d57da406fe26152f272b
[ "MIT" ]
27
2016-05-23T08:19:51.000Z
2021-08-31T02:46:00.000Z
""" This is an abbreviated version of my random number generator test suite. It uses the pytest framework. It does not do much in this form. """ import numpy as np import scipy.stats import random class TestRandoms( ): """ This is the main class. Normally it would hold all the tests, plus and setup and...
24.575758
79
0.614057
518
0.638718
0
0
0
0
0
0
413
0.509248
f6ad70965cd923a8fabd51c9477be6519ca96f2f
281
py
Python
tests/test.py
J35P312/vcf2cytosure
e2867afc1a697c09a1f2f400e1a5ac3365499234
[ "MIT" ]
1
2019-01-21T11:37:43.000Z
2019-01-21T11:37:43.000Z
tests/test.py
J35P312/vcf2cytosure
e2867afc1a697c09a1f2f400e1a5ac3365499234
[ "MIT" ]
39
2017-04-06T09:30:09.000Z
2022-02-06T10:32:09.000Z
tests/test.py
J35P312/vcf2cytosure
e2867afc1a697c09a1f2f400e1a5ac3365499234
[ "MIT" ]
3
2017-04-06T09:28:24.000Z
2020-06-25T09:30:26.000Z
import pytest from unittest.mock import patch import vcf2cytosure def test_version_argument(): with patch('sys.argv', ['vcf2cytosure.py','--version']): with pytest.raises(SystemExit) as excinfo: vcf2cytosure.main() assert excinfo.value.code == 0
23.416667
60
0.683274
0
0
0
0
0
0
0
0
38
0.135231