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
2bfc4f790355a7817532bd5b978db33d27b1e506
2,269
py
Python
grapaold/layerfiles/gcomgraphcutter.py
psorus/grapa
6af343bb35c466c971ded1876e7a9d00e77cef00
[ "MIT" ]
null
null
null
grapaold/layerfiles/gcomgraphcutter.py
psorus/grapa
6af343bb35c466c971ded1876e7a9d00e77cef00
[ "MIT" ]
null
null
null
grapaold/layerfiles/gcomgraphcutter.py
psorus/grapa
6af343bb35c466c971ded1876e7a9d00e77cef00
[ "MIT" ]
null
null
null
import numpy as np import math from tensorflow.keras import backend as K from tensorflow.keras.layers import Layer,Dense, Activation import tensorflow.keras as keras# as k import tensorflow as t from tensorflow.keras.models import Sequential from tensorflow.keras.optimizers import Adam,SGD from tensorflow.linalg impor...
21.205607
185
0.633759
1,922
0.847069
0
0
0
0
0
0
620
0.273248
2bfd2325a2d75def166622b037138785dc2ae620
1,778
py
Python
extract_feature.py
Doarakko/baseball-and-football-face-classification
53e1ff21918aab1b9b881c2dae4473e6bb1194a8
[ "MIT" ]
null
null
null
extract_feature.py
Doarakko/baseball-and-football-face-classification
53e1ff21918aab1b9b881c2dae4473e6bb1194a8
[ "MIT" ]
null
null
null
extract_feature.py
Doarakko/baseball-and-football-face-classification
53e1ff21918aab1b9b881c2dae4473e6bb1194a8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import glob import re import os import numpy as np from keras.engine import Model from keras.preprocessing.image import img_to_array, load_img from keras.utils import plot_model from keras_vggface.vggface import VGGFace from keras_vggface import utils layer_list = ['flatten', 'fc6', 'fc6/relu',...
35.56
125
0.662542
0
0
0
0
0
0
0
0
410
0.22043
9201694101813be0a08afb3b5067429915a5f7d8
9,662
py
Python
PyRNN/rnn-train.py
theThing92/rub-met21
9d3d2e128a458aeb682548f1f207ee7491ca83a3
[ "MIT" ]
null
null
null
PyRNN/rnn-train.py
theThing92/rub-met21
9d3d2e128a458aeb682548f1f207ee7491ca83a3
[ "MIT" ]
null
null
null
PyRNN/rnn-train.py
theThing92/rub-met21
9d3d2e128a458aeb682548f1f207ee7491ca83a3
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys import argparse import random import operator import pickle import torch from torch.optim.lr_scheduler import StepLR sys.path.insert(0,'.') from PyRNN.Data import Data from PyRNN.RNNTagger import RNNTagger from PyRNN.CRFTagger import CRFTagger def build_optimizer(optim, model, learning...
39.92562
95
0.608466
0
0
0
0
0
0
0
0
2,482
0.256883
92021bdc8a0aac4c752b56a0953aac9dec06b2cf
4,281
py
Python
tests/integrated/test_advertising_duration.py
teeheee/blatann
f8a75e68cd9d46b83d10482c5349842433dfa490
[ "BSD-3-Clause" ]
40
2018-03-01T19:49:20.000Z
2022-03-31T11:35:06.000Z
tests/integrated/test_advertising_duration.py
teeheee/blatann
f8a75e68cd9d46b83d10482c5349842433dfa490
[ "BSD-3-Clause" ]
29
2019-03-12T18:29:57.000Z
2022-03-30T04:21:22.000Z
tests/integrated/test_advertising_duration.py
teeheee/blatann
f8a75e68cd9d46b83d10482c5349842433dfa490
[ "BSD-3-Clause" ]
17
2019-03-27T19:11:12.000Z
2022-03-16T06:00:08.000Z
import threading import unittest from blatann.gap.advertise_data import AdvertisingData, AdvertisingFlags from blatann.gap.advertising import AdvertisingMode from blatann.gap.scanning import ScanReport, Scanner from blatann.utils import Stopwatch from tests.integrated.base import BlatannTestCase, TestParams, ...
40.386792
114
0.677412
3,685
0.86078
0
0
2,080
0.485868
0
0
341
0.079654
9202c623dbd158b2b50431053b72ebb94e3aa74e
1,892
py
Python
src/ngsildclient/__init__.py
Orange-OpenSource/python-ngsild-client
23ff31506aabd23c75befece1fb3d4536903cb2a
[ "Apache-2.0" ]
7
2022-02-25T09:55:28.000Z
2022-03-25T20:48:01.000Z
src/ngsildclient/__init__.py
Orange-OpenSource/python-ngsild-client
23ff31506aabd23c75befece1fb3d4536903cb2a
[ "Apache-2.0" ]
null
null
null
src/ngsildclient/__init__.py
Orange-OpenSource/python-ngsild-client
23ff31506aabd23c75befece1fb3d4536903cb2a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Software Name: ngsildclient # SPDX-FileCopyrightText: Copyright (c) 2021 Orange # SPDX-License-Identifier: Apache 2.0 # # This software is distributed under the Apache 2.0; # see the NOTICE file for more details. # # Author: Fabien BATTELLO <fabien.battello@orange.com> et al. import http.clie...
22.258824
88
0.717759
0
0
0
0
0
0
0
0
690
0.364693
9205e60845af979d57cfab6fce5c83182fed94a4
3,513
py
Python
tests/test_gosubdag_children.py
flying-sheep/goatools
1e3a74faa17cbdeef02550c7ddf17b65cf47d34a
[ "BSD-2-Clause" ]
477
2015-02-10T06:54:42.000Z
2022-03-15T12:36:11.000Z
tests/test_gosubdag_children.py
flying-sheep/goatools
1e3a74faa17cbdeef02550c7ddf17b65cf47d34a
[ "BSD-2-Clause" ]
174
2015-02-05T18:11:14.000Z
2022-03-29T10:24:19.000Z
tests/test_gosubdag_children.py
flying-sheep/goatools
1e3a74faa17cbdeef02550c7ddf17b65cf47d34a
[ "BSD-2-Clause" ]
202
2015-01-21T12:29:23.000Z
2022-03-01T13:26:05.000Z
#!/usr/bin/env python """Test creation of GoSubDag's rcntobj data member.""" from __future__ import print_function __copyright__ = "Copyright (C) 2016-2018, DV Klopfenstein, H Tang. All rights reserved." __author__ = "DV Klopfenstein" import os from goatools.base import get_godag from goatools.gosubdag.gosubdag impo...
43.37037
97
0.565329
1,228
0.349559
0
0
0
0
0
0
1,375
0.391403
9206913a1d8d9352764326bb25d5c5ac08420277
86
py
Python
pyrosetta_help/chain_ops/__init__.py
matteoferla/pyrosetta_help
6ef96455dfd389b2a8bbccfc81159737430878b9
[ "MIT" ]
7
2021-04-28T14:09:30.000Z
2022-02-14T04:41:49.000Z
pyrosetta_help/chain_ops/__init__.py
matteoferla/pyrosetta_help
6ef96455dfd389b2a8bbccfc81159737430878b9
[ "MIT" ]
null
null
null
pyrosetta_help/chain_ops/__init__.py
matteoferla/pyrosetta_help
6ef96455dfd389b2a8bbccfc81159737430878b9
[ "MIT" ]
3
2021-09-14T14:05:47.000Z
2022-01-25T22:50:19.000Z
from .chain_ops import ChainOps from .transmogrifier import Transmogrifier, Murinizer
28.666667
53
0.860465
0
0
0
0
0
0
0
0
0
0
92071f8e67600ce7e492cbb22dfc9e21581246f3
5,078
py
Python
lib_ddos_simulator/old/api/api.py
jfuruness/lib_ddos_simulator
2d860fd3f35f4c25262f5269251eed89975f95e8
[ "BSD-4-Clause" ]
1
2020-04-01T22:42:36.000Z
2020-04-01T22:42:36.000Z
lib_ddos_simulator/old/api/api.py
jfuruness/lib_ddos_simulator
2d860fd3f35f4c25262f5269251eed89975f95e8
[ "BSD-4-Clause" ]
null
null
null
lib_ddos_simulator/old/api/api.py
jfuruness/lib_ddos_simulator
2d860fd3f35f4c25262f5269251eed89975f95e8
[ "BSD-4-Clause" ]
1
2020-02-16T17:55:46.000Z
2020-02-16T17:55:46.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """This module creates the flask app to shuffle users App must be here because flask explodes if you move to subdir""" __Lisence__ = "BSD" __maintainer__ = "Justin Furuness" __email__ = "jfuruness@gmail.com" __status__ = "Development" import pkg_resources from flasgge...
32.551282
97
0.60575
0
0
0
0
3,307
0.651241
0
0
1,956
0.385191
9207e392d5244627558a7eff04b6d9be4add7394
2,882
py
Python
src/controllers/MPCController.py
MatthiasDR96/inverted_pendulum_simulator
c13314b625445c13a4225b88480e2bed772fe466
[ "MIT" ]
null
null
null
src/controllers/MPCController.py
MatthiasDR96/inverted_pendulum_simulator
c13314b625445c13a4225b88480e2bed772fe466
[ "MIT" ]
null
null
null
src/controllers/MPCController.py
MatthiasDR96/inverted_pendulum_simulator
c13314b625445c13a4225b88480e2bed772fe466
[ "MIT" ]
null
null
null
import cvxpy import numpy as np class Control: def __init__(self, model): # Bind model self.model = model # Desired x_pos self.xd = 0.0 # Control parameters self.N = 100 # Control limits self.umax = np.reshape...
32.382022
118
0.497224
2,847
0.987856
0
0
0
0
0
0
384
0.133241
920816e07c5759417fa72229f7b01ce5c519d585
1,466
py
Python
setup.py
koning/maestrowf
290b6780ab0c95c2b0927663551f1f91e879f8d4
[ "MIT" ]
null
null
null
setup.py
koning/maestrowf
290b6780ab0c95c2b0927663551f1f91e879f8d4
[ "MIT" ]
null
null
null
setup.py
koning/maestrowf
290b6780ab0c95c2b0927663551f1f91e879f8d4
[ "MIT" ]
null
null
null
from maestrowf import __version__ from setuptools import setup, find_packages setup( name='maestrowf', description='A tool to easily orchestrate general computational workflows ' 'both locally and on supercomputers.', version=__version__, author='Francesco Di Natale', maintainer='Francesco Di Natale', au...
30.541667
77
0.653479
0
0
0
0
0
0
0
0
933
0.636426
9208f7346cadc419a62a686dd5dba387c6a93c38
8,531
py
Python
examples/seq2seq/penman_denoising.py
ahoho/transformers
366c305e5d4d122b47dd7a0a5e5e481e18e0a6ff
[ "Apache-2.0" ]
null
null
null
examples/seq2seq/penman_denoising.py
ahoho/transformers
366c305e5d4d122b47dd7a0a5e5e481e18e0a6ff
[ "Apache-2.0" ]
null
null
null
examples/seq2seq/penman_denoising.py
ahoho/transformers
366c305e5d4d122b47dd7a0a5e5e481e18e0a6ff
[ "Apache-2.0" ]
null
null
null
AMR_SOURCES = [ "(w / want-01 :ARG0 (b / boy) :ARG1 (g / go-01 :ARG0 b))" ] AMR_TARGETS = [ "The boy wants to go." ] AMR_NOISED = { "convert-to-triples": { "src": "order Graph: ( want :ARG0 ( boy ) :ARG1 ( go :ARG0 boy ) )", "tgt": "<t> want :ARG0 boy <t> want :ARG1 go <t> go :ARG0 boy" }, "generate-fr...
39.133028
94
0.563006
0
0
0
0
0
0
0
0
7,424
0.870238
9209ca7291bc3b16a02b7dd17d6abd0239412d5d
674
py
Python
meiduo_mall/apps/meiduo_admin/views/group.py
Vent-Any/meiduo_mall_cangku
5b3b7f029be267cb5d2d3666f99be166d27213f1
[ "MIT" ]
null
null
null
meiduo_mall/apps/meiduo_admin/views/group.py
Vent-Any/meiduo_mall_cangku
5b3b7f029be267cb5d2d3666f99be166d27213f1
[ "MIT" ]
null
null
null
meiduo_mall/apps/meiduo_admin/views/group.py
Vent-Any/meiduo_mall_cangku
5b3b7f029be267cb5d2d3666f99be166d27213f1
[ "MIT" ]
null
null
null
######################################用户组###################################### from rest_framework.generics import ListAPIView from rest_framework.viewsets import ModelViewSet from django.contrib.auth.models import Group, Permission from apps.meiduo_admin.utils import PageNumber from apps.meiduo_admin.serializer.gro...
33.7
99
0.746291
285
0.419118
0
0
0
0
0
0
85
0.125
920a0f56b7d98522ca08ddd15424f5561358eed0
5,211
py
Python
aclpwn/pathfinding.py
aas-n/aclpwn.py
b447f20b2b2ea0905e6430f6e6bb85237f13e23f
[ "MIT" ]
5
2021-05-18T21:25:46.000Z
2022-03-09T05:09:32.000Z
aclpwn/pathfinding.py
aas-n/aclpwn.py
b447f20b2b2ea0905e6430f6e6bb85237f13e23f
[ "MIT" ]
null
null
null
aclpwn/pathfinding.py
aas-n/aclpwn.py
b447f20b2b2ea0905e6430f6e6bb85237f13e23f
[ "MIT" ]
null
null
null
from aclpwn import utils, database # Cost map for relationships costmap = { 'MemberOf': 0, 'AddMember': 1, 'GenericAll': 1, 'GenericWrite': 1, 'WriteOwner': 3, 'WriteDacl': 2, 'DCSync': 0, 'Owns': 2, 'GetChangesAll': 0, 'GetChanges': 0, 'AllExtendedRights': 2 } def dijkst...
39.778626
133
0.573211
0
0
0
0
0
0
0
0
2,083
0.399731
920a9793f168d206e013f7bbb71c589069f6db3f
6,343
py
Python
src/data/load_data_from_text.py
dsridhar91/hstm
af943b3f34e443f6fda8115b300fc828ba2ff6ba
[ "MIT" ]
null
null
null
src/data/load_data_from_text.py
dsridhar91/hstm
af943b3f34e443f6fda8115b300fc828ba2ff6ba
[ "MIT" ]
null
null
null
src/data/load_data_from_text.py
dsridhar91/hstm
af943b3f34e443f6fda8115b300fc828ba2ff6ba
[ "MIT" ]
null
null
null
import os import json import numpy as np import pandas as pd import gzip import argparse from collections import Counter def load_mixed_corpus(): grocery_file = '../dat/reviews_Grocery_and_Gourmet_Food_5.json' office_file = '../dat/reviews_Office_Products_5.json' doc_groc, _ = load_amazon(grocery_file, 5000, 'revi...
29.640187
88
0.702034
0
0
0
0
0
0
0
0
1,082
0.170582
920dc979bbbe3c3f4d049b066bb2c9d6cdf12abd
2,396
py
Python
app/crud/address.py
oscarine/oscarine-api
ed4760724e42ac13aeaa3a566d19bf31113c9b8f
[ "MIT" ]
7
2019-09-18T19:45:46.000Z
2020-05-18T20:07:07.000Z
app/crud/address.py
oscarine/oscarine-api
ed4760724e42ac13aeaa3a566d19bf31113c9b8f
[ "MIT" ]
252
2019-09-18T20:25:03.000Z
2022-03-25T11:23:50.000Z
app/crud/address.py
oscarine/oscarine-api
ed4760724e42ac13aeaa3a566d19bf31113c9b8f
[ "MIT" ]
8
2019-09-18T11:02:45.000Z
2021-05-18T17:08:51.000Z
from datetime import datetime from typing import List from fastapi.encoders import jsonable_encoder from sqlalchemy.orm import Session from app.api.utils.db import clone_db_model from app.db_models.address import Address from app.models.address import EditAddress, UserAddress def add_user_address( db_session: S...
32.378378
88
0.707429
0
0
0
0
0
0
0
0
216
0.09015
920dd0484a64f720a0513aad802820f70a897dcc
2,493
py
Python
Python/examples/AdvancedSpecificMultipleInstruments.py
william-richards-idexx/fgt-SDK
674b572c714302be561b08ba63ff3358dfa13cea
[ "Apache-2.0" ]
20
2019-05-21T17:43:07.000Z
2022-03-22T16:38:59.000Z
Python/examples/AdvancedSpecificMultipleInstruments.py
william-richards-idexx/fgt-SDK
674b572c714302be561b08ba63ff3358dfa13cea
[ "Apache-2.0" ]
28
2019-05-21T17:36:24.000Z
2022-03-21T07:21:51.000Z
Python/examples/AdvancedSpecificMultipleInstruments.py
william-richards-idexx/fgt-SDK
674b572c714302be561b08ba63ff3358dfa13cea
[ "Apache-2.0" ]
7
2020-09-18T23:47:25.000Z
2022-03-03T09:36:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Advanced Specific Multiple Instruments This example shows how to use specific channels ID and multiple connected instruments Requires at least two Fluigent pressure channels Copyright (c) Fluigent 2019. All Rights Reserved. """ # Print function for Python 2 compatibi...
35.112676
96
0.765744
0
0
0
0
0
0
0
0
1,320
0.529483
9213947a6c459942a56f0c3d98a57e842bc0d8f6
875
py
Python
_scripts/one-time/makeDecosNonCampaign.py
Son-Guhun/Titan-Land-Lands-of-Plenty
edeca1d5437a7397195799ebf4b9585ee4609fed
[ "MIT" ]
12
2019-05-27T16:02:28.000Z
2021-01-08T09:32:08.000Z
_scripts/one-time/makeDecosNonCampaign.py
Son-Guhun/Titan-Land-Lands-of-Plenty
edeca1d5437a7397195799ebf4b9585ee4609fed
[ "MIT" ]
209
2019-04-06T15:16:52.000Z
2021-07-03T02:11:53.000Z
_scripts/one-time/makeDecosNonCampaign.py
Son-Guhun/Titan-Land-Lands-of-Plenty
edeca1d5437a7397195799ebf4b9585ee4609fed
[ "MIT" ]
1
2021-05-26T12:13:35.000Z
2021-05-26T12:13:35.000Z
"""This script iterates over all decorations in a .ini database and set their Specialart field to the format expected by the SpecialEffect system. """ from myconfigparser import MyConfigParser, load_unit_data, get_decorations, Section dataBase = '../development/table/unit.ini' def configure_decorations(unit_data, dec...
33.653846
95
0.668571
0
0
0
0
0
0
0
0
257
0.293714
9215145b51d72c2317cfa268d80567e333b4f845
7,906
py
Python
forml/testing/_spec.py
formlio/forml
fd070da74a0107e37c0c643dd8df8680618fef74
[ "Apache-2.0" ]
78
2020-11-04T18:27:20.000Z
2022-02-07T03:32:53.000Z
forml/testing/_spec.py
formlio/forml
fd070da74a0107e37c0c643dd8df8680618fef74
[ "Apache-2.0" ]
3
2020-11-05T20:42:15.000Z
2021-01-13T19:57:01.000Z
forml/testing/_spec.py
formlio/forml
fd070da74a0107e37c0c643dd8df8680618fef74
[ "Apache-2.0" ]
7
2020-11-18T17:18:15.000Z
2021-03-24T05:14:29.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.612613
114
0.634834
6,976
0.882368
0
0
1,866
0.236023
0
0
2,551
0.322666
92162c36211ae5a295d2c5d9300ea4a55a55b0d5
4,135
py
Python
gradient/cli/tensorboards.py
vishalbelsare/gradient-cli
c0e06252925cad3ad73d47ded1100f6b0cb0989a
[ "0BSD" ]
52
2019-06-10T04:20:00.000Z
2021-12-06T01:13:26.000Z
gradient/cli/tensorboards.py
vishalbelsare/gradient-cli
c0e06252925cad3ad73d47ded1100f6b0cb0989a
[ "0BSD" ]
125
2019-06-05T16:34:19.000Z
2022-03-30T18:46:06.000Z
gradient/cli/tensorboards.py
vishalbelsare/gradient-cli
c0e06252925cad3ad73d47ded1100f6b0cb0989a
[ "0BSD" ]
11
2019-07-16T06:48:55.000Z
2021-12-15T12:41:51.000Z
import click from gradient.cli import common from gradient.cli.cli import cli from gradient.commands import tensorboards as tensorboards_commands @cli.group("tensorboards", help="Manage tensorboards", cls=common.ClickGroup) def tensorboards_group(): pass @tensorboards_group.command("create", help="Create new t...
26.677419
91
0.712696
0
0
0
0
3,967
0.959371
0
0
1,372
0.331802
921710fe148b77c5af4c4630e1aea73b68d40f82
5,430
py
Python
src/selena/services/sla.py
deejay1/selena
16189ee57c8197ab4375727ef8a905d4f4561eb7
[ "Apache-2.0" ]
23
2015-01-10T18:17:58.000Z
2021-12-21T03:01:38.000Z
src/selena/services/sla.py
deejay1/selena
16189ee57c8197ab4375727ef8a905d4f4561eb7
[ "Apache-2.0" ]
20
2015-01-10T14:05:42.000Z
2016-08-09T07:48:50.000Z
src/selena/services/sla.py
deejay1/selena
16189ee57c8197ab4375727ef8a905d4f4561eb7
[ "Apache-2.0" ]
3
2015-01-10T18:27:30.000Z
2020-04-07T16:17:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from django.db.models.aggregates import Min from services.models import (Service, SlaDaily, SlaCache, ServiceHistory) from ...
37.448276
123
0.688029
0
0
0
0
0
0
0
0
1,127
0.207551
921773c4798d3591783c0a5548229dc9969cad46
521
py
Python
flask_resources/deserializers/json.py
fenekku/flask-resources
47a6672a771b7c209199a2613ae6da9d96a70a5b
[ "MIT" ]
null
null
null
flask_resources/deserializers/json.py
fenekku/flask-resources
47a6672a771b7c209199a2613ae6da9d96a70a5b
[ "MIT" ]
null
null
null
flask_resources/deserializers/json.py
fenekku/flask-resources
47a6672a771b7c209199a2613ae6da9d96a70a5b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # Flask-Resources is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """JSON Deserializer.""" import json from .deserializers import DeserializerMixin class JSONDeserializer(Deser...
24.809524
76
0.696737
228
0.43762
0
0
0
0
0
0
291
0.558541
921793e6129c6314d6f7c5cb0bd9274856e44cb1
2,960
py
Python
examples/fashion_mnist_example.py
saugatkandel/cvnn
f6d7b5c17fd064a7eaa60e7af922914a974eb69a
[ "MIT" ]
38
2020-09-16T14:47:36.000Z
2022-03-30T13:35:05.000Z
examples/fashion_mnist_example.py
saugatkandel/cvnn
f6d7b5c17fd064a7eaa60e7af922914a974eb69a
[ "MIT" ]
25
2020-10-03T19:30:16.000Z
2022-03-29T15:24:44.000Z
examples/fashion_mnist_example.py
saugatkandel/cvnn
f6d7b5c17fd064a7eaa60e7af922914a974eb69a
[ "MIT" ]
9
2021-01-18T10:48:57.000Z
2022-02-11T10:34:52.000Z
# TensorFlow and tf.keras import tensorflow as tf # Helper libraries import numpy as np import matplotlib.pyplot as plt from cvnn import layers print(tf.__version__) def get_fashion_mnist_dataset(): fashion_mnist = tf.keras.datasets.fashion_mnist (train_images, train_labels), (test_images, test_labels) = fas...
43.529412
119
0.714865
0
0
0
0
0
0
0
0
425
0.143581
9217f064843ea0309f5a6b856cd5967dad7c5477
47
py
Python
tensorkit/backend/pytorch_/__init__.py
lizeyan/tensorkit
2997a5914ec3c3ec72f91eb5906b5ee878fdc020
[ "MIT" ]
null
null
null
tensorkit/backend/pytorch_/__init__.py
lizeyan/tensorkit
2997a5914ec3c3ec72f91eb5906b5ee878fdc020
[ "MIT" ]
null
null
null
tensorkit/backend/pytorch_/__init__.py
lizeyan/tensorkit
2997a5914ec3c3ec72f91eb5906b5ee878fdc020
[ "MIT" ]
2
2020-10-15T06:41:32.000Z
2021-01-27T12:55:11.000Z
from . import _version_check name = 'PyTorch'
11.75
28
0.744681
0
0
0
0
0
0
0
0
9
0.191489
9218ab83d1d2ee572df4715f9f7a93fe6c1991f0
1,905
py
Python
ms2ldaviz/migrate_decomp_db.py
sdrogers/ms2ldaviz
ba311bc80891da595d2d6cef4abda95ab583c201
[ "MIT" ]
6
2017-10-27T02:37:55.000Z
2020-11-07T15:43:57.000Z
ms2ldaviz/migrate_decomp_db.py
sdrogers/ms2ldaviz
ba311bc80891da595d2d6cef4abda95ab583c201
[ "MIT" ]
134
2016-07-20T08:35:34.000Z
2020-07-22T13:51:49.000Z
ms2ldaviz/migrate_decomp_db.py
sdrogers/ms2ldaviz
ba311bc80891da595d2d6cef4abda95ab583c201
[ "MIT" ]
9
2016-07-19T15:39:27.000Z
2020-02-11T16:13:14.000Z
import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ms2ldaviz.settings_simon") import django django.setup() from basicviz.models import Experiment,Document from decomposition.models import FeatureSet,MotifSet,GlobalMotif,GlobalMotifsToSets,Decomposition,DocumentGlobalMass2Motif if __name__ == '__main__': # f...
30.238095
122
0.746457
0
0
0
0
0
0
0
0
475
0.249344
9219011cb4da371cd24e2b86c75ee95c35d59f2f
1,133
py
Python
strings.py
frizensami/sg-blood-stocks-bot
7783399330dcdf04870be85d004323a5c516a29a
[ "MIT" ]
1
2022-01-25T02:54:31.000Z
2022-01-25T02:54:31.000Z
strings.py
frizensami/sg-blood-stocks-bot
7783399330dcdf04870be85d004323a5c516a29a
[ "MIT" ]
4
2021-06-07T12:19:32.000Z
2021-06-09T05:02:36.000Z
strings.py
frizensami/sgbloodstocksbot
7783399330dcdf04870be85d004323a5c516a29a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 HELLO_MSG = """Welcome to the SG Blood Stocks Bot! We update you on the blood stock levels of the Singapore Red Cross. You can subscribe (/subscribe) to updates for specific blood types so you know when to donate. You can check for the latest change (/changes) in blood stock levels over the p...
29.815789
118
0.739629
0
0
0
0
0
0
0
0
1,049
0.920175
921ae232934b3615fdba27bd605f3a627db67ede
1,064
py
Python
challenges/2021/06-lanternfish/py/__init__.py
codemicro/adventOfCode
53574532ece1d19e5f5ba2f39e8e183c4c6225a1
[ "MIT" ]
9
2020-12-06T23:18:30.000Z
2021-12-19T22:31:26.000Z
challenges/2021/06-lanternfish/py/__init__.py
codemicro/adventOfCode
53574532ece1d19e5f5ba2f39e8e183c4c6225a1
[ "MIT" ]
null
null
null
challenges/2021/06-lanternfish/py/__init__.py
codemicro/adventOfCode
53574532ece1d19e5f5ba2f39e8e183c4c6225a1
[ "MIT" ]
3
2020-12-08T09:45:44.000Z
2020-12-15T19:20:20.000Z
from typing import List, Dict from aocpy import BaseChallenge def parse(instr: str) -> List[int]: return list(map(int, instr.strip().split(","))) def count_fish_by_timer(all_fish: List[int]) -> Dict[int, int]: m = {} for fish in all_fish: m[fish] = m.get(fish, 0) + 1 return m def iterate_f...
23.644444
63
0.608083
279
0.262218
0
0
237
0.222744
0
0
31
0.029135
921b26719ef6dd1872a88554745a7cfee94c9fe4
633
py
Python
qmspy/__init__.py
Cavenfish/qmspy
4ac6191b22d606ce007b5fb7b75a3c0734b41a70
[ "MIT" ]
null
null
null
qmspy/__init__.py
Cavenfish/qmspy
4ac6191b22d606ce007b5fb7b75a3c0734b41a70
[ "MIT" ]
null
null
null
qmspy/__init__.py
Cavenfish/qmspy
4ac6191b22d606ce007b5fb7b75a3c0734b41a70
[ "MIT" ]
null
null
null
""" This is the qmspy module, a python module designed to automate graphing data collected from a QMS. Contains the following functions: init_data add_style fit_gaussians appearance_energy Contains the following submodules: graph_data A...
24.346154
76
0.657188
0
0
0
0
0
0
0
0
347
0.548183
ecf5d119b411d7111d5a7caa7e25f9e59783661e
284
py
Python
pymagicc/errors.py
gabriel-abrahao/pymagicc
c9bdd610f97aa832dd879796aa6b9bfe11fa0f07
[ "BSD-3-Clause" ]
25
2017-02-03T10:47:13.000Z
2020-01-21T21:58:22.000Z
pymagicc/errors.py
gabriel-abrahao/pymagicc
c9bdd610f97aa832dd879796aa6b9bfe11fa0f07
[ "BSD-3-Clause" ]
248
2017-02-15T19:47:31.000Z
2020-03-05T04:15:05.000Z
pymagicc/errors.py
gabriel-abrahao/pymagicc
c9bdd610f97aa832dd879796aa6b9bfe11fa0f07
[ "BSD-3-Clause" ]
8
2020-05-08T04:02:04.000Z
2021-12-06T16:10:51.000Z
class NoReaderWriterError(ValueError): """Exception raised when a valid Reader or Writer could not be found for the file""" pass class InvalidTemporalResError(ValueError): """Exception raised when a file has a temporal resolution which cannot be processed""" pass
25.818182
90
0.746479
280
0.985915
0
0
0
0
0
0
170
0.598592
ecf5d69ffbb4ac849872de070db13227e5f7d278
1,569
py
Python
django_dhcp/urls.py
weijia/django-dhcp
625c031f5b969d48e7ad15bca75c460ddad20a00
[ "BSD-3-Clause" ]
1
2016-12-24T21:00:03.000Z
2016-12-24T21:00:03.000Z
django_dhcp/urls.py
weijia/django-dhcp
625c031f5b969d48e7ad15bca75c460ddad20a00
[ "BSD-3-Clause" ]
null
null
null
django_dhcp/urls.py
weijia/django-dhcp
625c031f5b969d48e7ad15bca75c460ddad20a00
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib.auth.decorators import login_required from django.core.urlresolvers import reverse, reverse_lazy from django.views.generic import ListView, DetailView, UpdateView, CreateView from django_dhcp.models import NetworkNode urlpatterns = patterns('', ...
43.583333
87
0.511791
0
0
0
0
0
0
0
0
235
0.149777
ecf61980cc4a49f01a13cbe72aad03439a423e46
2,073
py
Python
backend/api/decapod_api/views/v1/__init__.py
angry-tony/ceph-lcm-decapod
535944d3ee384c3a7c4af82f74041b0a7792433f
[ "Apache-2.0" ]
41
2016-11-03T16:40:17.000Z
2019-05-23T08:39:17.000Z
backend/api/decapod_api/views/v1/__init__.py
Mirantis/ceph-lcm
fad9bad0b94f2ef608362953583b10a54a841d24
[ "Apache-2.0" ]
30
2016-10-14T10:54:46.000Z
2017-10-20T15:58:01.000Z
backend/api/decapod_api/views/v1/__init__.py
angry-tony/ceph-lcm-decapod
535944d3ee384c3a7c4af82f74041b0a7792433f
[ "Apache-2.0" ]
28
2016-09-17T01:17:36.000Z
2019-07-05T03:32:54.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2016 Mirantis 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 ...
35.741379
71
0.822962
0
0
0
0
0
0
0
0
698
0.33671
ecf6c36593681a36f3dd9d09dc12399f3a5c1c70
8,604
py
Python
alipay/aop/api/domain/SearchBrandBoxInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/SearchBrandBoxInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/SearchBrandBoxInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.BoxExclusiveBase import BoxExclusiveBase from alipay.aop.api.domain.BoxOrderStatusInfo import BoxOrderStatusInfo from alipay.aop.api.domain.BoxExclusiveKeyword import BoxExclusiveKe...
35.553719
91
0.607508
8,125
0.944328
0
0
3,955
0.45967
0
0
904
0.105067
ecf7e96aed7bb38c108c65e6a088553ea5f5fcea
4,921
py
Python
dependencyinjection/internal/descriptors.py
Cologler/dependencyinjection-python
dc05c61571f10652d82929ebec4b255f109b840b
[ "MIT" ]
null
null
null
dependencyinjection/internal/descriptors.py
Cologler/dependencyinjection-python
dc05c61571f10652d82929ebec4b255f109b840b
[ "MIT" ]
null
null
null
dependencyinjection/internal/descriptors.py
Cologler/dependencyinjection-python
dc05c61571f10652d82929ebec4b255f109b840b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2017~2999 - cologler <skyoflw@gmail.com> # ---------- # # ---------- from abc import abstractmethod import inspect from .common import LifeTime, IServiceProvider, IDescriptor, ICallSiteMaker from .param_type_resolver import ParameterTypeResolver from .err...
36.183824
106
0.655151
4,428
0.899817
0
0
427
0.086771
0
0
378
0.076814
ecf8a661406818a230a4076d57178a508b0bd6f5
2,666
py
Python
ilurl/core/ql/define.py
guilhermevarela/ilu
e4db9744c28f9e04ae82c884f131ee8cd9601cc8
[ "MIT" ]
2
2019-10-18T17:04:50.000Z
2019-10-18T17:05:04.000Z
ilurl/core/ql/define.py
guilhermevarela/ilurl
e4db9744c28f9e04ae82c884f131ee8cd9601cc8
[ "MIT" ]
17
2019-11-20T09:33:50.000Z
2020-01-30T14:57:40.000Z
ilurl/core/ql/define.py
gsavarela/ilurl
e4db9744c28f9e04ae82c884f131ee8cd9601cc8
[ "MIT" ]
null
null
null
"""The module helps define the q learning dictionary""" __author__ = "Guilherme Varela" __date__ = "2019-07-25" from itertools import product as prod def dpq_tls(state_rank, state_dim, action_rank, action_dim, initial_value=0): """Prepares a dynamic programming Q-learning table for a traffic ligh...
24.685185
59
0.620405
0
0
0
0
0
0
0
0
2,010
0.753938
ecf92f0deadf2f7bda487207ea9032532498f896
296
py
Python
Company_Based_Questions/Geometry/Count_number_of_rectangles_in_a_circle.py
Satyam-Bhalla/Competitive-Coding
5814f5f60572f1e76495efe751b94bf4d2845198
[ "MIT" ]
1
2021-12-09T10:36:48.000Z
2021-12-09T10:36:48.000Z
Company_Based_Questions/Geometry/Count_number_of_rectangles_in_a_circle.py
Satyam-Bhalla/Competitive-Coding
5814f5f60572f1e76495efe751b94bf4d2845198
[ "MIT" ]
null
null
null
Company_Based_Questions/Geometry/Count_number_of_rectangles_in_a_circle.py
Satyam-Bhalla/Competitive-Coding
5814f5f60572f1e76495efe751b94bf4d2845198
[ "MIT" ]
null
null
null
def countRectangles(r): d = 2*r dSq = d*d rectangles = 0 for i in range(1,d): for j in range(1,d): if i**2+j**2 <= dSq: rectangles += 1 return rectangles t = int(input()) for _ in range(t): r = int(input()) print(countRectangles(r))
22.769231
32
0.510135
0
0
0
0
0
0
0
0
0
0
ecf99972906a2664b8eb3161b627de2250acc67f
546
py
Python
siteapp/models.py
cbidici/cbsite
594e327ad0c0bfa5015461eb243176c3aec7b68d
[ "MIT" ]
null
null
null
siteapp/models.py
cbidici/cbsite
594e327ad0c0bfa5015461eb243176c3aec7b68d
[ "MIT" ]
1
2020-05-10T14:45:22.000Z
2020-05-10T15:06:50.000Z
siteapp/models.py
cbidici/cbsite
594e327ad0c0bfa5015461eb243176c3aec7b68d
[ "MIT" ]
null
null
null
from django.db import models from slugify import slugify class Tag(models.Model): id = models.AutoField(primary_key=True) slug = models.CharField(max_length=128, unique=True) tag = models.CharField(max_length=128) def save(self, force_insert=False, force_update=False): self.slug = slugify(sel...
23.73913
59
0.695971
483
0.884615
0
0
0
0
0
0
0
0
ecfb22412fbdd1ca40827fb6bcc73e85e6d1f7d3
392
py
Python
file_rename_voc.py
GitEasonXu/Python_wheel
52a495b4b90132d6980aeded099ff575f2ed58e4
[ "MIT" ]
null
null
null
file_rename_voc.py
GitEasonXu/Python_wheel
52a495b4b90132d6980aeded099ff575f2ed58e4
[ "MIT" ]
null
null
null
file_rename_voc.py
GitEasonXu/Python_wheel
52a495b4b90132d6980aeded099ff575f2ed58e4
[ "MIT" ]
null
null
null
##遍历指定path下所有文件,并将文件名d重命名为name import os path = './Image' for (root,dirs,files) in os.walk(path) : for item in files : Olddir = os.path.join(root, item) filename=os.path.split(Olddir)[0] #文件名 filetype=os.path.split(Olddir)[1][-4:] #文件扩展名 Newdir=os.path.join(path,str(coun...
32.666667
62
0.609694
0
0
0
0
0
0
0
0
103
0.230942
ecfe6cf1d1e3eb686af5893cb455fa42f77691d4
6,833
py
Python
src/protocol_analysis/protocol_analysis.py
shelleyshuzhang/mon-iot-traffic-analysis
fb4cead55fed8163af5975ccf2ccea3c63b8c97a
[ "Apache-2.0" ]
1
2020-10-18T07:56:47.000Z
2020-10-18T07:56:47.000Z
src/protocol_analysis/protocol_analysis.py
shelleyshuzhang/mon-iot-traffic-analysis
fb4cead55fed8163af5975ccf2ccea3c63b8c97a
[ "Apache-2.0" ]
null
null
null
src/protocol_analysis/protocol_analysis.py
shelleyshuzhang/mon-iot-traffic-analysis
fb4cead55fed8163af5975ccf2ccea3c63b8c97a
[ "Apache-2.0" ]
null
null
null
import csv import os from multiprocessing import Manager from multiprocessing import Process ####### must import the packet in scapy in order to see the results ####### from scapy import * from scapy.layers import * from scapy.layers.dns import * from scapy.layers.inet import * from scapy.utils import PcapReader from...
35.221649
103
0.536075
0
0
0
0
0
0
0
0
1,181
0.172838
ecff03b69669e40823b94d33d2618c575448cad8
3,988
py
Python
BayOptPy/tpot/notebooks/evaluate_results.py
Mind-the-Pineapple/tpot-age
2969bfa6dc5c652d5b4f00f59e9b0b23869f6bef
[ "MIT" ]
3
2020-04-09T16:53:54.000Z
2020-04-21T16:49:52.000Z
BayOptPy/tpot/notebooks/evaluate_results.py
Mind-the-Pineapple/tpot-age
2969bfa6dc5c652d5b4f00f59e9b0b23869f6bef
[ "MIT" ]
null
null
null
BayOptPy/tpot/notebooks/evaluate_results.py
Mind-the-Pineapple/tpot-age
2969bfa6dc5c652d5b4f00f59e9b0b23869f6bef
[ "MIT" ]
null
null
null
''' This scripts define functions that will be used by the different notebooks to analyse the results ''' import pandas as pd from plotly import tools import plotly.graph_objs as go def predecessor_generation(results, curr_generation, verbose): ''' Print the predecessor's generation for all the models in a spe...
45.318182
121
0.614092
0
0
0
0
0
0
0
0
1,317
0.330158
a6018f719d55a7b7e6894dc15be94c1e0f710808
817
py
Python
h/migrations/versions/77c2af032aca_add_document_uri_and_meta_docid_ix.py
y3g0r/h
a057144956fe25e669aeba5d0f0eb38f9dc09566
[ "BSD-2-Clause" ]
2
2019-08-04T07:22:11.000Z
2020-07-17T05:01:41.000Z
h/migrations/versions/77c2af032aca_add_document_uri_and_meta_docid_ix.py
fuelpress/i.fuel.press
af7b25895d813af0fef656dcf483afe852a99d76
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
h/migrations/versions/77c2af032aca_add_document_uri_and_meta_docid_ix.py
fuelpress/i.fuel.press
af7b25895d813af0fef656dcf483afe852a99d76
[ "BSD-2-Clause" ]
null
null
null
"""Add Document URI and Meta document_id index Revision ID: 77c2af032aca Revises: f3b8e76ae9f5 Create Date: 2016-05-13 15:06:55.496502 """ # revision identifiers, used by Alembic. revision = "77c2af032aca" down_revision = "f3b8e76ae9f5" from alembic import op import sqlalchemy as sa def upgrade(): op.execute(...
22.694444
73
0.691554
0
0
0
0
0
0
0
0
422
0.516524
a6022344a3d4840a64b5a3612dfb2d5eecb6808c
19,526
py
Python
ooni/runner.py
meejah/ooni-probe
f46dc5879da409763718cfa5aa2635ddf5332a54
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
ooni/runner.py
meejah/ooni-probe
f46dc5879da409763718cfa5aa2635ddf5332a54
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
ooni/runner.py
meejah/ooni-probe
f46dc5879da409763718cfa5aa2635ddf5332a54
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import os import sys import time import inspect import traceback import itertools import random import yaml from twisted.python import reflect, usage from twisted.internet import defer from twisted.trial.runner import filenameToModule from twisted.internet import reactor, threads from txtorcon import TorProtocolFact...
32.816807
93
0.678019
172
0.008809
5,972
0.305849
4,509
0.230923
0
0
5,819
0.298013
a60228f4b0493e204cf39ee8d4a76aafe56f57f7
4,410
py
Python
performance.py
PudPawat/protest-detection-violence-estimation
6469c3ae47a7d99308458174fe16bd2c5c7821aa
[ "MIT" ]
2
2020-12-10T01:22:13.000Z
2021-03-11T08:05:16.000Z
performance.py
PudPawat/protest-detection-violence-estimation
6469c3ae47a7d99308458174fe16bd2c5c7821aa
[ "MIT" ]
null
null
null
performance.py
PudPawat/protest-detection-violence-estimation
6469c3ae47a7d99308458174fe16bd2c5c7821aa
[ "MIT" ]
null
null
null
import os import subprocess import numpy as np import pandas as pd import matplotlib.pyplot as plt import argparse import seaborn as sns # I love this package! sns.set_style('white') import torch from sklearn.metrics import accuracy_score, roc_auc_score, roc_curve import scipy.stats as stats def plot_roc(attr, target...
36.446281
80
0.594558
0
0
0
0
0
0
0
0
1,080
0.244898
a60260497b4fa5807ca2464a85c90d77b9b013da
6,071
py
Python
tangent/anf.py
aayushi94/tangent
4a8c5f1f0c69adc574a2643a6bc02521c5bdaa2a
[ "Apache-2.0" ]
null
null
null
tangent/anf.py
aayushi94/tangent
4a8c5f1f0c69adc574a2643a6bc02521c5bdaa2a
[ "Apache-2.0" ]
null
null
null
tangent/anf.py
aayushi94/tangent
4a8c5f1f0c69adc574a2643a6bc02521c5bdaa2a
[ "Apache-2.0" ]
1
2019-12-06T11:51:41.000Z
2019-12-06T11:51:41.000Z
# Copyright 2017 Google 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 wri...
32.994565
79
0.654423
4,499
0.741064
0
0
0
0
0
0
1,503
0.24757
a6027a3ebc5d97cf960018115a8dd70040b07344
121
py
Python
virtual/lib/python3.6/site-packages/url_or_relative_url_field/apps.py
sharonmaswai/awards
9556d6c559fdd12a860b6e3509b2482b260a63c0
[ "Unlicense" ]
6
2018-03-14T16:01:56.000Z
2021-12-05T06:11:07.000Z
virtual/lib/python3.6/site-packages/url_or_relative_url_field/apps.py
sharonmaswai/awards
9556d6c559fdd12a860b6e3509b2482b260a63c0
[ "Unlicense" ]
7
2020-02-12T03:20:53.000Z
2022-03-12T00:06:11.000Z
virtual/lib/python3.6/site-packages/url_or_relative_url_field/apps.py
sharonmaswai/awards
9556d6c559fdd12a860b6e3509b2482b260a63c0
[ "Unlicense" ]
4
2018-03-23T12:08:40.000Z
2021-12-13T00:58:08.000Z
from django.apps import AppConfig class UrlOrRelativeUrlFieldConfig(AppConfig): name = 'url_or_relative_url_field'
20.166667
45
0.818182
84
0.694215
0
0
0
0
0
0
27
0.22314
a6027e7c6c9accbef3a1e0fb42f95f71fdcfc5a3
4,877
py
Python
tests/test_graph_iden.py
Erotemic/graphid
5d04c2eec609f135464a921ba03d9578fa6e22fd
[ "Apache-2.0" ]
4
2019-03-04T02:49:26.000Z
2021-10-06T00:51:13.000Z
tests/test_graph_iden.py
Erotemic/graphid
5d04c2eec609f135464a921ba03d9578fa6e22fd
[ "Apache-2.0" ]
1
2019-02-15T23:42:26.000Z
2019-02-15T23:42:26.000Z
tests/test_graph_iden.py
Erotemic/graphid
5d04c2eec609f135464a921ba03d9578fa6e22fd
[ "Apache-2.0" ]
null
null
null
import ubelt as ub from graphid import demo from graphid.core.state import (POSTV, NEGTV, INCMP, UNREV) def test_incomp_inference(): infr = demo.demodata_infr(num_pccs=0) # Make 2 consistent and 2 inconsistent CCs infr.add_feedback(( 1, 2), POSTV) infr.add_feedback(( 2, 3), POSTV) infr...
34.104895
64
0.599754
0
0
0
0
0
0
0
0
725
0.148657
a602c20e6c62e465410e523f5014d66e68793385
1,565
py
Python
tests/tagger_test.py
slouvan/anago
99a8be0ba2ea42c9c686ff9697ea9e6ef60ca028
[ "MIT" ]
null
null
null
tests/tagger_test.py
slouvan/anago
99a8be0ba2ea42c9c686ff9697ea9e6ef60ca028
[ "MIT" ]
9
2020-01-28T22:26:05.000Z
2022-02-09T23:47:51.000Z
tests/tagger_test.py
tungnt244/ie_tourism_model
f9d6a234af4ddeb632b63e6dcd05eea23a48b2a7
[ "MIT" ]
1
2021-06-23T13:35:51.000Z
2021-06-23T13:35:51.000Z
import os import unittest from pprint import pprint import anago from anago.config import ModelConfig from anago.models import SeqLabeling from anago.preprocess import WordPreprocessor SAVE_ROOT = os.path.join(os.path.dirname(__file__), 'models') class TaggerTest(unittest.TestCase): def setUp(self): p ...
30.686275
78
0.656869
1,313
0.838978
0
0
0
0
0
0
117
0.07476
a6033320b86e6ca0f7d5044e4b6dd458c4e4c840
1,858
py
Python
unittest/base/JobControllerTest.py
hamatoma/snakeboxx
de4609e0d980c7ce775060e3813e71752e8670aa
[ "CC0-1.0" ]
null
null
null
unittest/base/JobControllerTest.py
hamatoma/snakeboxx
de4609e0d980c7ce775060e3813e71752e8670aa
[ "CC0-1.0" ]
null
null
null
unittest/base/JobControllerTest.py
hamatoma/snakeboxx
de4609e0d980c7ce775060e3813e71752e8670aa
[ "CC0-1.0" ]
null
null
null
''' Created on 12.04.2018 @author: hm ''' import os import time from unittest.UnitTestCase import UnitTestCase import base.MemoryLogger import base.JobController import base.StringUtils DEBUG = False class TestJobController (base.JobController.JobController): def __init__(self, logger): base.JobControll...
32.034483
123
0.682454
1,524
0.820237
0
0
0
0
0
0
211
0.113563
a6037f9a95ecfd02fa62dc87371fde25d3dc01c6
3,308
py
Python
scripts/sdk_xml/xml_stub.py
vzaccaria/most
2b3b8768a960245e433a5a733cba6f08451e3fec
[ "Unlicense" ]
null
null
null
scripts/sdk_xml/xml_stub.py
vzaccaria/most
2b3b8768a960245e433a5a733cba6f08451e3fec
[ "Unlicense" ]
null
null
null
scripts/sdk_xml/xml_stub.py
vzaccaria/most
2b3b8768a960245e433a5a733cba6f08451e3fec
[ "Unlicense" ]
null
null
null
# Stub script for converting XML input values into command line parameters and writing out # and XML file. # # This script expects two parameters, as a specific: # --xml_system_configuration=input_filename.xml # --xml_system_metrics=output_filename.xml # # @author Sivieri Alessandro, Vittorio Zaccaria (2010/20...
26.253968
150
0.680169
0
0
0
0
0
0
0
0
1,327
0.401149
a6038b3f8e171ab48ac06bd1a445cb35301ad809
1,059
py
Python
api/http/auth.py
dominicplouffe/connexionme
85d10905b8e4dd535320cc314a7340e5d28f6e9e
[ "MIT" ]
null
null
null
api/http/auth.py
dominicplouffe/connexionme
85d10905b8e4dd535320cc314a7340e5d28f6e9e
[ "MIT" ]
null
null
null
api/http/auth.py
dominicplouffe/connexionme
85d10905b8e4dd535320cc314a7340e5d28f6e9e
[ "MIT" ]
null
null
null
from flask import Blueprint, request from services import account from functools import wraps from status import finish auth = Blueprint('auth', __name__, url_prefix='/auth') def requires_auth(f): @wraps(f) def decorated(*args, **kwargs): token = request.form.get('token', request.args.get('token', N...
25.829268
74
0.599622
0
0
0
0
831
0.784703
0
0
168
0.15864
a60492a029f93b9e4059d6e51e8cafafd4226486
768
py
Python
rptools/rpthermo/Args.py
niraito/rptools
5c631c6cc4cd8cb497ccf573891235b36dfde65f
[ "MIT" ]
null
null
null
rptools/rpthermo/Args.py
niraito/rptools
5c631c6cc4cd8cb497ccf573891235b36dfde65f
[ "MIT" ]
null
null
null
rptools/rpthermo/Args.py
niraito/rptools
5c631c6cc4cd8cb497ccf573891235b36dfde65f
[ "MIT" ]
null
null
null
from argparse import ArgumentParser DEFAULT_pH = 7.5 DEFAULT_pMg = 3.0 DEFAULT_ionic_strength = 0.25 def add_arguments(parser: ArgumentParser) -> ArgumentParser: # positional arguments parser.add_argument('infile', type=str, help='pathway as rpSBML file') parser.add_argument('outfile', type=str, hel...
24
85
0.641927
0
0
0
0
0
0
0
0
200
0.260417
a605d79f8499b6ae4b9712a96390545d3da40661
7,829
py
Python
online_recommend/first-release-version/online_recommend/movie_recall/cal_movie_sim.py
hfhfn/db_recommend
3a9f03157bb81e295f8cff30fbc7ad2a8cfdf963
[ "MIT" ]
null
null
null
online_recommend/first-release-version/online_recommend/movie_recall/cal_movie_sim.py
hfhfn/db_recommend
3a9f03157bb81e295f8cff30fbc7ad2a8cfdf963
[ "MIT" ]
null
null
null
online_recommend/first-release-version/online_recommend/movie_recall/cal_movie_sim.py
hfhfn/db_recommend
3a9f03157bb81e295f8cff30fbc7ad2a8cfdf963
[ "MIT" ]
null
null
null
from pyspark.ml.clustering import BisectingKMeans, BisectingKMeansModel from utils import channelInfo from utils import MovieDataApp class BkmeansCossim(object): def __init__(self, spark, database, group=0, recall_topK=50, k=100, minDCS=200, seed=10, channel='电影'): """ :param group: int 计算第几组聚类...
40.989529
131
0.62013
5,953
0.723945
0
0
0
0
0
0
4,317
0.524991
a605fb5e525f35f836c02ffad077a242234f3c4a
32,138
py
Python
src/gui/scroll.py
Epihaius/panda3dstudio
f5c62ca49617cae1aa5aa5b695200027da99e242
[ "BSD-3-Clause" ]
63
2016-01-02T16:28:47.000Z
2022-01-19T11:29:51.000Z
src/gui/scroll.py
Epihaius/panda3dstudio
f5c62ca49617cae1aa5aa5b695200027da99e242
[ "BSD-3-Clause" ]
12
2016-06-12T14:14:15.000Z
2020-12-18T16:11:45.000Z
src/gui/scroll.py
Epihaius/panda3dstudio
f5c62ca49617cae1aa5aa5b695200027da99e242
[ "BSD-3-Clause" ]
17
2016-05-23T00:02:27.000Z
2021-04-25T17:48:27.000Z
from .base import * MAX_TEX_SIZE = 4000 # TODO: make user-configurable class ScrollThumb(Widget): def __init__(self, parent, pane, gfx_ids, cull_bin, scroll_dir, inner_border_id): Widget.__init__(self, "scrollthumb", parent, gfx_ids, "normal") self._pane = pane self.direction = scroll...
33.166151
105
0.609434
32,053
0.997355
0
0
734
0.022839
0
0
3,062
0.095277
a6089b93cf4c6a825b8066cca145aee395091e54
4,561
py
Python
extraction_tool/extract_token.py
ohadlevy/homebridge-palgate-opener
1dc2c4e00a7dc969221db6f571a75d2d4088a7a0
[ "MIT" ]
13
2020-10-24T22:17:31.000Z
2022-03-04T22:31:23.000Z
extraction_tool/extract_token.py
ohadlevy/homebridge-palgate-opener
1dc2c4e00a7dc969221db6f571a75d2d4088a7a0
[ "MIT" ]
7
2021-01-24T11:23:24.000Z
2022-02-27T13:19:28.000Z
extraction_tool/extract_token.py
ohadlevy/homebridge-palgate-opener
1dc2c4e00a7dc969221db6f571a75d2d4088a7a0
[ "MIT" ]
4
2020-10-24T22:17:42.000Z
2022-01-20T08:01:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ######################################################## # PalGate Token Extraction Tool # ######################################################## # # # Like my work? please consider buying me a ...
42.626168
101
0.534093
1,927
0.422495
0
0
474
0.103925
0
0
2,267
0.49704
a608ef057ab4973763dbb8b9d94aa73dd295ec64
3,335
py
Python
main.py
Mnkai/GoogleTakeoutPhotosMigrationPrepare
d43c15dce87c937b2696dde16f62461ab504fdef
[ "WTFPL" ]
1
2020-04-19T06:43:30.000Z
2020-04-19T06:43:30.000Z
main.py
Mnkai/GoogleTakeoutPhotosMigrationPrepare
d43c15dce87c937b2696dde16f62461ab504fdef
[ "WTFPL" ]
null
null
null
main.py
Mnkai/GoogleTakeoutPhotosMigrationPrepare
d43c15dce87c937b2696dde16f62461ab504fdef
[ "WTFPL" ]
null
null
null
import os import ArrayUtils import GoogleMetadataUtils from objects.ExportedObject import ExportedObject from objects.Image import Image counter = 0 def directory_walk(start_path, extension): to_return = [] for (dirpath, dirnames, filenames) in os.walk(start_path): for filename in filenames: ...
37.055556
113
0.689055
0
0
0
0
0
0
0
0
307
0.092054
a60930ad0dd78d95d72937ed81ded6b37a3f470b
501
py
Python
foodcartapp/serializers.py
savilard/delivery-drf-api
e9d7c17120f37b591bb1e305a8516115f5f92a75
[ "MIT" ]
null
null
null
foodcartapp/serializers.py
savilard/delivery-drf-api
e9d7c17120f37b591bb1e305a8516115f5f92a75
[ "MIT" ]
1
2022-02-10T14:02:58.000Z
2022-02-10T14:02:58.000Z
foodcartapp/serializers.py
savilard/delivery-drf-api
e9d7c17120f37b591bb1e305a8516115f5f92a75
[ "MIT" ]
null
null
null
from rest_framework.serializers import ModelSerializer from foodcartapp.models import Order, OrderProduct class OrderProductSerializer(ModelSerializer): class Meta: model = OrderProduct fields = ['id', 'product', 'quantity'] class OrderSerializer(ModelSerializer): products = OrderProductSer...
27.833333
86
0.714571
388
0.774451
0
0
0
0
0
0
80
0.159681
a60a5e2c81cee18f19368d6d10d396d0396c103a
71
py
Python
1002_AreaCircle.py
DiegoC386/EJERCICIOS-URI
b2e12b6420ea16a9060726b988ea1b35cbf312c2
[ "MIT" ]
null
null
null
1002_AreaCircle.py
DiegoC386/EJERCICIOS-URI
b2e12b6420ea16a9060726b988ea1b35cbf312c2
[ "MIT" ]
null
null
null
1002_AreaCircle.py
DiegoC386/EJERCICIOS-URI
b2e12b6420ea16a9060726b988ea1b35cbf312c2
[ "MIT" ]
null
null
null
R=float(input()) PI=3.14159 A=(PI)*(R**2) print("A = {:.4f}".format(A))
17.75
29
0.549296
0
0
0
0
0
0
0
0
12
0.169014
a60a74a8bdf1655be820f9cfcac1059f5d4956f4
882
py
Python
funcionario/views.py
Moisestuli/karrata
962ce0c573214bfc83720727c9cacae823a8c372
[ "MIT" ]
null
null
null
funcionario/views.py
Moisestuli/karrata
962ce0c573214bfc83720727c9cacae823a8c372
[ "MIT" ]
null
null
null
funcionario/views.py
Moisestuli/karrata
962ce0c573214bfc83720727c9cacae823a8c372
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth.models import User from funcionario.forms import FuncionarioForm from configuracao.models import Configuracao def funcionario_eliminar(request, username = None): user = User....
26.727273
60
0.717687
0
0
0
0
0
0
0
0
218
0.247166
a60b9d285aa7339e1763df0a9faec446ada591b3
2,658
py
Python
src/models/gan_bert.py
gchhablani/financial-sentiment-analysis
b18e9072f8edb9f09d0fef697892f2462d6d44e9
[ "MIT" ]
2
2021-10-03T14:24:52.000Z
2021-11-17T14:55:53.000Z
src/models/gan_bert.py
gchhablani/financial-sentiment-analysis
b18e9072f8edb9f09d0fef697892f2462d6d44e9
[ "MIT" ]
null
null
null
src/models/gan_bert.py
gchhablani/financial-sentiment-analysis
b18e9072f8edb9f09d0fef697892f2462d6d44e9
[ "MIT" ]
1
2021-10-03T14:25:36.000Z
2021-10-03T14:25:36.000Z
# https://raw.githubusercontent.com/crux82/ganbert-pytorch/main/GANBERT_pytorch.ipynb # [WIP], not finished import torch from torch.nn import Dropout, LeakyReLU, Linear, Module, Sequential from transformers import AutoModel class Generator(Module): def __init__( self, noise_size=100, output_size=768, hidd...
34.519481
85
0.598194
2,243
0.843868
0
0
0
0
0
0
367
0.138074
a60d2023dee851677b4f026e9f20232d3cae3173
2,571
py
Python
ec2stack/secretkey_manager.py
sureshanaparti/cloudstack-ec2stack
8e07435d3d04357995f2a5d337adef62ecbfdd8d
[ "Apache-2.0" ]
13
2015-05-06T13:38:13.000Z
2021-11-09T21:39:01.000Z
ec2stack/secretkey_manager.py
sureshanaparti/cloudstack-ec2stack
8e07435d3d04357995f2a5d337adef62ecbfdd8d
[ "Apache-2.0" ]
3
2015-08-21T17:31:20.000Z
2021-07-07T08:39:11.000Z
ec2stack/secretkey_manager.py
sureshanaparti/cloudstack-ec2stack
8e07435d3d04357995f2a5d337adef62ecbfdd8d
[ "Apache-2.0" ]
17
2015-07-24T06:00:59.000Z
2021-11-09T21:38:52.000Z
#!/usr/bin/env python # encoding: utf-8 # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache Licens...
26.505155
80
0.698172
0
0
0
0
0
0
0
0
1,689
0.656943
a60d82cbe53076fcdd04723f529bca35a26a771d
2,270
py
Python
mapas/mapas.py
DeadZombie14/chillMagicCarPygame
756bb6d27939bed3c2834222d03096e90f05a788
[ "MIT" ]
null
null
null
mapas/mapas.py
DeadZombie14/chillMagicCarPygame
756bb6d27939bed3c2834222d03096e90f05a788
[ "MIT" ]
null
null
null
mapas/mapas.py
DeadZombie14/chillMagicCarPygame
756bb6d27939bed3c2834222d03096e90f05a788
[ "MIT" ]
null
null
null
levels = [ [ # W = Muro, E = Meta, P = Jugador 1, J = Jugador 2, H = Jugador 3, I = Jugador 4, "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW", "W W", "W J W", "W P W", "W W", "W W", "W ...
32.898551
84
0.234802
0
0
0
0
0
0
0
0
2,122
0.934802
a60f47844b4e66c2b41b6d88b7e848c7e6e83731
1,761
py
Python
reddit_client.py
spotify-companion/CLI
29934cc715922263652235d0a9a4f0d8f57ecec5
[ "MIT" ]
null
null
null
reddit_client.py
spotify-companion/CLI
29934cc715922263652235d0a9a4f0d8f57ecec5
[ "MIT" ]
null
null
null
reddit_client.py
spotify-companion/CLI
29934cc715922263652235d0a9a4f0d8f57ecec5
[ "MIT" ]
null
null
null
import praw import pandas as pd import reddit_constants class RedditClient(object): __shared_instance = "RedditClient" @staticmethod def get_instance(): """ To implement singleton pattern """ if RedditClient.__shared_instance == "RedditClient": RedditClient() ...
33.226415
193
0.570131
1,691
0.958074
0
0
228
0.129178
0
0
303
0.171671
a60fb9d495770e6c4eafb910265165abbcd032b4
272
py
Python
AutotestWebD/apps/config/views/service.py
yangjourney/sosotest
2e88099a829749910ca325253c9b1a2e368d21a0
[ "MIT" ]
422
2019-08-18T05:04:20.000Z
2022-03-31T06:49:19.000Z
AutotestWebD/apps/config/views/service.py
LinSongJian1985/sosotest
091863dee531b5726650bb63efd6f169267cbeb4
[ "MIT" ]
10
2019-10-24T09:55:38.000Z
2021-09-29T17:28:43.000Z
AutotestWebD/apps/config/views/service.py
LinSongJian1985/sosotest
091863dee531b5726650bb63efd6f169267cbeb4
[ "MIT" ]
202
2019-08-18T05:04:27.000Z
2022-03-30T05:57:18.000Z
from apps.config.services.serviceConfService import ServiceConfService from django.shortcuts import HttpResponse import json def getServiceConf(request): serviceConf = ServiceConfService.queryServiceConfSort(request) return HttpResponse(json.dumps(serviceConf))
30.222222
70
0.841912
0
0
0
0
0
0
0
0
0
0
a6105ef939a3d47b3dd6af778e4ee27a4e38dd46
2,436
py
Python
src/keywords.py
sandialabs/nnsd-common
c106799d06276b5a980b790b5249e66e459ce682
[ "MIT" ]
3
2019-07-16T21:10:18.000Z
2021-09-01T03:01:23.000Z
src/keywords.py
sandialabs/nnsd-common
c106799d06276b5a980b790b5249e66e459ce682
[ "MIT" ]
9
2019-04-15T21:46:21.000Z
2021-02-09T16:17:24.000Z
src/keywords.py
sandialabs/nnsd-common
c106799d06276b5a980b790b5249e66e459ce682
[ "MIT" ]
1
2020-03-03T14:41:25.000Z
2020-03-03T14:41:25.000Z
#!/usr/bin/python3 # Gets all files below where this script is run, and checks to see if any contain # the specified keywords. A report is generated at the end. # # Files with certain extensions are excluded, and directories with certain names are excluded. # # The actual keywords are kept in a separate file so...
36.358209
193
0.619458
0
0
0
0
0
0
0
0
859
0.352627
a610ecc05f6f6e302f862afbc071148996b7ed46
19,020
py
Python
ii_irods/ii_command.py
UtrechtUniversity/ii
7d3899b4d6bbbf5a14be1d85296b3ea99ffe135b
[ "MIT" ]
null
null
null
ii_irods/ii_command.py
UtrechtUniversity/ii
7d3899b4d6bbbf5a14be1d85296b3ea99ffe135b
[ "MIT" ]
null
null
null
ii_irods/ii_command.py
UtrechtUniversity/ii
7d3899b4d6bbbf5a14be1d85296b3ea99ffe135b
[ "MIT" ]
null
null
null
import argparse from fnmatch import fnmatch import os.path import re import sys from ii_irods.coll_utils import resolve_base_path, convert_to_absolute_path, get_dataobjects_in_collection from ii_irods.coll_utils import get_direct_subcollections, get_subcollections, collection_exists from ii_irods.do_utils import get_d...
39.055441
114
0.601472
0
0
0
0
0
0
0
0
6,120
0.321767
a6117f3294c81246ee664c4b1aa72e59144f4cc8
6,998
py
Python
tests/pyarxaas/models/test_Dataset.py
vinayranjan/pyarxaas
f304d360adf1a647d9daff0afda5290ca0fd7ec8
[ "MIT" ]
4
2020-07-14T16:36:09.000Z
2020-11-24T14:28:02.000Z
tests/pyarxaas/models/test_Dataset.py
vinayranjan/pyarxaas
f304d360adf1a647d9daff0afda5290ca0fd7ec8
[ "MIT" ]
20
2020-06-19T04:37:33.000Z
2021-07-26T04:27:46.000Z
tests/pyarxaas/models/test_Dataset.py
vinayranjan/pyarxaas
f304d360adf1a647d9daff0afda5290ca0fd7ec8
[ "MIT" ]
2
2020-11-11T11:52:06.000Z
2020-12-03T10:22:47.000Z
import unittest import pandas from pyarxaas.models.attribute_type import AttributeType from pyarxaas.models.dataset import Dataset from tests.pyarxaas import data_generator class DatasetTest(unittest.TestCase): def setUp(self): self.test_data = [['id', 'name'], ['0', 'Viktor']...
43.7375
110
0.69577
6,818
0.974278
0
0
0
0
0
0
457
0.065304
a612ee91d33761ed97242b786506ebee4d8f2061
6,955
py
Python
perception/utils/visualization.py
jostl/masters-thesis
211e1f12a07428d37507e2bddc808f6da1149efb
[ "MIT" ]
3
2021-06-19T10:49:26.000Z
2022-03-26T11:31:28.000Z
perception/utils/visualization.py
jostl/masters-thesis
211e1f12a07428d37507e2bddc808f6da1149efb
[ "MIT" ]
1
2021-10-12T15:40:55.000Z
2021-10-12T15:40:55.000Z
perception/utils/visualization.py
jostl/masters-thesis
211e1f12a07428d37507e2bddc808f6da1149efb
[ "MIT" ]
null
null
null
import random import matplotlib.pyplot as plt import numpy as np import torch from perception.utils.segmentation_labels import CARLA_CLASSES, DEFAULT_CLASSES def get_segmentation_colors(n_classes, only_random=False, class_indxs=None, color_seed=73): assert only_random or class_indxs random.seed(color_seed) ...
41.646707
137
0.68555
0
0
0
0
0
0
0
0
1,435
0.206326
a613b9a8c301525a013a5679b0f23d6447d8344b
7,214
py
Python
nova3/engines/nyaapantsu.py
chr0nu5/qBittorrent-Plugins-Easy-Install
2b905523671f3d75977d1dc399cf6a8c723f463e
[ "MIT" ]
null
null
null
nova3/engines/nyaapantsu.py
chr0nu5/qBittorrent-Plugins-Easy-Install
2b905523671f3d75977d1dc399cf6a8c723f463e
[ "MIT" ]
null
null
null
nova3/engines/nyaapantsu.py
chr0nu5/qBittorrent-Plugins-Easy-Install
2b905523671f3d75977d1dc399cf6a8c723f463e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #VERSION: 1.2 #AUTHORS: Joost Bremmer (toost.b@gmail.com) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any...
35.712871
83
0.530358
6,232
0.863876
0
0
0
0
0
0
2,847
0.394649
a615cb65339565e253a5ef2e1e9fe7fc3d78dd10
806
py
Python
python-leetcode/it_03.03.py
MDGSF/interviews
9faa9aacdb0cfbb777d4d3d4d1b14b55ca2c9f76
[ "MIT" ]
12
2020-01-16T08:55:27.000Z
2021-12-02T14:52:39.000Z
python-leetcode/it_03.03.py
MDGSF/interviews
9faa9aacdb0cfbb777d4d3d4d1b14b55ca2c9f76
[ "MIT" ]
null
null
null
python-leetcode/it_03.03.py
MDGSF/interviews
9faa9aacdb0cfbb777d4d3d4d1b14b55ca2c9f76
[ "MIT" ]
1
2019-12-11T12:00:38.000Z
2019-12-11T12:00:38.000Z
class StackOfPlates: def __init__(self, cap: int): self.stack = [] self.cap = cap def push(self, val: int) -> None: if len(self.stack) == 0 or len(self.stack[-1]) >= self.cap: self.stack.append([]) last = self.stack[-1] last.append(val) def pop(self) -> int: while len(self.stack) ...
25.1875
68
0.600496
641
0.795285
0
0
0
0
0
0
158
0.19603
a615cdf949b68109cdb350bb44c0f837323c64f3
3,580
py
Python
siebenapp/ui/goalwidget.py
ahitrin/SiebenApp
1e3c8b9d90b6bed4efa28a9a9fa65ed37525c4ae
[ "MIT" ]
14
2016-11-26T08:35:19.000Z
2022-03-01T05:20:11.000Z
siebenapp/ui/goalwidget.py
ahitrin/SiebenApp
1e3c8b9d90b6bed4efa28a9a9fa65ed37525c4ae
[ "MIT" ]
98
2016-11-28T08:58:48.000Z
2022-03-18T17:59:04.000Z
siebenapp/ui/goalwidget.py
ahitrin/SiebenApp
1e3c8b9d90b6bed4efa28a9a9fa65ed37525c4ae
[ "MIT" ]
1
2017-12-20T12:42:18.000Z
2017-12-20T12:42:18.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ui/goal.ui' # # Created by: PyQt5 UI code generator 5.8.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_GoalBody(object): def setupUi(self, GoalBody): GoalBody.set...
43.13253
88
0.708101
3,339
0.932682
0
0
0
0
0
0
327
0.091341
a619383cde46a46920c9996c56eea79c404d6a6c
8,342
py
Python
trainer/audio_trainer.py
ryanwongsa/DeepFakeDetectionChallenge
b9902b88e89d5165190ad673d5dfb10cc821d5a1
[ "Apache-2.0" ]
5
2020-05-07T18:14:17.000Z
2021-11-18T02:44:55.000Z
trainer/audio_trainer.py
ryanwongsa/DeepFakeDetectionChallenge
b9902b88e89d5165190ad673d5dfb10cc821d5a1
[ "Apache-2.0" ]
1
2021-08-17T09:40:28.000Z
2021-09-20T16:57:29.000Z
trainer/audio_trainer.py
ryanwongsa/DeepFakeDetectionChallenge
b9902b88e89d5165190ad673d5dfb10cc821d5a1
[ "Apache-2.0" ]
1
2020-12-21T08:31:18.000Z
2020-12-21T08:31:18.000Z
import torch torch.backends.cudnn.benchmark = True from trainer.base_audio_trainer import BaseAudioTrainer from logger.new_callbacks import Callbacks from torch.utils.data import DataLoader from dataloader.audio_dataset import AudioDataset from torch.optim.lr_scheduler import CosineAnnealingLR from models.audio_mode...
42.131313
296
0.649245
7,709
0.924119
0
0
0
0
0
0
384
0.046032
a61d2ff865e88390f5a4f3b8c8da817f93d2e1a6
355
py
Python
Calculator/operations/__init__.py
Shakil-1501/Session12
0ae424a6ac8949b21b89aa1548b6e997a2e4c133
[ "MIT" ]
null
null
null
Calculator/operations/__init__.py
Shakil-1501/Session12
0ae424a6ac8949b21b89aa1548b6e997a2e4c133
[ "MIT" ]
null
null
null
Calculator/operations/__init__.py
Shakil-1501/Session12
0ae424a6ac8949b21b89aa1548b6e997a2e4c133
[ "MIT" ]
null
null
null
from .sine import * from .cose import * from .tane import * from .tanhe import * from .ee import * from .loge import * from .sigmoide import * from .relue import * from .softmaxe import * __all__= (sine.__all__+ cose.__all__ + tane.__all__ + tanhe.__all__ + ee.__all__ + loge.__all__ + sigmoide.__all__ + relu...
25.357143
151
0.698592
0
0
0
0
0
0
0
0
0
0
a61da44df1b4b01ba75ab9949fbc2b4e355911f3
121
py
Python
Basico/ex002.py
Gustavsantos/python1
5520f2d2ee591157942008fdcd6bd42eb521f1a6
[ "MIT" ]
null
null
null
Basico/ex002.py
Gustavsantos/python1
5520f2d2ee591157942008fdcd6bd42eb521f1a6
[ "MIT" ]
null
null
null
Basico/ex002.py
Gustavsantos/python1
5520f2d2ee591157942008fdcd6bd42eb521f1a6
[ "MIT" ]
null
null
null
nome = str(input('Qual é seu nome?')).upper().capitalize() print('prazer em conhecelo, \033[1;34m{}\033[m!'.format(nome))
60.5
62
0.677686
0
0
0
0
0
0
0
0
61
0.5
a61e50a3bc6d9d83dac4e1176ba6bdfe1909c870
1,881
py
Python
bin/taxid2lineage.py
twylie/viromatch
44edca07c44308b17b9f19174c08175736fff53f
[ "MIT" ]
5
2021-02-13T09:02:21.000Z
2021-10-06T19:20:41.000Z
bin/taxid2lineage.py
twylie/viromatch
44edca07c44308b17b9f19174c08175736fff53f
[ "MIT" ]
4
2021-05-14T09:02:32.000Z
2022-03-25T05:06:40.000Z
bin/taxid2lineage.py
twylie/viromatch
44edca07c44308b17b9f19174c08175736fff53f
[ "MIT" ]
1
2021-04-05T22:30:44.000Z
2021-04-05T22:30:44.000Z
#! /usr/bin/python3.7 import argparse from viromatch.lib.taxonomy import Taxonomy import os version = '1.0' def eval_cli_arguments(): parser = argparse.ArgumentParser( description='Resolve lineage given taxid.', prog='taxid2lineage.py', add_help=False ) # Optional arguments. ...
21.62069
70
0.600744
0
0
0
0
0
0
0
0
607
0.322701
a61f07aff13fd36fc9ecc85e1e4a70ff58848de8
2,779
py
Python
database.py
Konako1/osu-tg-bot
fc569b0a0fe2bc25947eb2fca443f809c84ef980
[ "MIT" ]
1
2022-03-26T16:55:33.000Z
2022-03-26T16:55:33.000Z
database.py
Konako1/osu-tg-bot
fc569b0a0fe2bc25947eb2fca443f809c84ef980
[ "MIT" ]
null
null
null
database.py
Konako1/osu-tg-bot
fc569b0a0fe2bc25947eb2fca443f809c84ef980
[ "MIT" ]
null
null
null
from typing import Optional import aiosqlite from aiogram.dispatcher.middlewares import BaseMiddleware import config class OsuDb: def __init__(self, path: str = config.ASSET_PATH / 'osu.db'): self._conn = aiosqlite.connect(path) async def connect(self): self._conn = await self._conn ...
38.068493
100
0.582944
2,655
0.95538
0
0
295
0.106153
2,411
0.867578
503
0.181
a6238a7cdde1b28e0b8b179e20a5211a8bc243b8
8,423
py
Python
module_utils/rsd_common.py
intel/ansible-rsd-provisioning
757f4d5ca9447a22efdf56fda337dc19579c6380
[ "Apache-2.0" ]
2
2019-07-17T09:56:41.000Z
2020-03-14T21:32:32.000Z
module_utils/rsd_common.py
intel/ansible-rsd-provisioning
757f4d5ca9447a22efdf56fda337dc19579c6380
[ "Apache-2.0" ]
null
null
null
module_utils/rsd_common.py
intel/ansible-rsd-provisioning
757f4d5ca9447a22efdf56fda337dc19579c6380
[ "Apache-2.0" ]
4
2019-11-02T00:31:07.000Z
2021-02-17T11:11:46.000Z
# Copyright (c) 2019 Intel Corporation. All rights reserved. # # GNU General Public License v3.0+ # (see LICENSE.GPL or https://www.gnu.org/licenses/gpl-3.0.txt) # # Authors: # - Igor D.C. - <igor.duarte.cardoso@intel.com> # - Marco Chiappero - <marco.chiappero@intel.com> ###########################################...
31.429104
78
0.515256
7,786
0.924374
0
0
983
0.116704
0
0
1,214
0.144129
a62415e6af752f35b91e91cf93818faa54736ef9
5,309
py
Python
src/dockerblade/daemon.py
ChrisTimperley/dockerblade
2be99bb9b2919ac87831879e04d6739d6967a8f3
[ "Apache-2.0" ]
1
2020-06-27T23:21:00.000Z
2020-06-27T23:21:00.000Z
src/dockerblade/daemon.py
ChrisTimperley/dockerblade
2be99bb9b2919ac87831879e04d6739d6967a8f3
[ "Apache-2.0" ]
66
2019-10-12T22:20:49.000Z
2021-12-08T20:15:28.000Z
src/dockerblade/daemon.py
ChrisTimperley/dockerblade
2be99bb9b2919ac87831879e04d6739d6967a8f3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __all__ = ('DockerDaemon',) from types import TracebackType from typing import Any, Mapping, Optional, Type from loguru import logger import attr import docker from .container import Container @attr.s(frozen=True) class DockerDaemon: """Maintains a connection to a Docker daemon.""" ...
42.134921
78
0.569787
5,065
0.95404
0
0
5,086
0.957996
0
0
2,617
0.492937
a6241a7c60cc25d87aeba3bf7a47f6e1a3cb5132
1,606
py
Python
AreaFinder.py
karmatek/MinnoProto
cb231b44c055b910ce0e890f48fff0e0c7525c6e
[ "MIT" ]
null
null
null
AreaFinder.py
karmatek/MinnoProto
cb231b44c055b910ce0e890f48fff0e0c7525c6e
[ "MIT" ]
null
null
null
AreaFinder.py
karmatek/MinnoProto
cb231b44c055b910ce0e890f48fff0e0c7525c6e
[ "MIT" ]
null
null
null
"""this module finds areas of image, it first finds edges in picture's pixel area. then it makes contours of those edges, and draws biggest contours""" import cv2 import numpy as np from matplotlib import pyplot as plt def smartSelectFunc(filepath): #load image to analyze img = cv2.imread(filepath,0) #fin...
37.348837
107
0.702366
0
0
0
0
0
0
0
0
725
0.451432
a627af630e9c7ea0f65acfa02285e5da65872a94
2,465
py
Python
scripts/detection_configs.py
www516717402/edgeai-mmdetection
c5563434728da227678ba3588621b4b426cda43d
[ "BSD-3-Clause" ]
null
null
null
scripts/detection_configs.py
www516717402/edgeai-mmdetection
c5563434728da227678ba3588621b4b426cda43d
[ "BSD-3-Clause" ]
null
null
null
scripts/detection_configs.py
www516717402/edgeai-mmdetection
c5563434728da227678ba3588621b4b426cda43d
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2018-2020, Texas Instruments # All Rights Reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of condition...
48.333333
103
0.78499
0
0
0
0
0
0
0
0
2,427
0.984584
a6282b4f65c892360e83ec0d77ab379ee0c3ed7f
93
py
Python
hello_world.py
economicactivist/profiles-rest-api
298dfc81eea353c3db9c43b3514fd95b5e557e0c
[ "MIT" ]
null
null
null
hello_world.py
economicactivist/profiles-rest-api
298dfc81eea353c3db9c43b3514fd95b5e557e0c
[ "MIT" ]
5
2021-04-08T21:53:59.000Z
2022-02-10T15:12:26.000Z
hello_world.py
economicactivist/profiles-rest-api
298dfc81eea353c3db9c43b3514fd95b5e557e0c
[ "MIT" ]
null
null
null
print('hello world!') a = "cat dog fish monkey".split() for animal in a: print(animal)
13.285714
33
0.645161
0
0
0
0
0
0
0
0
35
0.376344
a628a61d4eade64beae8f07a2d6973ce8921c088
1,391
py
Python
users/models.py
faisoabdirisak/NextDoor
57eb963ea8e68cc1b3516ec1005418b3fdc6283a
[ "Unlicense", "MIT" ]
null
null
null
users/models.py
faisoabdirisak/NextDoor
57eb963ea8e68cc1b3516ec1005418b3fdc6283a
[ "Unlicense", "MIT" ]
null
null
null
users/models.py
faisoabdirisak/NextDoor
57eb963ea8e68cc1b3516ec1005418b3fdc6283a
[ "Unlicense", "MIT" ]
null
null
null
# from distutils.command.upload import upload # import email # from email.policy import default # from unicodedata import name import email import uuid from django.db import models from django.contrib.auth.models import User # from django.db.models.signals import post_save,post_delete # from django.dispatch import rec...
32.348837
102
0.717469
542
0.389648
0
0
0
0
0
0
732
0.52624
a62b1c307fdb97895ca854309c5d81de1710a8df
1,438
py
Python
back/babar_twitter/serializers.py
dryvenn/babar3
6f193ddbc1170739d8b1bf39033ad64d9bc85747
[ "MIT" ]
null
null
null
back/babar_twitter/serializers.py
dryvenn/babar3
6f193ddbc1170739d8b1bf39033ad64d9bc85747
[ "MIT" ]
null
null
null
back/babar_twitter/serializers.py
dryvenn/babar3
6f193ddbc1170739d8b1bf39033ad64d9bc85747
[ "MIT" ]
null
null
null
import json from datetime import timedelta from django.utils import timezone from rest_framework import serializers import tweepy from .models import * # Get secrets and create the API instance secrets = open("./babar_twitter/SECRETS.json", 'r') keychain = json.load(secrets) secrets.close() twitter_auth = tweepy.OAut...
29.958333
95
0.656467
906
0.630042
0
0
0
0
0
0
403
0.28025
a62b50d2b959f583c0aa23c6919ec3d633f00676
1,579
py
Python
tools/software-tool-chain/instruction_coding.py
jufo-ufo/Breadboard-Computer
f19089f88adaa13c53dfe79571ff90b0de9a34a3
[ "Apache-2.0" ]
null
null
null
tools/software-tool-chain/instruction_coding.py
jufo-ufo/Breadboard-Computer
f19089f88adaa13c53dfe79571ff90b0de9a34a3
[ "Apache-2.0" ]
null
null
null
tools/software-tool-chain/instruction_coding.py
jufo-ufo/Breadboard-Computer
f19089f88adaa13c53dfe79571ff90b0de9a34a3
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Tuple INSTRUCTIONS: Dict[str, Tuple[str, str, str, int]] = { "nop": ("", "", "", 0x00), "mov": ("r", "", "rc", 0x01), "add": ("r", "r", "rc", 0x02), "sub": ("r", "r", "rc", 0x03), "mul": ("r", "r", "rc", 0x04), "div": ("r", "r", "rc", 0x05), "xor": ("r", "r", "rc", ...
29.240741
60
0.329322
0
0
0
0
0
0
0
0
607
0.384421
a62c74b285e912ac651e99cb611624923fcd7697
1,105
py
Python
examples/canopen/canopen_example.py
RobertoRoos/ingenialink-python
c5e82dfbff17898bb316f5dc3f91a7f3c049ba20
[ "MIT" ]
null
null
null
examples/canopen/canopen_example.py
RobertoRoos/ingenialink-python
c5e82dfbff17898bb316f5dc3f91a7f3c049ba20
[ "MIT" ]
null
null
null
examples/canopen/canopen_example.py
RobertoRoos/ingenialink-python
c5e82dfbff17898bb316f5dc3f91a7f3c049ba20
[ "MIT" ]
null
null
null
import sys from ingenialink.canopen.net import Network, CAN_DEVICE def run_example(): net = None try: net = Network(device=CAN_DEVICE.PCAN) nodes = net.detect_nodes() net.scan('canopen_0.2.1.eds', 'registers_dictionary_canopen.xdf') drives_connected = net.servos if len(...
30.694444
81
0.514932
0
0
0
0
0
0
0
0
194
0.175566
a62e5d77c05596c38b887d3ac6ee4a9230f19780
5,051
py
Python
rnmu/test/test_acontrario_point.py
marianotepper/nmu_rfit
c726be892b928b884f81452697b9211cf273e03c
[ "BSD-3-Clause" ]
8
2017-06-13T13:07:34.000Z
2020-02-13T06:30:42.000Z
rnmu/test/test_acontrario_point.py
marianotepper/nmu_rfit
c726be892b928b884f81452697b9211cf273e03c
[ "BSD-3-Clause" ]
null
null
null
rnmu/test/test_acontrario_point.py
marianotepper/nmu_rfit
c726be892b928b884f81452697b9211cf273e03c
[ "BSD-3-Clause" ]
3
2017-06-10T18:30:57.000Z
2019-03-19T07:28:25.000Z
from __future__ import print_function import matplotlib.pyplot as plt import matplotlib.colors as plt_colors import numpy as np import scipy.io import scipy.stats from rnmu.pme.point import Point from rnmu.pme.line import Line import rnmu.pme.stats as stats def plot_soft_point(ax, point, sigma, box, n_levels=64, colo...
31.372671
82
0.567808
0
0
0
0
0
0
0
0
291
0.057612
a62ea8307891d611a45992bc024911fc8e8e0da9
17,456
py
Python
oldbabylonian/cookbook/poslib.py
sethbam9/tutorials
c259636682304cb516e9048ca8df5a3ab92c62cc
[ "MIT" ]
2
2019-07-17T18:51:26.000Z
2019-07-24T19:45:23.000Z
oldbabylonian/cookbook/poslib.py
sethbam9/tutorials
c259636682304cb516e9048ca8df5a3ab92c62cc
[ "MIT" ]
3
2019-01-16T10:56:50.000Z
2020-11-16T16:30:48.000Z
oldbabylonian/cookbook/poslib.py
sethbam9/tutorials
c259636682304cb516e9048ca8df5a3ab92c62cc
[ "MIT" ]
2
2020-12-17T15:41:33.000Z
2021-11-03T18:23:07.000Z
import os import collections from functools import reduce import yaml from tf.lib import writeSets HERE_BASE = "." DROPBOX_BASE = "~/Dropbox/obb" SET_NAME = "sets.tfx" MODULE = "pos" TF_LOC = f"{MODULE}/tf" def getCases(caseStr): caseLines = caseStr.strip().split("\n") result = {} for caseLine in case...
29.737649
103
0.507734
16,573
0.949416
0
0
0
0
0
0
3,082
0.176558
a630e19b17abd22ec5eb9f8bfa6cd41dd44b3348
1,613
py
Python
tcfcli/cmds/native/startapi/cli.py
tencentyun/scfcli
ef15508ad34a851cf0d2750dfaa5202f6a600887
[ "Apache-2.0" ]
103
2019-06-11T06:09:56.000Z
2021-12-18T22:48:59.000Z
tcfcli/cmds/native/startapi/cli.py
TencentCloud/Serverless-cli
57f98b24cfd10712770a4806212cfb69d981a11a
[ "Apache-2.0" ]
8
2019-07-12T12:08:40.000Z
2020-10-20T07:18:17.000Z
tcfcli/cmds/native/startapi/cli.py
TencentCloud/Serverless-cli
57f98b24cfd10712770a4806212cfb69d981a11a
[ "Apache-2.0" ]
49
2019-06-11T06:26:05.000Z
2020-02-19T08:13:36.000Z
# -*- coding: utf-8 -*- import click from tcfcli.cmds.native.common.start_api_context import StartApiContext from tcfcli.help.message import NativeHelp as help DEF_TMP_FILENAME = "template.yaml" @click.command(name='start-api', short_help=help.START_API_SHORT_HElP) @click.option('--env-vars', '-n', help='JSON file ...
36.659091
100
0.681959
0
0
0
0
978
0.606324
0
0
379
0.234966
a63284b08e3b3a719f709e9f2059ec76a6420514
1,905
py
Python
testing/dummy_usb.py
dominikandreas/modtpy
90616cee4e7ae34ecc56c24faa003e1ffd0210de
[ "MIT" ]
3
2019-01-24T16:40:22.000Z
2020-11-09T22:24:12.000Z
testing/dummy_usb.py
dominikandreas/modtpy
90616cee4e7ae34ecc56c24faa003e1ffd0210de
[ "MIT" ]
null
null
null
testing/dummy_usb.py
dominikandreas/modtpy
90616cee4e7ae34ecc56c24faa003e1ffd0210de
[ "MIT" ]
null
null
null
from modtpy.api.modt import ModT, Mode from modtpy.api.errors import PrinterError import logging from contextlib import contextmanager def dummy_device_function(f): def __inner__(self, *args, **kwargs): logging.info("Device.%s called with args: %s, kwargs: %s", f.__name__, str(args), str(kwargs)) ...
24.74026
102
0.622572
1,475
0.774278
628
0.329659
1,175
0.616798
0
0
106
0.055643
a6329ec460cd0fd9eb39a536eca18ce065e12138
712
py
Python
core/models/bert/classifier.py
readerbench/PASTEL
bef88d05c37b68f62a76983e4c31d9591b9a679a
[ "Apache-2.0" ]
null
null
null
core/models/bert/classifier.py
readerbench/PASTEL
bef88d05c37b68f62a76983e4c31d9591b9a679a
[ "Apache-2.0" ]
null
null
null
core/models/bert/classifier.py
readerbench/PASTEL
bef88d05c37b68f62a76983e4c31d9591b9a679a
[ "Apache-2.0" ]
null
null
null
from torch.nn.functional import relu, softmax, sigmoid from transformers import BertModel import torch.nn as nn class BERTClassifier(nn.Module): def __init__(self, n_classes, pretrained_bert_model): super(BERTClassifier, self).__init__() self.bert = BertModel.from_pretrained(pretrained_bert_model) self....
37.473684
84
0.75
598
0.839888
0
0
0
0
0
0
0
0
a6333b4280980727cc41b230009b8b7911647e4a
3,095
py
Python
django/apps/audit/operations.py
wykys/project-thesaurus
f700396b30ed44e6b001c15397a25450ac068af4
[ "MIT" ]
null
null
null
django/apps/audit/operations.py
wykys/project-thesaurus
f700396b30ed44e6b001c15397a25450ac068af4
[ "MIT" ]
93
2020-05-19T18:14:12.000Z
2022-03-29T00:26:39.000Z
django/apps/audit/operations.py
wykys/project-thesaurus
f700396b30ed44e6b001c15397a25450ac068af4
[ "MIT" ]
1
2020-11-21T20:24:35.000Z
2020-11-21T20:24:35.000Z
from typing import Type from django.db.migrations.operations.base import Operation from django.db.models import Model class AddAuditOperation(Operation): reduces_to_sql = True reversible = True enabled = True def __init__(self, model_name, audit_rows=True, audit_text=False, excluded=('created', 'mod...
34.388889
104
0.57189
2,882
0.931179
0
0
0
0
0
0
450
0.145396
a63517af775b6810696eee33fd69c06e61c4d35a
484
py
Python
DP&Memorization/272.py
wilbertgeng/LintCode_exercise
e7a343b746e98ca3b4bc7b36655af7291f3150db
[ "MIT" ]
null
null
null
DP&Memorization/272.py
wilbertgeng/LintCode_exercise
e7a343b746e98ca3b4bc7b36655af7291f3150db
[ "MIT" ]
null
null
null
DP&Memorization/272.py
wilbertgeng/LintCode_exercise
e7a343b746e98ca3b4bc7b36655af7291f3150db
[ "MIT" ]
null
null
null
"""272. Climbing Stairs II """ class Solution: """ @param n: An integer @return: An Integer """ def climbStairs2(self, n): # write your code here if n == 0: ## 0 is 1 step return 1 if n <= 2: return n last_two_step = 1 last_step = 1 ...
21.043478
94
0.508264
452
0.933884
0
0
0
0
0
0
127
0.262397
a635f25e0d832aa8c213627d281f0fbe8a76415f
9,791
py
Python
train_due.py
BlackHC/DUE
e6370a89f9aab8bfbbafe0d9a544dd637867751d
[ "MIT" ]
49
2021-02-23T14:34:04.000Z
2022-03-24T22:50:02.000Z
train_due.py
BlackHC/DUE
e6370a89f9aab8bfbbafe0d9a544dd637867751d
[ "MIT" ]
2
2021-12-06T22:25:41.000Z
2022-02-02T12:38:08.000Z
train_due.py
BlackHC/DUE
e6370a89f9aab8bfbbafe0d9a544dd637867751d
[ "MIT" ]
13
2021-03-05T01:35:12.000Z
2022-02-22T11:24:14.000Z
import argparse import json import torch import torch.nn.functional as F from torch.utils.tensorboard.writer import SummaryWriter from ignite.engine import Events, Engine from ignite.metrics import Accuracy, Average, Loss from ignite.contrib.handlers import ProgressBar from gpytorch.mlls import VariationalELBO from ...
28.297688
88
0.629456
0
0
0
0
1,840
0.187928
0
0
1,631
0.166582
a637253ad3b575ae1f1d91f3dfdeda8b63c8e5e1
14,583
py
Python
gui.py
tea321000/image_semantic_segmentation
80409858e8d44c1b24695035abf3a68fd83e9574
[ "MIT" ]
14
2020-06-20T01:52:56.000Z
2021-12-11T01:13:23.000Z
gui.py
tea321000/image_semantic_segmentation
80409858e8d44c1b24695035abf3a68fd83e9574
[ "MIT" ]
1
2020-12-28T13:32:19.000Z
2020-12-28T13:32:19.000Z
gui.py
tea321000/image_semantic_segmentation
80409858e8d44c1b24695035abf3a68fd83e9574
[ "MIT" ]
1
2020-10-15T11:57:45.000Z
2020-10-15T11:57:45.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'gui4.ui' # # Created by: PyQt5 UI code generator 5.15.0 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui, ...
55.873563
149
0.696907
14,692
0.977837
0
0
0
0
0
0
2,355
0.156739
a6377793c412ebc024d19ecb586fc91e462e185d
2,032
py
Python
dataset/cifar10_c.py
xuanqing94/NeuralSDE
f3511799cfc9c3d6b95ff9bcb07563df88715e0c
[ "MIT" ]
5
2020-06-28T07:15:35.000Z
2022-01-20T01:52:31.000Z
dataset/cifar10_c.py
xuanqing94/NeuralSDE
f3511799cfc9c3d6b95ff9bcb07563df88715e0c
[ "MIT" ]
null
null
null
dataset/cifar10_c.py
xuanqing94/NeuralSDE
f3511799cfc9c3d6b95ff9bcb07563df88715e0c
[ "MIT" ]
null
null
null
from PIL import Image import os import numpy as np import torch import torch.utils.data as data class CIFAR10_C(object): def __init__(self, path, levels=[1,2,3,4,5]): path = os.path.expanduser(path) self.path = path self.levels = levels files = os.listdir(path) datasets = [...
30.328358
88
0.596457
1,809
0.890256
0
0
0
0
0
0
53
0.026083
a637a96d54f58cda8435da2b415a24a67ca1842e
3,544
py
Python
models/word2vec/cbow_model.py
ktodorov/eval-historical-texts
e2994d594525d1d92056a6398935376a96659abb
[ "MIT" ]
9
2020-08-27T15:03:46.000Z
2022-01-02T10:48:35.000Z
models/word2vec/cbow_model.py
ktodorov/eval-historical-texts
e2994d594525d1d92056a6398935376a96659abb
[ "MIT" ]
16
2020-09-12T17:37:59.000Z
2020-11-18T10:36:32.000Z
models/word2vec/cbow_model.py
ktodorov/eval-historical-texts
e2994d594525d1d92056a6398935376a96659abb
[ "MIT" ]
1
2022-03-08T16:16:52.000Z
2022-03-08T16:16:52.000Z
import os from typing import Callable import torch from torch import nn from torch.nn.utils.rnn import pad_packed_sequence, pack_padded_sequence from overrides import overrides from entities.metric import Metric from entities.batch_representation import BatchRepresentation from entities.options.embedding_layer_optio...
38.945055
126
0.752822
2,641
0.745203
0
0
700
0.197517
0
0
0
0
a637ff1c369797ef1abc4107c3a9bce38ee9b23d
990
py
Python
mri_works/NodeEditor/modules/File_IO/Deleting_files_folders.py
montigno/mri_works
8ec6ff1500aa34d3540e44e4b0148023cf821f61
[ "CECILL-B" ]
2
2020-08-20T21:00:53.000Z
2021-08-16T15:28:51.000Z
mri_works/NodeEditor/modules/File_IO/Deleting_files_folders.py
montigno/mri_works
8ec6ff1500aa34d3540e44e4b0148023cf821f61
[ "CECILL-B" ]
3
2020-09-24T06:50:43.000Z
2020-12-15T11:02:04.000Z
mri_works/NodeEditor/modules/File_IO/Deleting_files_folders.py
montigno/mri_works
8ec6ff1500aa34d3540e44e4b0148023cf821f61
[ "CECILL-B" ]
1
2020-08-20T21:00:59.000Z
2020-08-20T21:00:59.000Z
class deleting_folder: def __init__(self, input_folder='path', ignore_errors=False): import shutil shutil.rmtree(input_folder, ignore_errors=ignore_errors) ############################################################################## class deleting_file: def __init__(self, input_file='path...
26.756757
78
0.435354
743
0.750505
0
0
0
0
0
0
293
0.29596
a63828f981b1214d9b5676be8d17b2e2e623a148
834
py
Python
scripts/opts.py
RipZ/beerbox
b396c5f14ed088ac82c2ebcea9746456748d763d
[ "Apache-2.0" ]
null
null
null
scripts/opts.py
RipZ/beerbox
b396c5f14ed088ac82c2ebcea9746456748d763d
[ "Apache-2.0" ]
null
null
null
scripts/opts.py
RipZ/beerbox
b396c5f14ed088ac82c2ebcea9746456748d763d
[ "Apache-2.0" ]
null
null
null
import argparse parser = argparse.ArgumentParser(description='oled arguments') parser.add_argument( '--port', '-p', type=int, default=0, help='i2c bus number', ) parser.add_argument( '--parameter', '-t', type=str, default='', help='parameter to display', ) parser.add_argument( '--va...
20.341463
62
0.642686
0
0
0
0
0
0
0
0
237
0.284173
a63954e3462fad8db808fe79ee0028680cc60ef9
12,864
py
Python
alphacsc/tests/test_d_solver.py
dinalzein/alphacsc
dab672c4da54ed1b89f2364f552cf9b0707fcaeb
[ "BSD-3-Clause" ]
null
null
null
alphacsc/tests/test_d_solver.py
dinalzein/alphacsc
dab672c4da54ed1b89f2364f552cf9b0707fcaeb
[ "BSD-3-Clause" ]
null
null
null
alphacsc/tests/test_d_solver.py
dinalzein/alphacsc
dab672c4da54ed1b89f2364f552cf9b0707fcaeb
[ "BSD-3-Clause" ]
null
null
null
import pytest from numpy.testing import assert_allclose import numpy as np from alphacsc.tests.conftest import N_CHANNELS, N_TIMES_ATOM, N_ATOMS from alphacsc.update_d_multi import prox_d, prox_uv from alphacsc._d_solver import get_solver_d, check_solver_and_constraints from alphacsc._z_encoder import get_z_encoder_...
36.134831
89
0.576803
0
0
0
0
12,495
0.971315
0
0
2,612
0.203047
a639c17d6fd2fadfce0ccee6caacea6630ec1b9f
1,931
py
Python
deploy/app/pipeline.py
PBenavides/credit-fraud-API
154b7ab2247f89649f8244b35d115cf352be23a5
[ "MIT" ]
null
null
null
deploy/app/pipeline.py
PBenavides/credit-fraud-API
154b7ab2247f89649f8244b35d115cf352be23a5
[ "MIT" ]
null
null
null
deploy/app/pipeline.py
PBenavides/credit-fraud-API
154b7ab2247f89649f8244b35d115cf352be23a5
[ "MIT" ]
null
null
null
import pandas as pd import datetime import numpy as np import json from app import artifacts_dict as artifacts from app.utils import get_time_now, get_time_sin_cos class InferencePipeline(): """Pipeline to receive data_dict and transform for inference. --------- Parameters: data_dict: from the reque...
25.407895
102
0.616261
1,763
0.912998
0
0
0
0
0
0
614
0.31797
a639e39129cf3e132136165ec24e35e67033099f
1,054
py
Python
setup.py
bfontaine/wpydumps
f01ff6fc7dfae75a5b1526d26e33d92410898971
[ "MIT" ]
1
2021-01-06T17:49:01.000Z
2021-01-06T17:49:01.000Z
setup.py
bfontaine/wpydumps
f01ff6fc7dfae75a5b1526d26e33d92410898971
[ "MIT" ]
null
null
null
setup.py
bfontaine/wpydumps
f01ff6fc7dfae75a5b1526d26e33d92410898971
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from setuptools import setup # http://stackoverflow.com/a/7071358/735926 import re VERSIONFILE = 'wpydumps/__init__.py' verstrline = open(VERSIONFILE, 'rt').read() VSRE = r'^__version__\s+=\s+[\'"]([^\'"]+)[\'"]' mo = re.search(VSRE, verstrline, re.M) if mo: verstr = mo.group(1) else: ...
28.486486
76
0.634725
0
0
0
0
0
0
0
0
510
0.483871
a63b3f2f9f2a7bfd879e5b06a05f0c6a64277b8f
1,343
py
Python
ambiente_virtual/Lib/site-packages/alembic/testing/suite/test_op.py
PI-UNIVESP-Penapolis/PRODEA
1ced58f52bace8b6de0de3c6516b9fb7231da09c
[ "MIT" ]
1,324
2018-11-27T05:44:41.000Z
2022-03-30T19:49:20.000Z
ambiente_virtual/Lib/site-packages/alembic/testing/suite/test_op.py
PI-UNIVESP-Penapolis/PRODEA
1ced58f52bace8b6de0de3c6516b9fb7231da09c
[ "MIT" ]
452
2018-11-27T22:43:38.000Z
2022-03-28T04:33:43.000Z
ambiente_virtual/Lib/site-packages/alembic/testing/suite/test_op.py
PI-UNIVESP-Penapolis/PRODEA
1ced58f52bace8b6de0de3c6516b9fb7231da09c
[ "MIT" ]
159
2018-11-29T18:46:15.000Z
2022-03-28T16:34:19.000Z
"""Test against the builders in the op.* module.""" from sqlalchemy import Column from sqlalchemy import event from sqlalchemy import Integer from sqlalchemy import String from sqlalchemy import Table from sqlalchemy.sql import text from ...testing.fixtures import AlterColRoundTripFixture from ...testing.fixtures imp...
31.232558
77
0.706627
818
0.609084
0
0
186
0.138496
0
0
234
0.174237
a63bcfa9188011d5f54844e668d23332501081e1
36,617
py
Python
xData/multiD_XYs.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
14
2019-08-29T23:46:24.000Z
2022-03-21T10:16:25.000Z
xData/multiD_XYs.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
1
2020-08-04T16:14:45.000Z
2021-12-01T01:54:34.000Z
xData/multiD_XYs.py
brown170/fudge
4f818b0e0b0de52bc127dd77285b20ce3568c97a
[ "BSD-3-Clause" ]
2
2022-03-03T22:41:41.000Z
2022-03-03T22:54:43.000Z
# <<BEGIN-copyright>> # Copyright 2021, Lawrence Livermore National Security, LLC. # See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: BSD-3-Clause # <<END-copyright>> """ This module contains the XYsnd classes for n > 1. """ __metaclass__ = type """ Missing methods copyDataToGridWsAn...
49.482432
198
0.598984
35,316
0.96447
0
0
4,454
0.121637
0
0
7,168
0.195756