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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
74609ae44496cdfc87e05c051dc90aacc2d8e9d2 | 835 | py | Python | python-pscheduler/pscheduler/pscheduler/filestring.py | krihal/pscheduler | e69e0357797d88d290c78b92b1d99048e73a63e8 | [
"Apache-2.0"
] | 47 | 2016-09-28T14:19:10.000Z | 2022-03-21T13:26:47.000Z | python-pscheduler/pscheduler/pscheduler/filestring.py | krihal/pscheduler | e69e0357797d88d290c78b92b1d99048e73a63e8 | [
"Apache-2.0"
] | 993 | 2016-07-07T19:30:32.000Z | 2022-03-21T10:25:52.000Z | python-pscheduler/pscheduler/pscheduler/filestring.py | mfeit-internet2/pscheduler-dev | d2cd4065a6fce88628b0ca63edc7a69f2672dad2 | [
"Apache-2.0"
] | 36 | 2016-09-15T09:39:45.000Z | 2021-06-23T15:05:13.000Z | """
Functions for retrieving strings from files
"""
import os
def string_from_file(string, strip=True):
"""
Return an unaltered string or the contents of a file if the string
begins with @ and the rest of it points at a path.
If 'strip' is True, remove leading and trailing whitespace
(default be... | 22.567568 | 70 | 0.596407 |
7460cc551429ac86eed05c2ce1a99537edb93f02 | 1,318 | py | Python | gather_test_content.py | mgbennet/wpVitalsTender | de2ccf0ec58a1dd84f43a89a91f7569a01cd6ab2 | [
"MIT"
] | null | null | null | gather_test_content.py | mgbennet/wpVitalsTender | de2ccf0ec58a1dd84f43a89a91f7569a01cd6ab2 | [
"MIT"
] | null | null | null | gather_test_content.py | mgbennet/wpVitalsTender | de2ccf0ec58a1dd84f43a89a91f7569a01cd6ab2 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
Really quick script to build test data for multiple assessments
"""
import requests
import wpVitalsTender as wpvt
import json
# https://en.wikipedia.org/wiki/Wikipedia:Vital_articles/Expanded/Technology#Infrastructure_.2872_articles.29
articles = wpvt.parse_article(wpvt.get_content("Wikipedia:V... | 32.95 | 114 | 0.654021 |
7464c66067dc5e7c27ae29c46753b027458ecc5e | 1,764 | py | Python | tests/executors/models/test_electra.py | xiongma/bert2tf | 105fd1524edb703bf68aec8fde289de5923e1f78 | [
"Apache-2.0"
] | 7 | 2021-08-05T16:35:08.000Z | 2022-01-04T03:26:10.000Z | tests/executors/models/test_electra.py | xiongma/bert2tf | 105fd1524edb703bf68aec8fde289de5923e1f78 | [
"Apache-2.0"
] | 96 | 2021-08-06T08:32:09.000Z | 2022-01-21T11:07:25.000Z | tests/executors/models/test_electra.py | xiongma/bert2tf | 105fd1524edb703bf68aec8fde289de5923e1f78 | [
"Apache-2.0"
] | null | null | null | import unittest
import numpy as np
from bert2tf import Executor, ElectraDiscriminator, BertTokenizer
from tests import Bert2TFTestCase
| 49 | 104 | 0.718821 |
7464f1b7a4e383c5cf1c59e3f31706e1bfe39944 | 1,858 | py | Python | scenario-generator.py | mdenesfe/scenario-generator | 1ab85092669d8d75a361520640285735d0284bc7 | [
"MIT"
] | null | null | null | scenario-generator.py | mdenesfe/scenario-generator | 1ab85092669d8d75a361520640285735d0284bc7 | [
"MIT"
] | null | null | null | scenario-generator.py | mdenesfe/scenario-generator | 1ab85092669d8d75a361520640285735d0284bc7 | [
"MIT"
] | null | null | null |
basrol = input("Baroln ismi: ")
kardes = input("Baroln Aabeyi: ")
anne = input("Baroln Annesi: ")
baba = input("Baroln Babas: ")
sevgili1 = input("Basrolun Sevdii: ")
arkadas = input("Baroln Yakn Arkada: ")
mekan = input("Nerede: ")
isyeri = input("Nerede alyorlar: ")
print ("----------------------------... | 71.461538 | 213 | 0.700753 |
746527a8ed2f77b4c4d3fcc54299beffcb897f26 | 1,887 | py | Python | STUDENTS1.py | WitteDuivel/library-management-oncemore | 09f62c86b86028d8b76d9757051110732b290b46 | [
"MIT"
] | 1 | 2021-03-14T18:28:49.000Z | 2021-03-14T18:28:49.000Z | STUDENTS1.py | WitteDuivel/library-management-oncemore | 09f62c86b86028d8b76d9757051110732b290b46 | [
"MIT"
] | null | null | null | STUDENTS1.py | WitteDuivel/library-management-oncemore | 09f62c86b86028d8b76d9757051110732b290b46 | [
"MIT"
] | 1 | 2021-03-14T16:23:21.000Z | 2021-03-14T16:23:21.000Z | import mysql.connector
mydb=mysql.connector.connect(host="localhost",user="root",passwd="5678",database="library_management_project")
mycursor=mydb.cursor()
| 55.5 | 185 | 0.670376 |
746548fb4ddb1f620c961c08e5974090437cf8c8 | 1,276 | py | Python | deepblast/dataset/tests/test_alphabet.py | athbaltzis/deepblast | 63d29fd162e537de1630d4f98f2b559b61a611e3 | [
"BSD-3-Clause"
] | 29 | 2020-09-20T17:34:08.000Z | 2022-03-21T11:47:13.000Z | deepblast/dataset/tests/test_alphabet.py | athbaltzis/deepblast | 63d29fd162e537de1630d4f98f2b559b61a611e3 | [
"BSD-3-Clause"
] | 50 | 2020-06-19T23:56:17.000Z | 2020-09-12T22:20:26.000Z | deepblast/dataset/tests/test_alphabet.py | athbaltzis/deepblast | 63d29fd162e537de1630d4f98f2b559b61a611e3 | [
"BSD-3-Clause"
] | 9 | 2020-09-17T20:27:10.000Z | 2021-09-23T01:11:17.000Z | import numpy as np
import unittest
from deepblast.dataset.alphabet import UniprotTokenizer
import numpy.testing as npt
if __name__ == '__main__':
unittest.main()
| 31.121951 | 74 | 0.581505 |
7465df6d5b3424d0166449059e4b71cc8fd9a581 | 9,025 | py | Python | socketclusterclient/Socketcluster.py | sacOO7/socketcluster-client-python | aac7f395847f32c031a94815526167d337c54ce7 | [
"MIT"
] | 51 | 2016-12-09T14:35:16.000Z | 2021-09-24T21:39:43.000Z | socketclusterclient/Socketcluster.py | sacOO7/socketcluster-client-python | aac7f395847f32c031a94815526167d337c54ce7 | [
"MIT"
] | 19 | 2017-01-03T10:41:42.000Z | 2021-04-29T06:33:57.000Z | socketclusterclient/Socketcluster.py | sacOO7/socketcluster-client-python | aac7f395847f32c031a94815526167d337c54ce7 | [
"MIT"
] | 19 | 2017-02-06T18:43:29.000Z | 2021-09-26T02:15:17.000Z | import json
from threading import Timer
import websocket
import logging
import importlib
Emitter = importlib.import_module(".Emitter", package="socketclusterclient")
Parser = importlib.import_module(".Parser", package="socketclusterclient")
sclogger = logging.getLogger(__name__)
sclogger.addHandler(logging.StreamHand... | 36.24498 | 136 | 0.589584 |
7465eec7fc277ca1b426373d472f14baee2e7aeb | 4,467 | py | Python | lib/notationToEmoji.py | easton-bittner/TkPublic | a5c5cb3b3e33db19556f778056500689b5aeb5e9 | [
"MIT"
] | 17 | 2017-04-25T10:19:51.000Z | 2020-02-06T15:35:37.000Z | lib/notationToEmoji.py | easton-bittner/TkPublic | a5c5cb3b3e33db19556f778056500689b5aeb5e9 | [
"MIT"
] | 6 | 2017-05-11T02:41:30.000Z | 2018-07-27T15:17:52.000Z | lib/notationToEmoji.py | easton-bittner/TkPublic | a5c5cb3b3e33db19556f778056500689b5aeb5e9 | [
"MIT"
] | 13 | 2017-05-14T17:33:24.000Z | 2021-01-02T18:46:54.000Z | from lib.moveConversionDict import *
#======================================================================
#=============BEGIN Replacing Move Notation with INTERMEDIATES ========
#======================================================================
#==========================================================... | 38.508621 | 108 | 0.59503 |
746822afae34fec9032ebce30234428dc8e3a1c7 | 142 | py | Python | 12_module_basic/17_controller/mod.py | hemuke/python | bc99f2b5aee997083ae31f59a2b33db48c8255f3 | [
"Apache-2.0"
] | null | null | null | 12_module_basic/17_controller/mod.py | hemuke/python | bc99f2b5aee997083ae31f59a2b33db48c8255f3 | [
"Apache-2.0"
] | null | null | null | 12_module_basic/17_controller/mod.py | hemuke/python | bc99f2b5aee997083ae31f59a2b33db48c8255f3 | [
"Apache-2.0"
] | null | null | null | __all__ = ['v1', 'f1', 'C1']
v1 = 18
v2 = 36
| 8.352941 | 28 | 0.514085 |
74686f19ae54b48c3e2fccd4042747b1fe3d3133 | 2,755 | py | Python | core/authors/util.py | cmackenzie1/cmput404-project | 4067a05c0d3c20b18765f4bc6359ca7c5f59cfee | [
"Apache-2.0"
] | null | null | null | core/authors/util.py | cmackenzie1/cmput404-project | 4067a05c0d3c20b18765f4bc6359ca7c5f59cfee | [
"Apache-2.0"
] | 74 | 2019-01-12T21:16:03.000Z | 2022-03-02T03:04:54.000Z | core/authors/util.py | cmackenzie1/cmput404-project | 4067a05c0d3c20b18765f4bc6359ca7c5f59cfee | [
"Apache-2.0"
] | 2 | 2019-02-06T16:18:10.000Z | 2019-02-09T22:06:34.000Z | import requests
import json
from core.authors.models import Author
from core.hostUtil import is_external_host, get_host_url
from core.servers.SafeServerUtil import ServerUtil
from posixpath import join as urljoin
## Gets the unique ID of a local or external author. If external, returns the URL. If local, returns jus... | 38.263889 | 115 | 0.635572 |
74697367474506ce045f60ccd43ed3d1a6431709 | 1,218 | py | Python | database/buyer.py | mithilesh1024/Callback-Warrior_ShoppingMart | 33aaaaee720c0d8c7e3f337c5cab0e4a438a8742 | [
"MIT"
] | null | null | null | database/buyer.py | mithilesh1024/Callback-Warrior_ShoppingMart | 33aaaaee720c0d8c7e3f337c5cab0e4a438a8742 | [
"MIT"
] | null | null | null | database/buyer.py | mithilesh1024/Callback-Warrior_ShoppingMart | 33aaaaee720c0d8c7e3f337c5cab0e4a438a8742 | [
"MIT"
] | 3 | 2020-11-19T11:05:48.000Z | 2020-11-21T16:06:55.000Z | from flask_sqlalchemy import SQLAlchemy
| 38.0625 | 75 | 0.679803 |
746d29172dee4f61bf3ed0d46737bb7c9c82633b | 5,358 | py | Python | main.py | abhinav8797/Mobile_App | b0ba324c5cde7ef29ac515d9fad8a5b52eeb2ffb | [
"MIT"
] | null | null | null | main.py | abhinav8797/Mobile_App | b0ba324c5cde7ef29ac515d9fad8a5b52eeb2ffb | [
"MIT"
] | null | null | null | main.py | abhinav8797/Mobile_App | b0ba324c5cde7ef29ac515d9fad8a5b52eeb2ffb | [
"MIT"
] | null | null | null | from kivy.app import App
from kivy.lang import Builder
from kivy.uix.screenmanager import ScreenManager, Screen
import json, glob
from datetime import datetime
from pathlib import Path
import random
from hoverable import HoverBehavior
from kivy.uix.image import Image
from kivy.uix.behaviors import ButtonBehavi... | 33.911392 | 120 | 0.557484 |
7470b34136128d90bc4fa3aa10c385c35f267545 | 23,384 | py | Python | pymars/tests/test_drg.py | kbronstein56/pyMARS | ce1f6b282c6f6812ff0efae629fd27d9ad58efda | [
"MIT"
] | 39 | 2016-03-23T19:52:11.000Z | 2022-02-17T12:50:44.000Z | pymars/tests/test_drg.py | kbronstein56/pyMARS | ce1f6b282c6f6812ff0efae629fd27d9ad58efda | [
"MIT"
] | 62 | 2017-06-16T23:24:17.000Z | 2021-07-23T03:01:34.000Z | pymars/tests/test_drg.py | kbronstein56/pyMARS | ce1f6b282c6f6812ff0efae629fd27d9ad58efda | [
"MIT"
] | 41 | 2016-02-25T18:38:12.000Z | 2022-03-15T02:57:06.000Z | """Tests for drg module"""
import sys
import os
import pkg_resources
import pytest
import numpy as np
import networkx as nx
import cantera as ct
from ..sampling import data_files, InputIgnition
from ..drg import graph_search, create_drg_matrix, run_drg, trim_drg, reduce_drg
# Taken from http://stackoverflow.com/a/2... | 36.941548 | 96 | 0.480927 |
7470ca62a35741134194bea5b06bd86ec8e473b6 | 1,248 | py | Python | ymidi/containers.py | Owen-Cochell/yapmidi | 50a3a1800375a3f390eb40628387fb3d2a520b8e | [
"MIT"
] | null | null | null | ymidi/containers.py | Owen-Cochell/yapmidi | 50a3a1800375a3f390eb40628387fb3d2a520b8e | [
"MIT"
] | null | null | null | ymidi/containers.py | Owen-Cochell/yapmidi | 50a3a1800375a3f390eb40628387fb3d2a520b8e | [
"MIT"
] | null | null | null | """
Components that house MIDI events and other misc. data,
"""
from dataclasses import dataclass
| 24 | 74 | 0.668269 |
7471ea0595aef984ae4d2b28e629f06c47ce1eae | 341 | py | Python | apimodule/auctionhouse.py | bobbzorzen/wowapi | ed2079c7b8ccce6bdbbad8dcf514d92609d53058 | [
"MIT"
] | null | null | null | apimodule/auctionhouse.py | bobbzorzen/wowapi | ed2079c7b8ccce6bdbbad8dcf514d92609d53058 | [
"MIT"
] | null | null | null | apimodule/auctionhouse.py | bobbzorzen/wowapi | ed2079c7b8ccce6bdbbad8dcf514d92609d53058 | [
"MIT"
] | null | null | null | import requests
| 28.416667 | 106 | 0.630499 |
74728978860159ced6b3be96d1e231330846c004 | 2,712 | py | Python | enan/calculator/_binom.py | mizuno-group/enan | 3c9dbe60bebf98e384e858db56980928b5897775 | [
"MIT"
] | null | null | null | enan/calculator/_binom.py | mizuno-group/enan | 3c9dbe60bebf98e384e858db56980928b5897775 | [
"MIT"
] | null | null | null | enan/calculator/_binom.py | mizuno-group/enan | 3c9dbe60bebf98e384e858db56980928b5897775 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 23 12:59:35 2019
Binomial test
@author: tadahaya
"""
import pandas as pd
import numpy as np
import scipy.stats as stats
import statsmodels.stats.multitest as multitest
from scipy.stats import rankdata
def do_binom(obj,ref,whole,focus=None,correction="f... | 28.851064 | 110 | 0.566003 |
74745d9beae661a57badfc72611fc232fcdaa56d | 10,306 | py | Python | src/rgt/HINT/Tracks.py | mguo123/pan_omics | e1cacd543635b398fb08c0b31d08fa6b7c389658 | [
"MIT"
] | null | null | null | src/rgt/HINT/Tracks.py | mguo123/pan_omics | e1cacd543635b398fb08c0b31d08fa6b7c389658 | [
"MIT"
] | null | null | null | src/rgt/HINT/Tracks.py | mguo123/pan_omics | e1cacd543635b398fb08c0b31d08fa6b7c389658 | [
"MIT"
] | null | null | null | import os
from argparse import SUPPRESS
import numpy as np
from pysam import Samfile, Fastafile
from scipy.stats import scoreatpercentile
# Internal
from rgt.Util import GenomeData, HmmData, ErrorHandler
from rgt.GenomicRegionSet import GenomicRegionSet
from rgt.HINT.biasTable import BiasTable
from rgt.HINT.signalProc... | 49.548077 | 121 | 0.605473 |
7474b68b83f436dbeac054b6ef77bbb2f04f040e | 4,001 | py | Python | detecting_poverty/utils.py | ryanmwebb/detecting_poverty | 74974e6a35891e7a063bf6b611b23d4ba75ad013 | [
"MIT"
] | 1 | 2021-05-29T13:59:02.000Z | 2021-05-29T13:59:02.000Z | detecting_poverty/utils.py | ryanmwebb/detecting_poverty | 74974e6a35891e7a063bf6b611b23d4ba75ad013 | [
"MIT"
] | null | null | null | detecting_poverty/utils.py | ryanmwebb/detecting_poverty | 74974e6a35891e7a063bf6b611b23d4ba75ad013 | [
"MIT"
] | 2 | 2021-03-21T18:38:47.000Z | 2021-09-04T20:28:01.000Z | import torch
import numpy as np
from PIL import Image
import random
import math
import seaborn as sns
from sklearn import metrics
import matplotlib.pyplot as plt
def adjusted_classes(y_scores, threshold):
"""
This function adjusts class predictions based on the prediction threshold (t).
Will only work for ... | 29.858209 | 85 | 0.613347 |
7474de6b72b628515bac64b7140b7a9f3c115439 | 3,024 | py | Python | intro/with_restaurant.py | j54854/mySimPy | d10facc50bf851f754ceaa74af0cd992c3d69670 | [
"MIT"
] | null | null | null | intro/with_restaurant.py | j54854/mySimPy | d10facc50bf851f754ceaa74af0cd992c3d69670 | [
"MIT"
] | null | null | null | intro/with_restaurant.py | j54854/mySimPy | d10facc50bf851f754ceaa74af0cd992c3d69670 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import random, math
import simpy
def main():
env = simpy.Environment()
env.model = Model(env, 30, 10, 25, 25) # cap, ub, mt, vt
env.log = Log(env)
env.process(env.model.reception())
env.process(env.model.server())
env.run(until=200)
env.log.plot_log()
if __... | 34.363636 | 134 | 0.599206 |
7475ef869a204c884139e57953853f7580e07de3 | 373 | py | Python | deepRec1/dataloader4mlleatestWithTs.py | meannoharm/movie_recommend | aa1b82c82d3e66db62e50568414c5b4a1cfa92b6 | [
"MIT"
] | null | null | null | deepRec1/dataloader4mlleatestWithTs.py | meannoharm/movie_recommend | aa1b82c82d3e66db62e50568414c5b4a1cfa92b6 | [
"MIT"
] | null | null | null | deepRec1/dataloader4mlleatestWithTs.py | meannoharm/movie_recommend | aa1b82c82d3e66db62e50568414c5b4a1cfa92b6 | [
"MIT"
] | null | null | null | from utils import osUtils as ou
import random
from tqdm import tqdm
from data_set import filepaths as fp
import pandas as pd
if __name__ == '__main__':
readRecData(fp.Ml_latest_small.RATING_TS) | 24.866667 | 47 | 0.707775 |
7478d2f11d7e0d6bb0448d6c186c755970ef81b8 | 7,619 | py | Python | eth2/beacon/types/blocks.py | boorac/Trinity-Aurora-Client | 5cea9652e89333053d30eed11e72352ad222598a | [
"MIT"
] | null | null | null | eth2/beacon/types/blocks.py | boorac/Trinity-Aurora-Client | 5cea9652e89333053d30eed11e72352ad222598a | [
"MIT"
] | null | null | null | eth2/beacon/types/blocks.py | boorac/Trinity-Aurora-Client | 5cea9652e89333053d30eed11e72352ad222598a | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, Sequence, Type, TypeVar
from eth._utils.datatypes import Configurable
from eth.constants import ZERO_HASH32
from eth_typing import BLSSignature, Hash32
from eth_utils import humanize_hash
from ssz.hashable_container import HashableContainer, SignedH... | 31.745833 | 77 | 0.639191 |
747932e9a643cbc1f76b22228d6a2b69edf0bc39 | 118 | py | Python | anyfix_globals.py | alexander-liao/anyfix | d72e53d9382eb1a85dc2ff5ebc6a80094c5e9f57 | [
"Unlicense"
] | 4 | 2019-12-01T11:05:00.000Z | 2020-12-22T14:33:52.000Z | anyfix_globals.py | hyper-neutrino/anyfix | d72e53d9382eb1a85dc2ff5ebc6a80094c5e9f57 | [
"Unlicense"
] | null | null | null | anyfix_globals.py | hyper-neutrino/anyfix | d72e53d9382eb1a85dc2ff5ebc6a80094c5e9f57 | [
"Unlicense"
] | 1 | 2017-06-19T18:34:06.000Z | 2017-06-19T18:34:06.000Z | values = {
'r': 0.000000000001
}
typers = {
'r': float
}
| 10.727273 | 26 | 0.559322 |
74795f25553eaf32ca9d6c121547da78e70de951 | 17,163 | py | Python | nussl/separation/spatial/duet.py | ZhaoJY1/nussl | 57aabeabca3b2e75849e1659a522e3c2f77e9172 | [
"MIT"
] | 259 | 2016-10-04T19:21:25.000Z | 2020-04-15T14:39:54.000Z | nussl/separation/spatial/duet.py | titocaco/nussl | af7d0c50e01d107f4ef3305b89eb130d95d0a7cd | [
"MIT"
] | 115 | 2016-10-26T01:58:04.000Z | 2020-04-15T07:53:00.000Z | nussl/separation/spatial/duet.py | titocaco/nussl | af7d0c50e01d107f4ef3305b89eb130d95d0a7cd | [
"MIT"
] | 64 | 2017-04-11T04:10:35.000Z | 2020-04-08T11:23:48.000Z | import numpy as np
from scipy import signal
from .. import MaskSeparationBase
from ...core import utils
from ...core import constants
| 44.120823 | 119 | 0.653207 |
7479cada9fdd1efb255a672bd159f8dd24a8c80f | 1,640 | py | Python | scale/storage/test/test_delete_files_job.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 121 | 2015-11-18T18:15:33.000Z | 2022-03-10T01:55:00.000Z | scale/storage/test/test_delete_files_job.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 1,415 | 2015-12-23T23:36:04.000Z | 2022-01-07T14:10:09.000Z | scale/storage/test/test_delete_files_job.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 66 | 2015-12-03T20:38:56.000Z | 2020-07-27T15:28:11.000Z | from __future__ import unicode_literals
import os
import django
from django.test import TestCase
from mock import call, patch
from storage.brokers.host_broker import HostBroker
from storage.delete_files_job import delete_files
from storage.test import utils as storage_test_utils
| 32.8 | 101 | 0.70122 |
747c7221e174569d235224575433a905d10c3084 | 386 | py | Python | ports/cran/uses.py | yzgyyang/portcran | 04fa6ce8cd8585ed96aab19177d030b030ff79c9 | [
"BSD-2-Clause"
] | 1 | 2021-07-15T04:35:08.000Z | 2021-07-15T04:35:08.000Z | ports/cran/uses.py | yzgyyang/portcran | 04fa6ce8cd8585ed96aab19177d030b030ff79c9 | [
"BSD-2-Clause"
] | null | null | null | ports/cran/uses.py | yzgyyang/portcran | 04fa6ce8cd8585ed96aab19177d030b030ff79c9 | [
"BSD-2-Clause"
] | null | null | null | from typing import List, Optional
from ..core import Uses
__all__ = ["Cran"]
| 21.444444 | 61 | 0.624352 |
747d85e5114e6e9a0d3898d396537266fad41707 | 458 | py | Python | specialize-protein-subclass.py | rwst/wikidata-molbio | 198587fda16f81cf241c398650f79594c07cbdee | [
"CC0-1.0"
] | 2 | 2021-05-16T09:42:59.000Z | 2022-03-14T11:17:15.000Z | specialize-protein-subclass.py | rwst/wikidata-molbio | 198587fda16f81cf241c398650f79594c07cbdee | [
"CC0-1.0"
] | null | null | null | specialize-protein-subclass.py | rwst/wikidata-molbio | 198587fda16f81cf241c398650f79594c07cbdee | [
"CC0-1.0"
] | 1 | 2021-05-16T09:54:14.000Z | 2021-05-16T09:54:14.000Z | from sys import *
import csv
s = set()
reader = csv.DictReader(open('t.tab', 'r'), delimiter='\t')
for item in reader:
iturl = item.get('item')
it = iturl[iturl.rfind('/')+1:]
if it in s:
continue
s.add(it)
insturl = item.get('inst')
inst = insturl[insturl.rfind('/')+1:]
name = item... | 25.444444 | 59 | 0.585153 |
74812779d8c48fa896cdffccf52a934b0eca18b3 | 3,433 | py | Python | api/models.py | jjkivai/SolutionsWeb | c80d63784b90776d7506c98d5c96ad100ee08d67 | [
"MIT"
] | null | null | null | api/models.py | jjkivai/SolutionsWeb | c80d63784b90776d7506c98d5c96ad100ee08d67 | [
"MIT"
] | null | null | null | api/models.py | jjkivai/SolutionsWeb | c80d63784b90776d7506c98d5c96ad100ee08d67 | [
"MIT"
] | null | null | null | from django.db import models
# Helper functions
# Create your models here.
| 26.820313 | 87 | 0.633557 |
748208d04ccc90e28a70df11bc98d994623d97c1 | 197 | py | Python | Django/views.py | haohoangtran/Django | 8396262df750616ee9ea9812497fec29437f93c9 | [
"MIT"
] | null | null | null | Django/views.py | haohoangtran/Django | 8396262df750616ee9ea9812497fec29437f93c9 | [
"MIT"
] | null | null | null | Django/views.py | haohoangtran/Django | 8396262df750616ee9ea9812497fec29437f93c9 | [
"MIT"
] | null | null | null | from django.http import HttpResponse
from django.shortcuts import render | 32.833333 | 45 | 0.77665 |
7483f38451aaa933cce36500ba97073396794703 | 558 | py | Python | graph4ipy/consts.py | agapow/graph4ipy | 447a7361d5e78304460f3a46971cb62ab26d548f | [
"MIT"
] | null | null | null | graph4ipy/consts.py | agapow/graph4ipy | 447a7361d5e78304460f3a46971cb62ab26d548f | [
"MIT"
] | null | null | null | graph4ipy/consts.py | agapow/graph4ipy | 447a7361d5e78304460f3a46971cb62ab26d548f | [
"MIT"
] | null | null | null | """
Module-file constants.
"""
### IMPORTS
import os
# XXX: or should we not allow this?
__all__ = (
'MODULE_PATH',
'ASSETS_PATH',
)
### CONSTANTS & DEFINES
MODULE_PATH = os.path.normpath (os.path.dirname (__file__))
ASSETS_PATH = os.path.join (MODULE_PATH, 'assets')
JQUERY_TAG = """<script src="http://code... | 19.928571 | 72 | 0.677419 |
74853383b16a5dba5e7ad3d3a0c637a91d3fd6b2 | 2,707 | py | Python | distiller/pseudo_teacher.py | watson21/Knowledge_Distilling | 2e217208485c99b68c0cc2548f97d2cb0c82d1d0 | [
"MIT"
] | null | null | null | distiller/pseudo_teacher.py | watson21/Knowledge_Distilling | 2e217208485c99b68c0cc2548f97d2cb0c82d1d0 | [
"MIT"
] | null | null | null | distiller/pseudo_teacher.py | watson21/Knowledge_Distilling | 2e217208485c99b68c0cc2548f97d2cb0c82d1d0 | [
"MIT"
] | null | null | null | import torch
from torch import Tensor
import numpy as np
import copy
| 33.8375 | 79 | 0.548947 |
7485cc051a263a8de5922ba3b3366cf27a040c3d | 2,887 | py | Python | rlberry/envs/interface/model.py | antoine-moulin/rlberry | 676af9d1bb9094a6790a9aa3ff7e67b13584a183 | [
"MIT"
] | null | null | null | rlberry/envs/interface/model.py | antoine-moulin/rlberry | 676af9d1bb9094a6790a9aa3ff7e67b13584a183 | [
"MIT"
] | null | null | null | rlberry/envs/interface/model.py | antoine-moulin/rlberry | 676af9d1bb9094a6790a9aa3ff7e67b13584a183 | [
"MIT"
] | null | null | null | import gym
import numpy as np
import logging
from rlberry.seeding import seeding
logger = logging.getLogger(__name__)
| 26.731481 | 75 | 0.588847 |
7486a2903b82538e12936125531990c1eebb4902 | 657 | py | Python | pythonScripts/allSystemBehavior.py | Yperidis/bvd_agent_based_model | a42ae72ca05d966015bab92afd20130a2c6d848a | [
"MIT"
] | 1 | 2020-11-11T09:27:02.000Z | 2020-11-11T09:27:02.000Z | pythonScripts/allSystemBehavior.py | Yperidis/bvd_agent_based_model | a42ae72ca05d966015bab92afd20130a2c6d848a | [
"MIT"
] | 8 | 2018-06-13T12:41:23.000Z | 2019-11-14T05:26:34.000Z | pythonScripts/allSystemBehavior.py | Yperidis/bvd_agent_based_model | a42ae72ca05d966015bab92afd20130a2c6d848a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
import os
import plotGlobalEndemicBehaviour as analysisFile
thisDir = os.path.dirname(os.path.abspath(__file__))
filenames = []
thepath = "/Users/pascal/Coding/uni/Masterarbeit/Tests/results/finalcont/"
scen = "scen"
thisScen = scen
listfile = "/comp3.txt" #"/testing_list.txt"
scenari... | 25.269231 | 74 | 0.719939 |
748a825397bd0e9314a447970d621e66d1ce7f06 | 2,386 | py | Python | html_extract/jieba_call.py | xinyi-Z/HtmlExtract-Python | d4cc12231739f3ac521d12a8e83fdf12b829fa70 | [
"MIT"
] | 6 | 2017-03-08T09:30:39.000Z | 2019-10-23T09:47:53.000Z | html_extract/jieba_call.py | xinyi-spark/HtmlExtract-Python | d4cc12231739f3ac521d12a8e83fdf12b829fa70 | [
"MIT"
] | null | null | null | html_extract/jieba_call.py | xinyi-spark/HtmlExtract-Python | d4cc12231739f3ac521d12a8e83fdf12b829fa70 | [
"MIT"
] | 1 | 2020-04-26T09:44:30.000Z | 2020-04-26T09:44:30.000Z | # -*- coding: utf-8 -*-
'''
Name: jieba
AuthorXinYi 609610350@qq.com
Time2016.3
'''
import jieba.analyse
import jieba
def cut_all(data):
'''
-->///
'''
temp_result = jieba.cut(data, cut_all=True)
temp_result = '/'.join(temp_result)
return temp_result
def cut_accu... | 24.346939 | 99 | 0.615675 |
748ade9671cc9b1a53d8a53adc42d40e0c798ebd | 2,930 | py | Python | oops_fhir/r4/code_system/v3_hl7_context_conduction_style.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | oops_fhir/r4/code_system/v3_hl7_context_conduction_style.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | oops_fhir/r4/code_system/v3_hl7_context_conduction_style.py | Mikuana/oops_fhir | 77963315d123756b7d21ae881f433778096a1d25 | [
"MIT"
] | null | null | null | from pathlib import Path
from fhir.resources.codesystem import CodeSystem
from oops_fhir.utils import CodeSystemConcept
__all__ = ["v3HL7ContextConductionStyle"]
_resource = CodeSystem.parse_file(Path(__file__).with_suffix(".json"))
| 39.594595 | 373 | 0.675768 |
748bb404f6a6c177d0d69f3af5925c6607851cc9 | 1,450 | py | Python | Project-:-Loan-Approval-Analysis/code.py | RiyaVachhani/ga-learner-dst-repo | 8daabf510dca0c0056167292534532fbfb54bf6f | [
"MIT"
] | 1 | 2020-10-15T04:15:40.000Z | 2020-10-15T04:15:40.000Z | Project-:-Loan-Approval-Analysis/code.py | RiyaVachhani/ga-learner-dst-repo | 8daabf510dca0c0056167292534532fbfb54bf6f | [
"MIT"
] | null | null | null | Project-:-Loan-Approval-Analysis/code.py | RiyaVachhani/ga-learner-dst-repo | 8daabf510dca0c0056167292534532fbfb54bf6f | [
"MIT"
] | null | null | null | # --------------
# Importing header files
import numpy as np
import pandas as pd
from scipy.stats import mode
import warnings
warnings.filterwarnings('ignore')
#Reading file
bank = pd.read_csv(path)
#Code starts here
#Step1
categorical_var = bank.select_dtypes(include='object')
print(categorica... | 24.576271 | 119 | 0.707586 |
748e02775d6258ca295750d371d7fffab61b2dec | 6,151 | py | Python | data/waymo_split/setup_split.py | JuliaChae/M3D-RPN-Waymo | e73cba585563a094f67a2ba184a22330c134857c | [
"MIT"
] | 3 | 2021-03-30T17:36:29.000Z | 2021-12-07T03:02:43.000Z | data/waymo_split/setup_split.py | JuliaChae/M3D-RPN-Waymo | e73cba585563a094f67a2ba184a22330c134857c | [
"MIT"
] | 2 | 2021-02-11T15:29:46.000Z | 2021-07-19T15:03:15.000Z | data/waymo_split/setup_split.py | JuliaChae/M3D-RPN-Waymo | e73cba585563a094f67a2ba184a22330c134857c | [
"MIT"
] | null | null | null | from importlib import import_module
from getopt import getopt
import scipy.io as sio
import matplotlib.pyplot as plt
from matplotlib.path import Path
import numpy as np
import pprint
import sys
import os
import cv2
import math
import shutil
import re
# stop python from writing so much bytecode
sys.dont_write_bytecode ... | 39.683871 | 102 | 0.614372 |
74905af4b9b3f9a1545e7bc94d96a5578f2a8c9b | 2,185 | py | Python | virtual_finance_api/endpoints/yahoo/util.py | hootnot/virtual-yahoofinance-REST-API | 3246d3f4c14821e4ef0f9de57dd759cf03f42681 | [
"Apache-2.0"
] | 1 | 2022-03-18T08:27:34.000Z | 2022-03-18T08:27:34.000Z | virtual_finance_api/endpoints/yahoo/util.py | hootnot/virtual-yahoofinance-REST-API | 3246d3f4c14821e4ef0f9de57dd759cf03f42681 | [
"Apache-2.0"
] | null | null | null | virtual_finance_api/endpoints/yahoo/util.py | hootnot/virtual-yahoofinance-REST-API | 3246d3f4c14821e4ef0f9de57dd759cf03f42681 | [
"Apache-2.0"
] | 1 | 2021-06-18T02:14:03.000Z | 2021-06-18T02:14:03.000Z | # -*- coding: utf-8 -*-
import time
from datetime import datetime
import re
from typing import Union
from .types import AdjustType, Period, Interval
try:
import rapidjson as json
except ImportError as err:
import json
def procopt(
period: Period = Period.p_1mo,
interval: Interval = Interval.i_... | 23.75 | 88 | 0.579863 |
7490be062bf8f49932d88edf6304cbe160d7101a | 1,484 | py | Python | matplotlib_widget.py | kkgg0521/-Oscilloscope-host-computer | 2035ef5a2ccb26b563425dab560ee8002aade413 | [
"MIT"
] | null | null | null | matplotlib_widget.py | kkgg0521/-Oscilloscope-host-computer | 2035ef5a2ccb26b563425dab560ee8002aade413 | [
"MIT"
] | null | null | null | matplotlib_widget.py | kkgg0521/-Oscilloscope-host-computer | 2035ef5a2ccb26b563425dab560ee8002aade413 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@Time 2022/1/11 14:30
@Auth
@File matplotlib_widget.py
"""
# -*- coding: utf-8 -*-
"""
@Time 2021/12/15 10:52
@Auth
@File matplotlib_widget.py
"""
import numpy as np
from PyQt5.QtCore import QTimer
from PyQt5.QtWidgets import QWidget, QVBoxLayout
from matplotlib.backends... | 28 | 86 | 0.643531 |
74919c44ebaafcbfd0dc0243217b7977319b1e97 | 247 | py | Python | tests/django_app/settings.py | Menda/factory-boy-loader | f45504195df5b805a5a5ebde210dfd7ee1bd6939 | [
"MIT"
] | null | null | null | tests/django_app/settings.py | Menda/factory-boy-loader | f45504195df5b805a5a5ebde210dfd7ee1bd6939 | [
"MIT"
] | null | null | null | tests/django_app/settings.py | Menda/factory-boy-loader | f45504195df5b805a5a5ebde210dfd7ee1bd6939 | [
"MIT"
] | null | null | null | """
Settings for tests.
"""
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'example.sqlite',
},
}
INSTALLED_APPS = [
'tests.django_app'
]
MIDDLEWARE_CLASSES = ()
SECRET_KEY = 'testing.'
| 12.35 | 47 | 0.574899 |
749325b2a16ef07fb33e86332165cca629827a95 | 5,690 | py | Python | util/util.py | SWARTHYPEARL/pytorch-CycleGAN-and-pix2pix | 2002f769af77e791890ae6ff2b3d19e1d0903d0f | [
"BSD-3-Clause"
] | null | null | null | util/util.py | SWARTHYPEARL/pytorch-CycleGAN-and-pix2pix | 2002f769af77e791890ae6ff2b3d19e1d0903d0f | [
"BSD-3-Clause"
] | null | null | null | util/util.py | SWARTHYPEARL/pytorch-CycleGAN-and-pix2pix | 2002f769af77e791890ae6ff2b3d19e1d0903d0f | [
"BSD-3-Clause"
] | null | null | null | """This module contains simple helper functions """
from __future__ import print_function
import torch
import numpy as np
from PIL import Image
import os
import pydicom
from typing import Tuple
from torchvision.transforms import functional as F
def tensor2im(input_image, imtype=np.uint8):
""""Converts a Tensor a... | 31.092896 | 150 | 0.637083 |
7494903f2fd57cdd2385fa8bf9f733b728d7cb92 | 30 | py | Python | snakeplane/version.py | cpitts1/snakeplane | 1b69a6b5695049f91272a1dd3389a6bcf0496b73 | [
"Apache-2.0"
] | null | null | null | snakeplane/version.py | cpitts1/snakeplane | 1b69a6b5695049f91272a1dd3389a6bcf0496b73 | [
"Apache-2.0"
] | null | null | null | snakeplane/version.py | cpitts1/snakeplane | 1b69a6b5695049f91272a1dd3389a6bcf0496b73 | [
"Apache-2.0"
] | null | null | null | __version__ = "1.0.0-alpha20"
| 15 | 29 | 0.7 |
7496f6a4985cfae3de088f4bcb34c4fb1af5a415 | 19,958 | py | Python | docker_gpu/utils.py | osirrc2019/nvsm-docker | 85a8a10cd2ce7ff3c85447590dea0a36595559fc | [
"Apache-2.0"
] | 1 | 2020-09-22T07:18:52.000Z | 2020-09-22T07:18:52.000Z | docker_gpu/utils.py | osirrc/nvsm-docker | 85a8a10cd2ce7ff3c85447590dea0a36595559fc | [
"Apache-2.0"
] | 2 | 2019-05-26T04:51:33.000Z | 2019-06-08T09:31:04.000Z | docker_gpu/utils.py | osirrc/nvsm-docker | 85a8a10cd2ce7ff3c85447590dea0a36595559fc | [
"Apache-2.0"
] | null | null | null | """
Authors: <Stefano Marchesin, Alberto Purpura>
Copyright: (C) 2019-2020 <http://www.dei.unipd.it/
Department of Information Engineering> (DEI), <http://www.unipd.it/ University of Padua>, Italy
License: <http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0>
"""
import os
i... | 43.671772 | 121 | 0.572653 |
749734d7ec46a051a2ef757e3146ede4e25e0749 | 27 | py | Python | migemo/__init__.py | oguna/pymigemo | 850a08c8cf9ba0bb892b07d384f0c3f363bd9ae9 | [
"MIT"
] | null | null | null | migemo/__init__.py | oguna/pymigemo | 850a08c8cf9ba0bb892b07d384f0c3f363bd9ae9 | [
"MIT"
] | null | null | null | migemo/__init__.py | oguna/pymigemo | 850a08c8cf9ba0bb892b07d384f0c3f363bd9ae9 | [
"MIT"
] | null | null | null | from .migemo import Migemo
| 13.5 | 26 | 0.814815 |
749750ddc2a3da570c13fae66aeeafffb35185aa | 4,218 | py | Python | junior_class/chapter-6-sentiment_classification/code/model/sentiment_classifier.py | wwhio/awesome-DeepLearning | 2cc92edcf0c22bdfc670c537cc819c8fadf33fac | [
"Apache-2.0"
] | 1,150 | 2021-06-01T03:44:21.000Z | 2022-03-31T13:43:42.000Z | junior_class/chapter-6-sentiment_classification/code/model/sentiment_classifier.py | wwhio/awesome-DeepLearning | 2cc92edcf0c22bdfc670c537cc819c8fadf33fac | [
"Apache-2.0"
] | 358 | 2021-06-01T03:58:47.000Z | 2022-03-28T02:55:00.000Z | junior_class/chapter-6-sentiment_classification/code/model/sentiment_classifier.py | wwhio/awesome-DeepLearning | 2cc92edcf0c22bdfc670c537cc819c8fadf33fac | [
"Apache-2.0"
] | 502 | 2021-05-31T12:52:14.000Z | 2022-03-31T02:51:41.000Z | # copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve.
#
# 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 applica... | 40.557692 | 141 | 0.687055 |
749878839ed0ff169e95f4fc5bc3a8ba8ce272fd | 6,617 | py | Python | tests/test_openapi_scheme.py | montaro/fastapi-azure-auth | f4281aaf6c70f1b650d2649ea95fc11ad38b2a23 | [
"MIT"
] | 137 | 2021-08-13T08:32:45.000Z | 2022-03-30T09:19:42.000Z | tests/test_openapi_scheme.py | montaro/fastapi-azure-auth | f4281aaf6c70f1b650d2649ea95fc11ad38b2a23 | [
"MIT"
] | 46 | 2021-08-13T08:51:59.000Z | 2022-03-31T06:35:49.000Z | tests/test_openapi_scheme.py | montaro/fastapi-azure-auth | f4281aaf6c70f1b650d2649ea95fc11ad38b2a23 | [
"MIT"
] | 21 | 2021-08-23T04:32:35.000Z | 2022-03-30T12:38:14.000Z | import pytest
from demo_project.main import app
from fastapi.testclient import TestClient
openapi_schema = {
'openapi': '3.0.2',
'info': {
'title': 'My Project',
'description': '## Welcome to my API! \n This is my description, written in `markdown`',
'version': '1.0.0',
},
'path... | 41.35625 | 141 | 0.455645 |
749884d6ae7b51f08befe077d95461bec0522bb8 | 186 | py | Python | md_cms/forms.py | tinpan-io/django-md-cms | f1488650891069cc5f3b41f509dcb8681a65cda3 | [
"BSD-3-Clause"
] | 12 | 2015-05-24T14:54:15.000Z | 2022-02-09T03:17:37.000Z | md_cms/forms.py | tinpan-io/django-md-cms | f1488650891069cc5f3b41f509dcb8681a65cda3 | [
"BSD-3-Clause"
] | 1 | 2015-07-24T17:54:31.000Z | 2015-07-24T21:08:53.000Z | md_cms/forms.py | tinpan-io/django-md-cms | f1488650891069cc5f3b41f509dcb8681a65cda3 | [
"BSD-3-Clause"
] | 1 | 2021-08-22T11:40:32.000Z | 2021-08-22T11:40:32.000Z | from django import forms
from pagedown.widgets import PagedownWidget
| 20.666667 | 44 | 0.709677 |
74988dd7e59bdc9e60bf0329b0766aabfb8bc66d | 2,792 | py | Python | firmware/test_display.py | mastensg/windportal | d38e5eaa3af577cbc1bc6aecdcc63693556d547a | [
"0BSD"
] | 1 | 2018-10-09T20:02:23.000Z | 2018-10-09T20:02:23.000Z | firmware/test_display.py | mastensg/windportal | d38e5eaa3af577cbc1bc6aecdcc63693556d547a | [
"0BSD"
] | null | null | null | firmware/test_display.py | mastensg/windportal | d38e5eaa3af577cbc1bc6aecdcc63693556d547a | [
"0BSD"
] | null | null | null |
import display
import pytest
import msgflo
import gevent
import os.path
BROKER = os.environ.get('MSGFLO_BROKER', 'mqtt://localhost')
# Helper for running one iteration of next_state()
# State calculation tests
# MQTT / tests
def test_mqtt_windspeed_update(participant, mqtt_client):
if os.path.exists(parti... | 26.846154 | 88 | 0.709885 |
74992e791f0bfb3da96a37fdd4a8ed363d8aa216 | 1,976 | py | Python | gfxlcd/demos/ssd.py | bkosciow/gfxlcd | 953d013abb9b695c2226b348093cc64391a01f6c | [
"MIT"
] | 12 | 2018-01-31T18:43:23.000Z | 2021-10-06T10:23:05.000Z | gfxlcd/demos/ssd.py | bkosciow/gfxlcd | 953d013abb9b695c2226b348093cc64391a01f6c | [
"MIT"
] | 4 | 2018-04-25T15:15:16.000Z | 2021-03-21T09:21:50.000Z | gfxlcd/demos/ssd.py | bkosciow/gfxlcd | 953d013abb9b695c2226b348093cc64391a01f6c | [
"MIT"
] | 4 | 2018-03-15T09:12:09.000Z | 2021-03-19T20:07:33.000Z | import random
import sys
sys.path.append("../../")
from gfxlcd.driver.ssd1306.spi import SPI
from gfxlcd.driver.ssd1306.ssd1306 import SSD1306
drv = SPI()
o = SSD1306(128, 64, drv)
o.init()
o.auto_flush = False
for _ in range(0, 50):
hole(random.randint(2, 120), random.randint(2, 56))
hole(10, 10)
hole(15, 13)... | 21.247312 | 55 | 0.612348 |
7499e170414703496be4ab2bbf1fd38e93f33c67 | 8,928 | py | Python | CRF.py | JackieChenssh/TC_VFDT_CRF | 5a5706c9ee7480c6788e774a40863a12d8948107 | [
"MIT"
] | null | null | null | CRF.py | JackieChenssh/TC_VFDT_CRF | 5a5706c9ee7480c6788e774a40863a12d8948107 | [
"MIT"
] | null | null | null | CRF.py | JackieChenssh/TC_VFDT_CRF | 5a5706c9ee7480c6788e774a40863a12d8948107 | [
"MIT"
] | null | null | null |
if __name__=="__main__":
train_corpus_src = 'msr_training.utf8'
train_corpus_dst = 'msr_training.utf8.pr'
corpus_file_transform(train_corpus_src,train_corpus_dst)
with open(train_corpus_dst,'r',encoding = 'utf-8') as f:
train_corpus = f.readlines()
print(train_corpus[:10])
featureFile... | 48.521739 | 303 | 0.610327 |
749c460d9cc381082715bcd7b08d1f46b88b8b93 | 1,602 | py | Python | cds_ils/circulation/serializers/__init__.py | zzacharo/cds-ils | 6816c348e209607b97583acc40fb37dea0c62418 | [
"MIT"
] | 1 | 2020-06-06T16:59:28.000Z | 2020-06-06T16:59:28.000Z | cds_ils/circulation/serializers/__init__.py | zzacharo/cds-ils | 6816c348e209607b97583acc40fb37dea0c62418 | [
"MIT"
] | 108 | 2017-11-22T14:02:11.000Z | 2020-08-14T15:59:32.000Z | cds_ils/circulation/serializers/__init__.py | zzacharo/cds-ils | 6816c348e209607b97583acc40fb37dea0c62418 | [
"MIT"
] | 8 | 2019-07-10T07:02:08.000Z | 2020-08-10T14:07:25.000Z | # -*- coding: utf-8 -*-
#
# Copyright (C) 2021 CERN.
#
# CDS-ILS is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
"""Loan serializers."""
from invenio_app_ils.circulation.serializers.csv import LoanCSVSerializer
from invenio_app_ils.rec... | 36.409091 | 73 | 0.736579 |
749c7e0a26e0a1a459f6996d37a957ad5e2ebb4e | 906 | py | Python | bgg4py/valueobject/hot_item.py | hiroaqii/bgg4py | ba3d8ef31f23b8ec6464c1142672b5e7b6f3c87d | [
"MIT"
] | 1 | 2020-06-07T07:10:21.000Z | 2020-06-07T07:10:21.000Z | bgg4py/valueobject/hot_item.py | hiroaqii/bgg4py | ba3d8ef31f23b8ec6464c1142672b5e7b6f3c87d | [
"MIT"
] | null | null | null | bgg4py/valueobject/hot_item.py | hiroaqii/bgg4py | ba3d8ef31f23b8ec6464c1142672b5e7b6f3c87d | [
"MIT"
] | null | null | null | from collections import OrderedDict
from typing import List, Optional, Union
from .bgg import Bgg
| 23.842105 | 75 | 0.610375 |
749d44d25cfa0c9b9eb07d6c51521ae1d2b478d9 | 1,935 | py | Python | tests/test_load_docker_api.py | ReconPangolin/tern | ed8b2b721397358f5ff8c4253aa4f0aa70a55afe | [
"BSD-2-Clause"
] | 361 | 2017-12-06T17:53:24.000Z | 2020-04-02T18:42:37.000Z | tests/test_load_docker_api.py | JamieMagee/tern | 230d6d812d6a74e084c6d3d9d9396f2c716254b7 | [
"BSD-2-Clause"
] | 442 | 2017-12-06T14:24:17.000Z | 2020-04-08T23:56:34.000Z | tests/test_load_docker_api.py | JamieMagee/tern | 230d6d812d6a74e084c6d3d9d9396f2c716254b7 | [
"BSD-2-Clause"
] | 113 | 2020-04-24T00:21:25.000Z | 2022-03-31T09:40:36.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) 2020 VMware, Inc. All Rights Reserved.
# SPDX-License-Identifier: BSD-2-Clause
import unittest
from tern.load import docker_api
from tern.utils import rootfs
from test_fixtures import create_working_dir
from test_fixtures import remove_working_dir
if __name__ == '__main__'... | 33.947368 | 77 | 0.701809 |
749dc9159b829abb30d26a06f143fffa8c779d95 | 663 | py | Python | tests/update_golds.py | leonardt/magma | d3e8c9500ec3b167df8ed067e0c0305781c94ab6 | [
"MIT"
] | 167 | 2017-10-08T00:59:22.000Z | 2022-02-08T00:14:39.000Z | tests/update_golds.py | leonardt/magma | d3e8c9500ec3b167df8ed067e0c0305781c94ab6 | [
"MIT"
] | 719 | 2017-08-29T17:58:28.000Z | 2022-03-31T23:39:18.000Z | tests/update_golds.py | leonardt/magma | d3e8c9500ec3b167df8ed067e0c0305781c94ab6 | [
"MIT"
] | 14 | 2017-09-01T03:25:16.000Z | 2021-11-05T13:30:24.000Z | """
Expected to be run from repo root
"""
import shutil
import os
copy_golds("tests")
for name in os.listdir("tests"):
if not os.path.isdir(os.path.join("tests", name)):
continue
if "gold" in os.listdir(os.path.join("tests", name)):
copy_golds(os.path.join("tests", name))
| 23.678571 | 66 | 0.582202 |
749e42a4418c3487323f664591ca9e502c9c5f1c | 883 | py | Python | terracommon/project/settings/dev.py | Terralego/terra-back | 32779117ee3613b9d2e476cf445f94dbdb0f114f | [
"MIT"
] | 4 | 2019-05-07T12:34:35.000Z | 2019-11-14T10:52:11.000Z | terracommon/project/settings/dev.py | Terralego/terra-back | 32779117ee3613b9d2e476cf445f94dbdb0f114f | [
"MIT"
] | 16 | 2019-08-14T11:09:39.000Z | 2022-02-10T07:55:31.000Z | terracommon/project/settings/dev.py | Terralego/terra-back | 32779117ee3613b9d2e476cf445f94dbdb0f114f | [
"MIT"
] | 1 | 2019-04-17T09:03:02.000Z | 2019-04-17T09:03:02.000Z | # -*- coding: utf-8 -*-
import logging
import os
from django.utils import six
from .base import * # noqa
SECRET_KEY = 'dev-dev-dev-dev-dev-dev-dev'
ALLOWED_HOSTS = []
DEBUG = True
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
INTERNAL_IPS = ('127.0.0.1',) # Used by app debug_toolbar
# Add th... | 23.864865 | 73 | 0.698754 |
749eba3bd79560da8b8517bcb2722b0650f6e87f | 4,173 | py | Python | sendcloud/management/commands/sc_members.py | edison7500/django-sendcloud | 7d500bf134591ea0e192edd98fd4d04800fa0caf | [
"MIT"
] | 2 | 2018-03-07T06:06:03.000Z | 2019-11-01T01:24:39.000Z | sendcloud/management/commands/sc_members.py | edison7500/django-sendcloud | 7d500bf134591ea0e192edd98fd4d04800fa0caf | [
"MIT"
] | null | null | null | sendcloud/management/commands/sc_members.py | edison7500/django-sendcloud | 7d500bf134591ea0e192edd98fd4d04800fa0caf | [
"MIT"
] | 2 | 2018-03-16T06:19:03.000Z | 2019-11-01T08:45:06.000Z | import click
import logging
from django.core.management.base import BaseCommand
from sendcloud.core.members import MemberAPI
logger = logging.getLogger('sendcloud')
| 28.006711 | 95 | 0.483345 |
749ec4e7122e24792be242d2e3a3ea1f5bbc8da8 | 10,962 | py | Python | models/selfatt/selfattn.py | jesa7955/r2c | 7a24b3ce7381ea6190b5dfa5b0083deabfe53d6c | [
"MIT"
] | null | null | null | models/selfatt/selfattn.py | jesa7955/r2c | 7a24b3ce7381ea6190b5dfa5b0083deabfe53d6c | [
"MIT"
] | null | null | null | models/selfatt/selfattn.py | jesa7955/r2c | 7a24b3ce7381ea6190b5dfa5b0083deabfe53d6c | [
"MIT"
] | null | null | null | """
Attention is all you need!
"""
from typing import Dict, List, Any
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.nn.parallel
from allennlp.data.vocabulary import Vocabulary
from allennlp.models.model import Model
from allennlp.modules import TextFieldEmbedder, Seq2SeqEncoder, Feed... | 51.224299 | 123 | 0.564496 |
74a16430ce735e73f9d5943171032a29af4c2bd7 | 14,945 | py | Python | sample-viewer-api/src/static/data/compile_cvisb_data/helpers/observations.py | cvisb/cvisb_data | 81ebf22782f2c44f8aa8ab9437cc4fb54248c3ed | [
"MIT"
] | 2 | 2020-02-18T08:16:45.000Z | 2021-04-11T18:58:02.000Z | sample-viewer-api/src/static/data/compile_cvisb_data/helpers/observations.py | cvisb/cvisb_data | 81ebf22782f2c44f8aa8ab9437cc4fb54248c3ed | [
"MIT"
] | 47 | 2019-09-30T22:26:36.000Z | 2021-11-17T00:34:38.000Z | sample-viewer-api/src/static/data/compile_cvisb_data/helpers/observations.py | cvisb/cvisb_data | 81ebf22782f2c44f8aa8ab9437cc4fb54248c3ed | [
"MIT"
] | 1 | 2020-07-01T21:15:18.000Z | 2020-07-01T21:15:18.000Z | import numpy as np
from .citations import cvisb, kgh
# Convert symptoms to an array of objects with T/F values
# Convert ELISAs from a series of columns to an array
| 37.644836 | 127 | 0.558448 |
74a16456b6f97b4da59fe2f3e3279a4ce95a7134 | 5,647 | py | Python | test_machine.py | technosvitman/statemachine | e1e80ac364c9c9916785ba6c4bad3e434cc964db | [
"MIT"
] | null | null | null | test_machine.py | technosvitman/statemachine | e1e80ac364c9c9916785ba6c4bad3e434cc964db | [
"MIT"
] | 2 | 2021-08-10T09:38:59.000Z | 2021-08-22T15:52:37.000Z | test_machine.py | technosvitman/statemachine | e1e80ac364c9c9916785ba6c4bad3e434cc964db | [
"MIT"
] | null | null | null |
import sys
import io
import time
import argparse
import re
from pyctest import *
'''
@see PycTestCase
'''
'''
@see PycTestCase
'''
'''
@see PycTestCase
'''
'''
@see PycTestCase
'''
parser = argparse.ArgumentParser(description='Statemachine tester')
parser.... | 27.817734 | 79 | 0.552506 |
74a2f02be6b32574f0bf99ac0ef8c19757b2b9af | 10,105 | py | Python | python_modules/libraries/dagster-gcp/dagster_gcp_tests/bigquery_tests/test_solids.py | bambielli-flex/dagster | 30b75ba7c62fc536bc827f177c1dc6ba20f5ae20 | [
"Apache-2.0"
] | null | null | null | python_modules/libraries/dagster-gcp/dagster_gcp_tests/bigquery_tests/test_solids.py | bambielli-flex/dagster | 30b75ba7c62fc536bc827f177c1dc6ba20f5ae20 | [
"Apache-2.0"
] | null | null | null | python_modules/libraries/dagster-gcp/dagster_gcp_tests/bigquery_tests/test_solids.py | bambielli-flex/dagster | 30b75ba7c62fc536bc827f177c1dc6ba20f5ae20 | [
"Apache-2.0"
] | null | null | null | import sys
import datetime
import pytest
import pandas as pd
try:
import unittest.mock as mock
except ImportError:
import mock
from dagster_pandas import DataFrame
from dagster import (
DependencyDefinition,
InputDefinition,
List,
ModeDefinition,
Nothing,
OutputDefinition,
Path,
... | 39.627451 | 138 | 0.650272 |
74a409e5415f725403c27183fabcaddebcbbc5e4 | 1,413 | py | Python | src/multiclass/LSTMMultiClass.py | ocatak/malware_api_class | 446f0c7643e93bda26599524d3cb796d9294cd91 | [
"MIT"
] | 172 | 2019-05-07T13:03:41.000Z | 2022-03-29T08:38:05.000Z | src/multiclass/LSTMMultiClass.py | ocatak/malware_api_class | 446f0c7643e93bda26599524d3cb796d9294cd91 | [
"MIT"
] | 4 | 2019-09-16T10:30:47.000Z | 2021-11-01T14:26:04.000Z | src/multiclass/LSTMMultiClass.py | ocatak/malware_api_class | 446f0c7643e93bda26599524d3cb796d9294cd91 | [
"MIT"
] | 40 | 2019-06-05T16:17:40.000Z | 2022-03-29T06:36:02.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 1 14:52:43 2018
@author: user
"""
import pandas as pd
from keras import preprocessing
import os
import datetime
from multiclass.AnalizeRunner import AnalizeRunner
##################################################
prefix = "dataset"
data_path = "C:\\... | 26.660377 | 130 | 0.609342 |
74a446b0c8dd78c6fabf559c7d80f7605542134c | 3,614 | py | Python | ankiconnect.py | ofek-b/vomBuch-insAnki | 0f107ed71ae66347a7d03a2c76ea087074e55fcf | [
"MIT"
] | null | null | null | ankiconnect.py | ofek-b/vomBuch-insAnki | 0f107ed71ae66347a7d03a2c76ea087074e55fcf | [
"MIT"
] | null | null | null | ankiconnect.py | ofek-b/vomBuch-insAnki | 0f107ed71ae66347a7d03a2c76ea087074e55fcf | [
"MIT"
] | null | null | null | import json
import urllib.request
import subprocess
from time import sleep
from constants import ANKI_USER, DECK_NAME
NOTE_TYPE = 'vomBuch-insAnki Note'
ANKI_APP = None
| 35.782178 | 120 | 0.619258 |
74a4ff6ad3c082183432de2f1570b4769e7b077e | 7,737 | py | Python | cishouseholds/pipeline/generate_outputs.py | ONS-SST/cis_households | e475df5929e6763a46cd05aff1f7e960ccbe8e21 | [
"MIT"
] | null | null | null | cishouseholds/pipeline/generate_outputs.py | ONS-SST/cis_households | e475df5929e6763a46cd05aff1f7e960ccbe8e21 | [
"MIT"
] | 252 | 2021-05-19T11:12:43.000Z | 2022-03-02T10:39:10.000Z | cishouseholds/pipeline/generate_outputs.py | ONS-SST/cis_households | e475df5929e6763a46cd05aff1f7e960ccbe8e21 | [
"MIT"
] | null | null | null | import subprocess
from datetime import datetime
from pathlib import Path
from typing import Any
from typing import List
from typing import Optional
from typing import Union
from pyspark.sql import DataFrame
from pyspark.sql import functions as F
from cishouseholds.edit import assign_from_map
from cishouseholds.edit i... | 40.936508 | 119 | 0.704278 |
74a5439f43793637956270c9f0e328654581f7c0 | 382 | py | Python | app.py | arthuralvim/deploy-aws-image | 401b2e6ad63e256dce1028b83b1a9d02cccfd919 | [
"MIT"
] | null | null | null | app.py | arthuralvim/deploy-aws-image | 401b2e6ad63e256dce1028b83b1a9d02cccfd919 | [
"MIT"
] | null | null | null | app.py | arthuralvim/deploy-aws-image | 401b2e6ad63e256dce1028b83b1a9d02cccfd919 | [
"MIT"
] | null | null | null | import os
from flask import Flask
from flask_restful import Resource, Api
app = Flask(__name__)
api = Api(app)
api.add_resource(EnvironmentVariablesEndpoint, '/')
if __name__ == '__main__':
app.run(debug=True, host='0.0.0.0', port=8000)
| 20.105263 | 68 | 0.712042 |
74a70ec756ca1775a3b3204ded2ec2e99826ec62 | 32 | py | Python | tests/example.py | orsinium-labs/benchmark-imports | d5b141218a57645d7e1ec0134ca2e6c8e7f9759f | [
"MIT"
] | null | null | null | tests/example.py | orsinium-labs/benchmark-imports | d5b141218a57645d7e1ec0134ca2e6c8e7f9759f | [
"MIT"
] | null | null | null | tests/example.py | orsinium-labs/benchmark-imports | d5b141218a57645d7e1ec0134ca2e6c8e7f9759f | [
"MIT"
] | null | null | null | import math
print(math.sin(1))
| 8 | 18 | 0.71875 |
74a99769f198cde2e4a1b1b98de0e0682ce6f9f0 | 1,597 | py | Python | piicatcher/detectors.py | argos-education/piicatcher | 7370cad8a4938762311926e8ab3bc286232e7106 | [
"Apache-2.0"
] | 4 | 2019-07-10T08:52:56.000Z | 2019-10-23T13:58:18.000Z | piicatcher/detectors.py | argos-education/piicatcher | 7370cad8a4938762311926e8ab3bc286232e7106 | [
"Apache-2.0"
] | 11 | 2019-03-21T11:28:07.000Z | 2019-08-30T12:13:28.000Z | piicatcher/detectors.py | argos-education/piicatcher | 7370cad8a4938762311926e8ab3bc286232e7106 | [
"Apache-2.0"
] | 2 | 2019-03-21T11:06:49.000Z | 2019-03-27T06:05:52.000Z | import inspect
from abc import ABC, abstractmethod
from typing import Optional, Type
import catalogue
from dbcat.catalog.models import CatColumn
from dbcat.catalog.pii_types import PiiType
detector_registry = catalogue.create("piicatcher", "detectors", entry_points=True)
def register_detector(detector: Type["De... | 29.036364 | 98 | 0.713212 |
74abd3d9acf7f8c1f1f34918648cc57ac1e68cdd | 10,345 | py | Python | indexpy/cli.py | abersheeran/index.py | 12d1e39a9490c663206f113e8d0b10fb29c5320b | [
"Apache-2.0"
] | 242 | 2019-06-15T07:14:21.000Z | 2021-06-22T00:46:03.000Z | indexpy/cli.py | webclinic017/index.py | 5d7cb5c2de20ef633473bdca58d06306e62a7fed | [
"Apache-2.0"
] | 26 | 2020-07-07T06:43:42.000Z | 2021-06-17T02:01:52.000Z | indexpy/cli.py | webclinic017/index.py | 5d7cb5c2de20ef633473bdca58d06306e62a7fed | [
"Apache-2.0"
] | 25 | 2019-10-26T06:48:02.000Z | 2021-06-16T19:58:25.000Z | from __future__ import annotations
import os
import signal
import subprocess
import sys
import time
from multiprocessing import cpu_count
from typing import List, Union
import click
from .__version__ import __version__
from .routing.commands import display_urls
from .utils import F, import_from_string, import_module... | 31.348485 | 113 | 0.588787 |
77615bc1bee7e6ae9a7cdfd0bfaa78c65af63e8a | 1,978 | py | Python | pypowerlawnoise/pypowerlawnoise/args.py | sternarubra/powerlawnoise | 4e03aae66a8379b4b755a39b9cf0df2c1b85c0d4 | [
"MIT"
] | null | null | null | pypowerlawnoise/pypowerlawnoise/args.py | sternarubra/powerlawnoise | 4e03aae66a8379b4b755a39b9cf0df2c1b85c0d4 | [
"MIT"
] | null | null | null | pypowerlawnoise/pypowerlawnoise/args.py | sternarubra/powerlawnoise | 4e03aae66a8379b4b755a39b9cf0df2c1b85c0d4 | [
"MIT"
] | null | null | null | # Copyright (C) 2020 by Landmark Acoustics LLC
r'''Command-line arguments for when the module is run as a program.'''
import argparse
| 29.969697 | 76 | 0.504044 |
77626b5d53da6a0f0153a6e80fbe0b181337e1bf | 888 | py | Python | middleware.py | Ali-TM-original/pakpi | 6ab3aa8fffdad5ff7519580664b39de58a48ced7 | [
"MIT"
] | null | null | null | middleware.py | Ali-TM-original/pakpi | 6ab3aa8fffdad5ff7519580664b39de58a48ced7 | [
"MIT"
] | null | null | null | middleware.py | Ali-TM-original/pakpi | 6ab3aa8fffdad5ff7519580664b39de58a48ced7 | [
"MIT"
] | null | null | null | from fastapi import Request
from fastapi.responses import JSONResponse
from db import AuthDb
"""
HAB CON TO DB
"""
| 25.371429 | 83 | 0.579955 |
776389528480d255626b2ffe103d8449a0d5f841 | 1,136 | py | Python | tests/test_optimization.py | nleroy917/optipyzer | 2a499e2759841fa01b0dc078bf7b17cc4335c566 | [
"Apache-2.0"
] | 3 | 2022-02-19T03:15:15.000Z | 2022-03-20T03:41:39.000Z | tests/test_optimization.py | nleroy917/optipyzer | 2a499e2759841fa01b0dc078bf7b17cc4335c566 | [
"Apache-2.0"
] | 13 | 2021-12-09T06:56:27.000Z | 2022-03-31T03:28:30.000Z | tests/test_optimization.py | nleroy917/optipyzer | 2a499e2759841fa01b0dc078bf7b17cc4335c566 | [
"Apache-2.0"
] | 1 | 2022-02-28T05:52:38.000Z | 2022-02-28T05:52:38.000Z | import sys, os
from tests.data import DNA_QUERY, PEPTIDE_QUERY
myPath = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, myPath + '/../')
from fastapi.testclient import TestClient
from main import app
client = TestClient(app)
REQUIRED_RESPONSE_DATA = [
'query',
'weights',
'seq_t... | 23.183673 | 57 | 0.639965 |
7763b44cbfe9bf21d3808c13b4ad19c847443874 | 2,127 | py | Python | karborclient/v1/services.py | thuylt2/karborclient | 884d685c3cd1c1075e895791d7027b56c30dd328 | [
"Apache-2.0"
] | null | null | null | karborclient/v1/services.py | thuylt2/karborclient | 884d685c3cd1c1075e895791d7027b56c30dd328 | [
"Apache-2.0"
] | null | null | null | karborclient/v1/services.py | thuylt2/karborclient | 884d685c3cd1c1075e895791d7027b56c30dd328 | [
"Apache-2.0"
] | null | null | null | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | 32.723077 | 78 | 0.624824 |
7764445415f4335e37cb839e806b8b4bbeff5cee | 7,556 | py | Python | main/file_persistence.py | moesoha/coolq-telegram-bot | 0863c8b44e190757f97f5b7af0e2b8bcd12f9130 | [
"MIT"
] | null | null | null | main/file_persistence.py | moesoha/coolq-telegram-bot | 0863c8b44e190757f97f5b7af0e2b8bcd12f9130 | [
"MIT"
] | null | null | null | main/file_persistence.py | moesoha/coolq-telegram-bot | 0863c8b44e190757f97f5b7af0e2b8bcd12f9130 | [
"MIT"
] | null | null | null | import sqlite3
import datetime
import time
import logging
import os
from bot_constant import CQ_ROOT
CQ_IMAGE_ROOT = os.path.join(CQ_ROOT, r'data/image')
logger = logging.getLogger("CTB." + __name__)
| 39.150259 | 125 | 0.577025 |
7766354d83244c354a73d41b8ca559a889302218 | 17,570 | py | Python | factory/manageFactoryDowntimes.py | bbockelm/glideinWMS | a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18 | [
"BSD-3-Clause"
] | null | null | null | factory/manageFactoryDowntimes.py | bbockelm/glideinWMS | a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18 | [
"BSD-3-Clause"
] | 3 | 2015-12-02T19:37:45.000Z | 2016-01-20T03:21:48.000Z | factory/manageFactoryDowntimes.py | bbockelm/glideinWMS | a2b39e3d4ff6c4527efad54b1eefe728a4ec9d18 | [
"BSD-3-Clause"
] | 1 | 2015-12-01T23:02:41.000Z | 2015-12-01T23:02:41.000Z | #!/usr/bin/env python
#
# Project:
# glideinWMS
#
# File Version:
#
# Description:
# This program allows to add announced downtimes
# as well as handle unexpected downtimes
#
import os.path
import os
import time,string
import sys
import re
STARTUP_DIR=sys.path[0]
sys.path.append(os.path.join(STARTUP_DIR,"../../... | 35 | 158 | 0.63893 |
77669c7ec8938c28702a6c3f1e143f5246e84d7e | 2,351 | py | Python | ee_extra/ImageCollection/core.py | andrea29-star/ee_extra | 6742692576cb9bd1fad0ee62bebe10964f7dc0b5 | [
"Apache-2.0"
] | null | null | null | ee_extra/ImageCollection/core.py | andrea29-star/ee_extra | 6742692576cb9bd1fad0ee62bebe10964f7dc0b5 | [
"Apache-2.0"
] | null | null | null | ee_extra/ImageCollection/core.py | andrea29-star/ee_extra | 6742692576cb9bd1fad0ee62bebe10964f7dc0b5 | [
"Apache-2.0"
] | null | null | null | import json
import os
import re
import warnings
from typing import Optional, Union
import ee
import pkg_resources
from ee_extra.STAC.utils import _get_platform_STAC
def closest(
x: ee.ImageCollection,
date: Union[ee.Date, str],
tolerance: Union[float, int] = 1,
unit: str = "month",
) -> ee.ImageColl... | 37.31746 | 139 | 0.657167 |
77678e6257f79dd09ccee1ed9027fc61ac4d9414 | 2,012 | py | Python | game/__init__.py | Schwarzbaer/wecs_null_project | 988b6ac4f343adfbc0c250215f3477980c9d8677 | [
"BSD-3-Clause"
] | null | null | null | game/__init__.py | Schwarzbaer/wecs_null_project | 988b6ac4f343adfbc0c250215f3477980c9d8677 | [
"BSD-3-Clause"
] | null | null | null | game/__init__.py | Schwarzbaer/wecs_null_project | 988b6ac4f343adfbc0c250215f3477980c9d8677 | [
"BSD-3-Clause"
] | 1 | 2020-02-25T01:51:59.000Z | 2020-02-25T01:51:59.000Z | import argparse
from panda3d.core import WindowProperties
from panda3d_logos.splashes import Colors
from panda3d_logos.splashes import Pattern
from stageflow import Flow
from stageflow import Stage
from stageflow.prefab import Quit
from stageflow.panda3d import Panda3DSplash
from stageflow.wecs import WECSStage
fr... | 23.395349 | 67 | 0.654076 |
7767e0e85ae97cd1930d468a011270874c251d99 | 1,325 | py | Python | utils.py | ejmejm/GoHeuristics | 9336d661abd48aa31ff5c9ed50cc2fbbd4472ebe | [
"Apache-2.0"
] | 1 | 2017-07-18T22:24:30.000Z | 2017-07-18T22:24:30.000Z | utils.py | ejmejm/GoHeuristics | 9336d661abd48aa31ff5c9ed50cc2fbbd4472ebe | [
"Apache-2.0"
] | null | null | null | utils.py | ejmejm/GoHeuristics | 9336d661abd48aa31ff5c9ed50cc2fbbd4472ebe | [
"Apache-2.0"
] | null | null | null | import board3d as go_board
import numpy as np
import global_vars_go as gvg
| 47.321429 | 131 | 0.664151 |
7767f9678c912c5c5716d40ef9a5b4146f67050c | 1,302 | py | Python | file_opr.py | Ashkan-Agc/Moris-mano-cpu-assembler | 9e3d5b5cf5f958462a306398786a424e65ca019b | [
"MIT"
] | 2 | 2020-12-24T20:57:01.000Z | 2021-05-06T12:34:00.000Z | file_opr.py | Ashkan-Agc/Moris-mano-cpu-assembler | 9e3d5b5cf5f958462a306398786a424e65ca019b | [
"MIT"
] | null | null | null | file_opr.py | Ashkan-Agc/Moris-mano-cpu-assembler | 9e3d5b5cf5f958462a306398786a424e65ca019b | [
"MIT"
] | null | null | null | import os
import struct
| 28.933333 | 76 | 0.521505 |
7769bed40fe9b0d6234a1c8f4db9eaf32d2dd23b | 616 | py | Python | band/config/reader.py | rockstat/rockband | e6c3bbd5cec9b692185cbd620ed107eba8d312af | [
"Apache-2.0"
] | 14 | 2018-08-27T05:36:53.000Z | 2021-01-15T10:08:56.000Z | band/config/reader.py | rockstat/rockband | e6c3bbd5cec9b692185cbd620ed107eba8d312af | [
"Apache-2.0"
] | null | null | null | band/config/reader.py | rockstat/rockband | e6c3bbd5cec9b692185cbd620ed107eba8d312af | [
"Apache-2.0"
] | 1 | 2018-05-20T17:04:48.000Z | 2018-05-20T17:04:48.000Z | from jinja2 import Environment, FileSystemLoader, Template, TemplateNotFound
import collections
import os
import yaml
from os.path import dirname, basename
from .env import environ
from ..log import logger
| 28 | 76 | 0.696429 |
776a43d738bc9faab56761683d2b178a96cf6d30 | 655 | py | Python | pastebin/migrations/0006_auto_20170129_1502.py | johannessarpola/django-pastebin | fccc396ad4532906ac7cb0e1343c341fceb65b14 | [
"MIT"
] | null | null | null | pastebin/migrations/0006_auto_20170129_1502.py | johannessarpola/django-pastebin | fccc396ad4532906ac7cb0e1343c341fceb65b14 | [
"MIT"
] | null | null | null | pastebin/migrations/0006_auto_20170129_1502.py | johannessarpola/django-pastebin | fccc396ad4532906ac7cb0e1343c341fceb65b14 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11a1 on 2017-01-29 15:02
from __future__ import unicode_literals
from django.db import migrations, models
| 25.192308 | 71 | 0.61374 |
776a72f7a81fcd99fa7684f9dd433db9e917296f | 6,781 | py | Python | apero/tools/recipes/bin/apero_reset.py | njcuk9999/apero-drs | 83b043e9f277a011b03e0227c77307961b200901 | [
"MIT"
] | 1 | 2021-03-09T17:49:31.000Z | 2021-03-09T17:49:31.000Z | apero/tools/recipes/bin/apero_reset.py | njcuk9999/apero-drs | 83b043e9f277a011b03e0227c77307961b200901 | [
"MIT"
] | 43 | 2020-10-06T18:42:24.000Z | 2022-03-28T21:23:10.000Z | apero/tools/recipes/bin/apero_reset.py | njcuk9999/apero-drs | 83b043e9f277a011b03e0227c77307961b200901 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
# CODE NAME HERE
# CODE DESCRIPTION HERE
Created on 2019-07-26 at 09:39
@author: cook
"""
from apero import core
from apero import lang
from apero.core import constants
from apero.tools.module.setup import drs_reset
# ===============================================... | 36.853261 | 79 | 0.435481 |
776ab60110d0cc5f95a05461c25be9b7a11b0d17 | 23,202 | py | Python | vb2py/vbfunctions.py | mvz/vb2py | 6ea046f6fc202527a1b3fcd3ef5a67b969dea715 | [
"BSD-3-Clause"
] | 2 | 2015-12-01T10:52:36.000Z | 2021-04-20T05:15:01.000Z | vb2py/vbfunctions.py | mvz/vb2py | 6ea046f6fc202527a1b3fcd3ef5a67b969dea715 | [
"BSD-3-Clause"
] | 4 | 2016-07-18T18:28:24.000Z | 2016-07-19T08:30:14.000Z | vb2py/vbfunctions.py | mvz/vb2py | 6ea046f6fc202527a1b3fcd3ef5a67b969dea715 | [
"BSD-3-Clause"
] | 3 | 2015-07-15T21:08:19.000Z | 2021-02-25T09:39:12.000Z | """
Functions to mimic VB intrinsic functions or things
"""
from __future__ import generators
from vb2py.vbclasses import *
from vb2py.vbconstants import *
from vb2py import utils
from vb2py import config
import math
import sys
import fnmatch # For Like
import glob # For Dir
import os
import shutil # For FileCopy... | 31.269542 | 123 | 0.64572 |
776ac85099444e0db1c832495d0ac0675d2d4638 | 564 | py | Python | src/add_noise.py | Patrick22414/cw-computer-vision | 899ed5ee6346ebd1b2b52ea2b9f618d90596a458 | [
"BSD-3-Clause"
] | null | null | null | src/add_noise.py | Patrick22414/cw-computer-vision | 899ed5ee6346ebd1b2b52ea2b9f618d90596a458 | [
"BSD-3-Clause"
] | null | null | null | src/add_noise.py | Patrick22414/cw-computer-vision | 899ed5ee6346ebd1b2b52ea2b9f618d90596a458 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
| 20.142857 | 54 | 0.54078 |
776b585e85359cdc8f805318534efb9b4298e5fa | 480 | py | Python | core/apps/accounts/urls.py | dansackett/django-project-template | 12264a8300442afda9cb207d7db24e55149d6355 | [
"MIT"
] | 4 | 2017-02-08T19:15:48.000Z | 2019-08-19T01:53:18.000Z | core/apps/accounts/urls.py | dansackett/django-project-template | 12264a8300442afda9cb207d7db24e55149d6355 | [
"MIT"
] | 3 | 2017-01-24T15:05:55.000Z | 2019-11-01T17:26:07.000Z | core/apps/accounts/urls.py | dansackett/django-project-template | 12264a8300442afda9cb207d7db24e55149d6355 | [
"MIT"
] | 6 | 2017-01-23T23:09:05.000Z | 2019-11-18T10:45:27.000Z | from django.conf.urls import url
from accounts import views as account_views
urlpatterns = [
url(r'users/$', account_views.users_list, name='users-list'),
url(r'users/new/$', account_views.user_create, name='user-create'),
url(r'user/(?P<pk>\d+)/$', account_views.user_single, name='user-single'),
url(... | 40 | 85 | 0.68125 |
776cc3f608ef1d2a757d7c46fe638f3742a5b605 | 8,630 | py | Python | TNT/generate_clusters.py | yoyomimi/TNT_pytorch | 165c5da0bc66baf84bb1ddc5fe0cf6a101555c59 | [
"Apache-2.0"
] | 20 | 2020-03-08T14:47:04.000Z | 2021-11-14T12:55:28.000Z | TNT/generate_clusters.py | conq44/MOT-trackletNet-Visdrone | 0fa717de9d682abcdbf56acbd33b8807b50bfba3 | [
"Apache-2.0"
] | 13 | 2020-03-08T14:39:01.000Z | 2022-03-12T00:18:08.000Z | TNT/generate_clusters.py | yoyomimi/TNT_pytorch | 165c5da0bc66baf84bb1ddc5fe0cf6a101555c59 | [
"Apache-2.0"
] | 6 | 2020-03-08T14:47:11.000Z | 2021-05-21T10:33:05.000Z | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
# Created by Mingfei Chen (lasiafly@gmail.com)
# Created On: 2020-2-27
# ------------------------------------------------------------------------------
import argparse
import numpy as np
import os
import os.path as ... | 35.809129 | 151 | 0.634762 |
776e19a406580ffe1c88612e6f292579a2edbc26 | 3,227 | py | Python | qrogue/management/save_data.py | 7Magic7Mike7/Qrogue | 70bd5671a77981c1d4b633246321ba44f13c21ff | [
"MIT"
] | 4 | 2021-12-14T19:13:43.000Z | 2022-02-16T13:25:38.000Z | qrogue/management/save_data.py | 7Magic7Mike7/Qrogue | 70bd5671a77981c1d4b633246321ba44f13c21ff | [
"MIT"
] | null | null | null | qrogue/management/save_data.py | 7Magic7Mike7/Qrogue | 70bd5671a77981c1d4b633246321ba44f13c21ff | [
"MIT"
] | 1 | 2022-01-04T18:35:51.000Z | 2022-01-04T18:35:51.000Z |
from qrogue.game.logic.actors import Player, Robot
from qrogue.game.logic.actors.controllables import TestBot, LukeBot
from qrogue.game.world.map import CallbackPack
from qrogue.util import Logger, PathConfig, AchievementManager, RandomManager, CommonPopups, CheatConfig
from qrogue.util.achievements import Achievement... | 38.416667 | 120 | 0.618531 |
776e5d76077fe95e5f47d40d303ce9050fa94bb5 | 1,906 | py | Python | mes_examples/example_curvature.py | Anthys/slam | 30605301b5c1eee2d7093e2343ffb9e3a99af1d7 | [
"MIT"
] | null | null | null | mes_examples/example_curvature.py | Anthys/slam | 30605301b5c1eee2d7093e2343ffb9e3a99af1d7 | [
"MIT"
] | null | null | null | mes_examples/example_curvature.py | Anthys/slam | 30605301b5c1eee2d7093e2343ffb9e3a99af1d7 | [
"MIT"
] | null | null | null | """
.. _example_curvature:
===================================
example of curvature estimation in slam
===================================
"""
# Authors: Guillaume Auzias <guillaume.auzias@univ-amu.fr>
# License: BSD (3-clause)
# sphinx_gallery_thumbnail_number = 2
#################################################... | 35.962264 | 79 | 0.459601 |
776f4fe33eac9355f5d1910b5adb41c329f0d7ec | 1,017 | py | Python | DAD/Jogador/itens_do_heroi.py | Gustavolsl/Falculdade_Impacta_3s | bf1a12c81fd088c4e1a0cd9182600730b43dcd63 | [
"Apache-2.0"
] | null | null | null | DAD/Jogador/itens_do_heroi.py | Gustavolsl/Falculdade_Impacta_3s | bf1a12c81fd088c4e1a0cd9182600730b43dcd63 | [
"Apache-2.0"
] | 6 | 2021-03-19T03:57:08.000Z | 2022-03-12T00:00:33.000Z | DAD/Jogador/itens_do_heroi.py | Gustavolsl/Falculdade_Impacta_3s | bf1a12c81fd088c4e1a0cd9182600730b43dcd63 | [
"Apache-2.0"
] | null | null | null | import sqlite3
connection = sqlite3.connect("rpg.db")
create_sql = """
CREATE TABLE IF NOT EXISTS Heroi(
id INTEGER PRIMARY KEY,
nome TEXT NOT NULL,
fisico INTEGER NOT NULL,
magia INTEGER NOT NULL,
agilidade INTEGER NOT NULL
)
"""
cursor = connection.cursor()
#2o passo: pegar o cursor
cursor.ex... | 29.057143 | 71 | 0.6706 |
77703fb45d0a75511022bbf6e166214534c095cb | 12,081 | py | Python | netbox/dcim/migrations/0002_auto_20190830_1742.py | rinsekloek/netbox | ad52065de2d25e2684383327be01910b2bf76ae8 | [
"Apache-2.0"
] | 1 | 2020-06-15T00:09:10.000Z | 2020-06-15T00:09:10.000Z | netbox/dcim/migrations/0002_auto_20190830_1742.py | rinsekloek/netbox | ad52065de2d25e2684383327be01910b2bf76ae8 | [
"Apache-2.0"
] | 1 | 2019-09-19T15:10:06.000Z | 2019-09-19T15:10:06.000Z | netbox/dcim/migrations/0002_auto_20190830_1742.py | rinsekloek/netbox | ad52065de2d25e2684383327be01910b2bf76ae8 | [
"Apache-2.0"
] | 1 | 2019-09-20T08:12:17.000Z | 2019-09-20T08:12:17.000Z | # Generated by Django 2.2.4 on 2019-08-30 17:42
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import mptt.fields
import taggit.managers
| 45.761364 | 172 | 0.619485 |
7770f029f80b4229f616967fde4266025afc75c3 | 1,137 | py | Python | sample_architectures/sample_gcn.py | hvarS/PyTorch-Refer | 020445e3ae1f3627f39e1ab957cdff44a2127289 | [
"MIT"
] | null | null | null | sample_architectures/sample_gcn.py | hvarS/PyTorch-Refer | 020445e3ae1f3627f39e1ab957cdff44a2127289 | [
"MIT"
] | null | null | null | sample_architectures/sample_gcn.py | hvarS/PyTorch-Refer | 020445e3ae1f3627f39e1ab957cdff44a2127289 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from torch.nn import Parameter
import torch.functional as F
import math
#Parameters
in_features = 2048
out_features = 10
num_nodes = 64
#Forward
y_hat = model(x,adj)
| 25.840909 | 73 | 0.66139 |
77717625e122c9e733631c27956ba3d68b41cad0 | 244 | py | Python | facts/cms_app.py | evildmp/facts | bcfb0ce33cf70f208d3db3abe1bc2969ef468f01 | [
"MIT"
] | 1 | 2015-07-20T10:40:25.000Z | 2015-07-20T10:40:25.000Z | facts/cms_app.py | evildmp/facts | bcfb0ce33cf70f208d3db3abe1bc2969ef468f01 | [
"MIT"
] | null | null | null | facts/cms_app.py | evildmp/facts | bcfb0ce33cf70f208d3db3abe1bc2969ef468f01 | [
"MIT"
] | null | null | null | from cms.app_base import CMSApp
from cms.apphook_pool import apphook_pool
from django.utils.translation import ugettext_lazy as _
apphook_pool.register(FactsApphook)
| 24.4 | 55 | 0.778689 |
7773e258e0738dc0576c4934250bb8bf473bcf50 | 2,009 | py | Python | irekua_rest_api/serializers/terms/synonym_suggestions.py | IslasGECI/irekua-rest-api | 35cf5153ed7f54d12ebad2ac07d472585f04e3e7 | [
"BSD-4-Clause"
] | null | null | null | irekua_rest_api/serializers/terms/synonym_suggestions.py | IslasGECI/irekua-rest-api | 35cf5153ed7f54d12ebad2ac07d472585f04e3e7 | [
"BSD-4-Clause"
] | 11 | 2020-03-28T18:51:50.000Z | 2022-01-13T01:47:40.000Z | irekua_rest_api/serializers/terms/synonym_suggestions.py | IslasGECI/irekua-rest-api | 35cf5153ed7f54d12ebad2ac07d472585f04e3e7 | [
"BSD-4-Clause"
] | 1 | 2021-05-06T19:38:14.000Z | 2021-05-06T19:38:14.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from rest_framework import serializers
from irekua_database.models import SynonymSuggestion
from irekua_rest_api.serializers.base import IrekuaModelSerializer
from irekua_rest_api.serializers.base import IrekuaHyperlinkedModelSerializer
from irekua_rest... | 23.916667 | 77 | 0.610254 |
77746bbadb5cbe2a734fb9a9f8421987eac86fea | 807 | py | Python | patterndetector/detector/engulfing_candle_detector.py | WynnD/PatternDetector | dc25e15b101a066f96a62898a7cb4ec6535d4eb5 | [
"MIT"
] | 1 | 2020-12-08T06:56:33.000Z | 2020-12-08T06:56:33.000Z | patterndetector/detector/engulfing_candle_detector.py | ajmal017/PatternDetector | f71ae4c38481bd88956a8ef2ef162a1b7e617808 | [
"MIT"
] | 4 | 2020-08-03T16:29:31.000Z | 2021-02-24T22:51:33.000Z | patterndetector/detector/engulfing_candle_detector.py | ajmal017/PatternDetector | f71ae4c38481bd88956a8ef2ef162a1b7e617808 | [
"MIT"
] | 1 | 2020-12-08T06:56:25.000Z | 2020-12-08T06:56:25.000Z | from .detector import Detector
from patterndetector.data import Data
| 44.833333 | 237 | 0.732342 |
77756bed40349429408af5d9b884c9141ad265d0 | 2,008 | py | Python | book-code/Chapter-16/mrvisitcounter.py | holtkampjs/photogallery | e74aff437335beb2085df3a2f0d892ce986a4c09 | [
"MIT"
] | 2 | 2022-02-24T22:29:49.000Z | 2022-03-01T19:34:47.000Z | book-code/Chapter-16/mrvisitcounter.py | holtkampjs/photogallery | e74aff437335beb2085df3a2f0d892ce986a4c09 | [
"MIT"
] | 3 | 2022-03-01T18:21:59.000Z | 2022-03-08T20:42:35.000Z | book-code/Chapter-16/mrvisitcounter.py | holtkampjs/photogallery | e74aff437335beb2085df3a2f0d892ce986a4c09 | [
"MIT"
] | null | null | null | '''
MIT License
Copyright (c) 2019 Arshdeep Bahga and Vijay Madisetti
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, mo... | 41.833333 | 78 | 0.628486 |
7775eb3b22f7a03ffbdb6818fd5396a6158c2f78 | 28 | py | Python | Conceptos/variables.py | MiGueAJM9724/Python | 436975a3ccef5a922afa7e3f14747322f2979e06 | [
"Apache-2.0"
] | null | null | null | Conceptos/variables.py | MiGueAJM9724/Python | 436975a3ccef5a922afa7e3f14747322f2979e06 | [
"Apache-2.0"
] | null | null | null | Conceptos/variables.py | MiGueAJM9724/Python | 436975a3ccef5a922afa7e3f14747322f2979e06 | [
"Apache-2.0"
] | null | null | null | tutor = "codi"
print(tutor)
| 9.333333 | 14 | 0.678571 |
77787a24c06c5cadf9b989de8250da820c76d334 | 3,317 | py | Python | ulutil/blat.py | churchlab/ulutil | 7f9a427274acd99ae4d2dfe35123feb7c2dc9625 | [
"Apache-2.0"
] | 1 | 2021-10-04T13:50:01.000Z | 2021-10-04T13:50:01.000Z | ulutil/blat.py | churchlab/ulutil | 7f9a427274acd99ae4d2dfe35123feb7c2dc9625 | [
"Apache-2.0"
] | null | null | null | ulutil/blat.py | churchlab/ulutil | 7f9a427274acd99ae4d2dfe35123feb7c2dc9625 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Uri Laserson
#
# 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,... | 34.552083 | 117 | 0.669279 |
777afd3d3324ad331c8330a1ce08d5445f8f7120 | 1,064 | py | Python | source/win.py | TwinIsland/WPN | b0f42ff5c3fdad80830ebca1e39254b14ddd5929 | [
"MIT"
] | null | null | null | source/win.py | TwinIsland/WPN | b0f42ff5c3fdad80830ebca1e39254b14ddd5929 | [
"MIT"
] | null | null | null | source/win.py | TwinIsland/WPN | b0f42ff5c3fdad80830ebca1e39254b14ddd5929 | [
"MIT"
] | null | null | null | import requests
import lxml.etree
| 38 | 133 | 0.568609 |
777d2e0b29fe7ec44f5922e2844b97efafaaa63f | 1,709 | py | Python | tracker.py | AImotion-Autonomous-Vehicles/AirSimTracking | 60f334fff658e2fed51ec43f8d77f76d34ab1d5e | [
"MIT"
] | null | null | null | tracker.py | AImotion-Autonomous-Vehicles/AirSimTracking | 60f334fff658e2fed51ec43f8d77f76d34ab1d5e | [
"MIT"
] | null | null | null | tracker.py | AImotion-Autonomous-Vehicles/AirSimTracking | 60f334fff658e2fed51ec43f8d77f76d34ab1d5e | [
"MIT"
] | null | null | null | from .coordinates import Coordinates
from typing import List
import csv
import pandas as pd
| 32.245283 | 91 | 0.633704 |
777d64d8f54b28b97381150b318ea3b3a8373ffa | 94 | py | Python | stepik/programming_on_python/3_2_6_my_solve.py | anklav24/Python-Education | 49ebcfabda1376390ee71e1fe321a51e33831f9e | [
"Apache-2.0"
] | null | null | null | stepik/programming_on_python/3_2_6_my_solve.py | anklav24/Python-Education | 49ebcfabda1376390ee71e1fe321a51e33831f9e | [
"Apache-2.0"
] | null | null | null | stepik/programming_on_python/3_2_6_my_solve.py | anklav24/Python-Education | 49ebcfabda1376390ee71e1fe321a51e33831f9e | [
"Apache-2.0"
] | null | null | null | string = input().lower().split()
for word in set(string):
print(word, string.count(word))
| 23.5 | 35 | 0.670213 |
777f9aa04f81ef4641223c242df10f646f2bc740 | 559 | py | Python | week2/2.03 for/step03 multiplication table.py | project-cemetery/stepik-programming-on-python | 3ca4e6a74b9ca5deb50336737fe2e6d74722a95f | [
"MIT"
] | 7 | 2020-08-03T22:10:29.000Z | 2022-02-23T16:08:44.000Z | week2/2.03 for/step03 multiplication table.py | Joni2701/stepik-programming-on-python | 3ca4e6a74b9ca5deb50336737fe2e6d74722a95f | [
"MIT"
] | null | null | null | week2/2.03 for/step03 multiplication table.py | Joni2701/stepik-programming-on-python | 3ca4e6a74b9ca5deb50336737fe2e6d74722a95f | [
"MIT"
] | 9 | 2020-05-19T16:42:39.000Z | 2022-02-24T22:41:21.000Z |
intervals = (int(input()), int(input())), (int(input()), int(input()))
print_multiplication_table(intervals[0], intervals[1])
| 32.882353 | 75 | 0.633274 |
778043d5864b69a00bdc1a821a0324321bcfd44b | 599 | py | Python | groups/templatetags/group_tags.py | AgentGeek/MangAdventure | 48d8e21355e5dc8122a6833d092190d79fef1674 | [
"MIT"
] | 2 | 2018-09-24T03:46:55.000Z | 2018-10-12T16:20:25.000Z | groups/templatetags/group_tags.py | AgentGeek/MangAdventure | 48d8e21355e5dc8122a6833d092190d79fef1674 | [
"MIT"
] | 6 | 2018-10-08T15:59:40.000Z | 2019-02-02T16:35:33.000Z | groups/templatetags/group_tags.py | AgentGeek/MangAdventure | 48d8e21355e5dc8122a6833d092190d79fef1674 | [
"MIT"
] | null | null | null | """Template tags of the groups app."""
from __future__ import annotations
from typing import TYPE_CHECKING
from django.template.defaultfilters import register
if TYPE_CHECKING: # pragma: no cover
from groups.models import Group, Member
__all__ = ['group_roles']
| 22.185185 | 53 | 0.704508 |
77812ba27f5883ea1678a3c5639df9848f30c2e5 | 324 | py | Python | redata/utils/time_utils.py | hishoss/redata | e6cf77ca4c957e620066c65925437e36488040ec | [
"MIT"
] | null | null | null | redata/utils/time_utils.py | hishoss/redata | e6cf77ca4c957e620066c65925437e36488040ec | [
"MIT"
] | null | null | null | redata/utils/time_utils.py | hishoss/redata | e6cf77ca4c957e620066c65925437e36488040ec | [
"MIT"
] | null | null | null | from datetime import timedelta
| 29.454545 | 62 | 0.66358 |