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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
da71b1822bbf0d5369bea52d007ca8f6061551f0 | 128 | py | Python | MT-top-perf-cron.py | AdeTheux/ducksboard | 339c965dcef448713ed521ba066759f6fb43c2b1 | [
"MIT"
] | null | null | null | MT-top-perf-cron.py | AdeTheux/ducksboard | 339c965dcef448713ed521ba066759f6fb43c2b1 | [
"MIT"
] | null | null | null | MT-top-perf-cron.py | AdeTheux/ducksboard | 339c965dcef448713ed521ba066759f6fb43c2b1 | [
"MIT"
] | null | null | null | python /homez.144/arnoz/www/dev/MT_ducksboard_top_perf.py -u EMAIL/token -p TOKEN -d mtservicedesk.zendesk.com -a TOKEN -l 72676 | 128 | 128 | 0.796875 |
da741a60b0b7e242baf0c8917409303691b189e3 | 1,110 | py | Python | APP/__init__.py | jcyongqin/MerryChristmas2016 | f1bfc0f9df33dad474f28bbefa21f320e4ee48e9 | [
"MIT"
] | null | null | null | APP/__init__.py | jcyongqin/MerryChristmas2016 | f1bfc0f9df33dad474f28bbefa21f320e4ee48e9 | [
"MIT"
] | null | null | null | APP/__init__.py | jcyongqin/MerryChristmas2016 | f1bfc0f9df33dad474f28bbefa21f320e4ee48e9 | [
"MIT"
] | null | null | null | print('Merry Christmas!!!')
import sys
#
# int main(int argc, char* argv[]) {
# int n = argc > 1 ? atoi(argv[1]) : 4;
# for (int j = 1; j <= n; j++) {
# int s = 1 << j, k = (1 << n) - s, x;
# for (int y = s - j; y >= 0; y--, putchar('\n')) {
# for (x = 0; x < y + k; x++) printf(" "... | 28.461538 | 83 | 0.351351 |
da760162956fd30fc878df9712168c347b1cba4a | 1,013 | py | Python | pyday_night_funkin/enums.py | Square789/PydayNightFunkin | 8d43daec947202566419a2d5ce63cc191b7b8e3c | [
"Apache-2.0"
] | null | null | null | pyday_night_funkin/enums.py | Square789/PydayNightFunkin | 8d43daec947202566419a2d5ce63cc191b7b8e3c | [
"Apache-2.0"
] | 34 | 2021-09-10T01:08:14.000Z | 2022-03-25T18:10:08.000Z | pyday_night_funkin/enums.py | Square789/PydayNightFunkin | 8d43daec947202566419a2d5ce63cc191b7b8e3c | [
"Apache-2.0"
] | null | null | null | """
Enums that aren't really too coupled to anything else.
"""
from enum import IntEnum
# NOTE: That sucks, but is needed for menu selections etc.
DIFFICULTY_REVERSE_MAP = [DIFFICULTY.EASY, DIFFICULTY.NORMAL, DIFFICULTY.HARD]
| 15.828125 | 78 | 0.672261 |
da7627eec05c00f505b4e3736efa9cd06fb060ee | 946 | py | Python | app/restapi/apiMovieDetail.py | DucVinh2609/mtb_admin | 0f67faabcda7b6a5bd5f30126b46a5367d00f77b | [
"MIT"
] | null | null | null | app/restapi/apiMovieDetail.py | DucVinh2609/mtb_admin | 0f67faabcda7b6a5bd5f30126b46a5367d00f77b | [
"MIT"
] | 4 | 2021-06-08T20:42:38.000Z | 2022-03-12T00:07:41.000Z | app/restapi/apiMovieDetail.py | DucVinh2609/mtb_admin | 0f67faabcda7b6a5bd5f30126b46a5367d00f77b | [
"MIT"
] | null | null | null | # import pymysql
# from app import app
# from flask import jsonify
# from flask import flash, request
# from flask_restful import Resource, Api
# from flaskext.mysql import MySQL
# mysql = MySQL()
# # MySQL configurations
# app.config['MYSQL_DATABASE_USER'] = 'root'
# app.config['MYSQL_DATABASE_PASSWORD'] = ''
# app.... | 36.384615 | 273 | 0.732558 |
da774b4615481a7592e47b528fe32fca5d803722 | 56 | py | Python | aioface/storages/fsm/types.py | kirillkuzin/aioface | c19f89f3f0f6ccb95832030444f2ece8fda7de62 | [
"MIT"
] | 1 | 2020-09-12T21:10:54.000Z | 2020-09-12T21:10:54.000Z | aioface/storages/fsm/types.py | kirillkuzin/aioface | c19f89f3f0f6ccb95832030444f2ece8fda7de62 | [
"MIT"
] | null | null | null | aioface/storages/fsm/types.py | kirillkuzin/aioface | c19f89f3f0f6ccb95832030444f2ece8fda7de62 | [
"MIT"
] | null | null | null | import typing
State = typing.NewType('State', object)
| 11.2 | 39 | 0.732143 |
da776d50619a771e6d0a4ec84979dc6f33204a34 | 291 | py | Python | wqxweblib/__main__.py | FlippingBinary/wqxweblib | 129ac6d010f5fb726fe29dc9494f90f19a7ec4c0 | [
"MIT"
] | null | null | null | wqxweblib/__main__.py | FlippingBinary/wqxweblib | 129ac6d010f5fb726fe29dc9494f90f19a7ec4c0 | [
"MIT"
] | null | null | null | wqxweblib/__main__.py | FlippingBinary/wqxweblib | 129ac6d010f5fb726fe29dc9494f90f19a7ec4c0 | [
"MIT"
] | null | null | null | import sys
if __name__ == "__main__":
main(sys.argv[1:])
| 29.1 | 95 | 0.714777 |
da78a73d88c09570047fcaf5e2a501ef100b4dc0 | 28,780 | py | Python | tools/check_cluster.py | jmatuskey/jupyterhub-deploy | 6669bb0fa8e6da52f74d4ca015cea9dc96105a34 | [
"Unlicense"
] | 1 | 2021-06-02T18:35:05.000Z | 2021-06-02T18:35:05.000Z | tools/check_cluster.py | jmatuskey/jupyterhub-deploy | 6669bb0fa8e6da52f74d4ca015cea9dc96105a34 | [
"Unlicense"
] | 64 | 2020-05-11T12:35:26.000Z | 2022-03-28T16:03:37.000Z | tools/check_cluster.py | jmatuskey/jupyterhub-deploy | 6669bb0fa8e6da52f74d4ca015cea9dc96105a34 | [
"Unlicense"
] | 11 | 2020-04-07T13:32:07.000Z | 2022-02-07T19:16:24.000Z | #! /usr/bin/env python
"""Check properties of Terraformed resources and/or JupyterHub to verify good deployment.
ignore the hub since it may not be delpoyed on the cluster yet.
check creation date
check for global hammer
"""
import sys
import os
import subprocess
import argparse
import re
import json
from collection... | 37.087629 | 243 | 0.618277 |
da78b0227ad76c6a1e8ba2489ed9c76d00da8725 | 791 | py | Python | tests/in/test_application.py | evereux/catia_python | 08948585899b12587b0415ce3c9191a408b34897 | [
"MIT"
] | 90 | 2019-02-21T10:05:28.000Z | 2022-03-19T01:53:41.000Z | tests/in/test_application.py | Luanee/pycatia | ea5eef8178f73de12404561c00baf7a7ca30da59 | [
"MIT"
] | 99 | 2019-05-21T08:29:12.000Z | 2022-03-25T09:55:15.000Z | tests/in/test_application.py | Luanee/pycatia | ea5eef8178f73de12404561c00baf7a7ca30da59 | [
"MIT"
] | 26 | 2019-04-04T06:31:36.000Z | 2022-03-30T07:24:47.000Z | #! /usr/bin/python3.6
from pycatia import catia
from tests.source_files import cat_part_measurable
| 19.775 | 56 | 0.705436 |
da7992586d3c2316d0ce8cb23cf3e01e30ae505b | 4,632 | py | Python | test/util.py | CarysT/xar | f476c05dec373fcdcd0e884d5a0201501555edb9 | [
"BSD-2-Clause"
] | null | null | null | test/util.py | CarysT/xar | f476c05dec373fcdcd0e884d5a0201501555edb9 | [
"BSD-2-Clause"
] | null | null | null | test/util.py | CarysT/xar | f476c05dec373fcdcd0e884d5a0201501555edb9 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
import contextlib
import hashlib
import os
import os.path
import shutil
import stat
import subprocess
import sys
import xattr
def skip_if_no_compression_support(type):
"""
Raises TestCaseSkipError if the type is "lzma" and the test is running on
darwin (OS X). In the future, we should add a h... | 31.726027 | 193 | 0.708765 |
da79b4fcd76b875d0455312cd540c29c3adde2c1 | 15,083 | py | Python | run_game_with_python_arcade.py | LiorAvrahami/fishy-game | e13d71ad04625edffc1ff32f56c918166f6b0bb9 | [
"MIT"
] | 5 | 2021-04-24T18:13:36.000Z | 2021-08-31T13:54:55.000Z | run_game_with_python_arcade.py | LiorAvrahami/fishy-game | e13d71ad04625edffc1ff32f56c918166f6b0bb9 | [
"MIT"
] | null | null | null | run_game_with_python_arcade.py | LiorAvrahami/fishy-game | e13d71ad04625edffc1ff32f56c918166f6b0bb9 | [
"MIT"
] | null | null | null | import arcade
import arcade.gui
from modifications_to_python_arcade.gui_manager import ModifiedUIManager
from modifications_to_python_arcade.resizeable_window import ResizeableWindow
from arcade.gui.ui_style import UIStyle
import fish
from controls import PlayerControlsObject
from fish_generator import RandomFishGene... | 39.381201 | 211 | 0.679772 |
da7b3bc161256bb5501fd5bd641192702f9a7738 | 2,306 | py | Python | pebbles/views/sessions.py | CSCfi/pebbles | 24b32e8fc538cc8095fda62c892a8221346c2bce | [
"MIT"
] | 4 | 2017-05-11T14:50:32.000Z | 2020-01-10T09:02:27.000Z | pebbles/views/sessions.py | CSCfi/pebbles | 24b32e8fc538cc8095fda62c892a8221346c2bce | [
"MIT"
] | 145 | 2017-04-07T11:01:58.000Z | 2019-12-11T15:30:23.000Z | pebbles/views/sessions.py | CSCfi/pebbles | 24b32e8fc538cc8095fda62c892a8221346c2bce | [
"MIT"
] | 3 | 2017-10-25T12:36:16.000Z | 2018-04-26T08:49:34.000Z | from flask_restful import fields, marshal
from flask import Blueprint as FlaskBlueprint
import logging
import json
from pebbles.models import User
from pebbles.forms import SessionCreateForm
from pebbles.server import app, restful
from pebbles.views.commons import is_group_manager, update_email # changed
sessions =... | 36.603175 | 98 | 0.624024 |
da7bab95ad749f6149016b3bc152e246a371a757 | 6,138 | py | Python | train_rrca.py | deepeshhada/ReXPlug | f6ba1e1707e04f82451fba8ada19c731c8f7c46e | [
"Apache-2.0"
] | 6 | 2021-04-04T05:09:32.000Z | 2022-01-21T10:59:20.000Z | train_rrca.py | deepeshhada/ReXPlug | f6ba1e1707e04f82451fba8ada19c731c8f7c46e | [
"Apache-2.0"
] | null | null | null | train_rrca.py | deepeshhada/ReXPlug | f6ba1e1707e04f82451fba8ada19c731c8f7c46e | [
"Apache-2.0"
] | 1 | 2021-11-06T05:36:03.000Z | 2021-11-06T05:36:03.000Z | import argparse
import os
import pickle
from copy import deepcopy
import pandas as pd
import torch.optim as optim
from torch.utils.data import DataLoader
from collate import CollateTrain, CollateTest
from models.RRCA import *
from utils.rrca_utils import evaluate, train_one_epoch
if __name__ == "__main__":
par... | 33.540984 | 117 | 0.750244 |
da7bd622d1ddbda2597706e2f3a2142e325287e0 | 4,540 | py | Python | SignLAnguage/proyecto.py | val171001/SignLanguage | fc7622e4a31f007791f34fbf0ba08c89138389c5 | [
"MIT"
] | null | null | null | SignLAnguage/proyecto.py | val171001/SignLanguage | fc7622e4a31f007791f34fbf0ba08c89138389c5 | [
"MIT"
] | null | null | null | SignLAnguage/proyecto.py | val171001/SignLanguage | fc7622e4a31f007791f34fbf0ba08c89138389c5 | [
"MIT"
] | null | null | null | #Universidad del Valle de Guatemala
#HCI
#David valenzuela
#Marcos Gutierrez
#Fernando Hengstenebrg
#Librerias
from tkinter import *
from tkinter import messagebox as ms
#base de datos
import sqlite3
import os
import webbrowser
#Conectamos con base de datos y creamos usuarios
with sqlite3.connect('cuentas.db') as db:... | 38.803419 | 140 | 0.596256 |
da7e18ea9112e331d9b45cb4a08cb02a217b0d65 | 53 | py | Python | 001146StepikPyBegin/Stepik001146PyBeginсh06p01st08C07_fraction_20200419.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 001146StepikPyBegin/Stepik001146PyBeginсh06p01st08C07_fraction_20200419.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 001146StepikPyBegin/Stepik001146PyBeginсh06p01st08C07_fraction_20200419.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | num1 = float(input())
# num1 = 44.45
print(num1 % 1)
| 13.25 | 21 | 0.603774 |
da804ba481b451cc0ca78dfe3274c111f94eaf58 | 16,539 | py | Python | data-processing/utils/__init__.py | mark-andrews/BayesianAccountMemoryText | 28609a4d3d3924c5082af81359ffc3f78f6eb6da | [
"CC-BY-4.0"
] | 2 | 2020-04-10T17:14:19.000Z | 2020-04-10T17:14:26.000Z | data-processing/utils/__init__.py | mark-andrews/BayesianAccountMemoryText | 28609a4d3d3924c5082af81359ffc3f78f6eb6da | [
"CC-BY-4.0"
] | 18 | 2020-03-24T17:07:23.000Z | 2021-12-13T20:01:11.000Z | data-processing/utils/__init__.py | mark-andrews/BayesianAccountMemoryText | 28609a4d3d3924c5082af81359ffc3f78f6eb6da | [
"CC-BY-4.0"
] | null | null | null | """
Some general utils.
"""
##=============================================================================
## Standard library imports
##=============================================================================
#import string
#import re
#import os
#import errno
#import hashlib
#
##==============================... | 73.834821 | 104 | 0.912026 |
da8089058869977e8a1f3875a6acbaed71ba57b4 | 651 | py | Python | src/turret/core/cli.py | VanJanssen/turret | a3b87940aa7ed07df7a60e7633f795c0fec26462 | [
"MIT"
] | 1 | 2018-01-09T12:40:00.000Z | 2018-01-09T12:40:00.000Z | src/turret/core/cli.py | VanJanssen/turret | a3b87940aa7ed07df7a60e7633f795c0fec26462 | [
"MIT"
] | 42 | 2018-01-05T11:45:56.000Z | 2019-03-11T09:41:11.000Z | src/turret/core/cli.py | VanJanssen/turret | a3b87940aa7ed07df7a60e7633f795c0fec26462 | [
"MIT"
] | 1 | 2017-08-29T15:54:28.000Z | 2017-08-29T15:54:28.000Z | # -*- coding: utf-8 -*-
"""Entry point for the command line interface of Turret.
The command line interface is split across multiple files, to increase
modulairity and maintainability. Every component of Turret has its own
subcommand, the CLI for this is in the `cli.py` file of this component. This
file imports the s... | 23.25 | 76 | 0.749616 |
da8173e404603548727bb332a693728554dd4658 | 3,927 | py | Python | timekeeper/log.py | jmcph4/timekeeper | 1ab850739c7071ebd8a4d1a63795d014bfa9c41b | [
"MIT"
] | null | null | null | timekeeper/log.py | jmcph4/timekeeper | 1ab850739c7071ebd8a4d1a63795d014bfa9c41b | [
"MIT"
] | 5 | 2017-07-19T10:09:32.000Z | 2017-07-30T03:32:56.000Z | timekeeper/log.py | jmcph4/timekeeper | 1ab850739c7071ebd8a4d1a63795d014bfa9c41b | [
"MIT"
] | null | null | null | from datetime import datetime
import sqlite3
from . import slice
| 29.088889 | 164 | 0.507512 |
da820a998854815eb9a984cf6f47297e37abd1fc | 709 | py | Python | tests/test_utils.py | leugimkm/codeseeker | f8a1f8668807a2b02cbaf5c596d26164ba75e366 | [
"MIT"
] | 1 | 2022-02-02T04:43:32.000Z | 2022-02-02T04:43:32.000Z | tests/test_utils.py | leugimkm/codeseeker | f8a1f8668807a2b02cbaf5c596d26164ba75e366 | [
"MIT"
] | 7 | 2022-02-02T05:25:40.000Z | 2022-03-23T17:16:19.000Z | tests/test_utils.py | leugimkm/codeseeker | f8a1f8668807a2b02cbaf5c596d26164ba75e366 | [
"MIT"
] | null | null | null | import io
import unittest
from unittest.mock import patch
from textwrap import dedent
from codeseeker.utils import show
if __name__ == '__main__':
unittest.main()
| 24.448276 | 74 | 0.603667 |
da828fe3ebcfe4b60891da48c991e49aa603a4a1 | 3,267 | py | Python | cryptography/rail_fence_cipher/Python/rail_fence_cipher.py | avi-pal/al-go-rithms | 5167a20f1db7b366ff19f2962c1746a02e4f5067 | [
"CC0-1.0"
] | 1,253 | 2017-06-06T07:19:25.000Z | 2022-03-30T17:07:58.000Z | cryptography/rail_fence_cipher/Python/rail_fence_cipher.py | rishabh99-rc/al-go-rithms | 4df20d7ef7598fda4bc89101f9a99aac94cdd794 | [
"CC0-1.0"
] | 554 | 2017-09-29T18:56:01.000Z | 2022-02-21T15:48:13.000Z | cryptography/rail_fence_cipher/Python/rail_fence_cipher.py | rishabh99-rc/al-go-rithms | 4df20d7ef7598fda4bc89101f9a99aac94cdd794 | [
"CC0-1.0"
] | 2,226 | 2017-09-29T19:59:59.000Z | 2022-03-25T08:59:55.000Z | # used for decryption, take the second element for sorting
# EXAMPLES
# check that len(string)>depth
print("encryptions with depth 2: ")
res = encrypt("rail fence",2)
print("rail fence: " + res)
res = decrypt(res,2)
print("decryption -> " + res)
res = encrypt("Github",2)
print("Github: " + res)
res = decrypt(res... | 27.923077 | 94 | 0.685644 |
da858baf0350df7bd476677ebd9b47d2ce1cc39c | 2,736 | py | Python | tools/bin/clearAssignment.py | cpausmit/Tapas | 283016cebc036a703609317aafc28675b1c1ea17 | [
"MIT"
] | null | null | null | tools/bin/clearAssignment.py | cpausmit/Tapas | 283016cebc036a703609317aafc28675b1c1ea17 | [
"MIT"
] | null | null | null | tools/bin/clearAssignment.py | cpausmit/Tapas | 283016cebc036a703609317aafc28675b1c1ea17 | [
"MIT"
] | null | null | null | #!/usr/bin/python
#---------------------------------------------------------------------------------------------------
# Clear an existing assignment in the database using the unique task Id.
#
#---------------------------------------------------------------------------------------------------
import sys,os,re
import M... | 31.813953 | 100 | 0.482822 |
da85979a8a85aecc4d586a12af1e63303a1db9ca | 146 | py | Python | qna/admin.py | aryaputra28/covidify-PerancanganWeb | 34d6d0017f44248c172fc58e6e1b138e23e68a95 | [
"Unlicense"
] | null | null | null | qna/admin.py | aryaputra28/covidify-PerancanganWeb | 34d6d0017f44248c172fc58e6e1b138e23e68a95 | [
"Unlicense"
] | null | null | null | qna/admin.py | aryaputra28/covidify-PerancanganWeb | 34d6d0017f44248c172fc58e6e1b138e23e68a95 | [
"Unlicense"
] | null | null | null | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(pertanyaan)
admin.site.register(komentar)
| 24.333333 | 32 | 0.808219 |
da85a9841500fbd6e450901a3ca02828bbbeb03f | 1,443 | py | Python | selfdrive/can/tests/test_packer_chrysler.py | matthewklinko/openpilot | b0563a59684d0901f99abbb58ac1fbd729ded1f9 | [
"MIT"
] | 4 | 2019-02-12T03:06:31.000Z | 2020-07-17T03:54:46.000Z | selfdrive/can/tests/test_packer_chrysler.py | matthewklinko/openpilot | b0563a59684d0901f99abbb58ac1fbd729ded1f9 | [
"MIT"
] | 3 | 2020-09-08T07:21:59.000Z | 2020-09-08T07:22:07.000Z | selfdrive/can/tests/test_packer_chrysler.py | matthewklinko/openpilot | b0563a59684d0901f99abbb58ac1fbd729ded1f9 | [
"MIT"
] | 4 | 2019-05-21T19:02:46.000Z | 2020-03-24T14:27:45.000Z | import unittest
import random
from selfdrive.can.tests.packer_old import CANPacker as CANPackerOld
from selfdrive.can.packer import CANPacker
import selfdrive.car.chrysler.chryslercan as chryslercan
if __name__ == "__main__":
unittest.main()
| 40.083333 | 120 | 0.726265 |
da85c358f54be05780771410e2c91e3ce7581a8d | 9,156 | py | Python | kddg/api/layers.py | Kortemme-Lab/kddg | 9fc09172abbefd4fef49261687c60a9bd9b6b29b | [
"MIT"
] | 2 | 2016-06-14T00:32:02.000Z | 2020-05-04T03:29:46.000Z | kddg/api/layers.py | Kortemme-Lab/kddg | 9fc09172abbefd4fef49261687c60a9bd9b6b29b | [
"MIT"
] | null | null | null | kddg/api/layers.py | Kortemme-Lab/kddg | 9fc09172abbefd4fef49261687c60a9bd9b6b29b | [
"MIT"
] | null | null | null | #!/usr/bin/python2.4
# encoding: utf-8
"""
api_layers.py
The definition of the layers of the database API and the generic user interface class.
Created by Shane O'Connor 2015.
Copyright (c) 2015 __UCSF__. All rights reserved.
"""
import inspect
import functools
from klab import colortext
from kddg.api import settin... | 34.292135 | 257 | 0.662844 |
da8712cd2ff361045352f744da703fa2ec6f82df | 3,142 | py | Python | fb_api.py | wing3s/shop_bot | 4c6a34538ac8de9999edae190f6269bc6a63c2cf | [
"BSD-3-Clause"
] | 1 | 2016-04-11T01:18:53.000Z | 2016-04-11T01:18:53.000Z | fb_api.py | wing3s/shop_bot | 4c6a34538ac8de9999edae190f6269bc6a63c2cf | [
"BSD-3-Clause"
] | null | null | null | fb_api.py | wing3s/shop_bot | 4c6a34538ac8de9999edae190f6269bc6a63c2cf | [
"BSD-3-Clause"
] | null | null | null | import os
import requests
import time
import ConfigParser
import logging
import logging.config
from requests.exceptions import RequestException
from helper import get_logger, base_path
config = ConfigParser.ConfigParser()
config.read(os.path.join(base_path, 'config.ini'))
logger = get_logger('fb_api', __file__)
__au... | 34.152174 | 70 | 0.510185 |
da89128d24114037df1325dfa4587c3b0ac3e279 | 6,409 | py | Python | examples/formula_library.py | bherbruck/plend | 55271d79c983cc3b3307661833c5a7dcc11efc32 | [
"MIT"
] | 5 | 2020-02-21T09:22:58.000Z | 2021-09-07T16:39:47.000Z | examples/formula_library.py | bherbruck/plend | 55271d79c983cc3b3307661833c5a7dcc11efc32 | [
"MIT"
] | null | null | null | examples/formula_library.py | bherbruck/plend | 55271d79c983cc3b3307661833c5a7dcc11efc32 | [
"MIT"
] | 1 | 2022-01-26T20:00:47.000Z | 2022-01-26T20:00:47.000Z | """
This example shows how to statically define formulas,
add them to a formula library, optimize them, and
output the results.
"Statically in this context means we are manually
setting the attribures (min and max) for each
ingredient and nutrient rather defining them
dynamically (which is where plend really shines)
... | 60.462264 | 157 | 0.568575 |
da89cac67e3dd9455f993529126f6ea3e387def3 | 1,278 | py | Python | sstmap/scripts/dtr_to_netcdf.py | ssabrii/SSTMap | f4f3fb72ed632f00b9f519ae9eab4a41b6c69db9 | [
"MIT"
] | 23 | 2017-12-12T17:59:26.000Z | 2022-02-01T20:19:56.000Z | sstmap/scripts/dtr_to_netcdf.py | ssabrii/SSTMap | f4f3fb72ed632f00b9f519ae9eab4a41b6c69db9 | [
"MIT"
] | 45 | 2017-05-03T14:05:19.000Z | 2022-03-02T07:28:39.000Z | sstmap/scripts/dtr_to_netcdf.py | ssabrii/SSTMap | f4f3fb72ed632f00b9f519ae9eab4a41b6c69db9 | [
"MIT"
] | 24 | 2017-04-28T19:49:56.000Z | 2021-11-05T17:57:02.000Z | from argparse import ArgumentParser
import mdtraj as md
def parse_args():
"""Parse the command line arguments and perform some validation on the
arguments
Returns
-------
args : argparse.Namespace
The namespace containing the arguments
"""
parser = ArgumentParser(
descripti... | 29.045455 | 74 | 0.628326 |
da8aea2d0e2cc438f1e2afe2e6c0015770e13ef8 | 6,106 | py | Python | tpDcc/abstract/scene.py | tpDcc/tpDccLib | a4f77a3fdd981eac494331e429c92bd3e4a87d3b | [
"MIT"
] | 6 | 2021-03-02T00:31:53.000Z | 2021-03-30T09:02:54.000Z | tpDcc/abstract/scene.py | tpDcc/tpDccLib | a4f77a3fdd981eac494331e429c92bd3e4a87d3b | [
"MIT"
] | 1 | 2021-03-02T08:43:34.000Z | 2021-03-04T01:36:02.000Z | tpDcc/abstract/scene.py | tpDcc/tpDccLib | a4f77a3fdd981eac494331e429c92bd3e4a87d3b | [
"MIT"
] | 1 | 2021-03-03T21:01:51.000Z | 2021-03-03T21:01:51.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module that contains DCC scene abstract class implementation
"""
from __future__ import print_function, division, absolute_import
from tpDcc import dcc
from tpDcc.dcc import sceneobject
from tpDcc.libs.python import python, decorators
def selected_objects(self... | 34.891429 | 109 | 0.589912 |
da8e614ab7b081bdccebe5c0752328dc5769b689 | 11,303 | py | Python | fpga/lib/pcie/tb/test_dma_client_axis_sink_512_64.py | totuwei/corundum | e983ad519fb4523d0ffca32f5e436195bcfc945c | [
"BSD-2-Clause-FreeBSD"
] | 544 | 2019-08-12T03:45:32.000Z | 2022-03-19T14:17:20.000Z | fpga/lib/pcie/tb/test_dma_client_axis_sink_512_64.py | akira2009999/corundum | cdc14769c33186c6d45fcd79b95c70889febff2b | [
"BSD-2-Clause-FreeBSD"
] | 78 | 2020-08-20T20:06:33.000Z | 2022-03-30T23:44:37.000Z | fpga/lib/pcie/tb/test_dma_client_axis_sink_512_64.py | akira2009999/corundum | cdc14769c33186c6d45fcd79b95c70889febff2b | [
"BSD-2-Clause-FreeBSD"
] | 142 | 2019-07-15T04:23:23.000Z | 2022-03-29T01:25:33.000Z | #!/usr/bin/env python
"""
Copyright (c) 2019 Alex Forencich
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merg... | 35.211838 | 166 | 0.657348 |
da8e6b5d27ab3ab699761ec5dcf3eadc2360c2c0 | 5,713 | py | Python | scrape_votes.py | purrcat259/reddit-vote-grapher | 0a0f1dccee7befc6e94e856d09eb61b546b34644 | [
"MIT"
] | 1 | 2016-05-18T06:30:26.000Z | 2016-05-18T06:30:26.000Z | scrape_votes.py | purrcat259/reddit-vote-grapher | 0a0f1dccee7befc6e94e856d09eb61b546b34644 | [
"MIT"
] | null | null | null | scrape_votes.py | purrcat259/reddit-vote-grapher | 0a0f1dccee7befc6e94e856d09eb61b546b34644 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import time
import os
import csv
import praw
import OAuth2Util
from pprint import pprint
def main():
v = VoteScraper()
v.run()
if __name__ == '__main__':
main()
| 37.585526 | 114 | 0.593033 |
da8e99c09aabca3db1bc0e1af11da10e940286d6 | 2,549 | py | Python | tests/fixtures/dict_list/docket_list_with_homicide.py | SimmonsRitchie/court_docket_scraper | f467d59c4ea8dbddb4fd7545dc36656a4b30e46d | [
"MIT"
] | 1 | 2021-10-29T20:12:44.000Z | 2021-10-29T20:12:44.000Z | tests/fixtures/dict_list/docket_list_with_homicide.py | SimmonsRitchie/court_docket_scraper | f467d59c4ea8dbddb4fd7545dc36656a4b30e46d | [
"MIT"
] | 2 | 2019-07-19T20:13:16.000Z | 2019-07-19T20:13:16.000Z | tests/fixtures/dict_list/docket_list_with_homicide.py | SimmonsRitchie/court_docket_scraper | f467d59c4ea8dbddb4fd7545dc36656a4b30e46d | [
"MIT"
] | null | null | null | docket_list = [
{
"county": "Dauphin",
"docketnum": 1,
"case_caption": "Commonwealth V. Smith, John A.",
"arresting_agency": "Harrisburg PD",
"municipality": "Harrisburg",
"defendant": "John A. Smith",
"defendant_race": "white",
"defendant_gender": "Ma... | 39.828125 | 146 | 0.582581 |
da9203437dccc2b66c4d623067b94d8a0a97c3de | 3,488 | py | Python | DeleteBook.py | saurabhmaurya45/library-management-system | 2e489728068cca87ed58f493ac2524b6586f66cf | [
"Apache-2.0"
] | null | null | null | DeleteBook.py | saurabhmaurya45/library-management-system | 2e489728068cca87ed58f493ac2524b6586f66cf | [
"Apache-2.0"
] | null | null | null | DeleteBook.py | saurabhmaurya45/library-management-system | 2e489728068cca87ed58f493ac2524b6586f66cf | [
"Apache-2.0"
] | null | null | null | from tkinter import *
import pymysql as ms
from tkinter import messagebox
# Add your own database name and password here to reflect in the code
mypass = "saurabh"
mydatabase = "library"
con = ms.connect(host="localhost", user="root", password=mypass, database=mydatabase)
cur = con.cursor()
# Enter Table... | 35.591837 | 119 | 0.556479 |
da920dcd51ae362c5f26a3360b65c16937f31fe7 | 8,474 | py | Python | asdf/extension.py | larrybradley/asdf | b1e0fe6ab7aa319d5939ec2aa78d23822abf6bd4 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | asdf/extension.py | larrybradley/asdf | b1e0fe6ab7aa319d5939ec2aa78d23822abf6bd4 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | asdf/extension.py | larrybradley/asdf | b1e0fe6ab7aa319d5939ec2aa78d23822abf6bd4 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
import os
import abc
import warnings
from pkg_resources import iter_entry_points
import six
import importlib
from . import types
from . import resolver
from .util import get_class_name
from .type_index import AsdfTypeIndex
from .... | 33.362205 | 80 | 0.623554 |
da923abab5b7e2cb6e8f37c23f2fa4cc9504aff5 | 2,153 | py | Python | source/setup.py | Sylvain-Barde/mic-toolbox | 10d9d930a1a359aaa831f2f917eff357a3d5282e | [
"BSD-3-Clause"
] | 4 | 2019-06-28T20:36:33.000Z | 2022-01-04T21:49:52.000Z | source/setup.py | Sylvain-Barde/mic-toolbox | 10d9d930a1a359aaa831f2f917eff357a3d5282e | [
"BSD-3-Clause"
] | 1 | 2019-06-27T14:52:52.000Z | 2019-07-04T14:14:14.000Z | source/setup.py | Sylvain-Barde/mic-toolbox | 10d9d930a1a359aaa831f2f917eff357a3d5282e | [
"BSD-3-Clause"
] | 1 | 2019-06-27T13:33:42.000Z | 2019-06-27T13:33:42.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 12 14:48:07 2018
@author: sb636
"""
import os
import sys
from setuptools import setup, Extension, find_packages
from distutils.errors import DistutilsModuleError
# Check for cython installation
try:
from Cython.Distutils import b... | 29.902778 | 85 | 0.625639 |
da92ca41103ff60b1a50e24d1900c7aae0620a32 | 4,049 | py | Python | api-reconstruction/ipython_analysis.py | eurecom-s3/syscall2api | 2f2c72c759b0fd803fe1302c3b6717cda1906916 | [
"MIT"
] | 10 | 2019-09-24T13:36:15.000Z | 2021-11-01T02:40:10.000Z | api-reconstruction/ipython_analysis.py | eurecom-s3/syscall2api | 2f2c72c759b0fd803fe1302c3b6717cda1906916 | [
"MIT"
] | 2 | 2020-10-19T11:51:08.000Z | 2021-04-17T01:08:23.000Z | api-reconstruction/ipython_analysis.py | eurecom-s3/syscall2api | 2f2c72c759b0fd803fe1302c3b6717cda1906916 | [
"MIT"
] | null | null | null | #!/usr/local/bin/ipython3 -i
import sys
from analysis import *
import analysis.classes as classes
import nwalign as nw
kb = {}
apis = {}
syscalls = {}
regexes = {}
models = {}
models2 = {}
kb_file = 'kb_no_empties.pickle'
regex_file = 'new_regex.pickle'
models_file = 'models.pickle'
models2_file = 'models2.pickle'
... | 28.716312 | 79 | 0.678686 |
da92e435dd529ef7c6adb64e5afe197974724936 | 660 | py | Python | tests/client/test_spread_sheet.py | shin-hama/git-svn-monitor | acb793c2da63d6802efa8e0e6c99482f4fad0f80 | [
"MIT"
] | null | null | null | tests/client/test_spread_sheet.py | shin-hama/git-svn-monitor | acb793c2da63d6802efa8e0e6c99482f4fad0f80 | [
"MIT"
] | 36 | 2021-07-12T00:08:03.000Z | 2022-03-25T11:19:39.000Z | tests/client/test_spread_sheet.py | shin-hama/git-svn-monitor | acb793c2da63d6802efa8e0e6c99482f4fad0f80 | [
"MIT"
] | null | null | null | from datetime import datetime
from git_svn_monitor.client import spread_seat
from git_svn_monitor.core.config import TIMESTAMP_FORMAT
| 27.5 | 63 | 0.75 |
16f0b6155221bd21f39e5a25133a8324a5286c72 | 3,785 | py | Python | accessdata/api/extensions.py | AccessDataOps/FTK-API-SDK | 34e689a55eadacc51e6ff585e9126799f80e269a | [
"MIT"
] | 2 | 2021-12-10T10:20:08.000Z | 2022-01-06T11:15:43.000Z | accessdata/api/extensions.py | AccessDataOps/FTK-API-SDK | 34e689a55eadacc51e6ff585e9126799f80e269a | [
"MIT"
] | null | null | null | accessdata/api/extensions.py | AccessDataOps/FTK-API-SDK | 34e689a55eadacc51e6ff585e9126799f80e269a | [
"MIT"
] | null | null | null | ## /api/extensions.py
"""
Maintains the API endpoint URI extensions.
"""
## Declaring __all__
__all__ = (
"status_check_ext",
"site_server_status_check_ext",
"case_create_ext",
"case_list_ext",
"case_create_portable_ext",
"evidence_list_ext",
"evidence_processed_list_ext",
"evidence_process_ext",
"object_pa... | 33.495575 | 97 | 0.763804 |
16f0f93ca79ae51931ef205e9c059a600e80445c | 1,982 | py | Python | evaluators/dialog/state/distinct.py | kaniblu/vhda | 35941097ef552568c29f66cc55d8ce1927f34978 | [
"MIT"
] | 3 | 2021-01-12T05:43:20.000Z | 2021-03-05T17:03:06.000Z | evaluators/dialog/state/distinct.py | kaniblu/vhda | 35941097ef552568c29f66cc55d8ce1927f34978 | [
"MIT"
] | null | null | null | evaluators/dialog/state/distinct.py | kaniblu/vhda | 35941097ef552568c29f66cc55d8ce1927f34978 | [
"MIT"
] | null | null | null | __all__ = ["DistinctStateEvaluator"]
from dataclasses import dataclass
from typing import Sequence, Optional
import torch
import utils
from utils import TensorMap
from datasets import VocabSet
from ...evaluator import DialogEvaluator
| 33.59322 | 79 | 0.584258 |
16f2f95568be402c343f83e95bd816466c4a6dd1 | 1,788 | py | Python | src/dataset/manually_labeled_bases.py | yullidias/AutomaticIronyDetection | 3297ddc4ecc97e840b00df4ba4f9e6b8e710fdb9 | [
"MIT"
] | null | null | null | src/dataset/manually_labeled_bases.py | yullidias/AutomaticIronyDetection | 3297ddc4ecc97e840b00df4ba4f9e6b8e710fdb9 | [
"MIT"
] | 1 | 2020-12-05T14:22:03.000Z | 2020-12-05T14:22:03.000Z | src/dataset/manually_labeled_bases.py | yullidias/AutomaticIronyDetection | 3297ddc4ecc97e840b00df4ba4f9e6b8e710fdb9 | [
"MIT"
] | null | null | null | import src.utils.constants as cns
from src.utils.files import write_list
import pandas as pd
import glob
import os
if __name__ == "__main__":
generate_manually_bases()
| 26.294118 | 77 | 0.644295 |
16f3b2b6831a8b521ba1a14a11fa6b224ec5222f | 1,785 | py | Python | cryptotest.py | xebia/django-DefectDojo | 7bc6695bd8fb93e23b0d8ed8326f5d01283eadaa | [
"BSD-3-Clause"
] | null | null | null | cryptotest.py | xebia/django-DefectDojo | 7bc6695bd8fb93e23b0d8ed8326f5d01283eadaa | [
"BSD-3-Clause"
] | null | null | null | cryptotest.py | xebia/django-DefectDojo | 7bc6695bd8fb93e23b0d8ed8326f5d01283eadaa | [
"BSD-3-Clause"
] | 1 | 2017-09-22T20:39:39.000Z | 2017-09-22T20:39:39.000Z | import binascii, os
from Crypto.Cipher import AES
KEY = 'a0b8c7398c9363b3216ff1d001a1308e5f96a77dbf6bda2367f87519d80995fb'
IV = os.urandom(16)
if __name__ == '__main__':
input_plaintext = 'The answer is no'
encrypted_text = encrypt(KEY, IV, input_plaintext)
print encrypted_text
decrypted_text = de... | 31.875 | 101 | 0.729412 |
16f4d90e8a8de6335b4d40090aa8cb9b83b7e850 | 871 | py | Python | Larry/preprocess.py | NCBI-Hackathons/ClusterDuck | 1d5478500dffea973f96affd969783278193aa8a | [
"MIT"
] | 7 | 2019-02-19T15:10:24.000Z | 2020-05-31T00:41:13.000Z | Larry/preprocess.py | NCBI-Hackathons/ClusterDuck | 1d5478500dffea973f96affd969783278193aa8a | [
"MIT"
] | 11 | 2018-03-21T20:01:32.000Z | 2022-03-11T23:19:40.000Z | Larry/preprocess.py | NCBI-Hackathons/DiseaseClusters | 1d5478500dffea973f96affd969783278193aa8a | [
"MIT"
] | 3 | 2018-03-19T13:14:23.000Z | 2018-03-20T14:13:38.000Z | from nltk.corpus import stopwords
from nltk.tokenize import RegexpTokenizer
from nltk.stem import WordNetLemmatizer
STOPWORDS = set(stopwords.words('english'))
# Instantiate Lemmanizer
WNL = WordNetLemmatizer()
def preprocess(abstract, keywords=None):
"""
Convert an abstract to word tokens. This is done by... | 26.393939 | 77 | 0.6969 |
16f520db46f1b8b8a53e17ff7a93ac14fed25f00 | 16,848 | py | Python | Codes/env.py | zongdaoming/Reinforcement-Learning | 426b646b1184e96d8a0f6c6341e53b13ef89ea12 | [
"Apache-2.0"
] | 1 | 2021-04-20T13:49:55.000Z | 2021-04-20T13:49:55.000Z | Codes/env.py | zongdaoming/Reinforcement-Learning | 426b646b1184e96d8a0f6c6341e53b13ef89ea12 | [
"Apache-2.0"
] | 1 | 2021-04-18T18:27:49.000Z | 2021-04-18T18:27:49.000Z | Codes/env.py | zongdaoming/Reinforcement-Learning | 426b646b1184e96d8a0f6c6341e53b13ef89ea12 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @author : naive dormin
# @time : 2021/04/19 02:17:43
# @version : 1.0.0
import os
import time
import numpy as np
import random
from utils import *
import pickle
from ConvE import ConvE_double
import torch
import torch.autograd as autograd
import torch.nn as ... | 42.014963 | 107 | 0.553063 |
16f718d511a624ff6bafcf060c184c7b35cb49f0 | 2,608 | py | Python | txrtpengine/NGCPProxy.py | braams/txrtpengine | 5511cf79d7fc338b28d927c19e5ff3b88e66a5be | [
"MIT"
] | null | null | null | txrtpengine/NGCPProxy.py | braams/txrtpengine | 5511cf79d7fc338b28d927c19e5ff3b88e66a5be | [
"MIT"
] | null | null | null | txrtpengine/NGCPProxy.py | braams/txrtpengine | 5511cf79d7fc338b28d927c19e5ff3b88e66a5be | [
"MIT"
] | null | null | null | import json
from twisted.internet import reactor
from twisted.python import log
from twisted.web.resource import Resource
from twisted.web.server import NOT_DONE_YET
from twisted.web.server import Site
from txrtpengine.NGCP import NGCPClient
if __name__ == '__main__':
import sys
from twisted.web.client im... | 33.435897 | 107 | 0.625383 |
16f73a2d16ee1a1b4874c0d6207d250cd9f1609d | 6,980 | py | Python | ise_session_gui.py | ComtecSystem-dev/ise_session | 299bf47b7584094c7722a27a5cbec704e8acc084 | [
"Apache-2.0"
] | null | null | null | ise_session_gui.py | ComtecSystem-dev/ise_session | 299bf47b7584094c7722a27a5cbec704e8acc084 | [
"Apache-2.0"
] | null | null | null | ise_session_gui.py | ComtecSystem-dev/ise_session | 299bf47b7584094c7722a27a5cbec704e8acc084 | [
"Apache-2.0"
] | null | null | null | import sys
import requests
import xmltodict
from functools import partial
from PyQt5.QtWidgets import *
from PyQt5.QtCore import Qt
from PyQt5 import uic
#Link : Qt5 UI File
# - condition : The UI file should be located in the sam directory as the this file
form_class = uic.loadUiType("./ise_session.ui")... | 41.058824 | 109 | 0.570487 |
16fa4d94e2d23cb6b84df2ab54d37fba71a56141 | 1,597 | py | Python | examples/zegar.py | BrownEmmett/8digit | aa9ab5e6673ec0fa3764510bd845a94ac37c4c1e | [
"MIT"
] | null | null | null | examples/zegar.py | BrownEmmett/8digit | aa9ab5e6673ec0fa3764510bd845a94ac37c4c1e | [
"MIT"
] | null | null | null | examples/zegar.py | BrownEmmett/8digit | aa9ab5e6673ec0fa3764510bd845a94ac37c4c1e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2017-18 Richard Hull and contributors
# See LICENSE.rst for details.
"""
Example for seven segment displays.
"""
import time
from datetime import datetime
from luma.led_matrix.device import max7219
from luma.core.interface.serial import spi, noop
from lum... | 22.492958 | 55 | 0.612398 |
16fa7014b2509e362e1a19500f13adaa6c41db09 | 1,109 | py | Python | caption_generation/sub_json.py | Collapsar-G/clevr-dataset-gen | a09b0559b53891bf4f4771190e4ad361406c67fe | [
"BSD-3-Clause"
] | 1 | 2021-05-23T13:48:59.000Z | 2021-05-23T13:48:59.000Z | caption_generation/sub_json.py | Collapsar-G/clevr-dataset-gen | a09b0559b53891bf4f4771190e4ad361406c67fe | [
"BSD-3-Clause"
] | null | null | null | caption_generation/sub_json.py | Collapsar-G/clevr-dataset-gen | a09b0559b53891bf4f4771190e4ad361406c67fe | [
"BSD-3-Clause"
] | null | null | null | import argparse
import json
import os
import ijson
parser = argparse.ArgumentParser()
# /questions/CLEVR_test_questions.json
# Inputs
parser.add_argument('--all_scene_paths', default='../data/CLEVR_v1.0/scenes',
help="JSON file containing questions information for all images " +
... | 34.65625 | 103 | 0.627592 |
16fd36971459752eacaa3008f88c6855b286e881 | 1,439 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/commerce/tests/factories.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/commerce/tests/factories.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/commerce/tests/factories.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | """ Factories for generating fake commerce-related data. """
import factory
from factory.fuzzy import FuzzyText
| 24.810345 | 75 | 0.645587 |
16fee0714125b907c565a7460bda1a63c75c9808 | 3,682 | py | Python | boundlexx/boundless/migrations/0002_create_item_timeseries.py | AngellusMortis/boundlexx | 407f5e38e8e0f067cbcb358787fc9af6a9be9b2a | [
"MIT"
] | 1 | 2021-04-23T11:49:50.000Z | 2021-04-23T11:49:50.000Z | boundlexx/boundless/migrations/0002_create_item_timeseries.py | AngellusMortis/boundlexx | 407f5e38e8e0f067cbcb358787fc9af6a9be9b2a | [
"MIT"
] | 1 | 2021-04-17T18:17:12.000Z | 2021-04-17T18:17:12.000Z | boundlexx/boundless/migrations/0002_create_item_timeseries.py | AngellusMortis/boundlexx | 407f5e38e8e0f067cbcb358787fc9af6a9be9b2a | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-07-21 17:44
from django.db import migrations, models
import django.db.models.deletion
| 51.138889 | 209 | 0.605921 |
e50054bcfcc58e68ad2fe236a5c12539ae5190f0 | 39,700 | py | Python | det3d/models/bbox_heads/clear_mg_ohs_head.py | Lelin-HUNUST/VISTA | 7bf34132d719cb0e5e803b92cd15451df58a9a5d | [
"MIT"
] | 47 | 2022-03-21T02:41:39.000Z | 2022-03-30T17:25:29.000Z | det3d/models/bbox_heads/clear_mg_ohs_head.py | Lelin-HUNUST/VISTA | 7bf34132d719cb0e5e803b92cd15451df58a9a5d | [
"MIT"
] | 1 | 2022-03-28T15:11:26.000Z | 2022-03-28T16:27:40.000Z | det3d/models/bbox_heads/clear_mg_ohs_head.py | Lelin-HUNUST/VISTA | 7bf34132d719cb0e5e803b92cd15451df58a9a5d | [
"MIT"
] | 2 | 2022-03-23T12:56:14.000Z | 2022-03-27T14:25:50.000Z | # Copyright (c) Gorilla-Lab. All rights reserved.
import logging
from functools import partial
from collections import defaultdict
from typing import Dict, List, Optional, Sequence
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from ..losses.ohs_loss_clear import OHSLossClear
fr... | 46.541618 | 133 | 0.540227 |
e501d8d323b13656dcc8aa99310855c82f2554fb | 4,267 | py | Python | run_full_dataset.py | TimoK93/ApLift | 732070175ab6bf76db5b0c793cdb4a1fb5d235d7 | [
"MIT"
] | 4 | 2021-09-23T17:44:01.000Z | 2022-01-10T07:14:25.000Z | run_full_dataset.py | TimoK93/ApLift | 732070175ab6bf76db5b0c793cdb4a1fb5d235d7 | [
"MIT"
] | 1 | 2021-10-18T07:41:31.000Z | 2021-10-18T07:41:31.000Z | run_full_dataset.py | TimoK93/ApLift | 732070175ab6bf76db5b0c793cdb4a1fb5d235d7 | [
"MIT"
] | null | null | null | """
A script to run the main script with all sequences of a dataset.
To use the script a config.yaml needs to be specified.
Example usage:
python3 main.py config/example_config.yaml
if "pretrained_model_path" is passed as an argument in the config, training is skipped and pretrained models are used
for the infer... | 40.638095 | 117 | 0.588704 |
e5033a61e857baa0aed9b97b41edbcf668557962 | 298 | py | Python | _Training_/RegEx - HackerRank/2. Character Class/Excluding Specific Characters.py | JUD210/Study-Note | 2add9db3f11d99370f49878f0c19e9caa60d2d02 | [
"MIT"
] | null | null | null | _Training_/RegEx - HackerRank/2. Character Class/Excluding Specific Characters.py | JUD210/Study-Note | 2add9db3f11d99370f49878f0c19e9caa60d2d02 | [
"MIT"
] | null | null | null | _Training_/RegEx - HackerRank/2. Character Class/Excluding Specific Characters.py | JUD210/Study-Note | 2add9db3f11d99370f49878f0c19e9caa60d2d02 | [
"MIT"
] | null | null | null | # https://www.hackerrank.com/challenges/excluding-specific-characters/problem
import re
# Inputs
standard_input = """think?"""
Regex_Pattern = (
r"^[^\d][^aeiou][^bcDF][^\r\n\t\f\s][^AEIOU][^.,]$"
) # Do not delete 'r'.
print(str(bool(re.search(Regex_Pattern, input()))).lower())
# true
| 18.625 | 77 | 0.64094 |
e503f5404abfe29fbefb2c59950b6c8386b55b14 | 5,814 | py | Python | Nets/TRNetShared.py | AndresOtero/TensorDecompositionMachineLearning | 455f16b405ec9d031999b0ebf9c5a68d3c20b233 | [
"MIT"
] | 3 | 2021-06-11T02:46:06.000Z | 2021-08-17T02:59:30.000Z | Nets/TRNetShared.py | AndresOtero/TensorDecompositionMachineLearning | 455f16b405ec9d031999b0ebf9c5a68d3c20b233 | [
"MIT"
] | null | null | null | Nets/TRNetShared.py | AndresOtero/TensorDecompositionMachineLearning | 455f16b405ec9d031999b0ebf9c5a68d3c20b233 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from Nets.TRNetSerialized import TRNetSerialized
from Nets.TTNetParallel import FirstKernelTensorTrain, FeatureMap, TTKernel
from Nets.TTNetShared import KernelSharedTensorTrain
from Utils import Constant
from Utils.RanksFactory import RanksFactory
fr... | 43.066667 | 116 | 0.673891 |
e504a4528ab13dc7037b0bc87eb63a2bf6c3d4cb | 2,550 | py | Python | tests/test_deny_mime_type_validator.py | fastmonkeys/pontus | 6542190aae896cd79c55f7f43e98a6bf3cbc613b | [
"MIT"
] | 4 | 2017-04-24T10:17:28.000Z | 2020-05-28T06:25:03.000Z | tests/test_deny_mime_type_validator.py | fastmonkeys/pontus | 6542190aae896cd79c55f7f43e98a6bf3cbc613b | [
"MIT"
] | 9 | 2015-02-23T14:27:37.000Z | 2021-02-24T13:23:41.000Z | tests/test_deny_mime_type_validator.py | fastmonkeys/pontus | 6542190aae896cd79c55f7f43e98a6bf3cbc613b | [
"MIT"
] | 1 | 2017-08-14T16:40:44.000Z | 2017-08-14T16:40:44.000Z | # -*- coding: utf-8 -*-
import os
import pytest
import boto3
from pontus.exceptions import ValidationError
from pontus.validators import DenyMimeType
| 29.310345 | 78 | 0.608627 |
e5052a97fcc4c82072c34cd78471734f05a4fd9c | 1,339 | py | Python | proyecto utilizando pewee migrations/models.py | Raul-Flores/ORM-example | ff289f74f858514cebefe7070c3688ad773a0e2a | [
"MIT"
] | null | null | null | proyecto utilizando pewee migrations/models.py | Raul-Flores/ORM-example | ff289f74f858514cebefe7070c3688ad773a0e2a | [
"MIT"
] | null | null | null | proyecto utilizando pewee migrations/models.py | Raul-Flores/ORM-example | ff289f74f858514cebefe7070c3688ad773a0e2a | [
"MIT"
] | null | null | null |
import pymysql
import sqlite3
import psycopg2
from peewee import *
db = "postgres" | 33.475 | 117 | 0.570575 |
e50744ae0a91afd75f5121562b3f88c9fadcfea8 | 1,966 | py | Python | MyModel/signLanguageTranslator.py | rahulmishra11/Sign-Language-Translator | 83b6907f722324d01142ab25e9e9cf806c51b0d3 | [
"Apache-2.0"
] | null | null | null | MyModel/signLanguageTranslator.py | rahulmishra11/Sign-Language-Translator | 83b6907f722324d01142ab25e9e9cf806c51b0d3 | [
"Apache-2.0"
] | null | null | null | MyModel/signLanguageTranslator.py | rahulmishra11/Sign-Language-Translator | 83b6907f722324d01142ab25e9e9cf806c51b0d3 | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
import pandas as pd
import numpy as np
import tensorflow.keras as keras
train = pd.read_csv("./sign_mnist_train/sign_mnist_train.csv")
test = pd.read_csv("./sign_mnist_test/sign_mnist_test.csv")
# put labels into y_train variable
Y_train = train["label"]
# Drop 'label' column
X_train = train.... | 29.787879 | 87 | 0.715158 |
e507533d51e8ae8cde7f283f5c299ebd345bec98 | 5,817 | py | Python | gammapy/detect/tests/test_kernel.py | grburgess/gammapy | 609e460698caca7223afeef5e71826c7b32728d1 | [
"BSD-3-Clause"
] | 3 | 2019-01-28T12:21:14.000Z | 2019-02-10T19:58:07.000Z | gammapy/detect/tests/test_kernel.py | grburgess/gammapy | 609e460698caca7223afeef5e71826c7b32728d1 | [
"BSD-3-Clause"
] | null | null | null | gammapy/detect/tests/test_kernel.py | grburgess/gammapy | 609e460698caca7223afeef5e71826c7b32728d1 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import absolute_import, division, print_function, unicode_literals
import numpy as np
from numpy.testing import assert_allclose
from astropy.io import fits
from astropy.units import Quantity
from astropy.coordinates.angles import Angle
from... | 36.130435 | 97 | 0.677153 |
e508b0cb043508fe01e3e1d06e6baa67a2130ba3 | 4,772 | py | Python | morsesmale.py | scotthellman/discrete-topology | 6182fe607868d88c462c185be8629a35ad2d7c37 | [
"MIT"
] | null | null | null | morsesmale.py | scotthellman/discrete-topology | 6182fe607868d88c462c185be8629a35ad2d7c37 | [
"MIT"
] | null | null | null | morsesmale.py | scotthellman/discrete-topology | 6182fe607868d88c462c185be8629a35ad2d7c37 | [
"MIT"
] | null | null | null | import networkx as nx
import numpy as np
import scipy
import graph
import itertools
from collections import defaultdict
if __name__ == "__main__":
import scipy.spatial
values = np.array(range(20)).reshape(20,1)
pairs = scipy.spatial.distance.pdist(values)
pdist = scipy.spatial.distance.squaref... | 34.832117 | 91 | 0.615884 |
e5090e4da04384e2fbcd5b4f114deb2087c6f5f4 | 288 | py | Python | postgres/scripts/test-db-connection.py | tcalmant/ldbc_snb_interactive | baf4a8150ffd0b193ba2c6d1dc7cdc3a99edeedf | [
"Apache-2.0"
] | null | null | null | postgres/scripts/test-db-connection.py | tcalmant/ldbc_snb_interactive | baf4a8150ffd0b193ba2c6d1dc7cdc3a99edeedf | [
"Apache-2.0"
] | null | null | null | postgres/scripts/test-db-connection.py | tcalmant/ldbc_snb_interactive | baf4a8150ffd0b193ba2c6d1dc7cdc3a99edeedf | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import os
import psycopg2
con = psycopg2.connect(
host="localhost",
user=os.environ.get("POSTGRES_USER", "postgres"),
password=os.environ.get("POSTGRES_PASSWORD", "mysecretpassword"),
port=int(os.environ.get("POSTGRES_PORT", 5432)),
)
con.close()
| 22.153846 | 69 | 0.704861 |
e50969a938fad964949586d116b12c2990a0ae87 | 2,054 | py | Python | pyxll_jupyter/widget.py | TanKingsley/pyxll-jupyter | 4f7b3eb361079b74683d89340dfff9576fb2ff41 | [
"MIT"
] | 1 | 2020-12-28T10:40:38.000Z | 2020-12-28T10:40:38.000Z | pyxll_jupyter/widget.py | TanKingsley/pyxll-jupyter | 4f7b3eb361079b74683d89340dfff9576fb2ff41 | [
"MIT"
] | null | null | null | pyxll_jupyter/widget.py | TanKingsley/pyxll-jupyter | 4f7b3eb361079b74683d89340dfff9576fb2ff41 | [
"MIT"
] | null | null | null | """
JupyterQtWidget is the widget that gets embedded in Excel and hosts
a tabbed browser widget containing the Jupyter notebook.
"""
from .kernel import start_kernel, launch_jupyter
from .browser import Browser
from .qtimports import QWidget, QVBoxLayout
import subprocess
import ctypes
| 36.678571 | 95 | 0.619279 |
e50c65e44676b2b7cbe06fd4c5deb5f102a8415d | 621 | py | Python | py/A Rule Of Divisibility By 13.py | aadithpm/code-a-day | 18d7c1847e14d32d33d09d29f8847b6252c6e9e6 | [
"Unlicense"
] | 3 | 2018-03-16T14:52:40.000Z | 2020-12-04T10:12:07.000Z | py/A Rule Of Divisibility By 13.py | aadithpm/code-a-day | 18d7c1847e14d32d33d09d29f8847b6252c6e9e6 | [
"Unlicense"
] | null | null | null | py/A Rule Of Divisibility By 13.py | aadithpm/code-a-day | 18d7c1847e14d32d33d09d29f8847b6252c6e9e6 | [
"Unlicense"
] | 5 | 2017-06-30T05:35:00.000Z | 2019-07-13T08:05:30.000Z | """
https://www.codewars.com/kata/564057bc348c7200bd0000ff/train/python
"""
| 34.5 | 67 | 0.602254 |
e50ca21b180f2193d02c55bbba259bcd1c32234b | 5,292 | py | Python | lonely/system.py | LonelyPale/lonely | 328d0ef12b98a6d208ef8cf75e69f0cc421a0b2b | [
"Apache-2.0"
] | null | null | null | lonely/system.py | LonelyPale/lonely | 328d0ef12b98a6d208ef8cf75e69f0cc421a0b2b | [
"Apache-2.0"
] | null | null | null | lonely/system.py | LonelyPale/lonely | 328d0ef12b98a6d208ef8cf75e69f0cc421a0b2b | [
"Apache-2.0"
] | null | null | null | import os as _os
import platform
from lonely.cmd import command
os = platform.system().lower()
arch = platform.machine().lower()
release = lsb_release()
shell = _os.getenv('SHELL')
home = _os.getenv('HOME')
base = "/usr/local"
temp = "/tmp"
env_file = {
"linux": "%s/.bashrc" % home,
"darwin": "%s/.bash_pro... | 28.76087 | 104 | 0.493386 |
e50e8e3032d7d7837365ea7b6780cf4d9b0c82b7 | 5,722 | py | Python | entityfactssheetsharvester/entityfactssheetsharvester.py | zazi/entityfactssheetsharvester | 150e702a763d73356adba112c0e1c1141df4884c | [
"Apache-2.0"
] | 1 | 2019-08-13T07:44:32.000Z | 2019-08-13T07:44:32.000Z | entityfactssheetsharvester/entityfactssheetsharvester.py | zazi/entityfactssheetsharvester | 150e702a763d73356adba112c0e1c1141df4884c | [
"Apache-2.0"
] | null | null | null | entityfactssheetsharvester/entityfactssheetsharvester.py | zazi/entityfactssheetsharvester | 150e702a763d73356adba112c0e1c1141df4884c | [
"Apache-2.0"
] | 1 | 2019-08-13T07:44:32.000Z | 2019-08-13T07:44:32.000Z | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import argparse
import json
import os
import socket
import sys
import requests
from threading import current_thread
from rx import create, of
from rx import operators as op
from rx.scheduler import ThreadPoolScheduler
USER_AGENT_HTTP_HEADER_KEY = 'user-agent'
USER_AGENT_PAT... | 41.463768 | 178 | 0.67791 |
e50f03b5ad643f99fc6faba88c3fc2cee5a3768e | 473 | py | Python | mayan/apps/quotas/icons.py | CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | [
"Apache-2.0"
] | 2 | 2021-09-12T19:41:19.000Z | 2021-09-12T19:41:20.000Z | mayan/apps/quotas/icons.py | CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | [
"Apache-2.0"
] | 37 | 2021-09-13T01:00:12.000Z | 2021-10-02T03:54:30.000Z | mayan/apps/quotas/icons.py | CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | [
"Apache-2.0"
] | 1 | 2021-09-22T13:17:30.000Z | 2021-09-22T13:17:30.000Z | from mayan.apps.appearance.classes import Icon
icon_quota_create = Icon(
driver_name='fontawesome-dual', primary_symbol='tachometer-alt',
secondary_symbol='plus'
)
icon_quota_delete = Icon(driver_name='fontawesome', symbol='times')
icon_quota_edit = Icon(driver_name='fontawesome', symbol='pencil-alt')
... | 43 | 76 | 0.77167 |
e51032e8f05343cce31308455d21b22aca3ea53e | 5,086 | py | Python | pyner/util/optimizer.py | chantera/pyner | 6de19713871e923c997495c07e2ec249bded8671 | [
"MIT"
] | 1 | 2019-06-16T00:52:26.000Z | 2019-06-16T00:52:26.000Z | pyner/util/optimizer.py | chantera/pyner | 6de19713871e923c997495c07e2ec249bded8671 | [
"MIT"
] | null | null | null | pyner/util/optimizer.py | chantera/pyner | 6de19713871e923c997495c07e2ec249bded8671 | [
"MIT"
] | null | null | null | from chainer import optimizer_hooks
from chainer import optimizers
from chainer import training
import numpy
import logging
logger = logging.getLogger(__name__)
def create_optimizer(configs):
"""
:param optimizer_config: dict,
"""
if 'optimizer' not in configs:
raise Exception('Optimizer c... | 33.682119 | 83 | 0.621707 |
e510c7426f5e3c38449cb80f147daf9524ba1a19 | 4,553 | py | Python | 5th_pipeline.py | Jose-Oton/airflow_project | 1b65a83975be63ad15cab95ad2947f6526400368 | [
"Apache-2.0"
] | 1 | 2021-07-08T12:29:34.000Z | 2021-07-08T12:29:34.000Z | 5th_pipeline.py | Jose-Oton/airflow_project | 1b65a83975be63ad15cab95ad2947f6526400368 | [
"Apache-2.0"
] | null | null | null | 5th_pipeline.py | Jose-Oton/airflow_project | 1b65a83975be63ad15cab95ad2947f6526400368 | [
"Apache-2.0"
] | null | null | null | #1. Documentacin de un DAG
"""
## PYSPARK DAG
Este pipeline toma data de Covid compartida de forma pblica por Google y calcula unos KPIs.
"""
from airflow import DAG
from datetime import timedelta, datetime
from airflow.utils.dates import days_ago
from airflow.models import Variable
from airflow.operator... | 34.755725 | 123 | 0.656929 |
e510db97dd6ed101594891f1033e5947097f3261 | 127 | py | Python | muve/sumo_server/__init__.py | muve-traffic/sumo-server | 0a857ba9555569db1c118367668a507600c12cdf | [
"MIT"
] | null | null | null | muve/sumo_server/__init__.py | muve-traffic/sumo-server | 0a857ba9555569db1c118367668a507600c12cdf | [
"MIT"
] | null | null | null | muve/sumo_server/__init__.py | muve-traffic/sumo-server | 0a857ba9555569db1c118367668a507600c12cdf | [
"MIT"
] | null | null | null | """Muve Traffic SUMO server.
Server for simulating traffic and relaying traffic information programatically through SUMO.
"""
| 25.4 | 92 | 0.80315 |
e5115a401bd8efaf8cc688760dfac54cb7c36ec4 | 2,613 | py | Python | tests/unit/sagemaker/cli/compatibility/v2/modifiers/test_shuffle_config.py | LastRemote/sagemaker-python-sdk | fddf29d9e4383cd3f939253eef47ee79a464dd37 | [
"Apache-2.0"
] | 1,690 | 2017-11-29T20:13:37.000Z | 2022-03-31T12:58:11.000Z | tests/unit/sagemaker/cli/compatibility/v2/modifiers/test_shuffle_config.py | LastRemote/sagemaker-python-sdk | fddf29d9e4383cd3f939253eef47ee79a464dd37 | [
"Apache-2.0"
] | 2,762 | 2017-12-04T05:18:03.000Z | 2022-03-31T23:40:11.000Z | tests/unit/sagemaker/cli/compatibility/v2/modifiers/test_shuffle_config.py | LastRemote/sagemaker-python-sdk | fddf29d9e4383cd3f939253eef47ee79a464dd37 | [
"Apache-2.0"
] | 961 | 2017-11-30T16:44:03.000Z | 2022-03-30T23:12:09.000Z | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompan... | 34.84 | 98 | 0.778416 |
e5137ca9a23bdb8d2e99e6fe8d556b4318b8b2ca | 9,531 | py | Python | components/fatfs/fatfsgen_utils/fs_object.py | iPlon-org/esp-idf | a5227db2a75102ca1a17860188c3c352a529a01b | [
"Apache-2.0"
] | 5 | 2021-11-22T06:47:54.000Z | 2022-01-04T06:58:43.000Z | components/fatfs/fatfsgen_utils/fs_object.py | iPlon-org/esp-idf | a5227db2a75102ca1a17860188c3c352a529a01b | [
"Apache-2.0"
] | null | null | null | components/fatfs/fatfsgen_utils/fs_object.py | iPlon-org/esp-idf | a5227db2a75102ca1a17860188c3c352a529a01b | [
"Apache-2.0"
] | 2 | 2022-01-05T05:09:13.000Z | 2022-02-09T22:32:54.000Z | # SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Apache-2.0
import os
from typing import List, Optional, Tuple
from .entry import Entry
from .exceptions import FatalError, WriteDirectoryException
from .fat import FAT, Cluster
from .fatfs_state import FATFSState
from .utils... | 42.172566 | 117 | 0.618193 |
e513cf10b1e10610d52f4966327c7e9e04459ede | 385 | py | Python | titanic/migrations/0002_passenger_name.py | azharmunir43/insightish | 28c13b87ca1678c27de902b9633af4804d4e77cc | [
"Apache-2.0"
] | null | null | null | titanic/migrations/0002_passenger_name.py | azharmunir43/insightish | 28c13b87ca1678c27de902b9633af4804d4e77cc | [
"Apache-2.0"
] | null | null | null | titanic/migrations/0002_passenger_name.py | azharmunir43/insightish | 28c13b87ca1678c27de902b9633af4804d4e77cc | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0 on 2018-03-07 12:12
from django.db import migrations, models
| 20.263158 | 63 | 0.587013 |
e514935f4c1b7392f48ec35e4356650b174def56 | 6,625 | py | Python | addons14/calendar_base_booking/models/bookable_mixin.py | odoochain/addons_oca | 55d456d798aebe16e49b4a6070765f206a8885ca | [
"MIT"
] | 1 | 2021-06-10T14:59:13.000Z | 2021-06-10T14:59:13.000Z | addons14/calendar_base_booking/models/bookable_mixin.py | odoochain/addons_oca | 55d456d798aebe16e49b4a6070765f206a8885ca | [
"MIT"
] | null | null | null | addons14/calendar_base_booking/models/bookable_mixin.py | odoochain/addons_oca | 55d456d798aebe16e49b4a6070765f206a8885ca | [
"MIT"
] | 1 | 2021-04-09T09:44:44.000Z | 2021-04-09T09:44:44.000Z | # Copyright 2020 Akretion (http://www.akretion.com).
# @author Sbastien BEAU <sebastien.beau@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from collections import defaultdict
from dateutil.relativedelta import relativedelta
from odoo import _, fields, models
from odoo.exceptions impor... | 34.505208 | 84 | 0.570717 |
e514aa24f7ecd44a5165bc096f98b796fc4f0c6f | 2,432 | py | Python | mc/helpers.py | sprout42/binja-i8086 | a0131f3c9a57572ae286029cd2c35ef40a7511d7 | [
"0BSD"
] | 13 | 2018-08-21T09:58:04.000Z | 2021-08-21T16:40:23.000Z | mc/helpers.py | sprout42/binja-i8086 | a0131f3c9a57572ae286029cd2c35ef40a7511d7 | [
"0BSD"
] | 1 | 2019-07-04T20:11:53.000Z | 2019-09-04T19:52:51.000Z | mc/helpers.py | sprout42/binja-i8086 | a0131f3c9a57572ae286029cd2c35ef40a7511d7 | [
"0BSD"
] | 1 | 2022-02-04T03:22:47.000Z | 2022-02-04T03:22:47.000Z | from binaryninja import InstructionTextToken
from binaryninja.enums import InstructionTextTokenType
__all__ = ['fmt_dec', 'fmt_dec_sign',
'fmt_hex', 'fmt_hex2', 'fmt_hex4', 'fmt_hexW', 'fmt_hex_sign']
__all__ += ['fmt_imm', 'fmt_imm_sign', 'fmt_disp', 'fmt_code_rel', 'fmt_code_abs']
__all__ += ['token', ... | 27.636364 | 82 | 0.672286 |
e516cc75de61891aa46b50bf8464eedef233e194 | 148 | py | Python | beerlists/__init__.py | dmofot/beerlists | deb2ab2416b63a8cb9fe9115b6650fdaa7ba36ca | [
"MIT"
] | null | null | null | beerlists/__init__.py | dmofot/beerlists | deb2ab2416b63a8cb9fe9115b6650fdaa7ba36ca | [
"MIT"
] | 2 | 2017-06-21T17:33:24.000Z | 2021-11-15T17:46:49.000Z | beerlists/__init__.py | dmofot/beerlists | deb2ab2416b63a8cb9fe9115b6650fdaa7ba36ca | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Top-level package for beerlists."""
__author__ = """David Todd"""
__email__ = 'dmofot@gmail.com'
__version__ = '0.9.0'
| 18.5 | 38 | 0.628378 |
e517fa480acd67dfee5f3aaa95a82cf7997e2c8a | 6,551 | py | Python | layers/modules/precision_loss.py | laycoding/ssd.pytorch | 6b9263d9d59e348398335dc91d59af658f2e8d35 | [
"MIT"
] | null | null | null | layers/modules/precision_loss.py | laycoding/ssd.pytorch | 6b9263d9d59e348398335dc91d59af658f2e8d35 | [
"MIT"
] | null | null | null | layers/modules/precision_loss.py | laycoding/ssd.pytorch | 6b9263d9d59e348398335dc91d59af658f2e8d35 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from data import coco as cfg
from ..box_utils import match, log_sum_exp, decode, nms
| 47.471014 | 133 | 0.615479 |
e51832dae171e962185a92eae9c69298fd915ba4 | 545 | py | Python | BufferOverflow3/p1.py | Mitsububunu/picoCTF_Code | 69bc2fda655f68d619d559d8ebcac3f3002e1e9b | [
"MIT"
] | null | null | null | BufferOverflow3/p1.py | Mitsububunu/picoCTF_Code | 69bc2fda655f68d619d559d8ebcac3f3002e1e9b | [
"MIT"
] | null | null | null | BufferOverflow3/p1.py | Mitsububunu/picoCTF_Code | 69bc2fda655f68d619d559d8ebcac3f3002e1e9b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from pwn import *
debug = 0
user = 'mitsububunu'
pw = 'password'
if debug:
p = process('./vuln')
else:
s = ssh(host = '2018shell.picoctf.com', user=user, password=pw)
s.set_working_directory('/problems/buffer-overflow-3_1_2e6726e5326a80f8f5a9c350284e6c7f')
p = s.process('./vuln')
bin... | 20.961538 | 105 | 0.695413 |
e518de7808c648780c618b4d314bc02b24cf5ad5 | 197 | py | Python | urbanairship/reports/__init__.py | kaellis/airship-python-library | d583138a1c12442020a3ae93d35817624ed6afb5 | [
"Apache-2.0"
] | null | null | null | urbanairship/reports/__init__.py | kaellis/airship-python-library | d583138a1c12442020a3ae93d35817624ed6afb5 | [
"Apache-2.0"
] | null | null | null | urbanairship/reports/__init__.py | kaellis/airship-python-library | d583138a1c12442020a3ae93d35817624ed6afb5 | [
"Apache-2.0"
] | null | null | null | from .reports import (
IndividualResponseStats,
ResponseList,
DevicesReport,
OptInList,
OptOutList,
PushList,
ResponseReportList,
AppOpensList,
TimeInAppList,
)
| 16.416667 | 28 | 0.685279 |
e51b72feb934b5d22f70cc68b5686a57177d55f4 | 18,195 | py | Python | umbrella-sampling_1D_reweight_bs.py | cbatton/umbrella_sampling_pymbar | 9133c0079afe916da5f11051052828b67288efb3 | [
"MIT"
] | null | null | null | umbrella-sampling_1D_reweight_bs.py | cbatton/umbrella_sampling_pymbar | 9133c0079afe916da5f11051052828b67288efb3 | [
"MIT"
] | null | null | null | umbrella-sampling_1D_reweight_bs.py | cbatton/umbrella_sampling_pymbar | 9133c0079afe916da5f11051052828b67288efb3 | [
"MIT"
] | null | null | null | # Example illustrating the application of MBAR to compute a 1D PMF from an umbrella sampling simulation.
#
# The data represents an umbrella sampling simulation for the magnetization of the Ising model
# Adapted from one of the pymbar example scripts for 1D PMFs
import numpy as np # numerical array library
import pymb... | 42.912736 | 149 | 0.62061 |
e51be0d0735b03c3a1c680ed0f0bc082a49173dd | 241 | py | Python | dictionary.py | Zackyy1/ehitusepood | 130157f36be81523e65879e7fc08940c55a4dfa7 | [
"MIT"
] | null | null | null | dictionary.py | Zackyy1/ehitusepood | 130157f36be81523e65879e7fc08940c55a4dfa7 | [
"MIT"
] | null | null | null | dictionary.py | Zackyy1/ehitusepood | 130157f36be81523e65879e7fc08940c55a4dfa7 | [
"MIT"
] | null | null | null | texts = {
"browse":" Browse categories",
"orders":" My orders",
"cart":" My cart",
"settings":" Settings",
"contact":" Contact us",
"home":" Home",
"contact1":"{Store_name} - {store_phone}",
} | 20.083333 | 47 | 0.497925 |
e51c14edee81c07664d02c94e1ae537e4d6867aa | 396 | py | Python | django_coverage_plugin/__init__.py | joshuadavidthomas/django_coverage_plugin | c4ec0691906dc0923c494efc9c9236d3aa21be73 | [
"Apache-2.0"
] | 172 | 2015-01-03T20:26:42.000Z | 2022-02-18T20:38:59.000Z | django_coverage_plugin/__init__.py | joshuadavidthomas/django_coverage_plugin | c4ec0691906dc0923c494efc9c9236d3aa21be73 | [
"Apache-2.0"
] | 71 | 2015-01-17T19:22:53.000Z | 2022-02-03T09:09:35.000Z | django_coverage_plugin/__init__.py | joshuadavidthomas/django_coverage_plugin | c4ec0691906dc0923c494efc9c9236d3aa21be73 | [
"Apache-2.0"
] | 31 | 2015-01-18T14:32:46.000Z | 2022-02-18T20:39:07.000Z | # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://github.com/nedbat/django_coverage_plugin/blob/master/NOTICE.txt
"""Django Template Coverage Plugin"""
from .plugin import DjangoTemplatePluginException # noqa
from .plugin import DjangoTemplatePlugin
| 33 | 86 | 0.800505 |
e51e619a4db0befa87c8923ad6fae00488c53cd0 | 3,006 | py | Python | src/nucleotide/component/windows/translator.py | dmilos/nucleotide | aad5d60508c9e4baf4888069284f2cb5c9fd7c55 | [
"Apache-2.0"
] | 1 | 2020-09-04T13:00:04.000Z | 2020-09-04T13:00:04.000Z | src/nucleotide/component/windows/translator.py | dmilos/nucleotide | aad5d60508c9e4baf4888069284f2cb5c9fd7c55 | [
"Apache-2.0"
] | 1 | 2020-04-10T01:52:32.000Z | 2020-04-10T09:11:29.000Z | src/nucleotide/component/windows/translator.py | dmilos/nucleotide | aad5d60508c9e4baf4888069284f2cb5c9fd7c55 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2
# Copyright 2015 Dejan D. M. Milosavljevic
#
# 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
#
# ... | 33.4 | 91 | 0.664338 |
e51e71629e6870db5d4127796afc6d44a91db669 | 1,511 | py | Python | module1-introduction-to-sql/321_assignment_notes.py | Edudeiko/DS-Unit-3-Sprint-2-SQL-and-Databases | e164db12684286e50a9e585da475ca34692c55d7 | [
"MIT"
] | null | null | null | module1-introduction-to-sql/321_assignment_notes.py | Edudeiko/DS-Unit-3-Sprint-2-SQL-and-Databases | e164db12684286e50a9e585da475ca34692c55d7 | [
"MIT"
] | null | null | null | module1-introduction-to-sql/321_assignment_notes.py | Edudeiko/DS-Unit-3-Sprint-2-SQL-and-Databases | e164db12684286e50a9e585da475ca34692c55d7 | [
"MIT"
] | null | null | null |
import os
import pandas as pd
import sqlite3
CSV_FILEPATH = os.path.join(os.path.dirname(__file__), "..", "data", "buddymove_holidayiq.csv")
DB_FILEPATH = os.path.join(os.path.dirname(__file__), "..", "data", "buddymove_holidayiq.db")
connection = sqlite3.connect(DB_FILEPATH)
table_name = "reviews2"
df = pd.read_cs... | 30.836735 | 95 | 0.698213 |
e51e8a5a943efe4c5fabe22a092353ca252b4062 | 971 | py | Python | eyesore/decision_graph/compacting/_1_similar_actions_compacter.py | twizmwazin/hacrs | 3c9386b0fa5f5ea6b93b2bc8b3c4eed6abceec6a | [
"BSD-2-Clause"
] | 2 | 2019-11-07T02:55:40.000Z | 2021-12-30T01:37:43.000Z | eyesore/decision_graph/compacting/_1_similar_actions_compacter.py | twizmwazin/hacrs | 3c9386b0fa5f5ea6b93b2bc8b3c4eed6abceec6a | [
"BSD-2-Clause"
] | null | null | null | eyesore/decision_graph/compacting/_1_similar_actions_compacter.py | twizmwazin/hacrs | 3c9386b0fa5f5ea6b93b2bc8b3c4eed6abceec6a | [
"BSD-2-Clause"
] | 2 | 2019-09-27T12:01:50.000Z | 2019-10-09T21:39:52.000Z | from .. import ActionsNode
from ..visitor import Visitor
| 37.346154 | 122 | 0.642636 |
e520edd0d04c2e5662e9df5187c8127d43b40f48 | 7,416 | py | Python | boost-hic.py | CellFateNucOrg/Boost-HiC | 637299b0ba41f6511015a6249efb150cf5991804 | [
"MIT"
] | null | null | null | boost-hic.py | CellFateNucOrg/Boost-HiC | 637299b0ba41f6511015a6249efb150cf5991804 | [
"MIT"
] | null | null | null | boost-hic.py | CellFateNucOrg/Boost-HiC | 637299b0ba41f6511015a6249efb150cf5991804 | [
"MIT"
] | null | null | null | #!/usr/bin/python3 -u
import argparse
import logging
import os
import h5py
import numpy as np
import pandas as pd
import sys
# my own toolkit
import HiCutils
import convert
import utils
DEFAULT_OUTPUT_FOLDER = './boosted/'
logging.basicConfig(level=logging.DEBUG)
logging.getLogger("").setLevel(logging.INFO)
logge... | 42.136364 | 129 | 0.663026 |
e52143225da56c9f67ad6d80e159ab308dbbde12 | 5,560 | py | Python | tests/test_agents.py | fkamrani/adversarial-policies | 53e129c2083f6557ddc18dbb39e4e633a2d7ab9b | [
"MIT"
] | 211 | 2019-02-22T08:07:25.000Z | 2022-03-14T10:44:20.000Z | tests/test_agents.py | fkamrani/adversarial-policies | 53e129c2083f6557ddc18dbb39e4e633a2d7ab9b | [
"MIT"
] | 51 | 2019-02-08T01:39:49.000Z | 2022-02-15T21:21:46.000Z | tests/test_agents.py | fkamrani/adversarial-policies | 53e129c2083f6557ddc18dbb39e4e633a2d7ab9b | [
"MIT"
] | 41 | 2019-04-23T05:01:49.000Z | 2022-03-16T06:51:19.000Z | import gym
from ilqr import iLQR
import numpy as np
import pytest
from aprl.agents.monte_carlo import (
MonteCarloParallel,
MonteCarloSingle,
MujocoResettableWrapper,
receding_horizon,
)
from aprl.agents.mujoco_lqr import (
MujocoFiniteDiffCost,
MujocoFiniteDiffDynamicsBasic,
MujocoFiniteDi... | 34.534161 | 95 | 0.658453 |
e52269e8fc4cd21064d9405f8d3f8808a86630c6 | 4,219 | py | Python | handlers/passport.py | python9339/tornado_ihome | a128f2140749186f177417c76472aded12427e6b | [
"Apache-2.0"
] | null | null | null | handlers/passport.py | python9339/tornado_ihome | a128f2140749186f177417c76472aded12427e6b | [
"Apache-2.0"
] | null | null | null | handlers/passport.py | python9339/tornado_ihome | a128f2140749186f177417c76472aded12427e6b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 20-4-13 4:40
# @File : handlers.py
import logging
import re
import hashlib
import config
from utils.response_code import RET
from utils.session import Session
from basehandler import BaseHandler
| 37.008772 | 121 | 0.603698 |
e524ba293266362fb0efb791ef7088c82a4d7dd1 | 1,091 | py | Python | asana/resources/custom_field_settings.py | FiyaFly/python-asana | ef9e6ff3e82e9f1ca18d526401f524698c7215c7 | [
"MIT"
] | 266 | 2015-02-13T18:14:08.000Z | 2022-03-29T22:03:33.000Z | asana/resources/custom_field_settings.py | FiyaFly/python-asana | ef9e6ff3e82e9f1ca18d526401f524698c7215c7 | [
"MIT"
] | 77 | 2015-02-13T00:22:11.000Z | 2022-02-20T07:56:14.000Z | asana/resources/custom_field_settings.py | FiyaFly/python-asana | ef9e6ff3e82e9f1ca18d526401f524698c7215c7 | [
"MIT"
] | 95 | 2015-03-18T23:28:57.000Z | 2022-02-20T23:28:58.000Z |
from .gen.custom_field_settings import _CustomFieldSettings
| 40.407407 | 89 | 0.653529 |
e525b73b902da2ecc912124afa970b8027a3b324 | 1,049 | py | Python | graphql/app/models/ndb/faction.py | py-in-the-sky/appengine-swapi | 824d770cd11e5510b2300d1e248a9474e3fde8c2 | [
"MIT"
] | null | null | null | graphql/app/models/ndb/faction.py | py-in-the-sky/appengine-swapi | 824d770cd11e5510b2300d1e248a9474e3fde8c2 | [
"MIT"
] | null | null | null | graphql/app/models/ndb/faction.py | py-in-the-sky/appengine-swapi | 824d770cd11e5510b2300d1e248a9474e3fde8c2 | [
"MIT"
] | null | null | null | from google.appengine.ext import ndb
from .character import Character
from .utils import paginated_query
| 33.83871 | 68 | 0.691134 |
e526d02ced91a04d460abfc609eec486e2c0557a | 3,790 | py | Python | falcon/request_helpers.py | elishacook/falcon | 0a9431ff2fbd60329532c726744a842b7caeeaf9 | [
"Apache-2.0"
] | 1 | 2020-07-11T14:38:32.000Z | 2020-07-11T14:38:32.000Z | falcon/request_helpers.py | elishacook/falcon | 0a9431ff2fbd60329532c726744a842b7caeeaf9 | [
"Apache-2.0"
] | null | null | null | falcon/request_helpers.py | elishacook/falcon | 0a9431ff2fbd60329532c726744a842b7caeeaf9 | [
"Apache-2.0"
] | null | null | null | # Copyright 2013 by Rackspace Hosting, Inc.
#
# 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 t... | 28.931298 | 75 | 0.632718 |
e52d87ade902887855b10cfb23d4264c5e93b1d3 | 7,190 | py | Python | scripts/msh_process.py | mou3adb/spread_the_particle | 6cc666fded62f07380ed1e3ed52969c436295906 | [
"MIT"
] | 4 | 2020-08-18T18:33:05.000Z | 2021-05-18T23:55:56.000Z | scripts/msh_process.py | mou3adb/spread_the_particle | 6cc666fded62f07380ed1e3ed52969c436295906 | [
"MIT"
] | null | null | null | scripts/msh_process.py | mou3adb/spread_the_particle | 6cc666fded62f07380ed1e3ed52969c436295906 | [
"MIT"
] | 2 | 2021-03-03T18:57:06.000Z | 2021-05-18T20:43:44.000Z | """
Gmsh format 2.2
"""
import numpy as np
from flow import Flow
from element import Element
from element_search import find_neighbors
from text.text_flow import write_flow
from text.text_elements import write_elements
from text.text_geometries import write_geometries
#======================================... | 28.085938 | 95 | 0.577886 |
e5303983f7442fd8fa1385cd72155b552858073b | 1,581 | py | Python | plugins/module_utils/syntropy.py | SyntropyNet/syntropy-ansible-collection | 9ec9020faf81bc1b9d46aef71de88397a2b5d625 | [
"MIT"
] | 4 | 2021-01-06T08:24:45.000Z | 2021-09-15T20:05:15.000Z | plugins/module_utils/syntropy.py | SyntropyNet/syntropy-ansible-collection | 9ec9020faf81bc1b9d46aef71de88397a2b5d625 | [
"MIT"
] | null | null | null | plugins/module_utils/syntropy.py | SyntropyNet/syntropy-ansible-collection | 9ec9020faf81bc1b9d46aef71de88397a2b5d625 | [
"MIT"
] | 1 | 2021-03-30T20:38:03.000Z | 2021-03-30T20:38:03.000Z | # Copyright: (c) 2020, Syntropy Network
# MIT License
from __future__ import absolute_import, division, print_function
__metaclass__ = type
import os
import traceback
SDK_IMP_ERR = None
try:
from syntropy_sdk import ApiClient, ApiKeysApi, AuthApi, Configuration, PlatformApi
from syntropy_sdk.exceptions impor... | 29.277778 | 88 | 0.762176 |
e5318d57c5b94068601a78c0c8bed490f74a1be5 | 1,394 | py | Python | custard/tests/settings.py | kunitoki/django-custard | 3cf3aa5acf84de2f653e96469e2f9c42813df50a | [
"MIT"
] | 6 | 2015-06-15T07:40:26.000Z | 2016-06-27T08:01:34.000Z | custard/tests/settings.py | kunitoki/django-custard | 3cf3aa5acf84de2f653e96469e2f9c42813df50a | [
"MIT"
] | 3 | 2015-03-11T22:43:01.000Z | 2015-06-07T21:50:36.000Z | custard/tests/settings.py | kunitoki/django-custard | 3cf3aa5acf84de2f653e96469e2f9c42813df50a | [
"MIT"
] | 6 | 2015-03-11T22:19:57.000Z | 2021-03-10T15:40:52.000Z | # Django settings for testproject project.
import os
DIRNAME = os.path.dirname(__file__)
DEBUG = True
TEMPLATE_DEBUG = DEBUG
DEBUG_PROPAGATE_EXCEPTIONS = True
ADMINS = ()
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(DIRNAME, 'db.sqlite... | 22.483871 | 65 | 0.705165 |
e531bfa00c295cacf19737b9ff6143ce8070896d | 149 | py | Python | Python/desafios/d12.py | prazerfelipe/Python | b1f4c768b1823d34898935bbd037ae43711c79e1 | [
"MIT"
] | null | null | null | Python/desafios/d12.py | prazerfelipe/Python | b1f4c768b1823d34898935bbd037ae43711c79e1 | [
"MIT"
] | null | null | null | Python/desafios/d12.py | prazerfelipe/Python | b1f4c768b1823d34898935bbd037ae43711c79e1 | [
"MIT"
] | null | null | null | p = float(input('Digite o preo do produto'))
d = p - (p* 5/100)
print ('o preo do produto {:.2f} e com 5% de desconto fica {:.2f}'.format(p,d)) | 29.8 | 82 | 0.610738 |
e531c9c1ac9eaf5cf3f53b6dbc300b0ff9a2f799 | 238 | py | Python | app/modules/dht_sensor/temp_controller.py | bytecode-tech/my-tank | e37dc844fd2801b26710b461f64a6f938a5371db | [
"MIT"
] | 1 | 2020-05-21T04:56:51.000Z | 2020-05-21T04:56:51.000Z | app/modules/dht_sensor/temp_controller.py | kandiki/my-tank | e37dc844fd2801b26710b461f64a6f938a5371db | [
"MIT"
] | null | null | null | app/modules/dht_sensor/temp_controller.py | kandiki/my-tank | e37dc844fd2801b26710b461f64a6f938a5371db | [
"MIT"
] | 1 | 2020-04-21T20:24:36.000Z | 2020-04-21T20:24:36.000Z | from flask import (Blueprint, request)
from . import temp
temp_controller = Blueprint('temp-controller', __name__, url_prefix='/api/temp') | 26.444444 | 80 | 0.739496 |
e5320220c6e0bdc466d30a55af8b5a6073894184 | 2,753 | py | Python | home/utils.py | ryankicks/collection-pipeline | 2f4b6f154baba90aad39d490fd1dc170ba7ae4e4 | [
"MIT"
] | null | null | null | home/utils.py | ryankicks/collection-pipeline | 2f4b6f154baba90aad39d490fd1dc170ba7ae4e4 | [
"MIT"
] | null | null | null | home/utils.py | ryankicks/collection-pipeline | 2f4b6f154baba90aad39d490fd1dc170ba7ae4e4 | [
"MIT"
] | null | null | null | from inspect import stack
import logging
from time import mktime
import pytz
from datetime import *
from calendar import timegm
# from django.http import HttpResponse, HttpResponseRedirect, HttpResponseRedirectBase
from django.conf import settings
from django.utils import timezone
from social.apps.django_app.default... | 28.677083 | 89 | 0.661097 |
e53252e0bf00080e9f60852ab7af61c8c73fe549 | 35 | py | Python | modules/2.79/bpy/types/ShaderNodeGroup.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/types/ShaderNodeGroup.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/types/ShaderNodeGroup.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | ShaderNodeGroup.interface = None
| 8.75 | 32 | 0.8 |
e533417d7abdd0f090ec7b783eb6b6201bbec4a5 | 360 | py | Python | pypresence/__init__.py | GhostofGoes/pypresence | 902f406345213fed4acd10d567f76abc64df5ace | [
"MIT"
] | null | null | null | pypresence/__init__.py | GhostofGoes/pypresence | 902f406345213fed4acd10d567f76abc64df5ace | [
"MIT"
] | null | null | null | pypresence/__init__.py | GhostofGoes/pypresence | 902f406345213fed4acd10d567f76abc64df5ace | [
"MIT"
] | null | null | null | """
Python RPC Client for Discord
-----------------------------
By: qwertyquerty and LewdNeko
"""
from .baseclient import BaseClient
from .client import Client
from .presence import Presence
from .exceptions import *
__title__ = 'pypresence'
__author__ = 'qwertyquerty'
__copyright__ = 'Copyright 2018 qwertyquerty'
__... | 21.176471 | 45 | 0.708333 |
e533e0071445be02c8ad1c3692ec2dd70b4b8806 | 2,193 | py | Python | test/python/transpiler/test_preset_passmanagers.py | chowington/qiskit-terra | a782c64c736fedd6a541bb45dbf89737a52b7c39 | [
"Apache-2.0"
] | null | null | null | test/python/transpiler/test_preset_passmanagers.py | chowington/qiskit-terra | a782c64c736fedd6a541bb45dbf89737a52b7c39 | [
"Apache-2.0"
] | null | null | null | test/python/transpiler/test_preset_passmanagers.py | chowington/qiskit-terra | a782c64c736fedd6a541bb45dbf89737a52b7c39 | [
"Apache-2.0"
] | 1 | 2019-06-13T08:07:26.000Z | 2019-06-13T08:07:26.000Z | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2019.
#
# 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... | 35.95082 | 89 | 0.653443 |
e5342b8791c68216bf30896c7274b41364db27db | 4,291 | py | Python | scripts/sptk/visualize_spectrogram.py | funcwj/kaldi_enhan | 50e4da07c4e7fce7439da9be2b0bb1a0079491c3 | [
"Apache-2.0"
] | 35 | 2018-04-02T06:09:26.000Z | 2019-02-19T08:27:10.000Z | scripts/sptk/visualize_spectrogram.py | funcwj/kaldi_enhan | 50e4da07c4e7fce7439da9be2b0bb1a0079491c3 | [
"Apache-2.0"
] | 3 | 2018-11-08T10:21:34.000Z | 2019-01-24T02:49:47.000Z | scripts/sptk/visualize_spectrogram.py | funcwj/kaldi_enhan | 50e4da07c4e7fce7439da9be2b0bb1a0079491c3 | [
"Apache-2.0"
] | 17 | 2018-03-08T06:59:31.000Z | 2019-02-19T08:27:41.000Z | #!/usr/bin/env python
# coding=utf-8
# wujian@2020
import argparse
from pathlib import Path
import matplotlib.pyplot as plt
import numpy as np
from libs.data_handler import SpectrogramReader
from libs.opts import StftParser
from libs.utils import get_logger
default_font = "Times New Roman"
default_font_size = 10
de... | 33.523438 | 78 | 0.519226 |
e535e6dd0129597b74bb4ecff114f37663cccbbf | 9,246 | py | Python | pyocni/adapters/httpResponse_Formater.py | MarouenMechtri/CNG-Manager | 9535b721e7b832d72fd7bba6d2a29e76a0d4bdb7 | [
"Apache-2.0"
] | 1 | 2015-02-28T21:26:07.000Z | 2015-02-28T21:26:07.000Z | pyocni/adapters/httpResponse_Formater.py | MarouenMechtri/CNG-Manager | 9535b721e7b832d72fd7bba6d2a29e76a0d4bdb7 | [
"Apache-2.0"
] | null | null | null | pyocni/adapters/httpResponse_Formater.py | MarouenMechtri/CNG-Manager | 9535b721e7b832d72fd7bba6d2a29e76a0d4bdb7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2010-2012 Institut Mines-Telecom
#
# 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 agre... | 29.259494 | 92 | 0.561865 |
e536c28016db6252f76243560211157a7504c1af | 3,352 | py | Python | restapi/endpoints/profile.py | rapydo/http-api | ef0a299173195145303069534d45d446ea4da93a | [
"MIT"
] | 8 | 2018-07-04T09:54:46.000Z | 2022-03-17T08:21:06.000Z | restapi/endpoints/profile.py | rapydo/http-api | ef0a299173195145303069534d45d446ea4da93a | [
"MIT"
] | 19 | 2018-04-18T07:24:55.000Z | 2022-03-04T01:03:15.000Z | restapi/endpoints/profile.py | rapydo/http-api | ef0a299173195145303069534d45d446ea4da93a | [
"MIT"
] | 7 | 2018-07-03T12:17:50.000Z | 2021-05-05T04:33:32.000Z | from typing import Any, Optional
from restapi import decorators
from restapi.endpoints.schemas import NewPassword, profile_output, profile_patch_input
from restapi.exceptions import Unauthorized
from restapi.rest.definition import EndpointResource, Response
from restapi.services.authentication import AuthMissingTOTP, ... | 34.204082 | 86 | 0.651253 |
e5371254ed22fa060db8dd66fc1b046f1463cc0b | 928 | py | Python | tests/sample/comprehension.py | JarryShaw/walrus | cb748496974c4c8b1a68907d46eff2845db75e84 | [
"MIT"
] | 4 | 2020-06-01T17:38:15.000Z | 2022-03-26T12:01:16.000Z | tests/sample/comprehension.py | pybpc/walrus | cb748496974c4c8b1a68907d46eff2845db75e84 | [
"MIT"
] | 23 | 2020-05-31T09:24:49.000Z | 2021-02-22T19:29:23.000Z | tests/sample/comprehension.py | pybpc/walrus | cb748496974c4c8b1a68907d46eff2845db75e84 | [
"MIT"
] | 1 | 2019-11-09T00:34:37.000Z | 2019-11-09T00:34:37.000Z | comp1 = [x1 := x * x for x in range(10)]
print(comp1)
print(x1)
print(globals().get('x'))
f2()
print(globals().get('x'))
print(globals().get('x2'))
f3()
print(globals().get('x'))
print(globals().get('x3'))
f4()
print(globals().get('x'))
print(globals().get('x4'))
f5()
print(globals().get('i'))
print(globals().get... | 17.509434 | 59 | 0.528017 |
e5377b6da443630c0d016aff8eb0fc9c6d8663e8 | 3,358 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/community/hashi_vault/tests/unit/plugins/module_utils/authentication/test_auth_approle.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/community/hashi_vault/tests/unit/plugins/module_utils/authentication/test_auth_approle.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/community/hashi_vault/tests/unit/plugins/module_utils/authentication/test_auth_approle.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2021 Brian Scholer (@briantist)
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import pytest
from ansible_collections.community.hashi_vault.tes... | 33.919192 | 144 | 0.712627 |