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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eca7bb7d5f66ac5cb221611f5b01d3bad9a853f9 | 637 | py | Python | src/cogs/utils/sendEmbed.py | kugiyasan/discordBot | 647fbcaa8686e99774eddeb57359730196a4f65f | [
"MIT"
] | 3 | 2020-07-05T21:37:07.000Z | 2021-09-21T11:11:45.000Z | src/cogs/utils/sendEmbed.py | kugiyasan/discordBot | 647fbcaa8686e99774eddeb57359730196a4f65f | [
"MIT"
] | null | null | null | src/cogs/utils/sendEmbed.py | kugiyasan/discordBot | 647fbcaa8686e99774eddeb57359730196a4f65f | [
"MIT"
] | null | null | null | from typing import Any
import discord
from discord.ext import commands
from ..mofupoints import incrementEmbedCounter
| 26.541667 | 88 | 0.681319 |
ecaa497a69908d5f08791b6cdfaef3362767f993 | 11,449 | py | Python | lib/ithor_env.py | XiaoLiSean/Cognitive-Map | 6b2019e5b3a46902b06c8d5d1e86b39425042de9 | [
"MIT"
] | null | null | null | lib/ithor_env.py | XiaoLiSean/Cognitive-Map | 6b2019e5b3a46902b06c8d5d1e86b39425042de9 | [
"MIT"
] | null | null | null | lib/ithor_env.py | XiaoLiSean/Cognitive-Map | 6b2019e5b3a46902b06c8d5d1e86b39425042de9 | [
"MIT"
] | 1 | 2021-11-04T06:25:31.000Z | 2021-11-04T06:25:31.000Z | # Module for iTHOR env set up and simple navigation
from ai2thor.controller import Controller
from termcolor import colored
from dijkstar import Graph, find_path
from lib.params import SIM_WINDOW_HEIGHT, SIM_WINDOW_WIDTH, VISBILITY_DISTANCE, FIELD_OF_VIEW
import matplotlib.pyplot as plt
import numpy as np
import time,... | 44.548638 | 153 | 0.633418 |
ecaa97a3378e031c13049a820631bc60b15b2766 | 445 | py | Python | documento-tcc-backup/backup08(25:06:2016)/Cap5/src/map-pais.py | medeirosthiiago/glue-grade | 0c3fc729b7d7d00dad07c9da248e3efcd70fb5a9 | [
"MIT"
] | 2 | 2016-10-04T12:47:44.000Z | 2016-11-16T18:41:30.000Z | documento-tcc-backup/backup09(04:07:2016)/Cap5/src/map-pais.py | medeirosthiago/glue-grade | 0c3fc729b7d7d00dad07c9da248e3efcd70fb5a9 | [
"MIT"
] | null | null | null | documento-tcc-backup/backup09(04:07:2016)/Cap5/src/map-pais.py | medeirosthiago/glue-grade | 0c3fc729b7d7d00dad07c9da248e3efcd70fb5a9 | [
"MIT"
] | null | null | null | tweets_by_country = tweets['country'].value_counts()
fig, ax = plt.subplots(figsize=(20,10))
ax.tick_params(axis='x', labelsize=15)
ax.tick_params(axis='y', labelsize=15)
ax.set_xlabel('Paises'.decode('utf-8'), fontsize=20)
ax.set_ylabel('Numero de tweets'.decode('utf-8') , fontsize=20)
ax.set_title('Top 5 Paises'.dec... | 40.454545 | 76 | 0.725843 |
ecaae9b03468e6304f02df581086de6fc888491a | 152 | py | Python | accepted/486A.py | cbarnson/codeforces-python | 3bb1d04a7d776d1e32cc486c0daadddf0cb9e29c | [
"Unlicense",
"MIT"
] | 1 | 2019-09-07T17:01:33.000Z | 2019-09-07T17:01:33.000Z | accepted/486A.py | cbarnson/codeforces-python | 3bb1d04a7d776d1e32cc486c0daadddf0cb9e29c | [
"Unlicense",
"MIT"
] | null | null | null | accepted/486A.py | cbarnson/codeforces-python | 3bb1d04a7d776d1e32cc486c0daadddf0cb9e29c | [
"Unlicense",
"MIT"
] | null | null | null | # 486A - Calculating Function
# http://codeforces.com/problemset/problem/486/A
n = int(input())
ans = ((n + 1) // 2) * (-1 if n & 1 else 1)
print(ans)
| 21.714286 | 48 | 0.618421 |
ecabd3f4bdd9f064663b14463a5ce941ba9d7e6b | 20,935 | py | Python | abeja/notebook/api/client.py | abeja-inc/abeja-platform-sdk | 97cfc99b11ffc1fccb3f527435277bc89e18b8c3 | [
"Apache-2.0"
] | 2 | 2020-10-20T18:38:16.000Z | 2020-10-20T20:12:35.000Z | abeja/notebook/api/client.py | abeja-inc/abeja-platform-sdk | 97cfc99b11ffc1fccb3f527435277bc89e18b8c3 | [
"Apache-2.0"
] | 30 | 2020-04-07T01:15:47.000Z | 2020-11-18T03:25:19.000Z | abeja/notebook/api/client.py | abeja-inc/abeja-platform-sdk | 97cfc99b11ffc1fccb3f527435277bc89e18b8c3 | [
"Apache-2.0"
] | null | null | null | from typing import Optional
from abeja.common.api_client import BaseAPIClient
from abeja.notebook.types import InstanceType, ImageType, NotebookType
| 39.5 | 137 | 0.485933 |
ecac3170910e2522fe20eaaf7efb5d1875ecf0af | 12,033 | py | Python | tests/test_sendgrid_inbound.py | tiltec/django-anymail | 508a3a073f1b51c453bade2532627a72e204520b | [
"BSD-3-Clause"
] | null | null | null | tests/test_sendgrid_inbound.py | tiltec/django-anymail | 508a3a073f1b51c453bade2532627a72e204520b | [
"BSD-3-Clause"
] | null | null | null | tests/test_sendgrid_inbound.py | tiltec/django-anymail | 508a3a073f1b51c453bade2532627a72e204520b | [
"BSD-3-Clause"
] | null | null | null | import json
from io import BytesIO
from textwrap import dedent
from django.test import tag
from mock import ANY
from anymail.inbound import AnymailInboundMessage
from anymail.signals import AnymailInboundEvent
from anymail.webhooks.sendgrid import SendGridInboundWebhookView
from .utils import dedent_bytes, sample_im... | 49.72314 | 115 | 0.605668 |
ecad91fbf1d2b45d2f19da435e1adb82e6ade7a6 | 233 | py | Python | scripts/randomizer.py | cmuell89/DS-A | a408252e1993423c510c3cbe49501acc6916e91f | [
"MIT"
] | null | null | null | scripts/randomizer.py | cmuell89/DS-A | a408252e1993423c510c3cbe49501acc6916e91f | [
"MIT"
] | null | null | null | scripts/randomizer.py | cmuell89/DS-A | a408252e1993423c510c3cbe49501acc6916e91f | [
"MIT"
] | null | null | null | # coding=utf-8
from random import shuffle
with open("../data/words.txt") as f:
words = f.read().splitlines()
shuffle(words)
with open("../data/random_words.txt", "w") as f:
for item in words:
f.write("%s\n" % item) | 21.181818 | 48 | 0.622318 |
ecad9b0323eb30d3ba4bdf94306b9f59f9546d07 | 281 | py | Python | utils.py | jacenfox/pytorch-training-framework | 771642a6f40b1fa4f4c90ffa40e2cb90c3fd42d4 | [
"MIT"
] | null | null | null | utils.py | jacenfox/pytorch-training-framework | 771642a6f40b1fa4f4c90ffa40e2cb90c3fd42d4 | [
"MIT"
] | null | null | null | utils.py | jacenfox/pytorch-training-framework | 771642a6f40b1fa4f4c90ffa40e2cb90c3fd42d4 | [
"MIT"
] | null | null | null | import numpy as np
import math
| 25.545455 | 61 | 0.715302 |
ecaf99cf8d95777800b2e98c8ecd1054419889eb | 1,839 | py | Python | tests/Commands/test_SystemCommands.py | AndroidKitKat/TerminusBrowser | 18d358d7d14bea00b538f9b2d8b9cf0f063d8b5e | [
"BSD-3-Clause"
] | null | null | null | tests/Commands/test_SystemCommands.py | AndroidKitKat/TerminusBrowser | 18d358d7d14bea00b538f9b2d8b9cf0f063d8b5e | [
"BSD-3-Clause"
] | null | null | null | tests/Commands/test_SystemCommands.py | AndroidKitKat/TerminusBrowser | 18d358d7d14bea00b538f9b2d8b9cf0f063d8b5e | [
"BSD-3-Clause"
] | null | null | null | from commandChanVim import urwidView
from Commands.SystemCommands import systemCommands
from Frames.reddit.indexFrame import RedditIndexFrame
from Frames.fchan.indexFrame import IndexFrame
from Frames.defaultFrame import DefaultFrame
from customeTypes import SITE
import pytest
test_boards = [
('add 4chan /r9k/'... | 29.190476 | 83 | 0.693855 |
ecb02d026ee6cbb6ddb8ef5430a7f94d901364f7 | 5,312 | py | Python | ABCer.py | xl0418/ABCer | 50f8976f00c555c2face1f451a17142e33df7856 | [
"MIT"
] | 2 | 2020-03-25T17:07:59.000Z | 2020-04-01T12:03:45.000Z | ABCer.py | xl0418/ABCer | 50f8976f00c555c2face1f451a17142e33df7856 | [
"MIT"
] | null | null | null | ABCer.py | xl0418/ABCer | 50f8976f00c555c2face1f451a17142e33df7856 | [
"MIT"
] | null | null | null | #%%
import numpy as np
from itertools import repeat
from itertools import starmap
from scipy.stats import norm
# test
#%%
if __name__ == '__main__':
import matplotlib.pyplot as plt
# Example
y = model_test([1, 2])
observations=np.array([1.0, 7.0,10.0,24.0,38.0,82.0,128.0,188.0,265.0,321.0,382.0,5... | 37.146853 | 132 | 0.609375 |
ecb05a2674fc43bdf0105356c3e348abd419263c | 1,892 | py | Python | llvm_header/op_tester.py | mendlin/SIMD-libgen | 0f386bb639c829275a00f46c4b31d59c5ed84a28 | [
"AFL-1.1"
] | 1 | 2021-01-07T03:18:27.000Z | 2021-01-07T03:18:27.000Z | llvm_header/op_tester.py | Logicalmars/SIMD-libgen | 0f386bb639c829275a00f46c4b31d59c5ed84a28 | [
"AFL-1.1"
] | null | null | null | llvm_header/op_tester.py | Logicalmars/SIMD-libgen | 0f386bb639c829275a00f46c4b31d59c5ed84a28 | [
"AFL-1.1"
] | 1 | 2021-11-29T07:28:13.000Z | 2021-11-29T07:28:13.000Z | #!/usr/bin/python
# This file is used to test vertical operations
# e.g.
# llvm_add_2 is an invalid operation since llc/lli raise exceptions on SelectionDAG
import config
import os
failed = []
# Prepare Makefile
change_makefile_source('playground', 'tester')
for ir_func in config.vertical_ir_set:
for fw in conf... | 31.016393 | 87 | 0.615222 |
ecb1f36fb203b8d051edf6d6cfdeae2ca3d1d0e9 | 1,405 | py | Python | seahub/share/urls.py | saukrIppl/newsea | 0fd5ab2ade9a8fb16b1e7b43ba13dac32eb39603 | [
"Apache-2.0"
] | 2 | 2017-06-21T09:46:55.000Z | 2018-05-30T10:07:32.000Z | seahub/share/urls.py | saukrIppl/newsea | 0fd5ab2ade9a8fb16b1e7b43ba13dac32eb39603 | [
"Apache-2.0"
] | null | null | null | seahub/share/urls.py | saukrIppl/newsea | 0fd5ab2ade9a8fb16b1e7b43ba13dac32eb39603 | [
"Apache-2.0"
] | 1 | 2020-10-01T04:11:41.000Z | 2020-10-01T04:11:41.000Z | from django.conf.urls import patterns, url
from views import *
urlpatterns = patterns('',
url(r'^$', list_shared_repos, name='share_admin'),
url(r'^links/$', list_shared_links, name='list_shared_links'),
url(r'^folders/$', list_priv_shared_folders, name='list_priv_shared_folders'),
url(r'^add/$', shar... | 61.086957 | 110 | 0.740214 |
ecb23062c35565af3a775e697dce227a3e8317a9 | 276 | py | Python | PyLaGriT/examples/create_exo.py | millerta/LaGriT-1 | 511ef22f3b7e839c7e0484604cd7f6a2278ae6b9 | [
"CNRI-Python"
] | 73 | 2017-02-09T17:54:28.000Z | 2022-03-09T22:22:32.000Z | PyLaGriT/examples/create_exo.py | millerta/LaGriT-1 | 511ef22f3b7e839c7e0484604cd7f6a2278ae6b9 | [
"CNRI-Python"
] | 166 | 2017-01-26T17:15:45.000Z | 2022-03-29T21:36:28.000Z | PyLaGriT/examples/create_exo.py | daniellivingston/LaGriT | decd0ce0e5dab068034ef382cabcd134562de832 | [
"Intel"
] | 63 | 2017-02-08T21:56:04.000Z | 2022-03-24T06:48:36.000Z | from pylagrit import PyLaGriT
l = PyLaGriT()
m = l.create()
m.createpts_xyz((3,3,3),(0.,0.,0.),(1.,1.,1.),rz_switch=[1,1,1],connect=True)
m.status ()
m.status (brief=True)
fs = m.create_boundary_facesets(base_name='faceset_bounds')
m.dump_exo('cube.exo',facesets=fs.values())
| 30.666667 | 77 | 0.702899 |
ecb3cf2ee7d709c516ad3d6fdd036750e84f3da1 | 1,188 | py | Python | app/repository/page_repository.py | tch1bo/viaduct | bfd37b0a8408b2dd66fb01138163b80ce97699ff | [
"MIT"
] | 11 | 2015-04-23T21:57:56.000Z | 2019-04-28T12:48:58.000Z | app/repository/page_repository.py | tch1bo/viaduct | bfd37b0a8408b2dd66fb01138163b80ce97699ff | [
"MIT"
] | 1 | 2016-10-05T14:10:58.000Z | 2016-10-05T14:12:23.000Z | app/repository/page_repository.py | tch1bo/viaduct | bfd37b0a8408b2dd66fb01138163b80ce97699ff | [
"MIT"
] | 3 | 2016-10-05T14:00:42.000Z | 2019-01-16T14:33:43.000Z | from app import db
from app.models.group import Group
from app.models.page import Page, PageReadPermission
| 28.285714 | 71 | 0.72138 |
ecb49bb21b35339cb73ab865c201f6495e6361cb | 29 | py | Python | taskwiki/__init__.py | PtitCaius/taskwiki | 8c4da3a744fd1aa22bfb0369658cecc925e77fd0 | [
"MIT"
] | 465 | 2015-03-27T09:42:18.000Z | 2020-07-18T20:35:19.000Z | taskwiki/__init__.py | PtitCaius/taskwiki | 8c4da3a744fd1aa22bfb0369658cecc925e77fd0 | [
"MIT"
] | 272 | 2015-01-10T20:38:02.000Z | 2020-07-16T12:55:15.000Z | taskwiki/__init__.py | PtitCaius/taskwiki | 8c4da3a744fd1aa22bfb0369658cecc925e77fd0 | [
"MIT"
] | 66 | 2015-03-21T16:33:39.000Z | 2020-07-12T09:20:29.000Z | # (c) 2014-2015, Tomas Babej
| 14.5 | 28 | 0.655172 |
ecb717ddf9643f637a0e89b5b2e731f30dc38ae8 | 107 | py | Python | str3.py | Kantheesh/Learning-Python | d2dc9f1b9f652e6a6d84028e86a1daf77551eb5f | [
"MIT"
] | null | null | null | str3.py | Kantheesh/Learning-Python | d2dc9f1b9f652e6a6d84028e86a1daf77551eb5f | [
"MIT"
] | null | null | null | str3.py | Kantheesh/Learning-Python | d2dc9f1b9f652e6a6d84028e86a1daf77551eb5f | [
"MIT"
] | null | null | null | inp = "AjaY Kumar"
out = inp.swapcase()
print(out)
inp = "AjaY kumAR"
out = inp.title()
print(out) | 13.375 | 21 | 0.607477 |
ecb94bd0a8608cae96300c0ab8bd777428b90695 | 3,388 | py | Python | plot_movie.py | diogoff/plasma-tomography | 8798351beaa9b069128fffd606587e74d30cb0e1 | [
"MIT"
] | 5 | 2019-02-08T18:34:45.000Z | 2020-05-30T17:42:14.000Z | plot_movie.py | diogoff/plasma-tomography | 8798351beaa9b069128fffd606587e74d30cb0e1 | [
"MIT"
] | null | null | null | plot_movie.py | diogoff/plasma-tomography | 8798351beaa9b069128fffd606587e74d30cb0e1 | [
"MIT"
] | 1 | 2018-07-18T12:50:03.000Z | 2018-07-18T12:50:03.000Z |
import os
import sys
import h5py
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as ani
from cmap import *
from tensorflow.keras.models import load_model
# ----------------------------------------------------------------------
if len(sys.argv) < 6:
print('Usage: %s pulse t0 t1 dt v... | 25.666667 | 90 | 0.527745 |
ecb9fc3eb4af0c3744f4d570fe01f50eb2a46525 | 353 | py | Python | Python/encontra_impares.py | robertogoes/exercicios-coursera-python | 5093cc31ccda764b6131987fa81601b7179a9bfc | [
"MIT"
] | null | null | null | Python/encontra_impares.py | robertogoes/exercicios-coursera-python | 5093cc31ccda764b6131987fa81601b7179a9bfc | [
"MIT"
] | null | null | null | Python/encontra_impares.py | robertogoes/exercicios-coursera-python | 5093cc31ccda764b6131987fa81601b7179a9bfc | [
"MIT"
] | null | null | null | # Encontrando mpares em uma lista
| 25.214286 | 58 | 0.597734 |
ecba0c87c633e44ca11824d2967de64d71f156ed | 2,940 | py | Python | main.py | William-Wang1988/gitblog | 5d064f69755992fa8e85fd53bc9a8d3589d97971 | [
"MIT"
] | null | null | null | main.py | William-Wang1988/gitblog | 5d064f69755992fa8e85fd53bc9a8d3589d97971 | [
"MIT"
] | 10 | 2020-08-31T08:17:26.000Z | 2020-09-21T03:39:12.000Z | main.py | William-Wang1988/gitblog | 5d064f69755992fa8e85fd53bc9a8d3589d97971 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from github import Github
from github.Issue import Issue
import argparse
MD_HEAD = """## Gitblog
My personal blog using issues and GitHub Action
"""
ME_GITHUB_NAME = "gatsby101"
ANCHOR_NUMBER = 5
TOP_ISSUES_LABELS = [
"Top",
]
if __name__ == "__main__":
parser = argparse... | 25.128205 | 81 | 0.591156 |
ecba4755ffe4747535ec4eeeb0e07ad5f74903d6 | 2,687 | py | Python | week-03/lab_03/lab_03_code.py | andrewn488/OMSBA-5067 | ab2f9e9a3c7dcb88f838ce8e40eb3bca142d059a | [
"MIT"
] | null | null | null | week-03/lab_03/lab_03_code.py | andrewn488/OMSBA-5067 | ab2f9e9a3c7dcb88f838ce8e40eb3bca142d059a | [
"MIT"
] | null | null | null | week-03/lab_03/lab_03_code.py | andrewn488/OMSBA-5067 | ab2f9e9a3c7dcb88f838ce8e40eb3bca142d059a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 15 22:15:28 2021
@author: ANalundasan
For: OMSBA 5067, Lab 3
"""
import numpy as np
import matplotlib.pyplot as plt
import math
#################### STEP 1 - KNN Classifier #################################
data = np.array([ [1, 1,1,1,1, 3],
... | 28.284211 | 79 | 0.426498 |
ecba8b7698e1a2bbb48d56ba91fd2aa14fe731f5 | 1,236 | py | Python | gge_proxy_manager/management/commands/clean_duplicates.py | mrcrgl/gge-storage | a8471624c1a865d4f7eeb00415bd4cd2a91ea310 | [
"MIT"
] | null | null | null | gge_proxy_manager/management/commands/clean_duplicates.py | mrcrgl/gge-storage | a8471624c1a865d4f7eeb00415bd4cd2a91ea310 | [
"MIT"
] | 1 | 2015-04-09T15:58:19.000Z | 2015-04-14T06:37:02.000Z | gge_proxy_manager/management/commands/clean_duplicates.py | mrcrgl/gge-storage | a8471624c1a865d4f7eeb00415bd4cd2a91ea310 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.core.management.base import BaseCommand, CommandError
from gge_proxy_manager.methods import clean_duplicate_alliances, clean_duplicate_castles, clean_duplicate_players
from gge_proxy_manager.models import Castle, Player, Alliance
from django.utils.timezone import now... | 37.454545 | 115 | 0.696602 |
ecbab1ca9b545730a74f300e7a921cd892b9aec6 | 995 | py | Python | events/migrations/0001_initial.py | homosaur/stl-dsa | ccc32398ca5a7a849b7860e574a8a3f49b3bed75 | [
"MIT"
] | null | null | null | events/migrations/0001_initial.py | homosaur/stl-dsa | ccc32398ca5a7a849b7860e574a8a3f49b3bed75 | [
"MIT"
] | null | null | null | events/migrations/0001_initial.py | homosaur/stl-dsa | ccc32398ca5a7a849b7860e574a8a3f49b3bed75 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.9 on 2020-03-02 10:22
from django.db import migrations, models
| 32.096774 | 114 | 0.540704 |
ecbbc14b94ecde51bc73e82c975e7dbda34c951e | 78 | py | Python | myfirst2021/__init__.py | roan2008/myfirst2021 | e3a82225a8ff625729da572cee04e2942d45fb8f | [
"MIT"
] | null | null | null | myfirst2021/__init__.py | roan2008/myfirst2021 | e3a82225a8ff625729da572cee04e2942d45fb8f | [
"MIT"
] | null | null | null | myfirst2021/__init__.py | roan2008/myfirst2021 | e3a82225a8ff625729da572cee04e2942d45fb8f | [
"MIT"
] | null | null | null | # __init__.py
from myfirst2021.studentclass import Student,Specialstudent
| 19.5 | 60 | 0.820513 |
ecbc2b714802eef938dc23390f77656b110ad0d7 | 33,775 | py | Python | admin/tools/crawler_db/PS3-PHPtoMYSQL.py | gorpoorko/TCXS-Project-Store-Web-PlayStation3-V3 | 58bf3ba08723d775e8b42e6dfa16ea5b79594d26 | [
"MIT"
] | null | null | null | admin/tools/crawler_db/PS3-PHPtoMYSQL.py | gorpoorko/TCXS-Project-Store-Web-PlayStation3-V3 | 58bf3ba08723d775e8b42e6dfa16ea5b79594d26 | [
"MIT"
] | null | null | null | admin/tools/crawler_db/PS3-PHPtoMYSQL.py | gorpoorko/TCXS-Project-Store-Web-PlayStation3-V3 | 58bf3ba08723d775e8b42e6dfa16ea5b79594d26 | [
"MIT"
] | null | null | null |
import os
import pathlib
import sqlite3
from bs4 import BeautifulSoup
import pymysql.cursors
from datetime import datetime
#faz a conexao com o banco de dados
conexao = pymysql.connect(host = 'localhost',
user = 'root',
password = '',
db... | 42.430905 | 169 | 0.533412 |
ecbd55cadec6e2c9341f39459cbc392d8c76d835 | 792 | py | Python | hail/python/hailtop/auth/sql_config.py | sigmarkarl/hail | 11b7c22342a945c61b24c5f8babf4ab411d3d2f1 | [
"MIT"
] | 2 | 2020-12-15T21:20:24.000Z | 2020-12-21T19:46:26.000Z | hail/python/hailtop/auth/sql_config.py | Dania-Abuhijleh/hail | a187dc0867801ca1eee774588fe58604a133a0d9 | [
"MIT"
] | 2 | 2016-11-17T03:06:10.000Z | 2017-12-05T19:00:24.000Z | hail/python/hailtop/auth/sql_config.py | Dania-Abuhijleh/hail | a187dc0867801ca1eee774588fe58604a133a0d9 | [
"MIT"
] | 2 | 2020-07-28T18:55:19.000Z | 2020-10-19T16:43:03.000Z | import json
| 33 | 80 | 0.638889 |
ecbdfa159cc6c94130e99feee6fc9442f8f7112a | 4,440 | py | Python | nxsdk_modules_ncl/epl/data/gen_wgts_for_inference.py | biagiom/models | 79489a3c429b3027dd420840bbccfee5e8c9a879 | [
"BSD-3-Clause"
] | 54 | 2020-03-04T17:37:17.000Z | 2022-02-22T13:16:10.000Z | nxsdk_modules_ncl/epl/data/gen_wgts_for_inference.py | biagiom/models | 79489a3c429b3027dd420840bbccfee5e8c9a879 | [
"BSD-3-Clause"
] | 9 | 2020-08-26T13:17:54.000Z | 2021-11-09T09:02:00.000Z | nxsdk_modules_ncl/epl/data/gen_wgts_for_inference.py | biagiom/models | 79489a3c429b3027dd420840bbccfee5e8c9a879 | [
"BSD-3-Clause"
] | 26 | 2020-03-18T17:09:34.000Z | 2021-11-22T16:23:14.000Z | # Copyright(c) 2019-2020 Intel Corporation All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of condition... | 40.363636 | 93 | 0.647973 |
ecc0a2e456508d8dfa56614ecca79ec800ea879d | 3,363 | py | Python | server/permissions/users.py | dragorhast/server | a5ad238e630c3b575e3bc3c51718e7ebfff1e4d1 | [
"MIT"
] | 5 | 2018-11-28T11:33:25.000Z | 2022-03-27T12:50:02.000Z | server/permissions/users.py | dragorhast/server | a5ad238e630c3b575e3bc3c51718e7ebfff1e4d1 | [
"MIT"
] | 124 | 2018-10-07T21:31:02.000Z | 2019-03-26T11:51:00.000Z | server/permissions/users.py | dragorhast/server | a5ad238e630c3b575e3bc3c51718e7ebfff1e4d1 | [
"MIT"
] | null | null | null | from aiohttp.web_urldispatcher import View
from server.models import User, Bike, Reservation
from server.models.user import UserType
from server.permissions.permission import RoutePermissionError, Permission
from server.service.access.users import get_user
from server.service.verify_token import verify_token, TokenVer... | 36.956044 | 111 | 0.680345 |
ecc2dff05ab144dc405f1ac28e34af1c5e74ebd3 | 930 | py | Python | setup.py | kariminf/pytransliteration | a957a3fa549e674d20e94e30935e028994673067 | [
"Apache-2.0"
] | 10 | 2017-07-26T21:59:39.000Z | 2021-04-12T20:06:48.000Z | setup.py | kariminf/pytransliteration | a957a3fa549e674d20e94e30935e028994673067 | [
"Apache-2.0"
] | 2 | 2018-12-29T18:34:17.000Z | 2019-01-01T10:59:20.000Z | setup.py | kariminf/pytransliteration | a957a3fa549e674d20e94e30935e028994673067 | [
"Apache-2.0"
] | 4 | 2018-08-18T21:01:40.000Z | 2021-06-25T08:59:09.000Z | import os
from setuptools import setup
setup(
name = "lang-trans",
version = "0.6.0",
author = "Abdelkrime Aries",
author_email = "kariminfo0@gmail.com",
description = ("Python transliteration library"),
license = "Apache-2.0",
keywords = "transliteration nlp languages romanization",
ur... | 29.0625 | 65 | 0.615054 |
ecc3b237f1452c998b773c172662c9bd6ab6636e | 315 | py | Python | Two-pointer/Move elements in the array/Remove elements #27.py | Awesomeyaya/Leetcode-Two-pointer | 15cd0a73f5abc4d0d19d18c231750d31dc839dbe | [
"MIT"
] | null | null | null | Two-pointer/Move elements in the array/Remove elements #27.py | Awesomeyaya/Leetcode-Two-pointer | 15cd0a73f5abc4d0d19d18c231750d31dc839dbe | [
"MIT"
] | null | null | null | Two-pointer/Move elements in the array/Remove elements #27.py | Awesomeyaya/Leetcode-Two-pointer | 15cd0a73f5abc4d0d19d18c231750d31dc839dbe | [
"MIT"
] | 1 | 2018-10-29T17:33:52.000Z | 2018-10-29T17:33:52.000Z | def removeElement(self, nums, val):
"""
:type nums: List[int]
:type val: int
:rtype: int
"""
zero = 0
for n in range(len(nums)):
if nums[n] != val:
nums[zero] = nums[n]
zero = zero + 1
return zero
| 22.5 | 36 | 0.396825 |
ecc4a0319007d502baab6c3f21559f2a55ba6379 | 199 | py | Python | session9Scripting/playground/datafile2Builder.py | campbellC/introToPython | 988f67adc3f687248308cb9b26481eb30cad687d | [
"MIT"
] | 1 | 2017-11-30T14:10:53.000Z | 2017-11-30T14:10:53.000Z | session9Scripting/playground/datafile2Builder.py | campbellC/introToPython | 988f67adc3f687248308cb9b26481eb30cad687d | [
"MIT"
] | null | null | null | session9Scripting/playground/datafile2Builder.py | campbellC/introToPython | 988f67adc3f687248308cb9b26481eb30cad687d | [
"MIT"
] | null | null | null | import random
random.seed()
with open('datafile2.dat','w') as f:
for i in range(10000):
for j in range(50):
f.write(str(random.randint(0,1000)) + ' ')
f.write('\n')
| 19.9 | 54 | 0.547739 |
ecc9cb90334c57c5634ed4d6c256de83cb378f5a | 1,914 | py | Python | www/csvtojs.py | denverpost/nouner | b37e6fd1215ce2587c450906bc5ca5328b6aa4d0 | [
"Unlicense"
] | null | null | null | www/csvtojs.py | denverpost/nouner | b37e6fd1215ce2587c450906bc5ca5328b6aa4d0 | [
"Unlicense"
] | 23 | 2015-09-25T18:17:27.000Z | 2018-02-09T22:31:13.000Z | www/csvtojs.py | denverpost/nounmatch | b37e6fd1215ce2587c450906bc5ca5328b6aa4d0 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# Turn a two-column CSV into a javascript object.
import os, sys, csv
import argparse
import doctest
import string
def escape(escapee):
""" Return a js-safe string.
>>> print escape('Escape "THIS"')
Escape \\"THIS\\"
"""
return string.replace(escapee, '"', '\\"')
... | 28.147059 | 94 | 0.547022 |
ecc9fbadf62756ff4d521776b745358bc90ffcbe | 183 | py | Python | setup.py | Chao8219/py_starter | 70fb3a2626899c0996a05ec7377ec8690dd216f1 | [
"MIT"
] | null | null | null | setup.py | Chao8219/py_starter | 70fb3a2626899c0996a05ec7377ec8690dd216f1 | [
"MIT"
] | null | null | null | setup.py | Chao8219/py_starter | 70fb3a2626899c0996a05ec7377ec8690dd216f1 | [
"MIT"
] | null | null | null | import distutils.core
distutils.core.setup(
name='py_starter',
version='1.0',
description='The very beginning of python code.',
author=AChao,
# to be continued.
) | 20.333333 | 53 | 0.672131 |
ecca78355354d397e24c37e08841c5095a57bc0f | 3,231 | py | Python | tests/test_output.py | jhosoume/pymfe | b454f8a5470ebd4dbbeb1a7e5570443dd65fdf9a | [
"MIT"
] | null | null | null | tests/test_output.py | jhosoume/pymfe | b454f8a5470ebd4dbbeb1a7e5570443dd65fdf9a | [
"MIT"
] | null | null | null | tests/test_output.py | jhosoume/pymfe | b454f8a5470ebd4dbbeb1a7e5570443dd65fdf9a | [
"MIT"
] | null | null | null | """Test module for MFE class output details."""
import pytest
import sklearn.tree
import pymfe._internal as _internal
from pymfe.mfe import MFE
from tests.utils import load_xy
GNAME = "mfe-output-details"
| 28.59292 | 85 | 0.581863 |
ecce5739e9c5dd5c258cb92aff8a14712e75760c | 229 | py | Python | halalar/legal/views.py | jawaidss/halalar-web | abb5db6fa83aba7b7a280fcff1b880f36c0b4548 | [
"MIT"
] | 1 | 2015-11-09T22:09:43.000Z | 2015-11-09T22:09:43.000Z | halalar/legal/views.py | jawaidss/halalar-web | abb5db6fa83aba7b7a280fcff1b880f36c0b4548 | [
"MIT"
] | null | null | null | halalar/legal/views.py | jawaidss/halalar-web | abb5db6fa83aba7b7a280fcff1b880f36c0b4548 | [
"MIT"
] | null | null | null | from django.views.generic.base import TemplateView | 32.714286 | 50 | 0.816594 |
ecce92ef0c81b0fe0ec5c41632dcfd5e4b125ddc | 436 | py | Python | SN/socialcircle/forms.py | samzek/social_circle | 071190bfb2b5b465fb669d8713698da9030be50f | [
"Apache-2.0"
] | 3 | 2015-06-03T09:48:28.000Z | 2015-06-25T16:54:32.000Z | SN/socialcircle/forms.py | samzek/social_circle | 071190bfb2b5b465fb669d8713698da9030be50f | [
"Apache-2.0"
] | null | null | null | SN/socialcircle/forms.py | samzek/social_circle | 071190bfb2b5b465fb669d8713698da9030be50f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.forms import ModelForm
from models import SCUser,Post
from django import forms
| 22.947368 | 123 | 0.662844 |
eccee2d9721694209ab951d349b8a65cdea70532 | 22,944 | py | Python | pysnmp-with-texts/CISCO-IP-NW-DISCOVERY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CISCO-IP-NW-DISCOVERY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CISCO-IP-NW-DISCOVERY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-IP-NW-DISCOVERY-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-IP-NW-DISCOVERY-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:02:10 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.... | 206.702703 | 1,826 | 0.802868 |
eccf13ca0d1a710475435bedf4a8059c9f65f162 | 3,701 | py | Python | python/hsfs/core/feature_group_base.py | berthoug/feature-store-api | 85c23ae08c7de65acd79a3b528fa72c07e52a272 | [
"Apache-2.0"
] | null | null | null | python/hsfs/core/feature_group_base.py | berthoug/feature-store-api | 85c23ae08c7de65acd79a3b528fa72c07e52a272 | [
"Apache-2.0"
] | null | null | null | python/hsfs/core/feature_group_base.py | berthoug/feature-store-api | 85c23ae08c7de65acd79a3b528fa72c07e52a272 | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2020 Logical Clocks AB
#
# 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 ag... | 32.752212 | 91 | 0.636315 |
eccfc8a373c8a059da4680e32c257444e5001a7b | 44,776 | py | Python | rasmus/vis/syntenyvis.py | Open-Technology/Computational-Biology | f7628900f2d1d9ade60d7ad94f6b3d1022c92cb7 | [
"MIT"
] | 30 | 2015-05-08T19:21:15.000Z | 2022-03-11T21:30:33.000Z | rasmus/vis/syntenyvis.py | Open-Technology/Computational-Biology | f7628900f2d1d9ade60d7ad94f6b3d1022c92cb7 | [
"MIT"
] | null | null | null | rasmus/vis/syntenyvis.py | Open-Technology/Computational-Biology | f7628900f2d1d9ade60d7ad94f6b3d1022c92cb7 | [
"MIT"
] | 8 | 2015-05-08T02:02:33.000Z | 2021-06-10T17:51:03.000Z |
# python libs
import copy
# rasmus libs
from rasmus import stats
from rasmus import util
# rasmus bio libs
from compbio import fasta
from compbio import regionlib
import compbio.regionlib
from compbio.regionlib import iter_chrom
# graphics libs
from summon.core import *
from summon import shapes
import summon
# g... | 32.305916 | 91 | 0.466902 |
ecd274b39828a2cbb60621e83b0c76718302d58c | 620 | py | Python | visual-option-chain/tasks.py | WillWcchan/Visual-Option-Chain-Graph | f9bfec4a262c2c3c3212e38113af4ad59517c52c | [
"MIT"
] | 1 | 2021-11-13T20:03:17.000Z | 2021-11-13T20:03:17.000Z | visual-option-chain/tasks.py | WillWcchan/Visual-Option-Chain-Graph | f9bfec4a262c2c3c3212e38113af4ad59517c52c | [
"MIT"
] | 5 | 2021-04-08T21:58:58.000Z | 2021-10-31T00:55:39.000Z | visual-option-chain/tasks.py | WillWcchan/Visual-Option-Chain-Graph | f9bfec4a262c2c3c3212e38113af4ad59517c52c | [
"MIT"
] | null | null | null | from celery import shared_task
from django.core.mail import send_mail
from datetime import datetime
from time import sleep
# Start the worker process and be on top of the visual-option-chain directory: celery -A visual-option-chain worker -l info -E
| 26.956522 | 126 | 0.722581 |
ecd428458267aa04e972ffb127dbe76ea7b0f91c | 315 | py | Python | linebot/__init__.py | WhereWeCanShare/linebot | ae05a17e5ba3bd5c61e8075ef3b3543b70369fd7 | [
"BSD-3-Clause"
] | null | null | null | linebot/__init__.py | WhereWeCanShare/linebot | ae05a17e5ba3bd5c61e8075ef3b3543b70369fd7 | [
"BSD-3-Clause"
] | null | null | null | linebot/__init__.py | WhereWeCanShare/linebot | ae05a17e5ba3bd5c61e8075ef3b3543b70369fd7 | [
"BSD-3-Clause"
] | null | null | null | from flask import Flask, Blueprint
from .settings import Setting
from .routes import main
from .line2telegram.routes import l2tg
| 19.6875 | 52 | 0.749206 |
ecd534abd7f8a9a4fecc3c6b9c2956ced9c8bbfb | 4,631 | py | Python | model/predict_from_file.py | elephantum/image-tools | 38d704a1ade32ed1f6ae8c652d257c15b7cc2740 | [
"MIT"
] | null | null | null | model/predict_from_file.py | elephantum/image-tools | 38d704a1ade32ed1f6ae8c652d257c15b7cc2740 | [
"MIT"
] | null | null | null | model/predict_from_file.py | elephantum/image-tools | 38d704a1ade32ed1f6ae8c652d257c15b7cc2740 | [
"MIT"
] | null | null | null | """
Given a csv or txt file and a Tensorflow 1.15 SavedModel file, run image classification on the urls
and write the predicted label and confidence back to the file
"""
import argparse
import os
from io import BytesIO
import requests
import pandas as pd
from csv import writer as csv_writer
from tqdm import tqdm
from m... | 37.346774 | 134 | 0.734183 |
ecd5add47e791d4dc866d0ec2a94e998ea16a8cb | 2,403 | py | Python | line_art/line_art.py | Ravenlocke/PythonArt | 30de6117f7639313344c9938087399acfc93ba80 | [
"MIT"
] | null | null | null | line_art/line_art.py | Ravenlocke/PythonArt | 30de6117f7639313344c9938087399acfc93ba80 | [
"MIT"
] | null | null | null | line_art/line_art.py | Ravenlocke/PythonArt | 30de6117f7639313344c9938087399acfc93ba80 | [
"MIT"
] | null | null | null | import click
import matplotlib.pyplot as plt
import numpy as np
from loguru import logger
from matplotlib.collections import LineCollection
number_to_degrees = {
k: (np.cos(np.pi * 2 / 10 * k), np.sin(np.pi * 2 / 10 * k))
for k in range(10)
}
if __name__ == "__main__":
run()
| 26.119565 | 99 | 0.648772 |
ecd6a85eca2c9043b2128295fe6e487ccb69bc48 | 1,277 | py | Python | src/utils/reddit.py | mzone242/Loth-Bot | 830b3659c86f36e84c12e13796f74c607ff2868e | [
"MIT"
] | null | null | null | src/utils/reddit.py | mzone242/Loth-Bot | 830b3659c86f36e84c12e13796f74c607ff2868e | [
"MIT"
] | null | null | null | src/utils/reddit.py | mzone242/Loth-Bot | 830b3659c86f36e84c12e13796f74c607ff2868e | [
"MIT"
] | null | null | null | import datetime
import logging
logger = logging.getLogger("utils.reddit")
subreddit = None
over_threshold = []
| 28.377778 | 99 | 0.584182 |
ecd8a0ddb4c88f7b415905177b5939de99f001aa | 1,220 | py | Python | mfcc-features.py | gitikadaswani/Audio-Genre-Classification | 5702ed067d41982018a3e166dcdcd7b8e8cc6fa9 | [
"MIT"
] | 20 | 2017-12-09T02:41:46.000Z | 2020-08-29T06:26:57.000Z | mfcc-features.py | debeat/Audio-Genre-Classification | 5702ed067d41982018a3e166dcdcd7b8e8cc6fa9 | [
"MIT"
] | 2 | 2018-04-20T14:13:05.000Z | 2020-01-21T17:14:46.000Z | mfcc-features.py | debeat/Audio-Genre-Classification | 5702ed067d41982018a3e166dcdcd7b8e8cc6fa9 | [
"MIT"
] | 11 | 2018-05-17T07:32:51.000Z | 2021-11-11T23:51:36.000Z | #from scikits.talkbox.features import mfcc
import scipy.io.wavfile
import numpy as np
import sys
import os
import glob
from utils1 import GENRE_DIR, GENRE_LIST
from python_speech_features import mfcc
#from librosa.feature import mfcc
# Given a wavfile, computes mfcc and saves mfcc data
# Saves mfcc data
if __... | 25.416667 | 66 | 0.741803 |
ecdb7938bc7af5630df11db6dfd0808f1fab8b1e | 3,879 | py | Python | metadata4bats/metadata_wavefile_wurb.py | cloudedbats/cloudedbats_metadata | 85f286416a9552f69e4b857541e69cd7d3a063b1 | [
"MIT"
] | null | null | null | metadata4bats/metadata_wavefile_wurb.py | cloudedbats/cloudedbats_metadata | 85f286416a9552f69e4b857541e69cd7d3a063b1 | [
"MIT"
] | null | null | null | metadata4bats/metadata_wavefile_wurb.py | cloudedbats/cloudedbats_metadata | 85f286416a9552f69e4b857541e69cd7d3a063b1 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding:utf-8 -*-
# Project: http://cloudedbats.org
# Copyright (c) 2018 Arnold Andreasson
# License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit).
import re
import metadata4bats
if __name__ == '__main__':
""" """
import pprint
print('CloudedBats - m... | 34.633929 | 98 | 0.531065 |
ecdc6ba10786df9e7a33a53fdc2a2e452c9d0c0f | 1,551 | py | Python | 2022/fix_user_varbinaries_T298565.py | wikimedia/operations-software-schema-changes | d5fc0442126c9e4280b90302f675889724b085db | [
"Apache-2.0"
] | 1 | 2022-03-25T06:59:37.000Z | 2022-03-25T06:59:37.000Z | 2022/fix_user_varbinaries_T298565.py | wikimedia/operations-software-schema-changes | d5fc0442126c9e4280b90302f675889724b085db | [
"Apache-2.0"
] | null | null | null | 2022/fix_user_varbinaries_T298565.py | wikimedia/operations-software-schema-changes | d5fc0442126c9e4280b90302f675889724b085db | [
"Apache-2.0"
] | null | null | null | from auto_schema.schema_change import SchemaChange
# Copy this file and make adjustments
# Set to None or 0 to skip downtiming
downtime_hours = 6
ticket = 'T298565'
fields = {
'user_newpass_time': 'BINARY(14) DEFAULT NULL',
'user_email_authenticated': 'BINARY(14) DEFAULT NULL',
'user_email_token': 'BINAR... | 31.653061 | 93 | 0.668601 |
ecde65669f4bedead3c07c5ea0c8b548eae55547 | 274 | py | Python | examples/tutorial/Hello World/hello_world_simple.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 25 | 2017-07-14T06:39:37.000Z | 2022-03-09T21:39:51.000Z | examples/tutorial/Hello World/hello_world_simple.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 100 | 2016-12-13T17:30:41.000Z | 2021-08-01T20:21:13.000Z | examples/tutorial/Hello World/hello_world_simple.py | fearaschiarrai/gxpy | 4c5e7594b24e530a8cd94df1eef562c5c6ce3e92 | [
"BSD-2-Clause"
] | 28 | 2016-12-12T17:34:40.000Z | 2022-03-16T15:39:39.000Z | import geosoft.gxpy as gxpy
# a GX context is required, and must be assigned to a variable that persists through the life of execution.
gxc = gxpy.gx.GXpy()
# gid is a property of the context that holds the user's Geosoft ID. Say hello.
print('Hello {}'.format(gxc.gid))
| 34.25 | 107 | 0.740876 |
ecdebbbcc930fbd593a27cf375cbc5803f997b9d | 1,901 | py | Python | PAL/Cross/pupy/modules/load_package.py | infosecsecurity/OSPTF | df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f | [
"MIT"
] | 2 | 2017-11-23T01:07:37.000Z | 2021-06-25T05:03:49.000Z | PAL/Cross/pupy/modules/load_package.py | infosecsecurity/OSPTF | df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f | [
"MIT"
] | null | null | null | PAL/Cross/pupy/modules/load_package.py | infosecsecurity/OSPTF | df3f63dc882db6d7e0b7bd80476e9bbc8471ac1f | [
"MIT"
] | 1 | 2018-05-22T02:28:43.000Z | 2018-05-22T02:28:43.000Z | # -*- coding: utf-8 -*-
from pupylib.PupyModule import *
import os
__class_name__="LoadPackageModule"
ROOT=os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
| 41.326087 | 151 | 0.603893 |
ecdee0d3de015065d94e2fa767a46043dd7614ac | 87,434 | py | Python | eucaconsole/views/instances.py | gholms/eucaconsole | 4629c961c90e3aae27e3a869a7f157bafeda6489 | [
"BSD-2-Clause"
] | null | null | null | eucaconsole/views/instances.py | gholms/eucaconsole | 4629c961c90e3aae27e3a869a7f157bafeda6489 | [
"BSD-2-Clause"
] | null | null | null | eucaconsole/views/instances.py | gholms/eucaconsole | 4629c961c90e3aae27e3a869a7f157bafeda6489 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2013-2016 Hewlett Packard Enterprise Development LP
#
# Redistribution and use of this software 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 copyrig... | 52.73462 | 122 | 0.636091 |
ecdfc10584ead3508610d287f02bad431a223015 | 1,069 | py | Python | controllers/messagelog.py | uezo/linebot-project-template | 294d40f5c50a3bbee346314107b60e98f4e07bf0 | [
"MIT"
] | 14 | 2019-08-05T22:54:59.000Z | 2021-12-21T00:29:22.000Z | controllers/messagelog.py | whitecat-22/linebot-project-template | 294d40f5c50a3bbee346314107b60e98f4e07bf0 | [
"MIT"
] | 1 | 2021-06-17T09:30:33.000Z | 2021-06-18T07:16:37.000Z | controllers/messagelog.py | whitecat-22/linebot-project-template | 294d40f5c50a3bbee346314107b60e98f4e07bf0 | [
"MIT"
] | 5 | 2019-09-03T06:51:44.000Z | 2021-06-17T09:40:42.000Z | from flask import (
Blueprint,
current_app,
request,
abort,
render_template
)
from minette.serializer import loads
# Blueprint
bp = Blueprint("messagelog", __name__)
#
| 30.542857 | 76 | 0.651076 |
ecdfea2fc8814373ceb133d3329d18be6410b077 | 2,794 | py | Python | remove_proper_names/word_swaps.py | jsedoc/nn_chatbot | 7b4406687bad2efa14658cb5aa137065cd325073 | [
"MIT"
] | 2 | 2017-07-22T15:34:02.000Z | 2017-12-07T07:28:56.000Z | remove_proper_names/word_swaps.py | jsedoc/nn_chatbot | 7b4406687bad2efa14658cb5aa137065cd325073 | [
"MIT"
] | null | null | null | remove_proper_names/word_swaps.py | jsedoc/nn_chatbot | 7b4406687bad2efa14658cb5aa137065cd325073 | [
"MIT"
] | 3 | 2017-06-09T10:30:22.000Z | 2020-02-25T02:29:58.000Z | import glob
import os
# from nltk.tokenize import sent_e
import pickle
import nltk
import proper_names
import pdb
import itertools
import zlib
import pdb
import unicodedata
import pickle
from dateutil.parser import parse
return False
def remove_non_ascii(text):
'''removes any characters outside of the ASCII range... | 27.126214 | 112 | 0.668576 |
ece0d4591ac1dbef0075df8821e6f6390b749839 | 5,015 | py | Python | model/MolecularVAE_TF.py | DexiongYung/molecular-vae | ca0e5a58abfc89e693d06331f93e5a23b948b683 | [
"MIT"
] | null | null | null | model/MolecularVAE_TF.py | DexiongYung/molecular-vae | ca0e5a58abfc89e693d06331f93e5a23b948b683 | [
"MIT"
] | null | null | null | model/MolecularVAE_TF.py | DexiongYung/molecular-vae | ca0e5a58abfc89e693d06331f93e5a23b948b683 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from utilities import DEVICE
| 38.875969 | 76 | 0.592223 |
ece2b7f45bad32bc48fb693a6dbc789112e48513 | 2,391 | py | Python | gdmtl/datasets/sampler.py | binshengliu/gdmtl | fb8bfe0e87bbd6d8535cc8449012fb4119430d4c | [
"MIT"
] | null | null | null | gdmtl/datasets/sampler.py | binshengliu/gdmtl | fb8bfe0e87bbd6d8535cc8449012fb4119430d4c | [
"MIT"
] | null | null | null | gdmtl/datasets/sampler.py | binshengliu/gdmtl | fb8bfe0e87bbd6d8535cc8449012fb4119430d4c | [
"MIT"
] | 1 | 2022-02-26T00:49:03.000Z | 2022-02-26T00:49:03.000Z | from __future__ import annotations
from typing import Iterator, List
import numpy as np
from more_itertools import chunked
from torch.utils.data import Sampler
from .rank_dataset import TokenCountDataset
| 30.653846 | 88 | 0.608532 |
ece4317db2ec23cd3da212a5f91799db6c4f4f28 | 732 | py | Python | winter/drf/input_serializer.py | EvgenySmekalin/winter | 24b6a02f958478547a4a120324823743a1f7e1a1 | [
"MIT"
] | 1 | 2020-03-28T14:54:28.000Z | 2020-03-28T14:54:28.000Z | winter/drf/input_serializer.py | EvgenySmekalin/winter | 24b6a02f958478547a4a120324823743a1f7e1a1 | [
"MIT"
] | null | null | null | winter/drf/input_serializer.py | EvgenySmekalin/winter | 24b6a02f958478547a4a120324823743a1f7e1a1 | [
"MIT"
] | null | null | null | from typing import Dict
from typing import Optional
from typing import Type
from dataclasses import dataclass
from rest_framework.serializers import Serializer
from ..core import ComponentMethod
from ..core import annotate
| 28.153846 | 98 | 0.81694 |
ece4d8335a17b601ebf8628678662cbc5a6d273e | 4,417 | py | Python | scripts/showClusteringWithMatplotlib.py | victor-gil-sepulveda/pyProCT | 2777c73efb48d5ca6543c69a31719421c4d54694 | [
"MIT"
] | 10 | 2015-03-07T09:00:06.000Z | 2019-01-25T15:00:59.000Z | scripts/showClusteringWithMatplotlib.py | victor-gil-sepulveda/pyProCT | 2777c73efb48d5ca6543c69a31719421c4d54694 | [
"MIT"
] | 6 | 2015-01-08T11:17:14.000Z | 2018-10-08T15:17:32.000Z | scripts/showClusteringWithMatplotlib.py | victor-gil-sepulveda/pyProCT | 2777c73efb48d5ca6543c69a31719421c4d54694 | [
"MIT"
] | 11 | 2015-03-02T11:13:24.000Z | 2022-02-22T16:21:56.000Z |
# http://stackoverflow.com/questions/5147112/matplotlib-how-to-put-individual-tags-for-a-scatter-plot
# http://stackoverflow.com/questions/10374930/matplotlib-annotating-a-3d-scatter-plot
import sys
from pyproct.clustering.cluster import Cluster
import prody
import matplotlib.pyplot as plt
import numpy
import json
fr... | 46.989362 | 150 | 0.685307 |
ece5b98101c0b7084789fda8de5123934565565b | 15,973 | py | Python | tamarco/core/microservice.py | System73/tamarco | c85bec267d39057a4cd5f1c9854d5e2840cebb1e | [
"MIT"
] | 9 | 2019-09-06T10:57:36.000Z | 2019-10-14T07:24:02.000Z | tamarco/core/microservice.py | System73/tamarco | c85bec267d39057a4cd5f1c9854d5e2840cebb1e | [
"MIT"
] | 4 | 2020-04-06T15:52:40.000Z | 2021-06-02T00:27:33.000Z | tamarco/core/microservice.py | System73/tamarco | c85bec267d39057a4cd5f1c9854d5e2840cebb1e | [
"MIT"
] | 3 | 2019-09-06T10:52:05.000Z | 2019-10-10T07:45:26.000Z | import asyncio
import logging
import sys
import time
import uuid
from collections import OrderedDict
from collections.abc import Callable
from functools import partial
from threading import Thread
from typing import Coroutine, Union
from tamarco.core.dependency_resolver import CantSolveDependencies, resolve_dependency... | 38.121718 | 120 | 0.65617 |
ece6b2f23aba6f4dbaac2a541f07ef48b3ac7e3b | 4,990 | py | Python | napari/utils/colormaps/_tests/test_categorical_colormap.py | MaksHess/napari | 64a144607342c02177fc62fa83a3442ace0a98e7 | [
"BSD-3-Clause"
] | 1,345 | 2019-03-03T21:14:14.000Z | 2022-03-31T19:46:39.000Z | napari/utils/colormaps/_tests/test_categorical_colormap.py | MaksHess/napari | 64a144607342c02177fc62fa83a3442ace0a98e7 | [
"BSD-3-Clause"
] | 3,904 | 2019-03-02T01:30:24.000Z | 2022-03-31T20:17:27.000Z | napari/utils/colormaps/_tests/test_categorical_colormap.py | MaksHess/napari | 64a144607342c02177fc62fa83a3442ace0a98e7 | [
"BSD-3-Clause"
] | 306 | 2019-03-29T17:09:10.000Z | 2022-03-30T09:54:11.000Z | import json
from itertools import cycle
import numpy as np
import pytest
from napari.utils.colormaps.categorical_colormap import CategoricalColormap
def test_categorical_colormap_direct():
"""Test a categorical colormap with a provided mapping"""
colormap = {'hi': np.array([1, 1, 1, 1]), 'hello': np.array(... | 33.716216 | 82 | 0.690982 |
ece7523d74ceefe1e8b2b606e98dcc5885734d32 | 1,254 | py | Python | lezione4/ring_client.py | vollero/asdsw2021 | 28c8509681a986ee7c7fc3b0da782ce799a24195 | [
"CC0-1.0"
] | 1 | 2022-03-28T13:40:51.000Z | 2022-03-28T13:40:51.000Z | lezione4/ring_client.py | vollero/asdsw2021 | 28c8509681a986ee7c7fc3b0da782ce799a24195 | [
"CC0-1.0"
] | null | null | null | lezione4/ring_client.py | vollero/asdsw2021 | 28c8509681a986ee7c7fc3b0da782ce799a24195 | [
"CC0-1.0"
] | null | null | null | import socket
import logging
from sys import argv
import json
import re
if __name__ == '__main__':
oracleIP = argv[1]
oraclePORT = int(argv[2])
clientIP = argv[3]
clientPORT = int(argv[4])
logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s', level=logging.DEBUG)
... | 27.26087 | 96 | 0.69059 |
ecea0e953b8a3b5674749c92e29add6bece88812 | 1,833 | py | Python | resolwe/flow/finders.py | jkokosar/resolwe | c23db01494ef863fb2f8e130a59198cfd10bc7aa | [
"Apache-2.0"
] | null | null | null | resolwe/flow/finders.py | jkokosar/resolwe | c23db01494ef863fb2f8e130a59198cfd10bc7aa | [
"Apache-2.0"
] | null | null | null | resolwe/flow/finders.py | jkokosar/resolwe | c23db01494ef863fb2f8e130a59198cfd10bc7aa | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import, division, print_function, unicode_literals
import os
from django.apps import apps
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.utils.module_loading import import_string
def get_finders():
for finder_path in settin... | 31.067797 | 111 | 0.729951 |
eceb4701691e5840fbba24688faf47e59f51470c | 65 | py | Python | graphite_feeder/handler/event/appliance/sound/__init__.py | majamassarini/automate-graphite-feeder | 0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0 | [
"MIT"
] | null | null | null | graphite_feeder/handler/event/appliance/sound/__init__.py | majamassarini/automate-graphite-feeder | 0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0 | [
"MIT"
] | null | null | null | graphite_feeder/handler/event/appliance/sound/__init__.py | majamassarini/automate-graphite-feeder | 0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0 | [
"MIT"
] | null | null | null | from graphite_feeder.handler.event.appliance.sound import player
| 32.5 | 64 | 0.876923 |
ecedab6229e1c971886b23ad8d709733a48c40ca | 4,827 | py | Python | selectreverse/utils.py | idonethis/django-selectreverse | 13535028aaccb9e2a784dd798a188d88776a5dad | [
"BSD-2-Clause"
] | null | null | null | selectreverse/utils.py | idonethis/django-selectreverse | 13535028aaccb9e2a784dd798a188d88776a5dad | [
"BSD-2-Clause"
] | null | null | null | selectreverse/utils.py | idonethis/django-selectreverse | 13535028aaccb9e2a784dd798a188d88776a5dad | [
"BSD-2-Clause"
] | null | null | null | """
django-selectreverse
Custom manager to reduce sql queries for m2m and reverse fk relationships
"""
from django.db import models
from django.db.models.fields.related import ForeignRelatedObjectsDescriptor, ReverseManyRelatedObjectsDescriptor, ManyRelatedObjectsDescriptor
from django.core.exceptions import Impro... | 47.792079 | 144 | 0.64885 |
ecef158be8b2811acbb68437f98daaadc77358fd | 521 | py | Python | api/migrations/0007_auto_20181214_0439.py | takezyou/django_api | e65137632314958804dbe55c1111976ce3cdffe5 | [
"MIT"
] | null | null | null | api/migrations/0007_auto_20181214_0439.py | takezyou/django_api | e65137632314958804dbe55c1111976ce3cdffe5 | [
"MIT"
] | 9 | 2019-08-06T02:02:54.000Z | 2021-09-08T00:41:31.000Z | api/migrations/0007_auto_20181214_0439.py | takezyou/django_api | e65137632314958804dbe55c1111976ce3cdffe5 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.4 on 2018-12-14 04:39
from django.db import migrations, models
| 21.708333 | 47 | 0.56238 |
ecf1ce20b4fefaf58c8c7d08d20616ef3be895a2 | 375 | py | Python | src/utils/utils.py | andrelopez/cron-parser-cli | 35df5d5d8113dde99bee95f834c63248ce459194 | [
"MIT"
] | null | null | null | src/utils/utils.py | andrelopez/cron-parser-cli | 35df5d5d8113dde99bee95f834c63248ce459194 | [
"MIT"
] | null | null | null | src/utils/utils.py | andrelopez/cron-parser-cli | 35df5d5d8113dde99bee95f834c63248ce459194 | [
"MIT"
] | null | null | null | from columnar import columnar
| 25 | 90 | 0.541333 |
ecf2e06543a14fb924a2fb9fd6fb42ef3f9435a6 | 547 | py | Python | client/terminal.py | ekmixon/pyre-check | bd2475cc0cf4bef941f0aea6df10d674e6c907ab | [
"MIT"
] | 5,975 | 2018-05-11T15:54:32.000Z | 2022-03-31T14:38:00.000Z | client/terminal.py | ekmixon/pyre-check | bd2475cc0cf4bef941f0aea6df10d674e6c907ab | [
"MIT"
] | 524 | 2018-05-11T16:47:20.000Z | 2022-03-22T17:43:06.000Z | client/terminal.py | ekmixon/pyre-check | bd2475cc0cf4bef941f0aea6df10d674e6c907ab | [
"MIT"
] | 501 | 2018-05-11T16:46:29.000Z | 2022-03-19T04:41:57.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
import sys
from typing import TextIO
def is_capable(file: TextIO = sys.stderr) -> bool:
"""
Determine whether we are conne... | 27.35 | 65 | 0.689214 |
ecf35ef4c074dccc46a80355a4787bf3619f13a3 | 778 | py | Python | tests/utils/test_download.py | openghg/gather | 0096cfe66b0093cdd294fa2a67c060d7fc28d2fa | [
"Apache-2.0"
] | null | null | null | tests/utils/test_download.py | openghg/gather | 0096cfe66b0093cdd294fa2a67c060d7fc28d2fa | [
"Apache-2.0"
] | null | null | null | tests/utils/test_download.py | openghg/gather | 0096cfe66b0093cdd294fa2a67c060d7fc28d2fa | [
"Apache-2.0"
] | null | null | null | from gather.utils import download
import hashlib
from helpers import get_datapath
| 19.948718 | 76 | 0.667095 |
ecf408df66ed468cf11584dcfbbc451fc2a54142 | 917 | py | Python | LeNet/LeNet_pt.py | MuhammedAshraf2020/implementation-of-CNN-Models | 52be2b8d27c2340d30b6cab1883fffdb2f656343 | [
"MIT"
] | 2 | 2021-02-09T16:14:50.000Z | 2021-08-03T13:33:47.000Z | LeNet/LeNet_pt.py | MuhammedAshraf2020/implementation-of-CNN-Models | 52be2b8d27c2340d30b6cab1883fffdb2f656343 | [
"MIT"
] | null | null | null | LeNet/LeNet_pt.py | MuhammedAshraf2020/implementation-of-CNN-Models | 52be2b8d27c2340d30b6cab1883fffdb2f656343 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.optim as optim
# Create Model
| 35.269231 | 118 | 0.586696 |
019e55ec1c50df9500d86cf12839f5b296083659 | 4,782 | py | Python | ELA_Training_Module_Final.py | Sawera557/PhotoChamp-Image-Forensic-Tool | e7550a97d33cdf58a66ea0efcc451178bfd88a8d | [
"MIT"
] | null | null | null | ELA_Training_Module_Final.py | Sawera557/PhotoChamp-Image-Forensic-Tool | e7550a97d33cdf58a66ea0efcc451178bfd88a8d | [
"MIT"
] | null | null | null | ELA_Training_Module_Final.py | Sawera557/PhotoChamp-Image-Forensic-Tool | e7550a97d33cdf58a66ea0efcc451178bfd88a8d | [
"MIT"
] | null | null | null | import itertools
import os
import random as random1
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from PIL import Image, ImageChops, ImageEnhance
from keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPool2D
from keras.models import Sequential
from keras.optimizers import RMSpr... | 37.952381 | 123 | 0.645128 |
019fe14b196eb5bbb4dfe787d8a050ae5287690f | 380 | py | Python | model/__init__.py | aupendu/zero-restore | 7d2f44eb008ef47042a3a5b0e0a2654731e22f53 | [
"MIT"
] | 13 | 2021-06-15T12:39:44.000Z | 2022-03-07T15:33:40.000Z | model/__init__.py | aupendu/zero-restore | 7d2f44eb008ef47042a3a5b0e0a2654731e22f53 | [
"MIT"
] | 4 | 2021-06-19T07:53:09.000Z | 2022-01-12T15:41:52.000Z | model/__init__.py | aupendu/zero-restore | 7d2f44eb008ef47042a3a5b0e0a2654731e22f53 | [
"MIT"
] | 4 | 2021-08-01T08:51:38.000Z | 2022-02-22T05:12:03.000Z | import os
import torch
import torch.nn as nn
from importlib import import_module
| 22.352941 | 52 | 0.623684 |
01a154d7d3f987732b81523447ce1b96222a9132 | 3,140 | py | Python | natural/bank.py | Foxlik/natural | 0e8b15b200525ee147579b025a787646f7534890 | [
"MIT"
] | 21 | 2015-03-02T15:41:25.000Z | 2020-05-20T12:46:03.000Z | natural/bank.py | Foxlik/natural | 0e8b15b200525ee147579b025a787646f7534890 | [
"MIT"
] | 12 | 2015-10-29T18:02:00.000Z | 2021-11-10T21:49:40.000Z | natural/bank.py | Foxlik/natural | 0e8b15b200525ee147579b025a787646f7534890 | [
"MIT"
] | 8 | 2015-10-29T17:50:13.000Z | 2020-01-16T09:40:53.000Z | from natural.constant import _, IBAN_ALPHABET
from natural.constant import BBAN_RULES, BBAN_PATTERN, BBAN_MAP
import re
def bban_compact(number):
'''
Printable compacted Basic Bank Account Number. Removes all the padding
characters.
:param number: string
>>> bban_compact('1234.56.78.90')
'12... | 25.528455 | 78 | 0.606369 |
01a1648b4f717a6753e2c3b737bfc86f6abdbe33 | 1,011 | py | Python | synapyse/impl/learning/unsupervised_hebbian_learning.py | synapyse/synapyse | 8c9ff53ede2d83af27ce771ce1b6ea6a32155b02 | [
"MIT"
] | 4 | 2015-09-19T11:02:56.000Z | 2019-03-27T11:42:12.000Z | synapyse/impl/learning/unsupervised_hebbian_learning.py | synapyse/synapyse | 8c9ff53ede2d83af27ce771ce1b6ea6a32155b02 | [
"MIT"
] | null | null | null | synapyse/impl/learning/unsupervised_hebbian_learning.py | synapyse/synapyse | 8c9ff53ede2d83af27ce771ce1b6ea6a32155b02 | [
"MIT"
] | 1 | 2019-10-29T16:24:28.000Z | 2019-10-29T16:24:28.000Z | from synapyse.base.learning.unsupervised_learning import UnsupervisedLearning
__author__ = 'Douglas Eric Fonseca Rodrigues'
| 40.44 | 94 | 0.720079 |
01a16a425c553405c970ba2b0d169dec70571e71 | 805 | py | Python | WinIO/WinIO/Scripts/WinIO2/Controls/BlankWindow.py | sak9188/WinIO2 | 629a91633142cd78fd55422f9884b7f15f1d4e1d | [
"Apache-2.0"
] | 1 | 2022-03-20T23:19:24.000Z | 2022-03-20T23:19:24.000Z | WinIO/WinIO/Scripts/WinIO2/Controls/BlankWindow.py | sak9188/WinIO2 | 629a91633142cd78fd55422f9884b7f15f1d4e1d | [
"Apache-2.0"
] | null | null | null | WinIO/WinIO/Scripts/WinIO2/Controls/BlankWindow.py | sak9188/WinIO2 | 629a91633142cd78fd55422f9884b7f15f1d4e1d | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
from WinIO.Controls import ReuseWindow
from WinIO.Core import PyDelegateConverter as PyDel
from WinIO2.Core.FunctionTool import FunctionChain
| 18.295455 | 61 | 0.737888 |
01a26e38bfd6477fceda79c2ab6901ad81a89ddd | 6,435 | py | Python | menu.py | ThinkDownstairs/coder | 7a42a9bac941039b96ccf2430e560cc60e2159df | [
"WTFPL"
] | 1 | 2018-03-20T06:01:17.000Z | 2018-03-20T06:01:17.000Z | menu.py | ThinkDownstairs/coder | 7a42a9bac941039b96ccf2430e560cc60e2159df | [
"WTFPL"
] | 19 | 2018-03-20T23:11:38.000Z | 2018-04-01T17:39:10.000Z | menu.py | ThinkDownstairs/coder | 7a42a9bac941039b96ccf2430e560cc60e2159df | [
"WTFPL"
] | null | null | null |
from collections import namedtuple
import state_manager
import background
import sound
import quit_
import howto
import locations
import pygame
import consts
if __name__ == '__main__':
import game
import about
sm = state_manager.StateManager(init())
m = Menu()
m.add(MenuEntry('Start', game.... | 39 | 156 | 0.591142 |
01a2fc10e366d654cb931d27945bf9ef998b5a2a | 21,634 | py | Python | tor4/tensor.py | kbrodt/tor4 | d09740b746c534e67a72f492c7c03654f5888a46 | [
"MIT"
] | null | null | null | tor4/tensor.py | kbrodt/tor4 | d09740b746c534e67a72f492c7c03654f5888a46 | [
"MIT"
] | null | null | null | tor4/tensor.py | kbrodt/tor4 | d09740b746c534e67a72f492c7c03654f5888a46 | [
"MIT"
] | null | null | null | from typing import (
Any,
Callable,
List,
NamedTuple,
Optional,
Tuple,
Type,
Union,
overload,
)
import numpy as np
from scipy import special
Array = Union[np.ndarray]
Numeric = Union[int, float]
# Lists = Union[Numeric, List['Lists']]
Tuplist = Union[Tuple[int, ...], List[int]]
Dim... | 26.841191 | 122 | 0.623278 |
01a35af78a818794456f060908d249837cf70d44 | 5,576 | py | Python | cpepgen/chemical_linkages.py | hjuinj/cpepgen | 965f84148f783bd1d19aec4c9b86841a598d4a9b | [
"MIT"
] | null | null | null | cpepgen/chemical_linkages.py | hjuinj/cpepgen | 965f84148f783bd1d19aec4c9b86841a598d4a9b | [
"MIT"
] | null | null | null | cpepgen/chemical_linkages.py | hjuinj/cpepgen | 965f84148f783bd1d19aec4c9b86841a598d4a9b | [
"MIT"
] | null | null | null | """
This file contains several reactions for RDKIT
NOTES:
- Check what happens with ASP ASP ester bond formation? need more specifications to do that side targets?
- check_reaction_mols, also checking how many of the reaction sites are present in one molecule? - (more specific smart: make_aa_backbone_bond = [N... | 43.224806 | 230 | 0.695301 |
01a431b7bea5dccade1e08d80166cc10db69bf34 | 1,105 | py | Python | config.py | cclauss/MAX-Object-Detector | 4f38f7c1ba65cc39baa4a0f466618b91a65f46a1 | [
"Apache-2.0"
] | null | null | null | config.py | cclauss/MAX-Object-Detector | 4f38f7c1ba65cc39baa4a0f466618b91a65f46a1 | [
"Apache-2.0"
] | null | null | null | config.py | cclauss/MAX-Object-Detector | 4f38f7c1ba65cc39baa4a0f466618b91a65f46a1 | [
"Apache-2.0"
] | null | null | null | import os
# Flask settings
DEBUG=True
# Flask-restplus settings
RESTPLUS_MASK_SWAGGER=False
# Application settings
# API metadata
API_TITLE = 'Model Asset Exchange Server'
API_DESC = 'An API for serving models'
API_VERSION = '0.1'
# default model
# name of model to download
MODEL_NAME = 'ssd_mobilenet_v1_coco_2017... | 29.864865 | 97 | 0.744796 |
01a49750a5f79f46de5800bcca67ff60a286ab7c | 921 | py | Python | check_pharmacist.py | 136s/check_pharmacist | 02f60355523b5c4890fd314d6d000bfe54226db8 | [
"CC0-1.0"
] | null | null | null | check_pharmacist.py | 136s/check_pharmacist | 02f60355523b5c4890fd314d6d000bfe54226db8 | [
"CC0-1.0"
] | null | null | null | check_pharmacist.py | 136s/check_pharmacist | 02f60355523b5c4890fd314d6d000bfe54226db8 | [
"CC0-1.0"
] | null | null | null | import time
import pandas as pd
from selenium import webdriver
SEARCH_URL = "https://licenseif.mhlw.go.jp/search_iyaku/top.jsp"
SLEEP_SEC = 3
IN_CSV_NAME = "./list.csv"
OUT_CSV_NAME = "./output.csv"
# list
# csv name, years 2
df = pd.read_csv(IN_CSV_NAME)
df["years"] = df["years"].astype(str)
driver = webdriv... | 26.314286 | 81 | 0.689468 |
01a82caa0086ae5bd27db7ac800143f2aa34c7d3 | 3,983 | py | Python | Lessons/source/search.py | daisukiyo/cs-1.3 | e23056c509f429d83cb8be94714205c78a76549f | [
"MIT"
] | null | null | null | Lessons/source/search.py | daisukiyo/cs-1.3 | e23056c509f429d83cb8be94714205c78a76549f | [
"MIT"
] | 2 | 2019-04-25T00:49:24.000Z | 2019-05-15T23:22:36.000Z | Lessons/source/search.py | daisukiyo/cs-1.3 | e23056c509f429d83cb8be94714205c78a76549f | [
"MIT"
] | null | null | null | #!python
def linear_search(array, item):
"""return the first index of item in array or None if item is not found"""
# implement linear_search_iterative and linear_search_recursive below, then
# change this to call your implementation to verify it passes all tests
# return linear_search_iterative(array,... | 37.575472 | 99 | 0.667085 |
01a966a9092da2d27ed743864a64cbfc07fefe41 | 2,560 | py | Python | tests/generators.py | jlausuch/pcw | df4bf3d071024f894169163e2f0ad756c0c944bd | [
"Apache-2.0"
] | null | null | null | tests/generators.py | jlausuch/pcw | df4bf3d071024f894169163e2f0ad756c0c944bd | [
"Apache-2.0"
] | 35 | 2020-11-11T11:14:36.000Z | 2022-03-28T17:06:01.000Z | tests/generators.py | jlausuch/pcw | df4bf3d071024f894169163e2f0ad756c0c944bd | [
"Apache-2.0"
] | 3 | 2020-11-12T10:39:07.000Z | 2020-12-22T09:51:38.000Z | from faker import Faker
from datetime import datetime
fake = Faker()
min_image_age_hours = 7
max_images_per_flavor = 1
max_image_age_hours = 20
azure_storage_resourcegroup = 'openqa'
ec2_max_snapshot_age_days = 1
ec2_max_volumes_age_days = 5
def ec2_tags_mock(tags={fake.uuid4(): fake.uuid4()}):
return [ {'Key... | 29.767442 | 89 | 0.639844 |
01aa057dceb95a7aa7d04c4f772c03853d8076a3 | 6,725 | py | Python | sms_wsj/reverb/scenario.py | entn-at/sms_wsj | 76df11f6b32cfd3761167d06bd815bad46563d68 | [
"MIT"
] | 64 | 2019-10-25T11:12:40.000Z | 2022-02-06T09:53:43.000Z | sms_wsj/reverb/scenario.py | entn-at/sms_wsj | 76df11f6b32cfd3761167d06bd815bad46563d68 | [
"MIT"
] | 9 | 2019-12-04T09:19:11.000Z | 2021-02-10T09:55:49.000Z | sms_wsj/reverb/scenario.py | entn-at/sms_wsj | 76df11f6b32cfd3761167d06bd815bad46563d68 | [
"MIT"
] | 19 | 2019-11-04T01:33:26.000Z | 2022-03-03T12:00:37.000Z | """
Helps to quickly create source and sensor positions.
Try it with the following code:
>>> import numpy as np
>>> import sms_wsj.reverb.scenario as scenario
>>> src = scenario.generate_random_source_positions(dims=2, sources=1000)
>>> src[1, :] = np.abs(src[1, :])
>>> mic = scenario.generate_sensor_positions(shape='... | 31.57277 | 92 | 0.581264 |
01aa7bcf6840afae4b831716808a75290498a439 | 2,093 | py | Python | seed-mongo/seed.py | zconnect-iot/ibm-iot-emulator | 89b7c923b5e737df7dc9c508172f8f927a075668 | [
"MIT"
] | null | null | null | seed-mongo/seed.py | zconnect-iot/ibm-iot-emulator | 89b7c923b5e737df7dc9c508172f8f927a075668 | [
"MIT"
] | null | null | null | seed-mongo/seed.py | zconnect-iot/ibm-iot-emulator | 89b7c923b5e737df7dc9c508172f8f927a075668 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Seed integration overlock beta atlas:
python seed.py \
--host 'cluster0-shard-00-00-skv03.mongodb.net,cluster0-shard-00-01-skv03.mongodb.net,cluster0-shard-00-02-skv03.mongodb.net' \
--username integration-rw \
--db integration \
--ssl True \
--rs Cluster0-shard-0 \
-... | 21.57732 | 131 | 0.548017 |
01ab53ae5bc82ce4bbeea09d61801f03d76fc4d6 | 729 | py | Python | tortoise/contrib/test/condition.py | Alirezaja1384/tortoise-orm | e7ecbc81d43860a3b0b6d5d9da27497ed6234049 | [
"Apache-2.0"
] | 33 | 2018-04-07T09:50:22.000Z | 2018-08-24T10:25:29.000Z | tortoise/contrib/test/condition.py | Alirezaja1384/tortoise-orm | e7ecbc81d43860a3b0b6d5d9da27497ed6234049 | [
"Apache-2.0"
] | 41 | 2018-03-29T17:09:18.000Z | 2018-08-24T16:37:38.000Z | tortoise/contrib/test/condition.py | Alirezaja1384/tortoise-orm | e7ecbc81d43860a3b0b6d5d9da27497ed6234049 | [
"Apache-2.0"
] | 4 | 2018-06-27T08:45:11.000Z | 2018-07-30T18:16:55.000Z | from typing import Any
| 19.702703 | 41 | 0.609053 |
01add832e88c560c73b15b5f56cb3ef47d5a715d | 7,154 | py | Python | sdk/python/pulumi_gcp/securitycenter/source.py | dimpu47/pulumi-gcp | 38355de300a5768e11c49d344a8165ba0735deed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_gcp/securitycenter/source.py | dimpu47/pulumi-gcp | 38355de300a5768e11c49d344a8165ba0735deed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_gcp/securitycenter/source.py | dimpu47/pulumi-gcp | 38355de300a5768e11c49d344a8165ba0735deed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Dict, List, Mapping, Optional, Tuple, Union
from .. import ... | 45.278481 | 139 | 0.644674 |
01ae25899453c6d21187150fc54bebe1d1afb72a | 1,744 | py | Python | tests/builders/test_header_builder.py | pershinaM/openapi3-parser | 957c86727d6d4119e98a7bc6aa260adc9fa22477 | [
"MIT"
] | 4 | 2021-01-12T12:44:20.000Z | 2022-03-20T07:38:46.000Z | tests/builders/test_header_builder.py | pershinaM/openapi3-parser | 957c86727d6d4119e98a7bc6aa260adc9fa22477 | [
"MIT"
] | 17 | 2021-01-08T18:36:34.000Z | 2022-02-16T08:21:21.000Z | tests/builders/test_header_builder.py | pershinaM/openapi3-parser | 957c86727d6d4119e98a7bc6aa260adc9fa22477 | [
"MIT"
] | 5 | 2021-05-27T19:46:49.000Z | 2022-03-05T00:14:45.000Z | from unittest.mock import MagicMock
import pytest
from openapi_parser.builders import HeaderBuilder, SchemaFactory
from openapi_parser.enumeration import DataType
from openapi_parser.specification import Header, Integer, Schema, String
string_schema = String(type=DataType.STRING)
integer_schema = Integer(type=Data... | 27.25 | 90 | 0.583142 |
01ae4a445073c96133a2bcafddf9ca20b082d923 | 213 | py | Python | model/__init__.py | Dece-brove/APAN | 4703d528c283e26a8d8f31ab6664b5404a2db5b5 | [
"MIT"
] | null | null | null | model/__init__.py | Dece-brove/APAN | 4703d528c283e26a8d8f31ab6664b5404a2db5b5 | [
"MIT"
] | null | null | null | model/__init__.py | Dece-brove/APAN | 4703d528c283e26a8d8f31ab6664b5404a2db5b5 | [
"MIT"
] | null | null | null | from model.msg2mail import Msg2Mail
from model.encoder import Encoder
from model.decoder import Decoder
from model.updater import RNNUpdater, AttnUpdater
from model.aggregator import MLPAggregator, AttnAggregator
| 35.5 | 58 | 0.86385 |
01ae618867a8af68ce2b3329a0cb4a362b7294f8 | 808 | py | Python | src/model.py | senadkurtisi/Univariate-Time-Series-Forecasting | 6eb4bacae6d0fb5708e1b661a6b72cbc3c3d07a6 | [
"MIT"
] | null | null | null | src/model.py | senadkurtisi/Univariate-Time-Series-Forecasting | 6eb4bacae6d0fb5708e1b661a6b72cbc3c3d07a6 | [
"MIT"
] | null | null | null | src/model.py | senadkurtisi/Univariate-Time-Series-Forecasting | 6eb4bacae6d0fb5708e1b661a6b72cbc3c3d07a6 | [
"MIT"
] | null | null | null | import torch.nn as nn
| 31.076923 | 60 | 0.57797 |
01af7bcc534be18e709a82c37c35fb57c5674b95 | 1,025 | py | Python | time_tools/countdown2.py | HideKobayashi/python_base | 9334b83bcf003978bcfda3dbd35f83fc3a6926aa | [
"MIT"
] | null | null | null | time_tools/countdown2.py | HideKobayashi/python_base | 9334b83bcf003978bcfda3dbd35f83fc3a6926aa | [
"MIT"
] | null | null | null | time_tools/countdown2.py | HideKobayashi/python_base | 9334b83bcf003978bcfda3dbd35f83fc3a6926aa | [
"MIT"
] | null | null | null | from time import sleep
if __name__ == "__main__":
countdown_cui() | 26.973684 | 87 | 0.520976 |
01b034cce020fd91ff4ffe28a880e004894a3959 | 2,146 | py | Python | source/util.py | gilbertHuang/CG-diskusage | be448bb76419b43fb43c790836f9182a7773f8ff | [
"MIT"
] | null | null | null | source/util.py | gilbertHuang/CG-diskusage | be448bb76419b43fb43c790836f9182a7773f8ff | [
"MIT"
] | null | null | null | source/util.py | gilbertHuang/CG-diskusage | be448bb76419b43fb43c790836f9182a7773f8ff | [
"MIT"
] | null | null | null | import os
import constant
def make_dictionary_by_classification(iterable, ignore_list=None):
result = {}
for child in iterable:
child_path = child.part_path
for sort_key in classify_possible_path(child_path):
if ignore_list and sort_key in ignore_list:
continue
... | 35.766667 | 116 | 0.651911 |
01b03807a772b646022a290cf0b1e41d92a4ed7d | 108 | py | Python | Python_Socket/Test/SocketServer_Client_Test.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | Python_Socket/Test/SocketServer_Client_Test.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | Python_Socket/Test/SocketServer_Client_Test.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | from Module.SocketServer_Client import SocketServer_Client
Client = SocketServer_Client("localhost",5555) | 36 | 59 | 0.851852 |
01b0ac104efab8a9019c5d91c85bb5c365fc9019 | 1,103 | py | Python | fvserver/urls.py | fortiko/Crypt-Server | 9636a0214eed129cb1c3d7c48b548d1aa9015141 | [
"Apache-2.0"
] | 101 | 2015-01-21T12:33:45.000Z | 2021-12-30T09:56:35.000Z | fvserver/urls.py | fortiko/Crypt-Server | 9636a0214eed129cb1c3d7c48b548d1aa9015141 | [
"Apache-2.0"
] | 58 | 2015-07-12T18:59:57.000Z | 2022-03-28T13:25:58.000Z | fvserver/urls.py | fortiko/Crypt-Server | 9636a0214eed129cb1c3d7c48b548d1aa9015141 | [
"Apache-2.0"
] | 63 | 2015-08-14T21:58:05.000Z | 2022-03-05T13:47:49.000Z | # from django.conf.urls import include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
# admin.autodiscover()
import django.contrib.auth.views as auth_views
import django.contrib.admindocs.urls as admindocs_urls
from django.urls import path, include
app_name = "fvserver"
ur... | 31.514286 | 71 | 0.679057 |
01b0c7510a6ee5fc7d436bfbdd1231f6a49a1e9b | 1,639 | py | Python | helper/sqlitehelper.py | fidele000/SQLite-Helper | d848197705d0291370cbcc83cc8aadfd2eed884b | [
"MIT"
] | 1 | 2021-08-14T07:41:40.000Z | 2021-08-14T07:41:40.000Z | helper/sqlitehelper.py | fidele000/SQLite-Helper | d848197705d0291370cbcc83cc8aadfd2eed884b | [
"MIT"
] | null | null | null | helper/sqlitehelper.py | fidele000/SQLite-Helper | d848197705d0291370cbcc83cc8aadfd2eed884b | [
"MIT"
] | null | null | null | import sqlite3
| 29.8 | 76 | 0.560098 |
01b32c10851c74675ebdb6bc1eb381c6107996eb | 765 | py | Python | platform/core/polyaxon/activitylogs/events/build_job.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | platform/core/polyaxon/activitylogs/events/build_job.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | platform/core/polyaxon/activitylogs/events/build_job.py | hackerwins/polyaxon | ff56a098283ca872abfbaae6ba8abba479ffa394 | [
"Apache-2.0"
] | null | null | null | import activitylogs
from events.registry import build_job
activitylogs.subscribe(build_job.BuildJobStartedTriggeredEvent)
activitylogs.subscribe(build_job.BuildJobSoppedTriggeredEvent)
activitylogs.subscribe(build_job.BuildJobDeletedTriggeredEvent)
activitylogs.subscribe(build_job.BuildJobCreatedEvent)
activitylogs.s... | 45 | 63 | 0.909804 |
01b4dc4de6e91f68656b6a74509b9ace0bd38359 | 1,918 | py | Python | pyceo/pastel/stack.py | jpsca/pyceo | 8d8767514347848b4f045d04ce6e9fbb96a8d60f | [
"MIT"
] | 15 | 2020-09-30T22:41:09.000Z | 2021-12-30T16:38:42.000Z | proper_cli/pastel/stack.py | jpsca/proper-cli | 038f7273323bbf1880e30e4c3be19378e3e00df2 | [
"MIT"
] | null | null | null | proper_cli/pastel/stack.py | jpsca/proper-cli | 038f7273323bbf1880e30e4c3be19378e3e00df2 | [
"MIT"
] | 1 | 2021-07-24T04:10:01.000Z | 2021-07-24T04:10:01.000Z | """
Copyright (c) 2018 Sbastien Eustace
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribut... | 33.068966 | 70 | 0.708029 |
01b574a3a7d65deeb5fcdead6f4877e21a54e31f | 50,116 | py | Python | histo_GUI.py | pwilmart/PAW_pipeline | 73cf90ac4f316f48131956de3a6d82fdedfd1149 | [
"MIT"
] | 17 | 2018-09-06T14:04:27.000Z | 2022-03-03T11:13:15.000Z | histo_GUI.py | pwilmart/PAW_pipeline | 73cf90ac4f316f48131956de3a6d82fdedfd1149 | [
"MIT"
] | 3 | 2019-05-09T10:01:59.000Z | 2022-02-28T16:32:59.000Z | histo_GUI.py | pwilmart/PAW_pipeline | 73cf90ac4f316f48131956de3a6d82fdedfd1149 | [
"MIT"
] | 6 | 2019-03-18T12:35:55.000Z | 2022-01-07T13:28:53.000Z | """histo_GUI.py: Written by Billy Rathje, OHSU, 2014.
Also Phil Wilmarth, OHSU.
Library of support functions and classes for PAW pipeline programs.
The MIT License (MIT)
Copyright (c) 2017 Phillip A. Wilmarth and OHSU
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softw... | 49.424063 | 176 | 0.572412 |
01b64a5b8b1712b8bbe3a1fc3194b71d68d732a0 | 493 | py | Python | tests/test_add_metadata_route.py | lsst-sqre/sqre-apikit | 0d267f0d35a959e196b490a3cbb3aad0e0acdf03 | [
"MIT"
] | null | null | null | tests/test_add_metadata_route.py | lsst-sqre/sqre-apikit | 0d267f0d35a959e196b490a3cbb3aad0e0acdf03 | [
"MIT"
] | null | null | null | tests/test_add_metadata_route.py | lsst-sqre/sqre-apikit | 0d267f0d35a959e196b490a3cbb3aad0e0acdf03 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Test add_metadata_route function with legal parameters.
"""
import apikit
from flask import Flask
def test_set_flask_metadata():
"""Test metadata creation with legal parameters.
"""
app = Flask("bob")
apikit.set_flask_metadata(app, "2.0", "http://example.repo", "BobApp")
a... | 29 | 74 | 0.697769 |
01b6c2d8b92674f99f55d4198010e87b3a7c726a | 3,096 | py | Python | Bugscan_exploits-master/exp_list/exp-2458.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 11 | 2020-05-30T13:53:49.000Z | 2021-03-17T03:20:59.000Z | Bugscan_exploits-master/exp_list/exp-2458.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-13T03:25:18.000Z | 2020-07-21T06:24:16.000Z | Bugscan_exploits-master/exp_list/exp-2458.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-30T13:53:51.000Z | 2020-12-01T21:44:26.000Z | #/usr/bin/python
#-*- coding: utf-8 -*-
#Refer 0day
import time
if __name__ == '__main__':
from dummy import *
audit(assign('rockoa', 'http://www.jingkelai.com/jingkelaioa/')[1])
audit(assign('rockoa', 'http://www.ihkda.com/hg/')[1]) | 42.410959 | 112 | 0.583333 |
01b6d2a73e93d2c6c35cc68f44da69c9de7a5da2 | 851 | py | Python | app/email.py | ta4tsering/pyrrha-bo | d5afbe4b37d4d2ad5b5bb4129b1dccaeb50c9b17 | [
"MIT"
] | 1 | 2020-08-30T04:36:25.000Z | 2020-08-30T04:36:25.000Z | app/email.py | ta4tsering/pyrrha-bo | d5afbe4b37d4d2ad5b5bb4129b1dccaeb50c9b17 | [
"MIT"
] | null | null | null | app/email.py | ta4tsering/pyrrha-bo | d5afbe4b37d4d2ad5b5bb4129b1dccaeb50c9b17 | [
"MIT"
] | 1 | 2020-08-30T04:33:07.000Z | 2020-08-30T04:33:07.000Z |
from flask import render_template
from flask_mail import Message
from smtplib import SMTPDataError
from threading import Thread
from app import mail
import logging
logger = logging.getLogger(__name__)
| 26.59375 | 76 | 0.673325 |
01b6e3b7016b474cff100d6389fa9adbf07fe5a3 | 5,151 | py | Python | fastai_object_detection/dataloaders.py | rbrtwlz/fastai_object_detection | f0f79603b3349f4500c0e954b483bc75f09bef6b | [
"Apache-2.0"
] | 12 | 2021-04-04T04:33:45.000Z | 2022-03-29T12:43:48.000Z | fastai_object_detection/dataloaders.py | rbrtwlz/fastai_object_detection | f0f79603b3349f4500c0e954b483bc75f09bef6b | [
"Apache-2.0"
] | 2 | 2021-08-28T03:28:47.000Z | 2022-03-24T00:57:21.000Z | fastai_object_detection/dataloaders.py | rbrtwlz/fastai_object_detection | f0f79603b3349f4500c0e954b483bc75f09bef6b | [
"Apache-2.0"
] | 1 | 2021-07-30T06:49:49.000Z | 2021-07-30T06:49:49.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: notebooks/02_dataloaders.ipynb (unless otherwise specified).
__all__ = ['ObjectDetectionDataLoaders']
# Cell
from fastai.vision.all import *
from .core import *
# Cell
def _bin_mask_stack_and_padding(t, pad_idx=0):
"Function for padding to create batches when number... | 41.208 | 126 | 0.635799 |
01b7573d96f4fdd591b94a1d98f918f07dd327e6 | 317 | py | Python | examples/get_channel_info.py | avmmodules/AVMYT | 79022e3058bdfaedd95509f65ffb356fe3a90d28 | [
"MIT"
] | null | null | null | examples/get_channel_info.py | avmmodules/AVMYT | 79022e3058bdfaedd95509f65ffb356fe3a90d28 | [
"MIT"
] | null | null | null | examples/get_channel_info.py | avmmodules/AVMYT | 79022e3058bdfaedd95509f65ffb356fe3a90d28 | [
"MIT"
] | null | null | null | '''
Description:
Get information from Youtube in a simple way.
Author: AlejandroV
Version: 0.1.0
'''
import AVMYT as yt
channel = yt.getChannelInfo("luisito") # get channel
print(channel["name"] + " tiene " + channel["subs"] + " y un total de " + channel["videos"]) # prints info of Luisito Comunica | 28.818182 | 126 | 0.665615 |
01b8932f958e37ec8c50e7edf71a0763c83642f8 | 2,821 | py | Python | example/runCtaTrading.py | WongLynn/vnpy_Amerlin-1.1.20 | d701d8f12c29cc33f58ea025920b0c7240f74f82 | [
"MIT"
] | 11 | 2019-10-28T13:01:48.000Z | 2021-06-20T03:38:09.000Z | example/runCtaTrading.py | Rayshawn8/vnpy_Amerlin-1.1.20 | d701d8f12c29cc33f58ea025920b0c7240f74f82 | [
"MIT"
] | null | null | null | example/runCtaTrading.py | Rayshawn8/vnpy_Amerlin-1.1.20 | d701d8f12c29cc33f58ea025920b0c7240f74f82 | [
"MIT"
] | 6 | 2019-10-28T13:16:13.000Z | 2020-09-08T08:03:41.000Z | import multiprocessing
import os
from time import sleep
from datetime import datetime, time
from vnpy.event import EventEngine2
from vnpy.trader.vtEvent import EVENT_LOG, EVENT_ERROR
from vnpy.trader.vtEngine import MainEngine, LogEngine
from vnpy.trader.gateway import okexGateway
from vnpy.trader.app import ctaStrate... | 25.645455 | 71 | 0.561503 |
01b946264ae1c245632a78a4b8778f16966ec15a | 881 | py | Python | promesque/lib/exporter_logger.py | croesnick/prometheus_elasticsearch | f7cfc838b5cae5f3cbe2c4df53f3bfa60f0c5373 | [
"MIT"
] | 1 | 2019-04-17T20:12:23.000Z | 2019-04-17T20:12:23.000Z | promesque/lib/exporter_logger.py | croesnick/promesque | f7cfc838b5cae5f3cbe2c4df53f3bfa60f0c5373 | [
"MIT"
] | null | null | null | promesque/lib/exporter_logger.py | croesnick/promesque | f7cfc838b5cae5f3cbe2c4df53f3bfa60f0c5373 | [
"MIT"
] | null | null | null | import logging
import sys
LOG_LEVEL_MAP = {
'debug': logging.DEBUG,
'info': logging.INFO,
'warning': logging.WARNING,
'error': logging.ERROR,
'critical': logging.CRITICAL,
}
| 23.810811 | 108 | 0.664018 |