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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2bb8dd1b3871424dc498a9ab4db3881c1e6c6772 | 1,584 | py | Python | LeetCodeSolver/pythonSolutions/from201to300/Solution213.py | ZeromaXHe/Learning-Platform | ec75c2dbd472a568d1cd482450cc471295659c62 | [
"Apache-2.0"
] | null | null | null | LeetCodeSolver/pythonSolutions/from201to300/Solution213.py | ZeromaXHe/Learning-Platform | ec75c2dbd472a568d1cd482450cc471295659c62 | [
"Apache-2.0"
] | null | null | null | LeetCodeSolver/pythonSolutions/from201to300/Solution213.py | ZeromaXHe/Learning-Platform | ec75c2dbd472a568d1cd482450cc471295659c62 | [
"Apache-2.0"
] | null | null | null | from typing import List
| 27.789474 | 125 | 0.541667 |
2bb98fcaa1938a0b80ec364136a3876078651d5b | 2,083 | py | Python | dialogs.py | 6dba/async-telegram-bot | 3950f5bc51be9f2f93924442948a98db52332d8e | [
"MIT"
] | null | null | null | dialogs.py | 6dba/async-telegram-bot | 3950f5bc51be9f2f93924442948a98db52332d8e | [
"MIT"
] | null | null | null | dialogs.py | 6dba/async-telegram-bot | 3950f5bc51be9f2f93924442948a98db52332d8e | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from aiogram.types import ReplyKeyboardRemove, \
ReplyKeyboardMarkup, KeyboardButton, \
InlineKeyboardMarkup, InlineKeyboardButton
""" """
message = Messages()
| 40.057692 | 318 | 0.649544 |
2bbb687f364745f2b77d52b36e535e60715406d8 | 1,584 | py | Python | reflexy/base/tests/test_reflex.py | eso/reflexy | 5ea03bae806488c01a53ccffe9701066baa5964d | [
"BSD-3-Clause"
] | null | null | null | reflexy/base/tests/test_reflex.py | eso/reflexy | 5ea03bae806488c01a53ccffe9701066baa5964d | [
"BSD-3-Clause"
] | null | null | null | reflexy/base/tests/test_reflex.py | eso/reflexy | 5ea03bae806488c01a53ccffe9701066baa5964d | [
"BSD-3-Clause"
] | null | null | null | import unittest
from reflexy.base import reflex
if __name__ == "__main__":
unittest.main()
| 35.2 | 71 | 0.625631 |
2bbc1f15ebca775f3d32d7270961e05f3489946d | 1,240 | py | Python | usaspending_api/common/tests/test_limitable_serializer.py | truthiswill/usaspending-api | bd7d915442e2ec94cc830c480ceeffd4479be6c0 | [
"CC0-1.0"
] | null | null | null | usaspending_api/common/tests/test_limitable_serializer.py | truthiswill/usaspending-api | bd7d915442e2ec94cc830c480ceeffd4479be6c0 | [
"CC0-1.0"
] | 3 | 2020-02-12T01:16:46.000Z | 2021-06-10T20:36:57.000Z | usaspending_api/common/tests/test_limitable_serializer.py | truthiswill/usaspending-api | bd7d915442e2ec94cc830c480ceeffd4479be6c0 | [
"CC0-1.0"
] | null | null | null | import pytest
import json
from model_mommy import mommy
from usaspending_api.awards.models import Award
| 24.8 | 66 | 0.678226 |
2bbd518b542fcf51bf60ace183944d104900efbf | 55 | py | Python | luigi/contrib/__init__.py | Mappy/luigi | 539cd2cf69902bb6cef688afdf55e991cae4b537 | [
"Apache-2.0"
] | 2 | 2017-05-03T12:15:20.000Z | 2018-09-14T02:28:54.000Z | luigi/contrib/__init__.py | Mappy/luigi | 539cd2cf69902bb6cef688afdf55e991cae4b537 | [
"Apache-2.0"
] | null | null | null | luigi/contrib/__init__.py | Mappy/luigi | 539cd2cf69902bb6cef688afdf55e991cae4b537 | [
"Apache-2.0"
] | null | null | null | """Package containing optional and-on functionality.""" | 55 | 55 | 0.781818 |
2bbd83bd7fa3a6706dcfa519b317d2baf63d98d2 | 1,993 | py | Python | ronny/runner.py | ynop/ronny | f40c0d22d02c70bb7994f84db11ead45208b6287 | [
"MIT"
] | null | null | null | ronny/runner.py | ynop/ronny | f40c0d22d02c70bb7994f84db11ead45208b6287 | [
"MIT"
] | null | null | null | ronny/runner.py | ynop/ronny | f40c0d22d02c70bb7994f84db11ead45208b6287 | [
"MIT"
] | null | null | null | import sys
import argparse
import os
import re
import yaml
from . import workflow
| 30.661538 | 128 | 0.60562 |
2bbda0a6bf0bc0ed91be9d1635d26984ee81885c | 1,422 | py | Python | src/Query/apifuzz.py | codexgigassys/codex-backend | 1e6b946f05e2fd9ce80b207046fe168f49cc2db2 | [
"MIT"
] | 161 | 2016-08-03T14:25:20.000Z | 2021-08-11T03:18:35.000Z | src/Query/apifuzz.py | codexgigassys/codex-backend | 1e6b946f05e2fd9ce80b207046fe168f49cc2db2 | [
"MIT"
] | 115 | 2016-08-08T09:24:08.000Z | 2020-03-07T06:48:02.000Z | src/Query/apifuzz.py | codexgigassys/codex-backend | 1e6b946f05e2fd9ce80b207046fe168f49cc2db2 | [
"MIT"
] | 46 | 2016-08-04T08:25:28.000Z | 2021-09-05T23:46:55.000Z | # Copyright (C) 2016 Deloitte Argentina.
# This file is part of CodexGigas - https://github.com/codexgigassys/
# See the file 'LICENSE' for copying permission.
import pathmagic
from pymongo import MongoClient
import ssdeep
from env import envget
| 25.392857 | 74 | 0.573136 |
2bbdc05950e7d038fdccba28a8a2efe5bcf61d8a | 1,278 | py | Python | sample_dmatrix.py | daimeng/py-geode | a4146804e4def71a6b430e5a16f6e0b1a65deefe | [
"MIT"
] | null | null | null | sample_dmatrix.py | daimeng/py-geode | a4146804e4def71a6b430e5a16f6e0b1a65deefe | [
"MIT"
] | 9 | 2018-11-15T00:44:11.000Z | 2019-03-01T02:52:34.000Z | sample_dmatrix.py | daimeng/py-geode | a4146804e4def71a6b430e5a16f6e0b1a65deefe | [
"MIT"
] | null | null | null | import aiohttp
import pandas as pd
import sys
import asyncio
from geode.dispatcher import AsyncDispatcher
if __name__ == '__main__':
asyncio.run(main())
| 27.782609 | 124 | 0.654147 |
2bbe4807e1342fac308483071d778e38b6d71f3f | 2,959 | py | Python | yasql/apps/sqlorders/urls.py | Fanduzi/YaSQL | bc6366a9b1c1e9ed84fd24ea2b4a21f8f99d0af5 | [
"Apache-2.0"
] | 443 | 2018-02-08T02:53:48.000Z | 2020-10-13T10:01:55.000Z | yasql/apps/sqlorders/urls.py | Fanduzi/YaSQL | bc6366a9b1c1e9ed84fd24ea2b4a21f8f99d0af5 | [
"Apache-2.0"
] | 27 | 2020-10-14T10:01:52.000Z | 2022-03-12T00:49:47.000Z | yasql/apps/sqlorders/urls.py | Fanduzi/YaSQL | bc6366a9b1c1e9ed84fd24ea2b4a21f8f99d0af5 | [
"Apache-2.0"
] | 148 | 2018-03-15T06:07:25.000Z | 2020-08-17T14:58:45.000Z | # -*- coding:utf-8 -*-
# edit by fuzongfei
from django.urls import path
from sqlorders import views
urlpatterns = [
# SQL
path('envs', views.GetDBEnvironment.as_view(), name='v1.sqlorders.db-environment'),
path('schemas', views.GetDbSchemas.as_view(), name='v1.sqlorders.db-schemas'),
path('incep/synt... | 61.645833 | 114 | 0.707672 |
2bbef937c77131c86b085238ab54baf19c2dd111 | 3,119 | py | Python | pandacommon/pandautils/thread_utils.py | PanDAWMS/panda-common | 0617167abb2c84e964434a73e1f3bcebc9bbb526 | [
"Apache-2.0"
] | 1 | 2020-04-17T10:25:08.000Z | 2020-04-17T10:25:08.000Z | pandacommon/pandautils/thread_utils.py | PanDAWMS/panda-common | 0617167abb2c84e964434a73e1f3bcebc9bbb526 | [
"Apache-2.0"
] | 4 | 2015-09-28T11:11:39.000Z | 2020-10-16T11:21:31.000Z | pandacommon/pandautils/thread_utils.py | PanDAWMS/panda-common | 0617167abb2c84e964434a73e1f3bcebc9bbb526 | [
"Apache-2.0"
] | 3 | 2015-04-06T13:23:43.000Z | 2018-01-19T09:11:35.000Z | import os
import threading
import socket
import datetime
import random
import multiprocessing
# map with lock
# weighted lists
| 29.149533 | 109 | 0.54665 |
2bc00265a709828bcb44535b1333cf0cc4954225 | 4,456 | py | Python | 09WebFramework/day04/basic04.py | HaoZhang95/PythonAndMachineLearning | b897224b8a0e6a5734f408df8c24846a98c553bf | [
"MIT"
] | 937 | 2019-05-08T08:46:25.000Z | 2022-03-31T12:56:07.000Z | 09WebFramework/day04/basic04.py | Sakura-gh/Python24 | b97e18867264a0647d5645c7d757a0040e755577 | [
"MIT"
] | 47 | 2019-09-17T10:06:02.000Z | 2022-03-11T23:46:52.000Z | 09WebFramework/day04/basic04.py | Sakura-gh/Python24 | b97e18867264a0647d5645c7d757a0040e755577 | [
"MIT"
] | 354 | 2019-05-10T02:15:26.000Z | 2022-03-30T05:52:57.000Z | """
ORMdjango, object-related-mapping--
ORMsql
uid,usernamesqlinsertUser
"""
# ORMtype
# metaclass
# User2Model
def test01():
u = User(uid=12345, name='Michael', email='test@orm.org', password='my-pwd')
# print(u.__dict__)
u.save()
def test02():
list = ['12356', "laowang", "email... | 28.748387 | 105 | 0.507855 |
2bc366f88045d8e0fb26fb566dafc8ab43dfdefc | 146 | py | Python | eventi/core/admin.py | klebercode/lionsclub | 60db85d44214561d20f85673e8f6c047fab07ee9 | [
"MIT"
] | 1 | 2022-02-28T00:07:14.000Z | 2022-02-28T00:07:14.000Z | eventi/core/admin.py | klebercode/lionsclub | 60db85d44214561d20f85673e8f6c047fab07ee9 | [
"MIT"
] | null | null | null | eventi/core/admin.py | klebercode/lionsclub | 60db85d44214561d20f85673e8f6c047fab07ee9 | [
"MIT"
] | null | null | null | # coding: utf-8
from django.contrib import admin
from eventi.core.models import Club, Info
admin.site.register(Club)
admin.site.register(Info)
| 16.222222 | 41 | 0.780822 |
2bc59939181c875a61b3f943ea4d563e7976ef42 | 1,075 | py | Python | LAB/05/0530_PyMongo.py | LegenDad/KTM_Lab | 09a1671b1dfe9b667008279ef41a959f08babbfc | [
"MIT"
] | null | null | null | LAB/05/0530_PyMongo.py | LegenDad/KTM_Lab | 09a1671b1dfe9b667008279ef41a959f08babbfc | [
"MIT"
] | null | null | null | LAB/05/0530_PyMongo.py | LegenDad/KTM_Lab | 09a1671b1dfe9b667008279ef41a959f08babbfc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu May 31 09:09:26 2018
@author: Jeon
"""
!pip search pymongo
!pip install pymongo
import pymongo
mgclient = pymongo.MongoClient("localhost", 27017)
# check start mogodb (mongod)
mgclient.database_names()
testdb = mgclient.testdb
testdb_col = testdb.items
data= { "name":"co... | 19.545455 | 63 | 0.692093 |
2bc5fd37e006f771bdbfbce48ca1e4e8865d7cc3 | 10,285 | py | Python | src/animasnd/image.py | N-z0/commonz | 275c48ef6aac32f0d809a96e56b0b0c254686747 | [
"Unlicense"
] | null | null | null | src/animasnd/image.py | N-z0/commonz | 275c48ef6aac32f0d809a96e56b0b0c254686747 | [
"Unlicense"
] | null | null | null | src/animasnd/image.py | N-z0/commonz | 275c48ef6aac32f0d809a96e56b0b0c254686747 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
#coding: utf-8
### 1st line allows to execute this script by typing only its name in terminal, with no need to precede it with the python command
### 2nd line declaring source code charset should be not necessary but for exemple pydoc request it
__doc__ = "provide images support"#information d... | 31.940994 | 198 | 0.734565 |
2bca9532a8c9a9fdc0dfa94bcf1da0e809d38422 | 42,627 | py | Python | scripts/buildrpm.py | fstab50/branchdiff | b438a70403d91bda1f14df884134c7cb1d980837 | [
"MIT"
] | 2 | 2019-03-05T04:37:49.000Z | 2021-04-08T04:03:31.000Z | scripts/buildrpm.py | fstab50/branchdiff | b438a70403d91bda1f14df884134c7cb1d980837 | [
"MIT"
] | 4 | 2018-11-22T17:57:42.000Z | 2019-09-23T22:20:21.000Z | scripts/buildrpm.py | fstab50/branchdiff | b438a70403d91bda1f14df884134c7cb1d980837 | [
"MIT"
] | 1 | 2021-09-13T02:03:42.000Z | 2021-09-13T02:03:42.000Z | #!/usr/bin/env python3
"""
Summary:
buildrpm (python3): branchdiff binary operating system package (.rpm, Redhat, Redhat-based systems)
- Automatic determination of version to be built
- Build version can optionally be forced to a specific version
- Resulting rpm ackage produced in packagi... | 33.01859 | 136 | 0.572853 |
2bcb666bd56d9bf21750baa9263c491c8e80469a | 4,731 | py | Python | agent/td3mt.py | xuzhiyuan1528/KTM-DRL | a98e7c3b74fc2cd1bd999a3bbf8f8ad071e0269a | [
"Apache-2.0"
] | 10 | 2020-11-01T05:29:31.000Z | 2022-03-12T08:42:48.000Z | agent/td3mt.py | xuzhiyuan1528/KTM-DRL | a98e7c3b74fc2cd1bd999a3bbf8f8ad071e0269a | [
"Apache-2.0"
] | null | null | null | agent/td3mt.py | xuzhiyuan1528/KTM-DRL | a98e7c3b74fc2cd1bd999a3bbf8f8ad071e0269a | [
"Apache-2.0"
] | 4 | 2020-11-01T05:16:51.000Z | 2021-02-22T22:55:14.000Z | import torch
import torch.nn.functional as F
from agent.td3 import TD3
| 37.848 | 107 | 0.589939 |
2bcc0cc4e0ece32defaf1db3f2ced89cc0efe672 | 9,929 | py | Python | chrony/timespans.py | gtnx/chrony | e073f5683a395cd3732a2974f6509a7298dc4848 | [
"MIT"
] | 3 | 2015-11-06T15:55:45.000Z | 2016-02-01T14:37:14.000Z | chrony/timespans.py | gtnx/chrony | e073f5683a395cd3732a2974f6509a7298dc4848 | [
"MIT"
] | 1 | 2015-11-03T15:22:08.000Z | 2015-11-03T15:22:08.000Z | chrony/timespans.py | gtnx/chrony | e073f5683a395cd3732a2974f6509a7298dc4848 | [
"MIT"
] | 1 | 2015-11-03T15:12:48.000Z | 2015-11-03T15:12:48.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import pandas as pd
from .exceptions import BadLengthsError, BegPosteriorToEndError, OverlapError, NotSortedError, IntegrityError, HasTimezoneError
def to_stamps(df, state_columns, value_columns, beg_co... | 34.716783 | 169 | 0.58727 |
2bcc86f67e357c8f3e80e523d649bd5073ea89d6 | 2,594 | py | Python | Text/TextQualityWatchdog/Watchdog/__init__.py | iii-PaulCridland/azure-search-power-skills | bbc5848c32b3bd6f2c8942693d854563e0cee708 | [
"MIT"
] | 128 | 2019-06-12T19:24:34.000Z | 2022-03-08T18:39:40.000Z | Text/TextQualityWatchdog/Watchdog/__init__.py | iii-PaulCridland/azure-search-power-skills | bbc5848c32b3bd6f2c8942693d854563e0cee708 | [
"MIT"
] | 47 | 2019-07-15T22:04:23.000Z | 2022-03-04T18:35:57.000Z | Text/TextQualityWatchdog/Watchdog/__init__.py | iii-PaulCridland/azure-search-power-skills | bbc5848c32b3bd6f2c8942693d854563e0cee708 | [
"MIT"
] | 99 | 2019-06-28T20:56:21.000Z | 2022-03-30T17:17:24.000Z | # Standard libraries
import os
import json
import logging
from typing import Text
# Azure functions
import azure.functions as func
# Inference runtime
import onnxruntime as ort
from tokenizers import BertWordPieceTokenizer
# Helper scripts
from .PreprocessData import normalize_text, truncate_text
from .Predict impor... | 32.024691 | 94 | 0.597147 |
2bcf3f2068544439d767a23babe47f9de75492b6 | 286 | py | Python | pypy/jit/backend/x86/test/test_quasiimmut.py | benoitc/pypy | a3e1b12d1d01dc29056b7badc051ffc034297658 | [
"MIT"
] | 1 | 2020-01-21T11:10:51.000Z | 2020-01-21T11:10:51.000Z | pypy/jit/backend/x86/test/test_quasiimmut.py | benoitc/pypy | a3e1b12d1d01dc29056b7badc051ffc034297658 | [
"MIT"
] | null | null | null | pypy/jit/backend/x86/test/test_quasiimmut.py | benoitc/pypy | a3e1b12d1d01dc29056b7badc051ffc034297658 | [
"MIT"
] | null | null | null |
import py
from pypy.jit.backend.x86.test.test_basic import Jit386Mixin
from pypy.jit.metainterp.test import test_quasiimmut
| 28.6 | 65 | 0.758741 |
2bcff61c9348a9aaa8c0c129bc93fe66d8eb6d8c | 1,130 | py | Python | QPC/ELMo_QPC/utils.py | tifoit/QGforQA | 892d3194d2b78385d5fe0e349facfcfe273daadc | [
"MIT"
] | 95 | 2019-08-30T21:30:38.000Z | 2021-12-30T13:35:39.000Z | QPC/ELMo_QPC/utils.py | tifoit/QGforQA | 892d3194d2b78385d5fe0e349facfcfe273daadc | [
"MIT"
] | 15 | 2019-11-02T11:48:35.000Z | 2020-11-13T17:37:07.000Z | QPC/ELMo_QPC/utils.py | tifoit/QGforQA | 892d3194d2b78385d5fe0e349facfcfe273daadc | [
"MIT"
] | 19 | 2019-11-07T05:24:36.000Z | 2021-10-13T13:13:04.000Z | import tensorflow as tf
| 41.851852 | 95 | 0.489381 |
2bd0edbc04e1e7d77d7b3ed8a265bcd081096652 | 5,019 | py | Python | oil.py | briwilcox/rnkr-oil | 48dbbf52c24e93dba6e6b563cc30aba1d35b5b22 | [
"MIT"
] | 1 | 2016-05-15T22:16:36.000Z | 2016-05-15T22:16:36.000Z | oil.py | briwilcox/rnkr-oil | 48dbbf52c24e93dba6e6b563cc30aba1d35b5b22 | [
"MIT"
] | 1 | 2021-04-30T20:36:55.000Z | 2021-04-30T20:36:55.000Z | oil.py | briwilcox/rnkr-oil | 48dbbf52c24e93dba6e6b563cc30aba1d35b5b22 | [
"MIT"
] | null | null | null | import numpy
import requests
import Quandl
import datetime
from pyrnkr.application import App
from pyrnkr.widgets import Line
from pyrnkr.formula import Trace
def handler(event, context):
"""
AWS Lambda Handler
Inputs depend on your config.json
"""
res, err = oil().run(event)
if err:
... | 34.142857 | 114 | 0.560072 |
2bd0eeb3efd70d103d079728734a516aeedb0822 | 462 | py | Python | code_doc/migrations/0004_auto_20141110_1508.py | coordt/code_doc | c2fac64ac3ad61952a2d9f036727166741f9aff9 | [
"BSD-3-Clause"
] | null | null | null | code_doc/migrations/0004_auto_20141110_1508.py | coordt/code_doc | c2fac64ac3ad61952a2d9f036727166741f9aff9 | [
"BSD-3-Clause"
] | null | null | null | code_doc/migrations/0004_auto_20141110_1508.py | coordt/code_doc | c2fac64ac3ad61952a2d9f036727166741f9aff9 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
| 28.875 | 80 | 0.714286 |
2bd347c1734d1e220233fe8467a010ceab1c41ab | 120 | py | Python | parallel/__init__.py | MSU-MLSys-Lab/CATE | 654c393d7df888d2c3f3b90f9e6752faa061157e | [
"Apache-2.0"
] | 15 | 2021-06-09T00:50:53.000Z | 2022-03-15T07:01:43.000Z | parallel/__init__.py | MSU-MLSys-Lab/CATE | 654c393d7df888d2c3f3b90f9e6752faa061157e | [
"Apache-2.0"
] | null | null | null | parallel/__init__.py | MSU-MLSys-Lab/CATE | 654c393d7df888d2c3f3b90f9e6752faa061157e | [
"Apache-2.0"
] | 4 | 2021-06-09T01:01:43.000Z | 2021-11-03T06:16:50.000Z | from .parallel import DataParallelModel, DataParallelCriterion
__all__ = ["DataParallelModel", "DataParallelCriterion"] | 40 | 62 | 0.841667 |
2bd58136299dfe9fb78fc5afd520e4be379aa582 | 10,136 | py | Python | accounts/serializers.py | aniruddha2000/foodfeeda | 4dffbbe0310a1809c9743b3525e63bac8a8a0768 | [
"Apache-2.0"
] | null | null | null | accounts/serializers.py | aniruddha2000/foodfeeda | 4dffbbe0310a1809c9743b3525e63bac8a8a0768 | [
"Apache-2.0"
] | null | null | null | accounts/serializers.py | aniruddha2000/foodfeeda | 4dffbbe0310a1809c9743b3525e63bac8a8a0768 | [
"Apache-2.0"
] | 1 | 2022-03-17T12:47:40.000Z | 2022-03-17T12:47:40.000Z | from django.contrib.auth.password_validation import validate_password
from django.contrib.auth.tokens import PasswordResetTokenGenerator
from django.utils.encoding import force_str
from django.utils.http import urlsafe_base64_decode
from rest_framework.exceptions import AuthenticationFailed
from rest_framework.serializ... | 29.811765 | 82 | 0.594909 |
2bd5ae744552e1cc86f7a6d91ead98d30783f188 | 453 | py | Python | examples/2-tulip-download.py | feihong/tulip-talk | 1c99db11797bf7209eddfff1767a7e6b948c1ebb | [
"CC-BY-4.0"
] | 6 | 2015-01-19T11:14:03.000Z | 2016-02-22T06:16:51.000Z | examples/2-tulip-download.py | feihong/tulip-talk | 1c99db11797bf7209eddfff1767a7e6b948c1ebb | [
"CC-BY-4.0"
] | null | null | null | examples/2-tulip-download.py | feihong/tulip-talk | 1c99db11797bf7209eddfff1767a7e6b948c1ebb | [
"CC-BY-4.0"
] | null | null | null | import tulip
from tulip import http
if __name__ == '__main__':
loop = tulip.get_event_loop()
coroutine = download('http://omegafeihong.tumblr.com')
loop.run_until_complete(coroutine)
| 26.647059 | 58 | 0.660044 |
2bd67d5e723b9c06ff50baa0fbd6ffdaf7fb05cb | 3,752 | py | Python | python/ts/flint/utils.py | mattomatic/flint | ee1dc08b5a7f2c84e41bfbc7a02e069d23d02c72 | [
"Apache-2.0"
] | 972 | 2016-10-25T20:56:50.000Z | 2022-03-23T06:05:59.000Z | python/ts/flint/utils.py | mattomatic/flint | ee1dc08b5a7f2c84e41bfbc7a02e069d23d02c72 | [
"Apache-2.0"
] | 66 | 2016-11-02T15:27:35.000Z | 2022-02-15T16:48:48.000Z | python/ts/flint/utils.py | jaewanbahk/flint | eda21faace03ed90258d1008071e9ac7033f5f48 | [
"Apache-2.0"
] | 218 | 2016-11-04T11:03:24.000Z | 2022-01-21T21:31:59.000Z | #
# Copyright 2017 TWO SIGMA OPEN SOURCE, LLC
#
# 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... | 30.754098 | 104 | 0.67564 |
2bd798abddd7a95bff54e0bc290234fe6c7881d3 | 821 | py | Python | ros2_automatic_fuzzer/ros2_fuzzer/service_fuzzer.py | rosin-project/ros2_fuzz | a01394f530ada966a5f9f72fd3990a6964fb8bff | [
"MIT"
] | 8 | 2020-11-13T11:56:52.000Z | 2021-08-31T09:37:57.000Z | ros2_automatic_fuzzer/ros2_fuzzer/service_fuzzer.py | JnxF/automatic_fuzzing | e49135335e9d65cee4bf82c6d18a09beb9238000 | [
"MIT"
] | 2 | 2021-06-10T09:50:45.000Z | 2021-09-13T14:39:32.000Z | ros2_automatic_fuzzer/ros2_fuzzer/service_fuzzer.py | JnxF/automatic_fuzzing | e49135335e9d65cee4bf82c6d18a09beb9238000 | [
"MIT"
] | null | null | null | import sys
import os
sys.path.append("..")
from ros2_fuzzer.fuzzing_utils.type_parser import TypeParser
from ros2_fuzzer.fuzzing_utils.fuzzing_descriptor import FuzzTargetProcessor
from ros2_fuzzer.fuzzing_utils.generate_cpp_file import generate_cpp_file
| 29.321429 | 88 | 0.744214 |
2bd84f2755773c44a8ad81ee8940c817d7f00023 | 1,432 | py | Python | scripts/iconify.py | hallc/labs | 90c154fe7ea249641b5a05ae648e13f45ab3eb0e | [
"MIT"
] | null | null | null | scripts/iconify.py | hallc/labs | 90c154fe7ea249641b5a05ae648e13f45ab3eb0e | [
"MIT"
] | null | null | null | scripts/iconify.py | hallc/labs | 90c154fe7ea249641b5a05ae648e13f45ab3eb0e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import argparse
import os
from PIL import Image
densities = {
'mdpi': 48,
'hdpi': 72,
'xhdpi': 96,
'xxhdpi': 144,
'xxxhdpi': 192
}
if __name__ == '__main__':
main()
| 26.036364 | 82 | 0.713687 |
2bd852a26654310e3a3bb617e66a4db19ed7396d | 3,814 | py | Python | pandaserver/taskbuffer/JobUtils.py | virthead/panda-server | d2b65f788c4539dc103641ca2a8052cb18729d44 | [
"Apache-2.0"
] | 7 | 2015-03-30T14:15:35.000Z | 2021-12-22T06:48:22.000Z | pandaserver/taskbuffer/JobUtils.py | virthead/panda-server | d2b65f788c4539dc103641ca2a8052cb18729d44 | [
"Apache-2.0"
] | 16 | 2015-06-01T13:48:01.000Z | 2022-02-08T15:03:32.000Z | pandaserver/taskbuffer/JobUtils.py | virthead/panda-server | d2b65f788c4539dc103641ca2a8052cb18729d44 | [
"Apache-2.0"
] | 15 | 2015-03-02T08:57:35.000Z | 2022-03-01T09:48:45.000Z | import re
try:
long
except NameError:
long = int
# list of prod source label for pilot tests
list_ptest_prod_sources = ['ptest', 'rc_test', 'rc_test2', 'rc_alrb']
# mapping with prodsourcelabels that belong to analysis and production
analy_sources = ['user', 'panda']
prod_sources = ['managed', 'prod_test']
n... | 28.462687 | 105 | 0.607499 |
2bdae61f57803109d14c71c62a57ac97f4c10c5b | 724 | py | Python | v002/__init__.py | cgarcia-UCO/AgentSurvival | 34c4b265c90f0b74fec8dbc65c275eb5cdd16ba3 | [
"MIT"
] | null | null | null | v002/__init__.py | cgarcia-UCO/AgentSurvival | 34c4b265c90f0b74fec8dbc65c275eb5cdd16ba3 | [
"MIT"
] | null | null | null | v002/__init__.py | cgarcia-UCO/AgentSurvival | 34c4b265c90f0b74fec8dbc65c275eb5cdd16ba3 | [
"MIT"
] | null | null | null | try:
from IPython import get_ipython
if get_ipython().__class__.__name__ not in ['NoneType']:
from IPython import display
i_am_in_interatcive = True
import pylab as pl
pl.rcParams['figure.figsize'] = [13, 13]
# print("INTERACTIVE")
else:
import matplotlib.pyp... | 28.96 | 78 | 0.718232 |
2bdb72de3864824147a567ff656f6b865054a2e0 | 1,543 | py | Python | lib/constants.py | PEDIA-Charite/PEDIA-workflow | f0ab0c7ed3833edb01ad0772ad294978b71feb64 | [
"MIT"
] | 9 | 2017-10-16T17:04:48.000Z | 2021-11-03T13:09:11.000Z | lib/constants.py | PEDIA-Charite/PEDIA-workflow | f0ab0c7ed3833edb01ad0772ad294978b71feb64 | [
"MIT"
] | 60 | 2017-05-22T15:43:06.000Z | 2022-02-07T22:16:48.000Z | lib/constants.py | PEDIA-Charite/PEDIA-workflow | f0ab0c7ed3833edb01ad0772ad294978b71feb64 | [
"MIT"
] | 9 | 2017-11-27T16:19:11.000Z | 2021-01-24T03:48:08.000Z | '''
Constants
---
Constants used in other scripts. These are mostly interpretations of fields
provided in the Face2Gene jsons.
'''
HGVS_ERRORDICT_VERSION = 0
# Bucket name, from where Face2Gene vcf and json files will be downloaded
AWS_BUCKET_NAME = "fdna-pedia-dump"
# caching directory
CACHE_DIR = ".cache"
# tests... | 20.302632 | 77 | 0.69151 |
2bdb8dac398701774f4f849fe5868b3aef79e3a7 | 806 | py | Python | jetson_nano/serial_monitor.py | hixio-mh/BatBot | b83bd2a9348baf708a8d009a4872d27f40177b61 | [
"MIT"
] | 32 | 2019-12-02T08:26:31.000Z | 2022-01-13T06:56:19.000Z | jetson_nano/serial_monitor.py | resslerruntime/BatBot | b83bd2a9348baf708a8d009a4872d27f40177b61 | [
"MIT"
] | 15 | 2020-01-28T22:17:38.000Z | 2022-03-12T00:02:01.000Z | jetson_nano/serial_monitor.py | resslerruntime/BatBot | b83bd2a9348baf708a8d009a4872d27f40177b61 | [
"MIT"
] | 17 | 2019-11-26T14:46:05.000Z | 2021-07-05T12:46:58.000Z | #!/usr/bin/python3
import serial # http://pyserial.sf.net
import time
from datetime import datetime
import struct
port = '/dev/ttyACM0' # note I'm using Jetson Nano
arduino = serial.Serial(port, 9600, timeout=5)
time.sleep(2) # wait for Arduino
arduino.flush()
command = 'X' # SET TIME
encoded_command = command.encod... | 23.028571 | 75 | 0.705955 |
2bdb91041eec35c1c58197d76e4a723d39aceee0 | 18,798 | py | Python | ttbd/ttbl/quartus.py | inakypg/tcf | 569e21b25c8ee72ebad0c80d0a7de0714411185f | [
"Apache-2.0"
] | 1 | 2018-08-31T06:48:14.000Z | 2018-08-31T06:48:14.000Z | ttbd/ttbl/quartus.py | inakypg/tcf | 569e21b25c8ee72ebad0c80d0a7de0714411185f | [
"Apache-2.0"
] | null | null | null | ttbd/ttbl/quartus.py | inakypg/tcf | 569e21b25c8ee72ebad0c80d0a7de0714411185f | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python3
#
# Copyright (c) 2021 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
import copy
import os
import subprocess
import commonl
import ttbl
import ttbl.images
import ttbl.power
| 37.899194 | 155 | 0.641132 |
2bdc74e67c215c83e64d2416221be3804da9d5cb | 883 | py | Python | files/carinha.py | joaovpassos/USP-Programs | 09ddb8aed238df1f1a2e80afdc202ac4538daf41 | [
"MIT"
] | 2 | 2021-05-26T19:14:16.000Z | 2021-05-27T21:14:24.000Z | files/carinha.py | joaovpassos/USP-Programs | 09ddb8aed238df1f1a2e80afdc202ac4538daf41 | [
"MIT"
] | null | null | null | files/carinha.py | joaovpassos/USP-Programs | 09ddb8aed238df1f1a2e80afdc202ac4538daf41 | [
"MIT"
] | null | null | null | x = float(input("Digite x: "))
y = float(input("Digite y: "))
if 0 <= x <= 8 and 0 <= y <= 8:
if (0 <= x < 1 or 7 < x <= 8) and (0 <= y < 2): #pescoo
print("branco")
elif 3.5 <= x <= 4.5 and 3.5 <= y <= 4.5: #nariz
print("branco")
elif (1 <= x <= 3 or 5 <= x <= 7) and (7.25 <= y <= 7.75): #... | 35.32 | 96 | 0.437146 |
2bdcbb9196f7ddd57e7b4ad584ef8f3fd81fbbd6 | 565 | py | Python | delivery/delivery/exts/cli/__init__.py | all0cer/flask | a72bee18fd8d4ccf0f16e0e637f7e0b1779e7d85 | [
"Unlicense"
] | null | null | null | delivery/delivery/exts/cli/__init__.py | all0cer/flask | a72bee18fd8d4ccf0f16e0e637f7e0b1779e7d85 | [
"Unlicense"
] | null | null | null | delivery/delivery/exts/cli/__init__.py | all0cer/flask | a72bee18fd8d4ccf0f16e0e637f7e0b1779e7d85 | [
"Unlicense"
] | null | null | null | from enum import Flag
import click
from delivery.exts.db import db
from delivery.exts.db import models
| 23.541667 | 63 | 0.576991 |
2bdcd33401ff8240d2bd02c4fb44f1db772552fb | 1,587 | py | Python | main.py | maxBombrun/lipidDroplets | d624b718a7f70c45c1058938d916b78aa14390a7 | [
"BSD-3-Clause"
] | null | null | null | main.py | maxBombrun/lipidDroplets | d624b718a7f70c45c1058938d916b78aa14390a7 | [
"BSD-3-Clause"
] | null | null | null | main.py | maxBombrun/lipidDroplets | d624b718a7f70c45c1058938d916b78aa14390a7 | [
"BSD-3-Clause"
] | null | null | null | import os
import csv
import multiprocessing
import settings
import segmentNucAndGFP
import cellProfilerGetRelation
import measureGFPSize
import plotFeatures
import fusionCSV
import clusterDroplets
import computeZprime
settings.init()
CPPath=settings.pathList[0]
inputDataPath=settings.pathList[1]... | 27.362069 | 158 | 0.7908 |
2bddb9b7282ff011959fc2aa41a6520b2612a723 | 503 | py | Python | test/integration/test_load_shapefile_networkx_native.py | JoachimC/magicbox_distance | 3706172315f406a391bb643d494dad121b858e97 | [
"BSD-3-Clause"
] | null | null | null | test/integration/test_load_shapefile_networkx_native.py | JoachimC/magicbox_distance | 3706172315f406a391bb643d494dad121b858e97 | [
"BSD-3-Clause"
] | 12 | 2018-08-11T13:26:33.000Z | 2018-10-16T15:36:16.000Z | test/integration/test_load_shapefile_networkx_native.py | JoachimC/magicbox_distance | 3706172315f406a391bb643d494dad121b858e97 | [
"BSD-3-Clause"
] | null | null | null | import unittest
import networkx as nx
if __name__ == '__main__':
unittest.main()
| 29.588235 | 112 | 0.739563 |
2bdeec10badbbad623dc47ed6ce5bac529387aa3 | 2,732 | py | Python | model/Teams_data_prep.py | YWang9999/Fantasy-Premier-League | 906e470fa7514294ccf8dad0591b12fd4f40cb22 | [
"MIT"
] | null | null | null | model/Teams_data_prep.py | YWang9999/Fantasy-Premier-League | 906e470fa7514294ccf8dad0591b12fd4f40cb22 | [
"MIT"
] | null | null | null | model/Teams_data_prep.py | YWang9999/Fantasy-Premier-League | 906e470fa7514294ccf8dad0591b12fd4f40cb22 | [
"MIT"
] | null | null | null | import pandas as pd
from config import WEBSCRAPE_DATA_PATH, OUTPUT_DATA_PATH
import os
if __name__ == "__main__":
main()
| 45.533333 | 105 | 0.618594 |
2be02c61f025593134bd6a0b8e769bcd4e8919c2 | 3,995 | py | Python | respy/tests/test_parallelism.py | tobiasraabe/respy_for_ma | 405f40851b176705fe924220fba606263d47f3d6 | [
"MIT"
] | null | null | null | respy/tests/test_parallelism.py | tobiasraabe/respy_for_ma | 405f40851b176705fe924220fba606263d47f3d6 | [
"MIT"
] | null | null | null | respy/tests/test_parallelism.py | tobiasraabe/respy_for_ma | 405f40851b176705fe924220fba606263d47f3d6 | [
"MIT"
] | null | null | null | import numpy as np
import pytest
from respy import RespyCls
from respy.python.shared.shared_constants import IS_PARALLELISM_MPI
from respy.python.shared.shared_constants import IS_PARALLELISM_OMP
from respy.tests.codes.auxiliary import compare_est_log
from respy.tests.codes.auxiliary import simulate_observed
from resp... | 37.336449 | 88 | 0.618273 |
2be40f59b3a6beb7eecae2366c58ea92cc8def63 | 2,170 | py | Python | qgis_plutil/http_server/routes.py | pyqgis/plutil | 79df2596e4e0340f3765ccb5bdfd4cc1d01fcb7d | [
"MIT"
] | null | null | null | qgis_plutil/http_server/routes.py | pyqgis/plutil | 79df2596e4e0340f3765ccb5bdfd4cc1d01fcb7d | [
"MIT"
] | null | null | null | qgis_plutil/http_server/routes.py | pyqgis/plutil | 79df2596e4e0340f3765ccb5bdfd4cc1d01fcb7d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
"""
from __future__ import unicode_literals
from __future__ import print_function
import logging
from json import dumps
from flask import request
logger = logging.getLogger('plutil.http.s')
def define_common_routes(plugin, app, server):
""" Some routes are always defined. """
| 31.449275 | 77 | 0.556682 |
2be5546ca3ebe936128f790d55f4f07b21737e0c | 4,932 | py | Python | utils/plackettluce.py | HarrieO/2021-SIGIR-plackett-luce-optimization | 969fc6681d179a5835137bc0115c9a8e868a83ec | [
"MIT"
] | 21 | 2021-05-07T09:49:51.000Z | 2022-03-28T19:10:06.000Z | utils/plackettluce.py | HarrieO/2021-SIGIR-plackett-luce-optimization | 969fc6681d179a5835137bc0115c9a8e868a83ec | [
"MIT"
] | 2 | 2021-07-29T04:19:33.000Z | 2021-09-10T08:41:22.000Z | utils/plackettluce.py | HarrieO/2021-SIGIR-plackett-luce-optimization | 969fc6681d179a5835137bc0115c9a8e868a83ec | [
"MIT"
] | 3 | 2021-06-25T08:08:53.000Z | 2021-09-14T23:53:53.000Z | # Copyright (C) H.R. Oosterhuis 2021.
# Distributed under the MIT License (see the accompanying README.md and LICENSE files).
import numpy as np
import utils.ranking as rnk
| 37.648855 | 88 | 0.642741 |
2be5e7e6410c2cc0d07e72d3dc8d06cec338bdde | 575 | py | Python | demo_train.py | ryanfwy/image-quality | a7d0859e2bc6493885b41fd6aa85a9dfa980c656 | [
"MIT"
] | 1 | 2020-09-09T13:35:12.000Z | 2020-09-09T13:35:12.000Z | demo_train.py | ryanfwy/image-quality | a7d0859e2bc6493885b41fd6aa85a9dfa980c656 | [
"MIT"
] | null | null | null | demo_train.py | ryanfwy/image-quality | a7d0859e2bc6493885b41fd6aa85a9dfa980c656 | [
"MIT"
] | null | null | null | '''Train Siamese NIMA model networks.'''
from model.siamese_nima import SiameseNIMA
if __name__ == '__main__':
# dirs and paths to load data
train_image_dir = './assets/demo/train_images'
train_data_path = './assets/demo/train_data.csv'
# load data and train model
siamese = SiameseNIMA(output_di... | 31.944444 | 82 | 0.673043 |
2be7223c4ab9ef92f6e5ecb73db51d52ed5811e3 | 132 | py | Python | quine_examples/quine_list.py | mbrown1413/Arbitrary-Quine | 758d55a590074d94f0b0f71dd0312923265a5a36 | [
"MIT"
] | 2 | 2016-07-18T14:05:48.000Z | 2021-12-05T11:35:06.000Z | quine_examples/quine_list.py | mbrown1413/Arbitrary-Quine | 758d55a590074d94f0b0f71dd0312923265a5a36 | [
"MIT"
] | null | null | null | quine_examples/quine_list.py | mbrown1413/Arbitrary-Quine | 758d55a590074d94f0b0f71dd0312923265a5a36 | [
"MIT"
] | null | null | null | lines = ['print "lines =", lines', 'for line in lines:', ' print line']
print "lines =", lines
for line in lines:
print line
| 26.4 | 74 | 0.613636 |
2be7280a605239a4f17fa1972d21696add9fd5df | 6,679 | py | Python | trojsten/rules/kms.py | MvonK/web | b701a6ea8fb6f0bdfb720e66d0a430db13db8bff | [
"MIT"
] | 5 | 2018-04-22T22:44:02.000Z | 2021-04-26T20:44:44.000Z | trojsten/rules/kms.py | MvonK/web | b701a6ea8fb6f0bdfb720e66d0a430db13db8bff | [
"MIT"
] | 250 | 2018-04-24T12:04:11.000Z | 2022-03-09T06:56:47.000Z | trojsten/rules/kms.py | MvonK/web | b701a6ea8fb6f0bdfb720e66d0a430db13db8bff | [
"MIT"
] | 8 | 2019-04-28T11:33:03.000Z | 2022-02-26T13:30:36.000Z | # -*- coding: utf-8 -*-
import datetime
from django.db.models import Count, Q
from django.utils import timezone
from trojsten.events.models import EventParticipant
from trojsten.people.constants import SCHOOL_YEAR_END_MONTH
from trojsten.results.constants import COEFFICIENT_COLUMN_KEY
from trojsten.results.generator... | 39.755952 | 98 | 0.672855 |
2be799f355f713970380efb0ff0e7ecb819eb1f7 | 77 | py | Python | terrascript/consul/__init__.py | hugovk/python-terrascript | 08fe185904a70246822f5cfbdc9e64e9769ec494 | [
"BSD-2-Clause"
] | null | null | null | terrascript/consul/__init__.py | hugovk/python-terrascript | 08fe185904a70246822f5cfbdc9e64e9769ec494 | [
"BSD-2-Clause"
] | null | null | null | terrascript/consul/__init__.py | hugovk/python-terrascript | 08fe185904a70246822f5cfbdc9e64e9769ec494 | [
"BSD-2-Clause"
] | 1 | 2018-11-15T16:23:05.000Z | 2018-11-15T16:23:05.000Z | # Consul provider is not created through makecode.py
# because of issues 24.
| 25.666667 | 52 | 0.779221 |
2be8a156acf59142491eb2fae24285870882e1a5 | 4,333 | py | Python | dac.py | hurasum/esp32_python | 59302ea48c3e1e0190fed09f78bb18d5f49b9c71 | [
"Unlicense"
] | null | null | null | dac.py | hurasum/esp32_python | 59302ea48c3e1e0190fed09f78bb18d5f49b9c71 | [
"Unlicense"
] | 1 | 2021-12-14T09:34:25.000Z | 2021-12-20T13:41:03.000Z | dac.py | hurasum/esp32_python | 59302ea48c3e1e0190fed09f78bb18d5f49b9c71 | [
"Unlicense"
] | null | null | null | """
DAC typing class
ESP32 has two 8-bit DAC (digital to analog converter) channels, connected to GPIO25 (Channel 1) and GPIO26 (Channel 2).
The DAC driver allows these channels to be set to arbitrary voltages.<br The DAC channels can also be driven with DMA-style written sample data, via the I2S driver when using the... | 39.036036 | 199 | 0.647357 |
2bead42e8898fc07fa3042e49464fb1267055a6b | 44 | py | Python | vuln/__init__.py | Maskhe/DongTai-engine | 70d61617e4ba469adf8cf97879820d8a09a0359c | [
"Apache-2.0"
] | 16 | 2021-09-01T05:59:56.000Z | 2022-01-17T11:44:39.000Z | vuln/__init__.py | Maskhe/DongTai-engine | 70d61617e4ba469adf8cf97879820d8a09a0359c | [
"Apache-2.0"
] | 14 | 2021-09-17T10:00:20.000Z | 2022-02-15T10:55:32.000Z | vuln/__init__.py | Maskhe/DongTai-engine | 70d61617e4ba469adf8cf97879820d8a09a0359c | [
"Apache-2.0"
] | 26 | 2021-09-01T06:29:54.000Z | 2022-03-25T02:38:55.000Z | default_app_config = 'vuln.apps.VulnConfig'
| 22 | 43 | 0.818182 |
2beb29bae6bf723ff96a9ddff8637a07400b2281 | 573 | py | Python | examples/itemrank_quick_query.py | cclauss/predictionio-sdk-python | 0de59e3d72afd2ba30121c2ab033715eb63e879f | [
"Apache-2.0"
] | 63 | 2015-01-07T19:49:59.000Z | 2016-09-22T01:53:13.000Z | examples/itemrank_quick_query.py | cclauss/predictionio-sdk-python | 0de59e3d72afd2ba30121c2ab033715eb63e879f | [
"Apache-2.0"
] | 8 | 2015-01-07T17:28:25.000Z | 2016-06-24T04:56:19.000Z | examples/itemrank_quick_query.py | cclauss/predictionio-sdk-python | 0de59e3d72afd2ba30121c2ab033715eb63e879f | [
"Apache-2.0"
] | 30 | 2015-01-08T19:12:05.000Z | 2016-09-17T07:56:24.000Z | """
itemrank quickstart query
"""
import predictionio
client = predictionio.EngineClient("http://localhost:8000")
# Rank item 1 to 5 for each user
item_ids = [str(i) for i in range(1, 6)]
user_ids = [str(x) for x in range(1, 6)] + ["NOT_EXIST_USER"]
for user_id in user_ids:
print("Rank item 1 to 5 for user ", us... | 23.875 | 61 | 0.630017 |
2bec0c607c3e98c35152779520d4098296b2008b | 226 | py | Python | key_server/key_management_system/apps.py | TV-Encryption/key_server | db243f3941cef82a9eb8f01bbb3fa72d7b32d77e | [
"MIT"
] | null | null | null | key_server/key_management_system/apps.py | TV-Encryption/key_server | db243f3941cef82a9eb8f01bbb3fa72d7b32d77e | [
"MIT"
] | null | null | null | key_server/key_management_system/apps.py | TV-Encryption/key_server | db243f3941cef82a9eb8f01bbb3fa72d7b32d77e | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 28.25 | 56 | 0.787611 |
2beed0513a5ba2c61181277b03a553d3464d028b | 1,121 | py | Python | Interesting Python Questions/solve equation.py | liu-yunfei/Python | 314cdc98f32f4f0de2c0904279865b944e34dd75 | [
"MIT"
] | 1 | 2020-10-08T09:29:59.000Z | 2020-10-08T09:29:59.000Z | Interesting Python Questions/solve equation.py | liu-yunfei/Python | 314cdc98f32f4f0de2c0904279865b944e34dd75 | [
"MIT"
] | 1 | 2021-01-30T12:04:51.000Z | 2021-01-30T12:05:37.000Z | Interesting Python Questions/solve equation.py | liu-yunfei/Python | 314cdc98f32f4f0de2c0904279865b944e34dd75 | [
"MIT"
] | null | null | null |
main(-3,-1,-2.2)
| 26.069767 | 70 | 0.373773 |
2befdc8b109984b8d25e62dc78641cf77c167810 | 15,020 | py | Python | sensor.py | vorian77/driving_simulator | 92967eeeaa8cb789725fc89e77af2a80152708c0 | [
"MIT"
] | null | null | null | sensor.py | vorian77/driving_simulator | 92967eeeaa8cb789725fc89e77af2a80152708c0 | [
"MIT"
] | null | null | null | sensor.py | vorian77/driving_simulator | 92967eeeaa8cb789725fc89e77af2a80152708c0 | [
"MIT"
] | null | null | null | import obj as obj_lib
import road_artifact
import drive as drive_lib
import utilities as u
| 37.363184 | 126 | 0.661119 |
2bf0f58a9e0436a17cd88f0338193b8408ef7d76 | 1,826 | py | Python | maza/modules/exploits/misc/wepresent/wipg1000_rce.py | ArturSpirin/maza | 56ae6325c08bcedd22c57b9fe11b58f1b38314ca | [
"MIT"
] | 2 | 2020-02-06T20:24:31.000Z | 2022-03-08T19:07:16.000Z | maza/modules/exploits/misc/wepresent/wipg1000_rce.py | ArturSpirin/maza | 56ae6325c08bcedd22c57b9fe11b58f1b38314ca | [
"MIT"
] | null | null | null | maza/modules/exploits/misc/wepresent/wipg1000_rce.py | ArturSpirin/maza | 56ae6325c08bcedd22c57b9fe11b58f1b38314ca | [
"MIT"
] | null | null | null | from maza.core.exploit import *
from maza.core.http.http_client import HTTPClient
| 30.433333 | 116 | 0.569003 |
2bf2011196393733885cd4b7e26234b68e030539 | 212 | py | Python | solidity/install_solc.py | pdos-team/pdos | 7c96e36b4545d103cc56176197ec590fe2691344 | [
"MIT"
] | null | null | null | solidity/install_solc.py | pdos-team/pdos | 7c96e36b4545d103cc56176197ec590fe2691344 | [
"MIT"
] | null | null | null | solidity/install_solc.py | pdos-team/pdos | 7c96e36b4545d103cc56176197ec590fe2691344 | [
"MIT"
] | 1 | 2020-03-15T14:31:13.000Z | 2020-03-15T14:31:13.000Z | #!/usr/bin/env python3
import os
import sys
if os.getuid() != 0:
print ("Must be run as root, sorry.")
sys.exit(-1)
from solcx import install_solc_pragma
install_solc_pragma('>0.5.0 <0.6.0')
print ("Done.")
| 16.307692 | 38 | 0.683962 |
2bf4eed1a2461a7de84607671464c884ba1a974c | 3,301 | py | Python | backend/backend/settings/base.py | rrhg/react-django-docker-boilerplate | 760237e7503c25740a77eacb6249d538ea9ad0b0 | [
"MIT"
] | null | null | null | backend/backend/settings/base.py | rrhg/react-django-docker-boilerplate | 760237e7503c25740a77eacb6249d538ea9ad0b0 | [
"MIT"
] | null | null | null | backend/backend/settings/base.py | rrhg/react-django-docker-boilerplate | 760237e7503c25740a77eacb6249d538ea9ad0b0 | [
"MIT"
] | null | null | null | """
Base settings to build other settings files upon.
"""
import os
"""
Django settings for backend project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see... | 24.819549 | 91 | 0.688882 |
2bf566fec30c9deeff3c69426f515c5625a28010 | 1,661 | py | Python | scripts/run-and-rename.py | mfs6174/Deep6174 | 92e2ceb48134e0cf003f130aef8d838a7a16c27d | [
"Apache-2.0"
] | null | null | null | scripts/run-and-rename.py | mfs6174/Deep6174 | 92e2ceb48134e0cf003f130aef8d838a7a16c27d | [
"Apache-2.0"
] | null | null | null | scripts/run-and-rename.py | mfs6174/Deep6174 | 92e2ceb48134e0cf003f130aef8d838a7a16c27d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: UTF-8 -*-
# File: run-and-rename.py
# Date: Thu Sep 18 15:43:36 2014 -0700
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
import numpy as np
from scipy.misc import imread, imsave
from itertools import izip
import sys, os
import shutil
import os.path
import glob
if len(sys.argv) != 3:
... | 27.229508 | 84 | 0.665262 |
2bf76e6c71e2e4b130aa3da1d86af45c54dbc8eb | 261 | py | Python | Exercises/Exercise 15 - Hard.py | MikelShifrin/Python1 | 0096a327023a28e0c639042ae01268b07e61943e | [
"MIT"
] | 3 | 2019-07-02T13:46:23.000Z | 2019-08-19T14:41:25.000Z | Exercises/Exercise 15 - Hard.py | MikelShifrin/Python1 | 0096a327023a28e0c639042ae01268b07e61943e | [
"MIT"
] | null | null | null | Exercises/Exercise 15 - Hard.py | MikelShifrin/Python1 | 0096a327023a28e0c639042ae01268b07e61943e | [
"MIT"
] | null | null | null | #Assignment 12
#create 2 files on Desktop:
#input.txt
#output.txt
#inside input.txt write the following lines:
#apple
#orange
#banana
#cucumber
#Your program will add an s to each line
#and write it to output.txt
#Hint: name = 'hello\n'
# name.rstrip('\n') | 20.076923 | 44 | 0.720307 |
2bf7cbd3af3aad19347edaabc6dc3814ebd7e30c | 950 | py | Python | wk8_hw/ex3_create_2_new_devs.py | philuu12/PYTHON_4_NTWK_ENGRS | ac0126ed687a5201031a6295d0094a536547cb92 | [
"Apache-2.0"
] | 1 | 2016-03-01T14:39:17.000Z | 2016-03-01T14:39:17.000Z | wk8_hw/ex3_create_2_new_devs.py | philuu12/PYTHON_4_NTWK_ENGRS | ac0126ed687a5201031a6295d0094a536547cb92 | [
"Apache-2.0"
] | null | null | null | wk8_hw/ex3_create_2_new_devs.py | philuu12/PYTHON_4_NTWK_ENGRS | ac0126ed687a5201031a6295d0094a536547cb92 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
3. Create two new test NetworkDevices in the database. Use both direct
object creation and the .get_or_create() method to create the devices.
"""
from net_system.models import NetworkDevice
import django
if __name__ == "__main__":
main()
| 22.093023 | 71 | 0.649474 |
2bf88d6e618bbe5b3386a7b4eba80d58a45533e2 | 11,474 | py | Python | pdfreader/types/objects.py | tmcclintock/pdfreader | 2933e7b92b5ab7fd60e1a4a27c251de387ad098a | [
"MIT"
] | null | null | null | pdfreader/types/objects.py | tmcclintock/pdfreader | 2933e7b92b5ab7fd60e1a4a27c251de387ad098a | [
"MIT"
] | null | null | null | pdfreader/types/objects.py | tmcclintock/pdfreader | 2933e7b92b5ab7fd60e1a4a27c251de387ad098a | [
"MIT"
] | null | null | null | from ..utils import cached_property
from ..pillow import PILImageMixin
from .native import Stream, Dictionary, Array, Name
def obj_factory(doc, obj):
klass = None
if isinstance(obj, Stream):
if obj.Type == 'XObject':
klass = XOBJECTS.get(obj.Subtype, XObject)
else:
... | 21.855238 | 153 | 0.621666 |
2bf8bddedcd983aec3c3cc3cbf6f83ee94dbe06a | 4,402 | py | Python | portfolio2/tinydepparser/myparserutils.py | leonwetzel/Natural-Language-Processing | 5223faf13cf696e9094e3ad939b7fa4ea813c004 | [
"MIT"
] | null | null | null | portfolio2/tinydepparser/myparserutils.py | leonwetzel/Natural-Language-Processing | 5223faf13cf696e9094e3ad939b7fa4ea813c004 | [
"MIT"
] | null | null | null | portfolio2/tinydepparser/myparserutils.py | leonwetzel/Natural-Language-Processing | 5223faf13cf696e9094e3ad939b7fa4ea813c004 | [
"MIT"
] | null | null | null | """
An implementation of a greedy transition-based dependency parser (unlabeled parsing only).
Released under BSD license.
Code is an adapted version of Matthew Honnibal's parser:
https://explosion.ai/blog/parsing-english-in-python
-- change: move core logic to separate myparserutils file
modified by bplank, 03/201... | 30.358621 | 97 | 0.581554 |
2bf8e9a59c36ff11a1fb86c0043541d05023080b | 4,886 | py | Python | senlin-7.0.0/senlin/tests/unit/api/middleware/test_context.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 45 | 2015-10-18T02:56:50.000Z | 2022-03-01T15:28:02.000Z | senlin-7.0.0/senlin/tests/unit/api/middleware/test_context.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | senlin-7.0.0/senlin/tests/unit/api/middleware/test_context.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 45 | 2015-10-19T02:35:57.000Z | 2021-09-28T09:01:42.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed unde... | 38.472441 | 77 | 0.579411 |
2bf97b8944bf5eb1ab4228528229eabb845da352 | 1,970 | py | Python | queue_from_track_id.py | codedwrench/sonosopencontroller | 56f6d99958c5e73691f2f39de490b314724db6f5 | [
"MIT"
] | 1 | 2017-04-09T08:24:05.000Z | 2017-04-09T08:24:05.000Z | queue_from_track_id.py | codedwrench/sonosopencontroller | 56f6d99958c5e73691f2f39de490b314724db6f5 | [
"MIT"
] | null | null | null | queue_from_track_id.py | codedwrench/sonosopencontroller | 56f6d99958c5e73691f2f39de490b314724db6f5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from soco import SoCo
from soco.data_structures import DidlItem, DidlResource
from soco.music_services import MusicService
from soco.compat import quote_url
device = SoCo("192.168.1.80") # <------- Your IP here
service = MusicService("Deezer") # <----... | 34.561404 | 77 | 0.688325 |
2bf99724df5b4e9cffb019d5c688ef19980283e0 | 4,545 | py | Python | applications/MultilevelMonteCarloApplication/external_libraries/XMC/xmc/methodDefs_momentEstimator/updateCombinedPowerSums.py | HubertBalcerzak/Kratos | c15689d53f06dabb36dc44c13eeac73d3e183916 | [
"BSD-4-Clause"
] | null | null | null | applications/MultilevelMonteCarloApplication/external_libraries/XMC/xmc/methodDefs_momentEstimator/updateCombinedPowerSums.py | HubertBalcerzak/Kratos | c15689d53f06dabb36dc44c13eeac73d3e183916 | [
"BSD-4-Clause"
] | null | null | null | applications/MultilevelMonteCarloApplication/external_libraries/XMC/xmc/methodDefs_momentEstimator/updateCombinedPowerSums.py | HubertBalcerzak/Kratos | c15689d53f06dabb36dc44c13eeac73d3e183916 | [
"BSD-4-Clause"
] | null | null | null | # Import PyCOMPSs
# from exaqute.ExaquteTaskPyCOMPSs import * # to execute with runcompss
# from exaqute.ExaquteTaskHyperLoom import * # to execute with the IT4 scheduler
from exaqute.ExaquteTaskLocal import * # to execute with python3
| 46.85567 | 186 | 0.678768 |
2bf9b04946af07ecfeb4321f3b7f8c1cc092942c | 9,264 | py | Python | tests-py/chat/client/client.py | moky/WormHole | 6b2b79274274f6764e0d519d384eb65489f4ca56 | [
"MIT"
] | 5 | 2020-05-24T03:35:00.000Z | 2021-06-05T00:27:54.000Z | tests-py/chat/client/client.py | moky/WormHole | 6b2b79274274f6764e0d519d384eb65489f4ca56 | [
"MIT"
] | null | null | null | tests-py/chat/client/client.py | moky/WormHole | 6b2b79274274f6764e0d519d384eb65489f4ca56 | [
"MIT"
] | 2 | 2020-09-11T05:29:11.000Z | 2022-03-13T15:45:22.000Z | # -*- coding: utf-8 -*-
import json
import threading
import time
from abc import abstractmethod
from typing import Optional
from dmtp.mtp import tlv
from dmtp import mtp
import dmtp
import stun
from .manager import ContactManager, FieldValueEncoder, Session
"""
DMTP Client
~~~~~~~~~~~
"""
#
# ... | 34.184502 | 98 | 0.629642 |
2bfaa9a987827890c7911e5206dd2cbfe6e55ff5 | 3,567 | py | Python | srpc/payload.py | fergul/py-SRPC | 14d75934ee8930c002db9d579533a1544df35f8a | [
"0BSD"
] | null | null | null | srpc/payload.py | fergul/py-SRPC | 14d75934ee8930c002db9d579533a1544df35f8a | [
"0BSD"
] | null | null | null | srpc/payload.py | fergul/py-SRPC | 14d75934ee8930c002db9d579533a1544df35f8a | [
"0BSD"
] | null | null | null | from struct import pack, unpack
from srpcDefs import Command
| 44.037037 | 84 | 0.584244 |
2bfae8e287502bfa4fa79da3660a8aed6860e04e | 598 | py | Python | lista02Exec01.py | marcelocmedeiros/PrimeiraAvalaizcaoPython | 6390505530fc4f9acef2e3b93944547a3685d611 | [
"MIT"
] | null | null | null | lista02Exec01.py | marcelocmedeiros/PrimeiraAvalaizcaoPython | 6390505530fc4f9acef2e3b93944547a3685d611 | [
"MIT"
] | null | null | null | lista02Exec01.py | marcelocmedeiros/PrimeiraAvalaizcaoPython | 6390505530fc4f9acef2e3b93944547a3685d611 | [
"MIT"
] | null | null | null | #MARCELO CAMPOS DE MEDEIROS
#ADS UNIFIP P1 2020
#LISTA 02
'''
1- Faa um programa que solicite ao usurio o valor do litro de combustvel (ex. 4,75)
e quanto em dinheiro ele deseja abastecer (ex. 50,00). Calcule quantos litros de
combustvel o usurio obter com esses valores.
'''
valor_gas = float(input('Qual o valor do c... | 33.222222 | 94 | 0.714047 |
2bfafe785a0c9b524d6065b296778e12ff5c00b9 | 4,982 | py | Python | py/lvmspec/pipeline/state.py | sdss/lvmspec | befd6991537c4947fdf63ca262937f2bb845148f | [
"BSD-3-Clause"
] | null | null | null | py/lvmspec/pipeline/state.py | sdss/lvmspec | befd6991537c4947fdf63ca262937f2bb845148f | [
"BSD-3-Clause"
] | null | null | null | py/lvmspec/pipeline/state.py | sdss/lvmspec | befd6991537c4947fdf63ca262937f2bb845148f | [
"BSD-3-Clause"
] | null | null | null | #
# See top-level LICENSE.rst file for Copyright information
#
# -*- coding: utf-8 -*-
"""
lvmspec.pipeline.state
===========================
Functions for manipulating the state of objects in the dependency graph.
"""
from __future__ import absolute_import, division, print_function
import os
import glob
import subp... | 25.947917 | 119 | 0.59173 |
2bfbf87d90271f02d7821b9fea4374b739a90559 | 6,180 | py | Python | rest_api/projects/serializers.py | joatuapp/joatu-django | 5626d03ba89c55650ff5bff2e706ca0883ae3b9c | [
"MIT"
] | 10 | 2018-05-13T18:01:57.000Z | 2018-12-23T17:11:14.000Z | rest_api/projects/serializers.py | joatuapp/joatu-django | 5626d03ba89c55650ff5bff2e706ca0883ae3b9c | [
"MIT"
] | 88 | 2018-05-04T15:33:46.000Z | 2022-03-08T21:09:21.000Z | rest_api/projects/serializers.py | joatuapp/joatu-django | 5626d03ba89c55650ff5bff2e706ca0883ae3b9c | [
"MIT"
] | 7 | 2018-05-08T16:05:06.000Z | 2018-09-13T05:49:05.000Z | from rest_framework import serializers
from projects.models import (
Project,
ProjectVolunteers,
ProjectVolunteersRegistration,
ProjectAttendees,
ProjectAttendeesRegistration,
ProjectDiscussion,
ProjectAnswerDiscussion,
ProjectHub,
)
| 36.352941 | 121 | 0.66521 |
2bfc0a8be370fd6ea1e8a783e88ab1afd8416818 | 1,165 | py | Python | scripts/de-duplication.py | Jonescy/NewsCrawler | 4c2ee03785a2c4d622aeff27fc4efcadfda4546d | [
"MIT"
] | 2 | 2021-01-10T19:28:42.000Z | 2021-03-28T17:42:48.000Z | scripts/de-duplication.py | Jonescy/NewsCrawler | 4c2ee03785a2c4d622aeff27fc4efcadfda4546d | [
"MIT"
] | 6 | 2022-01-13T06:16:55.000Z | 2022-03-14T06:19:58.000Z | scripts/de-duplication.py | Jonescy/focusnews | 4c2ee03785a2c4d622aeff27fc4efcadfda4546d | [
"MIT"
] | null | null | null | """
@Author: Jonescyna@gmail.com
@Created: 2021/3/10
@Application: mongodb
"""
import pymongo
from NewsCrawler.settings import MONGO_URL
client = pymongo.MongoClient(MONGO_URL, maxPoolSize=1024)
if __name__ == '__main__':
tmp_colName = "tmp_news" #
col_list = ['caijing', 'ce', 'eastmoney', 'hexun', 'new... | 27.093023 | 91 | 0.573391 |
2bfd6ec0c174476e4cb09ec60830cc0bdf4b7014 | 861 | py | Python | app/alembic/versions/a1c5591554f0_create_score_table.py | johndatserakis/find-the-state-api | 81da6c37eaf635ddfc01cb9964d0d173248721c7 | [
"MIT"
] | 1 | 2021-12-23T15:40:53.000Z | 2021-12-23T15:40:53.000Z | app/alembic/versions/a1c5591554f0_create_score_table.py | johndatserakis/find-the-state-api | 81da6c37eaf635ddfc01cb9964d0d173248721c7 | [
"MIT"
] | null | null | null | app/alembic/versions/a1c5591554f0_create_score_table.py | johndatserakis/find-the-state-api | 81da6c37eaf635ddfc01cb9964d0d173248721c7 | [
"MIT"
] | null | null | null | """Create score table
Revision ID: a1c5591554f0
Revises: a6517320e072
Create Date: 2021-04-23 23:09:22.801565
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects.postgresql import UUID
# revision identifiers, used by Alembic.
revision = "a1c5591554f0"
down_revision = "a6517320e072"
branch_la... | 22.076923 | 88 | 0.639954 |
2bff3d13e03ba432923ed45f1e62d385b93564e4 | 4,303 | py | Python | scripts/parse_tools/parse_object.py | SamuelTrahanNOAA/ccpp-framework | 16271557a692b2c6871bf4e2209b8035a9addc52 | [
"Apache-2.0"
] | null | null | null | scripts/parse_tools/parse_object.py | SamuelTrahanNOAA/ccpp-framework | 16271557a692b2c6871bf4e2209b8035a9addc52 | [
"Apache-2.0"
] | null | null | null | scripts/parse_tools/parse_object.py | SamuelTrahanNOAA/ccpp-framework | 16271557a692b2c6871bf4e2209b8035a9addc52 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""A module for the base, ParseObject class"""
# Python library imports
import re
# CCPP framework imports
from .parse_source import ParseContext, CCPPError
########################################################################
def write_line(self, line_num, line):
"Overwrite line... | 35.858333 | 95 | 0.572391 |
2bff57af33ceaea8237514bf259d6354d7c86834 | 8,203 | py | Python | spiders/spider.py | gt11799/xueqiu_spider | 72be1a983e3b648b902f12475fb914add7bd45e7 | [
"MIT"
] | 6 | 2016-09-08T07:30:42.000Z | 2021-02-03T18:20:03.000Z | spiders/spider.py | gt11799/xueqiu_spider | 72be1a983e3b648b902f12475fb914add7bd45e7 | [
"MIT"
] | null | null | null | spiders/spider.py | gt11799/xueqiu_spider | 72be1a983e3b648b902f12475fb914add7bd45e7 | [
"MIT"
] | 2 | 2017-02-07T08:30:18.000Z | 2018-04-24T14:01:01.000Z | # -*- coding: utf-8 -*-
import sys
import time
import json
import pickle
import hashlib
import requests
from urlparse import urljoin
from config import *
from spiders.common import *
from spiders.html_parser import *
from logs.log import logger
reload(sys)
sys.setdefaultencoding('utf8')
| 32.042969 | 96 | 0.534561 |
920062b302b55db0f61f0c70e39b62272b298aab | 1,573 | py | Python | imago/cli.py | opencivicdata/imago | b0cc9379eec02358e25e075b006e6682f9c5fb10 | [
"BSD-3-Clause"
] | 8 | 2015-10-23T14:44:36.000Z | 2018-11-12T00:51:05.000Z | imago/cli.py | opencivicdata/imago | b0cc9379eec02358e25e075b006e6682f9c5fb10 | [
"BSD-3-Clause"
] | 45 | 2015-01-22T19:47:35.000Z | 2017-02-22T17:57:40.000Z | imago/cli.py | datamade/imago | f6a4b52b87d33e6d7a6eaf3c0d1f2dc6b78ce910 | [
"BSD-3-Clause"
] | 10 | 2015-02-25T19:35:05.000Z | 2019-02-15T17:41:19.000Z | import requests
import sys
| 27.12069 | 79 | 0.539097 |
920180be669a9b4ba8c22bfaeb59c4b059bb6f59 | 1,005 | py | Python | sympy/diffgeom/tests/test_class_structure.py | shilpiprd/sympy | 556e9c61b31d0d5f101cd56b43e843fbf3bcf121 | [
"BSD-3-Clause"
] | 8,323 | 2015-01-02T15:51:43.000Z | 2022-03-31T13:13:19.000Z | sympy/diffgeom/tests/test_class_structure.py | shilpiprd/sympy | 556e9c61b31d0d5f101cd56b43e843fbf3bcf121 | [
"BSD-3-Clause"
] | 15,102 | 2015-01-01T01:33:17.000Z | 2022-03-31T22:53:13.000Z | sympy/diffgeom/tests/test_class_structure.py | shilpiprd/sympy | 556e9c61b31d0d5f101cd56b43e843fbf3bcf121 | [
"BSD-3-Clause"
] | 4,490 | 2015-01-01T17:48:07.000Z | 2022-03-31T17:24:05.000Z | from sympy.diffgeom import Manifold, Patch, CoordSystem, Point
from sympy import symbols, Function
from sympy.testing.pytest import warns_deprecated_sympy
m = Manifold('m', 2)
p = Patch('p', m)
a, b = symbols('a b')
cs = CoordSystem('cs', p, [a, b])
x, y = symbols('x y')
f = Function('f')
s1, s2 = cs.coord_functions()... | 30.454545 | 62 | 0.610945 |
920331ec416a3fdec60559ded876c4a34a7bd172 | 489 | py | Python | biconfigs/storages.py | antfu/two-way-configs.py | 8dcf00abf2920d7619da36bbfba33b473656f2a6 | [
"MIT"
] | 2 | 2016-09-28T10:50:25.000Z | 2022-03-24T18:41:18.000Z | biconfigs/storages.py | antfu/two-way-configs.py | 8dcf00abf2920d7619da36bbfba33b473656f2a6 | [
"MIT"
] | 1 | 2016-09-30T20:24:16.000Z | 2019-04-20T12:58:25.000Z | biconfigs/storages.py | antfu/biconfigs | 8dcf00abf2920d7619da36bbfba33b473656f2a6 | [
"MIT"
] | null | null | null | import codecs
__memory_storage = {}
STORAGES = {
'file': {
'read': file_read,
'write': file_write
},
'memory': {
'read': lambda x: __memory_storage[x],
'write': memory_write
}
}
| 18.807692 | 46 | 0.572597 |
9204509b7b416569750a4002597915c7ee96c306 | 895 | py | Python | tests/test_oauth.py | Dephilia/poaurk | 8482effc35030c316c311dbda8a2e0b2e0754cda | [
"MIT"
] | 1 | 2021-11-25T16:55:16.000Z | 2021-11-25T16:55:16.000Z | tests/test_oauth.py | Dephilia/poaurk | 8482effc35030c316c311dbda8a2e0b2e0754cda | [
"MIT"
] | null | null | null | tests/test_oauth.py | Dephilia/poaurk | 8482effc35030c316c311dbda8a2e0b2e0754cda | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright 2021 dephilia <dephilia@MacBook-Pro.local>
#
# Distributed under terms of the MIT license.
"""
"""
import unittest
from poaurk import (PlurkAPI, PlurkOAuth)
if __name__ == '__main__':
unittest.main()
| 24.189189 | 78 | 0.643575 |
9204b08a2c869643862f0dd4db1c4a7238352ef3 | 18,040 | py | Python | test/functional/bsv-journal-mempool-reorg-ordering.py | AustEcon/bitcoin-sv | bc5a01a621893b63d7615d1c7dc2245bae47e8bb | [
"OML"
] | 2 | 2021-06-12T10:10:21.000Z | 2021-06-16T00:03:43.000Z | test/functional/bsv-journal-mempool-reorg-ordering.py | MatterPool/bitcoin-sv-1 | c0e0cbd801ec46c0bd5bf6c91903eb943166f279 | [
"OML"
] | null | null | null | test/functional/bsv-journal-mempool-reorg-ordering.py | MatterPool/bitcoin-sv-1 | c0e0cbd801ec46c0bd5bf6c91903eb943166f279 | [
"OML"
] | 2 | 2020-08-20T20:24:42.000Z | 2021-01-21T09:24:56.000Z | #!/usr/bin/env python3
# Copyright (c) 2019 Bitcoin Association
# Distributed under the Open BSV software license, see the accompanying file LICENSE.
'''
Check different scenarios on how reorg affects contents of mempool and journal.
# chain reorg as a set operation on the chains of blocks containing sets of trans... | 37.978947 | 150 | 0.561696 |
92052e2fb1619d6d194ae1f403d4ea778640c5a8 | 394 | py | Python | datacite_rest/__init__.py | gu-eresearch/datacite-rest | 2569afc9df2a2380e4c001b881b28dd8288441ae | [
"MIT"
] | null | null | null | datacite_rest/__init__.py | gu-eresearch/datacite-rest | 2569afc9df2a2380e4c001b881b28dd8288441ae | [
"MIT"
] | null | null | null | datacite_rest/__init__.py | gu-eresearch/datacite-rest | 2569afc9df2a2380e4c001b881b28dd8288441ae | [
"MIT"
] | 1 | 2021-06-01T16:11:07.000Z | 2021-06-01T16:11:07.000Z | """ root module with metadata """
__title__ = 'datacite-rest'
__version__ = '0.0.1-dev0'
__author__ = 'Gary Burgmann'
__author_email__ = 'g.burgmann@griffith.edu.au'
__description__ = 'a package for managing dois'
__license__ = 'MIT'
try:
from .datacite_rest import DataCiteREST # noqa
except Exception:
# pres... | 28.142857 | 74 | 0.741117 |
9209213a5ea6e0e21690051a33ad712a4ee48839 | 5,778 | py | Python | audio_utils/common/feature_transforms.py | SarthakYadav/audio-data-utils | 2b9c1a0472c9e0521cb02ac142e0a26d73314238 | [
"MIT"
] | null | null | null | audio_utils/common/feature_transforms.py | SarthakYadav/audio-data-utils | 2b9c1a0472c9e0521cb02ac142e0a26d73314238 | [
"MIT"
] | null | null | null | audio_utils/common/feature_transforms.py | SarthakYadav/audio-data-utils | 2b9c1a0472c9e0521cb02ac142e0a26d73314238 | [
"MIT"
] | null | null | null | import torch
import torchaudio
import numpy as np
from torch.nn.functional import normalize
from audio_utils.common.utilities import _check_transform_input
| 32.1 | 122 | 0.573901 |
920aca29cb5a19cdc1c9d17f62a1e4f246af7860 | 112 | py | Python | datrie/run_test.py | nikicc/anaconda-recipes | 9c611a5854bf41bbc5e7ed9853dc71c0851a62ef | [
"BSD-3-Clause"
] | 130 | 2015-07-28T03:41:21.000Z | 2022-03-16T03:07:41.000Z | datrie/run_test.py | nikicc/anaconda-recipes | 9c611a5854bf41bbc5e7ed9853dc71c0851a62ef | [
"BSD-3-Clause"
] | 119 | 2015-08-01T00:54:06.000Z | 2021-01-05T13:00:46.000Z | datrie/run_test.py | nikicc/anaconda-recipes | 9c611a5854bf41bbc5e7ed9853dc71c0851a62ef | [
"BSD-3-Clause"
] | 72 | 2015-07-29T02:35:56.000Z | 2022-02-26T14:31:15.000Z | import string
import datrie
trie = datrie.Trie(string.ascii_lowercase)
trie[u'foo'] = 5
assert u'foo' in trie
| 14 | 42 | 0.75 |
920ae2c4b1ffab09874d3603b23d3df7ab55beeb | 962 | py | Python | projects/models.py | plaf2000/webspec | 487ccccff088ddbda0e5e475aaad167a01f4aab2 | [
"MIT"
] | null | null | null | projects/models.py | plaf2000/webspec | 487ccccff088ddbda0e5e475aaad167a01f4aab2 | [
"MIT"
] | null | null | null | projects/models.py | plaf2000/webspec | 487ccccff088ddbda0e5e475aaad167a01f4aab2 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
| 56.588235 | 104 | 0.697505 |
920c06c03c25fe4afade1bef0ccab25a44b158a4 | 764 | py | Python | qiskit/aqua/algorithms/education/__init__.py | hushaohan/aqua | 8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d | [
"Apache-2.0"
] | 2 | 2020-06-29T16:08:12.000Z | 2020-08-07T22:42:13.000Z | qiskit/aqua/algorithms/education/__init__.py | hushaohan/aqua | 8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d | [
"Apache-2.0"
] | null | null | null | qiskit/aqua/algorithms/education/__init__.py | hushaohan/aqua | 8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d | [
"Apache-2.0"
] | 1 | 2022-01-25T07:09:10.000Z | 2022-01-25T07:09:10.000Z | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modif... | 29.384615 | 77 | 0.717277 |
920f5ebefa994608aeedc97909ba734c752a93a4 | 3,950 | py | Python | tests/vision/metrics/vqa_test.py | shunk031/allennlp-models | d37c5fadeef9326808a84dda0bcfd210a078d6b1 | [
"Apache-2.0"
] | 402 | 2020-03-11T22:58:35.000Z | 2022-03-29T09:05:27.000Z | tests/vision/metrics/vqa_test.py | staceywhitmore-inl/allennlp-models | 1e89d5e51cb45f3e77a48d4983bf980088334fac | [
"Apache-2.0"
] | 116 | 2020-03-11T01:26:57.000Z | 2022-03-25T13:03:56.000Z | tests/vision/metrics/vqa_test.py | staceywhitmore-inl/allennlp-models | 1e89d5e51cb45f3e77a48d4983bf980088334fac | [
"Apache-2.0"
] | 140 | 2020-03-11T00:51:35.000Z | 2022-03-29T09:05:36.000Z | from typing import Any, Dict, List, Tuple, Union
import pytest
import torch
from allennlp.common.testing import (
AllenNlpTestCase,
multi_device,
global_distributed_metric,
run_distributed_test,
)
from allennlp_models.vision import VqaMeasure
| 36.238532 | 92 | 0.552911 |
9210cd1a83170ca2842ecbe0ae9f1b20d789338b | 219 | py | Python | compare_two_values.py | jenildesai25/Visa_interview | 9077d01e122267e5708b12293c8cb6d9801cdc46 | [
"MIT"
] | null | null | null | compare_two_values.py | jenildesai25/Visa_interview | 9077d01e122267e5708b12293c8cb6d9801cdc46 | [
"MIT"
] | null | null | null | compare_two_values.py | jenildesai25/Visa_interview | 9077d01e122267e5708b12293c8cb6d9801cdc46 | [
"MIT"
] | null | null | null | VISA full time master's MCQ.
def func(a, b):
x = a
y = b
while x != y:
if x > y:
x = x - y
if x < y:
y = y - x
return x or y
print(func(2437, 875))
| 15.642857 | 29 | 0.374429 |
9210cf8d56fb443eb25582f2f85f87ed65726ed7 | 36,041 | py | Python | pzflow/flow.py | jfcrenshaw/pzflow | ed1a7082ee3038794632d59864961da381d2523c | [
"MIT"
] | 26 | 2021-02-01T22:10:04.000Z | 2022-03-18T14:54:36.000Z | pzflow/flow.py | jfcrenshaw/pzflow | ed1a7082ee3038794632d59864961da381d2523c | [
"MIT"
] | 48 | 2021-01-12T07:48:10.000Z | 2022-03-18T04:45:30.000Z | pzflow/flow.py | jfcrenshaw/pzflow | ed1a7082ee3038794632d59864961da381d2523c | [
"MIT"
] | 8 | 2021-02-03T06:21:45.000Z | 2022-01-29T17:15:47.000Z | import itertools
from typing import Any, Callable, Sequence, Tuple
import dill as pickle
import jax.numpy as np
import numpy as onp
import pandas as pd
from jax import grad, jit, ops, random
from jax.experimental.optimizers import Optimizer, adam
from pzflow import distributions
from pzflow.bijectors import Bijector_... | 40.586712 | 92 | 0.577176 |
9210dc5e1c681b47bc7424501d4cc31b8599ef0b | 4,763 | py | Python | tests/epyccel/test_epyccel_transpose.py | dina-fouad/pyccel | f4d919e673b400442b9c7b81212b6fbef749c7b7 | [
"MIT"
] | 206 | 2018-06-28T00:28:47.000Z | 2022-03-29T05:17:03.000Z | tests/epyccel/test_epyccel_transpose.py | dina-fouad/pyccel | f4d919e673b400442b9c7b81212b6fbef749c7b7 | [
"MIT"
] | 670 | 2018-07-23T11:02:24.000Z | 2022-03-30T07:28:05.000Z | tests/epyccel/test_epyccel_transpose.py | dina-fouad/pyccel | f4d919e673b400442b9c7b81212b6fbef749c7b7 | [
"MIT"
] | 19 | 2019-09-19T06:01:00.000Z | 2022-03-29T05:17:06.000Z | # pylint: disable=missing-function-docstring, missing-module-docstring/
from numpy.random import randint
from pyccel.epyccel import epyccel
| 28.183432 | 71 | 0.505774 |
921137b99d41d39db37724760282189158ca4b71 | 554 | py | Python | configs.py | h3xh4wk/yamlguide | 7a5b2ff88fabd2916e3f89383761f3ebbe75afc4 | [
"MIT"
] | null | null | null | configs.py | h3xh4wk/yamlguide | 7a5b2ff88fabd2916e3f89383761f3ebbe75afc4 | [
"MIT"
] | null | null | null | configs.py | h3xh4wk/yamlguide | 7a5b2ff88fabd2916e3f89383761f3ebbe75afc4 | [
"MIT"
] | null | null | null | import yaml
import pprint
def read_yaml():
""" A function to read YAML file"""
with open('configs.yml') as f:
config = list(yaml.safe_load_all(f))
return config
def write_yaml(data):
""" A function to write YAML file"""
with open('toyaml.yml', 'a') as f:
yaml.dump_all(data, f, d... | 19.103448 | 56 | 0.646209 |
92153cba78723d1570ff0bdccee6e07fae76883e | 649 | py | Python | consts.py | honey96dev/python-coinbase-tradingbot | ec5fad4336a10ed28c44373dc9509581dd96264f | [
"MIT"
] | 1 | 2021-12-29T09:31:37.000Z | 2021-12-29T09:31:37.000Z | consts.py | honey96dev/python-coinbase-tradingbot | ec5fad4336a10ed28c44373dc9509581dd96264f | [
"MIT"
] | null | null | null | consts.py | honey96dev/python-coinbase-tradingbot | ec5fad4336a10ed28c44373dc9509581dd96264f | [
"MIT"
] | null | null | null | months_json = {
"1": "January",
"2": "February",
"3": "March",
"4": "April",
"5": "May",
"6": "June",
"7": "July",
"8": "August",
"9": "September",
"01": "January",
"02": "February",
"03": "March",
"04": "April",
"05": "May",
"06": "June",
"07": "July",
"08": "August",
"09": "Septem... | 12.98 | 20 | 0.391371 |
9216100e8c2e43d2e0d3473e279433eb80f0be8a | 66 | py | Python | splearn/utils/__init__.py | Treers/spark-learn | ba814b51041c7dbff33c687e7d601e5c51f31c3d | [
"MIT"
] | null | null | null | splearn/utils/__init__.py | Treers/spark-learn | ba814b51041c7dbff33c687e7d601e5c51f31c3d | [
"MIT"
] | null | null | null | splearn/utils/__init__.py | Treers/spark-learn | ba814b51041c7dbff33c687e7d601e5c51f31c3d | [
"MIT"
] | null | null | null | #coding: utf-8
'''
@Time: 2019/4/25 11:15
@Author: fangyoucai
'''
| 11 | 22 | 0.621212 |
92169128033b3d7a3bf8aa8e0095c438a88138a8 | 297 | py | Python | salty/exceptions.py | Markcial/salty | c9e5ad3e71af94cb5260f175e4d3734885efda30 | [
"MIT"
] | null | null | null | salty/exceptions.py | Markcial/salty | c9e5ad3e71af94cb5260f175e4d3734885efda30 | [
"MIT"
] | null | null | null | salty/exceptions.py | Markcial/salty | c9e5ad3e71af94cb5260f175e4d3734885efda30 | [
"MIT"
] | null | null | null |
__all__ = ['EncryptException', 'DecryptException', 'DefaultKeyNotSet', 'NoValidKeyFound']
| 14.85 | 89 | 0.76431 |
9218ee2ecb9207604449852e8a31eab96059f1e2 | 106 | py | Python | build_gpcr/management/commands/build_text.py | pszgaspar/protwis | 4989a67175ef3c95047d795c843cf6b9cf4141fa | [
"Apache-2.0"
] | 21 | 2016-01-20T09:33:14.000Z | 2021-12-20T19:19:45.000Z | build_gpcr/management/commands/build_text.py | pszgaspar/protwis | 4989a67175ef3c95047d795c843cf6b9cf4141fa | [
"Apache-2.0"
] | 75 | 2016-02-26T16:29:58.000Z | 2022-03-21T12:35:13.000Z | build_gpcr/management/commands/build_text.py | pszgaspar/protwis | 4989a67175ef3c95047d795c843cf6b9cf4141fa | [
"Apache-2.0"
] | 77 | 2016-01-22T08:44:26.000Z | 2022-02-01T15:54:56.000Z | from build.management.commands.build_text import Command as BuildText
| 21.2 | 69 | 0.811321 |
9219ccab82b93a1166169f02e863f1093a3ef85a | 8,822 | py | Python | test/unit/builtins/test_packages.py | jmgao/bfg9000 | 7ffb15aed8ea88ee454821e83aa8c42014ac8e34 | [
"BSD-3-Clause"
] | null | null | null | test/unit/builtins/test_packages.py | jmgao/bfg9000 | 7ffb15aed8ea88ee454821e83aa8c42014ac8e34 | [
"BSD-3-Clause"
] | null | null | null | test/unit/builtins/test_packages.py | jmgao/bfg9000 | 7ffb15aed8ea88ee454821e83aa8c42014ac8e34 | [
"BSD-3-Clause"
] | null | null | null | import mock
import ntpath
import os
import re
import sys
import unittest
from collections import namedtuple
from .common import BuiltinTest
from ... import make_env
from bfg9000 import file_types, options as opts
from bfg9000.builtins import packages
from bfg9000.exceptions import PackageResolutionError, PackageVersi... | 39.208889 | 78 | 0.596803 |
9219da371789bf95d6669c85fa9c102d7ff9fec6 | 1,459 | py | Python | pypyr/steps/nowutc.py | FooBarQuaxx/pypyr | ebe56b2200a53e2f38c78bbb42d466bb1556c37c | [
"Apache-2.0"
] | null | null | null | pypyr/steps/nowutc.py | FooBarQuaxx/pypyr | ebe56b2200a53e2f38c78bbb42d466bb1556c37c | [
"Apache-2.0"
] | null | null | null | pypyr/steps/nowutc.py | FooBarQuaxx/pypyr | ebe56b2200a53e2f38c78bbb42d466bb1556c37c | [
"Apache-2.0"
] | null | null | null | """pypyr step saves the current utc datetime to context."""
from datetime import datetime, timezone
import logging
# logger means the log level will be set correctly
logger = logging.getLogger(__name__)
def run_step(context):
"""Save current utc datetime to context.
Args:
context: pypyr.context.Cont... | 32.422222 | 98 | 0.686086 |
9219f5cfa01beb284c389cfb42e21e0246c37a82 | 1,063 | py | Python | datumaro/datumaro/util/test_utils.py | godlikejay/cvat | 50c40ba70dd8f890478068f29ce3de1057ec848c | [
"MIT"
] | 2 | 2020-01-10T08:50:50.000Z | 2020-01-23T06:11:11.000Z | datumaro/datumaro/util/test_utils.py | godlikejay/cvat | 50c40ba70dd8f890478068f29ce3de1057ec848c | [
"MIT"
] | 5 | 2022-02-13T20:46:25.000Z | 2022-02-27T10:34:53.000Z | datumaro/datumaro/util/test_utils.py | godlikejay/cvat | 50c40ba70dd8f890478068f29ce3de1057ec848c | [
"MIT"
] | 1 | 2020-06-26T00:27:43.000Z | 2020-06-26T00:27:43.000Z |
# Copyright (C) 2019 Intel Corporation
#
# SPDX-License-Identifier: MIT
import inspect
import os
import os.path as osp
import shutil
| 27.25641 | 73 | 0.687676 |
921abd69963e5dab6e9a4498bebdc2bdb12a2b92 | 1,480 | py | Python | module3-nosql-and-document-oriented-databases/mongo_queries.py | ayarelif/DS-Unit-3-Sprint-2-SQL-and-Databases | fbd145f5dfbaa1e8b68e7369b593a4eee2c5ae5f | [
"MIT"
] | null | null | null | module3-nosql-and-document-oriented-databases/mongo_queries.py | ayarelif/DS-Unit-3-Sprint-2-SQL-and-Databases | fbd145f5dfbaa1e8b68e7369b593a4eee2c5ae5f | [
"MIT"
] | null | null | null | module3-nosql-and-document-oriented-databases/mongo_queries.py | ayarelif/DS-Unit-3-Sprint-2-SQL-and-Databases | fbd145f5dfbaa1e8b68e7369b593a4eee2c5ae5f | [
"MIT"
] | null | null | null |
# BG_URI="mongodb+srv://elifayar:<password>@clusters.lcjcx.mongodb.net/<dbname>?retryWrites=true&w=majority")
# client = pymongo.MongoClient(DB_URI)
# db = client.test
from pymongo import MongoClient
import os
from dotenv import load_dotenv
load_dotenv()
DB_USER = os.getenv("MONGO_USER", default="OOPS")
DB_PASSWOR... | 27.407407 | 117 | 0.672973 |
921b8b35d970a247993f6069df7c4e369c0dbd62 | 2,148 | py | Python | Video_To_ASCII/main.py | cppshizoidS/Python | dfde647ba4a6fb828ef9a564924416bebd875929 | [
"MIT"
] | 5 | 2022-03-12T02:44:41.000Z | 2022-03-24T10:33:28.000Z | Video_To_ASCII/main.py | cppshizoidS/Python | dfde647ba4a6fb828ef9a564924416bebd875929 | [
"MIT"
] | 1 | 2022-03-16T09:19:21.000Z | 2022-03-16T09:19:21.000Z | Video_To_ASCII/main.py | cppshizoidS/Python | dfde647ba4a6fb828ef9a564924416bebd875929 | [
"MIT"
] | null | null | null | import os
import sys
from time import sleep as sleep
import glob
import cv2
from PIL import Image
ESC = b'\033'
CSI = ESC + b'['
use_ansi_escape_sequences = True
if not use_ansi_escape_sequences:
import ctypes
from ctypes import c_long
console_handle = ctypes.windll.kernel32.GetStdHandle(c_long(-11))
... | 24.409091 | 84 | 0.657356 |
921b98b759492f2fca11edef2d3a5faa5d0dc853 | 1,797 | py | Python | Scripts/simulation/careers/acting/performance_object_data.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/careers/acting/performance_object_data.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/careers/acting/performance_object_data.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\careers\acting\performance_object_data.py
# Compiled at: 2018-09-18 00:30:33
# Size of source mod 2*... | 44.925 | 107 | 0.691708 |
921b9afc0758915d77df27dde1108c6a2abd065e | 670 | py | Python | tests/extractor/test_with_fallback.py | thegangtechnology/excel_comment_orm | b38156b406ccb3ce87737b8ed049bbf3b8a39050 | [
"MIT"
] | 2 | 2020-11-10T04:53:07.000Z | 2020-11-12T03:53:46.000Z | tests/extractor/test_with_fallback.py | thegangtechnology/excel_comment_orm | b38156b406ccb3ce87737b8ed049bbf3b8a39050 | [
"MIT"
] | 50 | 2020-11-09T06:30:31.000Z | 2022-01-06T05:00:50.000Z | tests/extractor/test_with_fallback.py | thegangtechnology/excel_comment_orm | b38156b406ccb3ce87737b8ed049bbf3b8a39050 | [
"MIT"
] | null | null | null | from openpyxl import Workbook
from openpyxl.comments import Comment
from exco import util, ExcoTemplate, ExcelProcessorFactory
| 25.769231 | 71 | 0.656716 |
921be83bfe8f9a489861abaead3be210cb7d7e10 | 9,107 | py | Python | python/miind/connections.py | dekamps/miind | 4b321c62c2bd27eb0d5d8336a16a9e840ba63856 | [
"MIT"
] | 13 | 2015-09-15T17:28:25.000Z | 2022-03-22T20:26:47.000Z | python/miind/connections.py | dekamps/miind | 4b321c62c2bd27eb0d5d8336a16a9e840ba63856 | [
"MIT"
] | 41 | 2015-08-25T07:50:55.000Z | 2022-03-21T16:20:37.000Z | python/miind/connections.py | dekamps/miind | 4b321c62c2bd27eb0d5d8336a16a9e840ba63856 | [
"MIT"
] | 9 | 2015-09-14T20:52:07.000Z | 2022-03-08T12:18:18.000Z | # -*- coding: utf-8 -*-
"""
Created on Sat Jan 17 16:51:56 2015
@author: scsmdk
"""
import miind.nodes as nodes
import miind.variables as variables
TALLY = {}
| 37.788382 | 138 | 0.595037 |
921c258fc50f1fef81ae0ad9d10a9a140a341776 | 15,129 | py | Python | PGM_MLRN_supplementary/train_mixed_precision_distributed.py | MaryZolfaghar/AbstractReasoning | d5f39e447361353eb0f3d77c88d9208942526c0b | [
"Apache-2.0"
] | null | null | null | PGM_MLRN_supplementary/train_mixed_precision_distributed.py | MaryZolfaghar/AbstractReasoning | d5f39e447361353eb0f3d77c88d9208942526c0b | [
"Apache-2.0"
] | null | null | null | PGM_MLRN_supplementary/train_mixed_precision_distributed.py | MaryZolfaghar/AbstractReasoning | d5f39e447361353eb0f3d77c88d9208942526c0b | [
"Apache-2.0"
] | null | null | null | import numpy as np
import torch
import os
import sys
import re
import math
from torch.utils.data import Dataset, DataLoader
from apex import amp
from apex.parallel import DistributedDataParallel as DDP
from lamb import Lamb
#tensorboard for accuracy graphs
import tensorflow as tf
dataset_name = 'neutral'#'interpolati... | 39.296104 | 213 | 0.625289 |
921ca360ae33219bfdbd1ac2f46fb2050a3108c9 | 45,163 | py | Python | python/3D-rrt/pvtrace/Geometry.py | siddhu95/mcclanahoochie | 6df72553ba954b52e949a6847a213b22f9e90157 | [
"Apache-2.0"
] | 1 | 2020-12-27T21:37:35.000Z | 2020-12-27T21:37:35.000Z | python/3D-rrt/pvtrace/Geometry.py | siddhu95/mcclanahoochie | 6df72553ba954b52e949a6847a213b22f9e90157 | [
"Apache-2.0"
] | null | null | null | python/3D-rrt/pvtrace/Geometry.py | siddhu95/mcclanahoochie | 6df72553ba954b52e949a6847a213b22f9e90157 | [
"Apache-2.0"
] | null | null | null | # pvtrace is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# pvtrace is distributed in the hope that it will be useful,
# but WITHOUT... | 36.807661 | 323 | 0.538516 |