hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 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 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | 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 251 | max_forks_repo_name stringlengths 4 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.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eb8e5cd617af66b94c18d48447eab26b2fd59f7d | 146 | py | Python | active_campaign/ecommerce/__init__.py | jlorencelim/active-campaign | 39d5d252bc19ee788f74d9c1ffa7745cbfcbdc2e | [
"MIT"
] | null | null | null | active_campaign/ecommerce/__init__.py | jlorencelim/active-campaign | 39d5d252bc19ee788f74d9c1ffa7745cbfcbdc2e | [
"MIT"
] | 1 | 2019-02-12T22:51:53.000Z | 2019-02-13T03:08:11.000Z | active_campaign/ecommerce/__init__.py | jlorencelim/active-campaign | 39d5d252bc19ee788f74d9c1ffa7745cbfcbdc2e | [
"MIT"
] | 1 | 2019-02-08T09:28:13.000Z | 2019-02-08T09:28:13.000Z | from active_campaign.ecommerce.connection import *
from active_campaign.ecommerce.customer import *
from active_campaign.ecommerce.order import *
| 36.5 | 50 | 0.856164 |
eb8ee5342109da692604517a3d4dfd0b074ac7d4 | 1,027 | py | Python | onlinejudge_template/generator/hook.py | beet-aizu/template-generator | dd4d54356445ee0e01d1557e9715848eab5d553b | [
"MIT"
] | 42 | 2020-05-06T07:05:57.000Z | 2022-03-27T01:11:53.000Z | onlinejudge_template/generator/hook.py | beet-aizu/template-generator | dd4d54356445ee0e01d1557e9715848eab5d553b | [
"MIT"
] | 31 | 2020-05-16T20:12:24.000Z | 2021-06-14T15:54:01.000Z | onlinejudge_template/generator/hook.py | beet-aizu/template-generator | dd4d54356445ee0e01d1557e9715848eab5d553b | [
"MIT"
] | 12 | 2020-07-16T16:05:26.000Z | 2022-03-02T07:49:28.000Z | import shlex
import subprocess
import sys
import traceback
from logging import getLogger
from typing import *
logger = getLogger(__name__)
| 27.756757 | 89 | 0.629017 |
eb8f7dc0abbc7c31d707f920a9ab8b13428481aa | 3,225 | py | Python | extractor/pdf/json_read.py | srinidhi005/Angular-latest | fdc8b2cfb1dcf9b64b6ec0263e6a4b7324fce66b | [
"MIT"
] | null | null | null | extractor/pdf/json_read.py | srinidhi005/Angular-latest | fdc8b2cfb1dcf9b64b6ec0263e6a4b7324fce66b | [
"MIT"
] | 2 | 2021-06-02T00:37:10.000Z | 2022-03-02T06:18:55.000Z | extractor/pdf/json_read.py | srinidhi005/Angular_Nov | 39cb5dce0200698281f81bd36a22ac45cee71fa8 | [
"MIT"
] | null | null | null | import json
import openpyxl
import requests
import sys
def write_to_excel(data):
"""
Writes to excel
:param statement_data:
:return:
"""
template_file = sys.argv[1] + "/1ExtractionGSheet_Template.xlsx"
company = "Nike"
wb = openpyxl.load_workbook(filename=template_file)
ws = wb.wor... | 35.43956 | 88 | 0.610543 |
eb8f7e91b648204f5c7919765385b1f61ee83596 | 573 | py | Python | tests/test_util.py | LivingTrades83/fast_arrow | 1b7bd00c9151f0bb7c1a746219ecda3c3060363d | [
"MIT"
] | 143 | 2018-07-24T02:09:07.000Z | 2021-12-15T04:40:25.000Z | tests/test_util.py | LivingTrades83/fast_arrow | 1b7bd00c9151f0bb7c1a746219ecda3c3060363d | [
"MIT"
] | 67 | 2018-08-01T05:46:54.000Z | 2020-07-23T22:46:25.000Z | tests/test_util.py | LivingTrades83/fast_arrow | 1b7bd00c9151f0bb7c1a746219ecda3c3060363d | [
"MIT"
] | 46 | 2018-09-05T12:48:14.000Z | 2020-10-06T19:36:03.000Z | import vcr
from fast_arrow import Client
| 20.464286 | 71 | 0.621291 |
eb8fa34f6b204cef1701b2e9f71c854c05d7f905 | 2,098 | py | Python | Chapter08/lecture02.py | ee06b056/IntoToProgramInPython | 86f81bb61832ebf043c5f79f6e6262ecee36e02f | [
"MIT"
] | null | null | null | Chapter08/lecture02.py | ee06b056/IntoToProgramInPython | 86f81bb61832ebf043c5f79f6e6262ecee36e02f | [
"MIT"
] | null | null | null | Chapter08/lecture02.py | ee06b056/IntoToProgramInPython | 86f81bb61832ebf043c5f79f6e6262ecee36e02f | [
"MIT"
] | null | null | null | import datetime
p5 = Grad('Buzz Aldrin')
p6 = UG('Billy Beaver', 1984)
print(p5)
print(type(p5)==Grad)
print(p6, type(p6) == UG)
print(UG)
me = Person('Michale Guttag')
him = Person('Barack Hussein Obama')
her = Person('Madonna')
print(him.getLastName())
him.setBirthday(datetime.date(1961,8,4))
her.se... | 21.191919 | 59 | 0.613441 |
eb91143845a1f590fe06042759141f48eb408ed3 | 4,184 | py | Python | demo/movielens/offline/tuner/.ipynb_checkpoints/swing_tuner-checkpoint.py | meta-soul/MetaSpore | e6fbc12c6a3139df76c87215b16f9dba65962ec7 | [
"Apache-2.0"
] | 32 | 2022-03-30T10:24:00.000Z | 2022-03-31T16:19:15.000Z | demo/movielens/offline/tuner/.ipynb_checkpoints/swing_tuner-checkpoint.py | meta-soul/MetaSpore | e6fbc12c6a3139df76c87215b16f9dba65962ec7 | [
"Apache-2.0"
] | null | null | null | demo/movielens/offline/tuner/.ipynb_checkpoints/swing_tuner-checkpoint.py | meta-soul/MetaSpore | e6fbc12c6a3139df76c87215b16f9dba65962ec7 | [
"Apache-2.0"
] | 3 | 2022-03-30T10:28:57.000Z | 2022-03-30T11:37:39.000Z | #
# Copyright 2022 DMetaSoul
#
# 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, ... | 47.545455 | 149 | 0.635038 |
eb9803a5e0baa1e4d1fb3304f8a8ad422126176c | 1,867 | py | Python | RSA-Encryption.py | aleyna-nur/RSA-Encryption | 8855274aeed1c6a32a7ac9ba7aa4b52326824e93 | [
"MIT"
] | 1 | 2021-05-14T17:58:41.000Z | 2021-05-14T17:58:41.000Z | RSA-Encryption.py | aleyna-nur/RSA-Encryption | 8855274aeed1c6a32a7ac9ba7aa4b52326824e93 | [
"MIT"
] | null | null | null | RSA-Encryption.py | aleyna-nur/RSA-Encryption | 8855274aeed1c6a32a7ac9ba7aa4b52326824e93 | [
"MIT"
] | null | null | null |
#Aleyna Nur Kemik tarafndan yazlmtr.
print("""**********************
RSA ifreleme
**********************""")
rsa_ifreleme()
input("kmak iin w basnz!")
| 17.12844 | 79 | 0.469738 |
eb98c62cb81c9e1f46980d45576d6facbff48de7 | 4,074 | py | Python | scripts/lst-recopipe.py | thomasgas/cta-lstchain | 59dbc58f7dd7fb35aebce22489082ac885fac18b | [
"BSD-3-Clause"
] | null | null | null | scripts/lst-recopipe.py | thomasgas/cta-lstchain | 59dbc58f7dd7fb35aebce22489082ac885fac18b | [
"BSD-3-Clause"
] | null | null | null | scripts/lst-recopipe.py | thomasgas/cta-lstchain | 59dbc58f7dd7fb35aebce22489082ac885fac18b | [
"BSD-3-Clause"
] | null | null | null | """Pipeline for reconstruction of Energy, disp and gamma/hadron
separation of events stored in a simtelarray file.
Result is a dataframe with dl2 data.
Already trained Random Forests are required.
Usage:
$> python lst-recopipe arg1 arg2 ...
"""
from lstchain.reco import dl0_to_dl1
from lstchain.reco import dl1_to_d... | 36.053097 | 111 | 0.637948 |
eba09e82d95870e1a338a3290ec4e688db53f2a5 | 3,808 | py | Python | TaoBao/taobao/taobaoSpyder.py | 452sunny/CommoditySearch | 8420c44b9babdf5f67fc4adb76e04c62ff667536 | [
"MIT"
] | null | null | null | TaoBao/taobao/taobaoSpyder.py | 452sunny/CommoditySearch | 8420c44b9babdf5f67fc4adb76e04c62ff667536 | [
"MIT"
] | null | null | null | TaoBao/taobao/taobaoSpyder.py | 452sunny/CommoditySearch | 8420c44b9babdf5f67fc4adb76e04c62ff667536 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
# @Author : LiChenguang
# @Data : 2019/11/19
# @Email : chendemo12@gmail.com
# @sys : elementary OS
# @WebSite : www.searcher.ltd
# @Last Modified time : 2019/11/22
import random
from time import sleep
from loguru import logger
from pyquery import PyQuery as pq
from selenium imp... | 30.464 | 159 | 0.609506 |
eba2a4157afe66a9cc8c37d69f6f383bee6d8670 | 6,330 | py | Python | gpy_dla_detection/set_parameters.py | jibanCat/gpy_dla_detection | 4d987adec75a417313fdc6601ee41a0ea60a0a2e | [
"MIT"
] | 1 | 2020-07-31T01:31:52.000Z | 2020-07-31T01:31:52.000Z | gpy_dla_detection/set_parameters.py | jibanCat/gpy_dla_detection | 4d987adec75a417313fdc6601ee41a0ea60a0a2e | [
"MIT"
] | 12 | 2020-07-20T18:55:15.000Z | 2021-09-23T05:08:26.000Z | gpy_dla_detection/set_parameters.py | jibanCat/gpy_dla_detection | 4d987adec75a417313fdc6601ee41a0ea60a0a2e | [
"MIT"
] | null | null | null | """
set_parameters.py : sets various parameters for the DLA detection
pipeline.
Note:
----
Physical constants are handled as class attrs
Pipeline parameters are handled as instance attrs
Lambda functions are handled as instance methods
"""
import numpy as np
def min_z_dla(self, wavelengths: np.ndarray, z_qso: fl... | 39.31677 | 89 | 0.641074 |
eba5f32d8456e98d8ab0ed1766680d64917f1dde | 233 | py | Python | python/testData/refactoring/extractsuperclass/importMultiFile/dest_module.after.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/refactoring/extractsuperclass/importMultiFile/dest_module.after.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/refactoring/extractsuperclass/importMultiFile/dest_module.after.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | import shared_module
from shared_module import module_function as my_function, ModuleClass
| 25.888889 | 69 | 0.742489 |
eba61c0b782b159106d54529b95614abe5bd49cc | 4,856 | py | Python | poptox/leslie/leslie_output.py | quanted/poptox | 5579f9571ff7e3bddf5ed79c3641337e3df7f8f2 | [
"Unlicense"
] | 1 | 2016-03-20T21:15:41.000Z | 2016-03-20T21:15:41.000Z | poptox/leslie/leslie_output.py | quanted/poptox | 5579f9571ff7e3bddf5ed79c3641337e3df7f8f2 | [
"Unlicense"
] | null | null | null | poptox/leslie/leslie_output.py | quanted/poptox | 5579f9571ff7e3bddf5ed79c3641337e3df7f8f2 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
import os
os.environ['DJANGO_SETTINGS_MODULE']='settings'
from logistic import logisticdb
import webapp2 as webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext.webapp import template
import numpy as np
import cgi
import cgitb
cgitb.enable()
app... | 44.550459 | 237 | 0.423394 |
eba89f34e7606a762584e2b3a52a632595f91253 | 2,003 | py | Python | poetcli/controllers/collectionController.py | jkerola/poetcli | e307513fa073beaddd7247d944fcef7092ee95dd | [
"MIT"
] | null | null | null | poetcli/controllers/collectionController.py | jkerola/poetcli | e307513fa073beaddd7247d944fcef7092ee95dd | [
"MIT"
] | null | null | null | poetcli/controllers/collectionController.py | jkerola/poetcli | e307513fa073beaddd7247d944fcef7092ee95dd | [
"MIT"
] | null | null | null | from cement import Controller, ex
from ..utils import databaseUtils, controllerUtils
| 30.815385 | 77 | 0.532202 |
eba8c920e6c6913b87771e6f659a4e3e12957800 | 87 | py | Python | Python tripartite framework/Django/code/mysite/cookie/apps.py | Ljazz/studyspace | b235e7d16fecf93dd64ad785833d4de5bb17db64 | [
"MIT"
] | null | null | null | Python tripartite framework/Django/code/mysite/cookie/apps.py | Ljazz/studyspace | b235e7d16fecf93dd64ad785833d4de5bb17db64 | [
"MIT"
] | null | null | null | Python tripartite framework/Django/code/mysite/cookie/apps.py | Ljazz/studyspace | b235e7d16fecf93dd64ad785833d4de5bb17db64 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 14.5 | 33 | 0.747126 |
ebaa12dfe3c453e3d66b39d44b68120484551c95 | 3,548 | py | Python | splendor_sim/src/coin/coin_reserve.py | markbrockettrobson/SplendorBots | f78fab8cccf30c9cc4351308eedfca4203e55463 | [
"MIT"
] | 1 | 2019-06-19T02:00:32.000Z | 2019-06-19T02:00:32.000Z | splendor_sim/src/coin/coin_reserve.py | markbrockettrobson/SplendorBots | f78fab8cccf30c9cc4351308eedfca4203e55463 | [
"MIT"
] | null | null | null | splendor_sim/src/coin/coin_reserve.py | markbrockettrobson/SplendorBots | f78fab8cccf30c9cc4351308eedfca4203e55463 | [
"MIT"
] | null | null | null | import copy
import typing
import splendor_sim.interfaces.coin.i_coin_reserve as i_coin_reserve
import splendor_sim.interfaces.coin.i_coin_type as i_coin_type
import splendor_sim.interfaces.coin.i_coin_type_manager as i_coin_type_manager
| 41.255814 | 88 | 0.655017 |
ebaa996dedecfab8722ce05c03253747907e1a81 | 94 | py | Python | newsdemo/apps/crawler/views.py | zeyap/news_viz | 597b078255aa5a95623643089bb51dcaebe63c32 | [
"MIT"
] | 1 | 2019-01-08T03:13:11.000Z | 2019-01-08T03:13:11.000Z | newsdemo/apps/crawler/views.py | zeyap/news_viz | 597b078255aa5a95623643089bb51dcaebe63c32 | [
"MIT"
] | null | null | null | newsdemo/apps/crawler/views.py | zeyap/news_viz | 597b078255aa5a95623643089bb51dcaebe63c32 | [
"MIT"
] | null | null | null | from django.http import HttpResponse
from django.contrib.auth import authenticate
import json
| 23.5 | 44 | 0.861702 |
ebac4bfc3e33998220d5884f2925dfb01805bca2 | 30,104 | py | Python | pyVHDLModel/VHDLModel.py | Xiretza/pyVHDLModel | 2301a2fa79b737852e6c53ed77f376b958371810 | [
"Apache-2.0"
] | null | null | null | pyVHDLModel/VHDLModel.py | Xiretza/pyVHDLModel | 2301a2fa79b737852e6c53ed77f376b958371810 | [
"Apache-2.0"
] | null | null | null | pyVHDLModel/VHDLModel.py | Xiretza/pyVHDLModel | 2301a2fa79b737852e6c53ed77f376b958371810 | [
"Apache-2.0"
] | null | null | null | # =============================================================================
# __ ___ _ ____ _ __ __ _ _
# _ __ _ \ \ / / | | | _ \| | | \/ | ___ __| | ___| |
# | '_ \| | | \ \ / /| |_| | | | | | | |\/| |/ _ \ / _` |/ _ \ |
# | |_) | |_| |\ V / | _ | |_| | |... | 20.244788 | 101 | 0.710171 |
ebaff692d1c7598b729e00f72b05b46cc90bad37 | 1,696 | py | Python | tests/serializer/test_as_pickle.py | pablobd/dagger | 41286063338c90644508451c4133f32f24b6d6fc | [
"Apache-2.0"
] | null | null | null | tests/serializer/test_as_pickle.py | pablobd/dagger | 41286063338c90644508451c4133f32f24b6d6fc | [
"Apache-2.0"
] | null | null | null | tests/serializer/test_as_pickle.py | pablobd/dagger | 41286063338c90644508451c4133f32f24b6d6fc | [
"Apache-2.0"
] | null | null | null | import pytest
from dagger.serializer.as_pickle import AsPickle
from dagger.serializer.errors import DeserializationError, SerializationError
from dagger.serializer.protocol import Serializer
| 23.887324 | 77 | 0.645637 |
ebb01965890ba34194c2cbeef67583eacd7e6263 | 132 | py | Python | block_2/task_3.py | erdyneevzt/stepik_python | 014fb618426dbee7f76b317c539d7d0363c87d15 | [
"MIT"
] | null | null | null | block_2/task_3.py | erdyneevzt/stepik_python | 014fb618426dbee7f76b317c539d7d0363c87d15 | [
"MIT"
] | null | null | null | block_2/task_3.py | erdyneevzt/stepik_python | 014fb618426dbee7f76b317c539d7d0363c87d15 | [
"MIT"
] | null | null | null | i = 1
while i != 0:
i = int(input())
if i > 100:
break
elif i < 10:
continue
else:
print(i)
| 13.2 | 20 | 0.409091 |
ebb13a34f8127fcf23ca00f30833fd6aeea18caf | 7,778 | py | Python | dabble/nn.py | bibarz/bibarz.github.io | 354f9dc8484a745737230f59524966d5452dd818 | [
"MIT"
] | null | null | null | dabble/nn.py | bibarz/bibarz.github.io | 354f9dc8484a745737230f59524966d5452dd818 | [
"MIT"
] | null | null | null | dabble/nn.py | bibarz/bibarz.github.io | 354f9dc8484a745737230f59524966d5452dd818 | [
"MIT"
] | null | null | null | import collections
import math
import cv2
import scipy.weave
import numpy as np
import time
import os
import random
def test_gradients():
sizes = [5, 3, 2]
eps = 1e-9
n = NN(sizes, [Atan] * (len(sizes) - 1), init_w_scale=0.1)
w = [x.copy() for x in n._w]
b = [x.copy() for x in n._b]
input =... | 38.315271 | 120 | 0.564027 |
ebb14cfe754e8fbf54ff0f80ed23871e4a0f6420 | 1,519 | py | Python | datasets/inference_dataset.py | davidetalon/encoder4editing | 100a90297a47fc67e49986840a6922a9c0f03cdb | [
"MIT"
] | null | null | null | datasets/inference_dataset.py | davidetalon/encoder4editing | 100a90297a47fc67e49986840a6922a9c0f03cdb | [
"MIT"
] | null | null | null | datasets/inference_dataset.py | davidetalon/encoder4editing | 100a90297a47fc67e49986840a6922a9c0f03cdb | [
"MIT"
] | null | null | null | from torch.utils.data import Dataset
from PIL import Image
from pathlib import Path
import pandas
import torch
# from utils import data_utils
if __name__ == '__main__':
dataset = InferenceDataset("/home/davidetalon/Dev/learning-self/data/raw/celeba", split='train', opts=None ) | 29.784314 | 109 | 0.719552 |
ebb2886b1a8c6866953ed33f80a9da4d630c95df | 1,261 | py | Python | tests/xpath_first_test.py | p/webracer | 3eb40b520bbf884c4458482fc3a05a9a9632d026 | [
"BSD-2-Clause"
] | null | null | null | tests/xpath_first_test.py | p/webracer | 3eb40b520bbf884c4458482fc3a05a9a9632d026 | [
"BSD-2-Clause"
] | null | null | null | tests/xpath_first_test.py | p/webracer | 3eb40b520bbf884c4458482fc3a05a9a9632d026 | [
"BSD-2-Clause"
] | 1 | 2019-04-13T07:43:28.000Z | 2019-04-13T07:43:28.000Z | import unittest
import lxml.etree
import webracer.utils
if __name__ == '__main__':
import unittest
unittest.main()
| 33.184211 | 82 | 0.64314 |
ebb3d6fab765a0117b5d480ea9aba0880f2a0728 | 4,900 | py | Python | api/robot_abstract.py | alexisvincent/downy | 55f18e603c387dbd543f85eb07098e8f170fc93c | [
"Apache-2.0"
] | null | null | null | api/robot_abstract.py | alexisvincent/downy | 55f18e603c387dbd543f85eb07098e8f170fc93c | [
"Apache-2.0"
] | null | null | null | api/robot_abstract.py | alexisvincent/downy | 55f18e603c387dbd543f85eb07098e8f170fc93c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python2.4
#
# Copyright 2009 Google Inc. All Rights Reserved.
"""Defines the generic robot classes.
This module provides the Robot class and RobotListener interface,
as well as some helper functions for web requests and responses.
"""
__author__ = 'davidbyttow@google.com (David Byttow)'
import events
imp... | 33.793103 | 80 | 0.686939 |
ebb43952950a09f8b9b36788363e817d574fe4e8 | 92 | py | Python | tabtomidi/__init__.py | JoshRosen/tabtomidi | 85dc6019c329a9da2783831d9885b3dc04fbae6d | [
"BSD-3-Clause"
] | 3 | 2015-07-16T22:23:25.000Z | 2019-06-16T08:51:36.000Z | tabtomidi/__init__.py | JoshRosen/tabtomidi | 85dc6019c329a9da2783831d9885b3dc04fbae6d | [
"BSD-3-Clause"
] | null | null | null | tabtomidi/__init__.py | JoshRosen/tabtomidi | 85dc6019c329a9da2783831d9885b3dc04fbae6d | [
"BSD-3-Clause"
] | null | null | null | from tabtomidi.drumtabs import Tab, TabParsingException, \
UnmappableNoteNamesException
| 30.666667 | 58 | 0.836957 |
ebb80e208f95ea02d935f3e5ff23d63356a0f120 | 1,178 | py | Python | setup.py | adaros92/genreml | 19e044a9d8507665aa95d74e111195cef6f0f272 | [
"MIT"
] | 5 | 2020-10-11T20:13:21.000Z | 2020-12-04T20:21:29.000Z | setup.py | adaros92/genreml | 19e044a9d8507665aa95d74e111195cef6f0f272 | [
"MIT"
] | 5 | 2020-10-12T19:50:40.000Z | 2020-11-24T01:41:03.000Z | setup.py | adaros92/CS467-Project | 19e044a9d8507665aa95d74e111195cef6f0f272 | [
"MIT"
] | 4 | 2020-10-08T18:12:13.000Z | 2020-11-15T23:30:19.000Z | import pathlib
from setuptools import setup, find_packages
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# The text of the README file
README = (HERE / "README.md").read_text()
setup(
description='Data extraction and processing for genre prediction using ML',
long_description=REA... | 30.205128 | 98 | 0.634126 |
ebbcd45eeb82c5e35c3719bd7c3f7d2ecb629979 | 2,023 | py | Python | api/tests/test_item.py | sam-myers/loadstone | d2d522a35da6c1d7d9fddbd4d4b04aed69715fcc | [
"MIT"
] | null | null | null | api/tests/test_item.py | sam-myers/loadstone | d2d522a35da6c1d7d9fddbd4d4b04aed69715fcc | [
"MIT"
] | null | null | null | api/tests/test_item.py | sam-myers/loadstone | d2d522a35da6c1d7d9fddbd4d4b04aed69715fcc | [
"MIT"
] | null | null | null | import pytest
| 25.607595 | 102 | 0.608502 |
ebbe51a71023d28bc63e8c9ab8ddea8040401241 | 37,972 | py | Python | switch_model/generators/core/build.py | staadecker/switch | b96f2e6a255e870c97bf2a8e88ead42e02f1a85c | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2021-06-03T00:23:57.000Z | 2022-02-05T13:51:00.000Z | switch_model/generators/core/build.py | staadecker/switch | b96f2e6a255e870c97bf2a8e88ead42e02f1a85c | [
"ECL-2.0",
"Apache-2.0"
] | 61 | 2021-05-07T23:46:20.000Z | 2022-02-17T01:19:17.000Z | switch_model/generators/core/build.py | staadecker/switch | b96f2e6a255e870c97bf2a8e88ead42e02f1a85c | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2018-02-05T02:01:01.000Z | 2020-11-17T22:14:26.000Z | # Copyright (c) 2015-2019 The Switch Authors. All rights reserved.
# Licensed under the Apache License, Version 2.0, which is in the LICENSE file.
"""
Defines generation projects build-outs.
INPUT FILE FORMAT
Import data describing project builds. The following files are
expected in the input directory.
g... | 47.524406 | 121 | 0.699226 |
ebc110b573b1cf7572c4f26820f00000528c8588 | 3,111 | py | Python | tryout/Networks.py | binhnguyen1984/Deep-Reinforcement-Learning-Algorithms-with-PyTorch | 7fcb50ac8bbc7df56fc207fb22d7c2b047ed55d2 | [
"MIT"
] | null | null | null | tryout/Networks.py | binhnguyen1984/Deep-Reinforcement-Learning-Algorithms-with-PyTorch | 7fcb50ac8bbc7df56fc207fb22d7c2b047ed55d2 | [
"MIT"
] | null | null | null | tryout/Networks.py | binhnguyen1984/Deep-Reinforcement-Learning-Algorithms-with-PyTorch | 7fcb50ac8bbc7df56fc207fb22d7c2b047ed55d2 | [
"MIT"
] | null | null | null | from Utils import uniform_params_initialization
import torch
import torch.nn as nn
from torch.nn.init import calculate_gain
| 32.40625 | 109 | 0.596271 |
ebc1fde7f5eab4850e52e3032a953a70b9dcfd1e | 161 | py | Python | Python/1170.py | alinemarchiori/URI_Exercises_Solved | 957681174207388fdb54d6d1a945303ba1ad18f3 | [
"MIT"
] | null | null | null | Python/1170.py | alinemarchiori/URI_Exercises_Solved | 957681174207388fdb54d6d1a945303ba1ad18f3 | [
"MIT"
] | null | null | null | Python/1170.py | alinemarchiori/URI_Exercises_Solved | 957681174207388fdb54d6d1a945303ba1ad18f3 | [
"MIT"
] | null | null | null | n = int(input())
for i in range(n):
dias = 0
valor = float(input())
while valor>1:
valor = valor/2
dias += 1
print(dias, "dias") | 20.125 | 26 | 0.503106 |
ebc287d0ebc887bb7da84e451c9e3c1008c869fe | 136 | py | Python | models/__init__.py | dpressel/ComerNet | db7c93e936f33c814c6dc6bd7b765ab660f59f85 | [
"Apache-2.0"
] | 30 | 2019-10-08T08:05:02.000Z | 2021-12-20T08:59:00.000Z | models/__init__.py | dpressel/ComerNet | db7c93e936f33c814c6dc6bd7b765ab660f59f85 | [
"Apache-2.0"
] | 4 | 2019-10-29T09:28:24.000Z | 2020-04-09T05:57:08.000Z | models/__init__.py | dpressel/ComerNet | db7c93e936f33c814c6dc6bd7b765ab660f59f85 | [
"Apache-2.0"
] | 7 | 2020-01-28T07:03:23.000Z | 2021-05-21T18:50:29.000Z | from models.attention import *
from models.rnn import *
from models.seq2seq import *
from models.loss import *
from models.beam import * | 27.2 | 30 | 0.786765 |
ebc3b53e16e62253e51ad419c5ed6599ebb1c2c0 | 80 | py | Python | dnswitcher/utils.py | jinxingxing/SmartDns | 4a7eaef1d05dcc73f1c78b6bac4f335981945518 | [
"MIT"
] | 2 | 2021-08-24T03:08:56.000Z | 2022-03-07T08:45:50.000Z | dnswitcher/utils.py | jinxingxing/SmartDns | 4a7eaef1d05dcc73f1c78b6bac4f335981945518 | [
"MIT"
] | null | null | null | dnswitcher/utils.py | jinxingxing/SmartDns | 4a7eaef1d05dcc73f1c78b6bac4f335981945518 | [
"MIT"
] | 2 | 2020-07-25T11:14:09.000Z | 2021-06-14T14:47:32.000Z | # coding: utf8
__author__ = 'JinXing'
import logging
logger = logging
| 10 | 23 | 0.6625 |
ebc3f12d5c99d4e6a1f3086f75aadcab92ac7ac3 | 357 | py | Python | setup.py | tradr-project/doxygen_catkin | 12e5592b62830ddc6c4a4ca8612310f55ac97e4e | [
"BSD-3-Clause"
] | 5 | 2018-01-15T08:25:39.000Z | 2022-03-07T01:03:50.000Z | setup.py | jackiecx/doxygen_catkin | 12e5592b62830ddc6c4a4ca8612310f55ac97e4e | [
"BSD-3-Clause"
] | 1 | 2021-08-31T04:00:09.000Z | 2021-08-31T04:00:09.000Z | setup.py | jackiecx/doxygen_catkin | 12e5592b62830ddc6c4a4ca8612310f55ac97e4e | [
"BSD-3-Clause"
] | 14 | 2015-08-11T07:29:20.000Z | 2022-03-24T08:30:05.000Z |
## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['doxygen_catkin'],
package_dir={'':'bin'},
scripts=['bin/doxygen-cat... | 23.8 | 61 | 0.756303 |
ebc4b226128f128ab416eb15c97b1966e0db396a | 1,873 | py | Python | Python/5 - kyu/5 kyu - Directions Reduction.py | danielbom/codewars | d45b5a813c6f1d952a50d22f0b2fcea4ef3d0e27 | [
"MIT"
] | null | null | null | Python/5 - kyu/5 kyu - Directions Reduction.py | danielbom/codewars | d45b5a813c6f1d952a50d22f0b2fcea4ef3d0e27 | [
"MIT"
] | null | null | null | Python/5 - kyu/5 kyu - Directions Reduction.py | danielbom/codewars | d45b5a813c6f1d952a50d22f0b2fcea4ef3d0e27 | [
"MIT"
] | null | null | null | # https://www.codewars.com/kata/directions-reduction/train/python
# My solution
import re
# ...
# ...
opposite = {'NORTH': 'SOUTH', 'EAST': 'WEST', 'SOUTH': 'NORTH', 'WEST': 'EAST'}
# ...
# ...
# ...
| 30.209677 | 115 | 0.484784 |
ebc55043f044d10c30085bca53bea8be6b45e20a | 5,509 | py | Python | src/mrack/providers/provider.py | pvoborni/mrack | e5bc9211bcbfc8a8fe1709186e21c337e20fd55e | [
"Apache-2.0"
] | 1 | 2020-07-30T11:42:14.000Z | 2020-07-30T11:42:14.000Z | src/mrack/providers/provider.py | pvoborni/mrack | e5bc9211bcbfc8a8fe1709186e21c337e20fd55e | [
"Apache-2.0"
] | 15 | 2020-07-29T19:27:39.000Z | 2020-09-29T12:26:17.000Z | src/mrack/providers/provider.py | pvoborni/mrack | e5bc9211bcbfc8a8fe1709186e21c337e20fd55e | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Red Hat Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 35.089172 | 88 | 0.662915 |
ebc6b221884babfc5a1e1d9fe65dc3dc5436317b | 1,925 | py | Python | analysis/plothistcmp.py | yzxamos/BRAINS | b81cec02a1902df1e544542a970b66d9916a7496 | [
"MIT"
] | 6 | 2018-11-16T13:37:42.000Z | 2021-05-18T07:46:45.000Z | analysis/plothistcmp.py | yzxamos/BRAINS | b81cec02a1902df1e544542a970b66d9916a7496 | [
"MIT"
] | null | null | null | analysis/plothistcmp.py | yzxamos/BRAINS | b81cec02a1902df1e544542a970b66d9916a7496 | [
"MIT"
] | 4 | 2019-06-12T13:51:29.000Z | 2020-11-22T12:54:58.000Z | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.ticker import MultipleLocator
d=np.loadtxt("../data/posterior_sample2d.txt", skiprows=1)
fig = plt.figure(figsize=(10, 10))
ax1 = fig.add_axes((0.1, 0.7, 0.2, 0.25))
ax1.plot(d[:, 4], d[:, 8]/np.log(10.0)+6.0, ls='none', marker='.', markersize=3)
[... | 32.083333 | 80 | 0.682597 |
ebc847a8132f31d981af60c0c793d8e32b226266 | 9,918 | py | Python | src/m1_run_this_on_laptop.py | mdhummel076/99-CapstoneProject-201920 | 2909323ea0d72171394220b11d4cd67dc010cede | [
"MIT"
] | null | null | null | src/m1_run_this_on_laptop.py | mdhummel076/99-CapstoneProject-201920 | 2909323ea0d72171394220b11d4cd67dc010cede | [
"MIT"
] | null | null | null | src/m1_run_this_on_laptop.py | mdhummel076/99-CapstoneProject-201920 | 2909323ea0d72171394220b11d4cd67dc010cede | [
"MIT"
] | null | null | null | """
Capstone Project. Code to run on a LAPTOP (NOT the robot).
Displays the Graphical User Interface (GUI) and communicates with the robot.
Authors: Your professors (for the framework)
and Matt Hummel.
Winter term, 2018-2019.
"""
import mqtt_remote_method_calls as com
import tkinter
from tkinter import ... | 33.170569 | 116 | 0.574511 |
ebc9a015ab949fdcfb60e7b51e947611d1484b5d | 3,894 | py | Python | tests/unit/test_moderate_image.py | CheranMahalingam/Image_Content_Moderation | b37161a3c67368aa4d121598b28fda97e8786042 | [
"MIT"
] | null | null | null | tests/unit/test_moderate_image.py | CheranMahalingam/Image_Content_Moderation | b37161a3c67368aa4d121598b28fda97e8786042 | [
"MIT"
] | null | null | null | tests/unit/test_moderate_image.py | CheranMahalingam/Image_Content_Moderation | b37161a3c67368aa4d121598b28fda97e8786042 | [
"MIT"
] | null | null | null | """Module testing methods in moderate_image.py"""
import boto3
from moto import mock_s3
import unittest
import os
from PIL import Image
from io import BytesIO
import sys
sys.path.insert(1, '../../lambdas/moderate_content/handler')
BUCKET_NAME = 'test_bucket'
OBJECT_KEY = "test-key"
if __name__ == '__main__':
... | 31.658537 | 97 | 0.619414 |
ebca78cf85e23623d8ce8975f718a8c0042b6089 | 1,030 | py | Python | setup.py | garethtilley/referredby | 5c6a52f17efc7ffd618078458844d456eb8b6683 | [
"0BSD"
] | null | null | null | setup.py | garethtilley/referredby | 5c6a52f17efc7ffd618078458844d456eb8b6683 | [
"0BSD"
] | null | null | null | setup.py | garethtilley/referredby | 5c6a52f17efc7ffd618078458844d456eb8b6683 | [
"0BSD"
] | null | null | null | # -*- coding: utf-8 -*-
#
# setup.py
# referredby
#
"""
Packaging for the referredby project.
"""
from setuptools import setup
VERSION = '0.1.3'
setup(
name='referredby',
description="Parsing referrer URLS for common search engines.",
url="http://github.com/larsyencken/referredby/",
version=VERSIO... | 25.121951 | 67 | 0.6 |
ebcc6309f0776662cef038525e082e3a9f063621 | 2,795 | py | Python | handlers/admins_tools_handl.py | bbt-t/Yuuko | 6b0d7862b14fe739be52d87ff8c8610a3f4548e1 | [
"Apache-2.0"
] | null | null | null | handlers/admins_tools_handl.py | bbt-t/Yuuko | 6b0d7862b14fe739be52d87ff8c8610a3f4548e1 | [
"Apache-2.0"
] | null | null | null | handlers/admins_tools_handl.py | bbt-t/Yuuko | 6b0d7862b14fe739be52d87ff8c8610a3f4548e1 | [
"Apache-2.0"
] | null | null | null | from aiogram.dispatcher import FSMContext
from aiogram.dispatcher.filters import Command
from aiogram.types import Message, CallbackQuery
from sqlalchemy.exc import NoResultFound
from loader import dp, logger_guru
from utils.database_manage.sql.sql_commands import DB_USERS
from utils.keyboards.admins_tools_kb import t... | 40.507246 | 110 | 0.703041 |
ebce0f1cc5abfe04fd5dd1972c3075276279ddf1 | 4,926 | py | Python | root_gnn/src/models/global_learner.py | jacoblyons98/root_gnn | 1bb2bd7a985e60f2afd34622b90abf87c8de2fa7 | [
"Apache-2.0"
] | 1 | 2022-01-24T04:47:06.000Z | 2022-01-24T04:47:06.000Z | root_gnn/src/models/global_learner.py | Andris-Huang/root_gnn | cf4ff0be6800f19fca4d8365426bf031de2809c9 | [
"Apache-2.0"
] | null | null | null | root_gnn/src/models/global_learner.py | Andris-Huang/root_gnn | cf4ff0be6800f19fca4d8365426bf031de2809c9 | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
import sonnet as snt
from graph_nets import utils_tf
from graph_nets import modules
from graph_nets import blocks
from root_gnn.src.models.base import MLPGraphNetwork
from root_gnn.src.models.base import make_mlp_model
from functools import partial
| 38.787402 | 114 | 0.672351 |
ebce968d2e85b503c8dd92b078bf65aef8b7b726 | 384 | py | Python | accounts/migrations/0004_auto_20200102_1952.py | venieri/cancan | 5a10d6aa9911733e78eee062025a7b1af96e6167 | [
"CC0-1.0"
] | null | null | null | accounts/migrations/0004_auto_20200102_1952.py | venieri/cancan | 5a10d6aa9911733e78eee062025a7b1af96e6167 | [
"CC0-1.0"
] | null | null | null | accounts/migrations/0004_auto_20200102_1952.py | venieri/cancan | 5a10d6aa9911733e78eee062025a7b1af96e6167 | [
"CC0-1.0"
] | null | null | null | # Generated by Django 3.0.1 on 2020-01-02 19:52
from django.db import migrations
| 20.210526 | 48 | 0.606771 |
ebcfcb17f63d054cbc04f8aa3f5d779478dc0425 | 1,486 | py | Python | plastiqpublicapi/models/client_secrets_response.py | jeffkynaston/sdk-spike-python-apimatic | e1ca52116aabfcdb2f36c24ebd866cf00bb5c6c9 | [
"MIT"
] | null | null | null | plastiqpublicapi/models/client_secrets_response.py | jeffkynaston/sdk-spike-python-apimatic | e1ca52116aabfcdb2f36c24ebd866cf00bb5c6c9 | [
"MIT"
] | null | null | null | plastiqpublicapi/models/client_secrets_response.py | jeffkynaston/sdk-spike-python-apimatic | e1ca52116aabfcdb2f36c24ebd866cf00bb5c6c9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
plastiqpublicapi
This file was automatically generated by APIMATIC v3.0 (
https://www.apimatic.io ).
"""
| 26.535714 | 79 | 0.612382 |
ebd0549a213308637c6f848f038f0a822888d2d4 | 3,221 | py | Python | inputSources.py | Paul-31415/soundplay | 0e7ea27c6d4bdf5f94e5034c7775a10c62d1583e | [
"MIT"
] | null | null | null | inputSources.py | Paul-31415/soundplay | 0e7ea27c6d4bdf5f94e5034c7775a10c62d1583e | [
"MIT"
] | null | null | null | inputSources.py | Paul-31415/soundplay | 0e7ea27c6d4bdf5f94e5034c7775a10c62d1583e | [
"MIT"
] | null | null | null | import math
#matplotlib keyboard
noteKeys = "awsedftgyhujkolp;'"
eone = math.exp(2*math.pi)
def delaylineKeyboard(kb,f=lambda x:x*.75,fbase=440,offs=7,nk=noteKeys,sr=48000):
delays = [sr/(fbase*2**((i-offs)/12)) for i in range(len(nk))]
#nearest interp for now
delays = [round(d) for d in delays]
li... | 31.891089 | 94 | 0.529339 |
ebd0e053d31d6fa50f5235449f18875a98067924 | 1,225 | py | Python | lixian_commands/readd.py | ntkrnl/xunlei-lixian | ea418bf58671d727a66bc395f9407233b8346d4a | [
"MIT"
] | 1 | 2021-01-26T17:28:36.000Z | 2021-01-26T17:28:36.000Z | lixian_commands/readd.py | ntkrnl/xunlei-lixian | ea418bf58671d727a66bc395f9407233b8346d4a | [
"MIT"
] | null | null | null | lixian_commands/readd.py | ntkrnl/xunlei-lixian | ea418bf58671d727a66bc395f9407233b8346d4a | [
"MIT"
] | null | null | null | from lixian_commands.util import *
from lixian_cli_parser import *
from lixian_encoding import default_encoding
import lixian_help
import lixian_query
| 29.878049 | 70 | 0.66449 |
ebd1ec0dc2b71198cfd1f63f4c0430eed11130da | 8,438 | py | Python | CalculationUI.py | atharvaagrawal/analysis-of-NSE | 578020878f66478967dd91782fb9f4f01c815431 | [
"MIT"
] | 4 | 2019-07-04T16:34:15.000Z | 2021-11-23T03:15:35.000Z | CalculationUI.py | atharvaagrawal/analysis-of-NSE | 578020878f66478967dd91782fb9f4f01c815431 | [
"MIT"
] | null | null | null | CalculationUI.py | atharvaagrawal/analysis-of-NSE | 578020878f66478967dd91782fb9f4f01c815431 | [
"MIT"
] | 2 | 2021-07-04T15:09:29.000Z | 2021-11-12T04:06:21.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Calculation.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from Calculation.CalculatingLast5Days import CalculatingLast5Days
from PyQt5 import QtCore, QtGui, QtWidgets
... | 49.05814 | 109 | 0.702892 |
ebd29ea5e317f1eafd1c47389ca39d6b28f31ef3 | 27 | py | Python | SplitChannels/nionswift_plugin/split_channels/__init__.py | Brow71189/swift_workshop_18 | 436aca4b8f541d20a502f1e5d3ebfa8fe9a24bee | [
"MIT"
] | null | null | null | SplitChannels/nionswift_plugin/split_channels/__init__.py | Brow71189/swift_workshop_18 | 436aca4b8f541d20a502f1e5d3ebfa8fe9a24bee | [
"MIT"
] | null | null | null | SplitChannels/nionswift_plugin/split_channels/__init__.py | Brow71189/swift_workshop_18 | 436aca4b8f541d20a502f1e5d3ebfa8fe9a24bee | [
"MIT"
] | null | null | null | from . import SplitChannels | 27 | 27 | 0.851852 |
ebd2b2fe03b90102d953cf521a191782ba6e3aba | 1,072 | py | Python | cod2mapstats/utility.py | Lonsofore/CoD2MapStats | 1f1a6ad66864dcc8ee9add5ec8514e789bf12016 | [
"Apache-2.0"
] | 2 | 2020-05-30T17:39:08.000Z | 2020-12-07T20:50:17.000Z | cod2mapstats/utility.py | Lonsofore/CoD2MapStats | 1f1a6ad66864dcc8ee9add5ec8514e789bf12016 | [
"Apache-2.0"
] | null | null | null | cod2mapstats/utility.py | Lonsofore/CoD2MapStats | 1f1a6ad66864dcc8ee9add5ec8514e789bf12016 | [
"Apache-2.0"
] | 1 | 2022-01-30T02:33:53.000Z | 2022-01-30T02:33:53.000Z | import os
import sys
import inspect
from ruamel import yaml
| 22.808511 | 71 | 0.560634 |
ebd43551b7fa5af4e421313a7473ebde193df318 | 1,094 | py | Python | cute.py | eight04/node_vm2 | 08e7655b477f95cac67edb8c7e510cfd0b533f5a | [
"MIT"
] | 42 | 2017-07-11T16:25:35.000Z | 2022-03-25T04:22:08.000Z | cute.py | eight04/node_vm2 | 08e7655b477f95cac67edb8c7e510cfd0b533f5a | [
"MIT"
] | 34 | 2017-10-16T12:50:55.000Z | 2022-03-28T17:26:00.000Z | cute.py | eight04/node_vm2 | 08e7655b477f95cac67edb8c7e510cfd0b533f5a | [
"MIT"
] | 6 | 2019-03-05T06:52:16.000Z | 2021-12-01T09:35:28.000Z | #! python3
from xcute import cute, LiveReload
cute(
pkg_name = "node_vm2",
lint = [
'cd node_vm2/vm-server && npm test && cd ..',
'pylint {pkg_name}'
],
test = ['lint', 'python test.py', 'readme_build'],
bump_pre = 'test',
bump_post = ['dist', 'release', 'publish', 'install'],
dist_pre = 'x-clean build di... | 28.789474 | 71 | 0.645338 |
ebd4b6fb777cf8e45a2834b403e1946c1fa7cf97 | 3,294 | py | Python | ap/apps/events/factories.py | shacker/ap | 9059c5737b0dbef82e968cf8a9a6bf303c7a1688 | [
"BSD-3-Clause"
] | 1 | 2020-11-08T03:11:17.000Z | 2020-11-08T03:11:17.000Z | ap/apps/events/factories.py | shacker/ap | 9059c5737b0dbef82e968cf8a9a6bf303c7a1688 | [
"BSD-3-Clause"
] | null | null | null | ap/apps/events/factories.py | shacker/ap | 9059c5737b0dbef82e968cf8a9a6bf303c7a1688 | [
"BSD-3-Clause"
] | 1 | 2021-10-20T07:39:04.000Z | 2021-10-20T07:39:04.000Z | import random
from typing import Any
import factory
import pytz
from django.utils.text import slugify
from ap.apps.events.models import EVENT_TYPE_CHOICES, Event, Organization, Route
from ap.apps.users.constants import COUNTRY_CHOICES
from ap.apps.users.models import User
from ap.apps.events.factory_data import RANDO... | 38.302326 | 90 | 0.695811 |
ebd51d3b105cca287cb2dea319f1399c237f88a5 | 1,441 | py | Python | app/metrics_utils.py | Henry7871/jrcms | 289bfa43f7a6c45b0f0e197c615cc99000651691 | [
"MIT"
] | 1 | 2019-12-18T08:21:10.000Z | 2019-12-18T08:21:10.000Z | app/metrics_utils.py | Henry7871/jrcms | 289bfa43f7a6c45b0f0e197c615cc99000651691 | [
"MIT"
] | null | null | null | app/metrics_utils.py | Henry7871/jrcms | 289bfa43f7a6c45b0f0e197c615cc99000651691 | [
"MIT"
] | 21 | 2020-06-25T13:29:17.000Z | 2021-12-17T10:42:15.000Z | from flask import request
import time
import sys
from prometheus_client import Counter, Histogram
REQUEST_COUNT = Counter(
'request_count', 'App Request Count',
['app_name', 'method', 'endpoint', 'http_status']
)
REQUEST_LATENCY = Histogram('request_latency_seconds', 'Request latency',
... | 29.408163 | 84 | 0.674532 |
ebd599e1be227d179eec7386a3c54ddf3482bd99 | 25,402 | py | Python | clv/purchase_amount_model.py | caglanakpinar/clv_prediction | ab9a892623e6e57314ecf5267ca0163593d84aa7 | [
"MIT"
] | 1 | 2021-06-14T13:08:45.000Z | 2021-06-14T13:08:45.000Z | clv/purchase_amount_model.py | caglanakpinar/clv_prediction | ab9a892623e6e57314ecf5267ca0163593d84aa7 | [
"MIT"
] | 1 | 2021-05-23T18:07:05.000Z | 2021-06-19T12:42:58.000Z | clv/purchase_amount_model.py | caglanakpinar/clv_prediction | ab9a892623e6e57314ecf5267ca0163593d84aa7 | [
"MIT"
] | 1 | 2021-10-10T08:16:41.000Z | 2021-10-10T08:16:41.000Z | from pandas import DataFrame, concat
import os
from itertools import product
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '4'
import shutil
import glob
from tensorflow.keras.layers import Dense, LSTM, Input, BatchNormalization, Conv1D, MaxPooling1D, Dropout, Flatten
from tensorflow.keras.regularizers import l1, l2, l1_l2
from ... | 52.920833 | 124 | 0.54602 |
ebd79d4bda2a0d97bcf4306ed7b808cf533646e1 | 931 | py | Python | ex17.py | mparikh15/python_exercises | a1b19aa772eab1f88b756557b66830c15481c7cc | [
"MIT"
] | null | null | null | ex17.py | mparikh15/python_exercises | a1b19aa772eab1f88b756557b66830c15481c7cc | [
"MIT"
] | null | null | null | ex17.py | mparikh15/python_exercises | a1b19aa772eab1f88b756557b66830c15481c7cc | [
"MIT"
] | null | null | null | from sys import argv
from os.path import exists
script, from_file, to_file = argv # takes script, origin and export file as inputs
print "Copying from %s to %s" % (from_file, to_file) # Just saying what's going on
# we could do these two on one line, how?
indata = open(from_file).read() # Made it shorteer, b... | 38.791667 | 111 | 0.716434 |
ebd7cd656db5e2c2a691820f7fa3fc5a16dc1726 | 5,106 | py | Python | src/rqt_command_publisher/src/rqt_command_publisher/command_publisher.py | remvo/zstt-ros | 020afddc1e44fcce979aee32cb50d65f52289521 | [
"Apache-2.0"
] | null | null | null | src/rqt_command_publisher/src/rqt_command_publisher/command_publisher.py | remvo/zstt-ros | 020afddc1e44fcce979aee32cb50d65f52289521 | [
"Apache-2.0"
] | null | null | null | src/rqt_command_publisher/src/rqt_command_publisher/command_publisher.py | remvo/zstt-ros | 020afddc1e44fcce979aee32cb50d65f52289521 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from __future__ import division
import math
import random
import time
import genpy
import rospy
import roslib
from qt_gui.plugin import Plugin
from python_qt_binding.QtCore import Slot, QSignalMapper, QTimer
from python_qt_binding.QtWidgets import QHeaderView, QTableWidgetItem
from rqt_command_... | 40.52381 | 108 | 0.652957 |
ebd7f653bfbee98f4ef5616828bcf76553219a77 | 8,940 | py | Python | standalone/rl_experiments/q-learning.py | mdivband/arcade_swarm | bd387495b73da5530c4b934e1155f7fd316f739e | [
"MIT"
] | null | null | null | standalone/rl_experiments/q-learning.py | mdivband/arcade_swarm | bd387495b73da5530c4b934e1155f7fd316f739e | [
"MIT"
] | null | null | null | standalone/rl_experiments/q-learning.py | mdivband/arcade_swarm | bd387495b73da5530c4b934e1155f7fd316f739e | [
"MIT"
] | null | null | null | import time
import os
import arcade
import argparse
import gym
from gym import spaces
import swarm_env
import numpy as np
import random
import sys
sys.path.insert(0, '..')
from objects import SwarmSimulator
# Running experiment 22 in standalone file.
if __name__ == '__main__':
experiment_runner(operator_vision_r... | 54.181818 | 236 | 0.616555 |
ebd8b648287d21898cd1e3ca26e92ee2a5c0a23c | 10,048 | py | Python | plexdiscordbot/src/commands.py | bramnijssen/PlexDiscordBot | 8e439088686e73dc23522041f8841c0d9211159c | [
"MIT"
] | 1 | 2021-11-13T20:33:59.000Z | 2021-11-13T20:33:59.000Z | plexdiscordbot/src/commands.py | bramnijssen/PlexDiscordBot | 8e439088686e73dc23522041f8841c0d9211159c | [
"MIT"
] | null | null | null | plexdiscordbot/src/commands.py | bramnijssen/PlexDiscordBot | 8e439088686e73dc23522041f8841c0d9211159c | [
"MIT"
] | 1 | 2021-11-15T13:54:21.000Z | 2021-11-15T13:54:21.000Z | from helpers import *
from discord.ext import commands
from discord.ext.commands import Cog, Bot, command, Context
import database as db
import discord
import asyncio
| 38.351145 | 120 | 0.495721 |
ebd8d38524288d86e7f1871256ce08e3267f28ac | 1,070 | py | Python | XGBoost/XGBoost_v3/lib/sparse_vector_xrh.py | Xinrihui/Statistical-Learning-Method | 2e1c107bed8a21307596fbe0f8f1daed638657c5 | [
"Apache-2.0"
] | 2 | 2021-06-25T06:42:14.000Z | 2021-11-07T13:44:29.000Z | XGBoost/XGBoost_v3/lib/sparse_vector_xrh.py | Xinrihui/Statistical-Learning-Method | 2e1c107bed8a21307596fbe0f8f1daed638657c5 | [
"Apache-2.0"
] | null | null | null | XGBoost/XGBoost_v3/lib/sparse_vector_xrh.py | Xinrihui/Statistical-Learning-Method | 2e1c107bed8a21307596fbe0f8f1daed638657c5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import numpy as np
| 23.26087 | 76 | 0.542056 |
ebdad1427769475e77d3e3d80ead6f03cbd6c8f1 | 7,122 | py | Python | InstagramAPIApplication/datasetcrawler.py | SocioRecSys/FashionRec_DataCollection | 8bb97beda01b34fa1eaab06d003faa95b2b2808f | [
"RSA-MD"
] | 2 | 2020-05-03T00:51:41.000Z | 2020-08-23T17:19:59.000Z | InstagramAPIApplication/datasetcrawler.py | SocioRecSys/FashionRec_DataCollection | 8bb97beda01b34fa1eaab06d003faa95b2b2808f | [
"RSA-MD"
] | 5 | 2021-06-08T22:55:28.000Z | 2022-03-12T00:33:42.000Z | InstagramAPIApplication/datasetcrawler.py | SocioRecSys/FashionRec_DataCollection | 8bb97beda01b34fa1eaab06d003faa95b2b2808f | [
"RSA-MD"
] | null | null | null | #from app import app
import os
from flask import Flask,render_template,request, url_for, redirect,session
from constant import *
from storeDataToDB import InstagramDataStore
import json,ast
import requests
import urllib
import urllib2
global accessToken_gl
from pymongo import MongoClient
app = Flask(__name__)
client =... | 32.081081 | 176 | 0.656276 |
ebdc24aef69256e1a60d8fc485dce44d388d0d29 | 738 | py | Python | ligamx.py | betoalien/Alberto-Cardenas-Data-Science-Examples | 0d45fefd443672541dbb8dbef5f5125d63ff1d86 | [
"MIT"
] | null | null | null | ligamx.py | betoalien/Alberto-Cardenas-Data-Science-Examples | 0d45fefd443672541dbb8dbef5f5125d63ff1d86 | [
"MIT"
] | null | null | null | ligamx.py | betoalien/Alberto-Cardenas-Data-Science-Examples | 0d45fefd443672541dbb8dbef5f5125d63ff1d86 | [
"MIT"
] | 1 | 2021-11-09T20:19:49.000Z | 2021-11-09T20:19:49.000Z | from bs4 import BeautifulSoup
import requests
import pandas as pd
url = 'https://mexico.as.com/resultados/futbol/mexico_clausura/clasificacion/'
page = requests.get(url)
soup = BeautifulSoup(page.content, 'html.parser')
#Equipos
eq = soup.find_all('span', class_='nombre-equipo')
equipos = list()
count = 0
for i in e... | 19.945946 | 81 | 0.661247 |
ebdc28fa82594e5761ced222db9548e40a6dd014 | 6,526 | py | Python | priorityq/storage/binheap.py | panyam/priorityq | 2d18ea88c1cd89915dbed76a251a0fba257217bd | [
"Apache-2.0"
] | 7 | 2017-02-23T22:39:50.000Z | 2021-08-06T07:14:01.000Z | priorityq/storage/binheap.py | panyam/priorityq | 2d18ea88c1cd89915dbed76a251a0fba257217bd | [
"Apache-2.0"
] | 2 | 2020-02-26T16:26:39.000Z | 2020-06-28T05:03:25.000Z | priorityq/storage/binheap.py | panyam/priorityq | 2d18ea88c1cd89915dbed76a251a0fba257217bd | [
"Apache-2.0"
] | null | null | null |
from base import Handle as BaseHandle
from base import Storage as BaseStorage
| 33.813472 | 97 | 0.525896 |
ebdc56d72dd3158481e69cf7b83017948f82f744 | 2,098 | py | Python | wikimetrics/controllers/metrics.py | wikimedia/analytics-wikimetrics | 1d2036657b06ccd16ecfc76edd3f9a6119ff75f4 | [
"MIT"
] | 6 | 2015-01-28T05:59:08.000Z | 2018-01-09T07:48:57.000Z | wikimetrics/controllers/metrics.py | wikimedia/analytics-wikimetrics | 1d2036657b06ccd16ecfc76edd3f9a6119ff75f4 | [
"MIT"
] | 2 | 2020-05-09T16:36:43.000Z | 2020-05-09T16:52:35.000Z | wikimetrics/controllers/metrics.py | wikimedia/analytics-wikimetrics | 1d2036657b06ccd16ecfc76edd3f9a6119ff75f4 | [
"MIT"
] | 1 | 2016-01-13T07:19:44.000Z | 2016-01-13T07:19:44.000Z | import inspect
from flask import render_template, request, jsonify
from ..configurables import app
from .. import metrics
from ..metrics import metric_classes
| 28.351351 | 84 | 0.585319 |
ebdd311d83a28a33b9ca97f008b55de04389e5d0 | 4,930 | py | Python | library(data.table).py | edward-jiang3649/data_project | 110789e6db9fd27c284861b8b0da532c78949191 | [
"MIT"
] | null | null | null | library(data.table).py | edward-jiang3649/data_project | 110789e6db9fd27c284861b8b0da532c78949191 | [
"MIT"
] | null | null | null | library(data.table).py | edward-jiang3649/data_project | 110789e6db9fd27c284861b8b0da532c78949191 | [
"MIT"
] | null | null | null |
# Which city has the most traffic? Which city has the least?
# What month is the most busiest in the year?
# Which airport route has the busiest one?
library(data.table)
library(tidyverse)
library(stringr)
library(plotly)
library(readr)
library(xml2)
# ---------------------------------------------------------------... | 41.779661 | 109 | 0.602434 |
ebdf91c5cab55ca3bfd3e7d89a1ba89e113c4d38 | 144 | py | Python | su4/path_util.py | njuwelkin/su4 | e433f792186ee5868916cae3c062d6313dffd420 | [
"MIT"
] | null | null | null | su4/path_util.py | njuwelkin/su4 | e433f792186ee5868916cae3c062d6313dffd420 | [
"MIT"
] | null | null | null | su4/path_util.py | njuwelkin/su4 | e433f792186ee5868916cae3c062d6313dffd420 | [
"MIT"
] | null | null | null | import os, sys
| 20.571429 | 69 | 0.6875 |
ebdfe3bc21d9e11fc0a8374aa6caa3b6ad8e364e | 1,507 | py | Python | app/recipe/tests/test_ingredients_api.py | clicktravel-james/travel-perk-recipe-excercise | bf8f9a3f2c74058a7f4284931953c5f7e0a54513 | [
"MIT"
] | null | null | null | app/recipe/tests/test_ingredients_api.py | clicktravel-james/travel-perk-recipe-excercise | bf8f9a3f2c74058a7f4284931953c5f7e0a54513 | [
"MIT"
] | null | null | null | app/recipe/tests/test_ingredients_api.py | clicktravel-james/travel-perk-recipe-excercise | bf8f9a3f2c74058a7f4284931953c5f7e0a54513 | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.urls import reverse
from rest_framework.test import APIClient
from rest_framework import status
from core.models import Ingredient
from recipe.serializers import IngredientSerializer
INGREDIENTS_URL = reverse("recipe:ingredient-list")
| 25.542373 | 70 | 0.652289 |
ebe066301f9db184fccc963e211e96a39a32434b | 1,852 | py | Python | src/incognita/preprocessing/setup_district_boundaries.py | the-scouts/incognita | f0634f3d812b816ad3d46f55e88d7524ebf81d32 | [
"MIT"
] | 2 | 2019-06-14T08:05:24.000Z | 2021-01-03T00:18:07.000Z | src/incognita/preprocessing/setup_district_boundaries.py | the-scouts/geo_mapping | f0634f3d812b816ad3d46f55e88d7524ebf81d32 | [
"MIT"
] | 47 | 2019-06-17T21:27:57.000Z | 2021-03-11T00:27:47.000Z | src/incognita/preprocessing/setup_district_boundaries.py | the-scouts/incognita | f0634f3d812b816ad3d46f55e88d7524ebf81d32 | [
"MIT"
] | null | null | null | import time
import geopandas as gpd
import pandas as pd
from incognita.data.scout_census import load_census_data
from incognita.geographies import district_boundaries
from incognita.logger import logger
from incognita.utility import config
from incognita.utility import filter
from incognita.utility import timing
if ... | 46.3 | 137 | 0.75378 |
ebe0c716c2fa3c66d4bdfcd4205a4e9c067dbd26 | 471 | py | Python | setup.py | drolando/pyramid_zipkin-example | a377b84912a8e8b5c2a6a5f50d8406e06cbda53f | [
"Apache-2.0"
] | 11 | 2016-10-14T03:23:10.000Z | 2021-06-19T09:13:22.000Z | setup.py | drolando/pyramid_zipkin-example | a377b84912a8e8b5c2a6a5f50d8406e06cbda53f | [
"Apache-2.0"
] | 4 | 2016-10-13T11:21:48.000Z | 2019-02-26T01:55:31.000Z | setup.py | drolando/pyramid_zipkin-example | a377b84912a8e8b5c2a6a5f50d8406e06cbda53f | [
"Apache-2.0"
] | 6 | 2016-12-01T07:53:33.000Z | 2021-06-23T01:10:57.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='pyramid_zipkin-example',
version='0.1',
author='OpenZipkin',
author_email='zipkin-user@googlegroups.com',
license='Apache 2.0',
url='https://github.com/openzipkin/pyramid_zipkin-example',
description='See ho... | 24.789474 | 77 | 0.649682 |
ebe3cdd5919b1539b46ad13dc42c9b3bad8c9f65 | 280 | py | Python | 10. File Name/main.py | MahmudX/Algorithms | df498929b5d3fc0f0d558b3369c2aa9804c292f1 | [
"MIT"
] | null | null | null | 10. File Name/main.py | MahmudX/Algorithms | df498929b5d3fc0f0d558b3369c2aa9804c292f1 | [
"MIT"
] | null | null | null | 10. File Name/main.py | MahmudX/Algorithms | df498929b5d3fc0f0d558b3369c2aa9804c292f1 | [
"MIT"
] | null | null | null | n = int(input())
s = str(input())
removal = 0
counter = 0
for x in s:
if x != 'x':
if counter >= 3:
removal += counter - 2
counter = 0
elif x == 'x':
counter += 1
if counter >= 3:
removal += counter - 2
print(removal)
| 18.666667 | 35 | 0.460714 |
ebe3e2a14fcdd453ac2feecbbc353167ada3fa26 | 1,362 | py | Python | bloodbank_rl/tianshou_utils/policies.py | joefarrington/bloodbank_rl | f285581145034b498f01c9b44f95437ceddb042a | [
"MIT"
] | null | null | null | bloodbank_rl/tianshou_utils/policies.py | joefarrington/bloodbank_rl | f285581145034b498f01c9b44f95437ceddb042a | [
"MIT"
] | null | null | null | bloodbank_rl/tianshou_utils/policies.py | joefarrington/bloodbank_rl | f285581145034b498f01c9b44f95437ceddb042a | [
"MIT"
] | null | null | null | from tianshou.policy import A2CPolicy, PPOPolicy
from typing import Any, Dict, List, Optional, Type
from tianshou.data import Batch
# Normal key structure for output doesn't work with MLFlow logging nicely
# loss used as a key and also parent
| 41.272727 | 74 | 0.680617 |
ebe564c0328342697209905c2b6ac31f09835c3a | 2,757 | py | Python | extract_feats.py | anthng/Car-Parking-Occupancy-Detection | 47511d717c54a8c4abba8ec67b7f9e8c345758e4 | [
"MIT"
] | null | null | null | extract_feats.py | anthng/Car-Parking-Occupancy-Detection | 47511d717c54a8c4abba8ec67b7f9e8c345758e4 | [
"MIT"
] | 7 | 2020-10-02T09:30:21.000Z | 2022-03-12T00:40:47.000Z | extract_feats.py | anthng/Car-Parking-Occupancy-Detection | 47511d717c54a8c4abba8ec67b7f9e8c345758e4 | [
"MIT"
] | null | null | null | import os
from glob import glob
import tensorflow as tf
from tensorflow.keras.applications.mobilenet_v2 import MobileNetV2, preprocess_input
from tensorflow.keras.preprocessing.image import img_to_array, load_img
from tensorflow.keras.models import Model, load_model
from tensorflow.keras.layers import Conv2D,... | 36.76 | 112 | 0.658687 |
ebe57b7fe4e719c9f864988f5291fad899f9bebd | 3,922 | py | Python | examples/plot_result/mesh_2D_waypoints.py | Berk035/Gibson_Exercise | 406dff57ec1ba7268e70b90937874361bd6c135a | [
"MIT"
] | 1 | 2020-05-30T18:04:42.000Z | 2020-05-30T18:04:42.000Z | examples/plot_result/mesh_2D_waypoints.py | Berk035/Gibson_Exercise | 406dff57ec1ba7268e70b90937874361bd6c135a | [
"MIT"
] | null | null | null | examples/plot_result/mesh_2D_waypoints.py | Berk035/Gibson_Exercise | 406dff57ec1ba7268e70b90937874361bd6c135a | [
"MIT"
] | null | null | null | import argparse
import matplotlib.pyplot as plt
import meshcut
import numpy as np
import pandas
import seaborn as sns
import pandas as pd
import sys, os
import math
#from scipy.stats import norm
SAVE_PATH = os.path.join(os.path.expanduser("~"),'PycharmProjects/Gibson_Exercise/examples/plot_result/')
WAY_PATH = os.path... | 34.403509 | 131 | 0.658338 |
ebe5fa4e929e175878284cd3d8c6fc22122ffd4f | 11,563 | py | Python | ufjc/isometric.py | sandialabs/ufjc | cfaaf3ccc5af7eefb2c3f8ffc0ee09523f24bd4a | [
"BSD-3-Clause"
] | null | null | null | ufjc/isometric.py | sandialabs/ufjc | cfaaf3ccc5af7eefb2c3f8ffc0ee09523f24bd4a | [
"BSD-3-Clause"
] | 1 | 2022-03-22T16:22:05.000Z | 2022-03-22T16:22:05.000Z | ufjc/isometric.py | sandialabs/ufjc | cfaaf3ccc5af7eefb2c3f8ffc0ee09523f24bd4a | [
"BSD-3-Clause"
] | null | null | null | """A module for the uFJC single-chain model in the isometric ensemble.
This module consist of the class ``uFJCIsometric`` which contains
methods for computing single-chain quantities
in the isometric (constant end-to-end vector) thermodynamic ensemble.
Example:
Import and instantiate the class:
... | 38.93266 | 79 | 0.585229 |
ebe7615b9cf517efd9c19f266f5d5ff2733cf13a | 2,462 | py | Python | mtp_common/auth/models.py | uk-gov-mirror/ministryofjustice.money-to-prisoners-common | 283a72e796915c99cc5ed53b44f67d79628ffac8 | [
"MIT"
] | null | null | null | mtp_common/auth/models.py | uk-gov-mirror/ministryofjustice.money-to-prisoners-common | 283a72e796915c99cc5ed53b44f67d79628ffac8 | [
"MIT"
] | null | null | null | mtp_common/auth/models.py | uk-gov-mirror/ministryofjustice.money-to-prisoners-common | 283a72e796915c99cc5ed53b44f67d79628ffac8 | [
"MIT"
] | null | null | null |
def get_full_name(self):
if not hasattr(self, '_full_name'):
name_parts = [
self.user_data.get('first_name'),
self.user_data.get('last_name')
]
self._full_name = ' '.join(filter(None, name_parts))
return self._full_name
def ge... | 24.62 | 81 | 0.582047 |
ebe772d4646f88475526f4cad9a931c5b2da1bf8 | 615 | py | Python | gcode_gen/debug.py | tulth/gcode_gen | d6e276f2074d4fe66755b2ae06c5b4d85583c563 | [
"BSD-3-Clause"
] | null | null | null | gcode_gen/debug.py | tulth/gcode_gen | d6e276f2074d4fe66755b2ae06c5b4d85583c563 | [
"BSD-3-Clause"
] | null | null | null | gcode_gen/debug.py | tulth/gcode_gen | d6e276f2074d4fe66755b2ae06c5b4d85583c563 | [
"BSD-3-Clause"
] | null | null | null | import inspect
import re
def debug_str(arg):
'''Return string of arg varible name and str(arg) value.'''
frame = inspect.currentframe().f_back
s = inspect.getframeinfo(frame).code_context[0]
r = re.search(r"\((.*)\)", s).group(1)
return str("{} = {}".format(r, arg))
def debug_print(arg):
'''... | 26.73913 | 63 | 0.630894 |
ebe82754c4e1956d8128209d6933d8d8301a6dc9 | 5,604 | py | Python | Session 7 - Python/WagerWarCardGame/Development/WWWarConstants.py | dbowmans46/PracticalProgramming | e9fee468eee12625ce198d9a4f4c5ee735f5db90 | [
"MIT"
] | null | null | null | Session 7 - Python/WagerWarCardGame/Development/WWWarConstants.py | dbowmans46/PracticalProgramming | e9fee468eee12625ce198d9a4f4c5ee735f5db90 | [
"MIT"
] | null | null | null | Session 7 - Python/WagerWarCardGame/Development/WWWarConstants.py | dbowmans46/PracticalProgramming | e9fee468eee12625ce198d9a4f4c5ee735f5db90 | [
"MIT"
] | 1 | 2019-08-07T16:51:23.000Z | 2019-08-07T16:51:23.000Z | # -*- coding: utf-8 -*-
"""
LICENSE (MIT License):
Copyright 2018 Jason Gilbert, Ryan Concienne, and Douglas Bowman
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, includi... | 33.556886 | 80 | 0.345646 |
ccd8569a30533d078dfba6a15b69e28a22136fde | 226 | py | Python | server/run.py | dactechie/intershift_comms | 041e15426cf985fec30d1abc8068d1c52ba8e804 | [
"MIT"
] | null | null | null | server/run.py | dactechie/intershift_comms | 041e15426cf985fec30d1abc8068d1c52ba8e804 | [
"MIT"
] | null | null | null | server/run.py | dactechie/intershift_comms | 041e15426cf985fec30d1abc8068d1c52ba8e804 | [
"MIT"
] | null | null | null | # run.py
import os
from apis import create_app
# for >flask run
if __name__ == '__main__':
#print(os.path.abspath('./settings.py'))
app = create_app(config_file=os.path.abspath('./settings.py'))
app.run(debug=True) | 28.25 | 66 | 0.690265 |
ccd8b1ad0e30aa9d22bbfd389f4c0ac2630ddd60 | 4,898 | py | Python | sla_cli/src/cli/commands/download.py | DavidWalshe93/SL-CLI | c92ca8a6e57eb51bf9c9433013ce16d443f8d152 | [
"MIT"
] | 2 | 2022-01-07T09:59:32.000Z | 2022-01-25T12:04:06.000Z | sla_cli/src/cli/commands/download.py | DavidWalshe93/SL-CLI | c92ca8a6e57eb51bf9c9433013ce16d443f8d152 | [
"MIT"
] | null | null | null | sla_cli/src/cli/commands/download.py | DavidWalshe93/SL-CLI | c92ca8a6e57eb51bf9c9433013ce16d443f8d152 | [
"MIT"
] | 1 | 2021-04-07T17:14:37.000Z | 2021-04-07T17:14:37.000Z | """
Author: David Walshe
Date: 10 April 2021
"""
import logging
import os
from typing import List
from dataclasses import dataclass, asdict
import click
from click import Context
from sla_cli.src.cli.context import COMMAND_CONTEXT_SETTINGS
from sla_cli.src.cli.utils import kwargs_to_dataclass, default_from... | 37.968992 | 198 | 0.715394 |
ccda408a9fc107d667abef139bfbc493590b5a5a | 2,205 | py | Python | tests/unit-tests/test_pkg_configs_devmode.py | releng-tool/releng-tool | cd8728f35a7bdaf6ef90fd019e8c33bc5da8b265 | [
"BSD-2-Clause"
] | 7 | 2019-04-06T21:21:22.000Z | 2021-12-10T04:07:20.000Z | tests/unit-tests/test_pkg_configs_devmode.py | releng-tool/releng-tool | cd8728f35a7bdaf6ef90fd019e8c33bc5da8b265 | [
"BSD-2-Clause"
] | 1 | 2019-10-01T20:03:10.000Z | 2019-10-02T20:28:00.000Z | tests/unit-tests/test_pkg_configs_devmode.py | releng-tool/releng-tool | cd8728f35a7bdaf6ef90fd019e8c33bc5da8b265 | [
"BSD-2-Clause"
] | 1 | 2021-07-23T17:00:57.000Z | 2021-07-23T17:00:57.000Z | # -*- coding: utf-8 -*-
# Copyright 2021 releng-tool
from releng_tool.opts import RelengEngineOptions
from releng_tool.packages.exceptions import RelengToolInvalidPackageKeyValue
from releng_tool.packages.manager import RelengPackageManager
from releng_tool.registry import RelengRegistry
from tests.support.pkg_config_... | 41.603774 | 76 | 0.739683 |
ccde0ffabe40c9f0b2b034c1a47760a504ffde0f | 979 | py | Python | generateStampFiles.py | terrapin47/TinkeringWithEmbers | 00c68f15274c1733e1c857b04df13d8769e5539e | [
"MIT"
] | 2 | 2019-03-16T01:46:40.000Z | 2019-05-05T02:35:37.000Z | generateStampFiles.py | terrapin47/TinkeringWithEmbers | 00c68f15274c1733e1c857b04df13d8769e5539e | [
"MIT"
] | 4 | 2018-11-10T12:29:49.000Z | 2019-06-23T20:23:04.000Z | generateStampFiles.py | terrapin47/TinkeringWithEmbers | 00c68f15274c1733e1c857b04df13d8769e5539e | [
"MIT"
] | null | null | null | import json
print("Generating stamp files")
stamps = [
"armor_plate",
"armor_trim",
"arrow_head",
"arrow_shaft",
"axe_head",
"binding",
"boots_core",
"bow_limb",
"bow_string",
"broad_axe_head",
"chest_core",
"cross_guard",
"emerald",
"excavator_head",
"fletching",
"hammer_head",
"han... | 18.12963 | 101 | 0.622063 |
ccdf036ec6b1e31d3e1ee989cd66c5e9b852a92a | 2,153 | py | Python | reference/code/filtering/ukf/spt.py | koverman47/robosub | 5787c2509f9c43202ae7e0f1e55ba37dbac81062 | [
"MIT"
] | null | null | null | reference/code/filtering/ukf/spt.py | koverman47/robosub | 5787c2509f9c43202ae7e0f1e55ba37dbac81062 | [
"MIT"
] | null | null | null | reference/code/filtering/ukf/spt.py | koverman47/robosub | 5787c2509f9c43202ae7e0f1e55ba37dbac81062 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import numpy as np
from scipy import linalg
| 27.253165 | 74 | 0.565722 |
cce0603da04ad9a4f9495cbff5abc54109e4997a | 4,014 | py | Python | uninas/modules/mixed/weights.py | cogsys-tuebingen/uninas | 06729b9cf517ec416fb798ae387c5bd9c3a278ac | [
"MIT"
] | 18 | 2020-11-22T16:03:08.000Z | 2022-03-15T12:11:46.000Z | uninas/modules/mixed/weights.py | cogsys-tuebingen/uninas | 06729b9cf517ec416fb798ae387c5bd9c3a278ac | [
"MIT"
] | 2 | 2022-01-04T08:10:17.000Z | 2022-01-05T08:13:14.000Z | uninas/modules/mixed/weights.py | cogsys-tuebingen/uninas | 06729b9cf517ec416fb798ae387c5bd9c3a278ac | [
"MIT"
] | 6 | 2021-03-08T07:08:52.000Z | 2022-02-24T12:00:43.000Z | import torch
from uninas.modules.mixed.mixedop import AbstractDependentMixedOp
from uninas.methods.strategies.manager import StrategyManager
from uninas.register import Register
| 48.361446 | 119 | 0.660688 |
cce252b41b1d3a6cc4545576639c9847cc85ff56 | 5,586 | py | Python | PerlinNoise.py | nmmarzano/PerlinNoise.py | 98beeb94068e0e6f9007e2c8c851d4dcbd17aa07 | [
"MIT"
] | null | null | null | PerlinNoise.py | nmmarzano/PerlinNoise.py | 98beeb94068e0e6f9007e2c8c851d4dcbd17aa07 | [
"MIT"
] | null | null | null | PerlinNoise.py | nmmarzano/PerlinNoise.py | 98beeb94068e0e6f9007e2c8c851d4dcbd17aa07 | [
"MIT"
] | null | null | null | import pygame
import os
import math
import numpy
from PIL import Image
from multiprocessing import Pool
SCREEN_WIDTH, SCREEN_HEIGHT = 256, 256
MAX_AMPLITUDE = 255 * 2/5
# --- INTERPOLATORS ---
# quickest but kinda harsh, not extremely bad though
# good smoothness and not too slow
# --------------... | 28.35533 | 146 | 0.596312 |
cce30443f995ba90a50489c29b9243eb7d862590 | 4,392 | py | Python | newpriority.py | NathanZabriskie/microfiction | 65de5de8749abf26a48598edf07732d0f3468ac2 | [
"MIT"
] | 1 | 2020-11-15T03:34:14.000Z | 2020-11-15T03:34:14.000Z | newpriority.py | NathanZabriskie/microfiction | 65de5de8749abf26a48598edf07732d0f3468ac2 | [
"MIT"
] | null | null | null | newpriority.py | NathanZabriskie/microfiction | 65de5de8749abf26a48598edf07732d0f3468ac2 | [
"MIT"
] | 1 | 2020-11-15T03:35:02.000Z | 2020-11-15T03:35:02.000Z | import helpers as h
import random
import heapq as hq
numChildren = 4
strikes = 3
maxSpecies = 10
def getIndex(story, i):
return h.strip(story.split(' ')[i])
#stories can be a string or list
#NOT STRIPPED
| 24.4 | 171 | 0.664845 |
cce3448c5c947c751cab3377fe8c091ac1ab9f5e | 1,489 | py | Python | tools/nn/speaker_dataset.py | mikiec84/speaking_detection | ed680138627c156e1f7b0af20d6517e2bea754cc | [
"MIT"
] | null | null | null | tools/nn/speaker_dataset.py | mikiec84/speaking_detection | ed680138627c156e1f7b0af20d6517e2bea754cc | [
"MIT"
] | null | null | null | tools/nn/speaker_dataset.py | mikiec84/speaking_detection | ed680138627c156e1f7b0af20d6517e2bea754cc | [
"MIT"
] | null | null | null | import os.path
import skimage.io
import tqdm
skimage.io.use_plugin('pil')
| 31.020833 | 82 | 0.513768 |
cce35f5232bb1193dda86864eb9f31fbad3e7841 | 7,005 | py | Python | test_right_product.py | mirrkka/seleniumcourse | d2c2aea82896009a697bb523153182dfc2f0e6fd | [
"Apache-2.0"
] | null | null | null | test_right_product.py | mirrkka/seleniumcourse | d2c2aea82896009a697bb523153182dfc2f0e6fd | [
"Apache-2.0"
] | null | null | null | test_right_product.py | mirrkka/seleniumcourse | d2c2aea82896009a697bb523153182dfc2f0e6fd | [
"Apache-2.0"
] | null | null | null | import pytest
import time
from selenium import webdriver
from driver_fixture import *
import re
import ast
#)
#) ( )
#) ( , "" , RGBa R, G B)
#) ( , "" , RGBa G B )
#( , )
#) , ( )
| 52.276119 | 170 | 0.740757 |
cce46678f17a21ef286be153c51d6154d676d103 | 935 | py | Python | cat_train_bert.py | joellehanna97/wikipedia-nlp | b662412711da03583c8bf4cecfabe89cf3b867dd | [
"CC0-1.0"
] | null | null | null | cat_train_bert.py | joellehanna97/wikipedia-nlp | b662412711da03583c8bf4cecfabe89cf3b867dd | [
"CC0-1.0"
] | 3 | 2019-10-21T09:32:09.000Z | 2019-10-22T13:11:00.000Z | cat_train_bert.py | joellehanna97/wikipedia-nlp | b662412711da03583c8bf4cecfabe89cf3b867dd | [
"CC0-1.0"
] | null | null | null | from cat_bert_model import *
bert_path = "https://tfhub.dev/tensorflow/bert_en_uncased_L-12_H-768_A-12/1"
# data_path = '/home/ubuntu/topic_classification/data/movies_genres_en.csv'
# text_col = 'plot'
#data_path = '/home/ubuntu/topic_classification/data/wiki_data_labeled_4x2131.csv'
data_path = '/home/ubuntu/topic_cl... | 46.75 | 173 | 0.787166 |
cce56537dbbb8d2f211e8df83561cafdaeb59340 | 44,875 | py | Python | apps/profiles.py | csgobeta/csgobetabot | 4d37b0eb166d500869d9b271d417b61e95333824 | [
"MIT"
] | 9 | 2021-01-08T05:21:38.000Z | 2021-12-10T12:35:59.000Z | apps/profiles.py | csgobeta/csgobetabot | 4d37b0eb166d500869d9b271d417b61e95333824 | [
"MIT"
] | null | null | null | apps/profiles.py | csgobeta/csgobetabot | 4d37b0eb166d500869d9b271d417b61e95333824 | [
"MIT"
] | 2 | 2021-01-14T21:58:46.000Z | 2022-01-23T23:21:15.000Z | from steam import steamid
from telegraph import Telegraph
import re
import requests
from steam import steamid
from steam.steamid import SteamID
import requests
import config
from addons.plugins import url_checker
from addons import strings
| 45.884458 | 189 | 0.473493 |
cce60a9a5b3d7bffd4702cf5fce40e2d12e87e0f | 14,791 | py | Python | src/plot.py | arunchaganty/active-evaluation | cee1c0d00e3935aa122374f8f7c5daf9df47041b | [
"MIT"
] | 5 | 2018-09-02T13:04:43.000Z | 2021-02-08T03:29:27.000Z | src/plot.py | arunchaganty/active-evaluation | cee1c0d00e3935aa122374f8f7c5daf9df47041b | [
"MIT"
] | null | null | null | src/plot.py | arunchaganty/active-evaluation | cee1c0d00e3935aa122374f8f7c5daf9df47041b | [
"MIT"
] | 1 | 2019-02-28T15:34:29.000Z | 2019-02-28T15:34:29.000Z | """
Plot various visualizations
"""
import sys
import json
from collections import Counter
import numpy as np
import scipy.stats as scstats
import matplotlib
matplotlib.use("agg")
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import matplotlib.patches as mp
from zipteedo.util import GzipFileType, load... | 41.200557 | 165 | 0.642823 |
cce77b6ce1740e65f98b8582e1e1fc207488ea4d | 1,085 | py | Python | geotrek/outdoor/urls.py | IdrissaD/Geotrek-admin | c5aba155d5665fdccdde0620a1024e02ebe71a7c | [
"BSD-2-Clause"
] | null | null | null | geotrek/outdoor/urls.py | IdrissaD/Geotrek-admin | c5aba155d5665fdccdde0620a1024e02ebe71a7c | [
"BSD-2-Clause"
] | null | null | null | geotrek/outdoor/urls.py | IdrissaD/Geotrek-admin | c5aba155d5665fdccdde0620a1024e02ebe71a7c | [
"BSD-2-Clause"
] | null | null | null | from django.conf import settings
from geotrek.common.urls import PublishableEntityOptions
from geotrek.outdoor import models as outdoor_models
from geotrek.outdoor import views as outdoor_views # noqa Fix an import loop
from mapentity.registry import registry
app_name = 'outdoor'
urlpatterns = []
urlpatterns += ... | 38.75 | 77 | 0.799078 |
cce871238c52a38d3c9381e205920c367cda9e60 | 1,701 | py | Python | CreateAndUploadPlots.py | LiquidFun/Reddit-GeoGuessr-Tracking-Bot | 7732a0663236e3c72af6069f6f0255c41f0ac29c | [
"MIT"
] | null | null | null | CreateAndUploadPlots.py | LiquidFun/Reddit-GeoGuessr-Tracking-Bot | 7732a0663236e3c72af6069f6f0255c41f0ac29c | [
"MIT"
] | 2 | 2018-10-24T23:35:29.000Z | 2018-10-24T23:37:01.000Z | CreateAndUploadPlots.py | LiquidFun/Reddit-GeoGuessr-Tracking-Bot | 7732a0663236e3c72af6069f6f0255c41f0ac29c | [
"MIT"
] | 1 | 2018-06-04T14:49:26.000Z | 2018-06-04T14:49:26.000Z | import plotly.plotly as py
import plotly.graph_objs as go
import plotly.offline as offline
import sys, os
from .CreateTableFromDatabase import getRankingsFromDatabase
# Using the plotly API creates a few plots
if __name__ == '__main__':
print(createAndUploadPlots(getRankingsFromDatabase("statelands"), "statela... | 27.435484 | 86 | 0.623751 |
cce9784c38486b424da2cd388f8fb8f1821869b5 | 1,192 | py | Python | src/old/utilisation_aware_load_balancer.py | ssupdoc/k8-simulation | 7834d3faaed3e86b547554c6228540c316621011 | [
"CC0-1.0"
] | null | null | null | src/old/utilisation_aware_load_balancer.py | ssupdoc/k8-simulation | 7834d3faaed3e86b547554c6228540c316621011 | [
"CC0-1.0"
] | null | null | null | src/old/utilisation_aware_load_balancer.py | ssupdoc/k8-simulation | 7834d3faaed3e86b547554c6228540c316621011 | [
"CC0-1.0"
] | null | null | null | from src.abstract_load_balancer import AbstractLoadBalancer, LoadBalancerQueue | 39.733333 | 87 | 0.676174 |
ccea755ec230a8dc1eb2055d6374550fd19c5cfa | 1,823 | py | Python | junction/conferences/migrations/0005_emailreviewernotificationsetting.py | K-7/junction | 141052578733303e18401f7af166117917547c31 | [
"MIT"
] | null | null | null | junction/conferences/migrations/0005_emailreviewernotificationsetting.py | K-7/junction | 141052578733303e18401f7af166117917547c31 | [
"MIT"
] | null | null | null | junction/conferences/migrations/0005_emailreviewernotificationsetting.py | K-7/junction | 141052578733303e18401f7af166117917547c31 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
| 47.973684 | 192 | 0.650027 |
cceb2a9823cde3aacf5b9494848ecad93d4a1814 | 44,012 | py | Python | operantanalysis/operantanalysis.py | NautiyalLab/MatLab-Scripts | 7f6a3a19df7a39dea2e9253735149001424c5d30 | [
"MIT"
] | null | null | null | operantanalysis/operantanalysis.py | NautiyalLab/MatLab-Scripts | 7f6a3a19df7a39dea2e9253735149001424c5d30 | [
"MIT"
] | 1 | 2019-02-28T03:56:50.000Z | 2019-02-28T03:56:50.000Z | operantanalysis/operantanalysis.py | NautiyalLab/OperantParadigmAnalysis-Python | 7f6a3a19df7a39dea2e9253735149001424c5d30 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import statistics
import os
import glob
from tkinter import filedialog
from tkinter import * # noqa
import pandas as pd
from eventcodes import eventcodes_dictionary
from natsort import natsorted, ns
import matplotlib.pyplot as plt
import numpy as np
import datetime
__all__ = ["loop_over_days",... | 43.662698 | 144 | 0.646369 |
ccee05b4c0934983fd14692e6ee9512161f8e6e7 | 1,697 | py | Python | tripleo_ansible/tests/plugins/filter/test_range_list.py | beagles/tripleo-ansible | 7faddd87cffc8903a9cdedc7a6454cdf44aeed67 | [
"Apache-2.0"
] | 22 | 2018-08-29T12:33:15.000Z | 2022-03-30T00:17:25.000Z | tripleo_ansible/tests/plugins/filter/test_range_list.py | beagles/tripleo-ansible | 7faddd87cffc8903a9cdedc7a6454cdf44aeed67 | [
"Apache-2.0"
] | 1 | 2020-02-07T20:54:34.000Z | 2020-02-07T20:54:34.000Z | tripleo_ansible/tests/plugins/filter/test_range_list.py | beagles/tripleo-ansible | 7faddd87cffc8903a9cdedc7a6454cdf44aeed67 | [
"Apache-2.0"
] | 19 | 2019-07-16T04:42:00.000Z | 2022-03-30T00:17:29.000Z | # Copyright 2020 Red Hat, 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... | 36.106383 | 78 | 0.685916 |
cceee5c5b77b328508bdd61cba59c66625058082 | 723 | py | Python | boot.py | brainelectronics/Micropython-ESP-WiFi-Manager | 4e296543136f728cd5e1f64b1ef40971691eae3b | [
"MIT"
] | 4 | 2022-03-07T15:33:05.000Z | 2022-03-30T21:34:56.000Z | boot.py | brainelectronics/Micropython-ESP-WiFi-Manager | 4e296543136f728cd5e1f64b1ef40971691eae3b | [
"MIT"
] | 4 | 2022-02-25T11:33:40.000Z | 2022-03-30T11:58:29.000Z | boot.py | brainelectronics/Micropython-ESP-WiFi-Manager | 4e296543136f728cd5e1f64b1ef40971691eae3b | [
"MIT"
] | 2 | 2022-02-03T07:48:32.000Z | 2022-03-22T03:44:48.000Z | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
"""
boot script, do initial stuff here, similar to the setup() function on Arduino
"""
import esp
import gc
import network
import time
# custom packages
from be_helpers.led_helper import Led
# set clock speed to 240MHz instead of default 160MHz
# machine.freq(24000000... | 17.634146 | 78 | 0.73444 |
ccef458fcdef90c7c4787bee52c3203ec3a2149e | 4,791 | py | Python | app/config/devices.py | rbagrov/xana | 450aba65f780a2b456ab8fdc65451f8d0679686e | [
"MIT"
] | 1 | 2017-03-08T20:45:32.000Z | 2017-03-08T20:45:32.000Z | app/config/devices.py | rbagrov/xana | 450aba65f780a2b456ab8fdc65451f8d0679686e | [
"MIT"
] | 10 | 2017-02-28T20:20:58.000Z | 2019-12-02T18:04:41.000Z | app/config/devices.py | rbagrov/xana | 450aba65f780a2b456ab8fdc65451f8d0679686e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf8 -*-
import os
from functools import reduce
from Log import log
__title__ = 'Structure runner'
__all__ = ['Structure']
__author__ = 'Rostislav Bagrov <bagrov.rostislav@gmail.com>'
| 30.711538 | 83 | 0.562096 |
ccf1307b11f0756bb439c808519922cd82be5246 | 516 | py | Python | example/aqi_curve_onecity.py | solider245/OpenData | 031aa29b7b6b26a903f378e3da10520fd3a1b7ab | [
"Apache-2.0"
] | 1,179 | 2018-05-28T07:14:41.000Z | 2022-03-27T16:03:51.000Z | example/aqi_curve_onecity.py | taoyeah/OpenData | 031aa29b7b6b26a903f378e3da10520fd3a1b7ab | [
"Apache-2.0"
] | 42 | 2018-07-05T02:44:56.000Z | 2022-03-29T12:12:30.000Z | example/aqi_curve_onecity.py | taoyeah/OpenData | 031aa29b7b6b26a903f378e3da10520fd3a1b7ab | [
"Apache-2.0"
] | 297 | 2018-05-28T07:39:38.000Z | 2022-03-28T02:35:59.000Z | # encoding: utf-8
from opendatatools import aqi
from pyecharts import Line
import pandas as pd
if __name__ == '__main__':
df_aqi = aqi.get_daily_aqi_onecity('')
df_aqi.set_index('date', inplace=True)
df_aqi.sort_index(ascending=True, inplace=True)
df_aqi = df_aqi[df_aqi.index >= "2018-01-01"]
a... | 23.454545 | 77 | 0.69186 |
ccf16364894f46473db09c990f9fbdc08e84a9b6 | 1,083 | py | Python | models/bert_spc.py | ninadakolekar/ABSA-PyTorch | 1dec420aebf25f57247fbd11e6fd70e54792d2a5 | [
"MIT"
] | 1 | 2020-01-17T11:00:23.000Z | 2020-01-17T11:00:23.000Z | models/bert_spc.py | ninadakolekar/ABSA-PyTorch | 1dec420aebf25f57247fbd11e6fd70e54792d2a5 | [
"MIT"
] | null | null | null | models/bert_spc.py | ninadakolekar/ABSA-PyTorch | 1dec420aebf25f57247fbd11e6fd70e54792d2a5 | [
"MIT"
] | 1 | 2020-11-17T12:27:18.000Z | 2020-11-17T12:27:18.000Z | # -*- coding: utf-8 -*-
# file: BERT_SPC.py
# author: songyouwei <youwei0314@gmail.com>
# Copyright (C) 2019. All Rights Reserved.
import torch
import torch.nn as nn
from layers.squeeze_embedding import SqueezeEmbedding
| 40.111111 | 107 | 0.709141 |
ccf4ba2feb011bf1e46919792b8a40ca09749b68 | 7,005 | py | Python | python/ray/experimental/workflow/tests/test_storage.py | tdml13/ray | 01db1ec9f922370da27b78b0d85ce4f3ffaf4377 | [
"Apache-2.0"
] | 39 | 2021-02-02T23:09:31.000Z | 2022-03-28T16:39:12.000Z | python/ray/experimental/workflow/tests/test_storage.py | tdml13/ray | 01db1ec9f922370da27b78b0d85ce4f3ffaf4377 | [
"Apache-2.0"
] | 65 | 2021-02-04T08:23:41.000Z | 2022-03-16T19:16:20.000Z | python/ray/experimental/workflow/tests/test_storage.py | tdml13/ray | 01db1ec9f922370da27b78b0d85ce4f3ffaf4377 | [
"Apache-2.0"
] | 20 | 2021-02-05T05:51:39.000Z | 2022-03-04T21:13:24.000Z | import ray
from ray.experimental.workflow import storage
from ray.experimental.workflow import workflow_storage
| 41.696429 | 78 | 0.71763 |
ccf891c91fd8d21bf86f1c3da125022f308630b8 | 977 | py | Python | main/coins/models.py | Hawk94/coin_tracker | 082909e17308a8dd460225c1b035751d12a27106 | [
"MIT"
] | null | null | null | main/coins/models.py | Hawk94/coin_tracker | 082909e17308a8dd460225c1b035751d12a27106 | [
"MIT"
] | null | null | null | main/coins/models.py | Hawk94/coin_tracker | 082909e17308a8dd460225c1b035751d12a27106 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
| 33.689655 | 80 | 0.741044 |
ccf9a7fee215cd56c5d2c27aaa915471648ac3e0 | 773 | py | Python | examples/tutorial_python/1_extract_pose.py | shalalalatuzki/openpose | 896167d317f328343d3694dba9f5b4640de61d84 | [
"DOC",
"MIT-CMU"
] | null | null | null | examples/tutorial_python/1_extract_pose.py | shalalalatuzki/openpose | 896167d317f328343d3694dba9f5b4640de61d84 | [
"DOC",
"MIT-CMU"
] | null | null | null | examples/tutorial_python/1_extract_pose.py | shalalalatuzki/openpose | 896167d317f328343d3694dba9f5b4640de61d84 | [
"DOC",
"MIT-CMU"
] | 1 | 2020-01-06T08:16:01.000Z | 2020-01-06T08:16:01.000Z | import sys
import cv2
import os
dir_path = os.path.dirname(os.path.realpath(__file__))
sys.path.append('../../python')
from openpose import *
params = dict()
params["logging_level"] = 3
params["output_resolution"] = "-1x-1"
params["net_resolution"] = "-1x368"
params["model_pose"] = "COCO"
params["alpha_pose"] = 0.6
pa... | 27.607143 | 85 | 0.706339 |
ccfb9327b5f591ae654e9b7a7a971b2088548645 | 2,694 | py | Python | FindResourcePtr.py | Strackeror/GhidraScripts | 60bd21bd66658a8595625bfd5ca5804356644809 | [
"MIT"
] | 1 | 2021-04-21T21:53:27.000Z | 2021-04-21T21:53:27.000Z | FindResourcePtr.py | Strackeror/GhidraScripts | 60bd21bd66658a8595625bfd5ca5804356644809 | [
"MIT"
] | null | null | null | FindResourcePtr.py | Strackeror/GhidraScripts | 60bd21bd66658a8595625bfd5ca5804356644809 | [
"MIT"
] | 1 | 2021-06-23T04:56:03.000Z | 2021-06-23T04:56:03.000Z | from __future__ import print_function
from ghidra.program.model.address import Address
import platform
import ghidra
if (platform.system() != "Java"):
from ghidra_builtins import *
monitor = ghidra.util.task.TaskMonitor.DUMMY
findResourcePtr('QuestData', -0x58)
findResourcePtr('QuestNoList', -0x18)
| 41.446154 | 116 | 0.721975 |