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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fa81f8a7916eae6aa8efd3ffef3174775ad07146 | 3,984 | py | Python | dataloader/Dataset.py | mvemoon/TextClassificationBenchmark | e564f653cd9117a765bbe0b2da42d34b31546ae4 | [
"MIT"
] | 576 | 2017-12-13T12:44:20.000Z | 2022-03-03T13:28:58.000Z | dataloader/Dataset.py | motefly/TextClassificationBenchmark | 77cbf922e3abe1241961c2759170a4657a3a4672 | [
"MIT"
] | 21 | 2017-12-17T07:46:25.000Z | 2020-08-20T16:55:01.000Z | dataloader/Dataset.py | motefly/TextClassificationBenchmark | 77cbf922e3abe1241961c2759170a4657a3a4672 | [
"MIT"
] | 149 | 2017-12-13T15:00:37.000Z | 2022-03-23T18:29:44.000Z | # -*- coding: utf-8 -*-
import os,urllib
| 37.233645 | 159 | 0.541667 |
fa81fc214c9e7372cdac762542256af383055ca7 | 1,232 | py | Python | scrapy/arxiv1.py | SaeedPourjafar/ws_2021 | 6e91e70fc8f40007eb3c4d68282aa86b80b79363 | [
"MIT"
] | null | null | null | scrapy/arxiv1.py | SaeedPourjafar/ws_2021 | 6e91e70fc8f40007eb3c4d68282aa86b80b79363 | [
"MIT"
] | null | null | null | scrapy/arxiv1.py | SaeedPourjafar/ws_2021 | 6e91e70fc8f40007eb3c4d68282aa86b80b79363 | [
"MIT"
] | null | null | null | # Please note that since the number of topics in computer science are exactly 40 and it's less than 100
# therefore we applied the limit on the second file (arxiv2.py) which has somewhere around 700-800 outputs
# To run this file please put it in the spiders folder and run the code below in terminal/cmd:
# scrapy ... | 39.741935 | 139 | 0.650162 |
fa827fe0d4e36def59dcda41a7b889abf5ecab35 | 392 | py | Python | pdm/pep517/_vendor/toml/ordered.py | linw1995/pdm-pep517 | 6b8030225ec374acf04ee70c685e55a495f24482 | [
"MIT"
] | 4 | 2021-04-14T16:18:08.000Z | 2022-01-13T13:03:47.000Z | pdm/pep517/_vendor/toml/ordered.py | linw1995/pdm-pep517 | 6b8030225ec374acf04ee70c685e55a495f24482 | [
"MIT"
] | 29 | 2021-03-23T15:40:56.000Z | 2022-03-10T11:55:38.000Z | pdm/pep517/_vendor/toml/ordered.py | frostming/pdm-pep517 | 99b6aab5f3cb2dac657f3a750d8eb4ad001dd095 | [
"MIT"
] | 6 | 2021-03-21T17:42:25.000Z | 2022-01-25T21:28:35.000Z | from collections import OrderedDict
from pdm.pep517._vendor.toml import TomlEncoder
from pdm.pep517._vendor.toml import TomlDecoder
| 24.5 | 63 | 0.77551 |
fa869925b1b7d58317ee5c78a24422f831fc4fc4 | 673 | py | Python | easyHTTP/client/api.py | hxgz/easyHTTP | 21d28119cd3ad7ca8275197468adc5cae634ba6f | [
"Apache-2.0"
] | null | null | null | easyHTTP/client/api.py | hxgz/easyHTTP | 21d28119cd3ad7ca8275197468adc5cae634ba6f | [
"Apache-2.0"
] | null | null | null | easyHTTP/client/api.py | hxgz/easyHTTP | 21d28119cd3ad7ca8275197468adc5cae634ba6f | [
"Apache-2.0"
] | null | null | null | # coding:utf-8
from urllib.parse import urlencode, urljoin
from .client import Client
| 24.035714 | 79 | 0.603269 |
fa86af3e536c67102ea203913013e7cc1a7477ca | 96 | py | Python | ingredient_parser/__init__.py | johnwmillr/RecipesAPI | 3c7422b838fef4f25c59b5c410e2a82e64ba2dc4 | [
"MIT"
] | null | null | null | ingredient_parser/__init__.py | johnwmillr/RecipesAPI | 3c7422b838fef4f25c59b5c410e2a82e64ba2dc4 | [
"MIT"
] | null | null | null | ingredient_parser/__init__.py | johnwmillr/RecipesAPI | 3c7422b838fef4f25c59b5c410e2a82e64ba2dc4 | [
"MIT"
] | null | null | null | __author__ = 'sheraz'
__all__ = ['parse','normalize']
from ingredient_parser.en import parse
| 13.714286 | 38 | 0.739583 |
fa87373ae132aaf932898395d86017b53654b8c3 | 11,847 | py | Python | RL_practise/MCTS/AlphaZero/board.py | xiaoyangzai/DeepReinforcementLearning | 3da248074ab9542a5eb1c3ae60eb7b7ee7777b87 | [
"MIT"
] | null | null | null | RL_practise/MCTS/AlphaZero/board.py | xiaoyangzai/DeepReinforcementLearning | 3da248074ab9542a5eb1c3ae60eb7b7ee7777b87 | [
"MIT"
] | null | null | null | RL_practise/MCTS/AlphaZero/board.py | xiaoyangzai/DeepReinforcementLearning | 3da248074ab9542a5eb1c3ae60eb7b7ee7777b87 | [
"MIT"
] | 1 | 2021-04-08T10:36:13.000Z | 2021-04-08T10:36:13.000Z | #!/usr/bin/python
from __future__ import print_function
import numpy as np
import os
from human_player import human_player
import time
def main():
g = game(width = 10,height = 10, n_in_row = 3)
player1 = human_player(1)
player2 = human_player(2)
g.start_play(player1,player2,is_shown = True)
print... | 35.154303 | 125 | 0.545539 |
fa882f998e435f00fac9b0a2e9ec7aa2f7f84450 | 3,393 | py | Python | tests/validation_tool/test_validation_helper.py | zhuyulin27/amazon-emr-on-eks-custom-image-cli | fa6636345e6e720245eb24bd0ffa0de68cc8e09a | [
"Apache-2.0"
] | 17 | 2021-08-20T22:17:08.000Z | 2022-03-03T18:35:53.000Z | tests/validation_tool/test_validation_helper.py | zhuyulin27/amazon-emr-on-eks-custom-image-cli | fa6636345e6e720245eb24bd0ffa0de68cc8e09a | [
"Apache-2.0"
] | 2 | 2022-01-05T10:11:29.000Z | 2022-03-03T18:38:19.000Z | tests/validation_tool/test_validation_helper.py | zhuyulin27/amazon-emr-on-eks-custom-image-cli | fa6636345e6e720245eb24bd0ffa0de68cc8e09a | [
"Apache-2.0"
] | 1 | 2021-09-24T18:06:56.000Z | 2021-09-24T18:06:56.000Z | import unittest
import io
from unittest import mock
from tests.lib.utils import INSPECT
from custom_image_cli.validation_tool import validation_helper
from custom_image_cli.validation_tool.validation_models.validation_models import \
ImageDetail, ImageManifest, EmrRelease
| 54.725806 | 136 | 0.742411 |
fa8a6ced2cffa99e7edddbdbdbc6c8e1f0f2ffa5 | 2,216 | py | Python | other/stanford_ner_tagger.py | gauthamkrishna-g/Real-Time-Sentiment-Analyzer-of-Twitter-Trends | 478ea270f67aa75c964d69d29d9bac59978fd7c5 | [
"MIT"
] | 6 | 2017-08-25T10:08:02.000Z | 2021-02-02T16:15:16.000Z | other/stanford_ner_tagger.py | gauthkris/Real-Time-Sentiment-Analyzer-of-Twitter-Trends | 478ea270f67aa75c964d69d29d9bac59978fd7c5 | [
"MIT"
] | null | null | null | other/stanford_ner_tagger.py | gauthkris/Real-Time-Sentiment-Analyzer-of-Twitter-Trends | 478ea270f67aa75c964d69d29d9bac59978fd7c5 | [
"MIT"
] | 2 | 2019-07-12T08:07:32.000Z | 2020-05-22T17:21:13.000Z | # -*- coding: utf-8 -*-
import nltk
import os
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import style
#from nltk import pos_tag
from nltk.tag import StanfordNERTagger
from nltk.tokenize import word_tokenize
style.use('fivethirtyeight')
# Process text
raw_text = open("news_article.txt").read... | 29.157895 | 112 | 0.676895 |
fa8ea4a787dbe3d2892d7a449c5a14c4d96bc740 | 105 | py | Python | mak/libs/pyxx/cxx/grammar/expression/primary/requires/__init__.py | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | 4 | 2015-05-13T16:28:36.000Z | 2017-05-24T15:34:14.000Z | mak/libs/pyxx/cxx/grammar/expression/primary/requires/__init__.py | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | null | null | null | mak/libs/pyxx/cxx/grammar/expression/primary/requires/__init__.py | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | 1 | 2017-03-21T08:28:07.000Z | 2017-03-21T08:28:07.000Z | from . import general
from . import simple
from . import type
from . import compound
from . import nested | 21 | 22 | 0.771429 |
fa9415fee11e95855395e081541950bda39d51e1 | 539 | py | Python | 02_Beyond_Fundamentals/02_01.py | AnmolTomer/lynda_programming_foundations | 2f1269f2984ae8707acd80017b892ff4cceb0ee9 | [
"MIT"
] | null | null | null | 02_Beyond_Fundamentals/02_01.py | AnmolTomer/lynda_programming_foundations | 2f1269f2984ae8707acd80017b892ff4cceb0ee9 | [
"MIT"
] | null | null | null | 02_Beyond_Fundamentals/02_01.py | AnmolTomer/lynda_programming_foundations | 2f1269f2984ae8707acd80017b892ff4cceb0ee9 | [
"MIT"
] | null | null | null | # Iteration: Repeat the same procedure until it reaches a end point.
# Specify the data to iterate over,what to do to data at every step, and we need to specify when our loop should stop.
# Infinite Loop: Bug that may occur when ending condition speicified incorrectly or not specified.
spices = [
'salt',
'pepp... | 33.6875 | 129 | 0.727273 |
fa94dc14969adcec177f7a104c520957faf4be46 | 42,211 | py | Python | dsed/migrate/build.py | flowmatters/dsed-py | b967db2797320e63bc504e40023b7c7623a0b002 | [
"0BSD"
] | null | null | null | dsed/migrate/build.py | flowmatters/dsed-py | b967db2797320e63bc504e40023b7c7623a0b002 | [
"0BSD"
] | null | null | null | dsed/migrate/build.py | flowmatters/dsed-py | b967db2797320e63bc504e40023b7c7623a0b002 | [
"0BSD"
] | null | null | null | import os
import json
from functools import reduce
import numpy as np
import pandas as pd
import geopandas as gpd
from dsed.ow import DynamicSednetCatchment, FINE_SEDIMENT, COARSE_SEDIMENT
from dsed.const import *
import openwater.nodes as node_types
from openwater.examples import from_source
from openwater import d... | 50.734375 | 273 | 0.675677 |
fa9523caf9ac0424eb71bc4eef12115550d20826 | 3,738 | py | Python | scripts/gen_app_yaml.py | MatthewWilkes/mw4068-packaging | 5c5d50eea89372e967994dac3bd8b06d25b4f0fa | [
"Apache-2.0"
] | null | null | null | scripts/gen_app_yaml.py | MatthewWilkes/mw4068-packaging | 5c5d50eea89372e967994dac3bd8b06d25b4f0fa | [
"Apache-2.0"
] | null | null | null | scripts/gen_app_yaml.py | MatthewWilkes/mw4068-packaging | 5c5d50eea89372e967994dac3bd8b06d25b4f0fa | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python2.5
# Copyright 2009 the Melange 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 30.639344 | 96 | 0.697967 |
fa954cccfdb16470bfc0b5d84f0c0d0b0bc56f46 | 70 | py | Python | task_list_dev/__main__.py | HenriqueLR/task-list-dev | a623543bbf882458bca476f7a94156cd30d544ab | [
"MIT"
] | null | null | null | task_list_dev/__main__.py | HenriqueLR/task-list-dev | a623543bbf882458bca476f7a94156cd30d544ab | [
"MIT"
] | 5 | 2017-11-25T17:05:47.000Z | 2017-11-28T16:06:16.000Z | task_list_dev/__main__.py | HenriqueLR/task-list-dev | a623543bbf882458bca476f7a94156cd30d544ab | [
"MIT"
] | null | null | null | # coding: utf-8
print(__import__('task_list_dev').tools.get_list())
| 14 | 51 | 0.728571 |
fa9589b85e6ec9a294f76d78c7dade6ff939d964 | 119 | py | Python | CodingBat/Python/Warmup-1 > not_string.py | JLJTECH/TutorialTesting | f2dbbd49a86b3b086d0fc156ac3369fb74727f86 | [
"MIT"
] | null | null | null | CodingBat/Python/Warmup-1 > not_string.py | JLJTECH/TutorialTesting | f2dbbd49a86b3b086d0fc156ac3369fb74727f86 | [
"MIT"
] | null | null | null | CodingBat/Python/Warmup-1 > not_string.py | JLJTECH/TutorialTesting | f2dbbd49a86b3b086d0fc156ac3369fb74727f86 | [
"MIT"
] | null | null | null | #Warmup-1 > not_string | 19.833333 | 27 | 0.638655 |
fa96f592ecf04753046dc1b36c84fb0196c05868 | 11,242 | py | Python | gputools/transforms/transformations.py | jni/gputools | cecaa9565b9be0c716e6c11b0914bbbdfd75657c | [
"BSD-3-Clause"
] | null | null | null | gputools/transforms/transformations.py | jni/gputools | cecaa9565b9be0c716e6c11b0914bbbdfd75657c | [
"BSD-3-Clause"
] | null | null | null | gputools/transforms/transformations.py | jni/gputools | cecaa9565b9be0c716e6c11b0914bbbdfd75657c | [
"BSD-3-Clause"
] | null | null | null | """ scaling images
"""
from __future__ import print_function, unicode_literals, absolute_import, division
import logging
logger = logging.getLogger(__name__)
import os
import numpy as np
import warnings
from gputools import OCLArray, OCLImage, OCLProgram
from gputools.core.ocltypes import cl_buffer_datatype_dict
fr... | 33.558209 | 147 | 0.610656 |
fa97031b9abd030801b3037a4db301e08dded608 | 776 | py | Python | index.py | genesis331/fdk-object-detection | b5859a5dea0bc87f7382022d08c3616ecd7d1b85 | [
"MIT"
] | null | null | null | index.py | genesis331/fdk-object-detection | b5859a5dea0bc87f7382022d08c3616ecd7d1b85 | [
"MIT"
] | null | null | null | index.py | genesis331/fdk-object-detection | b5859a5dea0bc87f7382022d08c3616ecd7d1b85 | [
"MIT"
] | null | null | null | import streamlit as st
from streamlit import caching
import os
import torch
from src.core.detect import Detector
from src.core.utils import utils
from PIL import Image
import cv2
st.title('1stDayKit Object Detection')
st.write('1stDayKit is a high-level Deep Learning toolkit for solving generic tasks.')
uploaded_file... | 33.73913 | 86 | 0.706186 |
fa97149416601cbc0c317503ce2c46c344e58e58 | 121 | py | Python | src/connections/_sqlalchemy.py | Freonius/tranquillity | bb190b4a8facf643d5018a710100b3ff45d6d640 | [
"MIT"
] | null | null | null | src/connections/_sqlalchemy.py | Freonius/tranquillity | bb190b4a8facf643d5018a710100b3ff45d6d640 | [
"MIT"
] | 20 | 2021-12-31T15:28:20.000Z | 2022-02-15T18:24:16.000Z | src/connections/_sqlalchemy.py | Freonius/tranquillity | bb190b4a8facf643d5018a710100b3ff45d6d640 | [
"MIT"
] | null | null | null | from sqlalchemy.engine import Engine, Connection
from .__interface import IConnection
| 17.285714 | 48 | 0.801653 |
fa97154f8775840c89574571c6a5f0bd69db298e | 8,036 | py | Python | custom_components/meross_lan/merossclient/__init__.py | gelokatil/meross_lan | e662666da58456e35432310c929c39ac2675dda6 | [
"MIT"
] | null | null | null | custom_components/meross_lan/merossclient/__init__.py | gelokatil/meross_lan | e662666da58456e35432310c929c39ac2675dda6 | [
"MIT"
] | null | null | null | custom_components/meross_lan/merossclient/__init__.py | gelokatil/meross_lan | e662666da58456e35432310c929c39ac2675dda6 | [
"MIT"
] | null | null | null | """An Http API Client to interact with meross devices"""
from email import header
import logging
from types import MappingProxyType
from typing import List, MappingView, Optional, Dict, Any, Callable, Union
from enum import Enum
from uuid import uuid4
from hashlib import md5
from time import time
from json import (
... | 34.195745 | 126 | 0.620956 |
fa9727363fedea573e43bf5393f3cdd76d8a0357 | 632 | py | Python | modulo 2/d037/conversao.py | rafa-evangelista/PYTHON | 761ec7e01f1617263bc023a6b82b599a936275ee | [
"MIT"
] | null | null | null | modulo 2/d037/conversao.py | rafa-evangelista/PYTHON | 761ec7e01f1617263bc023a6b82b599a936275ee | [
"MIT"
] | null | null | null | modulo 2/d037/conversao.py | rafa-evangelista/PYTHON | 761ec7e01f1617263bc023a6b82b599a936275ee | [
"MIT"
] | null | null | null | num = int(input('Digite um nmero: '))
print('''Qual ser a base de converso do nmero {}
[1] para "binrio"
[2] para "octal"
[3] para "hexadecimal"'''.format(num))
num1 = int(input('Escolha uma opo: '))
if num1 == 1:
print('Voc escolheu converter o nmero {} para binrio. O valor de {}.'.format(
num, bin(num))... | 33.263158 | 89 | 0.628165 |
fa97541ff73e5ddf240b2b8fd1ad06427655c0a8 | 1,359 | py | Python | python/matplotlib/contour_from_hist2d_sigmas.py | jeremiedecock/snippets | 4bd4e7f459eee610d5cf19f845299ca942ff4b64 | [
"MIT"
] | 23 | 2015-06-08T13:01:00.000Z | 2021-12-30T08:20:04.000Z | python/matplotlib/contour_from_hist2d_sigmas.py | jeremiedecock/snippets | 4bd4e7f459eee610d5cf19f845299ca942ff4b64 | [
"MIT"
] | 1 | 2020-10-22T02:36:10.000Z | 2020-10-22T02:36:10.000Z | python/matplotlib/contour_from_hist2d_sigmas.py | jeremiedecock/snippets | 4bd4e7f459eee610d5cf19f845299ca942ff4b64 | [
"MIT"
] | 7 | 2017-10-31T09:48:14.000Z | 2022-01-04T15:59:45.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Plot contours from an 2D histogram showing the standard deviation
"""
import numpy as np
import matplotlib.pyplot as plt
# Build datas ###############
x, y = np.random.normal(size=(2, 1000000))
xbins = np.linspace(-2, 2, 30)
ybins = np.linspace(-2, 2, 30)
counts,... | 23.033898 | 86 | 0.589404 |
fa98db342baff8386700db039d9f97d991e6637e | 2,648 | py | Python | tests/conftest.py | Peter-Metz/taxdata | ee4d401979f48bbbe392bbfba1b571233fec3495 | [
"CC0-1.0"
] | null | null | null | tests/conftest.py | Peter-Metz/taxdata | ee4d401979f48bbbe392bbfba1b571233fec3495 | [
"CC0-1.0"
] | null | null | null | tests/conftest.py | Peter-Metz/taxdata | ee4d401979f48bbbe392bbfba1b571233fec3495 | [
"CC0-1.0"
] | null | null | null | import os
import json
import pytest
import pandas as pd
# TODO: revise the following constants when using new or revised CPS/PUF data
CPS_START_YEAR = 2014
PUF_START_YEAR = 2011
PUF_COUNT = 248591
LAST_YEAR = 2027
| 24.293578 | 77 | 0.702795 |
fa9a41e91340bc016be9afc635d4430468d4b664 | 9,326 | py | Python | tests/snappi/pfcwd/files/pfcwd_runtime_traffic_helper.py | xwjiang2021/sonic-mgmt | 82c446b9fb016eb070af765aa9d9999e55b27342 | [
"Apache-2.0"
] | 2 | 2021-11-24T09:33:41.000Z | 2021-12-03T09:08:29.000Z | tests/snappi/pfcwd/files/pfcwd_runtime_traffic_helper.py | xwjiang2021/sonic-mgmt | 82c446b9fb016eb070af765aa9d9999e55b27342 | [
"Apache-2.0"
] | 1 | 2021-09-08T00:59:33.000Z | 2021-09-08T00:59:33.000Z | tests/snappi/pfcwd/files/pfcwd_runtime_traffic_helper.py | xwjiang2021/sonic-mgmt | 82c446b9fb016eb070af765aa9d9999e55b27342 | [
"Apache-2.0"
] | 1 | 2021-08-20T03:34:30.000Z | 2021-08-20T03:34:30.000Z | import time
import logging
from tests.common.helpers.assertions import pytest_assert
from tests.common.snappi.snappi_helpers import get_dut_port_id
from tests.common.snappi.common_helpers import start_pfcwd, stop_pfcwd
from tests.common.snappi.port import select_ports, select_tx_port
from tests.common.snappi.snappi_he... | 36.147287 | 92 | 0.623097 |
fa9a48ce8dbd9143921b6d9a6aaa68457aed7d58 | 3,353 | py | Python | sixx/plugins/utils/converters.py | TildeBeta/6X | 1814eb8f394b7c25b49decdd7d7249567c85f30f | [
"MIT"
] | 2 | 2018-03-06T20:39:49.000Z | 2018-03-17T04:28:57.000Z | sixx/plugins/utils/converters.py | TildeBeta/TwitterImages | 1814eb8f394b7c25b49decdd7d7249567c85f30f | [
"MIT"
] | 2 | 2018-03-06T20:39:46.000Z | 2018-03-15T17:03:03.000Z | sixx/plugins/utils/converters.py | TildeBeta/TwitterImages | 1814eb8f394b7c25b49decdd7d7249567c85f30f | [
"MIT"
] | 1 | 2018-04-25T22:24:40.000Z | 2018-04-25T22:24:40.000Z | from math import sqrt
import re
from curious.commands import Context
from curious.commands.exc import ConversionFailedError
from typing import Tuple
colour_pattern = re.compile(r'(#|0x)?([A-Za-z0-9]{1,6})')
RGB = Tuple[int, int, int]
def convert_hex_colour(annotation, ctx: Context, arg: str) -> Colour:
"""
... | 25.022388 | 101 | 0.593498 |
fa9b854e0bf31a77452586413b7c4fd1b1f19d69 | 85 | py | Python | tests/plugins/tool/docformatter_tool_plugin/valid_package/wrong.py | kogut/statick | 6cbe43b5ac78275a12af3ac5aa325833368d0767 | [
"CC0-1.0"
] | 54 | 2018-08-27T19:12:41.000Z | 2022-03-31T04:16:40.000Z | tests/plugins/tool/docformatter_tool_plugin/valid_package/wrong.py | gregtkogut/statick | 11a8f950d50b52903a25f4f00c7cd52a90eff56c | [
"CC0-1.0"
] | 288 | 2018-08-28T13:17:44.000Z | 2022-03-21T20:05:19.000Z | tests/plugins/tool/docformatter_tool_plugin/valid_package/wrong.py | gregtkogut/statick | 11a8f950d50b52903a25f4f00c7cd52a90eff56c | [
"CC0-1.0"
] | 12 | 2018-08-28T13:18:39.000Z | 2022-03-21T19:27:16.000Z | '''
Docstring with single quotes instead of double quotes.
'''
my_str = "not an int"
| 17 | 54 | 0.705882 |
fa9c176b0c5c5750593310639cb938dd5d20b975 | 1,789 | py | Python | src/tester.py | OompahLoompah/LinodeAPI-Client | 6842b5cb461676a5ae363f242c972d8b157ea67e | [
"MIT"
] | null | null | null | src/tester.py | OompahLoompah/LinodeAPI-Client | 6842b5cb461676a5ae363f242c972d8b157ea67e | [
"MIT"
] | null | null | null | src/tester.py | OompahLoompah/LinodeAPI-Client | 6842b5cb461676a5ae363f242c972d8b157ea67e | [
"MIT"
] | null | null | null | from client import linodeClient
import os
linode = linodeClient(os.getcwd() + '/../.config')
userInput = raw_input("What do you want to do?\n")
if userInput == 'create':
print(linode.createLinode('3', '1'))
if userInput == 'destroy':
userInput = raw_input("What do you want to destroy?\n")
response = lin... | 28.854839 | 75 | 0.643935 |
fa9cd956e95a761dad517dc12fcf1239628e18a4 | 6,694 | py | Python | base/migrations/0002_auto_20210622_1947.py | francofgp/Syndeo | 888a1001f2cbb2ff8b7247e84a2899dcbd08af80 | [
"MIT"
] | 3 | 2022-01-04T17:38:04.000Z | 2022-01-05T12:45:22.000Z | base/migrations/0002_auto_20210622_1947.py | francofgp/Syndeo | 888a1001f2cbb2ff8b7247e84a2899dcbd08af80 | [
"MIT"
] | null | null | null | base/migrations/0002_auto_20210622_1947.py | francofgp/Syndeo | 888a1001f2cbb2ff8b7247e84a2899dcbd08af80 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.2 on 2021-06-22 22:47
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 42.100629 | 155 | 0.582313 |
fa9ea7ecedd54d91de0696590347b0edb53b720e | 163 | py | Python | prefs.py | synap5e/pandora-station-to-spotify | d0c0caace016a35b56c4eae6593a47dad2a53205 | [
"MIT"
] | 1 | 2019-03-24T07:01:55.000Z | 2019-03-24T07:01:55.000Z | prefs.py | synap5e/pandora-station-to-spotify | d0c0caace016a35b56c4eae6593a47dad2a53205 | [
"MIT"
] | null | null | null | prefs.py | synap5e/pandora-station-to-spotify | d0c0caace016a35b56c4eae6593a47dad2a53205 | [
"MIT"
] | null | null | null | username = 'user@example.com'
password = 'hunter2'
# larger = less change of delays if you skip a lot
# smaller = more responsive to ups/downs
queue_size = 2 | 27.166667 | 51 | 0.711656 |
fa9fe5acc3c1efc2638d84976321625ca2613512 | 3,299 | py | Python | src/scs_core/data/histogram.py | seoss/scs_core | 0d4323c5697a39eb44a887f179ba5dca3716c1d2 | [
"MIT"
] | null | null | null | src/scs_core/data/histogram.py | seoss/scs_core | 0d4323c5697a39eb44a887f179ba5dca3716c1d2 | [
"MIT"
] | null | null | null | src/scs_core/data/histogram.py | seoss/scs_core | 0d4323c5697a39eb44a887f179ba5dca3716c1d2 | [
"MIT"
] | null | null | null | """
Created on 9 Aug 2016
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
"""
import _csv
import sys
# --------------------------------------------------------------------------------------------------------------------
# -----------------------------------------------------------------------------... | 24.992424 | 118 | 0.461352 |
faa101944e1ea1419bd8c69ecd6e50fa2ceaf965 | 2,280 | py | Python | source/0A_write_cgi_v1.4.py | SpencerEricksen/PCBA_downloads_oxphos | 62f5b7a6faf2743afa31368d3e8d529e248c815d | [
"MIT"
] | null | null | null | source/0A_write_cgi_v1.4.py | SpencerEricksen/PCBA_downloads_oxphos | 62f5b7a6faf2743afa31368d3e8d529e248c815d | [
"MIT"
] | null | null | null | source/0A_write_cgi_v1.4.py | SpencerEricksen/PCBA_downloads_oxphos | 62f5b7a6faf2743afa31368d3e8d529e248c815d | [
"MIT"
] | null | null | null |
# script to read-in CID list and write out cgi XML files
# for molecule downloads from pubchem using PUG REST
# usage: 1_write_cgi_PUG_v1.4.py pcba-aid411_activities.csv
import pandas as pd
import sys
def dump_cgi_xml( outfile, cid_list, AID, AID_chunk ):
'''write out a cgi xml file for fetching'''
outfi... | 31.666667 | 107 | 0.548684 |
faa1e8c5adf5fa05097413ffe672e4a2b342669b | 1,974 | py | Python | src/pymor/analyticalproblems/instationary.py | mahgadalla/pymor | ee2806b4c93748e716294c42454d611415da7b5e | [
"Unlicense"
] | 1 | 2021-07-26T12:58:50.000Z | 2021-07-26T12:58:50.000Z | src/pymor/analyticalproblems/instationary.py | mahgadalla/pymor | ee2806b4c93748e716294c42454d611415da7b5e | [
"Unlicense"
] | null | null | null | src/pymor/analyticalproblems/instationary.py | mahgadalla/pymor | ee2806b4c93748e716294c42454d611415da7b5e | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
# This file is part of the pyMOR project (http://www.pymor.org).
# Copyright 2013-2017 pyMOR developers and contributors. All rights reserved.
# License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
from pymor.core.interfaces import ImmutableInterface
| 34.631579 | 104 | 0.66464 |
faa39971968922b9da43428bb86ae50cc3a8e49d | 3,183 | py | Python | pituophis/cli.py | dotcomboom/Pituophis | fbd07497a79a637f7bba4916458561cfdde9d698 | [
"BSD-2-Clause"
] | 30 | 2019-02-15T16:24:21.000Z | 2022-03-08T00:52:26.000Z | pituophis/cli.py | dotcomboom/Pituophis | fbd07497a79a637f7bba4916458561cfdde9d698 | [
"BSD-2-Clause"
] | 16 | 2019-02-12T00:54:52.000Z | 2020-10-28T16:27:35.000Z | pituophis/cli.py | dotcomboom/Pituophis | fbd07497a79a637f7bba4916458561cfdde9d698 | [
"BSD-2-Clause"
] | 2 | 2019-09-02T04:26:21.000Z | 2020-05-15T20:46:35.000Z | import importlib
import sys
import pituophis
# check if the user is running the script with the correct number of arguments
if len(sys.argv) < 2:
# if not, print the usage
print('usage: pituophis [command] cd [options]')
print('Commands:')
print(' serve [options]')
print(' fetch [url] [options]')... | 40.807692 | 145 | 0.568646 |
faa43f92ed4419078ca8c87c5823af07d1f539bd | 1,711 | py | Python | test/synth_mcmc.py | chris-stock/pyglm | fff2e91b0936275f37a7860bd75f867b560f4993 | [
"MIT"
] | 1 | 2017-03-11T19:10:17.000Z | 2017-03-11T19:10:17.000Z | test/synth_mcmc.py | chris-stock/pyglm | fff2e91b0936275f37a7860bd75f867b560f4993 | [
"MIT"
] | null | null | null | test/synth_mcmc.py | chris-stock/pyglm | fff2e91b0936275f37a7860bd75f867b560f4993 | [
"MIT"
] | null | null | null | # Run as script using 'python -m test.synth'
import cPickle
import os
import scipy.io
from models.model_factory import *
from inference.gibbs import gibbs_sample
from utils.avg_dicts import average_list_of_dicts
from synth_harness import initialize_test_harness
from plotting.plot_results import plot_results
from popul... | 32.903846 | 81 | 0.661017 |
faa4586ea3fbf6fea84324823f11f12d5b8ac80d | 1,297 | py | Python | pysh/transforms/autoimport.py | drslump/pysh | 673cdf2b5ea95dc3209cb294bb91cb2f298bb888 | [
"MIT"
] | 3 | 2018-07-09T04:39:24.000Z | 2020-11-27T05:44:56.000Z | pysh/transforms/autoimport.py | drslump/pysh | 673cdf2b5ea95dc3209cb294bb91cb2f298bb888 | [
"MIT"
] | null | null | null | pysh/transforms/autoimport.py | drslump/pysh | 673cdf2b5ea95dc3209cb294bb91cb2f298bb888 | [
"MIT"
] | 1 | 2018-08-02T21:57:11.000Z | 2018-08-02T21:57:11.000Z | """
Every name reference is swapped for a call to ``__autoimport__``, which
will check if it's part of the locals or globals, falling back to trying
an import before giving up.
"""
from importlib import import_module
from ast import NodeTransformer, copy_location, fix_missing_locations, \
AST, Call, Name, Load, St... | 23.160714 | 72 | 0.652274 |
faa460343b71b091ee5a98825ebabe0d6f30a3f0 | 4,983 | py | Python | spyre/spyre/widgets/task.py | zhong-lab/optics | 9de1942d9a128183ecb3d360b160b27126e7b8f0 | [
"BSD-2-Clause"
] | 1 | 2022-03-27T07:47:19.000Z | 2022-03-27T07:47:19.000Z | spyre/spyre/widgets/task.py | zhong-lab/optics | 9de1942d9a128183ecb3d360b160b27126e7b8f0 | [
"BSD-2-Clause"
] | null | null | null | spyre/spyre/widgets/task.py | zhong-lab/optics | 9de1942d9a128183ecb3d360b160b27126e7b8f0 | [
"BSD-2-Clause"
] | 4 | 2019-11-08T22:39:04.000Z | 2021-11-05T02:39:37.000Z | from PyQt5 import QtWidgets, QtCore, QtGui
from pyqtgraph import SignalProxy
| 35.848921 | 109 | 0.589003 |
faa59189fcb0db287ca016ded409105514d4c263 | 15,742 | py | Python | tests/test_fluids_bw92.py | trhallam/digirock | 05b1199d741a384345a4930605be97369c9ec270 | [
"MIT"
] | null | null | null | tests/test_fluids_bw92.py | trhallam/digirock | 05b1199d741a384345a4930605be97369c9ec270 | [
"MIT"
] | 2 | 2022-02-28T08:51:53.000Z | 2022-02-28T13:24:33.000Z | tests/test_fluids_bw92.py | trhallam/digirock | 05b1199d741a384345a4930605be97369c9ec270 | [
"MIT"
] | null | null | null | """Test functions for pem.fluid.bw92 module
"""
import pytest
from pytest import approx
from _pytest.fixtures import SubRequest
from hypothesis import given, settings, strategies as st
import numpy as np
import digirock.fluids.bw92 as bw92
from .strategies import n_varshp_arrays
# p (MPa), t (degC)... | 28.363964 | 102 | 0.581629 |
faa609968ff5a4b42dcd92861e9a5c5ca3e91929 | 3,103 | py | Python | apps/site/api/views/abstract_views.py | LocalGround/localground | aa5a956afe7a84a7763a3b23d62a9fd925831cd7 | [
"Apache-2.0"
] | 9 | 2015-05-29T22:22:20.000Z | 2022-02-01T20:39:00.000Z | apps/site/api/views/abstract_views.py | LocalGround/localground | aa5a956afe7a84a7763a3b23d62a9fd925831cd7 | [
"Apache-2.0"
] | 143 | 2015-01-22T15:03:40.000Z | 2020-06-27T01:55:29.000Z | apps/site/api/views/abstract_views.py | LocalGround/localground | aa5a956afe7a84a7763a3b23d62a9fd925831cd7 | [
"Apache-2.0"
] | 5 | 2015-03-16T20:51:49.000Z | 2017-02-07T20:48:49.000Z | from localground.apps.lib.helpers import get_timestamp_no_milliseconds
from localground.apps.site.api import filters
from localground.apps.site import models
from rest_framework import generics, status, exceptions
from localground.apps.site.api.serializers.user_profile_serializer import \
UserProfileSerializer
from... | 36.081395 | 79 | 0.705769 |
faa6a4c65241a389b815a30946e018a7f9d065de | 1,859 | py | Python | mymoney/apps/banktransactiontags/tests/test_models.py | ychab/mymoney | 9ee665d40648fd0b95f6e90d82ccf2bfc791e8af | [
"BSD-3-Clause"
] | 67 | 2015-12-22T10:27:34.000Z | 2022-03-10T21:33:18.000Z | mymoney/apps/banktransactiontags/tests/test_models.py | clebercarmo/mymoney | 9ee665d40648fd0b95f6e90d82ccf2bfc791e8af | [
"BSD-3-Clause"
] | null | null | null | mymoney/apps/banktransactiontags/tests/test_models.py | clebercarmo/mymoney | 9ee665d40648fd0b95f6e90d82ccf2bfc791e8af | [
"BSD-3-Clause"
] | 35 | 2016-08-07T11:43:51.000Z | 2022-02-21T21:20:06.000Z | import unittest
from mymoney.apps.bankaccounts.factories import BankAccountFactory
from mymoney.core.factories import UserFactory
from ..factories import BankTransactionTagFactory
from ..models import BankTransactionTag
| 32.051724 | 81 | 0.692846 |
faa7367cd6852d4396d5b354611f83726f61a9ab | 690 | py | Python | users/migrations/0017_auto_20190828_1311.py | dhanupandey12/Blog | fcd274b7249c255786b46cf81d6e949a903e9a53 | [
"MIT"
] | null | null | null | users/migrations/0017_auto_20190828_1311.py | dhanupandey12/Blog | fcd274b7249c255786b46cf81d6e949a903e9a53 | [
"MIT"
] | null | null | null | users/migrations/0017_auto_20190828_1311.py | dhanupandey12/Blog | fcd274b7249c255786b46cf81d6e949a903e9a53 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.5 on 2019-08-28 07:41
from django.db import migrations
| 25.555556 | 90 | 0.575362 |
faaa7770b0b932ab885702144bdccdde0f72ae42 | 819 | py | Python | NLP/Platsbanken/CustomStopwords.py | lambda-snail/PythonMix | f2308a9a9cc1caa120b45de15dfa58b3c807d498 | [
"MIT"
] | null | null | null | NLP/Platsbanken/CustomStopwords.py | lambda-snail/PythonMix | f2308a9a9cc1caa120b45de15dfa58b3c807d498 | [
"MIT"
] | null | null | null | NLP/Platsbanken/CustomStopwords.py | lambda-snail/PythonMix | f2308a9a9cc1caa120b45de15dfa58b3c807d498 | [
"MIT"
] | null | null | null | """ A list of stopwords to filter out, in addition to those that are already being filtered by the built-in toolkit. """
CustomStopwords = ['alltid', 'fler', 'ta', 'tar', 'sker', 'redan', 'who', 'what', 'gilla', 'big', 'something','fler',
'cv', 'snart', 'minst', 'kunna', '000', 'hr-plus', 'enligt... | 58.5 | 123 | 0.5116 |
faaaa6a2ed4e84a8136fbdc2d54d77b3af907a93 | 5,612 | py | Python | root_gnn/trainer.py | Calvin-Qiu/TopReco | e9f7f0067530bc9140cd5ca51a134882fe259dbd | [
"Apache-2.0"
] | null | null | null | root_gnn/trainer.py | Calvin-Qiu/TopReco | e9f7f0067530bc9140cd5ca51a134882fe259dbd | [
"Apache-2.0"
] | null | null | null | root_gnn/trainer.py | Calvin-Qiu/TopReco | e9f7f0067530bc9140cd5ca51a134882fe259dbd | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
from tensorflow.compat.v1 import logging
logging.set_verbosity("INFO")
logging.info("TF Version:{}".format(tf.__version__))
try:
import horovod.tensorflow as hvd
no_horovod = False
except ModuleNotFoundError:
logging.warning("No horvod module, cannot perform distributed training")
... | 31.886364 | 108 | 0.65556 |
faaad1e0a17c9ccfde15b59721ef3b9545cff063 | 871 | py | Python | tests/test_vera.py | j-faria/vera | 96cbdb61c98c3527416611155b29a03a2bc66b15 | [
"MIT"
] | null | null | null | tests/test_vera.py | j-faria/vera | 96cbdb61c98c3527416611155b29a03a2bc66b15 | [
"MIT"
] | null | null | null | tests/test_vera.py | j-faria/vera | 96cbdb61c98c3527416611155b29a03a2bc66b15 | [
"MIT"
] | null | null | null | # import pytest
| 18.531915 | 70 | 0.652124 |
faab2433ad95cb7f0eab338db2a54fe92593e98a | 11,664 | py | Python | UMDPythonhangtestudo.py | FourplayHangman/Hangman-Kules | 47f3f0deb8f1ee6f62c17807c014ba3865e4bcf5 | [
"Apache-2.0"
] | null | null | null | UMDPythonhangtestudo.py | FourplayHangman/Hangman-Kules | 47f3f0deb8f1ee6f62c17807c014ba3865e4bcf5 | [
"Apache-2.0"
] | null | null | null | UMDPythonhangtestudo.py | FourplayHangman/Hangman-Kules | 47f3f0deb8f1ee6f62c17807c014ba3865e4bcf5 | [
"Apache-2.0"
] | 1 | 2017-11-27T01:41:10.000Z | 2017-11-27T01:41:10.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Project: Hangman
File: hangman.py
Author: Korvin F. Ezst
Created: 2017-11-24
IDE: PyCharm Community Edition
Synopsis:
hangman.py [ARGUMENT]
Description:
A simple hangman game that runs in the command lin... | 26.813793 | 73 | 0.561557 |
faab28a77efcc6a6f4a4d08a57dae03f29543153 | 4,974 | py | Python | tutorialworkflowresult.py | olegxtend/cdl_2021_demo | 63bc7e5f7c9f5297b2b14ad864bb2a05d913f0ed | [
"MIT"
] | 5 | 2021-07-16T16:18:21.000Z | 2021-11-28T03:57:13.000Z | tutorialworkflowresult.py | olegxtend/cdl_2021_demo | 63bc7e5f7c9f5297b2b14ad864bb2a05d913f0ed | [
"MIT"
] | null | null | null | tutorialworkflowresult.py | olegxtend/cdl_2021_demo | 63bc7e5f7c9f5297b2b14ad864bb2a05d913f0ed | [
"MIT"
] | 13 | 2021-07-16T15:46:05.000Z | 2021-08-03T05:26:49.000Z | import json
import os
import typing
import codecs
import typing
import os
import json
import dill
from dataclasses import dataclass, field
ENCODED_PICKLE = "encodedpickle"
def _deserialize_result(io_manager: TutorialJsonIOManager, result: typing.Dict[str, typing.Any]):
if result["type"] == ENCODED_PICKLE:
... | 32.940397 | 97 | 0.620225 |
faabfacf609a3780238f931eb1d3d9a233d1bf6c | 3,382 | py | Python | examples/sim_dust.py | Guo-Jian-Wang/cmbNNCS | cd55e0a2344aa5182d099cf559bc986ae0351cb7 | [
"MIT"
] | null | null | null | examples/sim_dust.py | Guo-Jian-Wang/cmbNNCS | cd55e0a2344aa5182d099cf559bc986ae0351cb7 | [
"MIT"
] | null | null | null | examples/sim_dust.py | Guo-Jian-Wang/cmbNNCS | cd55e0a2344aa5182d099cf559bc986ae0351cb7 | [
"MIT"
] | null | null | null | import sys
sys.path.append('../')
sys.path.append('../..')
import cmbnncs.utils as utils
import cmbnncs.spherical as spherical
import cmbnncs.simulator as simulator
import numpy as np
import time
start_time = time.time()
#%% generate the Dust full map - training (test) data
nside = 512
# temp_randn = '0'
temp_rand... | 46.972222 | 163 | 0.702543 |
faadc11e3f24c6373636e3bb5814da8ad0ad2c17 | 14,140 | py | Python | anima/env/nukeEnv.py | tws0002/anima | 73c256d1f7716a2db7933d6d8519a51333c7e5b4 | [
"BSD-2-Clause"
] | null | null | null | anima/env/nukeEnv.py | tws0002/anima | 73c256d1f7716a2db7933d6d8519a51333c7e5b4 | [
"BSD-2-Clause"
] | null | null | null | anima/env/nukeEnv.py | tws0002/anima | 73c256d1f7716a2db7933d6d8519a51333c7e5b4 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2012-2018, Anima Istanbul
#
# This module is part of anima-tools and is released under the BSD 2
# License: http://www.opensource.org/licenses/BSD-2-Clause
import os
import nuke
from nukescripts import *
from anima.env import empty_reference_resolution
from anima.env.base import... | 33.037383 | 111 | 0.585007 |
faae62e74233d85e1942ad4875600b68b5c29875 | 99 | py | Python | trade_remedies_api/config/settings/bdd.py | uktrade/trade-remedies-api | fbe2d142ef099c7244788a0f72dd1003eaa7edce | [
"MIT"
] | 1 | 2020-08-13T10:37:15.000Z | 2020-08-13T10:37:15.000Z | trade_remedies_api/config/settings/bdd.py | uktrade/trade-remedies-api | fbe2d142ef099c7244788a0f72dd1003eaa7edce | [
"MIT"
] | 4 | 2020-09-10T13:41:52.000Z | 2020-12-16T09:00:21.000Z | trade_remedies_api/config/settings/bdd.py | uktrade/trade-remedies-api | fbe2d142ef099c7244788a0f72dd1003eaa7edce | [
"MIT"
] | null | null | null | from .base import * # noqa
INSTALLED_APPS += [
"api_test",
]
ROOT_URLCONF = "api_test.urls"
| 12.375 | 30 | 0.646465 |
faaed7d726fb97374e33fe05e85c8cca35b6cc7d | 2,015 | py | Python | web/certificates/migrations/0011_doublecoutingregistration_doublecoutingregistrationinputoutput.py | MTES-MCT/biocarburants | ff084916e18cdbdc41400f36fa6cc76a5e05900e | [
"MIT"
] | 4 | 2020-03-22T18:13:12.000Z | 2021-01-25T10:33:31.000Z | web/certificates/migrations/0011_doublecoutingregistration_doublecoutingregistrationinputoutput.py | MTES-MCT/carbure | 2876756b760ab4866fa783bb40e61a046eebb1ab | [
"MIT"
] | 20 | 2020-07-06T14:33:14.000Z | 2022-03-15T16:54:17.000Z | web/certificates/migrations/0011_doublecoutingregistration_doublecoutingregistrationinputoutput.py | MTES-MCT/biocarburants | ff084916e18cdbdc41400f36fa6cc76a5e05900e | [
"MIT"
] | 4 | 2020-04-03T12:19:12.000Z | 2021-06-15T12:20:57.000Z | # Generated by Django 3.2.4 on 2021-07-22 09:40
from django.db import migrations, models
import django.db.models.deletion
| 43.804348 | 144 | 0.60794 |
faaf8287b96dcdd8bc10415fc576deae3677d866 | 2,206 | py | Python | floodsystem/plot.py | caizicharles/IA-Floodwarning | 2f4931d000ca98b6c304507a422aabb49b4bd231 | [
"MIT"
] | null | null | null | floodsystem/plot.py | caizicharles/IA-Floodwarning | 2f4931d000ca98b6c304507a422aabb49b4bd231 | [
"MIT"
] | null | null | null | floodsystem/plot.py | caizicharles/IA-Floodwarning | 2f4931d000ca98b6c304507a422aabb49b4bd231 | [
"MIT"
] | null | null | null | from .datafetcher import fetch_measure_levels
from .stationdata import build_station_list, update_water_levels
from .flood import stations_highest_rel_level
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from datetime import datetime, timedelta
from floodsystem.station import inconsistent_typical_... | 28.649351 | 93 | 0.691296 |
fab1ae1fd23f251523f0e24d567662098132f1c5 | 232 | py | Python | edx/problem_set_1/bob.py | spradeepv/dive-into-python | ec27d4686b7b007d21f9ba4f85d042be31ee2639 | [
"MIT"
] | null | null | null | edx/problem_set_1/bob.py | spradeepv/dive-into-python | ec27d4686b7b007d21f9ba4f85d042be31ee2639 | [
"MIT"
] | null | null | null | edx/problem_set_1/bob.py | spradeepv/dive-into-python | ec27d4686b7b007d21f9ba4f85d042be31ee2639 | [
"MIT"
] | null | null | null | s = raw_input()
find = 'bob'
count = 0
index = 0
while index < len(s):
index = s.find(find, index)
if index == -1:
break
index += 2
count += 1
print "Number of times bob occurs is:", count | 21.090909 | 45 | 0.521552 |
fab1c59f92d41695f6c520dc6fa5d7c7dc7fd893 | 533 | py | Python | documentstore_migracao/main/__init__.py | jamilatta/document-store-migracao | dc0473fb3ccf8c6c5f8d599b353f8c9caf104f55 | [
"BSD-2-Clause"
] | null | null | null | documentstore_migracao/main/__init__.py | jamilatta/document-store-migracao | dc0473fb3ccf8c6c5f8d599b353f8c9caf104f55 | [
"BSD-2-Clause"
] | null | null | null | documentstore_migracao/main/__init__.py | jamilatta/document-store-migracao | dc0473fb3ccf8c6c5f8d599b353f8c9caf104f55 | [
"BSD-2-Clause"
] | null | null | null | """ module to methods to main """
import sys
from .migrate_isis import migrate_isis_parser
from .migrate_articlemeta import migrate_articlemeta_parser
from .tools import tools_parser
def main_migrate_articlemeta():
""" method main to script setup.py """
sys.exit(migrate_articlemeta_parser(sys.argv[1:]))
... | 21.32 | 59 | 0.739212 |
fab2d81b0d580f8beb6589e4107725b0beb05fc3 | 721 | py | Python | zang/domain/fraud_control_rule_element.py | vlastikczech/zang-python | 980f5243071404d6838554500a6955ff7bc2a0c7 | [
"MIT"
] | 1 | 2019-02-18T21:51:58.000Z | 2019-02-18T21:51:58.000Z | zang/domain/fraud_control_rule_element.py | vlastikczech/zang-python | 980f5243071404d6838554500a6955ff7bc2a0c7 | [
"MIT"
] | 6 | 2019-06-26T13:56:22.000Z | 2022-02-17T16:40:48.000Z | zang/domain/fraud_control_rule_element.py | vlastikczech/zang-python | 980f5243071404d6838554500a6955ff7bc2a0c7 | [
"MIT"
] | 6 | 2017-10-17T12:44:32.000Z | 2020-02-07T20:45:00.000Z | # -*- coding: utf-8 -*-
"""
zang.domain.fraud_control_rule_whitelisted
~~~~~~~~~~~~~~~~~~~
`FraudControlRuleElement` model
"""
from zang.domain.base_resource import BaseResource
from zang.domain.fraud_control_rule import FraudControlRule
| 20.6 | 59 | 0.674064 |
fab458a70a67ab83469b992d3cb10888dc4cb5fd | 6,321 | py | Python | .qt_for_python/uic/installer.py | thomascswalker/bettergameexporter | 4db3683a599d523e28c2f93bdcac889277130153 | [
"MIT"
] | null | null | null | .qt_for_python/uic/installer.py | thomascswalker/bettergameexporter | 4db3683a599d523e28c2f93bdcac889277130153 | [
"MIT"
] | null | null | null | .qt_for_python/uic/installer.py | thomascswalker/bettergameexporter | 4db3683a599d523e28c2f93bdcac889277130153 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'installer.ui'
##
## Created by: Qt User Interface Compiler version 5.15.1
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################... | 42.422819 | 175 | 0.701946 |
fab4d1310e9ef911cecc3613e34d95dcfd6c0157 | 404 | py | Python | paginas/migrations/0014_auto_20190206_2343.py | igor-pontes/Dolex | 4d65a288fbf6cdf44628994fea3c821e8af2ea61 | [
"MIT"
] | null | null | null | paginas/migrations/0014_auto_20190206_2343.py | igor-pontes/Dolex | 4d65a288fbf6cdf44628994fea3c821e8af2ea61 | [
"MIT"
] | 4 | 2020-07-14T13:02:48.000Z | 2021-06-10T20:27:09.000Z | paginas/migrations/0014_auto_20190206_2343.py | igor-pontes/Dolex | 4d65a288fbf6cdf44628994fea3c821e8af2ea61 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.5 on 2019-02-06 23:43
from django.db import migrations, models
| 21.263158 | 63 | 0.608911 |
fab57ed22c9e496c6b5d1c1f3f59197a8dfcfb21 | 2,231 | py | Python | tap_gleantap/executor.py | Radico/tap-gleantap | 1b2cafe6647224a60f68969c07c603cacca8ccd4 | [
"Apache-2.0"
] | null | null | null | tap_gleantap/executor.py | Radico/tap-gleantap | 1b2cafe6647224a60f68969c07c603cacca8ccd4 | [
"Apache-2.0"
] | null | null | null | tap_gleantap/executor.py | Radico/tap-gleantap | 1b2cafe6647224a60f68969c07c603cacca8ccd4 | [
"Apache-2.0"
] | null | null | null | import singer
from tap_kit import TapExecutor
from tap_kit.utils import (transform_write_and_count)
LOGGER = singer.get_logger()
| 28.974026 | 88 | 0.543702 |
fab71b81531484d1696ade3aa93eda9a02495ebe | 4,028 | py | Python | design_patterns/factory_andri.py | andricampagnaro/documentacoes_e_testes | a12b1348dbb43ad72fe56a6287e228d6c031e36f | [
"MIT"
] | null | null | null | design_patterns/factory_andri.py | andricampagnaro/documentacoes_e_testes | a12b1348dbb43ad72fe56a6287e228d6c031e36f | [
"MIT"
] | 4 | 2021-06-08T21:55:17.000Z | 2022-01-13T02:57:49.000Z | design_patterns/factory_andri.py | andricampagnaro/documentacao_python3 | a12b1348dbb43ad72fe56a6287e228d6c031e36f | [
"MIT"
] | null | null | null | # import logging
# logging.basicConfig(filename='example.log',level=logging.DEBUG)
# logging.debug('This message should go to the log file')
# logging.info('So should this')
# logging.warning('And this, too ')
########################################################
#################################################... | 33.566667 | 88 | 0.635055 |
fab73276314f39860cdf6b1e49f429594d065a0f | 14,376 | py | Python | codes/models/modules/sftmd_arch.py | Mark-sloan/IKC | f70af607e9434931c22e4971469aaed7683a22a3 | [
"Apache-2.0"
] | 1 | 2020-02-27T09:27:17.000Z | 2020-02-27T09:27:17.000Z | codes/models/modules/sftmd_arch.py | Mark-sloan/IKC | f70af607e9434931c22e4971469aaed7683a22a3 | [
"Apache-2.0"
] | null | null | null | codes/models/modules/sftmd_arch.py | Mark-sloan/IKC | f70af607e9434931c22e4971469aaed7683a22a3 | [
"Apache-2.0"
] | null | null | null | '''
architecture for sftmd
'''
import torch
import torch.nn as nn
import torch.nn.functional as F
| 42.40708 | 128 | 0.61081 |
fab86be6f16580e58ee8836bf4504a1098307651 | 539 | py | Python | server/urls.py | Valchris/AngularJS-Django-Template | 10c90087984dcd9e6d29380eb4380824e65bcecf | [
"MIT"
] | 1 | 2015-07-29T04:28:26.000Z | 2015-07-29T04:28:26.000Z | server/urls.py | Valchris/AngularJS-Django-Template | 10c90087984dcd9e6d29380eb4380824e65bcecf | [
"MIT"
] | null | null | null | server/urls.py | Valchris/AngularJS-Django-Template | 10c90087984dcd9e6d29380eb4380824e65bcecf | [
"MIT"
] | null | null | null | from django.conf.urls import include, url
from django.contrib import admin
from glue.views import *
from glue.api import *
urlpatterns = [
# Examples:
# url(r'^$', 'server.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^api/user/data/', view=user_data),
url(r'^api/user/si... | 26.95 | 52 | 0.64564 |
fab9927c333b405b4078ba0c4fbf717659119bd5 | 1,040 | py | Python | Webcam2YouTubeLive.py | JulianLiederer/ffmpeg-youtube-live | 63ce3b642d41c9368a3cf7b370b3ae7ccaaeeaa7 | [
"MIT"
] | 2 | 2020-03-30T13:55:32.000Z | 2020-06-23T21:37:45.000Z | Webcam2YouTubeLive.py | liederer/ffmpeg-youtube-live | 63ce3b642d41c9368a3cf7b370b3ae7ccaaeeaa7 | [
"MIT"
] | null | null | null | Webcam2YouTubeLive.py | liederer/ffmpeg-youtube-live | 63ce3b642d41c9368a3cf7b370b3ae7ccaaeeaa7 | [
"MIT"
] | 2 | 2022-01-02T18:40:06.000Z | 2022-02-19T12:32:19.000Z | #!/usr/bin/env python
"""
LIVE STREAM TO YOUTUBE LIVE using FFMPEG -- from webcam
https://www.scivision.co/youtube-live-ffmpeg-livestream/
https://support.google.com/youtube/answer/2853702
Windows: get DirectShow device list from:
ffmpeg -list_devices true -f dshow -i dummy
"""
from youtubelive_ffmpeg import youtu... | 26 | 56 | 0.678846 |
fabc177219e2e95776351ee5bdc5b7834e86aaf5 | 17,943 | py | Python | nebula/dao/strategy_dao.py | threathunterX/nebula_web | 2e32e6e7b225e0bd87ee8c847c22862f12c51bb1 | [
"Apache-2.0"
] | 2 | 2019-05-01T09:42:32.000Z | 2019-05-31T01:08:37.000Z | nebula/dao/strategy_dao.py | threathunterX/nebula_web | 2e32e6e7b225e0bd87ee8c847c22862f12c51bb1 | [
"Apache-2.0"
] | 1 | 2021-06-01T23:30:04.000Z | 2021-06-01T23:30:04.000Z | nebula/dao/strategy_dao.py | threathunterX/nebula_web | 2e32e6e7b225e0bd87ee8c847c22862f12c51bb1 | [
"Apache-2.0"
] | 5 | 2019-05-14T09:30:12.000Z | 2020-09-29T04:57:26.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
import json
import logging
from threathunter_common.util import millis_now
from nebula_meta.model import Strategy
from .base_dao import BaseDao, BaseDefaultDao
from . import cache
from ..models.default import StrategyDefaultModel as M... | 32.68306 | 113 | 0.567687 |
fabc961b87da1b6806ebcaaaca91e938753fd2bc | 2,205 | py | Python | src/21_zip.py | TheFlipbook/python_challenge | 21bd42178088bcaafbe02c25a76bc4f2950509b2 | [
"MIT"
] | null | null | null | src/21_zip.py | TheFlipbook/python_challenge | 21bd42178088bcaafbe02c25a76bc4f2950509b2 | [
"MIT"
] | null | null | null | src/21_zip.py | TheFlipbook/python_challenge | 21bd42178088bcaafbe02c25a76bc4f2950509b2 | [
"MIT"
] | null | null | null | # http://www.pythonchallenge.com/pc/bin/hex.html
import bz2
import io
import urllib.request
import urllib.error
import zipfile
import zlib
out_dir = "_out/idiot"
prompt = "http://www.pythonchallenge.com/pc/hex/unreal.jpg"
prompt_top = "http://www.pythonchallenge.com/pc/hex/"
prompt_range = 1152983631
prompt_pass =... | 24.5 | 67 | 0.631293 |
fabc996394a50d0044d4c07929a9f64d42ea2f3d | 86 | py | Python | awards/signals.py | fgmacedo/django-awards | a5307a96f8d39abdd466eb854049dd0f7b13eaee | [
"MIT"
] | null | null | null | awards/signals.py | fgmacedo/django-awards | a5307a96f8d39abdd466eb854049dd0f7b13eaee | [
"MIT"
] | 305 | 2017-05-16T17:45:58.000Z | 2022-03-18T07:20:22.000Z | awards/signals.py | fgmacedo/django-awards | a5307a96f8d39abdd466eb854049dd0f7b13eaee | [
"MIT"
] | null | null | null | from django.dispatch import Signal
badge_awarded = Signal(providing_args=["badge"])
| 17.2 | 48 | 0.790698 |
fabd8c394c9b5ebf1b3c158c1fcc13c3e5dcf49b | 2,596 | py | Python | tests/test_auth/test_upload_passport.py | peterwade153/flybob | 85fcd401bffed9adb06e7943f0c748be822fac75 | [
"MIT"
] | 1 | 2019-09-09T15:04:07.000Z | 2019-09-09T15:04:07.000Z | tests/test_auth/test_upload_passport.py | peterwade153/flybob | 85fcd401bffed9adb06e7943f0c748be822fac75 | [
"MIT"
] | 26 | 2019-03-27T16:59:26.000Z | 2021-06-01T23:35:27.000Z | tests/test_auth/test_upload_passport.py | peterwade153/flybob | 85fcd401bffed9adb06e7943f0c748be822fac75 | [
"MIT"
] | null | null | null | import unittest
from unittest.mock import patch, Mock
from werkzeug.datastructures import FileStorage
import io
import json
from app import app
from app.models.base import db
from app.models.user import User
from app.auth.views import UserPassportphotoView
from app.auth import views
| 28.844444 | 71 | 0.558937 |
fabe4605f255d398162a6669d4a99f004a58a723 | 6,380 | py | Python | qchem/tests/test_two_particle.py | theRoughCode/pennylane | 317f82ef00c752beeef7d2412b88119a753467b4 | [
"Apache-2.0"
] | 1 | 2020-10-15T01:09:27.000Z | 2020-10-15T01:09:27.000Z | qchem/tests/test_two_particle.py | theRoughCode/pennylane | 317f82ef00c752beeef7d2412b88119a753467b4 | [
"Apache-2.0"
] | 1 | 2020-10-04T22:45:45.000Z | 2020-10-04T22:45:45.000Z | qchem/tests/test_two_particle.py | theRoughCode/pennylane | 317f82ef00c752beeef7d2412b88119a753467b4 | [
"Apache-2.0"
] | null | null | null | import os
import numpy as np
import pytest
from pennylane import qchem
from openfermion.hamiltonians import MolecularData
ref_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "test_ref_files")
table_1 = np.array(
[
[0.0, 0.0, 0.0, 0.0, 0.68238953],
[0.0, 1.0, 1.0, 0.0, 0.68238953]... | 37.529412 | 92 | 0.487461 |
fac02a78f618b71b9828bd71e56497f77be5f2b6 | 1,571 | py | Python | example_project/news_with_archive/migrations/0001_initial.py | richardbarran/django-minipub | f6df9b15cf49ba95c5aefed5355a7d3de0241c3f | [
"MIT"
] | 7 | 2016-02-19T12:52:01.000Z | 2021-07-07T05:10:41.000Z | example_project/news_with_archive/migrations/0001_initial.py | richardbarran/django-minipub | f6df9b15cf49ba95c5aefed5355a7d3de0241c3f | [
"MIT"
] | 2 | 2018-05-14T09:28:25.000Z | 2021-05-12T19:21:10.000Z | example_project/news_with_archive/migrations/0001_initial.py | richardbarran/django-minipub | f6df9b15cf49ba95c5aefed5355a7d3de0241c3f | [
"MIT"
] | 1 | 2021-03-24T00:44:22.000Z | 2021-03-24T00:44:22.000Z | # Generated by Django 2.0 on 2018-02-14 13:39
from django.db import migrations, models
import django.utils.timezone
import model_utils.fields
| 44.885714 | 225 | 0.621897 |
fac137087e41cae16ef6b6cc8d7e95ccb0632729 | 6,159 | py | Python | recipes/Python/578344_Simple_Finite_State_Machine_class_/recipe-578344.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/578344_Simple_Finite_State_Machine_class_/recipe-578344.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/578344_Simple_Finite_State_Machine_class_/recipe-578344.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | #! /usr/bin/env python
""" Generic finite state machine class
Initialise the class with a list of tuples - or by adding transitions
Tony Flury - November 2012
Released under an MIT License - free to use so long as the author and other contributers are credited.
"""
# -------------------------------------... | 41.06 | 178 | 0.585485 |
fac23535a62e06c8d2d429ebcc6d5025ccbe4a0b | 873 | py | Python | self-citation-check.py | Darkbladecr/pyresearch | e621923e33be234320ea4b7eafc556ff0f6565dc | [
"MIT"
] | 7 | 2016-08-18T16:06:50.000Z | 2021-09-14T23:53:26.000Z | self-citation-check.py | wenxuefeng3930/pyresearch | e621923e33be234320ea4b7eafc556ff0f6565dc | [
"MIT"
] | 1 | 2016-12-20T10:21:35.000Z | 2016-12-24T07:39:04.000Z | self-citation-check.py | wenxuefeng3930/pyresearch | e621923e33be234320ea4b7eafc556ff0f6565dc | [
"MIT"
] | 3 | 2018-05-02T05:13:42.000Z | 2022-03-12T16:07:56.000Z | from __future__ import division
from optparse import OptionParser
import numpy
parser = OptionParser()
parser.add_option("-i", "--input", dest="input", help="input file")
(options, args) = parser.parse_args()
allCites = numpyImport(options.input)
exCites = numpyImport("%s-self_exclude" % options.input)
fake = list(... | 33.576923 | 97 | 0.681558 |
fac2cf1e6f7f65f78b062d38d2f66e6dbe2d2d4a | 1,631 | py | Python | socialaccount/admin.py | establishment/django-establishment | ad1d04fe9efc748e2fba5b4bc67446d2a4cf12f6 | [
"CC0-1.0"
] | 1 | 2017-04-27T19:35:42.000Z | 2017-04-27T19:35:42.000Z | socialaccount/admin.py | establishment/django-establishment | ad1d04fe9efc748e2fba5b4bc67446d2a4cf12f6 | [
"CC0-1.0"
] | null | null | null | socialaccount/admin.py | establishment/django-establishment | ad1d04fe9efc748e2fba5b4bc67446d2a4cf12f6 | [
"CC0-1.0"
] | null | null | null | from django.contrib import admin
from django import forms
from establishment.accounts.utils import get_user_search_fields
from .models import SocialApp, SocialAccount, SocialToken, SocialProvider
admin.site.register(SocialApp, SocialAppAdmin)
admin.site.register(SocialToken, SocialTokenAdmin)
admin.site.registe... | 30.203704 | 73 | 0.677498 |
fac3be260753887f939d9f7cefb2d2cf2009eb52 | 1,665 | py | Python | tap_github/tap.py | edgarrmondragon/tap-github | 8eec764884801139651570fb9732fe3bfbe4617c | [
"Apache-2.0"
] | null | null | null | tap_github/tap.py | edgarrmondragon/tap-github | 8eec764884801139651570fb9732fe3bfbe4617c | [
"Apache-2.0"
] | null | null | null | tap_github/tap.py | edgarrmondragon/tap-github | 8eec764884801139651570fb9732fe3bfbe4617c | [
"Apache-2.0"
] | null | null | null | """GitHub tap class."""
from typing import List
from singer_sdk import Tap, Stream
from singer_sdk import typing as th # JSON schema typing helpers
from tap_github.streams import (
CommitsStream,
CommunityProfileStream,
IssueCommentsStream,
IssueEventsStream,
IssuesStream,
PullRequestsStream... | 27.295082 | 71 | 0.606006 |
fac3e2d997ccbfcf9bd430f63bf90f4c1c8106fa | 14,513 | py | Python | grand/backends/sqlbackend.py | aplbrain/grand | d85669df17a40834a13478ae200e984e13b41650 | [
"Apache-2.0"
] | 31 | 2020-10-16T16:46:02.000Z | 2022-03-04T20:45:05.000Z | grand/backends/sqlbackend.py | aplbrain/grand | d85669df17a40834a13478ae200e984e13b41650 | [
"Apache-2.0"
] | 15 | 2020-10-15T16:28:49.000Z | 2022-02-10T16:41:32.000Z | grand/backends/sqlbackend.py | aplbrain/grand | d85669df17a40834a13478ae200e984e13b41650 | [
"Apache-2.0"
] | null | null | null | from typing import Hashable, Generator, Optional, Iterable
import time
import pandas as pd
import sqlalchemy
from sqlalchemy.pool import NullPool
from sqlalchemy.sql import select
from sqlalchemy import and_, or_, func
from .backend import Backend
_DEFAULT_SQL_URL = "sqlite:///"
_DEFAULT_SQL_STR_LEN = 64
| 29.86214 | 87 | 0.506718 |
fac3e7ee67811ede3b6d8461b25dcb5790afb786 | 475 | py | Python | Searches/models.py | Sofia190/book_store_app | 3c32f269604948bb4a495802d17794a68188e3a5 | [
"MIT"
] | null | null | null | Searches/models.py | Sofia190/book_store_app | 3c32f269604948bb4a495802d17794a68188e3a5 | [
"MIT"
] | null | null | null | Searches/models.py | Sofia190/book_store_app | 3c32f269604948bb4a495802d17794a68188e3a5 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
from django.conf import settings
from django.db import models
from django.utils import timezone
# Create your models here.
| 12.837838 | 100 | 0.755789 |
fac72b976d32fee06945ec2a9773f4034447c6e7 | 2,875 | py | Python | non_semantic_speech_benchmark/distillation/write_savedmodel_to_disk.py | lix2k3/google-research | d0ec3bbce67641d3159a663e00288cbb578eda7d | [
"Apache-2.0"
] | 1 | 2021-04-12T15:50:58.000Z | 2021-04-12T15:50:58.000Z | non_semantic_speech_benchmark/distillation/write_savedmodel_to_disk.py | abbie0214/google-research | d154ffb7a92f7899807496cb8cb665fb5a01e65c | [
"Apache-2.0"
] | null | null | null | non_semantic_speech_benchmark/distillation/write_savedmodel_to_disk.py | abbie0214/google-research | d154ffb7a92f7899807496cb8cb665fb5a01e65c | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2021 The Google Research 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 35.060976 | 78 | 0.742261 |
fac956be30414f4e9750c5fba11e0bd38288e8e4 | 585 | py | Python | event/migrations/0003_event_org.py | Ortus-Team/Moim | 57bdd94ffb0c3b5d7dc74396264074e2a9a7f84a | [
"MIT"
] | null | null | null | event/migrations/0003_event_org.py | Ortus-Team/Moim | 57bdd94ffb0c3b5d7dc74396264074e2a9a7f84a | [
"MIT"
] | 6 | 2020-06-05T17:44:24.000Z | 2022-02-09T23:15:16.000Z | event/migrations/0003_event_org.py | Ortus-Team/Moim | 57bdd94ffb0c3b5d7dc74396264074e2a9a7f84a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-01-10 08:34
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
| 25.434783 | 126 | 0.634188 |
fac9f7ba04b46ffb5f398af944e0de63eaf7216f | 9,806 | py | Python | mcp23008slave.py | notro/cp-smbusslave | 7aed8eedde2b391ef0d1c9fd246ac3531216b628 | [
"MIT"
] | null | null | null | mcp23008slave.py | notro/cp-smbusslave | 7aed8eedde2b391ef0d1c9fd246ac3531216b628 | [
"MIT"
] | null | null | null | mcp23008slave.py | notro/cp-smbusslave | 7aed8eedde2b391ef0d1c9fd246ac3531216b628 | [
"MIT"
] | 1 | 2020-04-23T10:29:11.000Z | 2020-04-23T10:29:11.000Z | import digitalio
import pulseio
from smbusslave import SMBusSlave
IODIR = 0x00
IPOL = 0x01
GPINTEN = 0x02
DEFVAL = 0x03
INTCON = 0x04
IOCON = 0x05
GPPU = 0x06
INTF = 0x07
INTCAP = 0x08
GPIO = 0x09
OLAT = 0x0a
IOCON_SEQOP = 1 << 5
IOCON_ODR = 1 << 2
IOCON_INTPOL = 1 << 1
# Pull up on interrupt pins are not supported... | 31.632258 | 103 | 0.532021 |
facc8b55215e84d77bae17017885f0c7c6fa4a14 | 2,084 | py | Python | src/main/python/counts_tools/exec/deviation_analysis.py | cday97/beam | 7e1ab50eecaefafd04daab360f8b12bc7cab559b | [
"BSD-3-Clause-LBNL"
] | 123 | 2017-04-06T20:17:19.000Z | 2022-03-02T13:42:15.000Z | src/main/python/counts_tools/exec/deviation_analysis.py | cday97/beam | 7e1ab50eecaefafd04daab360f8b12bc7cab559b | [
"BSD-3-Clause-LBNL"
] | 2,676 | 2017-04-26T20:27:27.000Z | 2022-03-31T16:39:53.000Z | src/main/python/counts_tools/exec/deviation_analysis.py | cday97/beam | 7e1ab50eecaefafd04daab360f8b12bc7cab559b | [
"BSD-3-Clause-LBNL"
] | 60 | 2017-04-06T20:14:32.000Z | 2022-03-30T20:10:53.000Z | import ConfigParser
from datetime import datetime
import os
import sys
import numpy as np
import pandas as pd
import utils.counts
import utils.counts_deviation
__author__ = 'Andrew A Campbell'
# This script finds the days with the greatest deviation from some reference value (such as hourly means or medians)
if __n... | 32.5625 | 116 | 0.669866 |
facf32ca0ec852661f76a8129eb47cff600e9536 | 104 | py | Python | boltstream/responses.py | geekpii/boltstream | 3a107372ac7d67c18fd257c75769f125c855c5b6 | [
"Apache-2.0"
] | 1,735 | 2020-12-07T02:06:43.000Z | 2022-03-18T01:47:06.000Z | boltstream/responses.py | sonrebmax/boltstream | 10a4398b165cc4440c38ab4cd657a74e00cba38b | [
"Apache-2.0"
] | 10 | 2020-12-07T02:41:23.000Z | 2021-12-22T06:47:56.000Z | boltstream/responses.py | sonrebmax/boltstream | 10a4398b165cc4440c38ab4cd657a74e00cba38b | [
"Apache-2.0"
] | 126 | 2020-12-07T03:17:44.000Z | 2022-03-12T18:06:27.000Z | from django.http import HttpResponse
| 17.333333 | 42 | 0.807692 |
fad2a283163dcc8ae897624ab986731628e63b17 | 5,457 | py | Python | ChessRender/RenderFsmCommon/figure_manage.py | PavelLebed20/chess_classic | 72f7d08cadae8db9c65d61411bcdc8c79bfa04c3 | [
"Apache-2.0"
] | 1 | 2019-06-04T11:08:55.000Z | 2019-06-04T11:08:55.000Z | ChessRender/RenderFsmCommon/figure_manage.py | PavelLebed20/chess_classic | 72f7d08cadae8db9c65d61411bcdc8c79bfa04c3 | [
"Apache-2.0"
] | 115 | 2019-03-02T08:02:50.000Z | 2019-06-02T16:28:00.000Z | ChessRender/RenderFsmCommon/figure_manage.py | PavelLebed20/chess_classic | 72f7d08cadae8db9c65d61411bcdc8c79bfa04c3 | [
"Apache-2.0"
] | null | null | null | ###############################
# MODULE: Object settings #
# AUTHOR: Yangildin Ivan #
# LAST UPDATE: 08/04/2019 #
###############################
import copy
from enum import Enum, IntEnum
from direct.gui.OnscreenText import TransparencyAttrib
BLACK = (0.15, 0.15, 0.15, 1)
#BLACK = (0.0, 0.0, 0.0, 1)
WH... | 37.376712 | 97 | 0.653839 |
fad48c005d43403bbab5e6857a996949ef7c14d5 | 1,202 | py | Python | hostel_project/hostel_webapp/views.py | harsh-ux/hostel-app | 89c341d55116913de81a3c7bd8a08d77729c39cb | [
"MIT"
] | null | null | null | hostel_project/hostel_webapp/views.py | harsh-ux/hostel-app | 89c341d55116913de81a3c7bd8a08d77729c39cb | [
"MIT"
] | null | null | null | hostel_project/hostel_webapp/views.py | harsh-ux/hostel-app | 89c341d55116913de81a3c7bd8a08d77729c39cb | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.views import generic
from django.shortcuts import redirect
from django.utils import timezone
from .models import Complaint
from .forms import ComplaintForm
hostels = [
'B1',
'B2',
'B5'
]
# Create your views here.
| 25.041667 | 64 | 0.655574 |
fad4a6741d0059fc88b188ba3616c0961edb64af | 4,679 | py | Python | map_crawling/map_crawling_code/Map_crawling.py | yumei86/iRamen_linebot | 5b9f2653076faa04118f281970edf639288d79fd | [
"MIT"
] | 16 | 2020-12-29T11:23:01.000Z | 2022-01-01T01:55:42.000Z | map_crawling/map_crawling_code/Map_crawling.py | yumei86/iRamen_linebot | 5b9f2653076faa04118f281970edf639288d79fd | [
"MIT"
] | null | null | null | map_crawling/map_crawling_code/Map_crawling.py | yumei86/iRamen_linebot | 5b9f2653076faa04118f281970edf639288d79fd | [
"MIT"
] | 4 | 2020-12-27T14:43:35.000Z | 2021-02-26T09:35:03.000Z | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from time import sleep
import time
import csv
import pyautogui
#-----------------
options = webdriver.ChromeOptions()
op... | 27.046243 | 203 | 0.579397 |
fada5720fcd6da7cbf8b1e56a59906ef13697176 | 2,052 | py | Python | blamepipeline/preprocess/match_article_entry.py | jmmaki/BlamePipeline | ca5f1b54ebe62bcbea4b13f70c15b14002133d7c | [
"MIT"
] | null | null | null | blamepipeline/preprocess/match_article_entry.py | jmmaki/BlamePipeline | ca5f1b54ebe62bcbea4b13f70c15b14002133d7c | [
"MIT"
] | null | null | null | blamepipeline/preprocess/match_article_entry.py | jmmaki/BlamePipeline | ca5f1b54ebe62bcbea4b13f70c15b14002133d7c | [
"MIT"
] | null | null | null | # encoding: utf-8
'''
Match articles with annotated data
'''
from collections import defaultdict
import argparse
from blamepipeline.preprocess.dataloader import Dataset
case1, case2 = 0, 0
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='match articles and entries')
parser.add_ar... | 27 | 86 | 0.618421 |
fadaa73e2ce983f8ee457b6bf67edceb51e25ddc | 197 | py | Python | res/TensorFlowPythonExamples/examples/while/__init__.py | bogus-sudo/ONE-1 | 7052a817eff661ec2854ed2e7ee0de5e8ba82b55 | [
"Apache-2.0"
] | 255 | 2020-05-22T07:45:29.000Z | 2022-03-29T23:58:22.000Z | res/TensorFlowPythonExamples/examples/while/__init__.py | bogus-sudo/ONE-1 | 7052a817eff661ec2854ed2e7ee0de5e8ba82b55 | [
"Apache-2.0"
] | 5,102 | 2020-05-22T07:48:33.000Z | 2022-03-31T23:43:39.000Z | res/TensorFlowPythonExamples/examples/while/__init__.py | bogus-sudo/ONE-1 | 7052a817eff661ec2854ed2e7ee0de5e8ba82b55 | [
"Apache-2.0"
] | 120 | 2020-05-22T07:51:08.000Z | 2022-02-16T19:08:05.000Z | import tensorflow as tf
i = tf.compat.v1.constant(0, name="Hole")
c = lambda i: tf.compat.v1.less(i, 10)
b = lambda i: tf.compat.v1.add(i, 1)
r = tf.compat.v1.while_loop(c, b, [i], name="While")
| 24.625 | 52 | 0.654822 |
fade8de862f192db4db57a6e8e338b8eea806aa8 | 1,628 | py | Python | tests/prosperpy/overlays/test_bollinger_bands.py | CaptainBriot/prosperpy | 831abb9c9e3b730c81895647e33a59854c4e4648 | [
"MIT"
] | 2 | 2018-01-28T06:11:37.000Z | 2018-02-04T16:01:30.000Z | tests/prosperpy/overlays/test_bollinger_bands.py | CaptainBriot/prosperpy | 831abb9c9e3b730c81895647e33a59854c4e4648 | [
"MIT"
] | 1 | 2018-03-20T12:10:40.000Z | 2018-03-21T00:08:04.000Z | tests/prosperpy/overlays/test_bollinger_bands.py | CaptainBriot/prosperpy | 831abb9c9e3b730c81895647e33a59854c4e4648 | [
"MIT"
] | 2 | 2019-04-06T14:33:26.000Z | 2020-06-25T23:34:32.000Z | import unittest
import decimal
import prosperpy
| 49.333333 | 113 | 0.651106 |
fae0583fbc853b8b77719ed67cdd0c3a13ee094a | 156 | py | Python | projects/course_intro/raw_input.py | ProgressBG-Python-Course/ProgressBG-VC-Python | 37f8be60fb73d558ebd9e3c2700c88dcb64e7f4f | [
"MIT"
] | null | null | null | projects/course_intro/raw_input.py | ProgressBG-Python-Course/ProgressBG-VC-Python | 37f8be60fb73d558ebd9e3c2700c88dcb64e7f4f | [
"MIT"
] | null | null | null | projects/course_intro/raw_input.py | ProgressBG-Python-Course/ProgressBG-VC-Python | 37f8be60fb73d558ebd9e3c2700c88dcb64e7f4f | [
"MIT"
] | null | null | null | machine_number = 43
user_number = int( raw_input("enter a number: ") )
print( type(user_number) )
if user_number == machine_number:
print("Bravo!!!")
| 15.6 | 50 | 0.692308 |
fae33f3464d3a11adc1fa5ba692617e0ef8bced7 | 15,377 | py | Python | algorithm.py | James0231/Data-Visualization-PJ | 053a1fdb26e07381e44cfd13cb989631e86b8b82 | [
"MIT"
] | 5 | 2019-01-24T02:53:43.000Z | 2020-10-17T09:01:52.000Z | algorithm.py | James0231/Data-Visualization-PJ | 053a1fdb26e07381e44cfd13cb989631e86b8b82 | [
"MIT"
] | 1 | 2020-02-20T07:55:50.000Z | 2021-11-18T12:31:10.000Z | algorithm.py | James0231/Data-Visualization-PJ | 053a1fdb26e07381e44cfd13cb989631e86b8b82 | [
"MIT"
] | 1 | 2022-03-16T05:49:17.000Z | 2022-03-16T05:49:17.000Z | import copy
import numpy as np
| 38.929114 | 83 | 0.409703 |
fae347d92c6318856795474c7e5ee0e6b5c0295e | 31 | py | Python | src/DeepReinforcementLearning/__init__.py | Quantum56/AlphaZero-AI | 504522feb4e67211d5fb592f4b14a2cb8271d015 | [
"MIT"
] | 1 | 2019-11-12T01:55:36.000Z | 2019-11-12T01:55:36.000Z | src/DeepReinforcementLearning/__init__.py | Quantum56/AlphaZero-AI | 504522feb4e67211d5fb592f4b14a2cb8271d015 | [
"MIT"
] | 14 | 2019-11-12T00:09:26.000Z | 2022-02-10T00:46:30.000Z | src/DeepReinforcementLearning/__init__.py | Quantum56/AlphaZero-AI | 504522feb4e67211d5fb592f4b14a2cb8271d015 | [
"MIT"
] | null | null | null | # from AlphaZero-AI import game | 31 | 31 | 0.806452 |
fae38456a099876d2c62dc6bca6f8fac9beb8f54 | 721 | py | Python | utilities/tests/testTwitterAPI.py | nikhilsajwan/uhackathon | 7bc4a6ac86959a8f9a639bf8aa984582d14b639f | [
"MIT"
] | 4 | 2019-07-02T22:59:48.000Z | 2021-03-03T21:14:09.000Z | utilities/tests/testTwitterAPI.py | SCCapstone/Social-Monomania | 61f35d59960e2695820b9b072b7663e156b05232 | [
"MIT"
] | 3 | 2020-06-06T00:48:24.000Z | 2021-06-02T01:06:20.000Z | utilities/tests/testTwitterAPI.py | SCCapstone/Social-Monomania | 61f35d59960e2695820b9b072b7663e156b05232 | [
"MIT"
] | null | null | null | from django.test import TestCase
from ..twitterAPI import search | 37.947368 | 96 | 0.642164 |
fae3fe1eca892e27465fc00f29bc82ac27f5a740 | 2,130 | py | Python | recipes/mio/all/conanfile.py | rockandsalt/conan-center-index | d739adcec3e4dd4c250eff559ceb738e420673dd | [
"MIT"
] | 562 | 2019-09-04T12:23:43.000Z | 2022-03-29T16:41:43.000Z | recipes/mio/all/conanfile.py | rockandsalt/conan-center-index | d739adcec3e4dd4c250eff559ceb738e420673dd | [
"MIT"
] | 9,799 | 2019-09-04T12:02:11.000Z | 2022-03-31T23:55:45.000Z | recipes/mio/all/conanfile.py | rockandsalt/conan-center-index | d739adcec3e4dd4c250eff559ceb738e420673dd | [
"MIT"
] | 1,126 | 2019-09-04T11:57:46.000Z | 2022-03-31T16:43:38.000Z | from conans import ConanFile, tools
import os
required_conan_version = ">=1.33.0"
| 39.444444 | 109 | 0.668075 |
fae455410ed9ea4b0f8b98a27a1ac01a68948851 | 3,330 | py | Python | auto-test/tools/tcpreplay_tools.py | asterfusion/Tapplet | 917020fce2aaa2678c36a91fb91f60b36142ad9e | [
"Apache-2.0"
] | 1 | 2019-12-30T11:49:35.000Z | 2019-12-30T11:49:35.000Z | auto-test/tools/tcpreplay_tools.py | asterfusion/Tapplet | 917020fce2aaa2678c36a91fb91f60b36142ad9e | [
"Apache-2.0"
] | null | null | null | auto-test/tools/tcpreplay_tools.py | asterfusion/Tapplet | 917020fce2aaa2678c36a91fb91f60b36142ad9e | [
"Apache-2.0"
] | null | null | null |
import os
import math
from scapy.all import *
from pytest_main import eth_config
from pytest_main import dump_eth_config
tcpdump_output="./result/tresult.pcap"
#this function user tcpdump options -Q so:tcpdump version must >4.9.1
# editcap_num : New packages are generated from the <editcap_num> package
| 37.41573 | 158 | 0.657057 |
fae463c351e42ad7cf6fcfb323f650cd6cc418ae | 304 | py | Python | tests/test_statebus.py | invisible-college/tightrope | f0c96dd6702e9d4b730cffac70829b56f76077b6 | [
"MIT"
] | 1 | 2021-08-22T05:09:05.000Z | 2021-08-22T05:09:05.000Z | tests/test_statebus.py | invisible-college/tightrope | f0c96dd6702e9d4b730cffac70829b56f76077b6 | [
"MIT"
] | 3 | 2017-09-18T01:45:44.000Z | 2017-10-17T23:26:22.000Z | tests/test_statebus.py | invisible-college/tightrope | f0c96dd6702e9d4b730cffac70829b56f76077b6 | [
"MIT"
] | null | null | null | // Test calls to statebus server
var bus = require('statebus/server')();
bus.ws_client("/*", "ws://aws.local-box.org:45678");
x = bus.fetch("/paul/code");
console.log(JSON.stringify(x));
if (!x.written) {
console.log("No member .written found, setting it now");
x.written = "here it is";
}
save(x);
| 25.333333 | 58 | 0.654605 |
fae48fbff8a06a587206ef5fa49056a7f5046d73 | 1,205 | py | Python | src/pyams_utils/interfaces/intids.py | Py-AMS/pyams-utils | 65b166596a8b9f66fb092a69ce5d53ac6675685e | [
"ZPL-2.1"
] | null | null | null | src/pyams_utils/interfaces/intids.py | Py-AMS/pyams-utils | 65b166596a8b9f66fb092a69ce5d53ac6675685e | [
"ZPL-2.1"
] | null | null | null | src/pyams_utils/interfaces/intids.py | Py-AMS/pyams-utils | 65b166596a8b9f66fb092a69ce5d53ac6675685e | [
"ZPL-2.1"
] | null | null | null | #
# Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net>
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRAN... | 26.777778 | 97 | 0.699585 |
fae717b2d4db53ea73a947ac37133ff735c46b9c | 282 | py | Python | reo/migrations/0083_merge_20201207_1317.py | akuam1/REopt_Lite_API | fb5a88ee52351b725fda5c15712b617f6e97ddca | [
"BSD-3-Clause"
] | 41 | 2020-02-21T08:25:17.000Z | 2022-01-14T23:06:42.000Z | reo/migrations/0083_merge_20201207_1317.py | akuam1/REopt_Lite_API | fb5a88ee52351b725fda5c15712b617f6e97ddca | [
"BSD-3-Clause"
] | 167 | 2020-02-17T17:26:47.000Z | 2022-01-20T20:36:54.000Z | reo/migrations/0083_merge_20201207_1317.py | akuam1/REopt_Lite_API | fb5a88ee52351b725fda5c15712b617f6e97ddca | [
"BSD-3-Clause"
] | 31 | 2020-02-20T00:22:51.000Z | 2021-12-10T05:48:08.000Z | # Generated by Django 2.2.13 on 2020-12-07 13:17
from django.db import migrations
| 18.8 | 59 | 0.659574 |
fae76c8d74e47c824e067609790c8f64a424bb8f | 4,020 | py | Python | source/cifar/defense/base.py | DingfanChen/RelaxLoss | d21c82dee7016cd0cb6688a408104eeb0d832790 | [
"MIT"
] | 4 | 2022-02-08T06:39:13.000Z | 2022-03-27T13:57:13.000Z | source/cifar/defense/base.py | DingfanChen/RelaxLoss | d21c82dee7016cd0cb6688a408104eeb0d832790 | [
"MIT"
] | 1 | 2022-02-22T10:17:49.000Z | 2022-02-22T22:10:52.000Z | source/cifar/defense/base.py | DingfanChen/RelaxLoss | d21c82dee7016cd0cb6688a408104eeb0d832790 | [
"MIT"
] | null | null | null | import os
import sys
import time
import torch
import torch.nn as nn
import random
import numpy as np
import torchvision.transforms as transforms
FILE_DIR = os.path.dirname(os.path.abspath(__file__))
DATA_ROOT = os.path.join(FILE_DIR, '../../../data')
sys.path.append(os.path.join(FILE_DIR, '../'))
sys.path.append(os.pa... | 48.433735 | 119 | 0.582338 |
fae774df4ad53722905069cd6e306f9144ad0112 | 4,462 | py | Python | hangman.py | maritzapott/hangmangame | 773232abf8095ceef5ccfe38189c316064fc6f4b | [
"MIT"
] | null | null | null | hangman.py | maritzapott/hangmangame | 773232abf8095ceef5ccfe38189c316064fc6f4b | [
"MIT"
] | null | null | null | hangman.py | maritzapott/hangmangame | 773232abf8095ceef5ccfe38189c316064fc6f4b | [
"MIT"
] | 1 | 2022-02-19T04:20:47.000Z | 2022-02-19T04:20:47.000Z | # HANGMAN GAME
from collections import namedtuple
import main
game_board = namedtuple('game_board', ['board', 'mistakes', 'letters', 'status'])
def welcome():
"""Starts the game."""
print("Welcome")
word = main._choose_word()
_print_start_game()
_print_start_spaces(word)
game_board.letters = []... | 30.561644 | 112 | 0.571717 |
fae78fe389b664367fb4e390660faee2c1fa36ea | 159 | py | Python | shows/Text.py | fenceFoil/canopto | 2692d19282c8c7090d7e4201716627789d38a821 | [
"BSD-3-Clause"
] | null | null | null | shows/Text.py | fenceFoil/canopto | 2692d19282c8c7090d7e4201716627789d38a821 | [
"BSD-3-Clause"
] | null | null | null | shows/Text.py | fenceFoil/canopto | 2692d19282c8c7090d7e4201716627789d38a821 | [
"BSD-3-Clause"
] | null | null | null | #!/bin/python3
import Canopto
import pygame
from pygame.locals import *
import time
import random
import colorsys
c = Canopto(2, 8, previewEnabled = True)
| 12.230769 | 40 | 0.761006 |
faeb54d9605b6182b7e92333f3846926f9dfc119 | 8,246 | py | Python | ls/joyous/models/one_off_events.py | tjwalch/ls.joyous | 0ee50d3af71c066bddb2310948b02f74b52ee253 | [
"BSD-3-Clause"
] | 72 | 2018-03-16T16:35:08.000Z | 2022-03-23T08:09:33.000Z | polrev/ls/joyous/models/one_off_events.py | polrev-github/polrev-django | 99108ace1a5307b14c3eccb424a9f9616e8c02ae | [
"MIT"
] | 41 | 2018-03-25T20:36:52.000Z | 2022-03-10T08:59:27.000Z | polrev/ls/joyous/models/one_off_events.py | polrev-github/polrev-django | 99108ace1a5307b14c3eccb424a9f9616e8c02ae | [
"MIT"
] | 28 | 2018-08-13T22:36:09.000Z | 2022-03-17T12:24:15.000Z | # ------------------------------------------------------------------------------
# Joyous events models
# ------------------------------------------------------------------------------
import datetime as dt
from django.db import models
from django.db.models.query import ModelIterable
from django.utils import timezone
f... | 37.652968 | 80 | 0.557361 |
faec8aa99a18a6be10e65d9e1fdc912f5b1a463a | 2,534 | py | Python | examples/titanic/assets/dataset/opener.py | eliaskousk/substra | 00b9cb6e8adfa4cffacc5e1df7f9d64ce1f3dde8 | [
"Apache-2.0"
] | 119 | 2019-10-25T13:30:58.000Z | 2021-06-02T12:13:04.000Z | examples/titanic/assets/dataset/opener.py | eliaskousk/substra | 00b9cb6e8adfa4cffacc5e1df7f9d64ce1f3dde8 | [
"Apache-2.0"
] | 182 | 2019-10-29T17:27:22.000Z | 2021-06-02T11:54:34.000Z | examples/titanic/assets/dataset/opener.py | eliaskousk/substra | 00b9cb6e8adfa4cffacc5e1df7f9d64ce1f3dde8 | [
"Apache-2.0"
] | 22 | 2019-10-25T13:45:41.000Z | 2021-05-11T20:55:22.000Z | import os
import pandas as pd
import random
import string
import numpy as np
import substratools as tools
| 33.786667 | 99 | 0.601026 |
faedb7593b3fda8461621c6c98b5de97e2ad88e0 | 1,064 | py | Python | test/integration/test_natural_language_understanding_v1.py | jsstylos/waston-developer-cloud-python-sdk | 97de097b8c86622ab2f30f5386bb74321d28addf | [
"Apache-2.0"
] | 1,579 | 2015-10-08T14:02:17.000Z | 2022-02-28T10:49:21.000Z | test/integration/test_natural_language_understanding_v1.py | jsstylos/waston-developer-cloud-python-sdk | 97de097b8c86622ab2f30f5386bb74321d28addf | [
"Apache-2.0"
] | 749 | 2015-10-08T20:00:24.000Z | 2022-03-21T21:33:17.000Z | test/integration/test_natural_language_understanding_v1.py | jsstylos/waston-developer-cloud-python-sdk | 97de097b8c86622ab2f30f5386bb74321d28addf | [
"Apache-2.0"
] | 1,006 | 2015-10-24T06:30:58.000Z | 2022-03-23T07:10:04.000Z | # coding: utf-8
from unittest import TestCase
import os
import ibm_watson
import pytest
import json
import time
from ibm_watson.natural_language_understanding_v1 import Features, EntitiesOptions, KeywordsOptions
| 39.407407 | 109 | 0.727444 |
faeec08412c17e1886d0f4332b15cb71403f5016 | 1,337 | py | Python | project/RealEstateMarketPlace/views/ListConversationsView.py | Mihaaai/RealEstateMarketplace | 9b9fa1376436801303e1ed0207ef09845a7d827e | [
"Apache-2.0"
] | null | null | null | project/RealEstateMarketPlace/views/ListConversationsView.py | Mihaaai/RealEstateMarketplace | 9b9fa1376436801303e1ed0207ef09845a7d827e | [
"Apache-2.0"
] | null | null | null | project/RealEstateMarketPlace/views/ListConversationsView.py | Mihaaai/RealEstateMarketplace | 9b9fa1376436801303e1ed0207ef09845a7d827e | [
"Apache-2.0"
] | null | null | null | from django.views.generic import ListView
from rest_framework import authentication, permissions
from ..models import Message,Listing,User
from django.db.models import Q | 51.423077 | 174 | 0.735976 |
faef976b28e6bb519f13efc13c691a451b2b70dc | 778 | py | Python | image/src/binarization.py | Wookhwang/Tensorflow_by_wook | 1388e2856564e93fa2e56b79530a7aaa3cec5b30 | [
"Apache-2.0"
] | null | null | null | image/src/binarization.py | Wookhwang/Tensorflow_by_wook | 1388e2856564e93fa2e56b79530a7aaa3cec5b30 | [
"Apache-2.0"
] | null | null | null | image/src/binarization.py | Wookhwang/Tensorflow_by_wook | 1388e2856564e93fa2e56b79530a7aaa3cec5b30 | [
"Apache-2.0"
] | null | null | null | import cv2 as cv
cv.namedWindow('Binary')
cv.createTrackbar('threshold', 'Binary', 0, 255, nothing)
cv.setTrackbarPos('threshold', 'Binary', 167)
img_color = cv.imread('wallpaper-2994965.jpg', cv.IMREAD_COLOR)
cv.imshow('Color', img_color)
cv.waitKey(0)
img_gray = cv.cvtColor(img_color, cv.COLOR_BGR2... | 22.228571 | 77 | 0.672237 |
faf23c7862d37bd1a9a0c7bec5cf1daca9c2d615 | 1,210 | py | Python | member_join.py | zStartKiller/BotDiscordPython | 06283f03231c542fc72a64f43860d9d89b1f5c58 | [
"MIT"
] | 4 | 2021-12-03T18:23:13.000Z | 2021-12-31T00:18:29.000Z | member_join.py | zStartKiller/BotDiscordPython | 06283f03231c542fc72a64f43860d9d89b1f5c58 | [
"MIT"
] | null | null | null | member_join.py | zStartKiller/BotDiscordPython | 06283f03231c542fc72a64f43860d9d89b1f5c58 | [
"MIT"
] | 1 | 2021-12-03T18:29:57.000Z | 2021-12-03T18:29:57.000Z | import asyncio
import discord
from discord import channel
from discord.ext import commands
import random
from main import bot
| 40.333333 | 117 | 0.683471 |
faf418ba43d0d5638a18bcd19474ba97144519be | 4,020 | py | Python | instauto/api/actions/structs/friendships.py | marvic2409/instauto | 6a36a7369e687b8eaf3bf9fee0cc42f6d9703734 | [
"MIT"
] | null | null | null | instauto/api/actions/structs/friendships.py | marvic2409/instauto | 6a36a7369e687b8eaf3bf9fee0cc42f6d9703734 | [
"MIT"
] | null | null | null | instauto/api/actions/structs/friendships.py | marvic2409/instauto | 6a36a7369e687b8eaf3bf9fee0cc42f6d9703734 | [
"MIT"
] | null | null | null | from . import common as cmmn
import logging
import uuid
from typing import Optional
from instauto.api.structs import Surface
logger = logging.getLogger(__name__)
# The requests for getting followers and your following, look exactly the same
# but we want to keep them in seperate structs for clarity.
GetFollow... | 32.16 | 82 | 0.651741 |