hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
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
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
130
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a183e9eb1629119b07a80ab55e50e7e4f9662d0
23,106
py
Python
tests/authorization/test_owner_privileges.py
shiveshwar/impala-3.1.0
f4e0c72ee1fe5e530518f2096702a00d356619cd
[ "Apache-2.0" ]
null
null
null
tests/authorization/test_owner_privileges.py
shiveshwar/impala-3.1.0
f4e0c72ee1fe5e530518f2096702a00d356619cd
[ "Apache-2.0" ]
null
null
null
tests/authorization/test_owner_privileges.py
shiveshwar/impala-3.1.0
f4e0c72ee1fe5e530518f2096702a00d356619cd
[ "Apache-2.0" ]
null
null
null
# 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...
54.112412
90
0.641695
4a183f1fd090f35eb5147b17fa89e1738b96d55f
8,313
py
Python
trac/wiki/test.py
tiagoeckhardt/trac
b18c226195bfed8cd19cba97c6f03bd54dbbc044
[ "BSD-3-Clause" ]
null
null
null
trac/wiki/test.py
tiagoeckhardt/trac
b18c226195bfed8cd19cba97c6f03bd54dbbc044
[ "BSD-3-Clause" ]
null
null
null
trac/wiki/test.py
tiagoeckhardt/trac
b18c226195bfed8cd19cba97c6f03bd54dbbc044
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2004-2019 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at https://trac.edgewall.org/wiki/TracLicense. # # This software cons...
38.486111
80
0.558763
4a183f3ef1f4fa7e9816c454bae4041644c55e95
2,442
py
Python
where/tools/delete.py
ingridfausk/where
b65398911075b7ddef3a3a1146efa428eae498fe
[ "MIT" ]
16
2018-08-31T10:31:11.000Z
2022-03-15T16:07:24.000Z
where/tools/delete.py
ingridfausk/where
b65398911075b7ddef3a3a1146efa428eae498fe
[ "MIT" ]
5
2018-07-13T14:04:24.000Z
2021-06-17T02:14:44.000Z
where/tools/delete.py
ingridfausk/where
b65398911075b7ddef3a3a1146efa428eae498fe
[ "MIT" ]
15
2018-06-07T05:45:24.000Z
2022-03-15T16:07:27.000Z
"""Delete a Where analysis Usage: {exe:tools} delete <date> <pipeline> [--session=<session>] [options] The tool requires a date given in the format `<year month day>` (for example 2015 8 4). In addition, one pipeline must be specified. See below for available pipelines. =================== ===================...
28.068966
115
0.635954
4a1840110752af64b4abc497e2772eccf370f159
9,947
py
Python
advbench/models/mnist.py
constrainedlearning/advbench
68f9f6d77268aad45517ca84d383b996724cc976
[ "MIT" ]
null
null
null
advbench/models/mnist.py
constrainedlearning/advbench
68f9f6d77268aad45517ca84d383b996724cc976
[ "MIT" ]
null
null
null
advbench/models/mnist.py
constrainedlearning/advbench
68f9f6d77268aad45517ca84d383b996724cc976
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from e2cnn import gspaces from e2cnn import nn as enn from advbench.models.e2_utils import * from torch.nn.functional import pad class MNISTNet(nn.Module): def __init__(self, input_shape, num_classes, n_layers=2): super(MNISTNet, self).__in...
41.619247
105
0.62069
4a1841c217f899187ed948684e2b187b90f50d04
186
py
Python
util.py
zaabjuda/test_chat_server
96db615223d4a1548629d70b31b3eb7e89dd5ff6
[ "MIT" ]
null
null
null
util.py
zaabjuda/test_chat_server
96db615223d4a1548629d70b31b3eb7e89dd5ff6
[ "MIT" ]
null
null
null
util.py
zaabjuda/test_chat_server
96db615223d4a1548629d70b31b3eb7e89dd5ff6
[ "MIT" ]
null
null
null
# coding=utf-8 __author__ = "Dmitry Zhiltsov" __copyright__ = "Copyright 2015, Dmitry Zhiltsov" def to_bytes(str_data, encoding='UTF-8'): return bytes(str_data, encoding=encoding)
23.25
49
0.752688
4a18423faba5c5687c6f8a95c48e785bafc603ad
1,716
py
Python
directory_builder/test_changes.py
kimvanwyk/md_directory
2a877251eb61baca57188d0a0976756c8f3e2c31
[ "BSD-3-Clause" ]
null
null
null
directory_builder/test_changes.py
kimvanwyk/md_directory
2a877251eb61baca57188d0a0976756c8f3e2c31
[ "BSD-3-Clause" ]
2
2021-07-05T09:36:29.000Z
2021-07-05T09:36:29.000Z
directory_builder/test_changes.py
kimvanwyk/md_directory
2a877251eb61baca57188d0a0976756c8f3e2c31
[ "BSD-3-Clause" ]
null
null
null
''' Copyright (c) 2011, Kim van Wyk 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 conditions and the following di...
38.133333
93
0.757576
4a1843564eb4292000aa2184d20c5020a20612c2
371
py
Python
problem-004.py
natehouk/Project-Euler-Solutions
af6301b2309eb400694e398219c216f740bdd3ce
[ "MIT" ]
null
null
null
problem-004.py
natehouk/Project-Euler-Solutions
af6301b2309eb400694e398219c216f740bdd3ce
[ "MIT" ]
null
null
null
problem-004.py
natehouk/Project-Euler-Solutions
af6301b2309eb400694e398219c216f740bdd3ce
[ "MIT" ]
null
null
null
def is_palidrone(value): length = len(str(value)) for i in range(0, length): if (str(value)[i] != str(value)[length-i-1]): return False return True max_palidrone = 0 for i in range(999, 99, -1): for j in range (999, 99, -1): if (is_palidrone(i*j) and i*j > max_palidrone): ...
26.5
55
0.587601
4a18435d9fcb84f02385b05c8e6592f07170e25c
1,980
py
Python
emacs/emacs.d/jedi/test_jediepcserver.py
KitKod/dotfiles
92d8081280c7b6ebe7d91a00efb5dcdcc882b271
[ "BSD-3-Clause" ]
87
2015-01-03T13:57:31.000Z
2022-01-18T14:56:23.000Z
emacs/emacs.d/jedi/test_jediepcserver.py
KitKod/dotfiles
92d8081280c7b6ebe7d91a00efb5dcdcc882b271
[ "BSD-3-Clause" ]
1
2015-09-13T15:45:54.000Z
2015-09-13T15:45:54.000Z
emacs/emacs.d/jedi/test_jediepcserver.py
KitKod/dotfiles
92d8081280c7b6ebe7d91a00efb5dcdcc882b271
[ "BSD-3-Clause" ]
124
2015-01-15T22:05:39.000Z
2022-03-20T18:35:57.000Z
import os import textwrap from contextlib import contextmanager import jediepcserver as jep jep.import_jedi() @contextmanager def osenv(*args, **kwds): def putenvs(dct): for (k, v) in dct.items(): if v is None: del os.environ[k] else: os.environ[k] ...
26.052632
76
0.548485
4a184367dd31c745484448b5751f3c98c14279db
1,594
py
Python
ThreadSaver/tspkg/routes.py
Mabdelwanis/thread-it
f0da5be7bc288b3712d0e7e92e73a7b35a3df3be
[ "MIT" ]
4
2021-05-20T15:44:08.000Z
2022-03-18T13:09:46.000Z
ThreadSaver/tspkg/routes.py
Mabdelwanis/thread-it
f0da5be7bc288b3712d0e7e92e73a7b35a3df3be
[ "MIT" ]
null
null
null
ThreadSaver/tspkg/routes.py
Mabdelwanis/thread-it
f0da5be7bc288b3712d0e7e92e73a7b35a3df3be
[ "MIT" ]
6
2021-05-18T05:48:46.000Z
2022-03-20T19:03:25.000Z
from flask import render_template, url_for, redirect, send_file from ThreadSaver.tspkg import app from ThreadSaver.tspkg.models import User from flask_login import logout_user, login_required from flask_dance.contrib.twitter import twitter @app.route("/") @app.route("/home") def home(): return render_template('ho...
27.482759
95
0.680678
4a184421896ee5654c08b8580d178b3e60cc0124
589
py
Python
self-learning/based/00000003.py
vladspirin/python-learning
6b005fb28f96c0d610348a0b5f8830f94c53075f
[ "Unlicense" ]
1
2018-10-23T14:50:43.000Z
2018-10-23T14:50:43.000Z
self-learning/based/00000003.py
vladspirin/python-learning
6b005fb28f96c0d610348a0b5f8830f94c53075f
[ "Unlicense" ]
null
null
null
self-learning/based/00000003.py
vladspirin/python-learning
6b005fb28f96c0d610348a0b5f8830f94c53075f
[ "Unlicense" ]
null
null
null
# movie (dir. director) came out in year # movie = input() # director = input() # year = input() # print(f'{movie} (dir. {director}) came out in {year}') # txt = input() # txt = txt.title() # for i in txt: # if not i.isalpha(): # txt = txt.replace(i, "") # print(txt) def heading(string, numb...
23.56
56
0.475382
4a18446b6f858b798c13a25d34ff166a79b4d346
43,536
py
Python
src/python/BuildingControlsSimulator/DataClients/DataClient.py
ecobee/building-controls-simulator
c4256224d5b2e171417b60069ccc97dde44de342
[ "BSD-3-Clause" ]
10
2020-06-04T14:22:57.000Z
2021-06-16T17:00:48.000Z
src/python/BuildingControlsSimulator/DataClients/DataClient.py
ecobee/building-controls-simulator
c4256224d5b2e171417b60069ccc97dde44de342
[ "BSD-3-Clause" ]
56
2020-06-17T16:59:52.000Z
2022-03-25T18:59:11.000Z
src/python/BuildingControlsSimulator/DataClients/DataClient.py
ecobee/building-controls-simulator
c4256224d5b2e171417b60069ccc97dde44de342
[ "BSD-3-Clause" ]
5
2020-06-04T14:29:29.000Z
2021-03-05T07:59:34.000Z
# created by Tom Stesco tom.s@ecobee.com import os import logging # import pkg_resources from datetime import datetime import attr import pandas as pd import numpy as np from BuildingControlsSimulator.DataClients.DataStates import ( UNITS, CHANNELS, STATES, ) from BuildingControlsSimulator.Conversions.Co...
39.578182
88
0.57449
4a1844a41ee901a055a27d3ba1cd9b8726430147
791
py
Python
src/the_tale/the_tale/game/mobs/meta_relations.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
85
2017-11-21T12:22:02.000Z
2022-03-27T23:07:17.000Z
src/the_tale/the_tale/game/mobs/meta_relations.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
545
2017-11-04T14:15:04.000Z
2022-03-27T14:19:27.000Z
src/the_tale/the_tale/game/mobs/meta_relations.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
45
2017-11-11T12:36:30.000Z
2022-02-25T06:10:44.000Z
import smart_imports smart_imports.all() class Mob(meta_relations_objects.MetaType): __slots__ = ('caption', ) TYPE = 5 TYPE_CAPTION = 'Монстр' def __init__(self, caption, **kwargs): super(Mob, self).__init__(**kwargs) self.caption = caption @property def url(self): ...
21.378378
57
0.629583
4a184520f71fd66d993551dd0bb0f729d60f85f3
12,021
py
Python
cloudvolume/datasource/precomputed/mesh/multilod.py
seung-lab/cloud-volume
aebadc762435a4d9cca0595f2c1f6d8a6df19f0b
[ "BSD-3-Clause" ]
94
2017-09-03T16:18:34.000Z
2022-03-31T14:49:14.000Z
cloudvolume/datasource/precomputed/mesh/multilod.py
seung-lab/cloud-volume
aebadc762435a4d9cca0595f2c1f6d8a6df19f0b
[ "BSD-3-Clause" ]
378
2017-08-30T17:46:45.000Z
2022-03-31T00:15:04.000Z
cloudvolume/datasource/precomputed/mesh/multilod.py
seung-lab/cloud-volume
aebadc762435a4d9cca0595f2c1f6d8a6df19f0b
[ "BSD-3-Clause" ]
40
2018-03-01T09:12:02.000Z
2022-02-08T17:57:37.000Z
from collections import defaultdict import re import numpy as np from cloudfiles import CloudFiles from .common import apply_transform from .unsharded import UnshardedLegacyPrecomputedMeshSource from ..sharding import ShardingSpecification, ShardReader from ....mesh import Mesh from ....lib import yellow, red, toite...
33.207182
123
0.682639
4a18456ff8f0e6f0ffe9570d64052bed5fcc2945
2,378
py
Python
lib/config.py
Sprint-Core/sentinel
adaff12976a3c226c094e7149ffcef49eb1381cc
[ "MIT" ]
null
null
null
lib/config.py
Sprint-Core/sentinel
adaff12976a3c226c094e7149ffcef49eb1381cc
[ "MIT" ]
null
null
null
lib/config.py
Sprint-Core/sentinel
adaff12976a3c226c094e7149ffcef49eb1381cc
[ "MIT" ]
null
null
null
""" Set up defaults and read sentinel.conf """ import sys import os from sprint_config import SprintConfig default_sentinel_config = os.path.normpath( os.path.join(os.path.dirname(__file__), '../sentinel.conf') ) sentinel_config_file = os.environ.get('SENTINEL_CONFIG', default_sentinel_config) sentinel_cfg = S...
27.976471
94
0.681665
4a184594d4cd34b022a1048b466166f3c618ee2c
1,049
py
Python
elasticapm/utils/deprecation.py
lyrixderaven/apm-agent-python
e21b306da70995ca1582666378b7059495ff1bee
[ "BSD-3-Clause" ]
2
2019-02-15T20:23:39.000Z
2019-02-15T20:26:06.000Z
elasticapm/utils/deprecation.py
lyrixderaven/apm-agent-python
e21b306da70995ca1582666378b7059495ff1bee
[ "BSD-3-Clause" ]
null
null
null
elasticapm/utils/deprecation.py
lyrixderaven/apm-agent-python
e21b306da70995ca1582666378b7059495ff1bee
[ "BSD-3-Clause" ]
null
null
null
import functools import warnings # https://wiki.python.org/moin/PythonDecoratorLibrary#Smart_deprecation_warnings_.28with_valid_filenames.2C_line_numbers.2C_etc..29 # Updated to work with 2.6 and 3+. from elasticapm.utils import compat def deprecated(alternative=None): """This is a decorator which can be used to...
33.83871
131
0.654909
4a1845e31b9f3ecc0c997ad98827d84993d4e393
91
py
Python
torchtext/experimental/__init__.py
abhinavarora/text
69f67f3a775f3d3c6f85cfaa4ac3819500b90696
[ "BSD-3-Clause" ]
1
2022-01-03T17:30:57.000Z
2022-01-03T17:30:57.000Z
torchtext/experimental/__init__.py
abhinavarora/text
69f67f3a775f3d3c6f85cfaa4ac3819500b90696
[ "BSD-3-Clause" ]
null
null
null
torchtext/experimental/__init__.py
abhinavarora/text
69f67f3a775f3d3c6f85cfaa4ac3819500b90696
[ "BSD-3-Clause" ]
null
null
null
from . import datasets, models, transforms __all__ = ["datasets", "transforms", "models"]
22.75
46
0.714286
4a18463fb9bac2a4a5ed87ed1fb5c636bcb87309
15,276
py
Python
treegrad/utils_interpret.py
charliec443/TreeGrad2
87eecc8ba857056f0ff6be0a7bd6544e0ae38991
[ "MIT" ]
null
null
null
treegrad/utils_interpret.py
charliec443/TreeGrad2
87eecc8ba857056f0ff6be0a7bd6544e0ae38991
[ "MIT" ]
null
null
null
treegrad/utils_interpret.py
charliec443/TreeGrad2
87eecc8ba857056f0ff6be0a7bd6544e0ae38991
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import tensorflow as tf class BiasLayer(tf.keras.layers.Layer): def __init__(self, intercept=None, **kwargs): super().__init__(**kwargs) self.intercept = None self.bias = None self.build() def build(self, input_shape=None): if sel...
50.92
138
0.514467
4a184768b67b5e49a3ccbee1d1ba44d236421349
7,772
py
Python
airflow/utils/logging.py
Avik1993/incubator-airflow
75e0159e9b0ceea1853db2cd7c71623201985d46
[ "Apache-2.0" ]
2
2017-01-09T22:39:42.000Z
2017-07-19T20:57:40.000Z
airflow/utils/logging.py
rrbarbosa/airflow
23068924c09d6cebb0af6151b1950197ac16e67b
[ "Apache-2.0" ]
1
2016-10-19T21:49:51.000Z
2016-10-19T21:49:51.000Z
airflow/utils/logging.py
rrbarbosa/airflow
23068924c09d6cebb0af6151b1950197ac16e67b
[ "Apache-2.0" ]
2
2018-04-09T15:13:50.000Z
2019-06-14T07:19:46.000Z
# -*- coding: utf-8 -*- # # 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, software ...
36.317757
107
0.613742
4a1847e01c784420779f30f7319d8ac4dc09e4ff
252
py
Python
Test_Condiut/email_generator.py
Lia4-info/conduit
65f3b4b0be86c0ce0ae6b8eb95f7f43810727b58
[ "MIT" ]
null
null
null
Test_Condiut/email_generator.py
Lia4-info/conduit
65f3b4b0be86c0ce0ae6b8eb95f7f43810727b58
[ "MIT" ]
null
null
null
Test_Condiut/email_generator.py
Lia4-info/conduit
65f3b4b0be86c0ce0ae6b8eb95f7f43810727b58
[ "MIT" ]
null
null
null
import time from datetime import datetime now = datetime.now() print(now) email_num = now.strftime("%d%H") username = f"TKori{email_num}" print(username) email = f"tk{email_num}@mail.com" print(email) password = f"TKpass{email_num}" print(password)
16.8
33
0.742063
4a184940c802539f918633edacfe685c8e85f07f
7,316
py
Python
test/geocoders/geonames.py
hyper750/geopy
564b9cce9ee595ca6cc5c1c965a28b9e2925ebb9
[ "MIT" ]
1
2019-10-03T10:29:13.000Z
2019-10-03T10:29:13.000Z
test/geocoders/geonames.py
hyper750/geopy
564b9cce9ee595ca6cc5c1c965a28b9e2925ebb9
[ "MIT" ]
null
null
null
test/geocoders/geonames.py
hyper750/geopy
564b9cce9ee595ca6cc5c1c965a28b9e2925ebb9
[ "MIT" ]
1
2021-04-09T15:12:15.000Z
2021-04-09T15:12:15.000Z
# -*- coding: UTF-8 -*- import unittest import uuid import pytz from geopy import Point from geopy.compat import u from geopy.exc import GeocoderAuthenticationFailure, GeocoderQueryError from geopy.geocoders import GeoNames from test.geocoders.util import GeocoderTestBase, env class GeoNamesTestCaseUnitTest(Geocode...
31.399142
80
0.54497
4a18494d19ba617529d0402f74d293a7783b6868
913
py
Python
model.py
NB-prog/multiclass-classificationDistilBert
ed64da14ac59e1c2992a8eb80e45befee6f02879
[ "MIT" ]
null
null
null
model.py
NB-prog/multiclass-classificationDistilBert
ed64da14ac59e1c2992a8eb80e45befee6f02879
[ "MIT" ]
null
null
null
model.py
NB-prog/multiclass-classificationDistilBert
ed64da14ac59e1c2992a8eb80e45befee6f02879
[ "MIT" ]
null
null
null
import config import transformers import torch.nn from torch.utils.data import Dataset, DataLoader from transformers import DistilBertModel, DistilBertTokenizer class DistillBERTClass(torch.nn.Module): def __init__(self): super(DistillBERTClass, self).__init__() self.l1 = DistilBertModel.f...
39.695652
79
0.684556
4a184ab656349660841b015a1c51d725ae21dd56
701
py
Python
migrations/versions/b9618f6fb95f_initial_migration.py
Kenneth-joseph/Blogs
b6c508d36cdf2f874c233485003021d10567de7b
[ "Unlicense" ]
null
null
null
migrations/versions/b9618f6fb95f_initial_migration.py
Kenneth-joseph/Blogs
b6c508d36cdf2f874c233485003021d10567de7b
[ "Unlicense" ]
null
null
null
migrations/versions/b9618f6fb95f_initial_migration.py
Kenneth-joseph/Blogs
b6c508d36cdf2f874c233485003021d10567de7b
[ "Unlicense" ]
1
2021-11-17T11:03:08.000Z
2021-11-17T11:03:08.000Z
"""Initial Migration Revision ID: b9618f6fb95f Revises: f1a90e784faa Create Date: 2020-01-19 12:25:29.005897 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'b9618f6fb95f' down_revision = 'f1a90e784faa' branch_labels = None depends_on = None def upgrade(): ...
24.172414
86
0.71184
4a184ae73a8481732fb24e6b2a17e45cb09246e1
5,107
py
Python
src/zhinst/labber/generator/conf.py
markheik/zhinst-labber
d43479729c511c98f83cb84728bfa84d7098fa52
[ "MIT" ]
null
null
null
src/zhinst/labber/generator/conf.py
markheik/zhinst-labber
d43479729c511c98f83cb84728bfa84d7098fa52
[ "MIT" ]
null
null
null
src/zhinst/labber/generator/conf.py
markheik/zhinst-labber
d43479729c511c98f83cb84728bfa84d7098fa52
[ "MIT" ]
null
null
null
import string import typing as t from zhinst.labber.generator.helpers import tooltip class LabberConfiguration: """Labber JSON configuration handler. Parses selected values from given settings based on name and mode. Args: name: Name of the Zurich Instrument object. mode: What parts to ...
36.741007
83
0.572156
4a184cd76bb160cd10c71946205b23cbe09dadb7
1,339
py
Python
Github/ListNonLicensed.py
scivision/pygit-bulk
bdbd395c0b478b17c22cb7f1be8bddb0b8ee5c97
[ "MIT" ]
3
2021-05-26T00:23:56.000Z
2021-09-02T11:47:27.000Z
Github/ListNonLicensed.py
scivision/gitedu
bdbd395c0b478b17c22cb7f1be8bddb0b8ee5c97
[ "MIT" ]
null
null
null
Github/ListNonLicensed.py
scivision/gitedu
bdbd395c0b478b17c22cb7f1be8bddb0b8ee5c97
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ List all non-licensed repos (public and private, if Oauth key has "repo" permission) Requires GitHub Oauth login with permissions "repo:public_repo" or "repo" for private repos. """ import argparse import github.GithubException import gitbulk as gb def main(username: str, oauth: str, st...
25.75
94
0.651979
4a184cfdf0a755080965cf91834f9f728c1c92c8
3,979
py
Python
parlai/tasks/dailydialog/agents.py
bokanyibalazs7/ParlAI
6640f68a36b9f58fb863fbc50b5fde0d5df4b6a3
[ "MIT" ]
null
null
null
parlai/tasks/dailydialog/agents.py
bokanyibalazs7/ParlAI
6640f68a36b9f58fb863fbc50b5fde0d5df4b6a3
[ "MIT" ]
null
null
null
parlai/tasks/dailydialog/agents.py
bokanyibalazs7/ParlAI
6640f68a36b9f58fb863fbc50b5fde0d5df4b6a3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Daily Dialog https://arxiv.org/abs/1710.03957 Original data is copyright by the owners of the paper, and free for u...
29.917293
86
0.608947
4a184d557cb36dd8d6cbf1416449a0b2120b7544
13,939
py
Python
A3C/network.py
Xin-Ye-1/HIEM
6764f579eef6ec92dd85a005af27419f630df7da
[ "Apache-2.0" ]
2
2021-04-12T02:41:00.000Z
2021-05-15T02:18:15.000Z
A3C/network.py
Xin-Ye-1/HIEM
6764f579eef6ec92dd85a005af27419f630df7da
[ "Apache-2.0" ]
null
null
null
A3C/network.py
Xin-Ye-1/HIEM
6764f579eef6ec92dd85a005af27419f630df7da
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python import tensorflow as tf import tensorflow.contrib.slim as slim seed = 0 class Lowlevel_Network(): def __init__(self, window_size, num_labels, action_size, history_steps, scope='global' ):...
52.402256
118
0.493794
4a184f4dcf6dbf79b514b2e166fba6f027bbe1ea
5,412
py
Python
examples/exampleFunctions.py
adigitalmonk/pyzerto-unofficial
bbe8922b00f89edf7b9b84877178fd26acd67229
[ "Apache-2.0" ]
1
2020-12-05T00:03:24.000Z
2020-12-05T00:03:24.000Z
examples/exampleFunctions.py
adigitalmonk/pyzerto-unofficial
bbe8922b00f89edf7b9b84877178fd26acd67229
[ "Apache-2.0" ]
1
2020-12-06T03:27:47.000Z
2020-12-06T03:27:47.000Z
examples/exampleFunctions.py
adigitalmonk/pyzerto-unofficial
bbe8922b00f89edf7b9b84877178fd26acd67229
[ "Apache-2.0" ]
3
2020-12-05T00:51:44.000Z
2021-02-17T19:39:55.000Z
import json import vmware.vapi.vsphere.client import requests import urllib3 import zerto_auth, zvm, vpg, vra import time from secrets import zvm_ip, zvm_u, zvm_p, zca_u, zerto_license, zerto_tag testVraDict = { "DatastoreIdentifier":"0ad85e47-6b7d-4a95-a60d-be3d79308223.datastore-10", ...
45.478992
112
0.691611
4a184fae206240cb7b674b4fd48bb420e401af33
119,042
py
Python
modules/s3/s3filter.py
sungkomp/sambro
4618d785d03424d122206d88d9ebfb6971486e2c
[ "MIT" ]
1
2017-10-06T23:18:01.000Z
2017-10-06T23:18:01.000Z
modules/s3/s3filter.py
sungkomp/sambro
4618d785d03424d122206d88d9ebfb6971486e2c
[ "MIT" ]
null
null
null
modules/s3/s3filter.py
sungkomp/sambro
4618d785d03424d122206d88d9ebfb6971486e2c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Framework for filtered REST requests @copyright: 2013-2016 (c) Sahana Software Foundation @license: MIT @requires: U{B{I{gluon}} <http://web2py.com>} Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documenta...
36.605781
145
0.476596
4a184fdabfab94c249d85b9750ae6d8341a2890c
1,247
py
Python
Udacity/7/5ConstConnected.py
Camiloasc1/AlgorithmsUNAL
1542b8f2c170f9b5a24638f05ae50fa2c85cfc7b
[ "MIT" ]
null
null
null
Udacity/7/5ConstConnected.py
Camiloasc1/AlgorithmsUNAL
1542b8f2c170f9b5a24638f05ae50fa2c85cfc7b
[ "MIT" ]
null
null
null
Udacity/7/5ConstConnected.py
Camiloasc1/AlgorithmsUNAL
1542b8f2c170f9b5a24638f05ae50fa2c85cfc7b
[ "MIT" ]
null
null
null
# # Design and implement an algorithm that can preprocess a # graph and then answer the question "is x connected to y in the # graph" for any x and y in constant time Theta(1). # Graph = {} # # `process_graph` will be called only once on each graph. If you want, # you can store whatever information you need for `is_...
22.267857
71
0.526864
4a1854943de82950771d3344eec32428e9a9e96d
2,030
py
Python
tests/test_utils.py
cqkh42/advent-of-code-data
06f6338e9cf43289beac0b7132e5b7b91ab50372
[ "MIT" ]
255
2016-12-04T01:34:05.000Z
2022-03-18T09:05:49.000Z
tests/test_utils.py
miguel-bm/advent-of-code-data
2ed6f9303b06206057ee8f03f9bc0e16b95d39cb
[ "MIT" ]
46
2016-12-04T07:24:52.000Z
2022-01-03T09:52:25.000Z
tests/test_utils.py
miguel-bm/advent-of-code-data
2ed6f9303b06206057ee8f03f9bc0e16b95d39cb
[ "MIT" ]
34
2017-12-19T05:18:10.000Z
2022-01-17T16:09:31.000Z
import platform import sys import pytest from aocd.exceptions import DeadTokenError from aocd.utils import blocker from aocd.utils import get_owner from freezegun import freeze_time cpython = platform.python_implementation() == "CPython" winblows = sys.platform == "win32" py27 = sys.version_info[:2] == (2, 7) py27_on...
31.230769
97
0.694581
4a1854a1b2f9bd74cd55d96994eb519853971887
1,348
py
Python
app/app.py
ScMofeoluwa/cat-vs-dog
999e1daec16a8afdc4e5476651990c45c3f3db58
[ "MIT" ]
3
2021-01-06T01:01:17.000Z
2021-01-23T09:27:05.000Z
app/app.py
ScMofeoluwa/cat-vs-dog
999e1daec16a8afdc4e5476651990c45c3f3db58
[ "MIT" ]
null
null
null
app/app.py
ScMofeoluwa/cat-vs-dog
999e1daec16a8afdc4e5476651990c45c3f3db58
[ "MIT" ]
1
2021-01-23T09:26:28.000Z
2021-01-23T09:26:28.000Z
import os from secrets import token_hex import numpy as np from flask import Flask, render_template, request from keras_preprocessing.image import img_to_array, load_img from load import init from utils import rescale model = init() app = Flask(__name__) app.config["MAX_CONTENT_LENGTH"] = 1024 * 1024 * 4 app.config...
24.071429
70
0.646142
4a1854d5c0b572d58a187fa32d2612b08c7fb1e6
2,846
py
Python
azure-mgmt-network/azure/mgmt/network/v2018_12_01/models/azure_firewall_ip_configuration.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2018_12_01/models/azure_firewall_ip_configuration.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2018_12_01/models/azure_firewall_ip_configuration.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
41.852941
90
0.64617
4a18551a47917529802628329ee7c8267d0039e1
10,285
py
Python
AttributionDraftExp/mnist/get_attribution_features_mnist.py
frkl/Trinity-TrojAI
c0e5ab9d26496469aa0463f33f468cec3d43b25a
[ "MIT" ]
16
2021-01-05T01:53:54.000Z
2021-12-16T12:42:16.000Z
AttributionDraftExp/mnist/get_attribution_features_mnist.py
frkl/Trinity-TrojAI
c0e5ab9d26496469aa0463f33f468cec3d43b25a
[ "MIT" ]
null
null
null
AttributionDraftExp/mnist/get_attribution_features_mnist.py
frkl/Trinity-TrojAI
c0e5ab9d26496469aa0463f33f468cec3d43b25a
[ "MIT" ]
4
2021-02-24T05:17:14.000Z
2021-12-16T12:42:18.000Z
import numpy as np import torch import os import sys from matplotlib import pyplot as plt import torch.nn as nn from captum.attr import LayerIntegratedGradients, LayerGradientXActivation import skimage.io import torchvision import pickle import scipy.interpolate as interpolate import helper import warnings from tqdm im...
35.222603
88
0.532329
4a185619632e2342b4012b800bfdaa70b7a725ac
881
py
Python
Multi_s.py
mohabedalgani/GFSA
30a9ebad3d6b7f4f275ab2ea4b8509f64ab7ff40
[ "MIT" ]
null
null
null
Multi_s.py
mohabedalgani/GFSA
30a9ebad3d6b7f4f275ab2ea4b8509f64ab7ff40
[ "MIT" ]
null
null
null
Multi_s.py
mohabedalgani/GFSA
30a9ebad3d6b7f4f275ab2ea4b8509f64ab7ff40
[ "MIT" ]
null
null
null
''' This file is part of GFLIB toolbox First Version Sept. 2018 Cite this project as: Mezher M., Abbod M. (2011) Genetic Folding: A New Class of Evolutionary Algorithms. In: Bramer M., Petridis M., Hopgood A. (eds) Research and Development in Intelligent Systems XXVII. SGAI 2010. Springer, Lon...
28.419355
103
0.584563
4a18568abef33b636046658b0a907284aaa171c5
3,246
py
Python
src/health/checker.py
katcipis/spyglass
ceabbf011898e3f07931cfc2f69c117e41171b25
[ "MIT" ]
null
null
null
src/health/checker.py
katcipis/spyglass
ceabbf011898e3f07931cfc2f69c117e41171b25
[ "MIT" ]
null
null
null
src/health/checker.py
katcipis/spyglass
ceabbf011898e3f07931cfc2f69c117e41171b25
[ "MIT" ]
null
null
null
import asyncio from collections import namedtuple from urllib.parse import urlparse from health.probes import http_probe HealthCheck = namedtuple( 'HealthCheck', ['url', 'period_sec', 'patterns'], defaults=(None,), ) class InvalidParamsError(Exception): pass class HealthChecker: """ Perfo...
29.779817
76
0.597043
4a185704be6055275c9e4d555e2ce35a93aeb32d
1,322
py
Python
manager/get_api_gateway_endpoint.py
gvvynplaine/cortex
aa3daf0d138a880df29a2c075af41176119da47f
[ "Apache-2.0" ]
1
2021-12-08T03:43:30.000Z
2021-12-08T03:43:30.000Z
manager/get_api_gateway_endpoint.py
ourobouros/cortex
1b3aaf909816b93f6a6e3edd0da8c10891e05be9
[ "Apache-2.0" ]
null
null
null
manager/get_api_gateway_endpoint.py
ourobouros/cortex
1b3aaf909816b93f6a6e3edd0da8c10891e05be9
[ "Apache-2.0" ]
1
2021-05-25T03:49:14.000Z
2021-05-25T03:49:14.000Z
# Copyright 2020 Cortex Labs, 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...
35.72973
114
0.726929
4a1857129518cb6b6fafd1444c9a16a02150ff98
6,907
py
Python
kubernetes/client/models/v1_persistent_volume_claim_status.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_persistent_volume_claim_status.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_persistent_volume_claim_status.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.20.7 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six fr...
33.36715
187
0.63385
4a185774b926302d24142d6432fef830f03799f7
39,766
py
Python
web/server/codechecker_server/server.py
gocarlos/codechecker
17678b103375a9dbff6e69328d0996d54de78ef3
[ "Apache-2.0" ]
null
null
null
web/server/codechecker_server/server.py
gocarlos/codechecker
17678b103375a9dbff6e69328d0996d54de78ef3
[ "Apache-2.0" ]
null
null
null
web/server/codechecker_server/server.py
gocarlos/codechecker
17678b103375a9dbff6e69328d0996d54de78ef3
[ "Apache-2.0" ]
null
null
null
# ------------------------------------------------------------------------- # # Part of the CodeChecker project, under the Apache License v2.0 with # LLVM Exceptions. See LICENSE for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # # ---------------------------------------------------...
36.957249
79
0.586003
4a1857dbe6ca215d5841f76e944822da38ea8ff4
2,771
py
Python
PolishNotation.py
mhmddpkts/PolishNotation
94fc848d666999638542ebcaaad16f133944933e
[ "Apache-2.0" ]
2
2020-12-29T10:19:16.000Z
2021-12-19T10:46:52.000Z
PolishNotation.py
m-pektas/PolishNotation
94fc848d666999638542ebcaaad16f133944933e
[ "Apache-2.0" ]
null
null
null
PolishNotation.py
m-pektas/PolishNotation
94fc848d666999638542ebcaaad16f133944933e
[ "Apache-2.0" ]
1
2018-12-25T14:03:13.000Z
2018-12-25T14:03:13.000Z
#------------- import Library --------------------------- from builtins import input #-------------Define Methods ---------------------------- def isOperator(c): return ((c == '+') | (c == '-') | (c == '/') | (c == '*')) def whichOperator(c): if c =='+': return 0 elif c=='-': ret...
37.445946
114
0.384699
4a185885be705606e03847846f567c318103598c
4,202
py
Python
translate/google.py
ssshier/meta-realize
cc13309fa9e7e59044fb1c8e6e6b0a62caa7ca8c
[ "MIT" ]
1
2021-12-18T09:12:58.000Z
2021-12-18T09:12:58.000Z
translate/google.py
ssshier/meta-realize
cc13309fa9e7e59044fb1c8e6e6b0a62caa7ca8c
[ "MIT" ]
null
null
null
translate/google.py
ssshier/meta-realize
cc13309fa9e7e59044fb1c8e6e6b0a62caa7ca8c
[ "MIT" ]
null
null
null
import urllib.request import urllib.parse import json import execjs import re import ssl ssl._create_default_https_context = ssl._create_unverified_context JS_CODE=""" var uo = function (a, b) { for (var c = 0; c < b.length - 2; c += 3) { var d = b.charAt(c + 2); d = "a" <= d ? d.charCodeAt(0) - 8...
37.185841
222
0.519515
4a18599ae5bb2d02d7c473899595a610f998fcf5
15,630
py
Python
scvi/modules/_autozivae.py
giovp/scvi-tools
9b9370aa502b308f84e3129a7c940a9bea06426b
[ "BSD-3-Clause" ]
null
null
null
scvi/modules/_autozivae.py
giovp/scvi-tools
9b9370aa502b308f84e3129a7c940a9bea06426b
[ "BSD-3-Clause" ]
null
null
null
scvi/modules/_autozivae.py
giovp/scvi-tools
9b9370aa502b308f84e3129a7c940a9bea06426b
[ "BSD-3-Clause" ]
null
null
null
from typing import Dict, Optional, Tuple, Union import numpy as np import torch import torch.nn.functional as F from scipy.special import logit from torch.distributions import Beta, Gamma, Normal from torch.distributions import kl_divergence as kl from scvi import _CONSTANTS from scvi.compose import LossRecorder, aut...
38.402948
112
0.606142
4a185b46d451fce03acd6c7fc37ff25befdf90bf
2,760
py
Python
anyway/parsers/rsa.py
atalyaalon/anyway
0ddcd1d587de3bb65c528affcef5b6bd1dcaca71
[ "MIT" ]
null
null
null
anyway/parsers/rsa.py
atalyaalon/anyway
0ddcd1d587de3bb65c528affcef5b6bd1dcaca71
[ "MIT" ]
78
2017-06-20T09:25:11.000Z
2021-08-01T05:48:08.000Z
anyway/parsers/rsa.py
atalyaalon/anyway
0ddcd1d587de3bb65c528affcef5b6bd1dcaca71
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json from dateutil import parser from openpyxl import load_workbook from anyway.parsers.utils import batch_iterator from anyway.backend_constants import BE_CONST from anyway.models import AccidentMarker from anyway.app_and_db import db def _iter_rows(filename): workbook = load_workb...
32.470588
97
0.610145
4a185b4c5d5a7b18d9c19877382a08135fcc263c
1,054
py
Python
code/read_average_degree.py
CHUNHUNGFAN/Course_Social_Network_Novel
fe85ffe6ba7213e4b5a7878554184f1728899694
[ "MIT" ]
null
null
null
code/read_average_degree.py
CHUNHUNGFAN/Course_Social_Network_Novel
fe85ffe6ba7213e4b5a7878554184f1728899694
[ "MIT" ]
5
2021-03-10T12:17:57.000Z
2022-02-27T01:52:58.000Z
code/read_average_degree.py
CHUNHUNGFAN/Course_Social_Network_Novel
fe85ffe6ba7213e4b5a7878554184f1728899694
[ "MIT" ]
null
null
null
#%% file = open("../dataset/novel.txt") # %% characters = [] file2 = open("../dataset/character.txt") for line in file2: if line != '\n': line = line.strip('\n') characters.append(line) # %% relationship = [[0 for column in range(len(characters))] for row in range(len(characters))] lines = file.re...
25.707317
91
0.59962
4a185bb5981d0d47344af832303102ad74a0587d
7,391
py
Python
pusher/pusher.py
makingspace/pusher-http-python
569d8fa1ef9baca431cbb86467aabb39d4077fd8
[ "MIT" ]
null
null
null
pusher/pusher.py
makingspace/pusher-http-python
569d8fa1ef9baca431cbb86467aabb39d4077fd8
[ "MIT" ]
1
2017-01-25T02:17:17.000Z
2017-01-25T02:17:17.000Z
pusher/pusher.py
makingspace/pusher-http-python
569d8fa1ef9baca431cbb86467aabb39d4077fd8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import ( print_function, unicode_literals, absolute_import, division) import os from pusher.util import ( ensure_text, pusher_url_re, doc_string) from pusher.pusher_client import PusherClient from pusher.notification_client import NotificationClien...
38.295337
83
0.693817
4a185d788bbc841a788866b9eb2407963c7c344f
3,877
py
Python
behave2cucumber/__main__.py
ones0318/behave2cucumber
8fc67dc431e38731034d27f0091047c5030b9115
[ "MIT" ]
20
2016-11-23T10:14:12.000Z
2022-01-17T04:23:55.000Z
behave2cucumber/__main__.py
ones0318/behave2cucumber
8fc67dc431e38731034d27f0091047c5030b9115
[ "MIT" ]
12
2016-12-02T13:02:53.000Z
2021-03-31T15:14:30.000Z
behave2cucumber/__main__.py
ones0318/behave2cucumber
8fc67dc431e38731034d27f0091047c5030b9115
[ "MIT" ]
25
2016-12-08T19:39:30.000Z
2021-08-13T09:38:10.000Z
import sys import json import getopt import logging from pprint import pprint from .__init__ import convert # Global Parameters _name = "behave2cucumber" _debug = logging.WARNING # Logging logFormatter = logging.Formatter("%(asctime)s [%(threadName)-12.12s] [%(levelname)-10.10s] %(message)s") shortFormatter = loggi...
28.932836
118
0.559711
4a185f471e151b447e4e04d08bef81b739380f18
3,054
py
Python
safari_crash.py
TheSecondSun/Safari-Crash
a01f01c2de132fa4776f2f410fd3293ccbc91a4f
[ "MIT" ]
24
2018-09-17T21:55:44.000Z
2020-03-26T05:30:04.000Z
safari_crash.py
wintrmvte/Safari-Crash
a01f01c2de132fa4776f2f410fd3293ccbc91a4f
[ "MIT" ]
null
null
null
safari_crash.py
wintrmvte/Safari-Crash
a01f01c2de132fa4776f2f410fd3293ccbc91a4f
[ "MIT" ]
5
2018-09-18T14:07:39.000Z
2020-03-26T05:30:05.000Z
#!/usr/bin/python2.7 import argparse from terminaltables import SingleTable import os import lib.logs as logs import importlib from bottle import route, run PATH = __file__.replace('./safari_crash.py', '') sun = "{}{}o{}{}{}O{}".format(logs.color().BLINK, logs.color().RED, logs.color().END, logs.color().BLINK, logs.co...
37.703704
144
0.613294
4a1861bbb3e0d8acc02c6276de71fb4400ff0ecf
8,175
py
Python
lib/cell_spacegroup.py
jorgediazjr/fast_dp
972fe7f09fb28b07053de595faa6857692320cbe
[ "Apache-2.0" ]
null
null
null
lib/cell_spacegroup.py
jorgediazjr/fast_dp
972fe7f09fb28b07053de595faa6857692320cbe
[ "Apache-2.0" ]
null
null
null
lib/cell_spacegroup.py
jorgediazjr/fast_dp
972fe7f09fb28b07053de595faa6857692320cbe
[ "Apache-2.0" ]
null
null
null
import os from cctbx import xray from cctbx.sgtbx import space_group from cctbx.sgtbx import space_group_symbols from cctbx.uctbx import unit_cell from cctbx.crystal import symmetry def ersatz_pointgroup(spacegroup_name): '''Guess the pointgroup for the spacegroup by mapping from short to long name, then taki...
32.312253
85
0.522446
4a186329b2fefa2d4f0ff6b8bc9dfc3bb4dd1e28
317
py
Python
src/627A.py
viing937/codeforces
d694eb6967cd56af02963c3a662066048cb78d07
[ "MIT" ]
2
2016-08-19T09:47:03.000Z
2016-10-01T10:15:03.000Z
src/627A.py
viing937/codeforces
d694eb6967cd56af02963c3a662066048cb78d07
[ "MIT" ]
null
null
null
src/627A.py
viing937/codeforces
d694eb6967cd56af02963c3a662066048cb78d07
[ "MIT" ]
1
2015-07-01T23:57:32.000Z
2015-07-01T23:57:32.000Z
s, x = map(int, input().split(' ')) if (s-x)%2 or s < x: print(0) else: c = bin((s-x)//2)[2:][::-1] t = bin(x)[2:][::-1] for i in range(len(t)): if t[i] == '1' and i < len(c) and c[i] == '1': print(0) exit(0) print(pow(2, bin(x)[2:].count('1'))-(2 if s==x else 0))
26.416667
59
0.403785
4a186349b134f37a91f9d24ea58b63ebe9ba211b
13,627
py
Python
src/sdk/pynni/nni/compression/torch/pruners.py
RayMeng8/nni
c3cd9fe7ffdb20d07f7562592774fe071b235de3
[ "MIT" ]
null
null
null
src/sdk/pynni/nni/compression/torch/pruners.py
RayMeng8/nni
c3cd9fe7ffdb20d07f7562592774fe071b235de3
[ "MIT" ]
null
null
null
src/sdk/pynni/nni/compression/torch/pruners.py
RayMeng8/nni
c3cd9fe7ffdb20d07f7562592774fe071b235de3
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import copy import logging import torch from .compressor import Pruner __all__ = ['LevelPruner', 'AGP_Pruner', 'SlimPruner', 'LotteryTicketPruner'] logger = logging.getLogger('torch pruner') class LevelPruner(Pruner): """ Prune to an ...
36.82973
125
0.611507
4a18659f83d07648c6aa2d1d54541fd7fcdcfc5e
1,161
py
Python
tests/test_fdt_image.py
Caesurus/pyUBoot
c8f421fede9a3e318bc0280ffbb2f8c1dad934d1
[ "Apache-2.0" ]
null
null
null
tests/test_fdt_image.py
Caesurus/pyUBoot
c8f421fede9a3e318bc0280ffbb2f8c1dad934d1
[ "Apache-2.0" ]
null
null
null
tests/test_fdt_image.py
Caesurus/pyUBoot
c8f421fede9a3e318bc0280ffbb2f8c1dad934d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Martin Olejar # # 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.317073
75
0.745047
4a1865f1dc0d82b56b0196b7b6543079c8ce8212
46
py
Python
code/sample_1-2-13.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
1
2022-03-29T13:50:12.000Z
2022-03-29T13:50:12.000Z
code/sample_1-2-13.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
code/sample_1-2-13.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
x = [int(input()) for i in range(5)] print(x)
15.333333
36
0.586957
4a1866b5fa1c389467bcd258ea8e5601bbe10e70
5,937
py
Python
fuzzers/int_loop_check.py
rw1nkler/prjxray
aff076b47dcf6d653eb3ce791b41fd6cf4343edd
[ "ISC" ]
583
2017-12-21T11:06:13.000Z
2022-02-20T21:27:33.000Z
fuzzers/int_loop_check.py
rw1nkler/prjxray
aff076b47dcf6d653eb3ce791b41fd6cf4343edd
[ "ISC" ]
1,212
2017-12-22T15:05:06.000Z
2022-02-19T13:04:59.000Z
fuzzers/int_loop_check.py
mfkiwl/prjxray-xilinx-7-bitstream-fortmat
5349556bc2c230801d6df0cf11bccb9cfd171639
[ "ISC" ]
134
2017-12-21T10:16:50.000Z
2022-02-16T06:42:04.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (C) 2017-2020 The Project X-Ray Authors. # # Use of this source code is governed by a ISC-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/ISC # # SPDX-License-Identifier: ISC from __future__ import print_functio...
32.091892
137
0.60384
4a1866b79ab810c825f5f69494305a7cdd0f343d
616
py
Python
api/news.py
qianbin01/lagou_python_api
84c0d21cd6a2296efb974dbf7c07cc074106d799
[ "MIT" ]
8
2018-09-10T06:30:56.000Z
2021-03-11T19:16:32.000Z
api/news.py
qianbin01/lagou_python_api
84c0d21cd6a2296efb974dbf7c07cc074106d799
[ "MIT" ]
null
null
null
api/news.py
qianbin01/lagou_python_api
84c0d21cd6a2296efb974dbf7c07cc074106d799
[ "MIT" ]
5
2018-10-12T12:37:16.000Z
2020-05-16T03:17:40.000Z
import models.news as news from flask import Blueprint, jsonify, request news_blue_print = Blueprint('news', __name__) status = { 'msg': '请求成功', 'code': 1000 } news_doc = news.get_news_count() @news_blue_print.route('/lists') def lists(): page = request.args.get('page') news_doc['index'] = page r...
22.814815
75
0.646104
4a18688dcc5f70a55ed8c5c3fd67e82b860c2b41
1,860
py
Python
create_nlcd_only_baseline.py
baoqianyue/DFC2021-Track-MSD
d707f7601c6caa0d0f0e6013d493e66059d23d49
[ "Apache-2.0" ]
11
2021-03-31T06:47:21.000Z
2022-03-01T04:07:15.000Z
create_nlcd_only_baseline.py
baoqianyue/DFC2021-Track-MSD
d707f7601c6caa0d0f0e6013d493e66059d23d49
[ "Apache-2.0" ]
null
null
null
create_nlcd_only_baseline.py
baoqianyue/DFC2021-Track-MSD
d707f7601c6caa0d0f0e6013d493e66059d23d49
[ "Apache-2.0" ]
null
null
null
import os import re os.environ[ "CURL_CA_BUNDLE"] = "/etc/ssl/certs/ca-certificates.crt" # A workaround in case this happens: https://github.com/mapbox/rasterio/issues/1289 import argparse import numpy as np import pandas as pd import rasterio import utils parser = argparse.ArgumentParser(description='DFC2021...
31
145
0.636559
4a18690c48942ac2073f2eb39ee29753bd16215d
716
py
Python
app/core/management/commands/wait_for_db.py
tejasvadgama5/recipe-app-api
670ec021fb75f99f490079baa105b7c4e58050ab
[ "MIT" ]
null
null
null
app/core/management/commands/wait_for_db.py
tejasvadgama5/recipe-app-api
670ec021fb75f99f490079baa105b7c4e58050ab
[ "MIT" ]
null
null
null
app/core/management/commands/wait_for_db.py
tejasvadgama5/recipe-app-api
670ec021fb75f99f490079baa105b7c4e58050ab
[ "MIT" ]
1
2021-11-12T12:39:36.000Z
2021-11-12T12:39:36.000Z
import time from django.db import connections from django.db.utils import OperationalError from django.core.management.base import BaseCommand class Command(BaseCommand): """Django command to pause execution utill database is available""" def handle(self, *args, **options): self.stdout.write("Waitin...
31.130435
71
0.615922
4a1869adc6198d687b649327c1d789a1796bf361
340
py
Python
jsonbourne/_version.py
dynamic-graphics-inc/jsonbourne
e270220e609015b3de9a1a31ecd0d2411c1db138
[ "MIT" ]
1
2021-03-25T01:50:20.000Z
2021-03-25T01:50:20.000Z
jsonbourne/_version.py
dynamic-graphics-inc/jsonbourne
e270220e609015b3de9a1a31ecd0d2411c1db138
[ "MIT" ]
null
null
null
jsonbourne/_version.py
dynamic-graphics-inc/jsonbourne
e270220e609015b3de9a1a31ecd0d2411c1db138
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """`jsonbourne` version""" __version__ = "0.5.0" VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH = [int(el) for el in __version__.split('.')] VERSION_INFO = (VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH) __all__ = [ "VERSION_MAJOR", "VERSION_MINOR", "VERSION_PATCH", "VERSION_INFO", ...
24.285714
88
0.670588
4a186ac49f6b4bbddc25a4322f970757a2c4c3dd
636
py
Python
netscan.py
zweed4u/netscan
9671acda67af6e8e04c3628f86b2a2ec348e5f2d
[ "MIT" ]
null
null
null
netscan.py
zweed4u/netscan
9671acda67af6e8e04c3628f86b2a2ec348e5f2d
[ "MIT" ]
null
null
null
netscan.py
zweed4u/netscan
9671acda67af6e8e04c3628f86b2a2ec348e5f2d
[ "MIT" ]
null
null
null
import os,sys,time,socket from selenium import webdriver #Relative and Direct paths stink driverBin=os.path.expanduser("~/Desktop/chromedriver") print 'Binary directory:',driverBin #browser instance driver=webdriver.Chrome(driverBin) driver.set_page_load_timeout(5) socket.setdefaulttimeout(5) #Class A lastOctet=0 th...
23.555556
65
0.762579
4a186ba5950f43356d6c3a1e61c4ebb2ea5657d6
12,119
py
Python
tests.py
dferens/django-classsettings
9894dcbf33e07821c7a71d6ad8839a8711bb6333
[ "MIT" ]
2
2015-01-15T17:50:11.000Z
2015-10-31T20:27:01.000Z
tests.py
dferens/django-classsettings
9894dcbf33e07821c7a71d6ad8839a8711bb6333
[ "MIT" ]
null
null
null
tests.py
dferens/django-classsettings
9894dcbf33e07821c7a71d6ad8839a8711bb6333
[ "MIT" ]
null
null
null
import os import sys import unittest import mock from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.utils.unittest import skipIf from classsettings import Settings, Config, from_env, utils from classsettings.urls import Context, Scope, url IS_ABOVE_26 = sys.version_...
34.428977
88
0.599142
4a186de7c42a87f0feb229aa7f15b2dd9da0129d
1,201
py
Python
am/finance/models/financetransaction.py
access-missouri/am-django-project
2457b8089900c61c73000c1d7479b7a72f6d1855
[ "BSD-2-Clause" ]
4
2018-05-01T20:31:49.000Z
2021-12-20T19:30:40.000Z
am/finance/models/financetransaction.py
access-missouri/am-django-project
2457b8089900c61c73000c1d7479b7a72f6d1855
[ "BSD-2-Clause" ]
22
2017-04-13T15:02:09.000Z
2021-02-02T21:48:41.000Z
am/finance/models/financetransaction.py
access-missouri/am-django-project
2457b8089900c61c73000c1d7479b7a72f6d1855
[ "BSD-2-Clause" ]
1
2018-07-02T20:08:43.000Z
2018-07-02T20:08:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Finance transaction and related models. """ from __future__ import unicode_literals from datetime import datetime from general.models import AMBaseModel from django.db import models from . import FinanceEntity from django.utils.encoding import python_2_unicode_compatib...
24.510204
89
0.631141
4a186e50c0d2dbe9dca5bdc6676c515499012c34
317
py
Python
credentials.py
NancyWachiuri/PasswordLoker
d307a30b78fdcb70ffbc23d21ecd30bf34a3b931
[ "MIT" ]
null
null
null
credentials.py
NancyWachiuri/PasswordLoker
d307a30b78fdcb70ffbc23d21ecd30bf34a3b931
[ "MIT" ]
null
null
null
credentials.py
NancyWachiuri/PasswordLoker
d307a30b78fdcb70ffbc23d21ecd30bf34a3b931
[ "MIT" ]
null
null
null
class Credentials: credentions = [] def __init__(self, website_name, website_email, website_password): self.website_name = website_name self.website_email = website_email self.website_password = website_password def add_credentials(self): Credentials.credentions.append(self)
31.7
66
0.728707
4a186e5113ab840870272acd65b5d770347d180a
1,300
py
Python
tests/test_create_jwt_args.py
jeffreyparker/duo_universal_python
01515c77abef017d526d70f28d111b171638e372
[ "BSD-3-Clause" ]
8
2020-10-22T17:14:42.000Z
2021-11-16T02:10:53.000Z
tests/test_create_jwt_args.py
jeffreyparker/duo_universal_python
01515c77abef017d526d70f28d111b171638e372
[ "BSD-3-Clause" ]
9
2021-01-01T16:49:13.000Z
2022-03-10T15:37:42.000Z
tests/test_create_jwt_args.py
jeffreyparker/duo_universal_python
01515c77abef017d526d70f28d111b171638e372
[ "BSD-3-Clause" ]
14
2020-11-05T16:24:58.000Z
2022-01-19T20:57:17.000Z
from mock import MagicMock, patch from duo_universal import client import unittest CLIENT_ID = "DIXXXXXXXXXXXXXXXXXX" CLIENT_SECRET = "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef" HOST = "api-XXXXXXX.test.duosecurity.com" REDIRECT_URI = "https://www.example.com" ERROR_TIMEOUT = "Connection to api-xxxxxxx.test.duosecurit...
30.952381
95
0.755385
4a187027ab450bd68843fac8c4c0ab11730196d1
1,533
py
Python
scripts/automation/trex_control_plane/unit_tests/outer_packages.py
klement/trex-core
b98e2e6d2b8c6caeb233ce36fcbc131ffc45e35e
[ "Apache-2.0" ]
3
2019-03-27T08:21:17.000Z
2021-01-17T14:27:28.000Z
scripts/automation/trex_control_plane/unit_tests/outer_packages.py
klement/trex-core
b98e2e6d2b8c6caeb233ce36fcbc131ffc45e35e
[ "Apache-2.0" ]
13
2019-10-11T12:33:43.000Z
2020-02-10T08:28:34.000Z
scripts/automation/trex_control_plane/unit_tests/outer_packages.py
klement/trex-core
b98e2e6d2b8c6caeb233ce36fcbc131ffc45e35e
[ "Apache-2.0" ]
2
2019-10-21T15:32:24.000Z
2019-10-29T13:06:11.000Z
import sys import os EXT_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, 'external_libs')) if not os.path.exists(EXT_PATH): raise Exception('Wrong path to external libs: %s' % EXT_PATH) CLIENT_UTILS_MODULES = [ {'name': 'scapy-2.3.1', 'py-de...
32.617021
117
0.634051
4a1870d8674c31b6e7ca035fb65d392c7fcbef31
2,204
py
Python
scripts/addons/animation_nodes/ui/problems_panel.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2020-04-16T22:12:40.000Z
2022-01-22T17:18:45.000Z
scripts/addons/animation_nodes/ui/problems_panel.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
null
null
null
scripts/addons/animation_nodes/ui/problems_panel.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2019-05-16T04:01:09.000Z
2020-08-25T11:42:26.000Z
import bpy import sys from .. import problems from .. utils.layout import writeText from .. draw_handler import drawHandler from .. graphics.rectangle import Rectangle from .. utils.blender_ui import getDpiFactor class ProblemsPanel(bpy.types.Panel): bl_idname = "an_problems_panel" bl_label = "Problems" bl...
34.4375
99
0.636116
4a18711d421b609dec9dc48e16bc3c6496dedb37
419
py
Python
django_background_job/asgi.py
drunkpig/django-background-job
d143db1199fbb453814b254e5f1ec890e43a9709
[ "MIT" ]
1
2021-07-02T06:22:43.000Z
2021-07-02T06:22:43.000Z
django_background_job/asgi.py
drunkpig/django-background-job
d143db1199fbb453814b254e5f1ec890e43a9709
[ "MIT" ]
null
null
null
django_background_job/asgi.py
drunkpig/django-background-job
d143db1199fbb453814b254e5f1ec890e43a9709
[ "MIT" ]
null
null
null
""" ASGI config for django_background_job project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault...
24.647059
81
0.799523
4a187146270b3a8e8ce852a834a13981b3c2bf62
34,215
py
Python
embyapi/api/trailers_service_api.py
stanionascu/python-embyapi
a3f7aa49aea4052277cc43605c0d89bc6ff21913
[ "BSD-3-Clause" ]
null
null
null
embyapi/api/trailers_service_api.py
stanionascu/python-embyapi
a3f7aa49aea4052277cc43605c0d89bc6ff21913
[ "BSD-3-Clause" ]
null
null
null
embyapi/api/trailers_service_api.py
stanionascu/python-embyapi
a3f7aa49aea4052277cc43605c0d89bc6ff21913
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 """ Emby Server API Explore the Emby Server API # noqa: E501 OpenAPI spec version: 4.1.1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import ...
74.868709
1,424
0.69639
4a187189e706402c46d77e8171a68041c248b87a
387
py
Python
occpm/wsgi.py
JanKruska/occpm
0838f522064429cb7e3db3eb56379b731aabc6dc
[ "MIT" ]
2
2021-11-30T17:23:23.000Z
2021-12-30T12:12:18.000Z
occpm/wsgi.py
JanKruska/occpm
0838f522064429cb7e3db3eb56379b731aabc6dc
[ "MIT" ]
null
null
null
occpm/wsgi.py
JanKruska/occpm
0838f522064429cb7e3db3eb56379b731aabc6dc
[ "MIT" ]
3
2021-11-11T17:46:32.000Z
2022-01-03T22:25:21.000Z
""" WSGI config for occpm project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTING...
22.764706
78
0.782946
4a1873b33eee70539513ac95afbe778fcfa3fbfd
1,071
py
Python
PriceHero/_journeys.py
bizzyvinci/PriceHero
c32a382143ca8ef63bb77c3dbd3e38676cc410d6
[ "MIT" ]
null
null
null
PriceHero/_journeys.py
bizzyvinci/PriceHero
c32a382143ca8ef63bb77c3dbd3e38676cc410d6
[ "MIT" ]
null
null
null
PriceHero/_journeys.py
bizzyvinci/PriceHero
c32a382143ca8ef63bb77c3dbd3e38676cc410d6
[ "MIT" ]
null
null
null
from requests import get from selectorlib import Extractor def _journeys(journeys_url): extractor = Extractor.from_yaml_string(""" name: css: h1.detail-name xpath: null type: Text price: css: span.regular-price xpath: null type: Text """) headers = { ...
35.7
145
0.612512
4a187439a723bcee596551b30fecc504066eac63
3,682
py
Python
api/instantboxManager.py
mexious/vm_image
18e671558b20dc92328108db51344660a2d3fa89
[ "MIT" ]
null
null
null
api/instantboxManager.py
mexious/vm_image
18e671558b20dc92328108db51344660a2d3fa89
[ "MIT" ]
null
null
null
api/instantboxManager.py
mexious/vm_image
18e671558b20dc92328108db51344660a2d3fa89
[ "MIT" ]
null
null
null
import docker import random import string import time import json class InstantboxManager(object): CONTAINER_PREFIX = 'instantbox_managed_' TIMEOUT_LABEL = 'org.instantbox.variables.EXPIRATION_TIMESTAMP' OS_LIST = None def __init__(self): self.client = docker.from_env() try: ...
34.411215
171
0.562466
4a1875952dba552526f6af01c0c1c9d6b317ca90
2,363
py
Python
AtCoder/ABC120/D.py
takaaki82/Java-Lessons
c4f11462bf84c091527dde5f25068498bfb2cc49
[ "MIT" ]
1
2018-11-25T04:15:45.000Z
2018-11-25T04:15:45.000Z
AtCoder/ABC120/D.py
takaaki82/Java-Lessons
c4f11462bf84c091527dde5f25068498bfb2cc49
[ "MIT" ]
null
null
null
AtCoder/ABC120/D.py
takaaki82/Java-Lessons
c4f11462bf84c091527dde5f25068498bfb2cc49
[ "MIT" ]
2
2018-08-08T13:01:14.000Z
2018-11-25T12:38:36.000Z
class UnionFind: def __init__(self, n): self.parent = [i for i in range(n + 1)] self.rank = [0 for _ in range(n + 1)] self.size = [1] * (n + 1) self.group = [[i] for i in range(n + 1)] def find(self, x): # If x is root if self.parent[x] == x: return x...
25.138298
90
0.499365
4a187603b24ee331d8e6aef0f742871b1b3c7773
4,017
py
Python
ceilometer/compute/pollsters/cpu.py
orbitfp7/ceilometer
9905da14bbdf06f95e1e056c9ca0e18087214d0f
[ "Apache-2.0" ]
null
null
null
ceilometer/compute/pollsters/cpu.py
orbitfp7/ceilometer
9905da14bbdf06f95e1e056c9ca0e18087214d0f
[ "Apache-2.0" ]
null
null
null
ceilometer/compute/pollsters/cpu.py
orbitfp7/ceilometer
9905da14bbdf06f95e1e056c9ca0e18087214d0f
[ "Apache-2.0" ]
null
null
null
# # Copyright 2012 eNovance <licensing@enovance.com> # Copyright 2012 Red Hat, Inc # # Author: Julien Danjou <julien@danjou.info> # Author: Eoghan Glynn <eglynn@redhat.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obta...
44.633333
76
0.599452
4a18772015815aa5631960d25377c329547130d4
1,104
py
Python
piks/crypt.py
peitur/pikstore
4adec308dcf5cc358398f9750e2c24d7d89a2e28
[ "MIT" ]
1
2019-09-02T19:12:30.000Z
2019-09-02T19:12:30.000Z
piks/crypt.py
peitur/pikstore
4adec308dcf5cc358398f9750e2c24d7d89a2e28
[ "MIT" ]
null
null
null
piks/crypt.py
peitur/pikstore
4adec308dcf5cc358398f9750e2c24d7d89a2e28
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os, sys, re import base64 import piks.utils import piks.defaults import piks.validate import piks.runner from Crypto.PublicKey import RSA from pprint import pprint class CryptRSA( object ): def __init__( self, **opt ): self._debug = False self._pem = "\n".join( ...
22.530612
102
0.63587
4a187767d2ac815ad11eec2d0a9e2d78598d1871
2,076
py
Python
tests/python/gaiatest/tests/unit/test_initial_state.py
rillian/gaia
45d1cc1b8365db192ff28a9405406ab0a2cb3910
[ "Apache-2.0" ]
3
2015-08-31T15:24:31.000Z
2020-04-24T20:31:29.000Z
tests/python/gaiatest/tests/unit/test_initial_state.py
rillian/gaia
45d1cc1b8365db192ff28a9405406ab0a2cb3910
[ "Apache-2.0" ]
null
null
null
tests/python/gaiatest/tests/unit/test_initial_state.py
rillian/gaia
45d1cc1b8365db192ff28a9405406ab0a2cb3910
[ "Apache-2.0" ]
3
2015-07-29T07:17:15.000Z
2020-11-04T06:55:37.000Z
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from gaiatest import GaiaTestCase class TestInitialState(GaiaTestCase): homescreen_frame_locator = ('css selector...
34.6
95
0.675819
4a1877dc628ddd2dbfeb318c1f448bab1b1326ff
14,977
py
Python
Leonard_Jones.py
copl-labomc/nanocompositeMD
53ae8549d1f1acd01986dee5d853f49511174780
[ "MIT" ]
null
null
null
Leonard_Jones.py
copl-labomc/nanocompositeMD
53ae8549d1f1acd01986dee5d853f49511174780
[ "MIT" ]
null
null
null
Leonard_Jones.py
copl-labomc/nanocompositeMD
53ae8549d1f1acd01986dee5d853f49511174780
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Feb 11 13:37:22 2021 @author: franc """ import pandas as pd import math import os import matplotlib.pyplot as plt plt.style.use('seaborn-whitegrid') import numpy as np from PIL import Image import glob import moviepy.editor as mp from datetime import datetime import time cla...
28.419355
130
0.585765
4a18782725d2713cfc6aa8d4916a5548b06a6cf6
14,147
py
Python
datalad/cmdline/tests/test_main.py
courtois-neuromod/datalad
b8357e90469a6b344d270e3dc1761bc17ea9bbdf
[ "MIT" ]
null
null
null
datalad/cmdline/tests/test_main.py
courtois-neuromod/datalad
b8357e90469a6b344d270e3dc1761bc17ea9bbdf
[ "MIT" ]
null
null
null
datalad/cmdline/tests/test_main.py
courtois-neuromod/datalad
b8357e90469a6b344d270e3dc1761bc17ea9bbdf
[ "MIT" ]
null
null
null
# emacs: -*- mode: python-mode; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## #...
36.46134
102
0.61179
4a187921734a2b4ca52b6b482f47a91268ca48b2
802
py
Python
problem_23.py
MasterScott/project-euler
643df8258bf9ac84b14b648a3a5a254bc682c473
[ "MIT" ]
null
null
null
problem_23.py
MasterScott/project-euler
643df8258bf9ac84b14b648a3a5a254bc682c473
[ "MIT" ]
null
null
null
problem_23.py
MasterScott/project-euler
643df8258bf9ac84b14b648a3a5a254bc682c473
[ "MIT" ]
1
2019-10-28T23:33:46.000Z
2019-10-28T23:33:46.000Z
from math import sqrt from time import time abundant = non_sum_ab = set() def is_prime(n): for i in range(3, int(sqrt(n))+1): if n % i == 0: return False return True def div_sum(n): if is_prime(n): return 1 s = 1 forward = 2 backward = n while forward < back...
18.227273
56
0.548628
4a187985cf220ac47ba6709d1de2feb72b0d628e
4,198
py
Python
yampy/client.py
PhracturedBlue/yampy2
a98ac137b38c5a0f3f4b1e6fec89673caec36ef4
[ "Apache-2.0" ]
null
null
null
yampy/client.py
PhracturedBlue/yampy2
a98ac137b38c5a0f3f4b1e6fec89673caec36ef4
[ "Apache-2.0" ]
null
null
null
yampy/client.py
PhracturedBlue/yampy2
a98ac137b38c5a0f3f4b1e6fec89673caec36ef4
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Microsoft Corporation # 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 # # THIS CODE IS PROVIDED *AS IS*...
33.31746
79
0.638876
4a1879cd403e31df46a9e11530733f3baf42c85f
24,675
py
Python
jacket/tests/compute/unit/objects/test_compute_node.py
bopopescu/jacket
d7ad3147fcb43131098c2a5210847634ff5fb325
[ "Apache-2.0" ]
null
null
null
jacket/tests/compute/unit/objects/test_compute_node.py
bopopescu/jacket
d7ad3147fcb43131098c2a5210847634ff5fb325
[ "Apache-2.0" ]
null
null
null
jacket/tests/compute/unit/objects/test_compute_node.py
bopopescu/jacket
d7ad3147fcb43131098c2a5210847634ff5fb325
[ "Apache-2.0" ]
2
2016-08-10T02:21:49.000Z
2020-07-24T01:57:21.000Z
# Copyright 2013 IBM Corp. # # 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 agree...
44.379496
83
0.669139
4a187a5caccb97ea31c6ddc607a3c7583d694d9f
1,785
py
Python
PyPoE/shared/config/__init__.py
Gloorf/PyPoE
23e60e0914a1a669764a552f762d2b2064203e75
[ "MIT" ]
247
2015-07-06T19:39:11.000Z
2022-03-30T13:11:03.000Z
PyPoE/shared/config/__init__.py
Gloorf/PyPoE
23e60e0914a1a669764a552f762d2b2064203e75
[ "MIT" ]
121
2015-09-01T23:50:22.000Z
2021-08-23T21:06:47.000Z
PyPoE/shared/config/__init__.py
Gloorf/PyPoE
23e60e0914a1a669764a552f762d2b2064203e75
[ "MIT" ]
109
2015-09-09T06:37:56.000Z
2022-03-20T16:06:33.000Z
""" Utilities for config handling Overview =============================================================================== +----------+------------------------------------------------------------------+ | Path | PyPoE/shared/config/__init__.py | +----------+-----------------------...
35
79
0.129412
4a187a6ed7bfc07aa23d792cc76a566d31242681
1,583
py
Python
server/app/auth/__init__.py
adrien1018/app
fc312b1e8695968084e35e3bfd9d476ee0e245d6
[ "MIT" ]
1
2021-01-08T20:33:32.000Z
2021-01-08T20:33:32.000Z
server/app/auth/__init__.py
adrien1018/app
fc312b1e8695968084e35e3bfd9d476ee0e245d6
[ "MIT" ]
null
null
null
server/app/auth/__init__.py
adrien1018/app
fc312b1e8695968084e35e3bfd9d476ee0e245d6
[ "MIT" ]
null
null
null
import functools import typing from typing import Optional import werkzeug.wrappers from flask import request, make_response from ..db import session from ..db import project from ..db import user request = typing.cast(werkzeug.wrappers.Request, request) def get_session() -> session.Session: session_id = reque...
21.684932
89
0.644978
4a187b188c7f50360fd1f2fa4053a3f866dd4cb9
2,810
py
Python
Tools/LyTestTools/ly_test_tools/_internal/managers/platforms/mac.py
Shorotshishir/o3de
b0c522be5196a7166cb6f13d3ddf8dae75ef06c1
[ "Apache-2.0", "MIT" ]
1
2021-08-11T02:20:46.000Z
2021-08-11T02:20:46.000Z
Tools/LyTestTools/ly_test_tools/_internal/managers/platforms/mac.py
RoddieKieley/o3de
e804fd2a4241b039a42d9fa54eaae17dc94a7a92
[ "Apache-2.0", "MIT" ]
null
null
null
Tools/LyTestTools/ly_test_tools/_internal/managers/platforms/mac.py
RoddieKieley/o3de
e804fd2a4241b039a42d9fa54eaae17dc94a7a92
[ "Apache-2.0", "MIT" ]
null
null
null
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT Inside this module are 2 classes used for Mac directory & workspace mappings: 1. _MacResourceLocator(AbstractResour...
33.058824
106
0.677224
4a187c7f378e1932eebd051bd03148ea25edc6ba
325
py
Python
ci/on-master.py
ya-goodfella/mill
4231c15442cf65ddd936e724ad59e48549a57d51
[ "MIT" ]
null
null
null
ci/on-master.py
ya-goodfella/mill
4231c15442cf65ddd936e724ad59e48549a57d51
[ "MIT" ]
null
null
null
ci/on-master.py
ya-goodfella/mill
4231c15442cf65ddd936e724ad59e48549a57d51
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os, sys, subprocess is_master_commit = ( os.environ["TRAVIS_PULL_REQUEST"] == "false" and os.environ["TRAVIS_REPO_SLUG"] == "lihaoyi/mill" and (os.environ["TRAVIS_BRANCH"] == "master" or os.environ["TRAVIS_TAG"] != "") ) if is_master_commit: subprocess.check_call(sys.argv[...
27.083333
79
0.683077
4a187da98ba987e90d811d47a1c525bc6de89b29
1,696
py
Python
_scripts/makedevel.py
Son-Guhun/Titan-Land-Lands-of-Plenty
edeca1d5437a7397195799ebf4b9585ee4609fed
[ "MIT" ]
12
2019-05-27T16:02:28.000Z
2021-01-08T09:32:08.000Z
_scripts/makedevel.py
Son-Guhun/Titan-Land-Lands-of-Plenty
edeca1d5437a7397195799ebf4b9585ee4609fed
[ "MIT" ]
209
2019-04-06T15:16:52.000Z
2021-07-03T02:11:53.000Z
_scripts/makedevel.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. """ try: from myconfigparser import UnitParser, load_unit_data except: from .myconfigparser import UnitParser, load_unit_data dataBase = '../devel/table/unit.ini' ...
27.803279
94
0.629717
4a187e92122887c452be8f96e591e781443dabc6
6,650
py
Python
presets.py
charlesbrown502/CloneBot
6dfba04afbdf0fee9e3ae2caad66117f94122904
[ "MIT" ]
null
null
null
presets.py
charlesbrown502/CloneBot
6dfba04afbdf0fee9e3ae2caad66117f94122904
[ "MIT" ]
null
null
null
presets.py
charlesbrown502/CloneBot
6dfba04afbdf0fee9e3ae2caad66117f94122904
[ "MIT" ]
null
null
null
# ----------------------------------- https://github.com/m4mallu/clonebot --------------------------------------------# class Presets(object): START_TEXT = """ 𝙃𝙚𝙡𝙡𝙤... {} 𝐼 𝑐𝑎𝑛 𝑐𝑙𝑜𝑛𝑒 𝑚𝑒𝑑𝑖𝑎 𝑓𝑟𝑜𝑚 𝑎𝑛𝑦 𝑐ℎ𝑎𝑡 𝑡𝑜 𝑦𝑜𝑢𝑟 𝑝𝑒𝑟𝑠𝑜𝑛𝑎𝑙 𝑐ℎ𝑎𝑡 ! 𝐶𝑙𝑖𝑐𝑘 𝑠𝑒𝑡𝑡𝑖𝑛𝑔𝑠 𝑡𝑜 𝑐𝑜𝑛𝑓�...
43.464052
148
0.567368
4a187f99b6e2582c2351fe9ff368dad76ef168ca
3,731
py
Python
mythril/analysis/module/modules/delegatecall.py
marcuswin/mythril
27f3693de6e98890db27a258227db58b11566f4c
[ "MIT" ]
null
null
null
mythril/analysis/module/modules/delegatecall.py
marcuswin/mythril
27f3693de6e98890db27a258227db58b11566f4c
[ "MIT" ]
null
null
null
mythril/analysis/module/modules/delegatecall.py
marcuswin/mythril
27f3693de6e98890db27a258227db58b11566f4c
[ "MIT" ]
null
null
null
"""This module contains the detection code for insecure delegate call usage.""" import logging from typing import List from mythril.analysis.potential_issues import ( get_potential_issues_annotation, PotentialIssue, ) from mythril.analysis.swc_data import DELEGATECALL_TO_UNTRUSTED_CONTRACT from mythril.laser.e...
35.875
115
0.638971
4a18807e8658851024c96347bf2a910a871e13c3
12,297
py
Python
vistrails/packages/persistent_archive/widgets.py
remram44/VisTrails-mybinder
ee7477b471920d738f3ac430932f01901b56ed44
[ "BSD-3-Clause" ]
83
2015-01-05T14:50:50.000Z
2021-09-17T19:45:26.000Z
vistrails/packages/persistent_archive/widgets.py
remram44/VisTrails-mybinder
ee7477b471920d738f3ac430932f01901b56ed44
[ "BSD-3-Clause" ]
254
2015-01-02T20:39:19.000Z
2018-11-28T17:16:44.000Z
vistrails/packages/persistent_archive/widgets.py
remram44/VisTrails-mybinder
ee7477b471920d738f3ac430932f01901b56ed44
[ "BSD-3-Clause" ]
40
2015-04-17T16:46:36.000Z
2021-09-28T22:43:24.000Z
############################################################################### ## ## Copyright (C) 2014-2016, New York University. ## Copyright (C) 2013-2014, NYU-Poly. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## "Redistribution and use in source and binary for...
37.490854
79
0.622428
4a1880e04c36035d3f613dc0c00883a7f65e0cd3
50,020
py
Python
core_tools/drivers/M3102A.py
peendebak/core_tools
2e43edf0bbc1d7ceb7042559db499535e8f6a076
[ "BSD-2-Clause" ]
1
2022-02-11T09:24:35.000Z
2022-02-11T09:24:35.000Z
core_tools/drivers/M3102A.py
peendebak/core_tools
2e43edf0bbc1d7ceb7042559db499535e8f6a076
[ "BSD-2-Clause" ]
null
null
null
core_tools/drivers/M3102A.py
peendebak/core_tools
2e43edf0bbc1d7ceb7042559db499535e8f6a076
[ "BSD-2-Clause" ]
2
2020-07-06T14:31:27.000Z
2021-07-07T13:57:19.000Z
from qcodes import Instrument, MultiParameter from dataclasses import dataclass from typing import Optional import warnings import logging import time import copy from si_prefix import si_format try: import keysightSD1 except: warnings.warn("\nM3102A needs Keysight AWG libraries. Please install if you need th...
41.892797
156
0.612595
4a1881f0cf06dd1fa2a907e6c746846131d16d5c
9,128
py
Python
ros/src/tl_detector/tl_detector.py
Vincentfangao/CarND-Capstone
4de7fa0c2c58149eea1e3800b06b2c66526a2e11
[ "MIT" ]
null
null
null
ros/src/tl_detector/tl_detector.py
Vincentfangao/CarND-Capstone
4de7fa0c2c58149eea1e3800b06b2c66526a2e11
[ "MIT" ]
10
2020-01-28T22:51:36.000Z
2022-03-11T23:51:55.000Z
ros/src/tl_detector/tl_detector.py
Vincentfangao/CarND-Capstone
4de7fa0c2c58149eea1e3800b06b2c66526a2e11
[ "MIT" ]
1
2019-07-15T03:33:36.000Z
2019-07-15T03:33:36.000Z
#!/usr/bin/env python import rospy from std_msgs.msg import Int32 from geometry_msgs.msg import PoseStamped, Pose from styx_msgs.msg import TrafficLightArray, TrafficLight from styx_msgs.msg import Lane from sensor_msgs.msg import Image from cv_bridge import CvBridge from light_classification.tl_classifier import TLCla...
36.955466
132
0.629163
4a18828075d52409f7a8a4268c4599d7ec4b0e59
357
py
Python
tests/test_client_regress/models.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
16
2019-08-10T12:24:06.000Z
2020-05-21T09:11:14.000Z
tests/test_client_regress/models.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
12
2019-08-10T11:55:29.000Z
2020-05-21T04:46:30.000Z
tests/test_client_regress/models.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
3
2019-08-20T13:29:34.000Z
2020-01-30T22:05:10.000Z
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager from django.db import models class CustomUser(AbstractBaseUser): email = models.EmailField(verbose_name="email address", max_length=255, unique=True) custom_objects = BaseUserManager() USERNAME_FIELD = "email" class Meta: ...
27.461538
88
0.761905
4a1883291c1f7625de8f92ca51b8443426d26a9a
6,195
py
Python
shade/tests/functional/test_volume.py
noironetworks/shade
e46878bae44e7daebf32c0aeaeffea0011542525
[ "Apache-2.0" ]
null
null
null
shade/tests/functional/test_volume.py
noironetworks/shade
e46878bae44e7daebf32c0aeaeffea0011542525
[ "Apache-2.0" ]
null
null
null
shade/tests/functional/test_volume.py
noironetworks/shade
e46878bae44e7daebf32c0aeaeffea0011542525
[ "Apache-2.0" ]
null
null
null
# 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, software # distributed under t...
40.756579
79
0.616303
4a1883ef6220bfcd211bdc4224b2da29f2cf1d99
1,116
py
Python
main/Model.py
RaminMammadzada/wc-product-list-generator
0ed415871fd6e4fd02e763ab0eec9a4094e14842
[ "MIT" ]
15
2020-06-30T05:02:05.000Z
2021-08-10T08:15:17.000Z
main/Model.py
RaminMammadzada/wc-product-list-generator
0ed415871fd6e4fd02e763ab0eec9a4094e14842
[ "MIT" ]
null
null
null
main/Model.py
RaminMammadzada/wc-product-list-generator
0ed415871fd6e4fd02e763ab0eec9a4094e14842
[ "MIT" ]
null
null
null
class Model(object): def __init__(self, modelID, designedYear="2020"): self.factory = "" self.designedYear = designedYear self.modelID = modelID self.price = "" self.season = "" self.style = "" self.rubberType = "" def setModelID(self, modelID): ...
21.461538
53
0.601254
4a1885f2c594fafa5f9634c9a5678724c9a0e163
20,319
py
Python
satchmo/apps/tax/modules/us_sst/models.py
predatell/satchmo
6ced1f845aadec240c7e433c3cbf4caca96e0d92
[ "BSD-3-Clause" ]
null
null
null
satchmo/apps/tax/modules/us_sst/models.py
predatell/satchmo
6ced1f845aadec240c7e433c3cbf4caca96e0d92
[ "BSD-3-Clause" ]
null
null
null
satchmo/apps/tax/modules/us_sst/models.py
predatell/satchmo
6ced1f845aadec240c7e433c3cbf4caca96e0d92
[ "BSD-3-Clause" ]
null
null
null
# coding=UTF-8 from django.db import models from django.utils.translation import ugettext, ugettext_lazy as _ from django.utils.encoding import python_2_unicode_compatible from product.models import TaxClass from l10n.models import AdminArea, Country #from satchmo_store.shop.models import Order #from satchmo_store.sho...
48.726619
145
0.679216
4a18860c2a5bca602fedb931f45e765f1a1ad93d
15,399
py
Python
torchlib/datasets/datasets.py
daaiwusheng/ferattention
d0497bfe52db4ed9444482558e031986e5175a4e
[ "MIT" ]
79
2019-03-25T19:37:17.000Z
2022-03-24T03:54:26.000Z
torchlib/datasets/datasets.py
daaiwusheng/ferattention
d0497bfe52db4ed9444482558e031986e5175a4e
[ "MIT" ]
9
2019-05-09T15:48:53.000Z
2021-10-11T06:58:23.000Z
torchlib/datasets/datasets.py
daaiwusheng/ferattention
d0497bfe52db4ed9444482558e031986e5175a4e
[ "MIT" ]
25
2019-04-04T09:30:03.000Z
2021-08-02T15:45:38.000Z
import os import numpy as np import random from collections import namedtuple import torch from pytvision.datasets import utility from pytvision.datasets.imageutl import imageProvide from pytvision.transforms.aumentation import ObjectImageAndLabelTransform, ObjectImageTransform import warnings warnings.filterwarnin...
29.613462
111
0.559062
4a188639447d3a4ce132f3f7bff6e0526f8406dc
1,376
py
Python
agilent_npy2mat.py
uctm/agilent_npy2mat
8f2cad7095dfa635b8d140f10ab92728864d0b00
[ "MIT" ]
null
null
null
agilent_npy2mat.py
uctm/agilent_npy2mat
8f2cad7095dfa635b8d140f10ab92728864d0b00
[ "MIT" ]
null
null
null
agilent_npy2mat.py
uctm/agilent_npy2mat
8f2cad7095dfa635b8d140f10ab92728864d0b00
[ "MIT" ]
null
null
null
import os, tkinter, tkinter.filedialog, tkinter.messagebox import glob import scipy.io import numpy as np import scipy.io def agilent_npy2mat(dirname): ''' Agilent製のオシロスコープを使用するプログラム Get_waveform_data_elegant_VISA_Python で保存されたnpyファイルをMatlabで読み取れるようなデータ形式に変換する プログラム 1つのデータには時間データとセンサデータが含まれているがデ...
29.276596
74
0.678052
4a1886dce2b3e488491853b9b57f3114604dda7a
15,816
py
Python
sdk/python/pulumi_azure_native/containerservice/v20200101/get_managed_cluster.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/containerservice/v20200101/get_managed_cluster.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/containerservice/v20200101/get_managed_cluster.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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, overload from ... import _utilities fro...
41.730871
540
0.677921
4a188719e96e7f63211eb186a14b0f4d58a26f74
6,870
py
Python
pennylane/templates/subroutines/qpe.py
camponogaraviera/pennylane
cacbe6807dcaf264e6f05847df4be8694cccedb2
[ "Apache-2.0" ]
539
2018-11-13T08:45:42.000Z
2020-07-27T18:17:16.000Z
pennylane/templates/subroutines/qpe.py
camponogaraviera/pennylane
cacbe6807dcaf264e6f05847df4be8694cccedb2
[ "Apache-2.0" ]
588
2018-11-14T10:21:47.000Z
2020-07-28T06:27:14.000Z
pennylane/templates/subroutines/qpe.py
camponogaraviera/pennylane
cacbe6807dcaf264e6f05847df4be8694cccedb2
[ "Apache-2.0" ]
165
2018-11-13T18:58:56.000Z
2020-07-27T17:18:17.000Z
# Copyright 2018-2021 Xanadu Quantum Technologies 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...
37.747253
100
0.65575
4a188725678ebe3fba4ae46cdc09212323771b6f
429
py
Python
test/db_test/limit_length.py
AnonymousAuthor2013/PostRec
a1461f716d177e28b96ca29d1398f96b5717c1e1
[ "MIT" ]
2
2019-06-25T02:46:37.000Z
2019-12-02T11:26:16.000Z
test/db_test/limit_length.py
AnonymousAuthor2013/PostRec
a1461f716d177e28b96ca29d1398f96b5717c1e1
[ "MIT" ]
1
2019-07-18T03:45:28.000Z
2019-07-18T03:45:28.000Z
test/db_test/limit_length.py
AnonymousAuthor2013/PostRec
a1461f716d177e28b96ca29d1398f96b5717c1e1
[ "MIT" ]
4
2019-06-23T13:49:07.000Z
2019-06-25T12:21:59.000Z
import argparse parser = argparse.ArgumentParser() parser.add_argument('--file', type=str, required=True) parser.add_argument('--length', type=int, default=510) args = parser.parse_args() with open(args.file, "r", encoding="utf-8") as f: results=map(lambda line: " ".join(line.split()[:args.length])+"\n", f) ...
30.642857
80
0.67366
4a188752932e557503257c67582ce456e5254162
578
py
Python
automationBeamNgExportFix/get_files.py
jonpecar/automationBeamNgExportFix
ffb4a1cc02213190631c10044d8e157304750651
[ "MIT" ]
null
null
null
automationBeamNgExportFix/get_files.py
jonpecar/automationBeamNgExportFix
ffb4a1cc02213190631c10044d8e157304750651
[ "MIT" ]
null
null
null
automationBeamNgExportFix/get_files.py
jonpecar/automationBeamNgExportFix
ffb4a1cc02213190631c10044d8e157304750651
[ "MIT" ]
null
null
null
from genericpath import isfile from os import path, getenv, stat, listdir BEAMNG_VER = '0.24' BEAMNG_USER_PATH = path.join(getenv('LOCALAPPDATA'), 'BeamNG.drive', BEAMNG_VER, 'mods') def get_files_sorted(): files = [] for file in listdir(BEAMNG_USER_PATH): file_path = path.join(BEAMNG_USER_PATH, file...
32.111111
88
0.657439
4a188760b8db4efd8fe8f979b3acfc4fde58045a
14,613
py
Python
src/main.py
racai-ai/RNER
272b32f23c9c2e8948436bf39f1b3c809e1ba3f7
[ "MIT" ]
null
null
null
src/main.py
racai-ai/RNER
272b32f23c9c2e8948436bf39f1b3c809e1ba3f7
[ "MIT" ]
null
null
null
src/main.py
racai-ai/RNER
272b32f23c9c2e8948436bf39f1b3c809e1ba3f7
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import argparse import csv import json import logging import os import random import sys import numpy as np import torch import torch.nn.functional as F from pytorch_transformers import AdamW, WarmupLinearSchedule from torch import nn from torch.utils.d...
40.932773
188
0.603572
4a188791d3f1a31a1ec569e93b0430a5939e12b0
426
py
Python
pypro/videos/models/model_video.py
rodrigoddc/django-advanced-course
098507d8111f38f8a6b914575e50861538913f6c
[ "MIT" ]
1
2020-06-30T01:30:31.000Z
2020-06-30T01:30:31.000Z
pypro/videos/models/model_video.py
rodrigoddc/django-advanced-course
098507d8111f38f8a6b914575e50861538913f6c
[ "MIT" ]
102
2020-06-30T01:03:27.000Z
2021-09-22T19:26:44.000Z
pypro/videos/models/model_video.py
rodrigoddc/django-advanced-course
098507d8111f38f8a6b914575e50861538913f6c
[ "MIT" ]
null
null
null
from django.db import models from django.urls import reverse class Video(models.Model): title = models.CharField(max_length=32) slug = models.SlugField(max_length=32) vimeo_id = models.CharField(max_length=32) created_at = models.DateField(auto_now_add=True) def __str__(self): return self...
26.625
65
0.71831
4a1887fb4402786ecffaf98e37ce4f734fcfeddc
743
py
Python
rozpoznawaczek/__init__.py
GrosQuildu/agh_nlp_diminutives_recognition
28ba8ec92db256dde0adfcee40e03271e76862fd
[ "MIT" ]
null
null
null
rozpoznawaczek/__init__.py
GrosQuildu/agh_nlp_diminutives_recognition
28ba8ec92db256dde0adfcee40e03271e76862fd
[ "MIT" ]
null
null
null
rozpoznawaczek/__init__.py
GrosQuildu/agh_nlp_diminutives_recognition
28ba8ec92db256dde0adfcee40e03271e76862fd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tool for recognizing diminutives in a text. Example: L.setLevel('INFO') text = 'A potem gorzki los tych niewiniątek\nWiędnąć na włosach i sercach dziewczątek;' print([text[start:end] for start, end in find_diminutives(text)]) Authors: * Izabela ...
33.772727
106
0.628533