hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
670452b80f4a4923b00927b3d39770582eb6ad21
908
py
Python
py/get_balance.py
parinya-ekparinya/ethereump-testbed-setup
06fa2a95b6cfb076ac05c71b128ec91150a3fafa
[ "Apache-2.0" ]
null
null
null
py/get_balance.py
parinya-ekparinya/ethereump-testbed-setup
06fa2a95b6cfb076ac05c71b128ec91150a3fafa
[ "Apache-2.0" ]
null
null
null
py/get_balance.py
parinya-ekparinya/ethereump-testbed-setup
06fa2a95b6cfb076ac05c71b128ec91150a3fafa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import argparse from ethjsonrpc import EthJsonRpc ETH_PORT = 8545 def parseRpcAddr(rpcaddr): if rpcaddr.find(":") != -1: s = rpcaddr.split(":") netaddr = s[0] port = int(s[1]) else: netaddr = rpcaddr port = ETH_PORT return (netaddr, port) if __na...
25.942857
100
0.637665
c540cde3cfe856afc6dcc6e35952cde06bf1eb1a
1,902
py
Python
lib/common.py
HumanCellAtlas/metadata-migration
a6127195be420f55a3b5321cc68434fc55ed0487
[ "MIT" ]
null
null
null
lib/common.py
HumanCellAtlas/metadata-migration
a6127195be420f55a3b5321cc68434fc55ed0487
[ "MIT" ]
null
null
null
lib/common.py
HumanCellAtlas/metadata-migration
a6127195be420f55a3b5321cc68434fc55ed0487
[ "MIT" ]
null
null
null
from enum import Enum class MigrationDirection(Enum): DOWNGRADE = 1 UPGRADE = 2 class Strategy(Enum): EXACT = 1 BEST_EFFORT = 2 class SchemaRef: def __init__(self, url_string): self.url_string = url_string self.base_url, self.high_level_entity, self.domain_entity, self.version...
27.171429
120
0.639853
0c73d4a2f8a1d01a1879c3a39b489540703b7bfe
7,899
py
Python
backend/mobileapp_33158/settings.py
crowdbotics-apps/mobileapp-33158
bd10747bb3f5545f2d5283a8ff0aac348471621d
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/mobileapp_33158/settings.py
crowdbotics-apps/mobileapp-33158
bd10747bb3f5545f2d5283a8ff0aac348471621d
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/mobileapp_33158/settings.py
crowdbotics-apps/mobileapp-33158
bd10747bb3f5545f2d5283a8ff0aac348471621d
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" Django settings for mobileapp_33158 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impo...
30.380769
112
0.736802
0b7d7ccae6416758d9a75177fddffa57c9d9de2d
1,103
py
Python
temp/demo.py
Rabmelon/tiSPHi
8ffb0e505edd01cb31cb049bfe54f1f2b99cf121
[ "MIT" ]
5
2022-01-03T12:14:34.000Z
2022-02-11T01:22:52.000Z
temp/demo.py
Rabmelon/taichiCourse01_tiSPHi
8ffb0e505edd01cb31cb049bfe54f1f2b99cf121
[ "MIT" ]
null
null
null
temp/demo.py
Rabmelon/taichiCourse01_tiSPHi
8ffb0e505edd01cb31cb049bfe54f1f2b99cf121
[ "MIT" ]
null
null
null
import taichi as ti import numpy as np from particle_system import * from wcsph import * # ti.init(arch=ti.cpu) # Use GPU for higher peformance if available ti.init(arch=ti.gpu, device_memory_GB=3, packed=True) if __name__ == "__main__": ps = ParticleSystem((512, 512)) ps.add_cube(lower_corner=[6, 2], ...
29.026316
79
0.558477
9285cc3aec32c764f0a2c1f0c4c324ee9522c8bd
990
py
Python
string_module/String_Concatenation.py
kenwaldek/python
e6aaf5616a456a4fb91889c0617bd6511f1a223e
[ "MIT" ]
1
2019-02-24T09:57:16.000Z
2019-02-24T09:57:16.000Z
string_module/String_Concatenation.py
kenwaldek/python
e6aaf5616a456a4fb91889c0617bd6511f1a223e
[ "MIT" ]
null
null
null
string_module/String_Concatenation.py
kenwaldek/python
e6aaf5616a456a4fb91889c0617bd6511f1a223e
[ "MIT" ]
4
2017-05-21T15:34:53.000Z
2018-09-25T06:56:15.000Z
#! /usr/bin/env python3 # -*- coding:utf-8 -*- ############################################################### # © kenwaldek MIT-license # # Title: String Concatenation Version: 1.0 # Date: 27-12-16 Language: python3 # Description: String Concatenation s...
25.384615
63
0.525253
53a3fa7c9df8d69bc6dca59e5791aa6f806dd678
22,102
py
Python
beartype_test/a00_unit/data/data_pep563.py
jonathanmorley/beartype
0d1207210220807d5c5848033d13657afa307983
[ "MIT" ]
null
null
null
beartype_test/a00_unit/data/data_pep563.py
jonathanmorley/beartype
0d1207210220807d5c5848033d13657afa307983
[ "MIT" ]
null
null
null
beartype_test/a00_unit/data/data_pep563.py
jonathanmorley/beartype
0d1207210220807d5c5848033d13657afa307983
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # --------------------( LICENSE )-------------------- # Copyright (c) 2014-2021 Beartype authors. # See "LICENSE" for further details. ''' **Beartype** `PEP 563`_ **data submodule.** This submodule exercises `PEP 563`_ support implemented in the :func:`beartype.beartyp...
55.117207
447
0.698489
b93eea6fa5488e08859ab30a90293846ab6e100a
1,318
py
Python
neslter/qaqc/utils.py
WHOIGit/nes-lter-ims
d4cc96c10da56ca33286af84d669625b67170522
[ "MIT" ]
3
2019-01-24T16:32:50.000Z
2021-11-05T02:18:12.000Z
neslter/qaqc/utils.py
WHOIGit/nes-lter-ims
d4cc96c10da56ca33286af84d669625b67170522
[ "MIT" ]
45
2019-05-23T15:15:32.000Z
2022-03-15T14:09:20.000Z
neslter/qaqc/utils.py
WHOIGit/nes-lter-ims
d4cc96c10da56ca33286af84d669625b67170522
[ "MIT" ]
null
null
null
import numexpr def evaluate_expression(df, expression, col_map={}): """evaluates a numexpr expression using variables named after columns in the dataframe. you can use variable names that differ from the column names by specifying the mapping in col_map. For example df = pd.DataFrame({ 'foobar'...
36.611111
75
0.672231
64cead63d8e7786cf097e11c5b4231dc1dbccaa9
6,363
py
Python
scraper/scraper.py
Copper-Head/revacom-time-tracking
da9c579950702fc9b97075397cd542f82baaa144
[ "MIT" ]
null
null
null
scraper/scraper.py
Copper-Head/revacom-time-tracking
da9c579950702fc9b97075397cd542f82baaa144
[ "MIT" ]
null
null
null
scraper/scraper.py
Copper-Head/revacom-time-tracking
da9c579950702fc9b97075397cd542f82baaa144
[ "MIT" ]
null
null
null
"""Provides code to scrape tt.revacom.com and process results into a CSV file.""" import csv import logging from datetime import date, datetime import os import json from calendar import Calendar from collections import namedtuple from itertools import chain, takewhile from functools import partial import requests fro...
31.815
100
0.661952
3c25be59cae747a922fb200c4195c91e32d81ef0
1,149
py
Python
vmapper/utils/process_points.py
wcchin/mappy
38015bfc58d39552939d36e0e7eaa696ddbb2c5c
[ "MIT" ]
2
2017-06-10T13:19:58.000Z
2017-06-25T18:09:04.000Z
vmapper/utils/process_points.py
wcchin/vmapper
38015bfc58d39552939d36e0e7eaa696ddbb2c5c
[ "MIT" ]
null
null
null
vmapper/utils/process_points.py
wcchin/vmapper
38015bfc58d39552939d36e0e7eaa696ddbb2c5c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from Layer import Layer from vmapper import geometry as geom def process_points(layername, geoms, indexes, radius=2., labels=None, colors=None, opacitys=None, edgecolors=None, edgewidths=None, radiuses=None, showlabel=False, animate_times=None): alayer = Layer(layername=layername) geom...
38.3
207
0.617929
e4ad34c07ac0c8bda34996a9cdc75b9de0d1638b
4,751
py
Python
src/full_node/sync_blocks_processor.py
fakecoinbase/Chia-Networkslashchia-blockchain
84e6a4da18fb0a790a870cbd516f13c9bc7f0716
[ "Apache-2.0" ]
1
2021-04-12T09:10:51.000Z
2021-04-12T09:10:51.000Z
src/full_node/sync_blocks_processor.py
mariano54/chia-blockchain
c6241d2fa6fe415876d3b40376fb882276611fa7
[ "Apache-2.0" ]
1
2022-03-25T19:10:51.000Z
2022-03-25T19:10:51.000Z
src/full_node/sync_blocks_processor.py
fakecoinbase/Chia-Networkslashchia-blockchain
84e6a4da18fb0a790a870cbd516f13c9bc7f0716
[ "Apache-2.0" ]
null
null
null
import asyncio import concurrent import logging import time from typing import Optional from src.full_node.blockchain import Blockchain, ReceiveBlockResult from src.full_node.sync_store import SyncStore from src.types.full_block import FullBlock from src.util.errors import ConsensusError from src.util.ints import uint...
37.706349
103
0.551463
38d519fb3c6efb73259191776f2a037a80d4ba68
11,002
py
Python
tests/models/test_gpu.py
karlinjf/pytorch-lightning
831842972f7e2d25ae3a376d5584748c3054f899
[ "Apache-2.0" ]
1
2020-05-07T15:15:40.000Z
2020-05-07T15:15:40.000Z
tests/models/test_gpu.py
karlinjf/pytorch-lightning
831842972f7e2d25ae3a376d5584748c3054f899
[ "Apache-2.0" ]
null
null
null
tests/models/test_gpu.py
karlinjf/pytorch-lightning
831842972f7e2d25ae3a376d5584748c3054f899
[ "Apache-2.0" ]
null
null
null
import os import pytest import torch import tests.base.utils as tutils from pytorch_lightning import Trainer from pytorch_lightning.callbacks import ModelCheckpoint from pytorch_lightning.core import memory from pytorch_lightning.trainer.distrib_parts import parse_gpu_ids, determine_root_gpu_device from pytorch_light...
35.605178
106
0.700145
2644e167efaf0d707a87b77344a5abd7429f50e4
2,654
py
Python
network.py
ZaydH/trump_char_rnn
dbe47ccc239f7a694b2e6ad71f2b8b95a4dc0a9a
[ "BSD-3-Clause" ]
3
2017-12-12T00:18:54.000Z
2019-10-22T15:35:23.000Z
network.py
ZaydH/trump_char_rnn
dbe47ccc239f7a694b2e6ad71f2b8b95a4dc0a9a
[ "BSD-3-Clause" ]
null
null
null
network.py
ZaydH/trump_char_rnn
dbe47ccc239f7a694b2e6ad71f2b8b95a4dc0a9a
[ "BSD-3-Clause" ]
2
2019-02-23T03:24:36.000Z
2020-11-18T17:11:00.000Z
""" network.py Construct RNN for character level text prediction """ import tensorflow as tf import data_parser from feed_forward import setup_feed_forward from basic_config import Config def construct(): """ Trump Neural Network Constructor Builds all layers of the neural network. """ # cre...
31.595238
99
0.641296
4ec7e8978b75f80c74875bef4b2c295679883a3e
539
py
Python
main.py
johangenis/quiz-game-start
54491057aa1cc54600bc2b43c06b1c475e84e196
[ "MIT" ]
null
null
null
main.py
johangenis/quiz-game-start
54491057aa1cc54600bc2b43c06b1c475e84e196
[ "MIT" ]
null
null
null
main.py
johangenis/quiz-game-start
54491057aa1cc54600bc2b43c06b1c475e84e196
[ "MIT" ]
null
null
null
from question_model import Question from data import question_data from quiz_brain import QuizBrain question_bank = [] for question in question_data: question_text = question["question"] question_answer = question["correct_answer"] new_question = Question(question_text, question_answer) question_bank....
26.95
67
0.779221
165e21a0c69dd5db5c9986f6428ebc153d003f33
976
py
Python
mmo_module/text.py
alentoghostflame/StupidAlentoBot
c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba
[ "MIT" ]
1
2021-12-12T02:50:20.000Z
2021-12-12T02:50:20.000Z
mmo_module/text.py
alentoghostflame/StupidAlentoBot
c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba
[ "MIT" ]
17
2020-02-07T23:40:36.000Z
2020-12-22T16:38:44.000Z
mmo_module/text.py
alentoghostflame/StupidAlentoBot
c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba
[ "MIT" ]
null
null
null
INVALID_COMMAND = "Invalid command given." MMO_BRIEF = "User control panel for the MMO feature." MMO_ENABLE_BRIEF = "Enables the user MMO features." MMO_DISABLE_BRIEF = "Disables the user MMO features." MMO_STATUS_BRIEF = "Shows the status of your character." MMO_BATTLE_BRIEF = "Starts a 1v1 against an NPC around your...
51.368421
81
0.797131
5cbecc37ac4ec2efb075c5dc86ccb5ddf8335bbf
135
py
Python
testdata/reexporter/reexporter/subpkg/__init__.py
sourcegraph/python-deps
a7f1b28cc53bfdc3c71f70d0c0f3ae759e68c6f3
[ "BSD-2-Clause" ]
1
2018-06-22T10:13:13.000Z
2018-06-22T10:13:13.000Z
testdata/reexporter/reexporter/subpkg/__init__.py
sourcegraph/python-deps
a7f1b28cc53bfdc3c71f70d0c0f3ae759e68c6f3
[ "BSD-2-Clause" ]
null
null
null
testdata/reexporter/reexporter/subpkg/__init__.py
sourcegraph/python-deps
a7f1b28cc53bfdc3c71f70d0c0f3ae759e68c6f3
[ "BSD-2-Clause" ]
4
2015-04-19T15:59:00.000Z
2020-12-18T11:25:41.000Z
# Django from reexporter.subpkg.foo import * from reexporter.subpkg.foo import bar from reexporter.subpkg.foo import ( baz, blah)
19.285714
37
0.762963
734c72f80cd541a6cf8a5cab6f0d81b56bda9fd4
7,612
py
Python
dataactbroker/scripts/update_historical_duns.py
dael-victoria-reyes/data-act-broker-backend
f83c7cad29cac24d95f45a262710dc1564de7dc1
[ "CC0-1.0" ]
1
2019-06-22T21:53:16.000Z
2019-06-22T21:53:16.000Z
dataactbroker/scripts/update_historical_duns.py
dael-victoria-reyes/data-act-broker-backend
f83c7cad29cac24d95f45a262710dc1564de7dc1
[ "CC0-1.0" ]
null
null
null
dataactbroker/scripts/update_historical_duns.py
dael-victoria-reyes/data-act-broker-backend
f83c7cad29cac24d95f45a262710dc1564de7dc1
[ "CC0-1.0" ]
null
null
null
import logging import boto3 import os import pandas as pd import argparse from datetime import datetime from dataactcore.models.domainModels import DUNS from dataactcore.utils.parentDuns import sam_config_is_valid from dataactcore.utils.duns import load_duns_by_row from dataactvalidator.scripts.loader_utils import cle...
36.772947
119
0.666185
52d27eb99febe6db8e4a9019760a1d7cedd1f9e1
188
py
Python
bot/exts/recruitment/talentpool/__init__.py
hugovk/bot
46d3f877b569a8a6db8a50fbd80ff49c90ba04cf
[ "MIT", "BSD-3-Clause" ]
1,003
2018-11-17T21:10:01.000Z
2022-03-31T22:50:39.000Z
bot/exts/recruitment/talentpool/__init__.py
hugovk/bot
46d3f877b569a8a6db8a50fbd80ff49c90ba04cf
[ "MIT", "BSD-3-Clause" ]
1,474
2018-11-17T10:18:14.000Z
2022-03-31T18:01:39.000Z
bot/exts/recruitment/talentpool/__init__.py
hugovk/bot
46d3f877b569a8a6db8a50fbd80ff49c90ba04cf
[ "MIT", "BSD-3-Clause" ]
771
2018-11-21T08:36:07.000Z
2022-03-31T14:56:39.000Z
from bot.bot import Bot def setup(bot: Bot) -> None: """Load the TalentPool cog.""" from bot.exts.recruitment.talentpool._cog import TalentPool bot.add_cog(TalentPool(bot))
20.888889
63
0.702128
8c90736827cccffb57a4c980969281a2dbc457be
9,867
py
Python
src/autofj/optimizer/autofj_multi_column_greedy_algorithm.py
chu-data-lab/AutomaticFuzzyJoin
2e638b2dd17da41abf5ed71575cea94b1d175ccd
[ "MIT" ]
16
2021-05-06T08:04:16.000Z
2022-01-25T04:19:31.000Z
src/autofj/optimizer/autofj_multi_column_greedy_algorithm.py
chu-data-lab/AutomaticFuzzyJoin
2e638b2dd17da41abf5ed71575cea94b1d175ccd
[ "MIT" ]
1
2022-03-07T15:49:34.000Z
2022-03-07T15:49:34.000Z
src/autofj/optimizer/autofj_multi_column_greedy_algorithm.py
chu-data-lab/AutomaticFuzzyJoin
2e638b2dd17da41abf5ed71575cea94b1d175ccd
[ "MIT" ]
5
2021-09-09T18:41:55.000Z
2022-03-18T11:52:15.000Z
import pandas as pd import numpy as np from multiprocessing import Pool from .autofj_single_column_greedy_algorithm import AutoFJGreedyAlgorithm from ..utils import print_log import os class AutoFJMulticolGreedyAlgorithm(object): """Greedy algorithm for multi-column datasets. Select optimal columns and column ...
37.804598
86
0.585386
2ac575f8c4ce7cfdd0ee6888e3bd8d9c8bdeca3b
5,681
py
Python
features/steps/step_definitions.py
tedivm/dockerpty
f8d17d893c6758b7cc25825e99f6b02202632a97
[ "Apache-2.0" ]
129
2015-01-19T15:02:47.000Z
2022-03-28T07:46:46.000Z
features/steps/step_definitions.py
tedivm/dockerpty
f8d17d893c6758b7cc25825e99f6b02202632a97
[ "Apache-2.0" ]
52
2015-01-01T11:22:23.000Z
2021-03-29T14:11:10.000Z
features/steps/step_definitions.py
tedivm/dockerpty
f8d17d893c6758b7cc25825e99f6b02202632a97
[ "Apache-2.0" ]
71
2015-02-07T16:25:27.000Z
2022-02-06T02:34:18.000Z
# dockerpty: step_definitions.py # # Copyright 2014 Chris Corbyn <chris@w3style.co.uk> # # 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 # # U...
26.179724
89
0.640204
df69c5f522755503f7878d7a300e7d9dc8abdb7a
3,567
py
Python
ml/rl/test/gridworld/gridworld_test_base.py
johncliu/Horizon
cfa7a873ada5de3bb01e78e2f237d9849b8270b2
[ "BSD-3-Clause" ]
null
null
null
ml/rl/test/gridworld/gridworld_test_base.py
johncliu/Horizon
cfa7a873ada5de3bb01e78e2f237d9849b8270b2
[ "BSD-3-Clause" ]
1
2021-08-25T16:13:32.000Z
2021-08-25T16:13:32.000Z
ml/rl/test/gridworld/gridworld_test_base.py
johncliu/Horizon
cfa7a873ada5de3bb01e78e2f237d9849b8270b2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import os import tempfile import unittest from ml.rl.tensorboardX import SummaryWriterContext from ml.rl.test.gridworld.gridworld_base import DISCOUNT from ml.rl.training.ddpg_trainer import DDPGTrainer class GridworldTestBase(unittest.TestCase): def setUp(self): self.check_tolera...
35.67
85
0.578357
77fe8849fb693f820f3273d8590e89cdce04559b
173
py
Python
chaosopenstack/types.py
chaostoolkit-incubator/chaostoolkit-openstack
dfba900a436860009b849535136147fa9bd529c6
[ "Apache-2.0" ]
1
2019-06-11T16:55:04.000Z
2019-06-11T16:55:04.000Z
chaosopenstack/types.py
chaostoolkit-incubator/chaostoolkit-openstack
dfba900a436860009b849535136147fa9bd529c6
[ "Apache-2.0" ]
3
2019-04-10T07:24:42.000Z
2021-12-02T10:57:24.000Z
chaosopenstack/types.py
chaostoolkit-incubator/chaostoolkit-openstack
dfba900a436860009b849535136147fa9bd529c6
[ "Apache-2.0" ]
5
2019-04-10T19:39:10.000Z
2021-09-24T13:45:49.000Z
# -*- coding: utf-8 -*- from typing import Any, Dict __all__ = ["OpenstackResponse"] # really dependent on the type of resource called OpenstackResponse = Dict[str, Any]
19.222222
49
0.716763
b43881c39b9df8866c393aedb50c7efce6930ee1
4,560
py
Python
homeassistant/components/decora/light.py
davyike/core
13cc7583ed5c7de43c56b43db8fdc9879a853666
[ "Apache-2.0" ]
3
2019-10-02T04:40:26.000Z
2020-02-16T13:19:08.000Z
homeassistant/components/decora/light.py
davyike/core
13cc7583ed5c7de43c56b43db8fdc9879a853666
[ "Apache-2.0" ]
9
2022-01-13T13:43:25.000Z
2022-03-31T07:18:48.000Z
homeassistant/components/decora/light.py
davyike/core
13cc7583ed5c7de43c56b43db8fdc9879a853666
[ "Apache-2.0" ]
null
null
null
"""Support for Decora dimmers.""" from __future__ import annotations import copy from functools import wraps import logging import time from bluepy.btle import BTLEException # pylint: disable=import-error import decora # pylint: disable=import-error import voluptuous as vol from homeassistant import util from home...
27.804878
80
0.643421
fe702e0a1d859795f2fb75d8464d1f9765bf133d
10,397
py
Python
nappy/nn/analyze.py
ryokbys/nap
ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804
[ "MIT" ]
27
2015-10-05T06:21:28.000Z
2021-10-04T17:08:23.000Z
nappy/nn/analyze.py
ryokbys/nap
ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804
[ "MIT" ]
4
2020-11-08T12:39:38.000Z
2021-01-10T22:31:36.000Z
nappy/nn/analyze.py
ryokbys/nap
ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804
[ "MIT" ]
4
2015-01-29T23:10:34.000Z
2022-01-08T05:20:13.000Z
#!/bin/env python """ Analyze NN potential with drawing NN structure graph. Usage: analyze.py [options] analyze.py draw [options] Options: -h,--help Show this message and exit. -w Show weight values. [default: False] -t THRESHOLD Threshold value multiplied to max edge for omitting crit...
33.53871
104
0.519958
6c4adcaf4598034a9670bacf6bf97b68dd0b3ce4
1,088
py
Python
content_notes/migrations/0001_initial.py
OpenCanada/website
6334ff412addc0562ac247080194e5d182e8e924
[ "MIT" ]
10
2015-12-18T16:41:33.000Z
2018-11-11T08:36:46.000Z
content_notes/migrations/0001_initial.py
OpenCanada/website
6334ff412addc0562ac247080194e5d182e8e924
[ "MIT" ]
96
2015-07-14T22:45:56.000Z
2017-07-25T19:59:48.000Z
content_notes/migrations/0001_initial.py
OpenCanada/website
6334ff412addc0562ac247080194e5d182e8e924
[ "MIT" ]
9
2015-07-28T14:38:43.000Z
2019-01-04T17:38:42.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import django.db.models.deletion import modelcluster.fields import wagtail.core.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('articles', '0062_auto_20150930_1633'), ] oper...
34
175
0.608456
b1346021c0f86a80d43581defe03917845d51d0e
49,529
py
Python
haruka/modules/translations/Indonesian.py
jarvisbotsavage/groupmanaging
a420cc556347ab947d28d0d736b8aa72680949ff
[ "MIT" ]
null
null
null
haruka/modules/translations/Indonesian.py
jarvisbotsavage/groupmanaging
a420cc556347ab947d28d0d736b8aa72680949ff
[ "MIT" ]
null
null
null
haruka/modules/translations/Indonesian.py
jarvisbotsavage/groupmanaging
a420cc556347ab947d28d0d736b8aa72680949ff
[ "MIT" ]
null
null
null
RUN_STRINGS = ( "Kau pikir mau kemana dirimu?", "Ya? apa? apakah mereka bisa lolos?", "ZZzzZZzz... Hah? Apa? oh, ternyata mereka lagi, jangan dipikirkan.", "Kembali ke sini!", "Tidak begitu cepat...", "Perhatikan kalau ada dinding!", "Jangan tinggalkan aku sendirian dengan mereka!!", "Ka...
57.25896
318
0.71657
a3ef930b8006160f9dfad2785ba4fce5e91a89c3
397
py
Python
superlists/superlists/wsgi.py
ology/TDD-with-Python
6aa89edbc5c69ee22d32f317f853aaa53888aa74
[ "Artistic-2.0" ]
null
null
null
superlists/superlists/wsgi.py
ology/TDD-with-Python
6aa89edbc5c69ee22d32f317f853aaa53888aa74
[ "Artistic-2.0" ]
9
2019-12-04T22:54:17.000Z
2022-02-10T08:45:16.000Z
superlists/superlists/wsgi.py
ology/TDD-with-Python
6aa89edbc5c69ee22d32f317f853aaa53888aa74
[ "Artistic-2.0" ]
1
2020-01-20T12:44:56.000Z
2020-01-20T12:44:56.000Z
""" WSGI config for superlists 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/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
23.352941
78
0.788413
cc583cbb377b85996bbde0b56f9eef1b4b8a02fb
3,933
py
Python
tests/test_runner/test_debug_sql.py
devops2014/djangosite
db77915c9fd35a203edd8206f702ee4082f04d4a
[ "BSD-3-Clause" ]
null
null
null
tests/test_runner/test_debug_sql.py
devops2014/djangosite
db77915c9fd35a203edd8206f702ee4082f04d4a
[ "BSD-3-Clause" ]
null
null
null
tests/test_runner/test_debug_sql.py
devops2014/djangosite
db77915c9fd35a203edd8206f702ee4082f04d4a
[ "BSD-3-Clause" ]
null
null
null
import sys import unittest from django.db import connection from django.test import TestCase from django.test.runner import DiscoverRunner from django.utils import six from .models import Person @unittest.skipUnless(connection.vendor == 'sqlite', 'Only run on sqlite so we can check output SQL.') class TestDebugSQL(...
36.757009
101
0.555301
b9e61fed79c2b4789dec613681d922f49fc7878a
559
py
Python
WebMirror/management/rss_parser_funcs/feed_parse_extractTwomorefreethoughtsCom.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
193
2016-08-02T22:04:35.000Z
2022-03-09T20:45:41.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractTwomorefreethoughtsCom.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
533
2016-08-23T20:48:23.000Z
2022-03-28T15:55:13.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractTwomorefreethoughtsCom.py
rrosajp/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
19
2015-08-13T18:01:08.000Z
2021-07-12T17:13:09.000Z
def extractTwomorefreethoughtsCom(item): ''' Parser for 'twomorefreethoughts.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None tagmap = [ ('PRC', 'PRC', 'translated'), ('Loit...
25.409091
104
0.640429
9b6811b3fa1c9eb467eba2c3dc1262f847dff4c0
4,469
py
Python
venv/lib/python3.6/site-packages/ansible_collections/community/general/plugins/modules/notification/jabber.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
22
2021-07-16T08:11:22.000Z
2022-03-31T07:15:34.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/general/plugins/modules/notification/jabber.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/community/general/plugins/modules/notification/jabber.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
39
2021-07-05T02:31:42.000Z
2022-03-31T02:46:03.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # (c) 2015, Brian Coca <bcoca@ansible.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''' --- module: jabber short_descri...
26.760479
103
0.640412
d51eea49ca0c35aa4c3047acc5c2fee3678ffd13
487
py
Python
bootstrap.py
kerr-huang/blade
a98f35a8bbed13a14213c7c696485b742a13e7aa
[ "BSD-3-Clause" ]
2
2021-06-29T13:42:22.000Z
2021-09-06T10:57:34.000Z
bootstrap.py
kerr-huang/blade
a98f35a8bbed13a14213c7c696485b742a13e7aa
[ "BSD-3-Clause" ]
null
null
null
bootstrap.py
kerr-huang/blade
a98f35a8bbed13a14213c7c696485b742a13e7aa
[ "BSD-3-Clause" ]
5
2021-06-29T13:42:26.000Z
2022-02-08T02:41:34.000Z
# Copyright (c) 2013 Tencent Inc. # All rights reserved. # Author: Feng Chen <phongchen@tencent.com> """This is the entry point to load and run blade package. """ import sys import os.path # Load package from blade.zip or source dir? # blade_path = os.path.abspath(os.path.join(os.path.dirname(__file__), 'blade.zip...
22.136364
84
0.73922
b87900311a39d33afcad5ce2a4cdc31e7dd31de7
507
py
Python
tests/igniter/test_tools.py
simonebarbieri/pype
a6dc83aa1300738749cbe8e5e2e6d2d1794e0289
[ "MIT" ]
null
null
null
tests/igniter/test_tools.py
simonebarbieri/pype
a6dc83aa1300738749cbe8e5e2e6d2d1794e0289
[ "MIT" ]
null
null
null
tests/igniter/test_tools.py
simonebarbieri/pype
a6dc83aa1300738749cbe8e5e2e6d2d1794e0289
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from uuid import uuid4 from igniter.tools import validate_path_string def test_validate_path_string(tmp_path): # test path status1, _ = validate_path_string(tmp_path.as_posix()) assert status1 is True status2, _ = validate_path_string("booo" + str(uuid4())) assert status2 i...
29.823529
60
0.717949
81b787864490af536ec740d3132cbe24b8e17cae
7,528
py
Python
main.py
arodriguez23434/arodriguez_2016_matcutter
06226b0bc15260a3e7aebdb731cd1b70e25e0261
[ "Unlicense" ]
null
null
null
main.py
arodriguez23434/arodriguez_2016_matcutter
06226b0bc15260a3e7aebdb731cd1b70e25e0261
[ "Unlicense" ]
null
null
null
main.py
arodriguez23434/arodriguez_2016_matcutter
06226b0bc15260a3e7aebdb731cd1b70e25e0261
[ "Unlicense" ]
null
null
null
#!/usr/bin/python import math #Initialize list of occupied slices and recieve user input for material specifications ocp_list=list() print("---Sheet Material Slicer and Cost Calculator---") ocp_xmat=float(input("What is the length of the material sheet? ")); ocp_ymat=float(input("What is the width of the material she...
54.158273
178
0.713204
29c2f172eefd6f4563398207d79b147c0f3f4181
18,261
py
Python
deepdoctection/dataflow/custom_serialize.py
deepdoctection/deepdoctection
7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036
[ "Apache-2.0" ]
39
2021-12-14T11:05:25.000Z
2022-03-31T18:50:58.000Z
deepdoctection/dataflow/custom_serialize.py
deepdoctection/deepdoctection
7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036
[ "Apache-2.0" ]
17
2022-01-04T14:32:26.000Z
2022-03-29T14:01:36.000Z
deepdoctection/dataflow/custom_serialize.py
deepdoctection/deepdoctection
7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036
[ "Apache-2.0" ]
4
2022-01-11T16:40:17.000Z
2022-03-30T02:09:55.000Z
# -*- coding: utf-8 -*- # File: custom_serialize.py # Copyright 2021 Dr. Janis Meyer. 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/licen...
36.376494
120
0.606758
e4bd45795ace0530d55af6d5aa40c79351a51967
9,872
py
Python
train_naive.py
simonwey/DecoupleNet
3e9e09d512230cb0d95e9db98c5838ca9ff799da
[ "Apache-2.0" ]
null
null
null
train_naive.py
simonwey/DecoupleNet
3e9e09d512230cb0d95e9db98c5838ca9ff799da
[ "Apache-2.0" ]
null
null
null
train_naive.py
simonwey/DecoupleNet
3e9e09d512230cb0d95e9db98c5838ca9ff799da
[ "Apache-2.0" ]
null
null
null
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Bin Xiao (Bin.Xiao@microsoft.com) # ------------------------------------------------------------------------------ from __future__ import absolute_import from __futu...
35.007092
109
0.5859
354651db8dad6e93e0eea22256455bb4105e04fa
1,321
py
Python
sunbear/version.py
OxfordHED/sunbear
9c7f368c4086f69868e7e5d87ea0b40700610e19
[ "BSD-3-Clause" ]
null
null
null
sunbear/version.py
OxfordHED/sunbear
9c7f368c4086f69868e7e5d87ea0b40700610e19
[ "BSD-3-Clause" ]
null
null
null
sunbear/version.py
OxfordHED/sunbear
9c7f368c4086f69868e7e5d87ea0b40700610e19
[ "BSD-3-Clause" ]
1
2020-08-11T12:40:57.000Z
2020-08-11T12:40:57.000Z
import os import subprocess as sp MAJOR = 0 MINOR = 1 MICRO = 0 ISRELEASED = True VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO) # Return the git revision as a string # taken from numpy/numpy def git_version(): def _minimal_ext_cmd(cmd): # construct minimal environment env = {} for k in ['S...
22.775862
69
0.583649
2dce69d7c75b6029b5863c97e83f1509d2ca1da8
2,815
py
Python
pyccolo/emit_event.py
smacke/pyccolo
58a6ea2b57143fcba37d1f52f7fa4d29c712f336
[ "BSD-3-Clause" ]
65
2022-01-20T09:37:06.000Z
2022-03-08T23:56:36.000Z
pyccolo/emit_event.py
smacke/pyccolo
58a6ea2b57143fcba37d1f52f7fa4d29c712f336
[ "BSD-3-Clause" ]
null
null
null
pyccolo/emit_event.py
smacke/pyccolo
58a6ea2b57143fcba37d1f52f7fa4d29c712f336
[ "BSD-3-Clause" ]
3
2022-01-21T18:16:31.000Z
2022-01-27T09:19:18.000Z
# -*- coding: utf-8 -*- import logging import sys from contextlib import contextmanager from typing import TYPE_CHECKING, List from pyccolo.trace_events import BEFORE_EXPR_EVENTS if TYPE_CHECKING: from pyccolo.tracer import BaseTracer logger = logging.getLogger(__name__) _BEFORE_EXPR_EVENT_NAMES = {evt.value ...
29.322917
85
0.71119
5aeafeb48fc5022b542b81873dc89f8e309bf017
1,850
py
Python
chiadoge/types/unfinished_block.py
Jsewill/chiadogecoin
55511228301a0b4d00c8f4da270be8b434777470
[ "Apache-2.0" ]
2
2021-07-05T14:34:35.000Z
2022-01-01T21:27:52.000Z
chiadoge/types/unfinished_block.py
Jsewill/chiadogecoin
55511228301a0b4d00c8f4da270be8b434777470
[ "Apache-2.0" ]
null
null
null
chiadoge/types/unfinished_block.py
Jsewill/chiadogecoin
55511228301a0b4d00c8f4da270be8b434777470
[ "Apache-2.0" ]
1
2021-07-07T11:08:36.000Z
2021-07-07T11:08:36.000Z
from dataclasses import dataclass from typing import List, Optional from chiadoge.types.blockchain_format.foliage import Foliage, FoliageTransactionBlock, TransactionsInfo from chiadoge.types.blockchain_format.program import SerializedProgram from chiadoge.types.blockchain_format.reward_chain_block import RewardChainB...
43.023256
104
0.794595
b559557340b9855ba7a637f101f096f514aa5d3a
6,811
py
Python
var/spack/repos/builtin/packages/geant4/package.py
wjge/spack
6d9f0262de6269b895673315a1c36c4f6888419e
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/geant4/package.py
wjge/spack
6d9f0262de6269b895673315a1c36c4f6888419e
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-10-19T02:33:37.000Z
2020-10-19T02:33:37.000Z
var/spack/repos/builtin/packages/geant4/package.py
wjge/spack
6d9f0262de6269b895673315a1c36c4f6888419e
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Geant4(CMakePackage): """Geant4 is a toolkit for the simulation of the passage of particle...
42.836478
96
0.622669
7ae1a6b08699d0aa6216ad0a92817646a2528bca
21,112
py
Python
awkward/generate.py
nsmith-/awkward-array
5ee75c2b59049a714e8c7bf3ac2bc0414268abff
[ "BSD-3-Clause" ]
null
null
null
awkward/generate.py
nsmith-/awkward-array
5ee75c2b59049a714e8c7bf3ac2bc0414268abff
[ "BSD-3-Clause" ]
null
null
null
awkward/generate.py
nsmith-/awkward-array
5ee75c2b59049a714e8c7bf3ac2bc0414268abff
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2018, DIANA-HEP # 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 ...
43.440329
167
0.558924
3e90c107a4c854a890a3424a0a8e1507adfd48a0
12,375
py
Python
tests/selpolltest.py
karpierz/libpcap
6432ae6dd9cddcf0d160de927ca33231a1e2a3d0
[ "BSD-3-Clause" ]
42
2018-01-28T03:43:02.000Z
2022-03-03T09:19:13.000Z
tests/selpolltest.py
karpierz/libpcap
6432ae6dd9cddcf0d160de927ca33231a1e2a3d0
[ "BSD-3-Clause" ]
9
2019-05-01T09:55:04.000Z
2021-11-10T23:26:57.000Z
tests/selpolltest.py
karpierz/libpcap
6432ae6dd9cddcf0d160de927ca33231a1e2a3d0
[ "BSD-3-Clause" ]
12
2019-07-31T18:55:03.000Z
2022-02-01T22:25:25.000Z
#!/usr/bin/env python # Copyright (c) 2016-2021, Adam Karpierz # Licensed under the BSD license # https://opensource.org/licenses/BSD-3-Clause # Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000 # The Regents of the University of California. All rights reserved. # # Redistribution and u...
38.793103
80
0.540768
e637ba86f2b6e720a1e9258d531a882c8a147745
78
py
Python
PROJECT_0000/faceLib/faceDetectRetinaFace.py
blitzkrieg0000/BioFace
ff45e3608ad08ab41ef93f4e962c85dafb00709b
[ "MIT" ]
1
2021-07-27T18:31:38.000Z
2021-07-27T18:31:38.000Z
PROJECT_0000/faceLib/faceDetectRetinaFace.py
blitzkrieg0000/BioFace
ff45e3608ad08ab41ef93f4e962c85dafb00709b
[ "MIT" ]
null
null
null
PROJECT_0000/faceLib/faceDetectRetinaFace.py
blitzkrieg0000/BioFace
ff45e3608ad08ab41ef93f4e962c85dafb00709b
[ "MIT" ]
null
null
null
#TensorFlow ile bazı paketler çakıştığı için orijinal "retinaface" yüklenmedi.
78
78
0.846154
50b6b34e2f1d32b0d2f7f67c081b46f49da63bc2
367
py
Python
lambda_package/localcontext.py
TriNimbus/lambda-package-template
7291437fb11716b518d7046fff0ae8bfd192ee19
[ "MIT" ]
2
2016-11-22T18:55:08.000Z
2019-12-15T02:28:02.000Z
lambda_package/localcontext.py
TriNimbus/lambda-package-template
7291437fb11716b518d7046fff0ae8bfd192ee19
[ "MIT" ]
null
null
null
lambda_package/localcontext.py
TriNimbus/lambda-package-template
7291437fb11716b518d7046fff0ae8bfd192ee19
[ "MIT" ]
1
2018-07-30T13:36:59.000Z
2018-07-30T13:36:59.000Z
from lambda_package.utility import Utility class LocalContext(object): """A class to simulate the Lambda context locally.""" @property def invoked_function_arn(self): """Simulate the Lambda ARN that comes into the context object. """ return 'arn:aws:lambda:us-east-1:{0}:function:func-name'...
33.363636
74
0.689373
f15cd34caf738fcab122211c8d928283a6937de9
7,121
py
Python
LeetCode-All-Solution/Python3/LC-0279-Perfect-Squares.py
YuweiYin/Algorithm_YuweiYin
28648fac59c5a4e3c907978cbd1b3e662ba18fd5
[ "MIT" ]
null
null
null
LeetCode-All-Solution/Python3/LC-0279-Perfect-Squares.py
YuweiYin/Algorithm_YuweiYin
28648fac59c5a4e3c907978cbd1b3e662ba18fd5
[ "MIT" ]
null
null
null
LeetCode-All-Solution/Python3/LC-0279-Perfect-Squares.py
YuweiYin/Algorithm_YuweiYin
28648fac59c5a4e3c907978cbd1b3e662ba18fd5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- """================================================================= @Project : Algorithm_YuweiYin/LeetCode-All-Solution/Python3 @File : LC-0279-Perfect-Squares.py @Author : [YuweiYin](https://github.com/YuweiYin) @Date : 2022-02-24 ===================================...
35.078818
117
0.552731
5de999683a8b34259af15f4160c3b3823d3cd59c
5,062
py
Python
examples/to_test_classification.py
Jetafull/pytorch_tabular
9f65cb2c4b9dd3aaee209d8db1e4b5238eddfeb5
[ "MIT" ]
null
null
null
examples/to_test_classification.py
Jetafull/pytorch_tabular
9f65cb2c4b9dd3aaee209d8db1e4b5238eddfeb5
[ "MIT" ]
null
null
null
examples/to_test_classification.py
Jetafull/pytorch_tabular
9f65cb2c4b9dd3aaee209d8db1e4b5238eddfeb5
[ "MIT" ]
null
null
null
from pathlib import Path import numpy as np import pandas as pd import pytorch_lightning as pl import torch from omegaconf import OmegaConf from sklearn.datasets import fetch_covtype from sklearn.model_selection import train_test_split from sklearn.preprocessing import PowerTransformer from torch.functional import nor...
26.642105
88
0.729554
00c07b9257f5f72927b9abb0e524db4233798688
4,277
py
Python
code/word_selection.py
crypdick/knausj_talon
1c38f8c8d7bbd44a3bedddcc36850461cb35e000
[ "Unlicense" ]
null
null
null
code/word_selection.py
crypdick/knausj_talon
1c38f8c8d7bbd44a3bedddcc36850461cb35e000
[ "Unlicense" ]
null
null
null
code/word_selection.py
crypdick/knausj_talon
1c38f8c8d7bbd44a3bedddcc36850461cb35e000
[ "Unlicense" ]
null
null
null
import time from talon import Context, Module, actions, clip mod = Module() @mod.action_class class Actions: def word_neck(index: int): """select the following word or the index'th word""" word_neck(int(index)) def word_prev(index: int): """select the previous word or the index'th w...
27.772727
82
0.630348
b75b46d4923be01fcb1bcddbc5314854a4ed6d81
1,388
py
Python
integrations/airflow/tests/test_location.py
mobuchowski/marquez
a1964623e13e95ee98b93517f11cdf116a1d1184
[ "Apache-2.0" ]
1
2021-11-02T08:14:47.000Z
2021-11-02T08:14:47.000Z
integrations/airflow/tests/test_location.py
mobuchowski/marquez
a1964623e13e95ee98b93517f11cdf116a1d1184
[ "Apache-2.0" ]
7
2021-05-06T15:16:13.000Z
2022-03-01T23:10:43.000Z
integrations/airflow/tests/test_location.py
mobuchowski/marquez
a1964623e13e95ee98b93517f11cdf116a1d1184
[ "Apache-2.0" ]
1
2021-04-19T17:51:20.000Z
2021-04-19T17:51:20.000Z
# 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 th...
32.27907
74
0.748559
16580fe2c26e221d4b5c58ecef8b9708f337711a
11,673
py
Python
main.py
analyticFolk/detr
cd98687d683c670627dfa29424ca6e01de8767f4
[ "Apache-2.0" ]
null
null
null
main.py
analyticFolk/detr
cd98687d683c670627dfa29424ca6e01de8767f4
[ "Apache-2.0" ]
null
null
null
main.py
analyticFolk/detr
cd98687d683c670627dfa29424ca6e01de8767f4
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import argparse import datetime import json import random import time from pathlib import Path import numpy as np import torch from torch.utils.data import DataLoader, DistributedSampler import datasets import util.misc as utils from datasets impo...
46.321429
116
0.64405
375561d3679f61bb93569d8d824d034f6cb552df
3,829
py
Python
Face.py
Munthir-Shishani/face-check-in
ca6656e1d7860657bffddeac0c8a57267c419d6f
[ "BSD-3-Clause" ]
null
null
null
Face.py
Munthir-Shishani/face-check-in
ca6656e1d7860657bffddeac0c8a57267c419d6f
[ "BSD-3-Clause" ]
1
2022-03-12T00:30:03.000Z
2022-03-12T00:30:03.000Z
Face.py
Munthir-Shishani/face-check-in
ca6656e1d7860657bffddeac0c8a57267c419d6f
[ "BSD-3-Clause" ]
null
null
null
import asyncio import io import glob import os import sys import time import uuid import requests from datetime import datetime import pytz from urllib.parse import urlparse from io import BytesIO from PIL import Image, ImageDraw from azure.cognitiveservices.vision.face import FaceClient from msrest.authentication impo...
35.453704
142
0.678506
bf0e43e62f14f116c7495b6c3368e06731f90117
326
py
Python
cgnp_patchy/lib/moieties/MME.py
cjspindel/cgnp_patchy
12d401c90795ecddb9c4ea0433dc26c4d31d80b6
[ "MIT" ]
null
null
null
cgnp_patchy/lib/moieties/MME.py
cjspindel/cgnp_patchy
12d401c90795ecddb9c4ea0433dc26c4d31d80b6
[ "MIT" ]
null
null
null
cgnp_patchy/lib/moieties/MME.py
cjspindel/cgnp_patchy
12d401c90795ecddb9c4ea0433dc26c4d31d80b6
[ "MIT" ]
null
null
null
import mbuild as mb import numpy as np class MME(mb.Compound): """ Coarse-grained alkane bead containing a CH2-CH2-CH3 group """ def __init__(self): super(MME, self).__init__() self.add(mb.Particle(name="_MME")) self.add(mb.Port(anchor=self[0], orientation=[0, 1, 0], separation=0.15), '...
29.636364
87
0.644172
b20d33938c4a8aa87b15577ef54b08ecc6657da8
261
py
Python
git_master_main.py
ahrenstein/thefuck-rules
e6a7f3b9ce5b9eff9068a5e4dd3d298738549102
[ "MIT" ]
4
2021-01-18T14:29:22.000Z
2022-02-25T13:00:37.000Z
git_master_main.py
ahrenstein/thefuck-rules
e6a7f3b9ce5b9eff9068a5e4dd3d298738549102
[ "MIT" ]
null
null
null
git_master_main.py
ahrenstein/thefuck-rules
e6a7f3b9ce5b9eff9068a5e4dd3d298738549102
[ "MIT" ]
null
null
null
def match(command): return ('error: pathspec \'master\' did not match any file(s) known to git' in command.output.lower()) def get_new_command(command): return command.script.replace("master","main") # Optional: priority = 5 enabled_by_default = True
26.1
106
0.724138
055e66149a807f68f4fe496640334f0924e5e67e
20,134
py
Python
pybotters/models/gmocoin.py
yota-p/pybotters
4174779fb9ad6abd4cbe2ec59a62510e96653d1b
[ "MIT" ]
null
null
null
pybotters/models/gmocoin.py
yota-p/pybotters
4174779fb9ad6abd4cbe2ec59a62510e96653d1b
[ "MIT" ]
null
null
null
pybotters/models/gmocoin.py
yota-p/pybotters
4174779fb9ad6abd4cbe2ec59a62510e96653d1b
[ "MIT" ]
null
null
null
from __future__ import annotations import asyncio import logging from datetime import datetime, timezone from dateutil import parser from decimal import Decimal from enum import Enum, auto from typing import Any, Awaitable, Optional, cast import aiohttp from pybotters.store import DataStore, DataStoreManager from pyb...
29.565345
88
0.590047
1c08ed6ffa4f8b177c56a947da9b49980ab0a2c2
107
py
Python
mmocr/models/kie/heads/__init__.py
yuexy/mmocr
82488024db159266e66ea6b0d6f84a5a18e87362
[ "Apache-2.0" ]
2,261
2021-04-08T03:45:41.000Z
2022-03-31T23:37:46.000Z
mmocr/models/kie/heads/__init__.py
yuexy/mmocr
82488024db159266e66ea6b0d6f84a5a18e87362
[ "Apache-2.0" ]
789
2021-04-08T05:40:13.000Z
2022-03-31T09:42:39.000Z
mmocr/models/kie/heads/__init__.py
yuexy/mmocr
82488024db159266e66ea6b0d6f84a5a18e87362
[ "Apache-2.0" ]
432
2021-04-08T03:56:16.000Z
2022-03-30T18:44:43.000Z
# Copyright (c) OpenMMLab. All rights reserved. from .sdmgr_head import SDMGRHead __all__ = ['SDMGRHead']
21.4
47
0.757009
9f4b1b27cbe0812616d33e5409a8fbd7119a5b66
7,105
py
Python
Method/reproduce_results/celoe_clp/reproduce_learning_concepts_with_length_predictor_semantic_bible_kb.py
dice-group/LearnALCLengths
cb019ba234092a323f3785517d1cc6152a5ef7a4
[ "MIT" ]
null
null
null
Method/reproduce_results/celoe_clp/reproduce_learning_concepts_with_length_predictor_semantic_bible_kb.py
dice-group/LearnALCLengths
cb019ba234092a323f3785517d1cc6152a5ef7a4
[ "MIT" ]
null
null
null
Method/reproduce_results/celoe_clp/reproduce_learning_concepts_with_length_predictor_semantic_bible_kb.py
dice-group/LearnALCLengths
cb019ba234092a323f3785517d1cc6152a5ef7a4
[ "MIT" ]
null
null
null
import sys, os, json import numpy as np, random base_path = os.path.dirname(os.path.realpath(__file__)).split('reproduce_results')[0] sys.path.append(base_path) from celoe_clp.fast_concept_learner import CELOECLP from ontolearn import KnowledgeBase from ontolearn.refinement_operators import ExpressRefinement from ont...
47.366667
156
0.638424
fcba89e1631a6473b4440b285033bca0270cac21
73
py
Python
src/hdp/__init__.py
datadiarist/hplda
a81cf84ea76487e716641bb6dfbf36f18ceac91e
[ "MIT" ]
null
null
null
src/hdp/__init__.py
datadiarist/hplda
a81cf84ea76487e716641bb6dfbf36f18ceac91e
[ "MIT" ]
1
2021-09-24T04:30:51.000Z
2021-09-24T04:30:51.000Z
src/hdp/__init__.py
datadiarist/hplda
a81cf84ea76487e716641bb6dfbf36f18ceac91e
[ "MIT" ]
1
2020-05-01T03:59:42.000Z
2020-05-01T03:59:42.000Z
from hdp import HDP from hdp import text_prep from hdp import perplexity
18.25
26
0.835616
636ac648eeb7b038679df3ae03a1b81787a665e0
11,929
py
Python
apps/kemures/metrics/MRR/mrr_overview.py
DiegoCorrea/ouvidoMusical
e8bdb993e2c6ef2fe4a78e844bc60be2738a5ba5
[ "MIT" ]
1
2021-10-06T19:35:48.000Z
2021-10-06T19:35:48.000Z
apps/kemures/metrics/MRR/mrr_overview.py
DiegoCorrea/ouvido_musical-Back
e8bdb993e2c6ef2fe4a78e844bc60be2738a5ba5
[ "MIT" ]
null
null
null
apps/kemures/metrics/MRR/mrr_overview.py
DiegoCorrea/ouvido_musical-Back
e8bdb993e2c6ef2fe4a78e844bc60be2738a5ba5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import os import matplotlib.pyplot as plt import pandas as pd from apps.kemures.kernel.config.global_var import MRR_PATH_GRAPHICS, GRAPH_MARKERS, GRAPH_STYLE, GRAPH_COLORS from apps.kemures.kernel.round.models import Round from apps.kemures.metrics.MRR.DAO.models import MRR from...
47.907631
113
0.5578
ff69bdb3684a92134682620d0a77b6a4d145ef17
4,656
py
Python
src/pki_util.py
AshirwadPradhan/intragit
e2baf2ed90665750b069b01d554d7a2e0e1de413
[ "MIT" ]
null
null
null
src/pki_util.py
AshirwadPradhan/intragit
e2baf2ed90665750b069b01d554d7a2e0e1de413
[ "MIT" ]
null
null
null
src/pki_util.py
AshirwadPradhan/intragit
e2baf2ed90665750b069b01d554d7a2e0e1de413
[ "MIT" ]
1
2020-03-29T11:59:46.000Z
2020-03-29T11:59:46.000Z
# Utility Module # Provides following helper methods for PKI # 1. Generate private key # 2. Generate X509 certificate for the self-signing CA (here the organization is the CA) # 3. Generate X509 for the server hosted by the organization # 4. Sign the CSR of the server #Inspired f...
43.514019
107
0.661297
e6e2cc86a51f713e49420b7c63a95ef0cd29e205
8,711
py
Python
utils/extract_features_singlegpu.py
1219521375/bottom-up-attention.pytorch
4a2e64383f024cc56728dd2a0ee63c8a171663c8
[ "Apache-2.0" ]
3
2022-02-18T13:38:47.000Z
2022-03-30T11:30:35.000Z
utils/extract_features_singlegpu.py
1219521375/bottom-up-attention.pytorch
4a2e64383f024cc56728dd2a0ee63c8a171663c8
[ "Apache-2.0" ]
null
null
null
utils/extract_features_singlegpu.py
1219521375/bottom-up-attention.pytorch
4a2e64383f024cc56728dd2a0ee63c8a171663c8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # pylint: disable=no-member """ TridentNet Training Script. This script is a simplified version of the training script in detectron2/tools. """ import argparse import os import sys import torch # import tqdm import cv2 import numpy as np sys.path.a...
38.715556
138
0.635404
c31ac027e46aa014476765248ee3f430b4974162
3,449
py
Python
src/ml/trainer.py
AaronGrainer/gpt2-twitter-kubernetes
a33feb86231950dde5ee943bf5cfaf3915a23db2
[ "Apache-2.0" ]
3
2020-05-06T19:52:49.000Z
2020-08-16T18:51:52.000Z
src/ml/trainer.py
AaronGrainer/gpt2-twitter-kubernetes
a33feb86231950dde5ee943bf5cfaf3915a23db2
[ "Apache-2.0" ]
19
2020-05-05T17:41:37.000Z
2021-05-27T14:22:58.000Z
src/ml/trainer.py
AaronGrainer/gpt2-twitter-kubernetes
a33feb86231950dde5ee943bf5cfaf3915a23db2
[ "Apache-2.0" ]
null
null
null
from transformers import AutoTokenizer, AutoModelForCausalLM, TextDataset, DataCollatorForLanguageModeling from transformers import TrainingArguments, Trainer import torch from src.config import global_config as gc import os import fire from typing import List import wandb class GPT2Trainer: def __init__(self,...
29.732759
106
0.615251
2f63e58fa656b9c7c26b872312b0c11f73267951
1,273
py
Python
amaascore/assets/listed_cfd.py
amaas-fintech/amaas-core-sdk-python
bd77884de6e5ab05d864638addeb4bb338a51183
[ "Apache-2.0" ]
null
null
null
amaascore/assets/listed_cfd.py
amaas-fintech/amaas-core-sdk-python
bd77884de6e5ab05d864638addeb4bb338a51183
[ "Apache-2.0" ]
8
2017-06-06T09:42:41.000Z
2018-01-16T10:16:16.000Z
amaascore/assets/listed_cfd.py
amaas-fintech/amaas-core-sdk-python
bd77884de6e5ab05d864638addeb4bb338a51183
[ "Apache-2.0" ]
8
2017-01-18T04:14:01.000Z
2017-12-01T08:03:10.000Z
from __future__ import absolute_import, division, print_function, unicode_literals from datetime import datetime, date from dateutil import parser from amaascore.assets.listed_derivative import ListedDerivative class ListedContractForDifference(ListedDerivative): def __init__(self, asset_manager_id, asset_id, ...
57.863636
112
0.568735
b562e47b86ee7f6312b379e551512ebe549ca07b
17,351
py
Python
mindquantum/core/operators/polynomial_tensor.py
Takishima/mindquantum
e90dfe474b759023d7ae18281b9a87cb8d223d04
[ "Apache-2.0" ]
null
null
null
mindquantum/core/operators/polynomial_tensor.py
Takishima/mindquantum
e90dfe474b759023d7ae18281b9a87cb8d223d04
[ "Apache-2.0" ]
null
null
null
mindquantum/core/operators/polynomial_tensor.py
Takishima/mindquantum
e90dfe474b759023d7ae18281b9a87cb8d223d04
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Portions Copyright (c) 2020 Huawei Technologies Co.,ltd. # Portions Copyright 2017 The OpenFermion Developers. # # 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...
35.194726
120
0.583482
f4845c212a263b4fe077a05c14928e1e1a22ef96
2,734
py
Python
src/bert.py
geoffbacon/does-bert-agree
9ece52d01f30352a200ad841efb6162e7597f0e4
[ "MIT" ]
2
2019-08-28T16:47:33.000Z
2022-02-25T06:47:07.000Z
src/bert.py
geoffbacon/does-bert-agree
9ece52d01f30352a200ad841efb6162e7597f0e4
[ "MIT" ]
null
null
null
src/bert.py
geoffbacon/does-bert-agree
9ece52d01f30352a200ad841efb6162e7597f0e4
[ "MIT" ]
null
null
null
"""Predict masked words using BERT. The code in this module was heavily borrowed from Yoav Goldberg's code on assessing BERT's syntactic abilities: https://github.com/yoavg/bert-syntax/ Thanks to Yoav for making his code available. """ import pandas as pd import torch from torch import LongTensor # pylint: disable=E...
33.753086
81
0.634236
71ca61d6a00db381656778fff7754a31b2343ccb
530
py
Python
tests/nnapi/specs/V1_2/not_equal_float_nnfw.mod.py
periannath/ONE
61e0bdf2bcd0bc146faef42b85d469440e162886
[ "Apache-2.0" ]
255
2020-05-22T07:45:29.000Z
2022-03-29T23:58:22.000Z
tests/nnapi/specs/V1_2/not_equal_float_nnfw.mod.py
periannath/ONE
61e0bdf2bcd0bc146faef42b85d469440e162886
[ "Apache-2.0" ]
5,102
2020-05-22T07:48:33.000Z
2022-03-31T23:43:39.000Z
tests/nnapi/specs/V1_2/not_equal_float_nnfw.mod.py
periannath/ONE
61e0bdf2bcd0bc146faef42b85d469440e162886
[ "Apache-2.0" ]
120
2020-05-22T07:51:08.000Z
2022-02-16T19:08:05.000Z
# model model = Model() i1 = Input("op1", "TENSOR_FLOAT32", "{3}") # a vector of input i2 = Input("op2", "TENSOR_FLOAT32", "{3}") # a vector of input i3 = Output("op3", "TENSOR_BOOL8", "{3}") # a vector of output model = model.Operation("NOT_EQUAL", i1, i2).To(i3) # Example 1. Input in operand 0, input0 = {i1: # input...
27.894737
62
0.586792
bcf5d64cd073b26e98f78c48cc39b90f76339503
1,554
py
Python
var/spack/repos/builtin/packages/intel-oneapi-inspector/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/intel-oneapi-inspector/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/intel-oneapi-inspector/package.py
flatironinstitute/spack
71a7b1b5fadbe16bcdb36fb679aa828cd7d83b02
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import platform from spack import * class IntelOneapiInspector(IntelOneApiPackage): """Intel Inspector is a memory ...
43.166667
133
0.704633
6934126eab65c646242a0d59ed59fefca05e743c
3,503
py
Python
src/urh/main.py
awesome-archive/urh
c8c3aabc9d637ca660d8c72c3d8372055e0f3ec7
[ "Apache-2.0" ]
null
null
null
src/urh/main.py
awesome-archive/urh
c8c3aabc9d637ca660d8c72c3d8372055e0f3ec7
[ "Apache-2.0" ]
null
null
null
src/urh/main.py
awesome-archive/urh
c8c3aabc9d637ca660d8c72c3d8372055e0f3ec7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import locale import os import re import sys import time from PyQt5.QtCore import QTimer from PyQt5.QtGui import QPalette, QIcon from PyQt5.QtWidgets import QApplication, QWidget, QStyleFactory locale.setlocale(locale.LC_ALL, '') GENERATE_UI = True def main(): t = time.time() if GEN...
32.137615
97
0.66857
420026c9c960d5a23b97004701f4a5ca8f527209
1,595
py
Python
bohr/cli/dataset/commands.py
giganticode/bohr-framework
fd364a1f036123985ac96e9076e5dce3bbc2ca2c
[ "MIT" ]
null
null
null
bohr/cli/dataset/commands.py
giganticode/bohr-framework
fd364a1f036123985ac96e9076e5dce3bbc2ca2c
[ "MIT" ]
54
2021-02-17T13:36:51.000Z
2021-08-25T05:06:57.000Z
bohr/cli/dataset/commands.py
giganticode/bohr-framework
fd364a1f036123985ac96e9076e5dce3bbc2ca2c
[ "MIT" ]
null
null
null
import logging import textwrap from pathlib import Path from typing import Optional import click from tabulate import tabulate from bohr import api from bohr.datamodel.bohrrepo import load_bohr_repo from bohr.util.logging import verbosity logger = logging.getLogger(__name__) @click.group() def dataset(): pass ...
27.033898
75
0.610031
561ab22e7d19b279526c74e7d320cdaddfa22162
6,312
py
Python
globalsky/tests/base.py
LCOGT/globalskypartners
ecb4ffc7c8ed0902e71b648907046093ea82dc77
[ "MIT" ]
null
null
null
globalsky/tests/base.py
LCOGT/globalskypartners
ecb4ffc7c8ed0902e71b648907046093ea82dc77
[ "MIT" ]
2
2021-05-25T13:16:56.000Z
2021-06-18T08:29:36.000Z
globalsky/tests/base.py
LCOGT/globalskypartners
ecb4ffc7c8ed0902e71b648907046093ea82dc77
[ "MIT" ]
null
null
null
""" NEO exchange: NEO observing portal for Las Cumbres Observatory Copyright (C) 2015-2019 LCO 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...
42.362416
120
0.62706
409bb18ad6bf8d6006556c7c9fcbc8485c46e4cf
34,339
py
Python
git/config.py
daobook/GitPython
cbde921ecf38f25d1dd0dfcb9389514087187e68
[ "BSD-3-Clause" ]
null
null
null
git/config.py
daobook/GitPython
cbde921ecf38f25d1dd0dfcb9389514087187e68
[ "BSD-3-Clause" ]
null
null
null
git/config.py
daobook/GitPython
cbde921ecf38f25d1dd0dfcb9389514087187e68
[ "BSD-3-Clause" ]
null
null
null
# config.py # Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors # # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php """Module containing module parser implementation able to properly read and write configuration files"...
40.686019
117
0.59396
abaaa889a43064ea5b905a960abf0500b7efb4e6
6,634
py
Python
interpreter.py
luisincrespo/ftp-client
09352e16b37fdb9cd14bd0e20438b7dfea774445
[ "MIT" ]
5
2019-04-28T05:55:17.000Z
2020-10-16T08:54:29.000Z
interpreter.py
luisincrespo/ftp-client
09352e16b37fdb9cd14bd0e20438b7dfea774445
[ "MIT" ]
1
2020-04-04T05:42:41.000Z
2020-04-05T10:40:29.000Z
interpreter.py
luisincrespo/ftp-client
09352e16b37fdb9cd14bd0e20438b7dfea774445
[ "MIT" ]
3
2019-02-24T09:11:38.000Z
2020-09-27T02:59:02.000Z
import os from cmd import Cmd from client import FtpClient class FtpInterpreter(Cmd): """ FTP client command line utility. """ def __init__(self, debug=False): Cmd.__init__(self) self.intro = ('FTP Client. Start typing help or ? to see available ' 'commands.') ...
31.590476
78
0.571752
d87db0cda22d6c7a8db39f67d7dd92ee9d33c3b5
2,636
py
Python
gunicorn/tests/test_metadata.py
vbarbaresi/integrations-core
ab26ab1cd6c28a97c1ad1177093a93659658c7aa
[ "BSD-3-Clause" ]
663
2016-08-23T05:23:45.000Z
2022-03-29T00:37:23.000Z
gunicorn/tests/test_metadata.py
vbarbaresi/integrations-core
ab26ab1cd6c28a97c1ad1177093a93659658c7aa
[ "BSD-3-Clause" ]
6,642
2016-06-09T16:29:20.000Z
2022-03-31T22:24:09.000Z
gunicorn/tests/test_metadata.py
vbarbaresi/integrations-core
ab26ab1cd6c28a97c1ad1177093a93659658c7aa
[ "BSD-3-Clause" ]
1,222
2017-01-27T15:51:38.000Z
2022-03-31T18:17:51.000Z
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import pytest from datadog_checks.gunicorn import GUnicornCheck from .common import CHECK_NAME, CONTAINER_NAME, GUNICORN_VERSION, INSTANCE # TODO: Test metadata in e2e when we can collect metadata from the ag...
31.011765
84
0.747724
28f0cacd0877d5d14698a1898e77b37363fc2d02
1,118
py
Python
setup.py
pushfoo/eightdad
7464ea8212f4d8fa11f9d471736efdecf028e285
[ "BSD-2-Clause" ]
1
2020-05-29T16:11:41.000Z
2020-05-29T16:11:41.000Z
setup.py
pushfoo/eightdad
7464ea8212f4d8fa11f9d471736efdecf028e285
[ "BSD-2-Clause" ]
41
2020-05-29T08:01:15.000Z
2020-11-27T11:45:41.000Z
setup.py
pushfoo/eightdad
7464ea8212f4d8fa11f9d471736efdecf028e285
[ "BSD-2-Clause" ]
null
null
null
from setuptools import setup, find_packages install_requires=['bitarray','arcade==2.6.13'] tests_require = [ 'pytest', ] with open("README.md", "r") as fh: long_description = fh.read() setup( name='eightdad', version='0.0.1', packages=find_packages(), entry_points={ "console_scripts...
27.268293
78
0.644902
537fd1c88f6238f594d78d9a53c7e2d55e5a2a6c
6,954
py
Python
src/build/mac_toolchain.py
Mr-Sheep/naiveproxy
9f6e9768295f6d1d41517a15a621d4756bd7d6be
[ "BSD-3-Clause" ]
null
null
null
src/build/mac_toolchain.py
Mr-Sheep/naiveproxy
9f6e9768295f6d1d41517a15a621d4756bd7d6be
[ "BSD-3-Clause" ]
null
null
null
src/build/mac_toolchain.py
Mr-Sheep/naiveproxy
9f6e9768295f6d1d41517a15a621d4756bd7d6be
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ If should_use_hermetic_xcode.py emits "1", and the current toolchain is out of date: * Downloads the hermetic mac toolchain ...
34.77
80
0.714265
bc85ad18bb86c11487257f0042f96e4b7429bc9b
556
py
Python
entity_resolution/date_adjustment.py
budiryan/ScholarsNet
b6a9f3830c390a4420e361752f0187d8f955acfe
[ "MIT" ]
9
2017-06-08T12:05:03.000Z
2021-11-08T12:19:46.000Z
entity_resolution/date_adjustment.py
budiryan/ScholarsNet
b6a9f3830c390a4420e361752f0187d8f955acfe
[ "MIT" ]
null
null
null
entity_resolution/date_adjustment.py
budiryan/ScholarsNet
b6a9f3830c390a4420e361752f0187d8f955acfe
[ "MIT" ]
null
null
null
import sqlite3 path = '../sqlite/paperDB.db' connection = sqlite3.connect('../sqlite/paperDB.db') with connection: cursor = connection.cursor() cursor.execute('SELECT * FROM papers') rows = cursor.fetchall() for row in rows: row = list(row) if row[-1] == 'arxiv': row[5] = r...
29.263158
78
0.546763
45266ccfa09495f44e1f6dced368b58d92a28360
10,114
py
Python
wtl/wtgithub/tests/worker.py
elegion/djangodash2013
3814123f9bff213a5d74db05db3caa83caea731c
[ "MIT" ]
null
null
null
wtl/wtgithub/tests/worker.py
elegion/djangodash2013
3814123f9bff213a5d74db05db3caa83caea731c
[ "MIT" ]
1
2017-09-19T17:06:49.000Z
2017-09-19T17:06:49.000Z
wtl/wtgithub/tests/worker.py
elegion/djangodash2013
3814123f9bff213a5d74db05db3caa83caea731c
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import os from django.test import TestCase from exam.asserts import AssertsMixin from github import UnknownObjectException from github.Requester import Requester import mock from wtl.wtgithub.models import Repository from wtl.wtgithub.tests.factories import RepositoryFactory fr...
43.407725
275
0.69735
c6e060cfacd2a1d24ae08023a350d6f98eba1c03
1,252
py
Python
ProgrammerAlgorithmInterview/Chapter01/01_10_given_only_a_node_and_remove_it.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
ProgrammerAlgorithmInterview/Chapter01/01_10_given_only_a_node_and_remove_it.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
ProgrammerAlgorithmInterview/Chapter01/01_10_given_only_a_node_and_remove_it.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #coding:utf-8 class LNode(object): def __init__(self, x=None): self.val = x self.next = None def remove(r_node): """ 方法功能:给定单链表中某个结点,删除该节点 输入参数:链表中某结点 返回值:true: 删除该结点;false: 删除失败 """ # 若输入结点为空或该结点无后继结点,则无法删除;因为实际上是删除后继结点 if r_node is None or r_node...
21.586207
59
0.586262
fe6fa1ce6288e3706241c02e3f67d93762fef4ca
9,775
py
Python
lib/galaxy/external_services/service.py
vimalkumarvelayudhan/galaxy
ea89dd8f149778b6c2f0f3f4a34c8b21f7033af7
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/external_services/service.py
vimalkumarvelayudhan/galaxy
ea89dd8f149778b6c2f0f3f4a34c8b21f7033af7
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/external_services/service.py
vimalkumarvelayudhan/galaxy
ea89dd8f149778b6c2f0f3f4a34c8b21f7033af7
[ "CC-BY-3.0" ]
null
null
null
#Contains objects for accessing external services applications import logging from parameters import ExternalServiceParameter from actions import ExternalServiceAction from galaxy.util.bunch import Bunch log = logging.getLogger( __name__ ) class ExternalServiceActionsGroup( object ): def __init__( self, parent, ...
45.465116
145
0.64133
013084e88df75926ad4a96c91c654dadd67bbb90
1,661
py
Python
software/authbox/test_gpio_button.py
brianredbeard/makerspace-auth
79fab40be5455e29f5d596a44d0c4978f9112109
[ "Apache-2.0" ]
1
2019-05-29T17:02:09.000Z
2019-05-29T17:02:09.000Z
software/authbox/test_gpio_button.py
brianredbeard/makerspace-auth
79fab40be5455e29f5d596a44d0c4978f9112109
[ "Apache-2.0" ]
null
null
null
software/authbox/test_gpio_button.py
brianredbeard/makerspace-auth
79fab40be5455e29f5d596a44d0c4978f9112109
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
30.759259
84
0.697772
c426d8994cfa392438d78a5d06176a7198013a57
19,898
py
Python
manila/tests/share/test_share_types.py
cloudification-io/manila
9555e181f9e1b817b1072b986d35b46b59fb4e65
[ "Apache-2.0" ]
1
2020-06-17T13:20:21.000Z
2020-06-17T13:20:21.000Z
manila/tests/share/test_share_types.py
viroel/manila
fbcabd2c03985000bd9b4d4d9a4478bc0b784efa
[ "Apache-2.0" ]
null
null
null
manila/tests/share/test_share_types.py
viroel/manila
fbcabd2c03985000bd9b4d4d9a4478bc0b784efa
[ "Apache-2.0" ]
1
2021-02-23T05:52:11.000Z
2021-02-23T05:52:11.000Z
# Copyright 2015 Deutsche Telekom AG. All rights reserved. # Copyright 2015 Tom Barron. All rights reserved. # Copyright 2015 Mirantis, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain...
37.685606
78
0.609006
408169bd7883644a582a34e30466ad45bb3f9d9e
170
py
Python
sql/get_sql_table.py
JWen00/sthAwesome_19T2
8080a93a1945d7f118b4f06ee1edef075cd4a5b5
[ "MIT" ]
null
null
null
sql/get_sql_table.py
JWen00/sthAwesome_19T2
8080a93a1945d7f118b4f06ee1edef075cd4a5b5
[ "MIT" ]
null
null
null
sql/get_sql_table.py
JWen00/sthAwesome_19T2
8080a93a1945d7f118b4f06ee1edef075cd4a5b5
[ "MIT" ]
null
null
null
import sqlite3 f = 'sqldemo.db' conn = sqlite3.connect(f) c = conn.cursor() def get_table(): def set_availability(id, availability): conn.commit()
13.076923
40
0.635294
a78ee5793d13ef1638d619e5286a55e593f5ca86
3,896
py
Python
research_2.py
TeamTitanz/ClassVectorRepresentation
7e4eadd90d0a93e60af26d9313eff06e8088f57b
[ "Apache-2.0" ]
null
null
null
research_2.py
TeamTitanz/ClassVectorRepresentation
7e4eadd90d0a93e60af26d9313eff06e8088f57b
[ "Apache-2.0" ]
null
null
null
research_2.py
TeamTitanz/ClassVectorRepresentation
7e4eadd90d0a93e60af26d9313eff06e8088f57b
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd import cPickle from os import walk import random import math from sklearn.cluster import KMeans from sklearn import svm from sklearn.linear_model import Perceptron def calculateInputs(vectorList): del vectorList[-1] del vectorList[0] X = np.array(vectorList) vect...
26.868966
111
0.669405
3e20f42c685a9408ebee510711a2d1cd5944c318
13,007
py
Python
cynetworkx/classes/coreviews.py
Viech/cynetworkx
01a37859c67b752392e9e783c949084964eef2cf
[ "BSD-3-Clause" ]
12
2019-07-23T08:07:53.000Z
2022-03-09T06:13:16.000Z
cynetworkx/classes/coreviews.py
Viech/cynetworkx
01a37859c67b752392e9e783c949084964eef2cf
[ "BSD-3-Clause" ]
7
2019-08-30T07:00:00.000Z
2021-12-30T08:02:56.000Z
cynetworkx/classes/coreviews.py
Viech/cynetworkx
01a37859c67b752392e9e783c949084964eef2cf
[ "BSD-3-Clause" ]
5
2020-10-10T03:40:32.000Z
2021-11-23T12:28:53.000Z
# Copyright (C) 2004-2018 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # All rights reserved. # BSD license. # # Authors: Aric Hagberg (hagberg@lanl.gov), # Pieter Swart (swart@lanl.gov), # Dan Schult(dschult@colgate.edu) """...
32.116049
79
0.605213
a6252474876bf33e54b3278c767a278d7ae621ee
6,225
py
Python
statham/schema/elements/meta.py
george-fry/statham-schema
19aa64de8750001cbc24f2775e0684f2298f840f
[ "MIT" ]
23
2020-06-25T15:55:29.000Z
2022-03-31T16:51:40.000Z
statham/schema/elements/meta.py
george-fry/statham-schema
19aa64de8750001cbc24f2775e0684f2298f840f
[ "MIT" ]
25
2020-02-29T15:32:35.000Z
2022-03-03T17:22:45.000Z
statham/schema/elements/meta.py
george-fry/statham-schema
19aa64de8750001cbc24f2775e0684f2298f840f
[ "MIT" ]
5
2020-10-18T19:14:32.000Z
2022-03-09T10:40:41.000Z
import inspect import keyword from typing import Any, cast, Dict, List, Tuple, Type, Union from statham.schema.constants import Maybe, NotPassed from statham.schema.elements.base import Element from statham.schema.property import _Property from statham.schema.exceptions import SchemaDefinitionError from statham.schema...
32.421875
80
0.609157
504a2ebc6904df41b749f89e264a7da9f7113fd5
11,481
py
Python
ormar/queryset/clause.py
philipp-leanix/ormar
e5538852218b93b6b10f4732128accaa2e3f45e0
[ "MIT" ]
null
null
null
ormar/queryset/clause.py
philipp-leanix/ormar
e5538852218b93b6b10f4732128accaa2e3f45e0
[ "MIT" ]
null
null
null
ormar/queryset/clause.py
philipp-leanix/ormar
e5538852218b93b6b10f4732128accaa2e3f45e0
[ "MIT" ]
null
null
null
import itertools from dataclasses import dataclass from enum import Enum from typing import Any, Generator, List, TYPE_CHECKING, Tuple, Type import sqlalchemy import ormar # noqa I100 from ormar.queryset.actions.filter_action import FilterAction from ormar.queryset.utils import get_relationship_alias_model_and_str ...
36.447619
88
0.646895
8265df9fe2cb8a0bd815fd4c324b356c7b35c4f5
110
py
Python
dummy/book/urls.py
KeeperNight/Citric
c472b6f172393ada87453cab17c760d155c4800c
[ "Apache-2.0" ]
1
2019-11-25T08:10:32.000Z
2019-11-25T08:10:32.000Z
dummy/book/urls.py
KeeperNight/Citric
c472b6f172393ada87453cab17c760d155c4800c
[ "Apache-2.0" ]
null
null
null
dummy/book/urls.py
KeeperNight/Citric
c472b6f172393ada87453cab17c760d155c4800c
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views urlpatterns=[ path('',views.about_book,name="book"), ]
13.75
42
0.7
f3890719340cbf811e3e09837ced9a1cb3868ead
742
py
Python
setup.py
amane-katagiri/mdx_cite
35c280023c5a9cca72c455b92cbd7e9477b869c0
[ "BSD-3-Clause" ]
null
null
null
setup.py
amane-katagiri/mdx_cite
35c280023c5a9cca72c455b92cbd7e9477b869c0
[ "BSD-3-Clause" ]
null
null
null
setup.py
amane-katagiri/mdx_cite
35c280023c5a9cca72c455b92cbd7e9477b869c0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from setuptools import setup setup( name='mdx_cite', version='1.0', author='Alexandre Leray', author_email='alexandre@stdin.fr', description='Python-Markdown extension to support the <cite> tag.', url='http://activearchives.org/', py_modules=['mdx_cite'], instal...
27.481481
71
0.613208
74b2ed20c1c5c4ea5a3d91408dff2c76e991aae9
408
py
Python
escalate/core/models/base_classes/chemistry_base_class.py
darkreactions/ESCALATE
0020da00b81a2dd80d1c9fd72d2edf92b519e605
[ "MIT" ]
11
2020-09-29T13:59:02.000Z
2022-03-23T04:57:52.000Z
escalate/core/models/base_classes/chemistry_base_class.py
darkreactions/ESCALATE
0020da00b81a2dd80d1c9fd72d2edf92b519e605
[ "MIT" ]
95
2019-11-18T20:10:49.000Z
2022-03-31T17:09:49.000Z
escalate/core/models/base_classes/chemistry_base_class.py
darkreactions/ESCALATE
0020da00b81a2dd80d1c9fd72d2edf92b519e605
[ "MIT" ]
2
2021-11-26T18:22:08.000Z
2022-03-31T11:57:10.000Z
from django.db import models class ChemistryBaseColumns(models.Model): ''' Currently I don't see common variables between all classes in chemistry_data so this is empty. This should still stay to maintain Template -> Model -> Object coding sentiment and if common columns are created throughout chemist...
37.090909
110
0.72549
3751071156f72c3d1ad9e0ea38cbbff5dbc21e9e
3,289
py
Python
game/consumers/base_game_consumer.py
dimadk24/english-fight-api
506a3eb2cb4cb91203b1e023b5248c27975df075
[ "MIT" ]
null
null
null
game/consumers/base_game_consumer.py
dimadk24/english-fight-api
506a3eb2cb4cb91203b1e023b5248c27975df075
[ "MIT" ]
null
null
null
game/consumers/base_game_consumer.py
dimadk24/english-fight-api
506a3eb2cb4cb91203b1e023b5248c27975df075
[ "MIT" ]
null
null
null
from typing import Optional, Type from asgiref.sync import async_to_sync from channels.generic.websocket import JsonWebsocketConsumer from django.db.models import Model from rest_framework.serializers import Serializer from typing_extensions import TypedDict from common.string_utils import snake_case from game.consum...
31.625
79
0.633931
3b70ffe7b375ce9013dd273e364bfb063a21cd0a
4,043
py
Python
tests/unit/cli/errors_test.py
pareshmg/compose
cba758361499d74ef26bf281b73206e6dc12b5c9
[ "Apache-2.0" ]
2
2020-08-30T12:57:11.000Z
2021-01-21T13:17:43.000Z
tests/unit/cli/errors_test.py
pareshmg/compose
cba758361499d74ef26bf281b73206e6dc12b5c9
[ "Apache-2.0" ]
38
2021-07-19T21:08:06.000Z
2022-03-28T21:11:05.000Z
tests/unit/cli/errors_test.py
pareshmg/compose
cba758361499d74ef26bf281b73206e6dc12b5c9
[ "Apache-2.0" ]
3
2020-09-22T02:56:37.000Z
2021-03-15T10:31:24.000Z
import pytest from docker.errors import APIError from requests.exceptions import ConnectionError from compose.cli import errors from compose.cli.errors import handle_connection_errors from compose.const import IS_WINDOWS_PLATFORM from tests import mock @pytest.yield_fixture def mock_logging(): with mock.patch('c...
42.114583
104
0.695523
ba5cdfd3c1c0c2c7293a5f23667305aa04b5bcdc
3,169
py
Python
cogniac/tenant.py
CogniacViSean/cogniac-sdk-py
11f985a07bbaf5616315abbb0a56c75bc7928472
[ "Apache-2.0" ]
null
null
null
cogniac/tenant.py
CogniacViSean/cogniac-sdk-py
11f985a07bbaf5616315abbb0a56c75bc7928472
[ "Apache-2.0" ]
null
null
null
cogniac/tenant.py
CogniacViSean/cogniac-sdk-py
11f985a07bbaf5616315abbb0a56c75bc7928472
[ "Apache-2.0" ]
null
null
null
""" CogniacTenant Object Copyright (C) 2016 Cogniac Corporation """ import json from retrying import retry from .common import * TENANT_ADMIN_ROLE = "tenant_admin" TENANT_USER_ROLE = "tenant_user" TENANT_VIEWER_ROLE = "tenant_viewer" TENANT_BILLING_ROLE = "tenant_billing" ## # CogniacTenant ## class CogniacTen...
33.357895
107
0.618807
85bb47485a2e79619633eb3ff98dbda483aca65f
303,714
py
Python
pandas/core/frame.py
mojones/pandas
3d4f9dc19d784526f71a197bfb6e36b0409e0760
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-04-13T02:14:37.000Z
2020-04-13T02:14:37.000Z
pandas/core/frame.py
mojones/pandas
3d4f9dc19d784526f71a197bfb6e36b0409e0760
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-04-16T05:21:06.000Z
2020-04-16T05:21:06.000Z
pandas/core/frame.py
mojones/pandas
3d4f9dc19d784526f71a197bfb6e36b0409e0760
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-06-19T11:52:05.000Z
2020-06-19T11:52:05.000Z
""" DataFrame --------- An efficient 2D container for potentially mixed-type time series or other labeled data series. Similar to its R counterpart, data.frame, except providing automatic data alignment and a host of useful data manipulation methods having to do with the labeling information """ import collections fr...
34.411285
170
0.531263
f45d869f3863fa3f668180b94babdbe4cf2d6ea6
9,022
py
Python
RB_UTILITY/mcp2210/commands.py
calcite/ResetBuddy
864c1789aa8cf360124e96b15f0ab45057d52ecb
[ "MIT" ]
1
2016-04-12T19:25:02.000Z
2016-04-12T19:25:02.000Z
sw/display/mcp/commands.py
misisnik/ExternalInterface
a936b5999a3441374f0af38f2b012d9ae8291dae
[ "MIT" ]
null
null
null
sw/display/mcp/commands.py
misisnik/ExternalInterface
a936b5999a3441374f0af38f2b012d9ae8291dae
[ "MIT" ]
null
null
null
from ctypes import Structure, c_ubyte, c_ushort, c_uint, c_char class CommandHeader(Structure): _fields_ = [('command', c_ubyte), ('subcommand', c_ubyte), ('reserved_1', c_ubyte), ('reserved_2', c_ubyte)] class ResponseHeader(Structure): _fields_ = [('command'...
26.692308
99
0.610397
1c1cdf32049e5474a7fd370b9f1c39d77a785955
29,600
py
Python
sql/query.py
jiangming1/archery
e05c06ee18eb2c967fd49b4b5a72d271abcccbe4
[ "Apache-2.0" ]
null
null
null
sql/query.py
jiangming1/archery
e05c06ee18eb2c967fd49b4b5a72d271abcccbe4
[ "Apache-2.0" ]
null
null
null
sql/query.py
jiangming1/archery
e05c06ee18eb2c967fd49b4b5a72d271abcccbe4
[ "Apache-2.0" ]
1
2019-05-29T11:22:40.000Z
2019-05-29T11:22:40.000Z
# -*- coding: UTF-8 -*- import datetime import logging import re import time import traceback import simplejson as json from django.contrib.auth.decorators import permission_required from django.core import serializers from django.db import connection from django.db import transaction from django.db.models import Q, M...
45.259939
134
0.584291
cf8253e0a1e406047ec1798dab40a4d6f9b1a904
1,043
py
Python
app/core/migrations/0004_recipe.py
shivanshu1086/recipe-app-api
5c869b7493a42e66c8588c2d17a01b73a022ddb3
[ "MIT" ]
null
null
null
app/core/migrations/0004_recipe.py
shivanshu1086/recipe-app-api
5c869b7493a42e66c8588c2d17a01b73a022ddb3
[ "MIT" ]
null
null
null
app/core/migrations/0004_recipe.py
shivanshu1086/recipe-app-api
5c869b7493a42e66c8588c2d17a01b73a022ddb3
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2021-12-04 20:33 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0003_ingredient'), ] operations = [ migrations.CreateModel( ...
35.965517
118
0.604027
b5643f24c05aeab30bade0cc7965d19ffa6edcf2
67,104
py
Python
chainer/graph_optimizations/static_graph.py
zaltoprofen/chainer
3b03f9afc80fd67f65d5e0395ef199e9506b6ee1
[ "MIT" ]
2
2018-10-09T15:37:43.000Z
2019-04-28T02:45:22.000Z
chainer/graph_optimizations/static_graph.py
zaltoprofen/chainer
3b03f9afc80fd67f65d5e0395ef199e9506b6ee1
[ "MIT" ]
1
2019-10-17T09:56:18.000Z
2019-10-17T09:56:18.000Z
chainer/graph_optimizations/static_graph.py
zaltoprofen/chainer
3b03f9afc80fd67f65d5e0395ef199e9506b6ee1
[ "MIT" ]
null
null
null
import sys import weakref import numpy as np import chainer from chainer.backends import cuda import chainer.function_node def _is_xp(x): return isinstance(x, np.ndarray) or isinstance(x, cuda.ndarray) class ScheduleInfo(object): """A callable wrapper for a function in the static schedule. Args: ...
45.617947
79
0.613093
b9bb710b6094c5454943d86e9a2ee38b24dfed6d
25,167
py
Python
idaes/gas_solid_contactors/properties/oxygen_iron_OC_oxidation/solid_phase_thermo.py
eslickj/idaes-pse
328ed07ffb0b4d98c03e972675ea32c41dd2531a
[ "RSA-MD" ]
112
2019-02-11T23:16:36.000Z
2022-03-23T20:59:57.000Z
idaes/gas_solid_contactors/properties/oxygen_iron_OC_oxidation/solid_phase_thermo.py
eslickj/idaes-pse
328ed07ffb0b4d98c03e972675ea32c41dd2531a
[ "RSA-MD" ]
621
2019-03-01T14:44:12.000Z
2022-03-31T19:49:25.000Z
idaes/gas_solid_contactors/properties/oxygen_iron_OC_oxidation/solid_phase_thermo.py
eslickj/idaes-pse
328ed07ffb0b4d98c03e972675ea32c41dd2531a
[ "RSA-MD" ]
154
2019-02-01T23:46:33.000Z
2022-03-23T15:07:10.000Z
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021 # by the softwar...
43.391379
81
0.524655
82a5f1df01716b0c83a70610a9644f9257031d32
26,748
py
Python
pysurvival/models/multi_task.py
msloma144/pysurvival
4f8107f368b3865a3ed763f952dc6ee504bda599
[ "Apache-2.0" ]
null
null
null
pysurvival/models/multi_task.py
msloma144/pysurvival
4f8107f368b3865a3ed763f952dc6ee504bda599
[ "Apache-2.0" ]
null
null
null
pysurvival/models/multi_task.py
msloma144/pysurvival
4f8107f368b3865a3ed763f952dc6ee504bda599
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import torch import numpy as np import copy import multiprocessing from pysurvival import HAS_GPU from pysurvival import utils from pysurvival.utils import neural_networks as nn from pysurvival.utils import optimization as opt from pysurvival.models import BaseModel import sys #...
38.320917
111
0.5532
a3b241dc602e766afd44be5031adafb64eabf4a7
14,388
py
Python
train.py
miliadis/DeepVideoCS
760851192d6b5a7b21ea05b3c202db02f39276f5
[ "BSD-2-Clause" ]
65
2017-12-16T09:53:17.000Z
2021-12-22T12:30:00.000Z
train.py
miliadis/DeepVideoCS
760851192d6b5a7b21ea05b3c202db02f39276f5
[ "BSD-2-Clause" ]
4
2019-07-28T03:42:44.000Z
2021-03-03T02:11:37.000Z
train.py
miliadis/DeepVideoCS
760851192d6b5a7b21ea05b3c202db02f39276f5
[ "BSD-2-Clause" ]
25
2018-01-19T13:32:06.000Z
2021-10-04T06:21:58.000Z
import argparse import os import time import logging from utils.log import setup_logging, ResultsLog, save_checkpoint, results_add from datetime import datetime import torch import torch.nn as nn import torch.nn.parallel import torch.optim.lr_scheduler as sc import torch.backends.cudnn as cudnn import torch.optim impo...
38.470588
137
0.637962
265e1931e75c859082cf39be72f7d57b0148131b
464
py
Python
dev_01.py
soundmaking/led8x8m
383fe39c9e328951a25fd23298a4a4c11e8c964e
[ "MIT" ]
null
null
null
dev_01.py
soundmaking/led8x8m
383fe39c9e328951a25fd23298a4a4c11e8c964e
[ "MIT" ]
null
null
null
dev_01.py
soundmaking/led8x8m
383fe39c9e328951a25fd23298a4a4c11e8c964e
[ "MIT" ]
null
null
null
from time import sleep from random import randint from led8x8m import LedMatrix ledmx = LedMatrix() def rand_xy(): x = randint(0, 7) y = randint(0, 7) return x, y def rand_list(): my_list = [] for _ in range(25): x, y = rand_xy() my_list.append((x, y)) return my_list while...
16.571429
30
0.571121
8cac9d798a05b0d5ae5f00b7ecc6be6b3a3b82b4
5,565
py
Python
Data Visualization/School/code.py
ALDOR99/Python
a76f37bb3e573cd3fdcfc19f4f73494cafa9140e
[ "MIT" ]
2
2021-05-27T19:13:02.000Z
2021-06-02T13:26:35.000Z
Data Visualization/School/code.py
ALDOR99/Python
a76f37bb3e573cd3fdcfc19f4f73494cafa9140e
[ "MIT" ]
null
null
null
Data Visualization/School/code.py
ALDOR99/Python
a76f37bb3e573cd3fdcfc19f4f73494cafa9140e
[ "MIT" ]
1
2021-06-07T18:17:35.000Z
2021-06-07T18:17:35.000Z
# -*- coding: utf-8 -*- """ Created on Sun Jun 13 17:27:37 2021 @author: ali_d """ #school import numpy as np import pandas as pd # plotly from plotly.offline import init_notebook_mode, iplot, plot import plotly as py init_notebook_mode(connected=True) import plotly.graph_objs as go from wordcloud import WordClou...
20.384615
106
0.548967
71c558c80445c65bb4d4b7a3b5b72fb2fd49d838
4,614
py
Python
t4k/transformer/time_series_target_encoder.py
Yoshiki-Takahashi/tools4kaggle
eb2779687867e876f6beec1351140cfec046b152
[ "MIT" ]
null
null
null
t4k/transformer/time_series_target_encoder.py
Yoshiki-Takahashi/tools4kaggle
eb2779687867e876f6beec1351140cfec046b152
[ "MIT" ]
null
null
null
t4k/transformer/time_series_target_encoder.py
Yoshiki-Takahashi/tools4kaggle
eb2779687867e876f6beec1351140cfec046b152
[ "MIT" ]
null
null
null
from sklearn.base import BaseEstimator, TransformerMixin import category_encoders as ce import numpy as np import pandas as pd class TimeSeriesTargetEncoder(BaseEstimator, TransformerMixin): """ Encode category to target value frequency on past data. Parameters ---------- cols: lis...
39.435897
111
0.640225
38f00aeade41815fa0ef310ce4a6484bb7e1cc5a
23,284
py
Python
Main/modules/lin_decoder.py
XIAO-LI-UPF/Natural-Language-ParagraphGeneration
7d13e087bd2baa9a7f393fcc63e84e6aee1a3e34
[ "MIT" ]
6
2019-11-20T14:12:25.000Z
2021-01-04T13:23:30.000Z
Main/modules/lin_decoder.py
XIAO-LI-UPF/Natural-Language-ParagraphGeneration
7d13e087bd2baa9a7f393fcc63e84e6aee1a3e34
[ "MIT" ]
2
2020-02-17T21:24:40.000Z
2020-07-21T11:24:07.000Z
Main/modules/lin_decoder.py
XIAO-LI-UPF/Natural-Language-ParagraphGeneration
7d13e087bd2baa9a7f393fcc63e84e6aee1a3e34
[ "MIT" ]
null
null
null
import dynet as dy import dynet_modules as dm import numpy as np import random from utils import * from time import time from collections import defaultdict from modules.seq_encoder import SeqEncoder from modules.bag_encoder import BagEncoder from modules.tree_encoder import TreeEncoder class LinDecoder(Decoder): ...
41.357016
131
0.587528