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
1cd9cb84780ce4068a648d1e9469d9570121c655
5,852
py
Python
src/train_nn.py
anirudhbhashyam/911-Calls-Seattle-Predictions
8c975ab6c6a85d514ad74388778e1b635ed3e63d
[ "MIT" ]
null
null
null
src/train_nn.py
anirudhbhashyam/911-Calls-Seattle-Predictions
8c975ab6c6a85d514ad74388778e1b635ed3e63d
[ "MIT" ]
null
null
null
src/train_nn.py
anirudhbhashyam/911-Calls-Seattle-Predictions
8c975ab6c6a85d514ad74388778e1b635ed3e63d
[ "MIT" ]
null
null
null
import os from typing import Union import tensorflow as tf import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split, KFold import utility as ut from variables import * # Read the data. train_data = pd.read_csv(os.path.join(DATA_PATH, ".".join([DATA...
27.866667
135
0.681647
0
0
0
0
0
0
0
0
3,114
0.532126
1cd9fdc42b14ec8f2d6ab3af8d353bbdb853608c
1,971
py
Python
pdserver/objects.py
Gustavo6046/polydung
e8626c67b0f59e00a2400b5a5c644e3f6b925e00
[ "MIT" ]
null
null
null
pdserver/objects.py
Gustavo6046/polydung
e8626c67b0f59e00a2400b5a5c644e3f6b925e00
[ "MIT" ]
null
null
null
pdserver/objects.py
Gustavo6046/polydung
e8626c67b0f59e00a2400b5a5c644e3f6b925e00
[ "MIT" ]
null
null
null
import base64 import random import string import netbyte import numpy as np try: import simplejson as json except ImportError: import json kinds = {} class PDObject(object): def __init__(self, game, kind, id, pos, properties): self.game = game self.kind = kind self.id = ...
27.375
115
0.559614
1,798
0.912227
0
0
169
0.085743
0
0
161
0.081684
1cdaebcf2a2178841183e0647850aae12465877f
1,859
py
Python
football/football_test.py
EEdwardsA/DS-OOP-Review
2352866c5d0ea6a09802c29c17366450f35c75ae
[ "MIT" ]
null
null
null
football/football_test.py
EEdwardsA/DS-OOP-Review
2352866c5d0ea6a09802c29c17366450f35c75ae
[ "MIT" ]
null
null
null
football/football_test.py
EEdwardsA/DS-OOP-Review
2352866c5d0ea6a09802c29c17366450f35c75ae
[ "MIT" ]
null
null
null
import unittest from players import Player, Quarterback from possible_values import * from game import Game from random import randint, uniform, sample from season import * # TODO - some things you can add... class FootballGameTest(unittest.TestCase): '''test the class''' def test_field_goal_made(self): ...
28.166667
64
0.652501
1,594
0.85745
0
0
0
0
0
0
227
0.122109
1cdc48fef2a5dcb4bffb7cadff760f5a6da8ed72
2,486
py
Python
preprocessor/base.py
shayanthrn/AGAIN-VC
41934f710d117d524b4a0bfdee7e9b845a56d422
[ "MIT" ]
3
2022-02-21T09:40:00.000Z
2022-02-27T13:52:19.000Z
preprocessor/base.py
shayanthrn/AGAIN-VC
41934f710d117d524b4a0bfdee7e9b845a56d422
[ "MIT" ]
null
null
null
preprocessor/base.py
shayanthrn/AGAIN-VC
41934f710d117d524b4a0bfdee7e9b845a56d422
[ "MIT" ]
1
2022-02-21T09:40:02.000Z
2022-02-21T09:40:02.000Z
import os import logging import numpy as np from tqdm import tqdm from functools import partial from multiprocessing.pool import ThreadPool import pyworld as pw from util.dsp import Dsp logger = logging.getLogger(__name__) def preprocess_one(input_items, module, output_path=''): input_path, basename = input_item...
37.666667
108
0.666935
1,075
0.432422
0
0
0
0
0
0
373
0.15004
1cdc6e1e4c787b21a5dbe8f394976972f434c199
3,025
py
Python
divsum_stats.py
fjruizruano/SatIntExt
90b39971ee6ea3d7cfa63fbb906df3df714a5012
[ "MIT" ]
null
null
null
divsum_stats.py
fjruizruano/SatIntExt
90b39971ee6ea3d7cfa63fbb906df3df714a5012
[ "MIT" ]
null
null
null
divsum_stats.py
fjruizruano/SatIntExt
90b39971ee6ea3d7cfa63fbb906df3df714a5012
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys from subprocess import call print "divsum_count.py ListOfDivsumFiles\n" try: files = sys.argv[1] except: files = raw_input("Introduce RepeatMasker's list of Divsum files with library size (tab separated): ") files = open(files).readlines() to_join = [] header = "Coverage for ea...
27.752294
131
0.57686
0
0
0
0
0
0
0
0
524
0.173223
1cdc98744b311e2367992861b764dff14f24294c
201
py
Python
agatecharts/charts/__init__.py
onyxfish/fever
8aef0cd4adff7fdde1f5950ffb1d01db9137e3b7
[ "MIT" ]
4
2015-09-05T04:47:27.000Z
2015-09-16T15:14:43.000Z
agatecharts/charts/__init__.py
onyxfish/fever
8aef0cd4adff7fdde1f5950ffb1d01db9137e3b7
[ "MIT" ]
18
2015-09-05T01:17:30.000Z
2015-09-23T13:08:27.000Z
agatecharts/charts/__init__.py
onyxfish/way
8aef0cd4adff7fdde1f5950ffb1d01db9137e3b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python from agatecharts.charts.bars import Bars from agatecharts.charts.columns import Columns from agatecharts.charts.lines import Lines from agatecharts.charts.scatter import Scatter
28.714286
46
0.840796
0
0
0
0
0
0
0
0
21
0.104478
1cdce77473b836e98d4d4044b2d6d581603e5972
1,930
py
Python
users/views.py
rossm6/accounts
74633ce4038806222048d85ef9dfe97a957a6a71
[ "MIT" ]
11
2021-01-23T01:09:54.000Z
2021-01-25T07:16:30.000Z
users/views.py
rossm6/accounts
74633ce4038806222048d85ef9dfe97a957a6a71
[ "MIT" ]
7
2021-04-06T18:19:10.000Z
2021-09-22T19:45:03.000Z
users/views.py
rossm6/accounts
74633ce4038806222048d85ef9dfe97a957a6a71
[ "MIT" ]
3
2021-01-23T18:55:32.000Z
2021-02-16T17:47:59.000Z
from django.contrib.auth import update_session_auth_hash from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.models import User from django.contrib.auth.views import (LoginView, PasswordResetConfirmView, PasswordResetView) from django.http import Htt...
33.275862
103
0.748705
1,009
0.522798
0
0
0
0
0
0
163
0.084456
1cde121b7cc2a3e5e4fa33ad8b2f5852ba028e54
2,970
py
Python
test/core/s3_table_test_base.py
adidas/m3d-api
755d676452e4b10075fa65f9acfdbf30a6ee828e
[ "Apache-2.0" ]
24
2019-09-26T13:15:14.000Z
2021-11-10T11:10:04.000Z
test/core/s3_table_test_base.py
adidas/m3d-api
755d676452e4b10075fa65f9acfdbf30a6ee828e
[ "Apache-2.0" ]
null
null
null
test/core/s3_table_test_base.py
adidas/m3d-api
755d676452e4b10075fa65f9acfdbf30a6ee828e
[ "Apache-2.0" ]
11
2019-09-26T13:27:10.000Z
2020-11-04T03:13:20.000Z
import os from test.core.emr_system_unit_test_base import EMRSystemUnitTestBase from test.core.tconx_helper import TconxHelper class S3TableTestBase(EMRSystemUnitTestBase): default_tconx = \ "test/resources/s3_table_test_base/tconx-bdp-emr_test-dev-bi_test101.json" multi_partition_tconx = \ ...
37.594937
108
0.662626
2,839
0.955892
0
0
603
0.20303
0
0
1,205
0.405724
1cdeb5c9ff7c16810e652dbe520cbde408b27771
939
py
Python
metrics/serializers.py
BrianWaganerSTL/RocketDBaaS
d924589188411371842513060a5e08b1be3cdccf
[ "MIT" ]
1
2018-11-04T09:36:35.000Z
2018-11-04T09:36:35.000Z
metrics/serializers.py
BrianWaganerSTL/RocketDBaaS_api
d924589188411371842513060a5e08b1be3cdccf
[ "MIT" ]
null
null
null
metrics/serializers.py
BrianWaganerSTL/RocketDBaaS_api
d924589188411371842513060a5e08b1be3cdccf
[ "MIT" ]
null
null
null
from rest_framework import serializers from metrics.models import Metrics_Cpu, Metrics_PingServer, Metrics_MountPoint, \ Metrics_CpuLoad, Metrics_PingDb class Metrics_CpuSerializer(serializers.ModelSerializer): class Meta: model = Metrics_Cpu fields = '__all__' depth = 0 class Metrics...
27.617647
81
0.698616
772
0.822151
0
0
0
0
0
0
45
0.047923
1ce01d2d1af3efb76606596d816ab61448b4bddc
2,911
bzl
Python
sqlc/private/sqlc_toolchain.bzl
dmayle/rules_sqlc
c465542827a086994e9427e2c792bbc4355c3e70
[ "Apache-2.0" ]
2
2020-12-09T16:01:14.000Z
2021-02-15T09:24:27.000Z
sqlc/private/sqlc_toolchain.bzl
dmayle/rules_sqlc
c465542827a086994e9427e2c792bbc4355c3e70
[ "Apache-2.0" ]
2
2020-12-08T16:46:25.000Z
2020-12-09T16:17:55.000Z
sqlc/private/sqlc_toolchain.bzl
dmayle/rules_sqlc
c465542827a086994e9427e2c792bbc4355c3e70
[ "Apache-2.0" ]
3
2021-07-28T20:39:10.000Z
2022-01-26T19:33:28.000Z
# Copyright 2020 Plezentek, Inc. All rights reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
32.707865
86
0.61113
0
0
0
0
0
0
0
0
1,130
0.388183
1ce0a4f2656bca31c4698766977c076b08c6dfcd
4,041
py
Python
configs/tracker_configs/new_test_20e_cam_1_new_short.py
nolanzzz/mtmct
8bbbc7ff2fa53ab8af424feaac3cf7424b87fff0
[ "MIT" ]
17
2021-09-01T23:13:14.000Z
2022-03-28T11:12:37.000Z
configs/tracker_configs/new_test_20e_cam_1_new_short.py
nolanzzz/MTMCT
8bbbc7ff2fa53ab8af424feaac3cf7424b87fff0
[ "MIT" ]
4
2022-01-21T05:47:09.000Z
2022-03-31T04:44:01.000Z
configs/tracker_configs/new_test_20e_cam_1_new_short.py
nolanzzz/MTMCT
8bbbc7ff2fa53ab8af424feaac3cf7424b87fff0
[ "MIT" ]
6
2021-12-16T02:08:43.000Z
2022-03-09T06:18:32.000Z
root = { "general" : { "display_viewer" : False, #The visible GPUS will be restricted to the numbers listed here. The pytorch (cuda:0) numeration will start at 0 #This is a trick to get everything onto the wanted gpus because just setting cuda:4 in the function calls will #not work...
48.686747
130
0.632022
0
0
0
0
0
0
0
0
1,830
0.452858
1ce1d1ce742bc81665dc46ca2940199356484a9f
1,010
py
Python
tests/structures/test_generator.py
cherub96/voc
2692d56059e4d4a52768270feaf5179b23609b04
[ "BSD-3-Clause" ]
1
2021-01-03T00:59:50.000Z
2021-01-03T00:59:50.000Z
tests/structures/test_generator.py
cherub96/voc
2692d56059e4d4a52768270feaf5179b23609b04
[ "BSD-3-Clause" ]
null
null
null
tests/structures/test_generator.py
cherub96/voc
2692d56059e4d4a52768270feaf5179b23609b04
[ "BSD-3-Clause" ]
null
null
null
from ..utils import TranspileTestCase class GeneratorTests(TranspileTestCase): def test_simple_generator(self): self.assertCodeExecution(""" def multiplier(first, second): y = first * second yield y y *= second yield y ...
28.055556
44
0.40099
969
0.959406
0
0
0
0
0
0
786
0.778218
1ce29cc9381fd7dde956750ac0935a544001e2ba
22,057
py
Python
ogusa/tax.py
hdoupe/OG-USA
f7e4d600b7a2993c7d1b53e23bfe29cfccaea770
[ "CC0-1.0" ]
null
null
null
ogusa/tax.py
hdoupe/OG-USA
f7e4d600b7a2993c7d1b53e23bfe29cfccaea770
[ "CC0-1.0" ]
2
2020-09-02T22:58:36.000Z
2020-09-03T19:29:46.000Z
ogusa/tax.py
prrathi/OG-USA
2e5c116bb8656ab190a59e431a8d57415fe26b08
[ "CC0-1.0" ]
null
null
null
''' ------------------------------------------------------------------------ Functions for taxes in the steady state and along the transition path. ------------------------------------------------------------------------ ''' # Packages import numpy as np from ogusa import utils ''' -----------------------------------...
36.823038
109
0.518611
0
0
0
0
0
0
0
0
8,275
0.375164
1ce2efac56c23c6a39d717edb12824108fd3d153
35,293
py
Python
muse_for_anything/api/v1_api/taxonomy_items.py
baireutherjonas/muse-for-anything
a625b4fc6468d74fa12886dc465d5694eed86e04
[ "MIT" ]
null
null
null
muse_for_anything/api/v1_api/taxonomy_items.py
baireutherjonas/muse-for-anything
a625b4fc6468d74fa12886dc465d5694eed86e04
[ "MIT" ]
1
2021-11-14T18:55:44.000Z
2021-11-14T18:55:44.000Z
muse_for_anything/api/v1_api/taxonomy_items.py
baireutherjonas/muse-for-anything
a625b4fc6468d74fa12886dc465d5694eed86e04
[ "MIT" ]
1
2021-09-08T13:49:52.000Z
2021-09-08T13:49:52.000Z
"""Module containing the taxonomy items API endpoints of the v1 API.""" from datetime import datetime from sqlalchemy.sql.schema import Sequence from muse_for_anything.db.models.taxonomies import ( Taxonomy, TaxonomyItem, TaxonomyItemRelation, TaxonomyItemVersion, ) from marshmallow.utils import INCL...
39.43352
123
0.606041
32,620
0.924263
0
0
33,258
0.94234
0
0
4,664
0.132151
1ce4e6e88e3b37747a733ee2057c09e983742a39
478
py
Python
PythonDAdata/3358OS_06_Code/code6/pd_plotting.py
shijiale0609/Python_Data_Analysis
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
[ "MIT" ]
1
2020-02-22T18:55:54.000Z
2020-02-22T18:55:54.000Z
PythonDAdata/3358OS_06_Code/code6/pd_plotting.py
shijiale0609/Python_Data_Analysis
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
[ "MIT" ]
null
null
null
PythonDAdata/3358OS_06_Code/code6/pd_plotting.py
shijiale0609/Python_Data_Analysis
c18b5ed006c171bbb6fcb6be5f51b2686edc8f7e
[ "MIT" ]
1
2020-02-22T18:55:57.000Z
2020-02-22T18:55:57.000Z
import matplotlib.pyplot as plt import numpy as np import pandas as pd df = pd.read_csv('transcount.csv') df = df.groupby('year').aggregate(np.mean) gpu = pd.read_csv('gpu_transcount.csv') gpu = gpu.groupby('year').aggregate(np.mean) df = pd.merge(df, gpu, how='outer', left_index=True, right_index=True) df = df.rep...
26.555556
101
0.717573
0
0
0
0
0
0
0
0
111
0.232218
1ce550dcd34ad1e54a6bb3af57029219d257f4d1
742
py
Python
source/blog/migrations/0004_postcomments.py
JakubGutowski/PersonalBlog
96122b36486f7e874c013e50d939732a43db309f
[ "BSD-3-Clause" ]
null
null
null
source/blog/migrations/0004_postcomments.py
JakubGutowski/PersonalBlog
96122b36486f7e874c013e50d939732a43db309f
[ "BSD-3-Clause" ]
null
null
null
source/blog/migrations/0004_postcomments.py
JakubGutowski/PersonalBlog
96122b36486f7e874c013e50d939732a43db309f
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.0.5 on 2018-07-02 19:46 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('blog', '0003_blogpost_author'), ] operations = [ migrations.CreateModel( name='Po...
30.916667
115
0.58221
609
0.820755
0
0
0
0
0
0
134
0.180593
1ce6c087a65ed77b98463ac3f530b83170cfd6d6
241
py
Python
submissions/aising2019/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
1
2021-05-10T01:16:28.000Z
2021-05-10T01:16:28.000Z
submissions/aising2019/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
3
2021-05-11T06:14:15.000Z
2021-06-19T08:18:36.000Z
submissions/aising2019/a.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
null
null
null
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) n = int(readline()) h = int(readline()) w = int(readline()) print((n - h + 1) * (n - w + 1))
21.909091
38
0.676349
0
0
0
0
0
0
0
0
0
0
1ce7603f33584c5aefec4359d0957617e3a28159
5,106
py
Python
CreateHalo.py
yoyoberenguer/MultiplayerGameEngine
1d1a4c0ab40d636322c4e3299cbc84fb57965b31
[ "MIT" ]
4
2019-09-08T13:54:14.000Z
2021-12-18T11:46:59.000Z
CreateHalo.py
yoyoberenguer/MultiplayerGameEngine
1d1a4c0ab40d636322c4e3299cbc84fb57965b31
[ "MIT" ]
1
2019-09-01T11:21:39.000Z
2019-09-01T15:01:21.000Z
CreateHalo.py
yoyoberenguer/MultiplayerGameEngine
1d1a4c0ab40d636322c4e3299cbc84fb57965b31
[ "MIT" ]
1
2019-08-23T07:00:20.000Z
2019-08-23T07:00:20.000Z
import pygame from NetworkBroadcast import Broadcast, AnimatedSprite, DeleteSpriteCommand from Textures import HALO_SPRITE12, HALO_SPRITE14, HALO_SPRITE13 __author__ = "Yoann Berenguer" __credits__ = ["Yoann Berenguer"] __version__ = "1.0.0" __maintainer__ = "Yoann Berenguer" __email__ = "yoyoberenguer@hotma...
31.9125
99
0.570897
4,761
0.932432
0
0
0
0
0
0
302
0.059146
1ce783ade7ec4e76f4c0abea82bc09661b19e042
29,965
py
Python
src/dataops/pandas_db.py
ShizhuZhang/ontask_b
acbf05ff9b18dae0a41c67d1e41774e54a890c40
[ "MIT" ]
null
null
null
src/dataops/pandas_db.py
ShizhuZhang/ontask_b
acbf05ff9b18dae0a41c67d1e41774e54a890c40
[ "MIT" ]
null
null
null
src/dataops/pandas_db.py
ShizhuZhang/ontask_b
acbf05ff9b18dae0a41c67d1e41774e54a890c40
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function import logging import os.path import subprocess from collections import OrderedDict from itertools import izip import numpy as np import pandas as pd from django.conf import settings from django.core.cache import cache from django.db impo...
31.776246
86
0.64275
0
0
519
0.01732
0
0
0
0
15,186
0.506791
1ce813d53ecf60bcfa1c5a10f665cbdcffd14f05
1,579
py
Python
config/cf.py
rbsdev/config-client
761f39cd8839daba10bf21b98ccdd44d33eaebe8
[ "Apache-2.0" ]
null
null
null
config/cf.py
rbsdev/config-client
761f39cd8839daba10bf21b98ccdd44d33eaebe8
[ "Apache-2.0" ]
null
null
null
config/cf.py
rbsdev/config-client
761f39cd8839daba10bf21b98ccdd44d33eaebe8
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict, KeysView import attr from config.auth import OAuth2 from config.cfenv import CFenv from config.spring import ConfigClient @attr.s(slots=True) class CF: cfenv = attr.ib( type=CFenv, factory=CFenv, validator=attr.validators.instance_of(CFenv), ) oauth2 = attr.ib(type=...
28.709091
80
0.644712
1,402
0.887904
0
0
1,422
0.90057
0
0
44
0.027866
1ce82884bd68028c036284e33b78a44ed716634f
3,881
py
Python
ducktape/template.py
rancp/ducktape-docs
e1a3b1b7e68beedf5f8d29a4e5f196912a20e264
[ "Apache-2.0" ]
null
null
null
ducktape/template.py
rancp/ducktape-docs
e1a3b1b7e68beedf5f8d29a4e5f196912a20e264
[ "Apache-2.0" ]
null
null
null
ducktape/template.py
rancp/ducktape-docs
e1a3b1b7e68beedf5f8d29a4e5f196912a20e264
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Confluent Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
42.184783
113
0.670188
3,131
0.806751
0
0
667
0.171863
0
0
1,994
0.513785
1ce98f8cbd7283e38faf8437d2c92e51357a9597
93
py
Python
day4/homework/q7.py
AkshayManchanda/Python_Training
5a50472d118ac6d40145bf1dd60f26864bf9fb6c
[ "MIT" ]
null
null
null
day4/homework/q7.py
AkshayManchanda/Python_Training
5a50472d118ac6d40145bf1dd60f26864bf9fb6c
[ "MIT" ]
null
null
null
day4/homework/q7.py
AkshayManchanda/Python_Training
5a50472d118ac6d40145bf1dd60f26864bf9fb6c
[ "MIT" ]
null
null
null
i=input("Enter a string: ") list = i.split() list.sort() for i in list: print(i,end=' ')
15.5
27
0.591398
0
0
0
0
0
0
0
0
21
0.225806
1cea0e3fced4fc9fe2a48efd4c3e8de95165a2da
948
py
Python
src/git_portfolio/use_cases/config_repos.py
staticdev/github-portfolio
850461eed8160e046ee16664ac3dbc19e3ec0965
[ "MIT" ]
null
null
null
src/git_portfolio/use_cases/config_repos.py
staticdev/github-portfolio
850461eed8160e046ee16664ac3dbc19e3ec0965
[ "MIT" ]
null
null
null
src/git_portfolio/use_cases/config_repos.py
staticdev/github-portfolio
850461eed8160e046ee16664ac3dbc19e3ec0965
[ "MIT" ]
null
null
null
"""Config repositories use case.""" from __future__ import annotations import git_portfolio.config_manager as cm import git_portfolio.domain.gh_connection_settings as cs import git_portfolio.responses as res class ConfigReposUseCase: """Gitp config repositories use case.""" def __init__(self, config_manager...
37.92
83
0.74789
736
0.776371
0
0
0
0
0
0
177
0.186709
1cea0f437c7a9f8ccbc1159b25612a99704a7170
943
py
Python
test/test_logic.py
mateuszkowalke/sudoku_game
800e33a6fe755b493d8e9c3c9a20204af5865148
[ "MIT" ]
null
null
null
test/test_logic.py
mateuszkowalke/sudoku_game
800e33a6fe755b493d8e9c3c9a20204af5865148
[ "MIT" ]
null
null
null
test/test_logic.py
mateuszkowalke/sudoku_game
800e33a6fe755b493d8e9c3c9a20204af5865148
[ "MIT" ]
null
null
null
import pytest from ..logic import Board, empty_board, example_board, solved_board class TestBoard: def test_create_board(self): board = Board(example_board) assert board.tiles == example_board def test_solve_board(self): board = Board(example_board) board.solve() asse...
27.735294
67
0.66702
858
0.909862
0
0
0
0
0
0
0
0
1ceb3eafc161d9fd9d9f5411f96898dcc0d87036
8,111
py
Python
src/compas_rhino/objects/_select.py
jf---/compas
cd878ece933013b8ac34e9d42cf6d5c62a5396ee
[ "MIT" ]
2
2021-03-17T18:14:22.000Z
2021-09-19T13:50:02.000Z
src/compas_rhino/objects/_select.py
jf---/compas
cd878ece933013b8ac34e9d42cf6d5c62a5396ee
[ "MIT" ]
null
null
null
src/compas_rhino/objects/_select.py
jf---/compas
cd878ece933013b8ac34e9d42cf6d5c62a5396ee
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import division import ast import rhinoscriptsyntax as rs __all__ = [ 'mesh_select_vertex', 'mesh_select_vertices', 'mesh_select_face', 'mesh_select_faces', 'mesh_select_edge', 'mesh_select_edges', ...
27.494915
94
0.53298
0
0
0
0
0
0
0
0
2,680
0.330415
1ceb4e48c8b6f66fc03698755dae7d3610a03921
1,258
py
Python
handlers/product_add.py
MuchkoM/CalorieMatchBot
ca26a1f6195079e10dd798ca9e77968438f2aa01
[ "MIT" ]
null
null
null
handlers/product_add.py
MuchkoM/CalorieMatchBot
ca26a1f6195079e10dd798ca9e77968438f2aa01
[ "MIT" ]
null
null
null
handlers/product_add.py
MuchkoM/CalorieMatchBot
ca26a1f6195079e10dd798ca9e77968438f2aa01
[ "MIT" ]
null
null
null
from telegram import Update from telegram.ext import Updater, CallbackContext, ConversationHandler, CommandHandler, MessageHandler, Filters from db import DBConnector import re str_matcher = r"\"(?P<name>.+)\"\s*(?P<fat>\d+)\s*/\s*(?P<protein>\d+)\s*/\s*(?P<carbohydrates>\d+)\s*(?P<kcal>\d+)" ADD_1 = 0 def add_0(...
32.25641
116
0.67806
0
0
0
0
0
0
0
0
298
0.236884
1cebb0fff2532d5f8a3a2e41a74346938730be3d
1,298
py
Python
python-packages/nolearn-0.5/build/lib.linux-x86_64-2.7/nolearn/tests/test_dataset.py
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
ee45bee6f96cdb6d91184abc16f41bba1546c943
[ "BSD-3-Clause" ]
2
2017-08-13T14:09:32.000Z
2018-07-16T23:39:00.000Z
python-packages/nolearn-0.5/build/lib.linux-x86_64-2.7/nolearn/tests/test_dataset.py
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
ee45bee6f96cdb6d91184abc16f41bba1546c943
[ "BSD-3-Clause" ]
null
null
null
python-packages/nolearn-0.5/build/lib.linux-x86_64-2.7/nolearn/tests/test_dataset.py
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
ee45bee6f96cdb6d91184abc16f41bba1546c943
[ "BSD-3-Clause" ]
2
2018-04-02T06:45:11.000Z
2018-07-16T23:39:02.000Z
from mock import patch import numpy as np def test_dataset_simple(): from ..dataset import Dataset data = object() target = object() dataset = Dataset(data, target) assert dataset.data is data assert dataset.target is target @patch('nolearn.dataset.np.load') def test_dataset_with_filenames(...
24.961538
65
0.682589
0
0
0
0
270
0.208012
0
0
54
0.041602
1cec0b60edcd31e7b741951f8b76edad6144ee56
1,345
py
Python
src/Cipher/MultiLevelCaesarDecrypt.py
EpicTofuu/Assignment
293f99d20e8fa7d688c16a56c48a554bcd3c9e7d
[ "Apache-2.0" ]
null
null
null
src/Cipher/MultiLevelCaesarDecrypt.py
EpicTofuu/Assignment
293f99d20e8fa7d688c16a56c48a554bcd3c9e7d
[ "Apache-2.0" ]
null
null
null
src/Cipher/MultiLevelCaesarDecrypt.py
EpicTofuu/Assignment
293f99d20e8fa7d688c16a56c48a554bcd3c9e7d
[ "Apache-2.0" ]
null
null
null
import Cipher.tk from Cipher.tk import EncryptDecryptCoord, GetChiSquared, Mode def MultiDecrypt (message, alphabet, usables = 3, lan = "English", transformations = [], lowestchi = 9999, ogMessage = ""): msg = "" prev = (9999, (0, 0)) # (chi, key) for i in range (len(message)): ...
32.804878
150
0.584387
0
0
0
0
0
0
0
0
268
0.199257
1cecb0baeee1d541b67de121aac28491961e0c43
2,234
py
Python
scripts/vcf_filter.py
bunop/cyvcf
f58860dd06b215b9d9ae80e2b46337fb6ab59139
[ "MIT" ]
46
2015-01-31T17:24:34.000Z
2021-01-15T01:29:07.000Z
scripts/vcf_filter.py
arq5x/cyvcf
f58860dd06b215b9d9ae80e2b46337fb6ab59139
[ "MIT" ]
11
2015-01-13T17:59:32.000Z
2016-09-23T21:50:00.000Z
scripts/vcf_filter.py
mandawilson/PyVCF
d23ab476237aced75635e543c061c1bf80a7c2a4
[ "MIT" ]
7
2015-02-10T09:12:00.000Z
2016-06-30T03:37:37.000Z
#!/usr/bin/env python import sys import argparse import pkg_resources import vcf from vcf.parser import _Filter parser = argparse.ArgumentParser(description='Filter a VCF file', formatter_class=argparse.RawDescriptionHelpFormatter, ) parser.add_argument('input', metavar='input', type=str, nargs=1, ...
30.60274
81
0.651746
0
0
0
0
0
0
0
0
728
0.325873
1cecb4c2f3b6f24c919644faa0e058b12f679c06
273
py
Python
src/flocker/blueprints/red/__init__.py
Muxelmann/home-projects
85bd06873174b9c5c6276160988c19b460370db8
[ "MIT" ]
null
null
null
src/flocker/blueprints/red/__init__.py
Muxelmann/home-projects
85bd06873174b9c5c6276160988c19b460370db8
[ "MIT" ]
null
null
null
src/flocker/blueprints/red/__init__.py
Muxelmann/home-projects
85bd06873174b9c5c6276160988c19b460370db8
[ "MIT" ]
null
null
null
import os from flask import Blueprint, render_template def create_bp(): bp_red = Blueprint('red', __name__, url_prefix='/red') @bp_red.route('/index/') @bp_red.route('/') def index(): return render_template('red/index.html') return bp_red
22.75
58
0.652015
0
0
0
0
113
0.413919
0
0
39
0.142857
1ced85b293ca7dbd18aca02752e3ef9bf70663c2
4,125
py
Python
alphacoders/__init__.py
whoiscc/alphacoders
685d1e7e02a7276ae0518114b0c6aab58914aab7
[ "MIT" ]
7
2019-09-22T16:16:15.000Z
2020-08-27T23:53:07.000Z
alphacoders/__init__.py
whoiscc/alphacoders
685d1e7e02a7276ae0518114b0c6aab58914aab7
[ "MIT" ]
1
2020-08-27T23:53:02.000Z
2020-08-28T06:10:10.000Z
alphacoders/__init__.py
whoiscc/alphacoders
685d1e7e02a7276ae0518114b0c6aab58914aab7
[ "MIT" ]
null
null
null
# from aiohttp.client_exceptions import ClientError from lxml import html from pathlib import Path from asyncio import create_task from functools import wraps def start_immediately(task): @wraps(task) def wrapper(*args, **kwargs): return create_task(task(*args, **kwargs)) return wrapper @start...
30.555556
95
0.629333
1,334
0.323394
0
0
2,075
0.50303
3,010
0.729697
465
0.112727
1ceddd105ecb3e0dcae569f584b7c20f28eab09e
553
py
Python
Python/Calculating_Trimmed_Means/calculating_trimmed_means1.py
PeriscopeData/analytics-toolbox
83effdee380c33e5eecea29528acf5375fd496fb
[ "MIT" ]
2
2019-09-27T22:19:09.000Z
2019-12-02T23:12:18.000Z
Python/Calculating_Trimmed_Means/calculating_trimmed_means1.py
PeriscopeData/analytics-toolbox
83effdee380c33e5eecea29528acf5375fd496fb
[ "MIT" ]
1
2019-10-03T17:46:23.000Z
2019-10-03T17:46:23.000Z
Python/Calculating_Trimmed_Means/calculating_trimmed_means1.py
PeriscopeData/analytics-toolbox
83effdee380c33e5eecea29528acf5375fd496fb
[ "MIT" ]
2
2021-07-17T18:23:50.000Z
2022-03-03T04:53:03.000Z
# SQL output is imported as a pandas dataframe variable called "df" # Source: https://stackoverflow.com/questions/19441730/trimmed-mean-with-percentage-limit-in-python import pandas as pd import matplotlib.pyplot as plt from scipy.stats import tmean, scoreatpercentile import numpy as np def trimmean(arr, percent): ...
39.5
100
0.779385
0
0
0
0
0
0
0
0
177
0.320072
1cef547e153ff6ac5a327c151e5950b2c7563ac2
1,298
py
Python
scripts/data_extract.py
amichalski2/WBC-SHAP
b69a4a8746aaf7a8dfacfdb4dbd85b4868d73ad0
[ "MIT" ]
null
null
null
scripts/data_extract.py
amichalski2/WBC-SHAP
b69a4a8746aaf7a8dfacfdb4dbd85b4868d73ad0
[ "MIT" ]
null
null
null
scripts/data_extract.py
amichalski2/WBC-SHAP
b69a4a8746aaf7a8dfacfdb4dbd85b4868d73ad0
[ "MIT" ]
null
null
null
import os import cv2 import random import numpy as np from tensorflow.keras.utils import to_categorical from scripts.consts import class_dict def get_data(path, split=0.2): X, y = [], [] for directory in os.listdir(path): dirpath = os.path.join(path, directory) print(directory, len(os.listd...
25.45098
79
0.617874
0
0
0
0
0
0
0
0
18
0.013867
1cf00fc10b36c1bb5b56b4af86d43c0bd17b8dff
33,478
py
Python
ironic/tests/unit/drivers/test_base.py
tzumainn/ironic
91680bd450a4b2259d153b6a995a9436a5f82694
[ "Apache-2.0" ]
null
null
null
ironic/tests/unit/drivers/test_base.py
tzumainn/ironic
91680bd450a4b2259d153b6a995a9436a5f82694
[ "Apache-2.0" ]
null
null
null
ironic/tests/unit/drivers/test_base.py
tzumainn/ironic
91680bd450a4b2259d153b6a995a9436a5f82694
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Cisco Systems, Inc. # 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 requi...
42.057789
79
0.642183
32,555
0.97243
0
0
10,783
0.322092
0
0
4,407
0.131639
1cf117501c6990cccaec0505efbf96de4aa8d218
299
py
Python
opentimesheet/profiles/tests/test_models.py
valerymelou/opentimesheet-server
0da97ebb3c3e59962132d1bc5e83e1d727f7331b
[ "MIT" ]
null
null
null
opentimesheet/profiles/tests/test_models.py
valerymelou/opentimesheet-server
0da97ebb3c3e59962132d1bc5e83e1d727f7331b
[ "MIT" ]
95
2021-02-20T21:53:29.000Z
2022-01-14T17:24:50.000Z
opentimesheet/profiles/tests/test_models.py
valerymelou/opentimesheet-server
0da97ebb3c3e59962132d1bc5e83e1d727f7331b
[ "MIT" ]
null
null
null
import pytest from opentimesheet.core.tests import TenantTestCase @pytest.mark.usefixtures("profile") class TestProfile(TenantTestCase): def test__str__(self): assert ( self.profile.first_name + " " + self.profile.last_name == self.profile.__str__() )
23
66
0.665552
193
0.645485
0
0
229
0.765886
0
0
12
0.040134
1cf1510ac46bda476c715d01c64fd6ef223f7da4
10,434
py
Python
ami/flowchart/library/Display.py
chuckie82/ami
7adb72c709afe4c1af53ef7f0d2b0e3639c63bf3
[ "BSD-3-Clause-LBNL" ]
6
2018-05-31T21:37:15.000Z
2022-01-24T15:22:46.000Z
ami/flowchart/library/Display.py
chuckie82/ami
7adb72c709afe4c1af53ef7f0d2b0e3639c63bf3
[ "BSD-3-Clause-LBNL" ]
68
2019-06-06T21:00:49.000Z
2022-03-14T22:35:29.000Z
ami/flowchart/library/Display.py
chuckie82/ami
7adb72c709afe4c1af53ef7f0d2b0e3639c63bf3
[ "BSD-3-Clause-LBNL" ]
2
2020-12-13T01:53:05.000Z
2021-07-19T04:56:51.000Z
from ami.flowchart.library.DisplayWidgets import ScalarWidget, ScatterWidget, WaveformWidget, \ ImageWidget, ObjectWidget, LineWidget, TimeWidget, HistogramWidget, \ Histogram2DWidget from ami.flowchart.library.common import CtrlNode from amitypes import Array1d, Array2d from typing import Any import ami.graph_...
33.986971
96
0.57236
10,072
0.965306
0
0
0
0
0
0
1,716
0.164462
1cf1add35a6f5a301f98fac454ddd82a0c4fd197
1,435
py
Python
deep-rl/lib/python2.7/site-packages/OpenGL/GL/ARB/transform_feedback_instanced.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/GL/ARB/transform_feedback_instanced.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/GL/ARB/transform_feedback_instanced.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''OpenGL extension ARB.transform_feedback_instanced This module customises the behaviour of the OpenGL.raw.GL.ARB.transform_feedback_instanced to provide a more Python-friendly API Overview (from the spec) Multiple instances of geometry may be specified to the GL by calling functions such as DrawArraysInstance...
39.861111
75
0.822997
0
0
0
0
0
0
0
0
1,016
0.708014
1cf2c5ea382bc1bc6087303216c79dc6b5f0dc2a
2,681
py
Python
features/cpp/simple/test.py
xbabka01/retdec-regression-tests
1ac40cca5165740364e6f7fb72b20820eac9bc7c
[ "MIT" ]
8
2017-12-14T14:25:17.000Z
2019-03-09T03:29:12.000Z
features/cpp/simple/test.py
xbabka01/retdec-regression-tests
1ac40cca5165740364e6f7fb72b20820eac9bc7c
[ "MIT" ]
10
2019-06-14T09:12:55.000Z
2021-10-01T12:15:43.000Z
features/cpp/simple/test.py
xbabka01/retdec-regression-tests
1ac40cca5165740364e6f7fb72b20820eac9bc7c
[ "MIT" ]
8
2019-05-10T14:59:48.000Z
2022-03-07T16:34:23.000Z
from regression_tests import * class TestBase(Test): def test_for_main(self): assert self.out_c.has_funcs('main') or self.out_c.has_funcs('entry_point') def test_check_main_is_not_ctor_or_dtor(self): for c in self.out_config.classes: assert "main" not in c.constructors ...
31.174419
82
0.638941
2,642
0.985453
0
0
0
0
0
0
414
0.15442
1cf352409236639cbafbd2ba47ff641f1c9803a8
44
py
Python
src/experiment.py
windar427/find_alpha
dbca4e677c6cdc144f20f6259c07291b5d3e6eed
[ "MIT" ]
null
null
null
src/experiment.py
windar427/find_alpha
dbca4e677c6cdc144f20f6259c07291b5d3e6eed
[ "MIT" ]
null
null
null
src/experiment.py
windar427/find_alpha
dbca4e677c6cdc144f20f6259c07291b5d3e6eed
[ "MIT" ]
null
null
null
from .lib.DownloadData import DownloadData
14.666667
42
0.840909
0
0
0
0
0
0
0
0
0
0
1cf437df5479619203c624b6e001a3eebc26d12e
127
py
Python
src/__init__.py
songchenwen/icloud-drive-docker
7188dfbcc34e29ddbeeb1324c62ea77bed8f0576
[ "BSD-3-Clause" ]
null
null
null
src/__init__.py
songchenwen/icloud-drive-docker
7188dfbcc34e29ddbeeb1324c62ea77bed8f0576
[ "BSD-3-Clause" ]
null
null
null
src/__init__.py
songchenwen/icloud-drive-docker
7188dfbcc34e29ddbeeb1324c62ea77bed8f0576
[ "BSD-3-Clause" ]
null
null
null
__author__ = 'Mandar Patil (mandarons@pm.me)' import warnings warnings.filterwarnings('ignore', category=DeprecationWarning)
21.166667
62
0.80315
0
0
0
0
0
0
0
0
40
0.314961
1cf448521f5700d299fc77dc569a86bf7945ac8b
189
py
Python
test_basico.py
rafael-torraca/delivery
298db3c5d74938dc34687e7b65ee72a847e4deeb
[ "MIT" ]
null
null
null
test_basico.py
rafael-torraca/delivery
298db3c5d74938dc34687e7b65ee72a847e4deeb
[ "MIT" ]
null
null
null
test_basico.py
rafael-torraca/delivery
298db3c5d74938dc34687e7b65ee72a847e4deeb
[ "MIT" ]
null
null
null
def test_one_plus_one_is_two(): assert 1 + 1 == 2 #o assert espera que algo seja verdadeiro, se for falso o teste quebrou def test_negative_1_plus_1_is_3(): assert 1 + 1 == 3
17.181818
93
0.698413
0
0
0
0
0
0
0
0
71
0.375661
1cf4fd8e02d4b81f15724ee999de5c59e9d28d5e
3,210
py
Python
setup.py
rohernandezz/coldtype
724234fce454699a469d17b6c78ae50fa8138169
[ "Apache-2.0" ]
null
null
null
setup.py
rohernandezz/coldtype
724234fce454699a469d17b6c78ae50fa8138169
[ "Apache-2.0" ]
null
null
null
setup.py
rohernandezz/coldtype
724234fce454699a469d17b6c78ae50fa8138169
[ "Apache-2.0" ]
null
null
null
import setuptools long_description = """ # Coldtype ### Programmatic display typography More info available at: [coldtype.goodhertz.com](https://coldtype.goodhertz.com) """ setuptools.setup( name="coldtype", version="0.6.6", author="Rob Stenson / Goodhertz", author_email="rob@goodhertz.com", des...
25.68
83
0.50405
0
0
0
0
0
0
0
0
1,738
0.541433
1cf68294fceda7fcab026e615d3065d3c8dac6d6
5,064
py
Python
GFOLD_problem.py
xdedss/SuccessiveConvexification
8b330b64a31f546ce92c1e34036c212484cbae5e
[ "MIT" ]
null
null
null
GFOLD_problem.py
xdedss/SuccessiveConvexification
8b330b64a31f546ce92c1e34036c212484cbae5e
[ "MIT" ]
null
null
null
GFOLD_problem.py
xdedss/SuccessiveConvexification
8b330b64a31f546ce92c1e34036c212484cbae5e
[ "MIT" ]
1
2021-01-18T11:47:19.000Z
2021-01-18T11:47:19.000Z
# -*- coding: utf-8 -*- # GFOLD_static_p3p4 min_=min from cvxpy import * import cvxpy_codegen as cpg from time import time import numpy as np import sys import GFOLD_params ''' As defined in the paper... PROBLEM 3: Minimum Landing Error (tf roughly solved) MINIMIZE : norm of landing error vector SUBJ TO : ...
33.536424
102
0.540482
0
0
0
0
0
0
0
0
1,729
0.338489
1cf6d2a88472187827c03695f3dd1ceab02478dc
6,154
py
Python
Hints.py
SarienFates/MMRandomizer
7c677140d83e94167fecee35e8c25216a51bdd56
[ "MIT" ]
36
2018-08-23T05:01:33.000Z
2021-03-17T03:25:20.000Z
Hints.py
SarienFates/MMRandomizer
7c677140d83e94167fecee35e8c25216a51bdd56
[ "MIT" ]
11
2018-09-07T21:43:13.000Z
2019-02-10T22:40:11.000Z
Hints.py
SarienFates/MMRandomizer
7c677140d83e94167fecee35e8c25216a51bdd56
[ "MIT" ]
7
2018-08-22T09:49:12.000Z
2020-01-12T20:23:29.000Z
import io import hashlib import logging import os import struct import random from HintList import getHint, getHintGroup, Hint from Utils import local_path #builds out general hints based on location and whether an item is required or not def buildGossipHints(world, rom): stoneAddresses = [0x938e4c, 0...
41.581081
183
0.666071
0
0
0
0
0
0
0
0
1,650
0.268118
1cf7cd31d835d561c98ce25133f916ba86e3848f
304
py
Python
examen_2/p2/p2.py
Jhoselyn-Carballo/computacion_para_ingenieria
4b5ed7d4aa0017fb4993ccfdcc9fcef0fb5b3898
[ "Apache-2.0" ]
null
null
null
examen_2/p2/p2.py
Jhoselyn-Carballo/computacion_para_ingenieria
4b5ed7d4aa0017fb4993ccfdcc9fcef0fb5b3898
[ "Apache-2.0" ]
null
null
null
examen_2/p2/p2.py
Jhoselyn-Carballo/computacion_para_ingenieria
4b5ed7d4aa0017fb4993ccfdcc9fcef0fb5b3898
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Feb 17 09:10:05 2022 @author: JHOSS """ from tkinter import * def contador(accion, contador): if accion == 'countUp': contador == contador + 1 elif accion == 'coundDown': contador == contador -1 elif accion == 'reset': contador == 0 return contador
17.882353
35
0.644737
0
0
0
0
0
0
0
0
109
0.358553
1cf8bcf99614d3811354f1616a7df6d5dc7e2771
786
py
Python
bokeh/models/tests/test_callbacks.py
ndepal/bokeh
1b514f28fe40eeb71954eac0c113b2debdb2eda9
[ "BSD-3-Clause" ]
1
2018-11-14T19:08:18.000Z
2018-11-14T19:08:18.000Z
bokeh/models/tests/test_callbacks.py
ndepal/bokeh
1b514f28fe40eeb71954eac0c113b2debdb2eda9
[ "BSD-3-Clause" ]
1
2021-05-09T02:45:17.000Z
2021-05-09T02:45:17.000Z
bokeh/models/tests/test_callbacks.py
ndepal/bokeh
1b514f28fe40eeb71954eac0c113b2debdb2eda9
[ "BSD-3-Clause" ]
1
2020-06-17T05:47:16.000Z
2020-06-17T05:47:16.000Z
from pytest import raises from bokeh.models import CustomJS, Slider def test_js_callback(): slider = Slider() cb = CustomJS(code="foo();", args=dict(x=slider)) assert 'foo()' in cb.code assert cb.args['x'] is slider cb = CustomJS(code="foo();", args=dict(x=3)) assert 'foo()' in cb.code a...
22.457143
56
0.605598
0
0
0
0
0
0
0
0
101
0.128499
1cf8fa369efacd3241e998562ea192fd61a8484a
639
py
Python
tests/test_0150-attributeerrors.py
martindurant/awkward-1.0
a3221ee1bab6551dd01d5dd07a1d2dc24fd02c38
[ "BSD-3-Clause" ]
null
null
null
tests/test_0150-attributeerrors.py
martindurant/awkward-1.0
a3221ee1bab6551dd01d5dd07a1d2dc24fd02c38
[ "BSD-3-Clause" ]
null
null
null
tests/test_0150-attributeerrors.py
martindurant/awkward-1.0
a3221ee1bab6551dd01d5dd07a1d2dc24fd02c38
[ "BSD-3-Clause" ]
null
null
null
# BSD 3-Clause License; see https://github.com/jpivarski/awkward-1.0/blob/master/LICENSE from __future__ import absolute_import import sys import pytest import numpy import awkward1 class Dummy(awkward1.Record): @property def broken(self): raise AttributeError("I'm broken!") def test(): behavi...
23.666667
88
0.666667
109
0.170579
0
0
75
0.117371
0
0
180
0.28169
1cf95ca934131253ff13ec5e02a3e110c4125705
1,838
py
Python
scripts/preprocess.py
umd-lib/solr-irroc
860be84ea1847cbb96c1a7a70b03f59dc6e0366b
[ "Apache-2.0" ]
null
null
null
scripts/preprocess.py
umd-lib/solr-irroc
860be84ea1847cbb96c1a7a70b03f59dc6e0366b
[ "Apache-2.0" ]
null
null
null
scripts/preprocess.py
umd-lib/solr-irroc
860be84ea1847cbb96c1a7a70b03f59dc6e0366b
[ "Apache-2.0" ]
1
2019-11-04T13:19:34.000Z
2019-11-04T13:19:34.000Z
#!/user/bin/env python3 # -*- coding: utf8 -*- #===================================================# # cleanup.py # # Joshua Westgard # # 2015-08-13 # # # #...
36.039216
77
0.516322
0
0
0
0
0
0
0
0
1,131
0.615343
1cf9ec2d86459244af14ac26fb2ee812ead9cfcb
1,262
py
Python
ievv_opensource/demo/batchframeworkdemo/apps.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
null
null
null
ievv_opensource/demo/batchframeworkdemo/apps.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
37
2015-10-26T09:14:12.000Z
2022-02-10T10:35:33.000Z
ievv_opensource/demo/batchframeworkdemo/apps.py
appressoas/ievv_opensource
63e87827952ddc8f6f86145b79478ef21d6a0990
[ "BSD-3-Clause" ]
1
2015-11-06T07:56:34.000Z
2015-11-06T07:56:34.000Z
from django.apps import AppConfig from ievv_opensource import ievv_batchframework from ievv_opensource.ievv_batchframework import batchregistry class HelloWorldAction(ievv_batchframework.Action): def execute(self): self.logger.info('Hello world! %r', self.kwargs) class HelloWorldAsyncAction(ievv_batchf...
33.210526
89
0.655309
1,108
0.877971
0
0
0
0
0
0
202
0.160063
1cf9fe0aeeda656a56200c7ffd6e72f3aa0fd6c3
783
py
Python
fmoe/gates/utils.py
GODVIX/fastmoe
7f6463f0367205a1e95139c6d7e930be6e7fa746
[ "Apache-2.0" ]
null
null
null
fmoe/gates/utils.py
GODVIX/fastmoe
7f6463f0367205a1e95139c6d7e930be6e7fa746
[ "Apache-2.0" ]
1
2021-05-24T03:13:50.000Z
2021-05-24T03:13:50.000Z
fmoe/gates/utils.py
Co1lin/fastmoe
ff7333c7a164a8e1f54954b1b56095dc4cde7bfc
[ "Apache-2.0" ]
null
null
null
r""" Utilities that may be used in the gates """ import torch from fmoe.functions import count_by_gate import fmoe_cuda as fmoe_native def limit_by_capacity(topk_idx, num_expert, world_size, capacity): capacity = torch.ones(num_expert, dtype=torch.int32, device=topk_idx.device) * capacity pos, le...
30.115385
79
0.711367
0
0
0
0
0
0
0
0
48
0.061303
1cfa6189a373dd681dccafae6be7e17e2a430784
4,438
py
Python
evaluate.py
DeppMeng/DANNet
831eb70d44a4a0b6f6f57ca2014521fc64d1906c
[ "Apache-2.0" ]
null
null
null
evaluate.py
DeppMeng/DANNet
831eb70d44a4a0b6f6f57ca2014521fc64d1906c
[ "Apache-2.0" ]
null
null
null
evaluate.py
DeppMeng/DANNet
831eb70d44a4a0b6f6f57ca2014521fc64d1906c
[ "Apache-2.0" ]
null
null
null
import os import torch import numpy as np from PIL import Image import torch.nn as nn from torch.utils import data from network import * from dataset.zurich_night_dataset import zurich_night_DataSet from configs.test_config import get_arguments palette = [128, 64, 128, 244, 35, 232, 70, 70, 70, 102, 102, 156, 190, ...
37.294118
116
0.630689
0
0
0
0
0
0
0
0
261
0.05881
1cff9155874f3a3bbd07b635d9ad399b58f00a6d
1,581
py
Python
decorator.py
zengboming/python
13018f476554adc3bff831af27c08f7c216d4b09
[ "Apache-2.0" ]
null
null
null
decorator.py
zengboming/python
13018f476554adc3bff831af27c08f7c216d4b09
[ "Apache-2.0" ]
null
null
null
decorator.py
zengboming/python
13018f476554adc3bff831af27c08f7c216d4b09
[ "Apache-2.0" ]
null
null
null
#decorator def now(): print "2015-11-18" f=now f() print now.__name__ print f.__name__ def log(func): def wrapper(*args,**kw): print 'begin call %s():' %func.__name__ func(*args,**kw) print 'end call %s():' %func.__name__ return wrapper @log def now1(): print now1.__name__ now1() now1=log(now1) now1() def...
17.566667
53
0.655914
0
0
0
0
826
0.522454
0
0
196
0.123972
e8000d1d11cc25ead163054e538c9037a92ad52f
2,090
py
Python
test/pyfrechet_visualize.py
compgeomTU/frechetForCurves
625bfe32a45d23b194226b4ac7713ded09bd2825
[ "MIT" ]
null
null
null
test/pyfrechet_visualize.py
compgeomTU/frechetForCurves
625bfe32a45d23b194226b4ac7713ded09bd2825
[ "MIT" ]
null
null
null
test/pyfrechet_visualize.py
compgeomTU/frechetForCurves
625bfe32a45d23b194226b4ac7713ded09bd2825
[ "MIT" ]
null
null
null
# Author: Will Rodman # wrodman@tulane.edu # # Command line to run program: # python3 pyfrechet_visualize.py import sys, os, unittest sys.path.insert(0, "../") from pyfrechet.distance import StrongDistance from pyfrechet.visualize import FreeSpaceDiagram, Trajectories TEST_DATA = "sp500" if TEST_DATA == "sp500": ...
27.866667
71
0.704306
1,436
0.687081
0
0
0
0
0
0
209
0.1
e800c566ae2b10b4aec8821bd3d2096d44b1f7e9
6,403
py
Python
py_ser_freeastro/core.py
nww2007/py_ser_freeastro
5806cf83316f48a6db0abe4a88e4485fc04a1b4d
[ "MIT" ]
null
null
null
py_ser_freeastro/core.py
nww2007/py_ser_freeastro
5806cf83316f48a6db0abe4a88e4485fc04a1b4d
[ "MIT" ]
null
null
null
py_ser_freeastro/core.py
nww2007/py_ser_freeastro
5806cf83316f48a6db0abe4a88e4485fc04a1b4d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # vim:fileencoding=UTF-8 # -*- coding: UTF-8 -*- """ Created on 15 juny 2019 y. @author: Vlsdimir Nekrasov nww2007@mail.ru """ import sys import struct import numpy as np from progress.bar import Bar import logging logging.basicConfig(format = u'%(filename)s:%(lineno)d: %(levelname)-8s [%(asc...
38.341317
165
0.580353
2,863
0.447134
0
0
0
0
0
0
3,645
0.569264
e801eb5a0287658d171711d53067b93a3c272ccf
10,915
py
Python
sgdml_dataset_generation/readers/fchk.py
humeniuka/sGDML_dataset_generation
a99f792b6aac7ff869ebcd1bd7a7226ca81f43ee
[ "MIT" ]
null
null
null
sgdml_dataset_generation/readers/fchk.py
humeniuka/sGDML_dataset_generation
a99f792b6aac7ff869ebcd1bd7a7226ca81f43ee
[ "MIT" ]
null
null
null
sgdml_dataset_generation/readers/fchk.py
humeniuka/sGDML_dataset_generation
a99f792b6aac7ff869ebcd1bd7a7226ca81f43ee
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __all__ = ["FormattedCheckpointFile"] # # Imports import numpy as np import scipy.linalg as sla from collections import OrderedDict import re import logging # # Local Imports from sgdml_dataset_generation import units from sgdml_dataset_generation.units import hbar # # L...
38.298246
132
0.536143
10,471
0.959322
0
0
0
0
0
0
6,155
0.563903
e80208494724abb41e0606d412c1f9f663383e0b
227
py
Python
2020_01_01/max_values/max_values.py
94JuHo/Algorithm_study
e2c10ec680d966e5bcc4e7cb88d9514f9ccbbf15
[ "MIT" ]
null
null
null
2020_01_01/max_values/max_values.py
94JuHo/Algorithm_study
e2c10ec680d966e5bcc4e7cb88d9514f9ccbbf15
[ "MIT" ]
null
null
null
2020_01_01/max_values/max_values.py
94JuHo/Algorithm_study
e2c10ec680d966e5bcc4e7cb88d9514f9ccbbf15
[ "MIT" ]
null
null
null
values = [] for i in range(9): values.append(int(input(''))) max_value = 0 location = 0 for i in range(9): if values[i] > max_value: max_value = values[i] location = i+1 print(max_value) print(location)
18.916667
33
0.61674
0
0
0
0
0
0
0
0
2
0.008811
e803805e9e6f0689766fc36aba000586323cb80c
3,097
py
Python
fuzzywuzzy/process.py
rhasspy/fuzzywuzzy
e5b486c756b392481ec8e1382eedce280e56fd69
[ "MIT" ]
3
2015-10-18T18:00:08.000Z
2021-03-23T06:42:02.000Z
fuzzywuzzy/process.py
rhasspy/fuzzywuzzy
e5b486c756b392481ec8e1382eedce280e56fd69
[ "MIT" ]
20
2015-01-16T18:46:53.000Z
2016-02-18T22:01:00.000Z
process.py
agile-geoscience/fuzzylas
0298292878d7fb6c0a788a1a2a21b543f49432bd
[ "Apache-2.0" ]
10
2015-08-11T10:12:56.000Z
2022-02-20T14:45:50.000Z
#!/usr/bin/env python # encoding: utf-8 """ process.py Copyright (c) 2011 Adam Cohen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights t...
35.193182
119
0.668389
0
0
0
0
0
0
0
0
2,125
0.686148
e803dd122dcc777403d95c61024e9847e1e285a3
2,063
py
Python
day03/day03.py
robfalck/AoC2017
fa19f3fb42d979b60888a1954bea571c9d4ee735
[ "Apache-2.0" ]
null
null
null
day03/day03.py
robfalck/AoC2017
fa19f3fb42d979b60888a1954bea571c9d4ee735
[ "Apache-2.0" ]
null
null
null
day03/day03.py
robfalck/AoC2017
fa19f3fb42d979b60888a1954bea571c9d4ee735
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function, division, absolute_import import numpy as np INPUT = 265149 def part1(number): skip = 2 d = 1 row = None col = None for shell_idx in range(1, 10000): size = shell_idx * 2 + 1 a = d + skip b = a + skip c = b + skip d ...
21.946809
64
0.448376
0
0
0
0
0
0
0
0
178
0.086282
e80430c85971413d707279b7c247a402de4c954e
916
py
Python
core/migrations/0004_auto_20210929_2354.py
codefair114/Inventory-App-Django
f09f43ca282f82be981cac26a92d614fdf2ff5ef
[ "MIT" ]
null
null
null
core/migrations/0004_auto_20210929_2354.py
codefair114/Inventory-App-Django
f09f43ca282f82be981cac26a92d614fdf2ff5ef
[ "MIT" ]
null
null
null
core/migrations/0004_auto_20210929_2354.py
codefair114/Inventory-App-Django
f09f43ca282f82be981cac26a92d614fdf2ff5ef
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-29 23:54 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0003_auto_20210929_2353'), ] operations = [ migrations.AlterField( model_name='order', ...
30.533333
117
0.618996
790
0.862445
0
0
0
0
0
0
179
0.195415
e804b98c7267ddc9714ddf384d8bd8fa54ddef35
5,249
py
Python
nova/api/openstack/compute/legacy_v2/contrib/console_auth_tokens.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/legacy_v2/contrib/console_auth_tokens.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/legacy_v2/contrib/console_auth_tokens.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
2
2017-07-20T17:31:34.000Z
2020-07-24T02:42:19.000Z
begin_unit comment|'# Copyright 2013 Cloudbase Solutions Srl' nl|'\n' comment|'# All Rights Reserved.' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n'...
14.62117
88
0.634597
0
0
0
0
0
0
0
0
2,988
0.569251
e805511a04665665499fc07f9e4ac3855c825235
1,801
py
Python
ahrs/common/geometry.py
jaluebbe/ahrs
4b4a33b1006e0d455a71ac8379a2697202361758
[ "MIT" ]
184
2019-09-06T07:58:52.000Z
2022-03-31T04:27:09.000Z
ahrs/common/geometry.py
geoKinga/ahrs
87f9210cfcf6c545d86ae8588a93f012020164ee
[ "MIT" ]
48
2019-11-13T15:42:46.000Z
2022-03-31T23:53:53.000Z
ahrs/common/geometry.py
geoKinga/ahrs
87f9210cfcf6c545d86ae8588a93f012020164ee
[ "MIT" ]
34
2019-12-19T16:22:00.000Z
2022-03-14T09:51:50.000Z
# -*- coding: utf-8 -*- """ Geometrical functions --------------------- References ---------- .. [W1] Wikipedia: https://de.wikipedia.org/wiki/Ellipse#Ellipsengleichung_(Parameterform) .. [WAE] Wolfram Alpha: Ellipse. (http://mathworld.wolfram.com/Ellipse.html) """ import numpy as np from typing import Union def ci...
27.287879
124
0.599667
0
0
0
0
0
0
0
0
1,105
0.613548
e8072be9245c30cff262ca9e32de353f2b9c7c66
4,435
py
Python
htdocs/plotting/auto/scripts100/p116.py
jamayfieldjr/iem
275b77a65f3b12e26e6cbdb230786b9c7d2b9c9a
[ "MIT" ]
1
2019-10-07T17:01:24.000Z
2019-10-07T17:01:24.000Z
htdocs/plotting/auto/scripts100/p116.py
jamayfieldjr/iem
275b77a65f3b12e26e6cbdb230786b9c7d2b9c9a
[ "MIT" ]
null
null
null
htdocs/plotting/auto/scripts100/p116.py
jamayfieldjr/iem
275b77a65f3b12e26e6cbdb230786b9c7d2b9c9a
[ "MIT" ]
null
null
null
"""Monthly HDD/CDD Totals.""" import datetime from pandas.io.sql import read_sql from pyiem.plot.use_agg import plt from pyiem.util import get_dbconn, get_autoplot_context from pyiem.exceptions import NoDataFound PDICT = {'cdd': 'Cooling Degree Days', 'hdd': 'Heating Degree Days'} def get_description(): ...
34.92126
76
0.555355
0
0
0
0
0
0
0
0
1,923
0.433596
e807b65f64a7deff0b619d067868e319ecf01061
12,502
py
Python
examples/horovod/ray_torch_shuffle.py
krfricke/ray_shuffling_data_loader
b238871d45218c655cd0fcd78b8bf2a3940087f9
[ "Apache-2.0" ]
16
2021-05-13T08:03:03.000Z
2021-09-30T00:20:01.000Z
examples/horovod/ray_torch_shuffle.py
krfricke/ray_shuffling_data_loader
b238871d45218c655cd0fcd78b8bf2a3940087f9
[ "Apache-2.0" ]
12
2021-05-04T22:18:01.000Z
2021-07-14T12:10:40.000Z
examples/horovod/ray_torch_shuffle.py
krfricke/ray_shuffling_data_loader
b238871d45218c655cd0fcd78b8bf2a3940087f9
[ "Apache-2.0" ]
5
2021-05-18T02:57:50.000Z
2021-07-01T11:23:05.000Z
import os import pickle import time import timeit import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import numpy as np import torch import tempfile import horovod.torch as hvd from horovod.ray import RayExecutor from ray_shuffling_data_loader.torch_dataset import (TorchShufflingDatase...
35.925287
79
0.654375
615
0.049192
0
0
0
0
0
0
3,390
0.271157
e80814f0c20b1ee061421e9446a7dafff2db52a5
13,051
py
Python
tests/test_main/test_base/tests.py
PitonX60/django-firebird
407bd5916a8ae37184d06adb3b943d6bb4f7076f
[ "BSD-3-Clause" ]
51
2015-01-13T00:16:36.000Z
2022-01-28T12:18:22.000Z
tests/test_main/test_base/tests.py
PitonX60/django-firebird
407bd5916a8ae37184d06adb3b943d6bb4f7076f
[ "BSD-3-Clause" ]
84
2015-01-28T19:08:22.000Z
2022-03-26T02:04:03.000Z
tests/test_main/test_base/tests.py
PitonX60/django-firebird
407bd5916a8ae37184d06adb3b943d6bb4f7076f
[ "BSD-3-Clause" ]
47
2015-01-13T00:53:27.000Z
2021-08-03T04:20:31.000Z
# -*- coding: utf-8 -*- from datetime import datetime, timedelta from django.conf import settings from django.db import connection, DatabaseError from django.db.models import F, DateField, DateTimeField, IntegerField, TimeField, CASCADE from django.db.models.fields.related import ForeignKey from django.db.models.func...
42.930921
257
0.64815
10,851
0.831431
0
0
5,543
0.424718
0
0
2,923
0.223968
e808484d2e1b639627bded840c79fb6fdbdc05fc
7,200
py
Python
tests/test_past_failures.py
justinbois/eqtk
7363b8c09e35088d2cb2cb5a62d315b52cce0d9b
[ "MIT" ]
2
2020-05-17T05:34:40.000Z
2020-05-17T12:40:14.000Z
tests/test_past_failures.py
justinbois/eqtk
7363b8c09e35088d2cb2cb5a62d315b52cce0d9b
[ "MIT" ]
1
2021-12-07T01:20:48.000Z
2021-12-07T01:20:48.000Z
tests/test_past_failures.py
justinbois/eqtk
7363b8c09e35088d2cb2cb5a62d315b52cce0d9b
[ "MIT" ]
null
null
null
import pytest import numpy as np import eqtk def test_promiscuous_binding_failure(): A = np.array( [ [ 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, ...
24
87
0.321806
0
0
0
0
0
0
0
0
40
0.005556
e80867dca8c2989991af1d5f2e487d3e8fa8b0f5
13,314
py
Python
sdk/python/pulumi_azure/lb/outbound_rule.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/lb/outbound_rule.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/lb/outbound_rule.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilitie...
53.043825
207
0.686646
12,906
0.969356
0
0
6,010
0.451405
0
0
7,823
0.587577
e8094e0dbe640e5e2094dda3ca82426a4117f2ae
21,377
py
Python
orbit_predictor/predictors/base.py
Juanlu001/orbit-predictor
ca67e2e859932938627ed24e5cbf58c887cd99c0
[ "MIT" ]
null
null
null
orbit_predictor/predictors/base.py
Juanlu001/orbit-predictor
ca67e2e859932938627ed24e5cbf58c887cd99c0
[ "MIT" ]
null
null
null
orbit_predictor/predictors/base.py
Juanlu001/orbit-predictor
ca67e2e859932938627ed24e5cbf58c887cd99c0
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2017 Satellogic SA # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge...
38.105169
98
0.635449
19,317
0.903423
4,368
0.204284
3,364
0.157329
0
0
5,926
0.277149
e80a42577d50ff4b5707bc38cca297d3bcb73ab4
170
py
Python
vilmedic/scorers/NLG/__init__.py
jbdel/vilmedic
17d462a540a2632811cc2a78edd2861800a33b07
[ "MIT" ]
15
2021-07-24T10:41:07.000Z
2022-03-27T14:40:47.000Z
vilmedic/scorers/NLG/__init__.py
jbdel/vilmedic
17d462a540a2632811cc2a78edd2861800a33b07
[ "MIT" ]
null
null
null
vilmedic/scorers/NLG/__init__.py
jbdel/vilmedic
17d462a540a2632811cc2a78edd2861800a33b07
[ "MIT" ]
2
2022-02-22T17:37:22.000Z
2022-03-20T12:55:40.000Z
from .rouge import ROUGEScorer from .bleu.bleu import BLEUScorer from .meteor.meteor import METEORScorer from .cider.cider import Cider from .ciderd.ciderd import CiderD
28.333333
39
0.829412
0
0
0
0
0
0
0
0
0
0
e80f9dcf1fbaf95d64db548a68a4a0e2a7c25dc9
3,993
py
Python
tests/test_liif.py
Yshuo-Li/mmediting-test
ff8349a183b3d266495a53be0c8ad8e342e8b461
[ "Apache-2.0" ]
2
2021-05-16T14:49:23.000Z
2022-03-28T01:16:44.000Z
tests/test_liif.py
Yshuo-Li/mmediting-test
ff8349a183b3d266495a53be0c8ad8e342e8b461
[ "Apache-2.0" ]
null
null
null
tests/test_liif.py
Yshuo-Li/mmediting-test
ff8349a183b3d266495a53be0c8ad8e342e8b461
[ "Apache-2.0" ]
2
2021-04-22T12:10:14.000Z
2021-05-19T02:09:48.000Z
import numpy as np import torch import torch.nn as nn from mmcv.runner import obj_from_dict from mmcv.utils.config import Config from mmedit.models import build_model from mmedit.models.losses import L1Loss from mmedit.models.registry import COMPONENTS @COMPONENTS.register_module() class BP(nn.Module): """A simp...
34.721739
77
0.615577
419
0.104934
0
0
449
0.112447
0
0
712
0.178312
e80fc2194a7c4cdddb23cee4ca11cad0caafde7b
3,739
py
Python
database/signals.py
ccraddock/beiwe-backend-cc
b37c2604800aafcf81c93bc14673ada6aed17a39
[ "BSD-3-Clause" ]
null
null
null
database/signals.py
ccraddock/beiwe-backend-cc
b37c2604800aafcf81c93bc14673ada6aed17a39
[ "BSD-3-Clause" ]
null
null
null
database/signals.py
ccraddock/beiwe-backend-cc
b37c2604800aafcf81c93bc14673ada6aed17a39
[ "BSD-3-Clause" ]
null
null
null
from django.utils import timezone from django.core.exceptions import ObjectDoesNotExist from django.db.models.signals import post_save, pre_save from django.dispatch import receiver from database.study_models import DeviceSettings, Study, Survey, SurveyArchive @receiver(post_save, sender=Study) def popula...
46.7375
127
0.70099
0
0
0
0
3,457
0.924579
0
0
1,880
0.502808
e810f0787ee0e3fe022cdf8b169ed014bf9c5752
673
py
Python
docs/examples/notify/notify_skeleton.py
Blakstar26/npyscreen
d47f9c78dc9fea6f66aaef60403e748bb89e52f7
[ "BSD-2-Clause" ]
null
null
null
docs/examples/notify/notify_skeleton.py
Blakstar26/npyscreen
d47f9c78dc9fea6f66aaef60403e748bb89e52f7
[ "BSD-2-Clause" ]
null
null
null
docs/examples/notify/notify_skeleton.py
Blakstar26/npyscreen
d47f9c78dc9fea6f66aaef60403e748bb89e52f7
[ "BSD-2-Clause" ]
null
null
null
import npyscreen class NotifyBaseExample(npyscreen.Form): def create(self): key_of_choice = 'p' what_to_display = 'Press {} for popup \n Press escape key to quit'.format(key_of_choice) self.how_exited_handers[npyscreen.wgwidget.EXITED_ESCAPE] = self.exit_application self.add(npysc...
29.26087
96
0.707281
586
0.870728
0
0
0
0
0
0
88
0.130758
e8112e27cfea3db2efc0a5a799487bb00e1650b2
5,656
py
Python
practicioner_bundle/ch15-neural_style/pyimagesearch/nn/conv/minigooglenet.py
romanroson/pis_code
1221c39c23bec62ba419f9a324f88b0d8e5e4b5b
[ "MIT" ]
1
2020-06-07T04:02:16.000Z
2020-06-07T04:02:16.000Z
practicioner_bundle/ch15-neural_style/pyimagesearch/nn/conv/minigooglenet.py
romanroson/pis_code
1221c39c23bec62ba419f9a324f88b0d8e5e4b5b
[ "MIT" ]
null
null
null
practicioner_bundle/ch15-neural_style/pyimagesearch/nn/conv/minigooglenet.py
romanroson/pis_code
1221c39c23bec62ba419f9a324f88b0d8e5e4b5b
[ "MIT" ]
2
2020-03-25T10:51:54.000Z
2020-09-18T09:36:44.000Z
# -*- coding: utf-8 -*- """Implementation of MiniGoogLeNet architecture. This implementation is based on the original implemetation of GoogLeNet. The authors of the net used BN before Activation layer. This should be switched. """ from keras.layers.normalization import BatchNormalization from keras.layers.convolutiona...
39.277778
102
0.647454
4,955
0.872359
0
0
4,851
0.854049
0
0
2,808
0.494366
e81163dfe2d224db06c949798465e50a5cb2ce2e
7,702
py
Python
python/GafferUI/ScriptEditor.py
PaulDoessel/gaffer-play
8b72dabb388e12424c230acfb0bd209049b01bd6
[ "BSD-3-Clause" ]
null
null
null
python/GafferUI/ScriptEditor.py
PaulDoessel/gaffer-play
8b72dabb388e12424c230acfb0bd209049b01bd6
[ "BSD-3-Clause" ]
null
null
null
python/GafferUI/ScriptEditor.py
PaulDoessel/gaffer-play
8b72dabb388e12424c230acfb0bd209049b01bd6
[ "BSD-3-Clause" ]
1
2020-02-15T16:15:54.000Z
2020-02-15T16:15:54.000Z
########################################################################## # # Copyright (c) 2011-2012, John Haddon. All rights reserved. # Copyright (c) 2011-2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted prov...
36.67619
141
0.692288
5,279
0.685406
0
0
0
0
0
0
2,922
0.379382
e811afcf8e2f5fbd26eb4879dec2b68ca870f0fa
1,475
py
Python
03/triangle.py
machinelearningdeveloper/aoc_2016
e2c2f7909b09c2ad27f87e05a80f2b2feee6a3a2
[ "MIT" ]
null
null
null
03/triangle.py
machinelearningdeveloper/aoc_2016
e2c2f7909b09c2ad27f87e05a80f2b2feee6a3a2
[ "MIT" ]
null
null
null
03/triangle.py
machinelearningdeveloper/aoc_2016
e2c2f7909b09c2ad27f87e05a80f2b2feee6a3a2
[ "MIT" ]
null
null
null
"""Test whether putative triangles, specified as triples of side lengths, in fact are possible.""" def load_triangles(filename): """Load triangles from filename.""" triangles = [] with open(filename) as f: for line in f: if line.strip(): triangles.append(tuple([int(side) ...
31.382979
76
0.51661
0
0
0
0
0
0
0
0
397
0.269153
e811c36f36c477d41124bae1d31894772c187da0
135
py
Python
ExerciciosdePython/ex049.py
aleksandromelo/Exercicios
782ff539efa1286180eaf8df8c25c4eca7a5e669
[ "MIT" ]
null
null
null
ExerciciosdePython/ex049.py
aleksandromelo/Exercicios
782ff539efa1286180eaf8df8c25c4eca7a5e669
[ "MIT" ]
null
null
null
ExerciciosdePython/ex049.py
aleksandromelo/Exercicios
782ff539efa1286180eaf8df8c25c4eca7a5e669
[ "MIT" ]
null
null
null
num = int(input('Digite um número para ver sua tabuada: ')) for i in range(1, 11): print('{} x {:2} = {}'.format(num, i, num * i))
33.75
59
0.57037
0
0
0
0
0
0
0
0
58
0.426471
e811dc5802ea397bf5ec6753cbdbdf5b70c81146
151
py
Python
ebmeta/actions/version.py
bkidwell/ebmeta-old
2279ddd14235ea31b27f0eaa7e9bb26cb43d4133
[ "0BSD" ]
1
2021-01-05T10:24:13.000Z
2021-01-05T10:24:13.000Z
ebmeta/actions/version.py
bkidwell/ebmeta-old
2279ddd14235ea31b27f0eaa7e9bb26cb43d4133
[ "0BSD" ]
null
null
null
ebmeta/actions/version.py
bkidwell/ebmeta-old
2279ddd14235ea31b27f0eaa7e9bb26cb43d4133
[ "0BSD" ]
null
null
null
"""Print ebmeta version number.""" import sys import ebmeta def run(): print "{} {}".format(ebmeta.PROGRAM_NAME, ebmeta.VERSION) sys.exit(0)
16.777778
61
0.668874
0
0
0
0
0
0
0
0
41
0.271523
e812c612130c7c8d3bd444f6ef7c0936cdb5b8cc
9,594
py
Python
backend/api/tests/mixins/credit_trade_relationship.py
amichard/tfrs
ed3973016cc5c2ae48999d550a23b41a5ddad807
[ "Apache-2.0" ]
18
2017-05-10T21:55:11.000Z
2021-03-01T16:41:32.000Z
backend/api/tests/mixins/credit_trade_relationship.py
amichard/tfrs
ed3973016cc5c2ae48999d550a23b41a5ddad807
[ "Apache-2.0" ]
1,167
2017-03-04T00:18:43.000Z
2022-03-03T22:31:51.000Z
backend/api/tests/mixins/credit_trade_relationship.py
amichard/tfrs
ed3973016cc5c2ae48999d550a23b41a5ddad807
[ "Apache-2.0" ]
48
2017-03-09T17:19:39.000Z
2022-02-24T16:38:17.000Z
# -*- coding: utf-8 -*- # pylint: disable=no-member,invalid-name,duplicate-code """ REST API Documentation for the NRS TFRS Credit Trading Application The Transportation Fuels Reporting System is being designed to streamline compliance reporting for transportation fuel suppliers in accordance with the ...
36.340909
96
0.575985
8,371
0.872524
0
0
0
0
0
0
2,840
0.296018
e81446098f632747c9bb69739c5cdbc90d7e2461
946
py
Python
superset/superset_config.py
panchohumeres/dynamo-covid
cf473be3eeca436efccd8891a61b721192cf6d34
[ "MIT" ]
4
2020-08-10T07:35:10.000Z
2022-03-31T23:03:32.000Z
superset/superset_config.py
panchohumeres/superJupyter
cc0ce98da2c58a7ab0ae502b5b07250db0c78b89
[ "MIT" ]
1
2021-06-02T02:51:12.000Z
2021-06-02T02:51:12.000Z
superset/superset_config.py
panchohumeres/dynamo-covid
cf473be3eeca436efccd8891a61b721192cf6d34
[ "MIT" ]
1
2022-02-08T01:46:19.000Z
2022-02-08T01:46:19.000Z
import os SERVER_NAME = os.getenv('DOMAIN_SUPERSET') PUBLIC_ROLE_LIKE_GAMMA = True SESSION_COOKIE_SAMESITE = None # One of [None, 'Lax', 'Strict'] SESSION_COOKIE_HTTPONLY = False MAPBOX_API_KEY = os.getenv('MAPBOX_API_KEY', '') POSTGRES_DB=os.getenv('POSTGRES_DB') POSTGRES_PASSWORD=os.getenv('POSTGRES_PASSWORD') POSTG...
35.037037
122
0.756871
0
0
0
0
0
0
0
0
387
0.409091
e814b12d587f4fdbbd8d27aa48d2d332f3fb169b
14,345
py
Python
mybot.py
johnnyboiii3020/matchmaking-bot
c36df430fd8b3292f34fb2e156e65d9914e0e497
[ "MIT" ]
null
null
null
mybot.py
johnnyboiii3020/matchmaking-bot
c36df430fd8b3292f34fb2e156e65d9914e0e497
[ "MIT" ]
null
null
null
mybot.py
johnnyboiii3020/matchmaking-bot
c36df430fd8b3292f34fb2e156e65d9914e0e497
[ "MIT" ]
null
null
null
import discord import json import random import os from discord.ext import commands TOKEN = "" client = commands.Bot(command_prefix = '--') os.chdir(r'D:\Programming\Projects\Discord bot\jsonFiles') SoloCounter = 30 SolominCounter = 10 Queueiter = 1 T_Queueiter = 1 TeamCounter = 50 TeamminCounter = 20 ...
40.408451
171
0.594772
0
0
0
0
5,720
0.398745
12,094
0.843081
2,466
0.171907
e814cda6088e4f32617041b4185b65bf218042f4
18,547
py
Python
conversation.py
markemus/economy
d7b3be9b2095393d7ee5c8967b9fcee8998776bb
[ "MIT" ]
2
2017-05-09T22:46:18.000Z
2021-09-07T06:04:57.000Z
conversation.py
markemus/economy
d7b3be9b2095393d7ee5c8967b9fcee8998776bb
[ "MIT" ]
null
null
null
conversation.py
markemus/economy
d7b3be9b2095393d7ee5c8967b9fcee8998776bb
[ "MIT" ]
3
2017-07-20T21:22:30.000Z
2020-10-17T13:04:28.000Z
import database as d import numpy as np import random from transitions import Machine #Conversations are markov chains. Works as follows: a column vector for each CURRENT state j, a row vector for each TARGET state i. #Each entry i,j = the probability of moving to state i from state j. #target state D = end of convers...
40.942605
153
0.586025
18,022
0.971694
0
0
0
0
0
0
5,945
0.320537
e815853c059c203edb8fd8cdf216a9a5dcd145cf
218
py
Python
src/createData.py
saijananiganesan/SimPathFinder
1634f2cb82c8056256d191be72589c4c531a3f67
[ "MIT" ]
null
null
null
src/createData.py
saijananiganesan/SimPathFinder
1634f2cb82c8056256d191be72589c4c531a3f67
[ "MIT" ]
1
2021-09-27T18:46:29.000Z
2021-10-01T19:19:48.000Z
src/createData.py
saijananiganesan/SimPathFinder
1634f2cb82c8056256d191be72589c4c531a3f67
[ "MIT" ]
null
null
null
from __init__ import ExtractUnlabeledData, SampleUnlabeledData, ExtractLabeledData E = ExtractLabeledData(data_dir='../labeldata/') E.get_pathways() E.get_pathway_names() E.get_classes_dict() E.create_df_all_labels()
27.25
82
0.825688
0
0
0
0
0
0
0
0
15
0.068807
e815ba1c0be05931c138a14af77c58193d1bc5db
3,812
py
Python
blog/views.py
farman99ahmed/diyblog
2e4548037c95b5563d2fdba3d05b488330a5e2b4
[ "MIT" ]
null
null
null
blog/views.py
farman99ahmed/diyblog
2e4548037c95b5563d2fdba3d05b488330a5e2b4
[ "MIT" ]
null
null
null
blog/views.py
farman99ahmed/diyblog
2e4548037c95b5563d2fdba3d05b488330a5e2b4
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from .forms import AuthorForm, BlogForm, NewUserForm from .models import Author, Blog from django.contrib.auth import login, authenticate, logout from django.contrib import messages from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth.decorator...
33.147826
100
0.670776
0
0
0
0
1,868
0.490031
0
0
612
0.160546
e8163cfdf2d7fa0a32158347c9c5f81ab0a3df6a
1,759
py
Python
tests/conftest.py
SolomidHero/speech-regeneration-enhancer
eb43907ff085d68a707ff7bc3af14e93ff66fd65
[ "MIT" ]
8
2021-03-27T00:17:17.000Z
2022-01-26T05:26:19.000Z
tests/conftest.py
SolomidHero/speech-regeneration-enhancer
eb43907ff085d68a707ff7bc3af14e93ff66fd65
[ "MIT" ]
1
2021-09-26T02:29:21.000Z
2021-09-27T08:56:13.000Z
tests/conftest.py
SolomidHero/speech-regeneration-enhancer
eb43907ff085d68a707ff7bc3af14e93ff66fd65
[ "MIT" ]
1
2021-03-26T12:30:14.000Z
2021-03-26T12:30:14.000Z
# here we make fixtures of toy data # real parameters are stored and accessed from config import pytest import librosa import os import numpy as np from hydra.experimental import compose, initialize @pytest.fixture(scope="session") def cfg(): with initialize(config_path="../", job_name="test_app"): config = ...
25.867647
77
0.74133
0
0
118
0.067084
1,394
0.792496
0
0
501
0.284821
e8175b6a8041e64371cfdfe4643c61104dee988c
2,189
py
Python
dataclassses_howto.py
CvanderStoep/VideosSampleCode
38a8d2538a041d5664d0040807ffac463d0fb79c
[ "MIT" ]
285
2021-02-16T21:08:57.000Z
2022-03-31T10:58:41.000Z
dataclassses_howto.py
CvanderStoep/VideosSampleCode
38a8d2538a041d5664d0040807ffac463d0fb79c
[ "MIT" ]
10
2021-05-01T17:20:50.000Z
2022-03-09T21:46:46.000Z
dataclassses_howto.py
CvanderStoep/VideosSampleCode
38a8d2538a041d5664d0040807ffac463d0fb79c
[ "MIT" ]
96
2021-02-15T14:23:15.000Z
2022-03-31T10:58:50.000Z
import dataclasses import inspect from dataclasses import dataclass, field from pprint import pprint import attr class ManualComment: def __init__(self, id: int, text: str): self.id: int = id self.text: str = text def __repr__(self): return "{}(id={}, text={})".format(self.__class__....
25.752941
87
0.616263
1,623
0.741434
0
0
259
0.118319
0
0
89
0.040658
e81917ac02c5b07e90d8b7911baf13d1cd91a319
574
py
Python
downloadMusic/main.py
yaosir0317/my_first
387fe21aa529bca1d08ed45e13269aca23dce251
[ "MIT" ]
null
null
null
downloadMusic/main.py
yaosir0317/my_first
387fe21aa529bca1d08ed45e13269aca23dce251
[ "MIT" ]
null
null
null
downloadMusic/main.py
yaosir0317/my_first
387fe21aa529bca1d08ed45e13269aca23dce251
[ "MIT" ]
null
null
null
from enum import Enum import requests class MusicAPP(Enum): qq = "qq" wy = "netease" PRE_URL = "http://www.musictool.top/" headers = {"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"} def get_music_list(name, app, pag...
24.956522
149
0.663763
54
0.09375
0
0
0
0
0
0
223
0.387153
e81b190b66eb2d495bc411eca3c4ded7a86955c8
892
py
Python
app/api/serializers.py
michelmarcondes/django-study-with-docker
248e41db3f16a5d26662c5e93ebf32716a20195e
[ "MIT" ]
null
null
null
app/api/serializers.py
michelmarcondes/django-study-with-docker
248e41db3f16a5d26662c5e93ebf32716a20195e
[ "MIT" ]
null
null
null
app/api/serializers.py
michelmarcondes/django-study-with-docker
248e41db3f16a5d26662c5e93ebf32716a20195e
[ "MIT" ]
null
null
null
from rest_framework import serializers from projects.models import Project, Tag, Review from users.models import Profile class ReviewSerializer(serializers.ModelSerializer): class Meta: model = Review fields = '__all__' class ProfileSerializer(serializers.ModelSerializer): class Meta: ...
24.777778
57
0.696188
760
0.852018
0
0
0
0
0
0
36
0.040359
e81b3e433344ddf1234f763d89e92536bfcf4280
108,927
py
Python
corehq/apps/domain/views.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/domain/views.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
1
2022-03-12T01:03:25.000Z
2022-03-12T01:03:25.000Z
corehq/apps/domain/views.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
import copy import datetime from decimal import Decimal import logging import uuid import json import cStringIO from couchdbkit import ResourceNotFound import dateutil from django.core.paginator import Paginator from django.views.generic import View from django.db.models import Sum from django.conf import settings fro...
38.750267
130
0.636215
93,856
0.861641
2,307
0.021179
57,578
0.528593
0
0
14,888
0.136679
e81ba3ad3b0b7d369560fab0313b86525e0c16f1
5,668
py
Python
src/anmi/T2/funcs_met_iters.py
alexmascension/ANMI
9c51a497a5fa2650f1429f847c7f9df69271168b
[ "BSD-3-Clause" ]
1
2021-11-30T23:30:45.000Z
2021-11-30T23:30:45.000Z
src/anmi/T2/funcs_met_iters.py
alexmascension/ANMI
9c51a497a5fa2650f1429f847c7f9df69271168b
[ "BSD-3-Clause" ]
2
2021-04-11T20:39:15.000Z
2021-04-13T17:45:43.000Z
src/anmi/T2/funcs_met_iters.py
alexmascension/ANMI
9c51a497a5fa2650f1429f847c7f9df69271168b
[ "BSD-3-Clause" ]
1
2021-11-30T23:31:11.000Z
2021-11-30T23:31:11.000Z
from sympy import simplify, zeros from sympy import Matrix as mat import numpy as np from ..genericas import print_verbose, matriz_inversa def criterio_radio_espectral(H, verbose=True): eigs = [simplify(i) for i in list(H.eigenvals().keys())] print_verbose("||Criterio de radio espectral||", verbose) try...
32.574713
165
0.572689
0
0
0
0
0
0
0
0
2,346
0.412447
e81c315cccb3d9ee19bee096605d603f1e698137
282
py
Python
{{cookiecutter.project_hyphen}}/{{cookiecutter.project_slug}}/__init__.py
zhangxianbing/cookiecutter-pypackage
28f7f305d3baf96771881c3359227bed1bc7d182
[ "BSD-3-Clause" ]
1
2021-05-20T06:20:13.000Z
2021-05-20T06:20:13.000Z
{{cookiecutter.project_hyphen}}/{{cookiecutter.project_slug}}/__init__.py
zhangxianbing/cookiecutter-pypackage
28f7f305d3baf96771881c3359227bed1bc7d182
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_hyphen}}/{{cookiecutter.project_slug}}/__init__.py
zhangxianbing/cookiecutter-pypackage
28f7f305d3baf96771881c3359227bed1bc7d182
[ "BSD-3-Clause" ]
null
null
null
"""{{ cookiecutter.project_name }} - {{ cookiecutter.project_short_description }}""" __version__ = "{{ cookiecutter.project_version }}" __author__ = """{{ cookiecutter.author_name }}""" __email__ = "{{ cookiecutter.author_email }}" prog_name = "{{ cookiecutter.project_hyphen }}"
35.25
84
0.70922
0
0
0
0
0
0
0
0
224
0.794326
e81d0332787bf5b5558e04aef3e4c8b78112e963
200
py
Python
services/osparc-gateway-server/tests/integration/_dask_helpers.py
mguidon/osparc-dask-gateway
accd850c15cb3a36cf4421a1d070a4db29843013
[ "MIT" ]
1
2022-01-25T09:18:59.000Z
2022-01-25T09:18:59.000Z
services/osparc-gateway-server/tests/integration/_dask_helpers.py
ITISFoundation/osparc-dask-gateway
13d533de582382fcca3c379df30534ca0e6e145f
[ "MIT" ]
16
2021-12-06T16:16:17.000Z
2022-03-21T13:26:48.000Z
services/osparc-gateway-server/tests/integration/_dask_helpers.py
sanderegg/osparc-dask-gateway
13d533de582382fcca3c379df30534ca0e6e145f
[ "MIT" ]
2
2021-11-26T15:56:00.000Z
2021-12-07T21:27:41.000Z
from typing import NamedTuple from dask_gateway_server.app import DaskGateway class DaskGatewayServer(NamedTuple): address: str proxy_address: str password: str server: DaskGateway
18.181818
47
0.775
118
0.59
0
0
0
0
0
0
0
0
e81d5f97eebe858da4677a4562a912397f01a885
5,487
py
Python
rdkit/ML/InfoTheory/BitRank.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
1,609
2015-01-05T02:41:13.000Z
2022-03-30T21:57:24.000Z
rdkit/ML/InfoTheory/BitRank.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
3,412
2015-01-06T12:13:33.000Z
2022-03-31T17:25:41.000Z
rdkit/ML/InfoTheory/BitRank.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
811
2015-01-11T03:33:48.000Z
2022-03-28T11:57:49.000Z
# # Copyright (C) 2001,2002,2003 greg Landrum and Rational Discovery LLC # """ Functionality for ranking bits using info gains **Definitions used in this module** - *sequence*: an object capable of containing other objects which supports __getitem__() and __len__(). Examples of these include lists, tupl...
27.163366
97
0.68635
0
0
0
0
0
0
0
0
3,263
0.594678
e81d7c04c616831d43d69c14fef3ddcc06add40b
5,766
py
Python
trainer/dataset.py
vinay-swamy/gMVP
62202baa0769dfe0e47c230e78dffa42fb1280f1
[ "MIT" ]
2
2021-04-24T03:23:40.000Z
2021-06-28T11:51:10.000Z
trainer/dataset.py
vinay-swamy/gMVP
62202baa0769dfe0e47c230e78dffa42fb1280f1
[ "MIT" ]
null
null
null
trainer/dataset.py
vinay-swamy/gMVP
62202baa0769dfe0e47c230e78dffa42fb1280f1
[ "MIT" ]
2
2021-09-14T13:03:38.000Z
2022-03-23T02:49:19.000Z
import tensorflow as tf import os import pickle import numpy as np from constant_params import input_feature_dim, window_size def build_dataset(input_tfrecord_files, batch_size): drop_remainder = False feature_description = { 'label': tf.io.FixedLenFeature([], tf.int64), 'ref_aa': tf.io.Fixe...
33.137931
125
0.601283
0
0
2,014
0.349289
0
0
0
0
786
0.136316
e81d9b0b490485d24940928f241dddb40fd49833
209,857
py
Python
layers/eight_mile/pytorch/layers.py
dpressel/baseline
2f46f3b043f2d20bc348495cc54c834f31f71098
[ "Apache-2.0" ]
241
2016-04-25T20:02:31.000Z
2019-09-03T05:44:09.000Z
layers/eight_mile/pytorch/layers.py
dpressel/baseline
2f46f3b043f2d20bc348495cc54c834f31f71098
[ "Apache-2.0" ]
42
2017-08-21T16:04:36.000Z
2019-09-30T20:45:17.000Z
layers/eight_mile/pytorch/layers.py
dpressel/baseline
2f46f3b043f2d20bc348495cc54c834f31f71098
[ "Apache-2.0" ]
75
2016-06-28T01:18:58.000Z
2019-08-29T06:47:22.000Z
import copy import math import logging from typing import Dict, List, Optional, Tuple, Union import os import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.jit as jit import torch.autograd import contextlib import glob from eight_mile.utils import listify, Offsets, is_seque...
41.613524
202
0.62778
185,366
0.883297
94
0.000448
4,563
0.021743
0
0
72,729
0.346565
e81e5aa3bb914c6f0bd68fa448159f5b4cf4de2f
348
py
Python
setup.py
flother/pdf-search
fa4c519a673bf5a5d25e1ab44e971690ab3cf781
[ "MIT" ]
5
2018-06-18T10:31:20.000Z
2020-06-10T01:05:02.000Z
setup.py
flother/pdf-search
fa4c519a673bf5a5d25e1ab44e971690ab3cf781
[ "MIT" ]
null
null
null
setup.py
flother/pdf-search
fa4c519a673bf5a5d25e1ab44e971690ab3cf781
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='espdf', version='0.1.0-dev', url='https://github.com/flother/pdf-search', py_modules=( 'espdf', ), install_requires=( 'certifi', 'elasticsearch-dsl', ), entry_points={ 'console_scripts': ( 'espdf=espd...
16.571429
48
0.514368
0
0
0
0
0
0
0
0
126
0.362069
e81f767a21388acf235edc3f3bc49f314ff2619e
10,376
py
Python
pywallet/network.py
martexcoin/pywallet
dca53f124452869890b0247c40afba821b650c6b
[ "MIT" ]
1
2021-01-04T04:11:42.000Z
2021-01-04T04:11:42.000Z
pywallet/network.py
martexcoin/pywallet
dca53f124452869890b0247c40afba821b650c6b
[ "MIT" ]
null
null
null
pywallet/network.py
martexcoin/pywallet
dca53f124452869890b0247c40afba821b650c6b
[ "MIT" ]
1
2021-07-09T21:21:07.000Z
2021-07-09T21:21:07.000Z
class BitcoinGoldMainNet(object): """Bitcoin Gold MainNet version bytes. """ NAME = "Bitcoin Gold Main Net" COIN = "BTG" SCRIPT_ADDRESS = 0x17 # int(0x17) = 23 PUBKEY_ADDRESS = 0x26 # int(0x26) = 38 # Used to create payment addresses SECRET_KEY = 0x80 # int(0x80) = 128 # Used for WIF fo...
37.189964
88
0.673092
10,332
0.995759
0
0
0
0
0
0
6,118
0.58963
e82007b9763c2cfe490672fce1bfbb724173644a
2,776
py
Python
conanfile.py
sintef-ocean/conan-clapack
9c472130eaadee71253ced9b5fe25ee1b868bcb3
[ "MIT" ]
null
null
null
conanfile.py
sintef-ocean/conan-clapack
9c472130eaadee71253ced9b5fe25ee1b868bcb3
[ "MIT" ]
null
null
null
conanfile.py
sintef-ocean/conan-clapack
9c472130eaadee71253ced9b5fe25ee1b868bcb3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from conans import ConanFile, CMake, tools import shutil class ClapackConan(ConanFile): name = "clapack" version = "3.2.1" license = "BSD 3-Clause" # BSD-3-Clause-Clear url = "https://github.com/sintef-ocean/conan-clapack" author = "SINTEF Ocean" ...
35.139241
84
0.610231
2,669
0.961455
0
0
0
0
0
0
816
0.293948
e820480eb7c2b0f9e9f4f3e9695e4d3110de174e
20,078
py
Python
yacos/algorithm/metaheuristics.py
ComputerSystemsLaboratory/YaCoS
abd5d3c6e227e5c7a563493f7855ebf58ba3de05
[ "Apache-2.0" ]
8
2022-02-03T16:41:01.000Z
2022-02-09T11:29:20.000Z
yacos/algorithm/metaheuristics.py
ComputerSystemsLaboratory/YaCoS
abd5d3c6e227e5c7a563493f7855ebf58ba3de05
[ "Apache-2.0" ]
null
null
null
yacos/algorithm/metaheuristics.py
ComputerSystemsLaboratory/YaCoS
abd5d3c6e227e5c7a563493f7855ebf58ba3de05
[ "Apache-2.0" ]
null
null
null
""" Copyright 2021 Anderson Faustino da Silva. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
28.60114
76
0.456121
19,339
0.962618
0
0
3,322
0.165356
0
0
7,883
0.392384
e82053dc2380e925870bdf15395c02b067f76451
8,924
py
Python
lab_03/main.py
solnishko-pvs/Modeling_BMSTU
0ecb82aea23b6726912f72d3230097d7b679eaf9
[ "MIT" ]
null
null
null
lab_03/main.py
solnishko-pvs/Modeling_BMSTU
0ecb82aea23b6726912f72d3230097d7b679eaf9
[ "MIT" ]
null
null
null
lab_03/main.py
solnishko-pvs/Modeling_BMSTU
0ecb82aea23b6726912f72d3230097d7b679eaf9
[ "MIT" ]
null
null
null
import tkinter as tk from scipy.stats import chi2, chisquare COLOR = '#dddddd' COLUMNS_COLOR = '#ffffff' MAX_SIZE = 10 WIDGET_WIDTH = 25 class LinearCongruent: m = 2**32 a = 1664525 c = 1013904223 _cur = 1 def next(self): self._cur = (self.a * self._cur + self.c) % self.m return s...
40.748858
140
0.632788
8,260
0.906596
0
0
0
0
0
0
672
0.073757
e820d40fdfc773bb5cbef40f764f0c231d8e4804
107
py
Python
VacationPy/api_keys.py
tylermneher/python-api-challenge
28c88b4fff13c8b752096b0776a3d4645ad5fddb
[ "ADSL" ]
null
null
null
VacationPy/api_keys.py
tylermneher/python-api-challenge
28c88b4fff13c8b752096b0776a3d4645ad5fddb
[ "ADSL" ]
null
null
null
VacationPy/api_keys.py
tylermneher/python-api-challenge
28c88b4fff13c8b752096b0776a3d4645ad5fddb
[ "ADSL" ]
null
null
null
# OpenWeatherMap API Key weather_api_key = "MyOpenWeatherMapAPIKey" # Google API Key g_key = "MyGoogleKey"
21.4
42
0.794393
0
0
0
0
0
0
0
0
77
0.719626
e8213e750200485b12b34726d6bd13c4476d653d
843
py
Python
aries_cloudagent/protocols/actionmenu/v1_0/messages/menu_request.py
panickervinod/aries-cloudagent-python
bb4627fe62ee42ffeeb435cf3d8bfbd66c10d02f
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/protocols/actionmenu/v1_0/messages/menu_request.py
panickervinod/aries-cloudagent-python
bb4627fe62ee42ffeeb435cf3d8bfbd66c10d02f
[ "Apache-2.0" ]
1
2020-06-16T20:20:55.000Z
2020-06-16T20:20:55.000Z
aries_cloudagent/protocols/actionmenu/v1_0/messages/menu_request.py
panickervinod/aries-cloudagent-python
bb4627fe62ee42ffeeb435cf3d8bfbd66c10d02f
[ "Apache-2.0" ]
null
null
null
"""Represents a request for an action menu.""" from .....messaging.agent_message import AgentMessage, AgentMessageSchema from ..message_types import MENU_REQUEST, PROTOCOL_PACKAGE HANDLER_CLASS = f"{PROTOCOL_PACKAGE}.handlers.menu_request_handler.MenuRequestHandler" class MenuRequest(AgentMessage): """Class re...
26.34375
86
0.702254
567
0.672598
0
0
0
0
0
0
332
0.393832