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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f400427c659e5c8d5c0f656dfde230a04071a6b | 9,932 | py | Python | Yuanjunling1/boss-xiadan.py | yuanjunling/PycharmProjects | 087b1a30818bbe2bf3972c9340f61ca4b792eb7d | [
"bzip2-1.0.6"
] | null | null | null | Yuanjunling1/boss-xiadan.py | yuanjunling/PycharmProjects | 087b1a30818bbe2bf3972c9340f61ca4b792eb7d | [
"bzip2-1.0.6"
] | null | null | null | Yuanjunling1/boss-xiadan.py | yuanjunling/PycharmProjects | 087b1a30818bbe2bf3972c9340f61ca4b792eb7d | [
"bzip2-1.0.6"
] | null | null | null | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException... | 58.423529 | 154 | 0.700665 |
9f418384a2feb7b42cf899ae93dde9aa9269dff9 | 10,830 | py | Python | notification.py | phillco/talon-accessibility | 1872a759817073bdb3b6c92900e6e3f2ba750b9a | [
"MIT"
] | 10 | 2022-01-23T19:02:36.000Z | 2022-02-22T04:48:35.000Z | notification.py | phillco/talon-accessibility | 1872a759817073bdb3b6c92900e6e3f2ba750b9a | [
"MIT"
] | 4 | 2022-01-23T21:33:06.000Z | 2022-03-22T02:37:40.000Z | notification.py | phillco/talon_accessibility | a35cfb0cb302b72b13edfa4fb245e482d4c9b827 | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from itertools import chain
from typing import Optional
from talon import Context, Module, actions, app, cron, ui
# XXX(nriley) actions are being returned out of order; that's a problem if we want to pop up a menu
mod = Module()
mod.list("notification_actions", desc="Notific... | 31.852941 | 99 | 0.62373 |
9f434eee5285c89e5b4ba0cfb55e6a244ea4ee9a | 529 | py | Python | emulation_system/emulation_system/consts.py | Opentrons/ot3-emulator | 90fad37b54dc3b003732220e630185de1a1d5dfd | [
"Apache-2.0"
] | null | null | null | emulation_system/emulation_system/consts.py | Opentrons/ot3-emulator | 90fad37b54dc3b003732220e630185de1a1d5dfd | [
"Apache-2.0"
] | 3 | 2021-08-31T14:59:41.000Z | 2021-10-04T16:10:25.000Z | emulation_system/emulation_system/consts.py | Opentrons/ot3-emulator | 90fad37b54dc3b003732220e630185de1a1d5dfd | [
"Apache-2.0"
] | null | null | null | """System-wide constants."""
from __future__ import annotations
import os
# Mode Names
PRODUCTION_MODE_NAME = "prod"
DEVELOPMENT_MODE_NAME = "dev"
# Latest Git Commit
LATEST_KEYWORD = "latest"
# Root of repo
ROOT_DIR = os.path.normpath(
os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "..")
)
DE... | 24.045455 | 74 | 0.773157 |
9f43ce6631e7319b1bcdc1a179c864fd23965ec3 | 1,367 | gyp | Python | binding.gyp | jacobsologub/gif2webp | 15e006074557f12863a7ac295ea8d2a9e771dd9a | [
"MIT"
] | 11 | 2015-09-23T08:47:00.000Z | 2022-01-11T09:47:57.000Z | binding.gyp | jacobsologub/gif2webp | 15e006074557f12863a7ac295ea8d2a9e771dd9a | [
"MIT"
] | 2 | 2015-04-23T06:28:00.000Z | 2017-05-09T16:46:45.000Z | binding.gyp | jacobsologub/gif2webp | 15e006074557f12863a7ac295ea8d2a9e771dd9a | [
"MIT"
] | 3 | 2015-12-01T23:12:21.000Z | 2019-03-01T01:51:22.000Z | {
"variables": {
"HEROKU%": '<!(echo $HEROKU)'
},
"targets": [
{
"target_name": "gif2webp",
"defines": [
],
"sources": [
"src/gif2webp.cpp",
"src/webp/example_util.cpp",
"src/web... | 26.288462 | 49 | 0.21068 |
9f44a5bdf67e30827a8720ae39bd17612174f30c | 4,881 | py | Python | multiagent/scenarios/simple_hockey.py | johan-kallstrom/multiagent-particle-envs | 61fc78c4537f2f1ca78fd80eb64eeb0d2d9cc5dd | [
"MIT"
] | null | null | null | multiagent/scenarios/simple_hockey.py | johan-kallstrom/multiagent-particle-envs | 61fc78c4537f2f1ca78fd80eb64eeb0d2d9cc5dd | [
"MIT"
] | null | null | null | multiagent/scenarios/simple_hockey.py | johan-kallstrom/multiagent-particle-envs | 61fc78c4537f2f1ca78fd80eb64eeb0d2d9cc5dd | [
"MIT"
] | null | null | null | import numpy as np
from multiagent.core import World, Agent, Landmark
from multiagent.scenario import BaseScenario
| 38.433071 | 106 | 0.565048 |
9f4562e1f053bb1fc2d14c5b37e00a09ea1df617 | 2,931 | py | Python | pyshocks/continuity/schemes.py | alexfikl/pyshocks | 9a2c2f5bd9b5b90af71f4ef62a82dcd96b2275f7 | [
"MIT"
] | null | null | null | pyshocks/continuity/schemes.py | alexfikl/pyshocks | 9a2c2f5bd9b5b90af71f4ef62a82dcd96b2275f7 | [
"MIT"
] | null | null | null | pyshocks/continuity/schemes.py | alexfikl/pyshocks | 9a2c2f5bd9b5b90af71f4ef62a82dcd96b2275f7 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from typing import Optional
import jax.numpy as jnp
from pyshocks import Grid, ConservationLawScheme
from pyshocks import flux, numerical_flux, predict_timestep
from pyshocks.weno import WENOJSMixin, WENOJS32Mixin, WENOJS53Mixin
# {{{ base
# }}}
# {{{ upwind
# }}}
# {{... | 21.873134 | 71 | 0.667349 |
9f4610a7e6a629e7a9bdcd73d7e9be93fc1f7fd1 | 121 | py | Python | finitewave/core/command/__init__.py | ArsOkenov/Finitewave | 14274d74be824a395b47a5c53ba18188798ab70d | [
"MIT"
] | null | null | null | finitewave/core/command/__init__.py | ArsOkenov/Finitewave | 14274d74be824a395b47a5c53ba18188798ab70d | [
"MIT"
] | null | null | null | finitewave/core/command/__init__.py | ArsOkenov/Finitewave | 14274d74be824a395b47a5c53ba18188798ab70d | [
"MIT"
] | null | null | null | from finitewave.core.command.command import Command
from finitewave.core.command.command_sequence import CommandSequence
| 40.333333 | 68 | 0.884298 |
9f46ca6c2a027a96dbe50f686fba48b96a51859c | 96 | py | Python | smart_meter/apps.py | GPXenergy/gpx_server_api | 9b021522be4414ac95159a0ed576848c463637f9 | [
"MIT"
] | null | null | null | smart_meter/apps.py | GPXenergy/gpx_server_api | 9b021522be4414ac95159a0ed576848c463637f9 | [
"MIT"
] | null | null | null | smart_meter/apps.py | GPXenergy/gpx_server_api | 9b021522be4414ac95159a0ed576848c463637f9 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 16 | 34 | 0.770833 |
9f4848fb1e1f8c151bf749c7d7992e896b000b74 | 344 | py | Python | settings.py | nopogo/twitchplaysturtle | 247ce20be55082b6675aebea56c4a264493c0218 | [
"MIT"
] | null | null | null | settings.py | nopogo/twitchplaysturtle | 247ce20be55082b6675aebea56c4a264493c0218 | [
"MIT"
] | null | null | null | settings.py | nopogo/twitchplaysturtle | 247ce20be55082b6675aebea56c4a264493c0218 | [
"MIT"
] | null | null | null | import secrets
channel_name = "nopogo_tv"
server_ip = "0.0.0.0"
server_port = 8000
channel_id = 28092036
ws_host = "wss://pubsub-edge.twitch.tv"
ws_local = secrets.local_ip
topics = [
"channel-bits-events-v2.{}".format(channel_id),
"channel-points-channel-v1.{}".format(channel_id),
"channel-subscribe-events-v1.{}... | 21.5 | 52 | 0.726744 |
9f484b3a565eb983b142b6be88f528edee03101a | 1,510 | py | Python | piv/framed/framed.py | LaCumbancha/piv-algorithm | cfa1a8b7074be600d96233f4ee756d7023c2a311 | [
"MIT"
] | null | null | null | piv/framed/framed.py | LaCumbancha/piv-algorithm | cfa1a8b7074be600d96233f4ee756d7023c2a311 | [
"MIT"
] | null | null | null | piv/framed/framed.py | LaCumbancha/piv-algorithm | cfa1a8b7074be600d96233f4ee756d7023c2a311 | [
"MIT"
] | 1 | 2021-08-23T21:31:42.000Z | 2021-08-23T21:31:42.000Z | # Imports
import numpy as np
# Single to double frame
# Combines images by 2, returning an array with two frames (one for each image).
#
# Input: 5 images with step 1.
# Output: 4 double-framed images.
# FrameA: 1 2 3 4
# FrameB: 2 3 4 5
#
# Input: 8 images with step 3.
# Output: 5 doubled... | 32.826087 | 112 | 0.617219 |
9f4a93e0e0310ba3c9ec9b1e5108dbc823a741c9 | 4,656 | py | Python | paccmann_proteomics/data/datasets/seq_clf.py | xueeinstein/paccmann_proteomics | b376883996641a07da77fbbb6dbd34c2c04fdddb | [
"MIT"
] | 28 | 2020-11-24T17:37:40.000Z | 2022-03-23T17:05:42.000Z | paccmann_proteomics/data/datasets/seq_clf.py | xueeinstein/paccmann_proteomics | b376883996641a07da77fbbb6dbd34c2c04fdddb | [
"MIT"
] | 9 | 2021-01-22T15:52:10.000Z | 2022-02-16T05:29:16.000Z | paccmann_proteomics/data/datasets/seq_clf.py | xueeinstein/paccmann_proteomics | b376883996641a07da77fbbb6dbd34c2c04fdddb | [
"MIT"
] | 8 | 2020-12-08T02:51:28.000Z | 2022-02-21T08:15:38.000Z | import os
import time
from dataclasses import dataclass, field
from enum import Enum
from typing import List, Optional, Union
import torch
from filelock import FileLock
from transformers import PreTrainedTokenizer, RobertaTokenizer, RobertaTokenizerFast, XLMRobertaTokenizer
from transformers.data.datasets import GlueDa... | 39.794872 | 114 | 0.626503 |
9f4ab46e51128f48f06e0891f830eba972929243 | 4,071 | py | Python | code/shell_scripts/fcs_processing.py | RPGroup-PBoC/rnaseq_barcode | f90bdd7388d08b8dd1eeaaaedd75040580af5f10 | [
"MIT"
] | null | null | null | code/shell_scripts/fcs_processing.py | RPGroup-PBoC/rnaseq_barcode | f90bdd7388d08b8dd1eeaaaedd75040580af5f10 | [
"MIT"
] | 1 | 2020-11-02T19:07:52.000Z | 2020-11-02T19:07:52.000Z | code/shell_scripts/fcs_processing.py | RPGroup-PBoC/rnaseq_barcode | f90bdd7388d08b8dd1eeaaaedd75040580af5f10 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
"""
This script parses and cleans up a provided Flow Cytometry Standard (fcs) file
and saves it as a Comma Separated Value (csv).
"""
import os
import re
import numpy as np
import pandas as pd
import optparse
import fcsparser
# ####################################################################... | 37.694444 | 84 | 0.542127 |
9f4c54bafc52b2cd849c4e602fafdcc41ce81b9c | 89 | py | Python | test/utils/enums.py | alvintangz/cscc43-a2-sql-queries-test | 0531258375a7eee8bd1e9400b72943033290ad66 | [
"PostgreSQL"
] | 3 | 2021-07-12T21:52:32.000Z | 2021-07-16T19:30:37.000Z | test/utils/enums.py | alvintangz/cscc43-a2-sql-queries-test | 0531258375a7eee8bd1e9400b72943033290ad66 | [
"PostgreSQL"
] | null | null | null | test/utils/enums.py | alvintangz/cscc43-a2-sql-queries-test | 0531258375a7eee8bd1e9400b72943033290ad66 | [
"PostgreSQL"
] | null | null | null | from enum import Enum
| 11.125 | 21 | 0.606742 |
9f4d37c4ab3e91a8989de355eb4c109721b6c34b | 485 | py | Python | day06/day6_part1.py | raistlin7447/AoC2021 | 2f11733c866065fb2bae5862be562a14db40d0b9 | [
"MIT"
] | null | null | null | day06/day6_part1.py | raistlin7447/AoC2021 | 2f11733c866065fb2bae5862be562a14db40d0b9 | [
"MIT"
] | null | null | null | day06/day6_part1.py | raistlin7447/AoC2021 | 2f11733c866065fb2bae5862be562a14db40d0b9 | [
"MIT"
] | null | null | null | with open("day6_input.txt") as f:
initial_fish = list(map(int, f.readline().strip().split(",")))
fish = [0] * 9
for initial_f in initial_fish:
fish[initial_f] += 1
for day in range(80):
new_fish = [0] * 9
for state in range(9):
if state == 0:
new_fish[... | 30.3125 | 66 | 0.492784 |
9f4fae4aa81279897b72d2373678cf498b7c183a | 1,397 | py | Python | util.py | atush-dhakal/GT-MW-Notifier | 3873e30c772c5885ca8935665cc22966353264c6 | [
"MIT"
] | 1 | 2022-02-18T05:10:41.000Z | 2022-02-18T05:10:41.000Z | util.py | atush-dhakal/GT-MW-Notifier | 3873e30c772c5885ca8935665cc22966353264c6 | [
"MIT"
] | null | null | null | util.py | atush-dhakal/GT-MW-Notifier | 3873e30c772c5885ca8935665cc22966353264c6 | [
"MIT"
] | 2 | 2021-01-04T13:58:28.000Z | 2021-12-31T22:16:58.000Z | import requests
import configparser
from email_validator import validate_email, EmailNotValidError
from mailchimp import OnCampusJobList
import email_notifier
import groupme_bot
config = configparser.ConfigParser()
config.read('config.ini')
google_config = config['GOOGLE']
| 29.723404 | 106 | 0.730136 |
9f4fb4aa07286decc81511426c6486ee3fe2e5ca | 4,704 | py | Python | datagokr/kma/VilageFcstInfoService_2_0.py | uujei/datagokr | 308f5151f819010f2c4e174a6ef84d83d3bea922 | [
"MIT"
] | null | null | null | datagokr/kma/VilageFcstInfoService_2_0.py | uujei/datagokr | 308f5151f819010f2c4e174a6ef84d83d3bea922 | [
"MIT"
] | null | null | null | datagokr/kma/VilageFcstInfoService_2_0.py | uujei/datagokr | 308f5151f819010f2c4e174a6ef84d83d3bea922 | [
"MIT"
] | null | null | null | import logging
import os
from datetime import datetime
from enum import Enum
from typing import Optional
from pydantic import BaseModel, Field, HttpUrl, SecretStr, ValidationError
from ..DataGoKr import DataGoKr
# logging
logger = logging.getLogger(__file__)
# debug only
KMA_API_KEY = os.getenv("KMA_API_KEY")
####... | 28.682927 | 81 | 0.528699 |
9f4ff94e02e03949fdcaa970d232b5cc43d0775f | 3,135 | py | Python | tests/test_io.py | OpenPIV/pivpy | 4df90b696d3a2ec53e42e222de1ec8125305b309 | [
"BSD-3-Clause"
] | 8 | 2020-04-20T11:45:59.000Z | 2022-02-04T17:02:32.000Z | tests/test_io.py | alexlib/pivpy | f731fe4148a0f1f9e60e11c19e3b8fa74792d58f | [
"BSD-3-Clause"
] | 17 | 2019-07-20T14:47:49.000Z | 2021-06-14T07:58:06.000Z | tests/test_io.py | alexlib/pivpy | f731fe4148a0f1f9e60e11c19e3b8fa74792d58f | [
"BSD-3-Clause"
] | 6 | 2015-07-02T11:41:06.000Z | 2021-03-20T10:24:12.000Z | import numpy as np
from pivpy import io, pivpy
import matplotlib.pyplot as plt
import os
import pkg_resources as pkg
path = pkg.resource_filename("pivpy", "data")
fname = os.path.join(path, "Insight", "Run000002.T000.D000.P000.H001.L.vec")
# def test_get_dt():
# """ test if we get correct delta t """
# _, _,... | 29.299065 | 76 | 0.620415 |
9f513a1848907a84153b93f6379a41b3912f5550 | 1,807 | py | Python | test_hig.py | xiaohan2012/lst | 793944d1dd8235adbe2f651270ab12e46ff8f6f7 | [
"MIT"
] | 1 | 2016-07-05T13:10:27.000Z | 2016-07-05T13:10:27.000Z | test_hig.py | xiaohan2012/lst | 793944d1dd8235adbe2f651270ab12e46ff8f6f7 | [
"MIT"
] | null | null | null | test_hig.py | xiaohan2012/lst | 793944d1dd8235adbe2f651270ab12e46ff8f6f7 | [
"MIT"
] | null | null | null | import unittest
import networkx as nx
from nose.tools import assert_equal, assert_raises, \
assert_true
from .util import json_load
from .test_util import make_path
from hig import construct_hig_from_interactions
from interactions import InteractionsUtil as IU
| 30.116667 | 62 | 0.484781 |
9f517ecb4978d7abbb693bb67e1f4a9ac780ee1f | 5,608 | py | Python | euler_angle_visualization/lib/TaitBryanRotation.py | klosteraner/Euler-Angles-Visual | f9e1f41ca75912b21572d11e0d14cbd4bb82aa52 | [
"MIT"
] | null | null | null | euler_angle_visualization/lib/TaitBryanRotation.py | klosteraner/Euler-Angles-Visual | f9e1f41ca75912b21572d11e0d14cbd4bb82aa52 | [
"MIT"
] | null | null | null | euler_angle_visualization/lib/TaitBryanRotation.py | klosteraner/Euler-Angles-Visual | f9e1f41ca75912b21572d11e0d14cbd4bb82aa52 | [
"MIT"
] | null | null | null | from traits.api import HasTraits, Bool, Enum, List, Str
from numpy import array, cos, sin
def angles_yaw_pitch_roll():
'''
Returns a definition of the "Yaw, Pitch, Roll" Tait-Bryan angles set widespread in aerospace applications.
'''
definition = TaitBryanAnglesDefinition()
# first roll is appli... | 38.675862 | 112 | 0.694009 |
9f521de84b0ac5792cc9124444676f4fcf2028af | 854 | py | Python | w2020/w9/w9_19/sort.py | abrance/mine | d4067bf6fb158ebaea3eb7a516ae372dcb8cf419 | [
"MIT"
] | null | null | null | w2020/w9/w9_19/sort.py | abrance/mine | d4067bf6fb158ebaea3eb7a516ae372dcb8cf419 | [
"MIT"
] | null | null | null | w2020/w9/w9_19/sort.py | abrance/mine | d4067bf6fb158ebaea3eb7a516ae372dcb8cf419 | [
"MIT"
] | null | null | null |
l1 = [1, -1, 31, 23, 9, 4, 2, 3]
if __name__ == '__main__':
main()
| 18.565217 | 48 | 0.522248 |
9f5431df273285b9e2904f4a66e99d7fa60a4ed4 | 4,952 | py | Python | training.py | oakwood44267/scooter | 11e6de1d3216b87e6a42bcb6de4a2ad1affabf49 | [
"BSD-2-Clause"
] | 4 | 2020-03-04T23:43:55.000Z | 2021-05-24T05:23:26.000Z | training.py | oakwood44267/scooter | 11e6de1d3216b87e6a42bcb6de4a2ad1affabf49 | [
"BSD-2-Clause"
] | null | null | null | training.py | oakwood44267/scooter | 11e6de1d3216b87e6a42bcb6de4a2ad1affabf49 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python3
import pandas as pd
import numpy as np
from glob import glob
from sklearn.model_selection import train_test_split
from sklearn.utils import shuffle
from sklearn.metrics import classification_report, confusion_matrix
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import... | 28.959064 | 126 | 0.668821 |
9f577d4e6078ddc55f14433fb0ba6b1f3afe187f | 3,468 | py | Python | test/test_files/pylops/pytests/test_sliding.py | SoftwareUnderstanding/inspect4py | 9c4d7252535082ad938b26baf281d93f3a27285e | [
"BSD-3-Clause"
] | 2 | 2022-02-15T20:30:57.000Z | 2022-03-17T00:50:37.000Z | test/test_files/pylops/pytests/test_sliding.py | SoftwareUnderstanding/code_inspector | a820b5a7bb18f5df9c3e79346108d8280b20c39a | [
"BSD-3-Clause"
] | 101 | 2021-06-09T14:19:59.000Z | 2022-01-24T13:24:39.000Z | test/test_files/pylops/pytests/test_sliding.py | SoftwareUnderstanding/inspect4py | 9c4d7252535082ad938b26baf281d93f3a27285e | [
"BSD-3-Clause"
] | 1 | 2021-09-22T06:59:32.000Z | 2021-09-22T06:59:32.000Z | import pytest
import numpy as np
from numpy.testing import assert_array_almost_equal
from pylops.utils import dottest
from pylops import LinearOperator
from pylops.basicoperators import MatrixMult
from pylops.signalprocessing import Sliding1D, Sliding2D, Sliding3D
par1 = {'ny': 6, 'nx': 7, 'nt': 10,
'npy': ... | 39.409091 | 79 | 0.520185 |
9f57dc161a4c2f57109ec9b96b98cf65e6091f2e | 6,203 | py | Python | tests/binding/test_binders_errors.py | jimcarreer/dinao | ab9514d81ffff2d3e8717f26403c3b73f388739d | [
"MIT"
] | 1 | 2021-01-27T08:09:31.000Z | 2021-01-27T08:09:31.000Z | tests/binding/test_binders_errors.py | jimcarreer/dinao | ab9514d81ffff2d3e8717f26403c3b73f388739d | [
"MIT"
] | 34 | 2020-12-18T19:40:26.000Z | 2022-03-05T13:06:37.000Z | tests/binding/test_binders_errors.py | jimcarreer/dinao | ab9514d81ffff2d3e8717f26403c3b73f388739d | [
"MIT"
] | 1 | 2021-01-27T08:12:15.000Z | 2021-01-27T08:12:15.000Z | """Tests various errors that can be thrown by binding."""
from typing import Generator, List, Tuple, Union
from dinao.backend import Connection
from dinao.binding import FunctionBinder
from dinao.binding.binders import BoundedGeneratingQuery
from dinao.binding.errors import (
BadReturnTypeError,
CannotInferMa... | 38.055215 | 114 | 0.715138 |
9f5811036c606f5ac57993aea9de0c63592c971b | 1,773 | py | Python | gcsa/serializers/base_serializer.py | DirkReiners/Google-Calendar-Simple-API | b2d3e3e2ab1a8230301d97281346f8f95d762588 | [
"MIT"
] | null | null | null | gcsa/serializers/base_serializer.py | DirkReiners/Google-Calendar-Simple-API | b2d3e3e2ab1a8230301d97281346f8f95d762588 | [
"MIT"
] | null | null | null | gcsa/serializers/base_serializer.py | DirkReiners/Google-Calendar-Simple-API | b2d3e3e2ab1a8230301d97281346f8f95d762588 | [
"MIT"
] | null | null | null | import json
| 34.764706 | 117 | 0.611957 |
9f582bd96f276e9ca75965135dcc5b33474b1f4e | 1,078 | py | Python | scripts/quest/q30006s.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 54 | 2019-04-16T23:24:48.000Z | 2021-12-18T11:41:50.000Z | scripts/quest/q30006s.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 3 | 2019-05-19T15:19:41.000Z | 2020-04-27T16:29:16.000Z | scripts/quest/q30006s.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 49 | 2020-11-25T23:29:16.000Z | 2022-03-26T16:20:24.000Z | # [Root Abyss] Guardians of the World Tree
MYSTERIOUS_GIRL = 1064001 # npc Id
sm.removeEscapeButton()
sm.lockInGameUI(True)
sm.setPlayerAsSpeaker()
sm.sendNext("We need to find those baddies if we want to get you out of here.")
sm.setSpeakerID(MYSTERIOUS_GIRL)
sm.sendNext("But... they all left")
sm.setPlayerAsSpeake... | 30.8 | 92 | 0.751391 |
9f58b4292a34cd1938789d7e2e28f7021f2ddc09 | 80 | py | Python | nfbackend/env_vars.py | neuralfoo/neuralfoo | d40388cd506d612ceee9ae10d92985c794249c65 | [
"MIT"
] | 2 | 2022-01-06T08:18:29.000Z | 2022-01-06T08:19:09.000Z | nfbackend/env_vars.py | neuralfoo/neuralfoo | d40388cd506d612ceee9ae10d92985c794249c65 | [
"MIT"
] | null | null | null | nfbackend/env_vars.py | neuralfoo/neuralfoo | d40388cd506d612ceee9ae10d92985c794249c65 | [
"MIT"
] | null | null | null | seaweedfs_master = "http://localhost:9333" #do not add slash to end (after port) | 80 | 80 | 0.75 |
9f5970de9e5e48b628139ce7eea832df4e02442b | 3,462 | py | Python | test.py | sasha42/c3lingo-stats | a2729405a0397a7072b1d6b66d9562b67502ec68 | [
"MIT"
] | 2 | 2019-12-30T08:17:57.000Z | 2019-12-30T16:38:10.000Z | test.py | sasha42/c3lingo-stats | a2729405a0397a7072b1d6b66d9562b67502ec68 | [
"MIT"
] | 1 | 2019-01-08T19:12:32.000Z | 2019-01-08T20:19:58.000Z | test.py | sasha42/c3lingo-stats | a2729405a0397a7072b1d6b66d9562b67502ec68 | [
"MIT"
] | 1 | 2019-12-30T14:43:41.000Z | 2019-12-30T14:43:41.000Z | #!/usr/bin/env python3
import unittest
from textwrap import dedent
from datetime import timedelta
from parse import parse_block, TranslationShift
if __name__ == '__main__':
unittest.main()
| 39.793103 | 115 | 0.62825 |
9f5af16633fdf3d87fecf487badb15528c65c1ec | 5,018 | py | Python | tests/oleform/test_basic.py | tirkarthi/oletools | 8b97e45bffe22f18363fd58431bbae4613296103 | [
"BSD-2-Clause"
] | 1 | 2020-12-05T10:30:06.000Z | 2020-12-05T10:30:06.000Z | tests/oleform/test_basic.py | tirkarthi/oletools | 8b97e45bffe22f18363fd58431bbae4613296103 | [
"BSD-2-Clause"
] | null | null | null | tests/oleform/test_basic.py | tirkarthi/oletools | 8b97e45bffe22f18363fd58431bbae4613296103 | [
"BSD-2-Clause"
] | null | null | null | """ Test oleform basic functionality """
import unittest
from os.path import join
import sys
# Directory with test data, independent of current working directory
from tests.test_utils import DATA_BASE_DIR
if sys.version_info[0] <= 2:
from oletools.olevba import VBA_Parser
else:
from oletools.olevba3 import V... | 147.588235 | 4,099 | 0.646273 |
9f5b476a26d33e866185f1fc2f1015578a813124 | 593 | py | Python | base/shortener/admin.py | elijah74/django-url-shortener | 8934b46539748957b4be46945bea159640911434 | [
"BSD-3-Clause"
] | null | null | null | base/shortener/admin.py | elijah74/django-url-shortener | 8934b46539748957b4be46945bea159640911434 | [
"BSD-3-Clause"
] | null | null | null | base/shortener/admin.py | elijah74/django-url-shortener | 8934b46539748957b4be46945bea159640911434 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from .models import Shortener
| 31.210526 | 71 | 0.693086 |
9f5cd4fcdfedb1f66c3f0409b1f89c49107cd3d7 | 6,484 | py | Python | terraform/stacks/analytics/cloud_sniper_beaconing_detection/cloud_sniper_beaconing_detection.py | houey/cloud-sniper | b0ac98eddc0b2da0f37c70926e2cef897283d787 | [
"MIT"
] | 160 | 2019-09-27T18:02:03.000Z | 2022-03-15T23:46:40.000Z | terraform/analytics/cloud_sniper_beaconing_detection/cloud_sniper_beaconing_detection.py | rckasa/cloud-sniper | cf9433622497360a6f2fb6a0d924d99f7a8387d2 | [
"MIT"
] | 2 | 2019-10-21T13:30:17.000Z | 2019-10-30T00:09:11.000Z | terraform/analytics/cloud_sniper_beaconing_detection/cloud_sniper_beaconing_detection.py | rckasa/cloud-sniper | cf9433622497360a6f2fb6a0d924d99f7a8387d2 | [
"MIT"
] | 31 | 2019-10-19T18:10:23.000Z | 2022-02-28T14:13:19.000Z | import os
import ipaddress
import numpy as np
import pandas as pd
import datetime
import boto3
import gzip
import json
from signal_processing import signalProcess
BUCKET_NAME = os.environ.get("BUCKET_NAME", None)
VPC_FLOW_LOGS_PATH = os.environ.get("VPC_FLOW_LOGS_PATH", None)
FINDINGS_PATH = os.environ.get("FINDINGS_... | 30.87619 | 81 | 0.593461 |
9f5fffd14d557fb85e919eb6a0d6e8b847206c01 | 2,062 | py | Python | examples/KEPLER/Pretrain/convert.py | MichalPitr/KEPLER | 8692bb3d1e11673eb7b19a4175827024e916e55e | [
"MIT"
] | 98 | 2020-12-26T04:47:03.000Z | 2022-03-31T06:06:53.000Z | examples/KEPLER/Pretrain/convert.py | MichalPitr/KEPLER | 8692bb3d1e11673eb7b19a4175827024e916e55e | [
"MIT"
] | 15 | 2020-11-30T09:57:09.000Z | 2022-03-30T13:56:43.000Z | examples/KEPLER/Pretrain/convert.py | MichalPitr/KEPLER | 8692bb3d1e11673eb7b19a4175827024e916e55e | [
"MIT"
] | 12 | 2021-01-15T04:27:20.000Z | 2022-03-27T04:05:38.000Z | import argparse
import json
parser = argparse.ArgumentParser()
parser.add_argument("--text", type=str, help="path to original text file")
parser.add_argument("--train", type=str, help="path to original training data file")
parser.add_argument("--valid", type=str, help="path to original validation data file")
parser.ad... | 44.826087 | 113 | 0.56644 |
9f60d2f486b09e2eedf0913467b709bee5e50f98 | 4,219 | py | Python | mabel/data/formats/dictset/group_by.py | mabel-dev/mabel | ee1fdfcfe5fb87d2c5ce4f24b4b7113478ba1b8a | [
"Apache-2.0"
] | null | null | null | mabel/data/formats/dictset/group_by.py | mabel-dev/mabel | ee1fdfcfe5fb87d2c5ce4f24b4b7113478ba1b8a | [
"Apache-2.0"
] | 287 | 2021-05-14T21:25:26.000Z | 2022-03-30T12:02:51.000Z | mabel/data/formats/dictset/group_by.py | mabel-dev/mabel | ee1fdfcfe5fb87d2c5ce4f24b4b7113478ba1b8a | [
"Apache-2.0"
] | 1 | 2021-04-29T18:18:20.000Z | 2021-04-29T18:18:20.000Z | from typing import Callable, Iterator
from mabel.data.formats import dictset as ds
| 30.135714 | 84 | 0.53662 |
9f64787f57a24c0791b4e390dd80153d89d86f8d | 12,181 | py | Python | geonet/region.py | bbengfort/geonet | 05b96f44834bdb39444ad73d7a6c863f3d55326f | [
"MIT"
] | 1 | 2018-03-28T15:12:28.000Z | 2018-03-28T15:12:28.000Z | geonet/region.py | bbengfort/geonet | 05b96f44834bdb39444ad73d7a6c863f3d55326f | [
"MIT"
] | 1 | 2018-01-26T15:21:13.000Z | 2018-02-02T22:04:59.000Z | geonet/region.py | bbengfort/geonet | 05b96f44834bdb39444ad73d7a6c863f3d55326f | [
"MIT"
] | null | null | null | # geonet.region
# Interface for managing region objects
#
# Author: Benjamin Bengfort <benjamin@bengfort.com>
# Created: Wed Jan 17 06:49:35 2018 -0500
#
# ID: region.py [] benjamin@bengfort.com $
"""
Interface for managing region objects
"""
##########################################################################... | 31.233333 | 78 | 0.588868 |
9f671a95487f003d950ed13b08b34375df5b9270 | 21 | py | Python | src/kdenlive_tools/__main__.py | kdeldycke/kdenlive-tools | 442fd45f6df473e15d20a67fe7feaf3b9f93acda | [
"BSD-2-Clause"
] | 5 | 2017-02-01T08:36:06.000Z | 2021-08-20T16:41:33.000Z | src/kdenlive_tools/__main__.py | kdeldycke/kdenlive-tools | 442fd45f6df473e15d20a67fe7feaf3b9f93acda | [
"BSD-2-Clause"
] | 1 | 2015-06-30T12:53:31.000Z | 2015-06-30T12:53:31.000Z | src/kdenlive_tools/__main__.py | kdeldycke/kdenlive-tools | 442fd45f6df473e15d20a67fe7feaf3b9f93acda | [
"BSD-2-Clause"
] | 1 | 2015-05-26T07:11:16.000Z | 2015-05-26T07:11:16.000Z | import cli
cli.cli()
| 7 | 10 | 0.714286 |
9f6739c4bea6fd5cebb646ce1b393c5ad315b2ef | 1,539 | py | Python | tests/test_webframe.py | vmiklos/osm-gimmisn | 361a3bec83feaa49a1b0a1e4b4bca3ab61e57225 | [
"MIT"
] | 8 | 2019-05-25T10:56:41.000Z | 2021-09-07T11:17:33.000Z | tests/test_webframe.py | vmiklos/osm-gimmisn | 361a3bec83feaa49a1b0a1e4b4bca3ab61e57225 | [
"MIT"
] | 290 | 2019-05-02T21:07:42.000Z | 2022-01-28T09:36:51.000Z | tests/test_webframe.py | vmiklos/osm-gimmisn | 361a3bec83feaa49a1b0a1e4b4bca3ab61e57225 | [
"MIT"
] | 504 | 2019-05-02T20:50:54.000Z | 2021-05-09T12:26:18.000Z | #!/usr/bin/env python3
#
# Copyright (c) 2019 Miklos Vajna and contributors.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""The test_webframe module covers the webframe module."""
from typing import List
from typing import TYPE_CHECKING
from typing import Tupl... | 29.596154 | 94 | 0.648473 |
9f6a5e9db62958c0cbf9484b9d16be6014ffce1e | 504 | py | Python | Python Snippets with Documentation/05 Data Structures/11 List Comprehensions.py | AhmedRaja1/Python-Beginner-s-Starter-Kit | 285cfbeb7207e6531954f21cae3a062f977ee5a0 | [
"MIT"
] | 1 | 2021-09-27T16:47:25.000Z | 2021-09-27T16:47:25.000Z | Python Snippets with Documentation/05 Data Structures/11 List Comprehensions.py | AhmedRaja1/Python-Beginner-s-Starter-Kit | 285cfbeb7207e6531954f21cae3a062f977ee5a0 | [
"MIT"
] | null | null | null | Python Snippets with Documentation/05 Data Structures/11 List Comprehensions.py | AhmedRaja1/Python-Beginner-s-Starter-Kit | 285cfbeb7207e6531954f21cae3a062f977ee5a0 | [
"MIT"
] | 1 | 2021-09-27T16:47:33.000Z | 2021-09-27T16:47:33.000Z | # 11 List Comprehensions
products = [
("Product1", 15),
("Product2", 50),
("Product3", 5)
]
print(products)
# prices = list(map(lambda item: item[1], products))
# print(prices)
prices = [item[1] for item in products] # With list comprehensions we can achive the same result with a clenaer code
print(pric... | 22.909091 | 116 | 0.69246 |
9f6ba376e6b11128b8c918a4e5e647fb6f6188f8 | 1,092 | py | Python | wes_service/util.py | DailyDreaming/dev-workflow-service | 753c38655c96f20a9d187b507f55fd097d6900ab | [
"Apache-2.0"
] | null | null | null | wes_service/util.py | DailyDreaming/dev-workflow-service | 753c38655c96f20a9d187b507f55fd097d6900ab | [
"Apache-2.0"
] | null | null | null | wes_service/util.py | DailyDreaming/dev-workflow-service | 753c38655c96f20a9d187b507f55fd097d6900ab | [
"Apache-2.0"
] | 1 | 2018-07-19T00:16:57.000Z | 2018-07-19T00:16:57.000Z | from six import itervalues
def visit(d, op):
"""Recursively call op(d) for all list subelements and dictionary 'values' that d may have."""
op(d)
if isinstance(d, list):
for i in d:
visit(i, op)
elif isinstance(d, dict):
for i in itervalues(d):
visit(i, op)
| 28.736842 | 98 | 0.543956 |
9f6d489b1bec4ea8deaa1ee79593777477246ffb | 1,081 | py | Python | ss/projectilesystem.py | slode/spaceshooter | 8892f78b2e0a009ebefeddbaa848208a37068ce7 | [
"MIT"
] | null | null | null | ss/projectilesystem.py | slode/spaceshooter | 8892f78b2e0a009ebefeddbaa848208a37068ce7 | [
"MIT"
] | 3 | 2019-06-27T12:14:07.000Z | 2019-06-27T12:15:03.000Z | ss/projectilesystem.py | slode/spaceshooter | 8892f78b2e0a009ebefeddbaa848208a37068ce7 | [
"MIT"
] | null | null | null | from triton.ecs import System
from .events import *
from .components import *
| 31.794118 | 100 | 0.509713 |
9f6e916f9895a09483d063aa2baf23c896ad2327 | 1,988 | py | Python | List/ArrayBaseList.py | alstn2468/Python_Data_Structure | 7a092c2b7a3ac5fbc735b51ce8d639ed7c2ecfce | [
"MIT"
] | 2 | 2020-08-10T09:31:13.000Z | 2020-08-11T07:03:18.000Z | List/ArrayBaseList.py | SikSo1897/Python_Data_Structure | 7a092c2b7a3ac5fbc735b51ce8d639ed7c2ecfce | [
"MIT"
] | null | null | null | List/ArrayBaseList.py | SikSo1897/Python_Data_Structure | 7a092c2b7a3ac5fbc735b51ce8d639ed7c2ecfce | [
"MIT"
] | 4 | 2019-03-19T06:59:01.000Z | 2020-09-02T04:38:22.000Z | # ArrayBaseList.py
#
if __name__ == '__main__' :
#
list = ArrayBaseList()
#
list.add(10), list.add(20)
list.add(30), list.add(40)
list.add(50), list.add(60)
#
print('Add Data')
list.display()
print()
'''
Add Data
10 20 30 40 50 60
'''
... | 20.708333 | 97 | 0.528169 |
9f6fd9b78959476700ebfd2a923895af3dc7f59d | 250 | py | Python | gui/examples/hello_0.py | t20100/silx-training | 409656479c7fdc9f1e895c6f3f0530c7eb89cbc1 | [
"CC-BY-4.0"
] | 7 | 2017-05-02T10:03:12.000Z | 2021-06-28T14:11:32.000Z | gui/examples/hello_0.py | t20100/silx-training | 409656479c7fdc9f1e895c6f3f0530c7eb89cbc1 | [
"CC-BY-4.0"
] | 23 | 2016-11-21T17:55:11.000Z | 2021-11-24T13:43:13.000Z | gui/examples/hello_0.py | t20100/silx-training | 409656479c7fdc9f1e895c6f3f0530c7eb89cbc1 | [
"CC-BY-4.0"
] | 13 | 2016-11-17T10:47:22.000Z | 2022-02-07T09:38:47.000Z | from PyQt5.QtWidgets import QApplication, QLabel, QMainWindow
app = QApplication([])
main_window = QMainWindow()
first_widget = QLabel('hello world !!!', parent=main_window)
main_window.setCentralWidget(first_widget)
main_window.show()
app.exec_() | 25 | 61 | 0.788 |
9f6ff1cce926c42a5b3e96edd3fb7ad902b5329d | 1,429 | py | Python | day_09/main.py | 7Rocky/AoC-2021 | ed8e94255d6d935e3fcde4363361fb7c2a8eccba | [
"0BSD"
] | 1 | 2021-12-07T08:03:51.000Z | 2021-12-07T08:03:51.000Z | day_09/main.py | 7Rocky/AoC-2021 | ed8e94255d6d935e3fcde4363361fb7c2a8eccba | [
"0BSD"
] | null | null | null | day_09/main.py | 7Rocky/AoC-2021 | ed8e94255d6d935e3fcde4363361fb7c2a8eccba | [
"0BSD"
] | null | null | null | from functools import reduce
if __name__ == '__main__':
main()
| 25.517857 | 75 | 0.505948 |
9f7018c0a4594a3537d02ec23d95b4ae17544c4d | 1,101 | py | Python | kolibri/logger/test/factory_logger.py | aronasorman/kolibri | 940672bc849cd0b26d7d84ee08a34f072c4f6cd6 | [
"MIT"
] | null | null | null | kolibri/logger/test/factory_logger.py | aronasorman/kolibri | 940672bc849cd0b26d7d84ee08a34f072c4f6cd6 | [
"MIT"
] | 2 | 2017-02-08T00:22:04.000Z | 2017-06-12T20:27:44.000Z | kolibri/logger/test/factory_logger.py | aronasorman/kolibri | 940672bc849cd0b26d7d84ee08a34f072c4f6cd6 | [
"MIT"
] | null | null | null | import datetime
import factory
import uuid
from kolibri.auth.test.test_api import FacilityUserFactory
from .. import models
| 23.425532 | 59 | 0.745686 |
9f71a197572466c48094262987b091e399a3df17 | 237 | py | Python | lists/urls.py | Tawakalt/todo_list | 184293acf62771f60c6fdc46271634ae89684775 | [
"MIT"
] | null | null | null | lists/urls.py | Tawakalt/todo_list | 184293acf62771f60c6fdc46271634ae89684775 | [
"MIT"
] | 5 | 2020-06-06T01:03:12.000Z | 2022-02-10T10:01:49.000Z | lists/urls.py | Tawakalt/todo_list | 184293acf62771f60c6fdc46271634ae89684775 | [
"MIT"
] | 1 | 2020-01-20T12:44:56.000Z | 2020-01-20T12:44:56.000Z | from django.urls import path
from . import views
urlpatterns = [
path('new', views.new_list, name='new_list'),
path('<list_id>/', views.view_list, name='view_list'),
path('users/<email>/', views.my_lists, name='my_lists'),
] | 29.625 | 60 | 0.670886 |
9f73832f769c299fec9835e66ca79ecdd0318b41 | 1,268 | py | Python | populate_chijri.py | J471/Telegram-ID_AzanBot | e48bff507ade5e811a6bbac2bfe8615448b09e83 | [
"MIT"
] | 2 | 2021-01-27T10:38:25.000Z | 2021-06-14T18:54:23.000Z | populate_chijri.py | J471/Telegram-ID_AzanBot | e48bff507ade5e811a6bbac2bfe8615448b09e83 | [
"MIT"
] | 2 | 2021-01-27T10:38:07.000Z | 2021-06-14T18:51:19.000Z | populate_chijri.py | J471/Telegram-ID_AzanBot | e48bff507ade5e811a6bbac2bfe8615448b09e83 | [
"MIT"
] | 2 | 2020-05-09T23:38:57.000Z | 2021-01-27T10:38:31.000Z | #!/usr/bin/env python
import logging
from pymongo import MongoClient
from credentials import DBNAME, DBUSER, DBPASS, DBAUTH
# Enable logging
logging.basicConfig(format='%(asctime)s - %(name)s:%(lineno)d - %(levelname)s - %(message)s',
level=logging.INFO)
logger = logging.getLogger(__name__)
# Mo... | 33.368421 | 93 | 0.619085 |
9f738ea756e75f0ed0084df2282be6af1ddfc79e | 12,206 | py | Python | sources/iam_online.py | X-rayLaser/keras-auto-hwr | 67cfc0209045b1e211f0491b0199cb9d6811bfd0 | [
"MIT"
] | null | null | null | sources/iam_online.py | X-rayLaser/keras-auto-hwr | 67cfc0209045b1e211f0491b0199cb9d6811bfd0 | [
"MIT"
] | 2 | 2020-01-04T09:03:31.000Z | 2021-05-10T18:29:41.000Z | sources/iam_online.py | X-rayLaser/keras-auto-hwr | 67cfc0209045b1e211f0491b0199cb9d6811bfd0 | [
"MIT"
] | null | null | null | import os
import random
from xml.etree import ElementTree as ET
import numpy as np
from PIL import Image
from PIL.ImageDraw import ImageDraw
from sources import BaseSource
from sources.preloaded import PreLoadedSource
def fetch_strokes(source, num_strokes):
cropped_strokes = []
dummy_out = []
for stro... | 28.452214 | 144 | 0.580616 |
9f73b74bec263fb02cc230f60b05601fb2257463 | 6,329 | py | Python | mission_control/navigator_missions/navigator_missions/start_gate_marshall.py | MarshallRawson/NaviGator | 1f12dccb1f51a5f2c1250ed58b955da34c4b081f | [
"MIT"
] | null | null | null | mission_control/navigator_missions/navigator_missions/start_gate_marshall.py | MarshallRawson/NaviGator | 1f12dccb1f51a5f2c1250ed58b955da34c4b081f | [
"MIT"
] | null | null | null | mission_control/navigator_missions/navigator_missions/start_gate_marshall.py | MarshallRawson/NaviGator | 1f12dccb1f51a5f2c1250ed58b955da34c4b081f | [
"MIT"
] | 1 | 2020-04-26T17:31:01.000Z | 2020-04-26T17:31:01.000Z | #!/usr/bin/env python
from __future__ import division
import txros
import numpy as np
import mil_tools
from mil_misc_tools.text_effects import fprint
from navigator import Navigator
import math
from twisted.internet import defer
from mil_tools import rosmsg_to_numpy
from mil_misc_tools import ThrowingArgumentParser
__... | 41.638158 | 166 | 0.652552 |
9f73dd661d58f6bc6a5bf932909ee30f8b1fd07a | 8,205 | py | Python | misc bots/mtg info bot.py | b9king/Discord-Bots | e6b08eeeb8de0952726883cfce0717d4866eacc9 | [
"MIT"
] | null | null | null | misc bots/mtg info bot.py | b9king/Discord-Bots | e6b08eeeb8de0952726883cfce0717d4866eacc9 | [
"MIT"
] | null | null | null | misc bots/mtg info bot.py | b9king/Discord-Bots | e6b08eeeb8de0952726883cfce0717d4866eacc9 | [
"MIT"
] | null | null | null |
import discord
import random
from asd import *
from mtgsdk import Card
from mtgsdk import Set
from mtgsdk import Type
from mtgsdk import Supertype
from mtgsdk import Subtype
from mtgsdk import Changelog
client=discord.Client()
client.run('NjM1NTk0MzE3MDAzNjIwMzYy.XazWfA.7KMudkJo_OD7R9UpAt1Rv55i... | 42.076923 | 569 | 0.553199 |
9f74f5e7280e8a768862ffba117b0d9c83db850f | 543 | py | Python | docs/webflask/quiz_orm/quiz2_sa/app.py | damiankarol7/python101 | 1978a9402a8fb0f20c4ca7bd542cb8d7d4501b9b | [
"MIT"
] | 44 | 2015-02-11T19:10:37.000Z | 2021-11-11T09:45:43.000Z | docs/webflask/quiz_orm/quiz2_sa/app.py | damiankarol7/python101 | 1978a9402a8fb0f20c4ca7bd542cb8d7d4501b9b | [
"MIT"
] | 9 | 2015-02-06T21:26:25.000Z | 2022-03-31T10:44:22.000Z | docs/webflask/quiz_orm/quiz2_sa/app.py | damiankarol7/python101 | 1978a9402a8fb0f20c4ca7bd542cb8d7d4501b9b | [
"MIT"
] | 172 | 2015-06-13T07:16:24.000Z | 2022-03-30T20:41:11.000Z | # -*- coding: utf-8 -*-
# quiz-orm/app.py
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
import os
app = Flask(__name__)
# konfiguracja aplikacji
app.config.update(dict(
SECRET_KEY='bardzosekretnawartosc',
DATABASE=os.path.join(app.root_path, 'quiz.db'),
SQLALCHEMY_DATABASE_URI='sqlite:/... | 24.681818 | 67 | 0.699816 |
9f751bbb91c8500eae6e90b0594cc10254454ae4 | 100 | py | Python | web/cache.py | therealplato/vim-awesome | 54e33073f4d470230e4578239ceb8f203f5f6613 | [
"MIT"
] | 1,379 | 2016-04-10T06:35:30.000Z | 2022-03-31T16:07:38.000Z | web/cache.py | therealplato/vim-awesome | 54e33073f4d470230e4578239ceb8f203f5f6613 | [
"MIT"
] | 119 | 2016-04-10T04:26:48.000Z | 2022-03-25T15:10:06.000Z | web/cache.py | therealplato/vim-awesome | 54e33073f4d470230e4578239ceb8f203f5f6613 | [
"MIT"
] | 83 | 2016-04-10T11:32:03.000Z | 2022-03-16T01:56:35.000Z | """Module to hold the instance of the cache"""
from flask.ext.cache import Cache
cache = Cache()
| 14.285714 | 46 | 0.71 |
9f75493254c668925a5805aa8390f3fd04f12976 | 2,143 | py | Python | ontologyExtraction/testOntologyExtractionPerformance.py | mikiec84/linkshop | 72959ceca0003be226edeca6496f915502831596 | [
"Apache-2.0"
] | 6 | 2017-07-18T15:28:33.000Z | 2020-03-03T14:45:45.000Z | ontologyExtraction/testOntologyExtractionPerformance.py | mikiec84/linkshop | 72959ceca0003be226edeca6496f915502831596 | [
"Apache-2.0"
] | null | null | null | ontologyExtraction/testOntologyExtractionPerformance.py | mikiec84/linkshop | 72959ceca0003be226edeca6496f915502831596 | [
"Apache-2.0"
] | 3 | 2017-09-09T00:36:48.000Z | 2020-03-03T14:45:49.000Z | #!/usr/bin/env python3
import datetime
import json
import loadPath # Adds the project path.
import linkograph.labels as llabels
import linkograph.linkoCreate as llinkoCreate
import ontologyExtraction as oe
import os
import sys
if "__main__" == __name__:
if 2 > len(sys.argv):
print_usage()
exit()... | 28.573333 | 93 | 0.619692 |
9f7671b22d25aa69840f2f73e18739e85cea6408 | 1,523 | py | Python | app/v2/template/post_template.py | alphagov/notify-notifications-api | e604385e0cf4c2ab8c6451b7120ceb196cce21b5 | [
"MIT"
] | 51 | 2016-04-03T23:36:17.000Z | 2022-03-21T20:04:52.000Z | app/v2/template/post_template.py | alphagov/notify-notifications-api | e604385e0cf4c2ab8c6451b7120ceb196cce21b5 | [
"MIT"
] | 1,335 | 2015-12-15T14:28:50.000Z | 2022-03-30T16:24:27.000Z | app/v2/template/post_template.py | alphagov/notify-notifications-api | e604385e0cf4c2ab8c6451b7120ceb196cce21b5 | [
"MIT"
] | 30 | 2016-01-08T19:05:32.000Z | 2021-12-20T16:37:23.000Z | from flask import jsonify, request
from app import authenticated_service
from app.dao import templates_dao
from app.schema_validation import validate
from app.v2.errors import BadRequestError
from app.v2.template import v2_template_blueprint
from app.v2.template.template_schemas import (
create_post_template_previ... | 32.404255 | 95 | 0.741957 |
9f76e0fb3dc684661b0f1ce53cf8d60b14cc6636 | 357 | py | Python | mdm_inventory/clients/graphql/query.py | TeamWalls/mdm-backend-django | 4e23f9abc8531eb786d5e6cf958c9ffa8acd6b1d | [
"MIT"
] | null | null | null | mdm_inventory/clients/graphql/query.py | TeamWalls/mdm-backend-django | 4e23f9abc8531eb786d5e6cf958c9ffa8acd6b1d | [
"MIT"
] | null | null | null | mdm_inventory/clients/graphql/query.py | TeamWalls/mdm-backend-django | 4e23f9abc8531eb786d5e6cf958c9ffa8acd6b1d | [
"MIT"
] | null | null | null | import graphene
from graphene_django import DjangoObjectType
#models
from mdm_inventory.clients.models import Client
#types
from mdm_inventory.clients.graphql.types import ClientType
| 23.8 | 58 | 0.803922 |
9f778f6dd25faa594cf09e778443b905c376ef79 | 4,923 | py | Python | bnn_vi/data_sampling.py | Daniil-Selikhanovych/bnn-vi | 6788edc1438c66609abca249e33a81da7a0ff1a2 | [
"MIT"
] | 3 | 2020-06-13T22:40:38.000Z | 2020-10-23T17:34:25.000Z | bnn_vi/data_sampling.py | Daniil-Selikhanovych/bnn-vi | 6788edc1438c66609abca249e33a81da7a0ff1a2 | [
"MIT"
] | null | null | null | bnn_vi/data_sampling.py | Daniil-Selikhanovych/bnn-vi | 6788edc1438c66609abca249e33a81da7a0ff1a2 | [
"MIT"
] | 1 | 2022-02-23T18:10:07.000Z | 2022-02-23T18:10:07.000Z | import torch
from torch.utils.data import Dataset, DataLoader
from torch.distributions.multivariate_normal import MultivariateNormal
import numpy as np
from tqdm import tqdm
import random
def get_sample_regression(n_samples, noise = 0.1, seed = 42):
"""
Returns (x_train, y_train), (x_true, y_true)
"""
... | 38.162791 | 94 | 0.62015 |
9f785e07c83c19573eabf2bf59f8baedfd273e7b | 125 | py | Python | damgard_jurik/__init__.py | NCGThompson/damgard-jurik | 5471ec2eb098381dd4dc37fac6b041a010290960 | [
"MIT"
] | 7 | 2019-05-14T02:41:44.000Z | 2022-01-11T17:22:06.000Z | damgard_jurik/__init__.py | NCGThompson/damgard-jurik | 5471ec2eb098381dd4dc37fac6b041a010290960 | [
"MIT"
] | 5 | 2019-06-14T07:56:20.000Z | 2021-04-30T03:46:32.000Z | damgard_jurik/__init__.py | NCGThompson/damgard-jurik | 5471ec2eb098381dd4dc37fac6b041a010290960 | [
"MIT"
] | 2 | 2021-01-08T11:19:10.000Z | 2021-04-27T15:22:47.000Z | #!/usr/bin/env python3
from damgard_jurik.crypto import EncryptedNumber, PrivateKeyRing, PrivateKeyShare, PublicKey, keygen
| 31.25 | 100 | 0.832 |
9f7916fb0cf96de2e606af6f56ed3dba57c56995 | 2,387 | py | Python | src/todo/service/sqlalchemy_todo_service.py | MarkStefanovic/todo-api | fb6198511712df853e693787839533f0c9956178 | [
"MIT"
] | null | null | null | src/todo/service/sqlalchemy_todo_service.py | MarkStefanovic/todo-api | fb6198511712df853e693787839533f0c9956178 | [
"MIT"
] | null | null | null | src/todo/service/sqlalchemy_todo_service.py | MarkStefanovic/todo-api | fb6198511712df853e693787839533f0c9956178 | [
"MIT"
] | null | null | null | import datetime
import typing
from src import core
from src.todo import domain, adapter
__all__ = ("SqlAlchemyTodoService",)
| 34.594203 | 87 | 0.618349 |
9f79347db3c45d34cb02e6bd2e8159dde0e90c77 | 4,013 | py | Python | tests/parties/participants/test_view.py | PartyGwam/api | f580e29762990eabdb3bb5e317dee22c6c441696 | [
"MIT"
] | 1 | 2018-06-24T08:10:12.000Z | 2018-06-24T08:10:12.000Z | tests/parties/participants/test_view.py | PartyGwam/api | f580e29762990eabdb3bb5e317dee22c6c441696 | [
"MIT"
] | 48 | 2018-06-24T12:30:15.000Z | 2022-01-13T00:48:24.000Z | tests/parties/participants/test_view.py | PartyGwam/api | f580e29762990eabdb3bb5e317dee22c6c441696 | [
"MIT"
] | null | null | null | import datetime
from django.test import TestCase
from django.utils import timezone
from rest_framework import status
from rest_framework.test import APIRequestFactory, force_authenticate
from api.parties.participants.views import ParticipantsAPIView
from apps.parties.models import Party
from apps.users.models import U... | 34.008475 | 78 | 0.642911 |
9f7961daf22e80aa849ae0a67694bcc8b1f9979d | 348 | py | Python | setup.py | anthonyvallee/bettejpeg | eaa809f4d07d85274cd4ee4671352ff069f94307 | [
"Apache-2.0"
] | 1 | 2020-03-29T13:12:32.000Z | 2020-03-29T13:12:32.000Z | setup.py | anthonyvallee/bettejpeg | eaa809f4d07d85274cd4ee4671352ff069f94307 | [
"Apache-2.0"
] | 2 | 2016-10-23T21:15:52.000Z | 2016-12-08T07:25:07.000Z | setup.py | RentAPlace/python-betterjpeg | eaa809f4d07d85274cd4ee4671352ff069f94307 | [
"Apache-2.0"
] | null | null | null | from setuptools import (find_packages, setup)
from rap import betterjpeg
setup(
name=betterjpeg.__pkgname__,
description=betterjpeg.__description__,
version=betterjpeg.__version__,
packages=["rap.betterjpeg"],
entry_points="""
[console_scripts]
betterjpeg=rap.betterjpeg.... | 23.2 | 49 | 0.686782 |
9f7b07ec93646ee4b6b36fc42d1cca113c97fedc | 72 | py | Python | TimeSeriesAnalysisWithPython-master/SciPyTimeSeries/snippets/custom_rolling.py | sunny2309/scipy_conf_notebooks | 30a85d5137db95e01461ad21519bc1bdf294044b | [
"MIT"
] | 2 | 2021-01-09T15:57:26.000Z | 2021-11-29T01:44:21.000Z | TimeSeriesAnalysisWithPython-master/SciPyTimeSeries/snippets/custom_rolling.py | sunny2309/scipy_conf_notebooks | 30a85d5137db95e01461ad21519bc1bdf294044b | [
"MIT"
] | 5 | 2019-11-15T02:00:26.000Z | 2021-01-06T04:26:40.000Z | TimeSeriesAnalysisWithPython-master/SciPyTimeSeries/snippets/custom_rolling.py | sunny2309/scipy_conf_notebooks | 30a85d5137db95e01461ad21519bc1bdf294044b | [
"MIT"
] | null | null | null | df.rolling(window = 10, center = False).apply(lambda x: x[1]/x[2])[1:10] | 72 | 72 | 0.652778 |
9f7be079aecb0c7f1007be53df1d11761f197a8b | 1,653 | py | Python | CovarianceMatrix.py | Roundthecorner/CovarianceMatrix | 33c740b127b3307cc78c2558279a92605a759cd9 | [
"MIT"
] | null | null | null | CovarianceMatrix.py | Roundthecorner/CovarianceMatrix | 33c740b127b3307cc78c2558279a92605a759cd9 | [
"MIT"
] | null | null | null | CovarianceMatrix.py | Roundthecorner/CovarianceMatrix | 33c740b127b3307cc78c2558279a92605a759cd9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat May 23 11:28:30 2020
@author: rener
"""
import numpy as np
import pandas as pd
import os
from datetime import date
import time
import sys
dir_path = os.path.dirname(os.path.realpath(__file__))
os.chdir(dir_path)
#%% For the various companies we have data going back differen... | 25.828125 | 71 | 0.715064 |
9f7d06f6be365e2194cba4024a296f967397ecca | 434 | py | Python | source/online_catalog_scraper/online_scraper.py | kevinliang43/ProjectDB | 6ffd435cb01658e16f0da272bb3f8ec2faeef73c | [
"Apache-2.0"
] | null | null | null | source/online_catalog_scraper/online_scraper.py | kevinliang43/ProjectDB | 6ffd435cb01658e16f0da272bb3f8ec2faeef73c | [
"Apache-2.0"
] | null | null | null | source/online_catalog_scraper/online_scraper.py | kevinliang43/ProjectDB | 6ffd435cb01658e16f0da272bb3f8ec2faeef73c | [
"Apache-2.0"
] | null | null | null | import bs4
import urllib
from base_online_scraper import base_online_scraper as scraper
BASE_URL = 'http://catalog.northeastern.edu'
INITIAL_PATH = '/course-descriptions/'
fp = urllib.urlopen(BASE_URL + INITIAL_PATH)
soup = bs4.BeautifulSoup(fp, 'lxml')
nav_menu = soup.find("div", {"id": "atozindex"}).find_all('a', h... | 24.111111 | 73 | 0.723502 |
9f7e2802591fddf966e77ff0e8ee36df43d62e23 | 2,343 | py | Python | dummyapi/prediction.py | BW-Saltiest-Hacker-News-Trolls/flask_backend | 66e7abed5753478f0e93d7e20e5406da04abf294 | [
"MIT"
] | null | null | null | dummyapi/prediction.py | BW-Saltiest-Hacker-News-Trolls/flask_backend | 66e7abed5753478f0e93d7e20e5406da04abf294 | [
"MIT"
] | 1 | 2020-09-26T00:39:58.000Z | 2020-09-26T00:39:58.000Z | dummyapi/prediction.py | crsanderford/unit3-build-dummy-api | 66e7abed5753478f0e93d7e20e5406da04abf294 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import re
import spacy
import string
import sklearn
from html.parser import HTMLParser
from joblib import load
import tensorflow as tf
nlp = spacy.load('en_core_web_sm')
tfidf = load('tfidf.joblib')
wordlist = load('wordlist.joblib')
tf.keras.backend.clear_session()
model = tf... | 27.892857 | 92 | 0.674776 |
9f80aa8cd5c991f5a585c0a271b19cf8e97f19c9 | 141 | py | Python | lit/fields/text.py | velvetkeyboard/py-lit | 2bdc722e251d2c53ed19ad0e82e2447d9cdda8f9 | [
"Unlicense"
] | null | null | null | lit/fields/text.py | velvetkeyboard/py-lit | 2bdc722e251d2c53ed19ad0e82e2447d9cdda8f9 | [
"Unlicense"
] | null | null | null | lit/fields/text.py | velvetkeyboard/py-lit | 2bdc722e251d2c53ed19ad0e82e2447d9cdda8f9 | [
"Unlicense"
] | null | null | null | from lit.fields.base import Field
from lit.fields.base import TextType
| 17.625 | 36 | 0.737589 |
9f81339892faac8ee15eada26003419db9fd29d9 | 1,763 | py | Python | src/evidently/model_profile/sections/cat_target_drift_profile_section.py | jenoOvchi/evidently | 6ca36d633ee258442410ef47a219ff40b8a5097b | [
"Apache-2.0"
] | null | null | null | src/evidently/model_profile/sections/cat_target_drift_profile_section.py | jenoOvchi/evidently | 6ca36d633ee258442410ef47a219ff40b8a5097b | [
"Apache-2.0"
] | null | null | null | src/evidently/model_profile/sections/cat_target_drift_profile_section.py | jenoOvchi/evidently | 6ca36d633ee258442410ef47a219ff40b8a5097b | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
from typing import Any
from typing import Dict
from typing import Iterable
from typing import Optional
from typing import Type
from evidently.analyzers.base_analyzer import Analyzer
from evidently.analyzers.cat_target_drift_analyzer import CatTargetDriftAnalyzer
from evidently.model_profi... | 36.729167 | 97 | 0.697674 |
9f8168ed8352cd8534f1cb89d1dc8013ebfa7064 | 5,719 | py | Python | stores/apps/preferences/forms.py | diassor/CollectorCity-Market-Place | 892ad220b8cf1c0fc7433f625213fe61729522b2 | [
"Apache-2.0"
] | 135 | 2015-03-19T13:28:18.000Z | 2022-03-27T06:41:42.000Z | stores/apps/preferences/forms.py | dfcoding/CollectorCity-Market-Place | e59acec3d600c049323397b17cae14fdcaaaec07 | [
"Apache-2.0"
] | null | null | null | stores/apps/preferences/forms.py | dfcoding/CollectorCity-Market-Place | e59acec3d600c049323397b17cae14fdcaaaec07 | [
"Apache-2.0"
] | 83 | 2015-01-30T01:00:15.000Z | 2022-03-08T17:25:10.000Z | import re, logging
from django import forms
from django.forms import ModelForm
from django.utils.translation import ugettext as _
from django.contrib.localflavor.us.forms import USStateSelect,\
USPhoneNumberField
from models import Preference, ShippingWeight, ShippingPrice, ShippingItem, TaxState, DnsShop, EmailNo... | 32.129213 | 146 | 0.63088 |
9f827ccaec697c2953b95793dc0577ac42b9d164 | 306 | py | Python | cmake_tidy/utils/app_configuration/__init__.py | MaciejPatro/cmake-tidy | ddab3d9c6dd1a6c9cfa47bff5a9f120defea9e6a | [
"MIT"
] | 16 | 2020-05-16T17:20:00.000Z | 2022-02-14T12:08:41.000Z | cmake_tidy/utils/app_configuration/__init__.py | MaciejPatro/cmake-tidy | ddab3d9c6dd1a6c9cfa47bff5a9f120defea9e6a | [
"MIT"
] | 19 | 2020-05-18T06:17:42.000Z | 2020-08-11T07:15:11.000Z | cmake_tidy/utils/app_configuration/__init__.py | MaciejPatro/cmake-tidy | ddab3d9c6dd1a6c9cfa47bff5a9f120defea9e6a | [
"MIT"
] | null | null | null | ###############################################################################
# Copyright Maciej Patro (maciej.patro@gmail.com)
# MIT License
###############################################################################
from cmake_tidy.utils.app_configuration.configuration import ConfigurationError
| 38.25 | 79 | 0.398693 |
9f8409e156458ec7719d06965f21cf2369d9c6f6 | 6,331 | py | Python | testing/logging_tests.py | nanome-ai/nanome-plugin-api | f2ce6a5e3123ee7449a90c2659f3891124289f4a | [
"MIT"
] | null | null | null | testing/logging_tests.py | nanome-ai/nanome-plugin-api | f2ce6a5e3123ee7449a90c2659f3891124289f4a | [
"MIT"
] | null | null | null | testing/logging_tests.py | nanome-ai/nanome-plugin-api | f2ce6a5e3123ee7449a90c2659f3891124289f4a | [
"MIT"
] | null | null | null | import logging
import sys
import unittest
from nanome import Plugin, PluginInstance
from nanome.util import Logs
if sys.version_info.major >= 3:
from unittest.mock import MagicMock, patch
else:
# Python 2.7 way of getting magicmock. Requires pip install mock
from mock import MagicMock, patch
... | 42.206667 | 114 | 0.648555 |
9f848cb711d62302aee8c7ee856899de4de8f868 | 2,416 | py | Python | pytest_timeout.py | big91987/pytest-timeout | 54a0a51bfc6e6c3eb99c3d33e27a6d33bf34b20e | [
"MIT"
] | null | null | null | pytest_timeout.py | big91987/pytest-timeout | 54a0a51bfc6e6c3eb99c3d33e27a6d33bf34b20e | [
"MIT"
] | null | null | null | pytest_timeout.py | big91987/pytest-timeout | 54a0a51bfc6e6c3eb99c3d33e27a6d33bf34b20e | [
"MIT"
] | null | null | null | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://www.mozilla.org/en-US/MPL/2.0/.
import warnings
from unittest import TestCase
import pytest
| 28.093023 | 72 | 0.615066 |
9f875156ef7feb3f17f69d0658641a08a2dd7647 | 2,439 | py | Python | examples/test_Confined.py | pompiduskus/pybox2d | 4393bc93df4828267d2143327abd76de6f146750 | [
"Zlib"
] | null | null | null | examples/test_Confined.py | pompiduskus/pybox2d | 4393bc93df4828267d2143327abd76de6f146750 | [
"Zlib"
] | null | null | null | examples/test_Confined.py | pompiduskus/pybox2d | 4393bc93df4828267d2143327abd76de6f146750 | [
"Zlib"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# C++ version Copyright (c) 2006-2007 Erin Catto http://www.box2d.org
# Python version by Ken Lauer / sirkne at gmail dot com
#
# This software is provided 'as-is', without any express or implied
# warranty. In no event will the authors be held liable for any dam... | 38.109375 | 105 | 0.603116 |
9f88301771a145190370ef5763a0c5c2c1e81530 | 26,827 | py | Python | pystella/step.py | zachjweiner/pystella | 2d994d1b9f3d2a39a41bbb821fa37fafec699e0c | [
"MIT"
] | 14 | 2019-10-16T15:08:44.000Z | 2022-02-06T10:26:11.000Z | pystella/step.py | zachjweiner/pystella | 2d994d1b9f3d2a39a41bbb821fa37fafec699e0c | [
"MIT"
] | null | null | null | pystella/step.py | zachjweiner/pystella | 2d994d1b9f3d2a39a41bbb821fa37fafec699e0c | [
"MIT"
] | 2 | 2021-04-13T09:32:55.000Z | 2021-08-15T13:16:05.000Z | __copyright__ = "Copyright (C) 2019 Zachary J Weiner"
__license__ = """
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, c... | 31.413349 | 85 | 0.586871 |
9f8be4596b5e31deb9da06daf1c9c42045dcf57e | 4,121 | py | Python | identity-mapper.py | jamesbak/databox-adls-loader | 1189ba399f63d34d797f51b3a9e655101587d798 | [
"Apache-2.0"
] | 2 | 2020-06-01T14:06:37.000Z | 2021-12-06T17:59:53.000Z | identity-mapper.py | Azure/databox-adls-loader | 24cfb4cb68cd121b0d0907cbabf18bfdaa370ab1 | [
"MIT"
] | null | null | null | identity-mapper.py | Azure/databox-adls-loader | 24cfb4cb68cd121b0d0907cbabf18bfdaa370ab1 | [
"MIT"
] | 3 | 2021-01-08T11:02:29.000Z | 2022-03-22T07:59:05.000Z | #!/usr/bin/env python
import requests
import sys, subprocess, datetime, json, itertools, os.path, threading, argparse, logging
from adls_copy_utils import AdlsCopyUtils
log = logging.getLogger(__name__)
if __name__ == '__main__':
parser = AdlsCopyUtils.createCommandArgsParser("Remaps identities on HDFS sourced d... | 58.871429 | 283 | 0.676777 |
9f914c2903091304cb9fd3f8a798da2d8ded6800 | 10,822 | py | Python | code2.0/models.py | Mulns/Whale-Identification | 26db3b0ce3f2f4a9539965e2632acb6fe07156e8 | [
"MIT"
] | 2 | 2019-01-14T14:59:06.000Z | 2019-01-17T02:15:29.000Z | code2.0/models.py | Mulns/Whale-Identification | 26db3b0ce3f2f4a9539965e2632acb6fe07156e8 | [
"MIT"
] | null | null | null | code2.0/models.py | Mulns/Whale-Identification | 26db3b0ce3f2f4a9539965e2632acb6fe07156e8 | [
"MIT"
] | 2 | 2019-01-13T12:30:15.000Z | 2019-01-13T14:42:40.000Z | from tensorflow import keras
from util import ArcfaceLoss, inference_loss, identity_loss
import numpy as np
import os
import wn
weight_decay = 5e-4
H, W, C = (150, 300, 3)
nb_classes = 5004
lambda_c = 0.2
lr = 6e-4
feature_size = 512
final_active = 'sigmoid' # for siamese net
# labels: not one-hot
if __name__ ... | 36.315436 | 96 | 0.570597 |
9f9188caeea1a7ed3cadeea7fb8917d2d8703de3 | 102 | py | Python | esercizi/stringaWhile.py | gdv/python-alfabetizzazione | d87561222de8a230db11d8529c49cf1702aec326 | [
"MIT"
] | null | null | null | esercizi/stringaWhile.py | gdv/python-alfabetizzazione | d87561222de8a230db11d8529c49cf1702aec326 | [
"MIT"
] | null | null | null | esercizi/stringaWhile.py | gdv/python-alfabetizzazione | d87561222de8a230db11d8529c49cf1702aec326 | [
"MIT"
] | 1 | 2019-03-26T11:14:33.000Z | 2019-03-26T11:14:33.000Z | stringa = 'corso di Informatica'
i = 0
while (i < len(stringa)):
print stringa[i]
i = i + 1
| 12.75 | 32 | 0.578431 |
9f91c475aa5095f37f59eced571f625fdafc3e96 | 1,383 | py | Python | usbmon/capture/tests/test_usbpcap.py | Flameeyes/usbmon-tools | f373e12da338135b14bcd4bec2e04ec60b27014b | [
"Unlicense",
"Apache-2.0",
"MIT"
] | 17 | 2019-02-12T00:24:55.000Z | 2022-01-18T18:07:06.000Z | usbmon/capture/tests/test_usbpcap.py | Flameeyes/usbmon-tools | f373e12da338135b14bcd4bec2e04ec60b27014b | [
"Unlicense",
"Apache-2.0",
"MIT"
] | 3 | 2019-02-12T16:52:04.000Z | 2021-05-14T17:41:17.000Z | usbmon/capture/tests/test_usbpcap.py | Flameeyes/usbmon-tools | f373e12da338135b14bcd4bec2e04ec60b27014b | [
"Unlicense",
"Apache-2.0",
"MIT"
] | 1 | 2020-04-10T09:56:04.000Z | 2020-04-10T09:56:04.000Z | # python
#
# Copyright 2020 The usbmon-tools Authors
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 30.733333 | 75 | 0.695589 |
9f92fb8ab712b3379f7765bfad5d1727d68d45f0 | 4,055 | py | Python | 10 - SQLAlchemy/app.py | cce24/Homework | 75e2d4a61712d2fba1fdfe75ab4d273a4d24d98b | [
"MIT"
] | null | null | null | 10 - SQLAlchemy/app.py | cce24/Homework | 75e2d4a61712d2fba1fdfe75ab4d273a4d24d98b | [
"MIT"
] | null | null | null | 10 - SQLAlchemy/app.py | cce24/Homework | 75e2d4a61712d2fba1fdfe75ab4d273a4d24d98b | [
"MIT"
] | null | null | null | #Import Dependencies
import numpy as np
import pandas as pd
import datetime as dt
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
from flask import Flask, jsonify
#Set Engine
engine = create_engine("sqlite:///Resources/hawa... | 29.59854 | 127 | 0.659186 |
9f93b5cf954b2bbc0f4e0034fb5c50850b8a9553 | 1,539 | py | Python | DLmodules/usermessage.py | egg0001/telegram-e-hentaiDL-bot | 83200df4c9d35abaf308fc27b2f83d6452f86555 | [
"WTFPL"
] | 7 | 2019-04-07T06:42:09.000Z | 2021-01-11T15:58:28.000Z | DLmodules/usermessage.py | egg0001/telegram-e-hentaiDL-bot | 83200df4c9d35abaf308fc27b2f83d6452f86555 | [
"WTFPL"
] | 1 | 2020-02-24T09:16:54.000Z | 2020-03-07T20:37:15.000Z | DLmodules/usermessage.py | egg0001/telegram-e-hentaiDL-bot | 83200df4c9d35abaf308fc27b2f83d6452f86555 | [
"WTFPL"
] | 2 | 2020-02-03T14:16:55.000Z | 2020-07-09T04:49:01.000Z | #!/usr/bin/python3
#-----------------bot session-------------------
UserCancel = 'You have cancel the process.'
welcomeMessage = ('User identity conformed, please input gallery urls ' +
'and use space to separate them'
)
denyMessage = 'You are not the admin of this bot, conversatio... | 34.2 | 84 | 0.59974 |
9f948b4087a6e7652b5aab9c2862aa71cb819a4e | 1,923 | py | Python | ver1/cnn_crawler.py | euihyeonmoon/RiskManagement | 2555a966ca9472314bee1e0085f5d5bebd4445b2 | [
"MIT"
] | null | null | null | ver1/cnn_crawler.py | euihyeonmoon/RiskManagement | 2555a966ca9472314bee1e0085f5d5bebd4445b2 | [
"MIT"
] | null | null | null | ver1/cnn_crawler.py | euihyeonmoon/RiskManagement | 2555a966ca9472314bee1e0085f5d5bebd4445b2 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
import pandas as pd
url_list = []
title_list = []
summary_list = []
date_list = []
# source_list = []
url = 'https://edition.cnn.com/search?size=30&q=terror&sort=newest'
# keyword_list = ['terror']
# for keyword ... | 29.136364 | 129 | 0.680187 |
9f94cec9c4b9cf4433cbe35153ebec1175aa197a | 1,964 | py | Python | tests/ec2/test_ec2_clients.py | paulhutchings/beartype-boto3-example | d69298d9444d578799e2a17cb63de11474b2278a | [
"MIT"
] | 3 | 2021-11-16T06:21:11.000Z | 2021-11-22T08:59:11.000Z | tests/ec2/test_ec2_clients.py | paulhutchings/beartype-boto3-example | d69298d9444d578799e2a17cb63de11474b2278a | [
"MIT"
] | 9 | 2021-11-19T03:29:00.000Z | 2021-12-30T23:54:47.000Z | tests/ec2/test_ec2_clients.py | paulhutchings/beartype-boto3-example | d69298d9444d578799e2a17cb63de11474b2278a | [
"MIT"
] | null | null | null | import pytest
from bearboto3.ec2 import (
EC2Client,
EC2ServiceResource,
)
from beartype import beartype
from beartype.roar import (
BeartypeCallHintPepParamException,
BeartypeCallHintPepReturnException,
BeartypeDecorHintPep484585Exception,
)
# ============================
# EC2Client
# ==========... | 20.040816 | 81 | 0.658859 |
9f952aae828334e0efd2771e093d18d52c4ad4a7 | 230 | py | Python | solutions/130_solution_05.py | UFResearchComputing/py4ai | db7f80614f26274ec18556d56ea9f549c463165a | [
"CC-BY-4.0"
] | null | null | null | solutions/130_solution_05.py | UFResearchComputing/py4ai | db7f80614f26274ec18556d56ea9f549c463165a | [
"CC-BY-4.0"
] | null | null | null | solutions/130_solution_05.py | UFResearchComputing/py4ai | db7f80614f26274ec18556d56ea9f549c463165a | [
"CC-BY-4.0"
] | 1 | 2021-04-27T09:50:54.000Z | 2021-04-27T09:50:54.000Z |
# If an empty list is passed to this function, it returns `None`:
my_list = []
print(first_negative(my_list)
| 23 | 66 | 0.552174 |
9f95821914a38c9e5fa3635e4ff975b40a81a782 | 680 | py | Python | .config/qtile/modules/core/screens.py | jx11r/dotfiles | fcc925dd184892198deae60e4113c215fccfa7a9 | [
"MIT"
] | 7 | 2021-09-11T00:27:23.000Z | 2022-01-26T12:50:31.000Z | .config/qtile/modules/core/screens.py | jx11r/dotfiles | fcc925dd184892198deae60e4113c215fccfa7a9 | [
"MIT"
] | null | null | null | .config/qtile/modules/core/screens.py | jx11r/dotfiles | fcc925dd184892198deae60e4113c215fccfa7a9 | [
"MIT"
] | 2 | 2022-01-09T16:51:41.000Z | 2022-01-26T21:35:05.000Z | # --==[ Screens ]==--
from libqtile import bar
from libqtile.config import Screen
from ..utils.settings import wallpaper
from ..extras.widgets import widgets
screens = [
Screen(
wallpaper = wallpaper,
wallpaper_mode = 'fill',
top = bar.Bar(
# Source in widgets.py
w... | 18.378378 | 38 | 0.489706 |
9f9586cf1080091750ae0d67e05db74d5efd5f68 | 1,942 | py | Python | MovieSerieTorrent/renamer.py | JonathanPetit/Parser-Renamer-torrentfile | 3193b0544348e17c527f921e34283eb7ea66b01b | [
"MIT"
] | 7 | 2016-04-21T21:16:29.000Z | 2021-11-20T13:16:21.000Z | MovieSerieTorrent/renamer.py | JonathanPetit/Parser-Renamer-torrentfile | 3193b0544348e17c527f921e34283eb7ea66b01b | [
"MIT"
] | 5 | 2016-03-03T23:41:08.000Z | 2016-03-05T13:11:34.000Z | MovieSerieTorrent/renamer.py | JonathanPetit/Parser-Renamer-torrentfile | 3193b0544348e17c527f921e34283eb7ea66b01b | [
"MIT"
] | 3 | 2019-04-03T19:00:42.000Z | 2021-06-08T17:03:06.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Usage:
>>> from renamer import Renamer
>>> Renamer().rename(file)
"""
import os
from fuzzywuzzy import fuzz
try:
from parser import Parser
except:
from .parser import Parser
| 28.558824 | 112 | 0.564882 |
9f9602b2224dec858d62feca228f9bec5c6a8d6a | 2,320 | py | Python | tensorflow_transform/beam/tft_beam_io/beam_metadata_io_test.py | sswapnil2/transform | 54561ddb357ef752153dd569aad7cc2651b38ac2 | [
"Apache-2.0"
] | null | null | null | tensorflow_transform/beam/tft_beam_io/beam_metadata_io_test.py | sswapnil2/transform | 54561ddb357ef752153dd569aad7cc2651b38ac2 | [
"Apache-2.0"
] | null | null | null | tensorflow_transform/beam/tft_beam_io/beam_metadata_io_test.py | sswapnil2/transform | 54561ddb357ef752153dd569aad7cc2651b38ac2 | [
"Apache-2.0"
] | 1 | 2020-04-07T23:48:26.000Z | 2020-04-07T23:48:26.000Z | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 36.825397 | 77 | 0.771983 |
9f97eda032d59779e4adc2cc5c75750de6d24a2c | 723 | py | Python | intermol/forces/torsion_torsion_CMAP.py | jpthompson17/InterMol | 9289ea770bc2d069482bf5fa74dceea4c14d0e4b | [
"MIT"
] | null | null | null | intermol/forces/torsion_torsion_CMAP.py | jpthompson17/InterMol | 9289ea770bc2d069482bf5fa74dceea4c14d0e4b | [
"MIT"
] | null | null | null | intermol/forces/torsion_torsion_CMAP.py | jpthompson17/InterMol | 9289ea770bc2d069482bf5fa74dceea4c14d0e4b | [
"MIT"
] | null | null | null | from intermol.decorators import *
| 30.125 | 134 | 0.605809 |
9f986ec10f3e78183b662ab2929af55d8a60b9a2 | 3,671 | py | Python | opentech/apply/review/tests/test_models.py | JakabGy/hypha | 32634080ba1cb369f07f27f6616041e4eca8dbf2 | [
"BSD-3-Clause"
] | null | null | null | opentech/apply/review/tests/test_models.py | JakabGy/hypha | 32634080ba1cb369f07f27f6616041e4eca8dbf2 | [
"BSD-3-Clause"
] | null | null | null | opentech/apply/review/tests/test_models.py | JakabGy/hypha | 32634080ba1cb369f07f27f6616041e4eca8dbf2 | [
"BSD-3-Clause"
] | null | null | null | from django.test import TestCase
from opentech.apply.funds.tests.factories import ApplicationSubmissionFactory
from .factories import ReviewFactory, ReviewOpinionFactory
from ..options import MAYBE, NO, YES
| 45.8875 | 78 | 0.752928 |
9f99023ca596a6f107186bc87fd64e3695056346 | 3,677 | py | Python | FPLbot/starting_eleven.py | amosbastian/FantasyPL_bot | e07a501c4f3168f3fe07cf270fc5d938b18a8789 | [
"MIT"
] | 54 | 2019-03-02T16:48:53.000Z | 2022-03-23T10:24:11.000Z | FPLbot/starting_eleven.py | amosbastian/FantasyPL_bot | e07a501c4f3168f3fe07cf270fc5d938b18a8789 | [
"MIT"
] | 7 | 2019-02-12T23:26:40.000Z | 2021-11-19T09:39:52.000Z | FPLbot/starting_eleven.py | amosbastian/FantasyPL_bot | e07a501c4f3168f3fe07cf270fc5d938b18a8789 | [
"MIT"
] | 13 | 2019-02-11T15:58:54.000Z | 2021-10-09T07:42:23.000Z | import asyncio
import json
import os
from datetime import datetime, timedelta
import aiohttp
import tweepy
from dateutil.parser import parse
from fpl import FPL, utils
from pymongo import MongoClient
from constants import lineup_markers, twitter_usernames
dirname = os.path.dirname(os.path.realpath(__file__))
client =... | 30.139344 | 74 | 0.598858 |
9f993c36fec75e6aca1229cd209317b6f68a3df3 | 4,519 | py | Python | inputoutput/getters.py | den1den/web-inf-ret-ml | 3530a60905769f504207702d91d540d4ac610fb3 | [
"MIT"
] | null | null | null | inputoutput/getters.py | den1den/web-inf-ret-ml | 3530a60905769f504207702d91d540d4ac610fb3 | [
"MIT"
] | null | null | null | inputoutput/getters.py | den1den/web-inf-ret-ml | 3530a60905769f504207702d91d540d4ac610fb3 | [
"MIT"
] | null | null | null | import os
from datetime import date, timedelta
from config import config
from inputoutput.readers import CSVInputReader, InputReader, Input2000Reader
from models.article import Article
from models.tuser import TUser
from models.tweet import Tweet
TWEETS_DIR = os.path.join(config.PCLOUD_DIR, 'tweets')
TWEET_USERS_DIR ... | 35.865079 | 127 | 0.714317 |
9f9a26e3d51680625b1f6c1a4e6e1570c2817e7d | 6,905 | py | Python | src/Config.py | jthomas03/gpSTS | 1f9e5b90cc7e502248c5d3a28552bc4693e21279 | [
"MIT"
] | null | null | null | src/Config.py | jthomas03/gpSTS | 1f9e5b90cc7e502248c5d3a28552bc4693e21279 | [
"MIT"
] | null | null | null | src/Config.py | jthomas03/gpSTS | 1f9e5b90cc7e502248c5d3a28552bc4693e21279 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# John C. Thomas 2021 gpSTS
###########################################
###Configuration File######################
###for gpSTS steering of experiments######
###########################################
import os
import numpy as np
from gpsts.NanonisInterface.nanonis_interface import Nanonis
... | 38.149171 | 109 | 0.629978 |
9f9abf9bd659e3c5cd886d27c3067e12da0ea781 | 490 | py | Python | src/basic/check_type.py | xxzhwx/hello-python | 83bb01c146049d3c7f7fa9ed007abee054d004ef | [
"MIT"
] | null | null | null | src/basic/check_type.py | xxzhwx/hello-python | 83bb01c146049d3c7f7fa9ed007abee054d004ef | [
"MIT"
] | null | null | null | src/basic/check_type.py | xxzhwx/hello-python | 83bb01c146049d3c7f7fa9ed007abee054d004ef | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
@author: xxzhwx
'''
from types import IntType
# Usage
print(is_int_type(1))
print(is_int_type(1.0))
print(is_int_type(''))
print(is_int_typeX(1))
print(is_int_typeX(1.0))
print(is_int_typeX('')) | 15.3125 | 28 | 0.606122 |
9f9cd1ac2346cdc01917506089aa45b428ec2b93 | 3,883 | py | Python | hwtLib/handshaked/ramAsHs_test.py | optical-o/hwtLib | edad621f5ad4cdbea20a5751ff4468979afe2f77 | [
"MIT"
] | null | null | null | hwtLib/handshaked/ramAsHs_test.py | optical-o/hwtLib | edad621f5ad4cdbea20a5751ff4468979afe2f77 | [
"MIT"
] | null | null | null | hwtLib/handshaked/ramAsHs_test.py | optical-o/hwtLib | edad621f5ad4cdbea20a5751ff4468979afe2f77 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from hwt.hdl.constants import NOP, READ, WRITE
from hwt.interfaces.utils import addClkRstn, propagateClkRstn
from hwt.simulator.simTestCase import SingleUnitSimTestCase
from hwtLib.common_nonstd_interfaces.addr_data_hs import AddrDataHs
from hwtLib.handshaked.ramAsHs impo... | 28.343066 | 90 | 0.5658 |
9f9d44c4798bcd931e4faeef1271674a40360f6f | 1,195 | py | Python | src/zenml/integrations/vertex/constants.py | dumpmemory/zenml | ec3f6994ae9666493519d600471c035eb9109ac4 | [
"Apache-2.0"
] | null | null | null | src/zenml/integrations/vertex/constants.py | dumpmemory/zenml | ec3f6994ae9666493519d600471c035eb9109ac4 | [
"Apache-2.0"
] | null | null | null | src/zenml/integrations/vertex/constants.py | dumpmemory/zenml | ec3f6994ae9666493519d600471c035eb9109ac4 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) ZenML GmbH 2022. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 36.212121 | 70 | 0.796653 |
9f9f37cbe8abc431337c426fe206756a84c0965f | 2,226 | py | Python | backend/src/controllers/base_controller.py | tmdt-buw/gideon-ts | b839672fcc19f13562f6da23e6407fff0b18d3ec | [
"MIT"
] | null | null | null | backend/src/controllers/base_controller.py | tmdt-buw/gideon-ts | b839672fcc19f13562f6da23e6407fff0b18d3ec | [
"MIT"
] | null | null | null | backend/src/controllers/base_controller.py | tmdt-buw/gideon-ts | b839672fcc19f13562f6da23e6407fff0b18d3ec | [
"MIT"
] | null | null | null | from typing import Generic, List, Optional, Type, TypeVar, Union, Dict, Any
from uuid import UUID
from fastapi import HTTPException
from fastapi.encoders import jsonable_encoder
from pydantic import BaseModel
from sqlalchemy.orm import Session
from src.db.sqlalchemy.database import Base
ModelType = TypeVar("ModelTyp... | 35.333333 | 122 | 0.656783 |
9f9fb5269f268dd9c05b46524e7bd7c7ed4f68af | 2,982 | py | Python | models/squeezenet.py | LEE-SEON-WOO/network-slimming | c1de69d670f82e4eb00e7fd1583c849fbb0e222f | [
"MIT"
] | null | null | null | models/squeezenet.py | LEE-SEON-WOO/network-slimming | c1de69d670f82e4eb00e7fd1583c849fbb0e222f | [
"MIT"
] | null | null | null | models/squeezenet.py | LEE-SEON-WOO/network-slimming | c1de69d670f82e4eb00e7fd1583c849fbb0e222f | [
"MIT"
] | null | null | null | """squeezenet in pytorch
[1] Song Han, Jeff Pool, John Tran, William J. Dally
squeezenet: Learning both Weights and Connections for Efficient Neural Networks
https://arxiv.org/abs/1506.02626
"""
import torch
import torch.nn as nn
from .channel_selection import channel_selection
def squeezenet(dataset='cif... | 26.864865 | 83 | 0.54896 |
9fa0c5b4929e45001fc240b68a55e0ebf452f161 | 749 | py | Python | mrjob/yelp_ratings_per_business.py | davelester/Yelp-Rating-and-Review-Trends | 652adc91f800270db29441a2420eecf9999d4a13 | [
"MIT"
] | 1 | 2021-04-21T12:07:58.000Z | 2021-04-21T12:07:58.000Z | mrjob/yelp_ratings_per_business.py | davelester/Yelp-Rating-and-Review-Trends | 652adc91f800270db29441a2420eecf9999d4a13 | [
"MIT"
] | null | null | null | mrjob/yelp_ratings_per_business.py | davelester/Yelp-Rating-and-Review-Trends | 652adc91f800270db29441a2420eecf9999d4a13 | [
"MIT"
] | 4 | 2015-01-30T12:04:06.000Z | 2016-09-29T02:25:55.000Z | """
Output a list of star ratings for each business ID
"""
from mrjob.job import MRJob
from mrjob.protocol import JSONValueProtocol
from itertools import izip
if __name__ == '__main__':
MRRatingsPerBusinesses.run() | 22.029412 | 50 | 0.711615 |
9fa210e32e4bc5f34c60bcf1b43a2bfbc28d9212 | 9,937 | py | Python | web/datasets/tasks.py | andressadotpy/maria-quiteria | eb0dae395d2eb12b354aedb50810419d3b512875 | [
"MIT"
] | 151 | 2019-11-10T02:18:25.000Z | 2022-01-18T14:28:25.000Z | web/datasets/tasks.py | andressadotpy/maria-quiteria | eb0dae395d2eb12b354aedb50810419d3b512875 | [
"MIT"
] | 202 | 2019-11-09T16:27:19.000Z | 2022-03-22T12:41:27.000Z | web/datasets/tasks.py | andressadotpy/maria-quiteria | eb0dae395d2eb12b354aedb50810419d3b512875 | [
"MIT"
] | 69 | 2020-02-05T01:33:35.000Z | 2022-03-30T10:39:27.000Z | from datetime import datetime
from logging import info
from pathlib import Path
from typing import List
import requests
from celery import shared_task
from django.conf import settings
from django.contrib.admin.options import get_content_type_for_model
from requests import HTTPError
from tika import parser
from web.dat... | 32.903974 | 88 | 0.717118 |
9fa2b6471bd6d79dfad1b744ce99d19125228b13 | 32 | py | Python | stubbs/defs/ustr.py | holy-crust/reclaimer | 0aa693da3866ce7999c68d5f71f31a9c932cdb2c | [
"MIT"
] | null | null | null | stubbs/defs/ustr.py | holy-crust/reclaimer | 0aa693da3866ce7999c68d5f71f31a9c932cdb2c | [
"MIT"
] | null | null | null | stubbs/defs/ustr.py | holy-crust/reclaimer | 0aa693da3866ce7999c68d5f71f31a9c932cdb2c | [
"MIT"
] | null | null | null | from ...hek.defs.ustr import *
| 16 | 31 | 0.65625 |
9fa2e9ad7d1fd21c4c1944a6f5f15060207c18a9 | 674 | py | Python | src/json_helper/json_to_pandas.py | AidanFarhi/PythonFundamentals.Labs.PipModule | f3461576b34c5a830577d36057e17538f3b3e328 | [
"RSA-MD"
] | null | null | null | src/json_helper/json_to_pandas.py | AidanFarhi/PythonFundamentals.Labs.PipModule | f3461576b34c5a830577d36057e17538f3b3e328 | [
"RSA-MD"
] | null | null | null | src/json_helper/json_to_pandas.py | AidanFarhi/PythonFundamentals.Labs.PipModule | f3461576b34c5a830577d36057e17538f3b3e328 | [
"RSA-MD"
] | null | null | null | import json
import pandas as pd
import os
| 30.636364 | 105 | 0.664688 |
9fa41e66ab11d94e02e55a4155db8605b9a147d4 | 2,685 | py | Python | shrike/pipeline/telemetry_utils.py | Anbang-Hu/shrike | 78189984c85696a9a9feaadb72aa471cf2409796 | [
"MIT"
] | 27 | 2021-05-27T00:01:24.000Z | 2022-01-30T19:55:24.000Z | shrike/pipeline/telemetry_utils.py | Anbang-Hu/shrike | 78189984c85696a9a9feaadb72aa471cf2409796 | [
"MIT"
] | 284 | 2021-05-12T22:26:41.000Z | 2022-02-23T21:18:34.000Z | shrike/pipeline/telemetry_utils.py | Anbang-Hu/shrike | 78189984c85696a9a9feaadb72aa471cf2409796 | [
"MIT"
] | 5 | 2021-06-02T04:51:47.000Z | 2021-12-20T17:07:41.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import logging
from opencensus.ext.azure.log_exporter import AzureLogHandler
log = logging.getLogger(__name__)
| 41.953125 | 98 | 0.639851 |
9fa5fa2df40b29c75a161e9790ab053c973c7300 | 3,569 | py | Python | langsense/core.py | sneub/langsense | 7e194582f19bbd2b7c93f8a1ef5d96d4d9f5ae73 | [
"Apache-2.0"
] | null | null | null | langsense/core.py | sneub/langsense | 7e194582f19bbd2b7c93f8a1ef5d96d4d9f5ae73 | [
"Apache-2.0"
] | null | null | null | langsense/core.py | sneub/langsense | 7e194582f19bbd2b7c93f8a1ef5d96d4d9f5ae73 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from . import ruleset
import re
import operator
| 27.666667 | 143 | 0.609695 |
9fa75ad8fd9d506ae24046c05570702c53d633a2 | 11,695 | py | Python | preprocess.py | sdc17/NaivePinYin | 30301de4289d022160e121338c1b9e337f6ed5af | [
"MIT"
] | null | null | null | preprocess.py | sdc17/NaivePinYin | 30301de4289d022160e121338c1b9e337f6ed5af | [
"MIT"
] | null | null | null | preprocess.py | sdc17/NaivePinYin | 30301de4289d022160e121338c1b9e337f6ed5af | [
"MIT"
] | null | null | null | #-*- coding : utf-8-*-
import os
import json
import yaml
import glob
import jieba
import pickle
import datetime
import argparse
from collections import Counter
from concurrent.futures import ProcessPoolExecutor, Executor, as_completed
if __name__ == '__main__':
parser = argparse.Argumen... | 33.319088 | 119 | 0.524583 |
9fa815038e88bc8c7182ffc9b58dd48bcbb7159c | 329 | py | Python | src/testMultiRootWkspc/workspace5/remoteDebugger-start.py | ChaseKnowlden/vscode-jupyter | 9bdaf87f0b6dcd717c508e9023350499a6093f97 | [
"MIT"
] | 2,461 | 2016-01-21T16:40:43.000Z | 2022-03-31T12:01:55.000Z | src/testMultiRootWkspc/workspace5/remoteDebugger-start.py | ChaseKnowlden/vscode-jupyter | 9bdaf87f0b6dcd717c508e9023350499a6093f97 | [
"MIT"
] | 12,536 | 2019-05-06T21:26:14.000Z | 2022-03-31T23:06:48.000Z | src/testMultiRootWkspc/workspace5/remoteDebugger-start.py | vasili8m/vscode-python | 846eee870e8b7bab38172600836faedb5fb80166 | [
"MIT"
] | 871 | 2019-05-15T13:43:55.000Z | 2022-03-31T03:04:35.000Z | import sys
import time
main()
| 18.277778 | 54 | 0.613982 |
9fa8a760a99df59cb027859fabf342dae3bf5734 | 2,985 | py | Python | rbb_tools/src/rbb_tools/simenvs/test.py | SK4P3/rbb_core | 618617270314af5335de30179072244e1f440c4c | [
"MIT"
] | 55 | 2019-05-09T06:43:05.000Z | 2021-12-08T05:56:43.000Z | rbb_tools/src/rbb_tools/simenvs/test.py | SK4P3/rbb_core | 618617270314af5335de30179072244e1f440c4c | [
"MIT"
] | 5 | 2019-09-08T15:33:28.000Z | 2021-04-17T17:30:53.000Z | rbb_tools/src/rbb_tools/simenvs/test.py | SK4P3/rbb_core | 618617270314af5335de30179072244e1f440c4c | [
"MIT"
] | 16 | 2019-08-08T07:15:35.000Z | 2021-12-07T15:34:41.000Z | # AMZ-Driverless
# Copyright (c) 2019 Authors:
# - Huub Hendrikx <hhendrik@ethz.ch>
#
# 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 ... | 34.709302 | 100 | 0.61206 |