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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a9c2e54eed94a614ce5ca1ba244a83aa4d8e44cc | 3,182 | py | Python | env/place_env.py | laiyao1/PPO-PyTorch | ce3d9ede43a8d1018bf66b2fc952b17e9fa6c844 | [
"MIT"
] | null | null | null | env/place_env.py | laiyao1/PPO-PyTorch | ce3d9ede43a8d1018bf66b2fc952b17e9fa6c844 | [
"MIT"
] | null | null | null | env/place_env.py | laiyao1/PPO-PyTorch | ce3d9ede43a8d1018bf66b2fc952b17e9fa6c844 | [
"MIT"
] | null | null | null | import math
from typing import Optional
import gym
from gym import spaces, logger
from gym.utils import seeding
import numpy as np
import sys
sys.path.append("..")
from place_db import PlaceDB
from build_graph import build_graph_from_placedb
| 33.851064 | 104 | 0.574796 |
a9c311cfd77a2a5711f4d923436b80dcc24a6e7e | 1,045 | py | Python | arjuna/engine/unitee/markup/mrules.py | test-mile/arjuna | 21880b41e061e11bac2e600a3614684f8af75b2f | [
"Apache-2.0"
] | 9 | 2018-11-15T10:09:17.000Z | 2021-01-12T05:59:19.000Z | arjuna/engine/unitee/markup/mrules.py | test-mile/arjuna | 21880b41e061e11bac2e600a3614684f8af75b2f | [
"Apache-2.0"
] | 2 | 2019-07-01T15:33:46.000Z | 2019-07-12T13:04:08.000Z | arjuna/engine/unitee/markup/mrules.py | test-mile/arjuna | 21880b41e061e11bac2e600a3614684f8af75b2f | [
"Apache-2.0"
] | 4 | 2018-12-02T15:14:04.000Z | 2020-05-28T12:57:24.000Z | from arjuna.engine.unitee.enums import *
built_in_prop_type = {
BuiltInProp.ID : str,
BuiltInProp.PRIORITY : int,
BuiltInProp.THREADS : int,
BuiltInProp.NAME : str,
BuiltInProp.AUTHOR : str,
BuiltInProp.IDEA : str,
BuiltInProp.UNSTABLE : bool,
BuiltInProp.COMPONENT : str,
BuiltInPro... | 32.65625 | 101 | 0.625837 |
a9c3d53fc599904f6373e7e563f41224c6d22000 | 2,184 | py | Python | agents/prioritized_dqn_agent.py | itraveribon/banana_dqn_udacity | a3d51e6fdcbe148f4aba034f0d3d1f34eab828bb | [
"MIT"
] | null | null | null | agents/prioritized_dqn_agent.py | itraveribon/banana_dqn_udacity | a3d51e6fdcbe148f4aba034f0d3d1f34eab828bb | [
"MIT"
] | null | null | null | agents/prioritized_dqn_agent.py | itraveribon/banana_dqn_udacity | a3d51e6fdcbe148f4aba034f0d3d1f34eab828bb | [
"MIT"
] | null | null | null | import numpy as np
import torch
from agents import dqn_agent
from agents.prioritized_replay_buffer_sumtree import PrioritizedReplayBuffer
| 37.016949 | 120 | 0.661172 |
a9c43e4cb570112915981a697cd3fa398af9d942 | 528 | py | Python | cmsplugin_pdf/cms_plugins.py | kaihoth/cmsplugin-pdf | 5708947e7d40e7101f22198b2e3637499ec967ed | [
"MIT"
] | null | null | null | cmsplugin_pdf/cms_plugins.py | kaihoth/cmsplugin-pdf | 5708947e7d40e7101f22198b2e3637499ec967ed | [
"MIT"
] | null | null | null | cmsplugin_pdf/cms_plugins.py | kaihoth/cmsplugin-pdf | 5708947e7d40e7101f22198b2e3637499ec967ed | [
"MIT"
] | 2 | 2021-01-15T12:01:24.000Z | 2021-04-08T11:39:49.000Z | """CMS Plugins for the ``cmsplugin_pdf`` app."""
from django.utils.translation import ugettext as _
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from .models import PDFPluginModel
plugin_pool.register_plugin(PDFPlugin)
| 26.4 | 55 | 0.75 |
a9c4814c52edf43dbd36cb0343ece943f7363b17 | 487 | py | Python | solution/greedy/14916/main.py | jungyoonoh/baekjoon-1 | 2b4437a4b5e06244fa47fae6c7b7be0157d0f94f | [
"MIT"
] | 2,236 | 2019-08-05T00:36:59.000Z | 2022-03-31T16:03:53.000Z | solution/greedy/14916/main.py | jungyoonoh/baekjoon-1 | 2b4437a4b5e06244fa47fae6c7b7be0157d0f94f | [
"MIT"
] | 225 | 2020-12-17T10:20:45.000Z | 2022-01-05T17:44:16.000Z | solution/greedy/14916/main.py | jungyoonoh/baekjoon-1 | 2b4437a4b5e06244fa47fae6c7b7be0157d0f94f | [
"MIT"
] | 602 | 2019-08-05T00:46:25.000Z | 2022-03-31T13:38:23.000Z | # Authored by : gusdn3477
# Co-authored by : -
# Link : http://boj.kr/f274a6ac753440deb8c47de3ee127244
import sys
N = int(input())
if N < 5:
if N % 2 != 0:
ans = -1
else:
ans = N // 2
else:
ct, N = divmod(N, 5)
if N == 0:
ans = ct
else:
if N % 2 == 0:
ct... | 18.037037 | 55 | 0.445585 |
a9c796d46fb219ea35769e65d84e8f2b0db9cb46 | 675 | py | Python | config.py | fernando-freires/Tank-Pong | 0fd3cf52d467c00d5b52013da7ee2feb8451382d | [
"MIT"
] | null | null | null | config.py | fernando-freires/Tank-Pong | 0fd3cf52d467c00d5b52013da7ee2feb8451382d | [
"MIT"
] | null | null | null | config.py | fernando-freires/Tank-Pong | 0fd3cf52d467c00d5b52013da7ee2feb8451382d | [
"MIT"
] | null | null | null | import pygame
pygame.font.init()
# Screen
screen_width = 800
screen_height = 550
# Colors
RED = (134, 28, 9)
YELLOW = (212, 169, 65)
WHITE = (255, 255, 255)
GREEN = (0, 127, 33)
BLUE = (0, 97, 148)
# Rectangles constants
RECT_1 = (20, 20)
RECT_2 = (60, 20)
RECT_3 = (20, 60)
RECT_4 = (30, 30)
RECT_5 = (20, 108)
RECT... | 15.697674 | 48 | 0.653333 |
a9c79fb37bd32e1b5430e2572ac344f70eb99c0b | 367 | py | Python | alpha_gomoku/cppboard/bitboard/setup.py | YouHuang67/alpha_gomoku | 885690d80f1d34d27bc39cbeee4388b50e3d7a23 | [
"MIT"
] | null | null | null | alpha_gomoku/cppboard/bitboard/setup.py | YouHuang67/alpha_gomoku | 885690d80f1d34d27bc39cbeee4388b50e3d7a23 | [
"MIT"
] | null | null | null | alpha_gomoku/cppboard/bitboard/setup.py | YouHuang67/alpha_gomoku | 885690d80f1d34d27bc39cbeee4388b50e3d7a23 | [
"MIT"
] | null | null | null | from distutils.core import setup, Extension
sources = ['board_wrap.cxx', 'board.cpp',
'board_bits.cpp', 'init.cpp',
'lineshapes.cpp', 'pns.cpp', 'shapes.cpp']
module = Extension(
'_board', sources=sources,
extra_compile_args=['/O2'],
language='c++'
)
setup(name='board',
ex... | 24.466667 | 53 | 0.607629 |
a9c7ae6f19a724519a8e4f82da222706b5f300a7 | 5,088 | py | Python | citadel/api/pod.py | CMGS/citadel | 8363a598ed4422d6671f06bad7def3ebb848f441 | [
"MIT"
] | null | null | null | citadel/api/pod.py | CMGS/citadel | 8363a598ed4422d6671f06bad7def3ebb848f441 | [
"MIT"
] | null | null | null | citadel/api/pod.py | CMGS/citadel | 8363a598ed4422d6671f06bad7def3ebb848f441 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Pod / Node management API"""
from flask import g, abort
from citadel.libs.view import create_api_blueprint, user_require
from citadel.models.container import Container
from citadel.rpc.client import get_core
bp = create_api_blueprint('pod', __name__, 'pod')
| 41.704918 | 2,580 | 0.56191 |
a9c7e7b97223ab3a021b88e0c7b80b98f6271253 | 7,068 | py | Python | manafa/services/hunterService.py | RRua/petra-like | cfb6a978f69792845b029d41a1775f36f4d98119 | [
"MIT"
] | null | null | null | manafa/services/hunterService.py | RRua/petra-like | cfb6a978f69792845b029d41a1775f36f4d98119 | [
"MIT"
] | null | null | null | manafa/services/hunterService.py | RRua/petra-like | cfb6a978f69792845b029d41a1775f36f4d98119 | [
"MIT"
] | null | null | null | import time
from .service import Service
import re
from ..utils.Utils import execute_shell_command
from manafa.utils.Logger import log
| 41.822485 | 104 | 0.563243 |
a9c9cb26caef7f3a07130091e0579b96a33abecb | 1,650 | py | Python | Basic_if_then/BH4-test.py | BH4/Halite3-bots | 97eb4dcab6bccbfd1649bbac74ef06f0e22035de | [
"MIT"
] | null | null | null | Basic_if_then/BH4-test.py | BH4/Halite3-bots | 97eb4dcab6bccbfd1649bbac74ef06f0e22035de | [
"MIT"
] | null | null | null | Basic_if_then/BH4-test.py | BH4/Halite3-bots | 97eb4dcab6bccbfd1649bbac74ef06f0e22035de | [
"MIT"
] | null | null | null | import hlt
from hlt import constants
import logging
# Import my stuff
import strategies
import helpers
game = hlt.Game()
# Pre-processing area
ship_status = {}
ship_destination = {}
params = parameters()
# Start
game.ready("BH4-test")
logging.info("Successfully created bot! Player ID is {}.".format(game.my_id)... | 26.612903 | 102 | 0.704848 |
a9ca3bbd491dc6f1f8700dab6b863d90e4dcb170 | 2,481 | py | Python | multi_linugual_chatbot/mbot.py | HrushikeshShukla/multilingual_chatbot | 696b403ef4e5482e2f670924b557dd17375fc5a9 | [
"Apache-2.0"
] | null | null | null | multi_linugual_chatbot/mbot.py | HrushikeshShukla/multilingual_chatbot | 696b403ef4e5482e2f670924b557dd17375fc5a9 | [
"Apache-2.0"
] | null | null | null | multi_linugual_chatbot/mbot.py | HrushikeshShukla/multilingual_chatbot | 696b403ef4e5482e2f670924b557dd17375fc5a9 | [
"Apache-2.0"
] | null | null | null | # importing dependencies
import re
import inltk
import nltk
nltk.download('punkt')
import io
import random
import string
import warnings
warnings.filterwarnings('ignore')
import numpy as np
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
from googlesea... | 28.517241 | 94 | 0.731963 |
a9cb1d2561d4e913f2056aa2c9b69a723a641969 | 1,931 | py | Python | lbm/src/app/base_app.py | jviquerat/lbm | 96522a247d25ac533e6fdba90ddb90251f144a50 | [
"MIT"
] | 32 | 2020-11-13T07:49:34.000Z | 2022-03-31T08:36:52.000Z | lbm/src/app/base_app.py | elswit/lbm | 68b061f6f6bdb200a1e9e18531fd7bcad553f26f | [
"MIT"
] | 1 | 2022-02-17T11:44:14.000Z | 2022-03-25T12:56:11.000Z | lbm/src/app/base_app.py | elswit/lbm | 68b061f6f6bdb200a1e9e18531fd7bcad553f26f | [
"MIT"
] | 7 | 2021-07-18T22:37:41.000Z | 2022-03-29T21:57:55.000Z | # Generic imports
import math
# Custom imports
from lbm.src.utils.shapes import *
from lbm.src.core.obstacle import *
###############################################
### Base app
| 27.585714 | 70 | 0.494045 |
a9cc574d34510a5a7c799bfb6ad7da4119b10d52 | 742 | py | Python | practiceset/hk/fraction_of_plusMinus.py | dipsuji/Phython-Learning | 78689d3436a8573695b869a19457875ac77fcee4 | [
"Apache-2.0"
] | 1 | 2021-12-06T05:09:10.000Z | 2021-12-06T05:09:10.000Z | practiceset/hk/fraction_of_plusMinus.py | dipsuji/Phython-Learning | 78689d3436a8573695b869a19457875ac77fcee4 | [
"Apache-2.0"
] | null | null | null | practiceset/hk/fraction_of_plusMinus.py | dipsuji/Phython-Learning | 78689d3436a8573695b869a19457875ac77fcee4 | [
"Apache-2.0"
] | 1 | 2021-12-06T05:09:16.000Z | 2021-12-06T05:09:16.000Z | fraction_plusMinus([-2, 3, -4, 0, 5, 1])
fraction_plusMinus([5, 2, -4, 0, 0, 1, -3])
| 24.733333 | 67 | 0.56469 |
a9ccbe1dd76a9b926989e24973b853a53bc7aeb8 | 7,731 | py | Python | fixture/contacts.py | annovikov/Python_education | f6d731c81d1cbfdd1085fb9893c1c123e4eae64f | [
"Apache-2.0"
] | null | null | null | fixture/contacts.py | annovikov/Python_education | f6d731c81d1cbfdd1085fb9893c1c123e4eae64f | [
"Apache-2.0"
] | null | null | null | fixture/contacts.py | annovikov/Python_education | f6d731c81d1cbfdd1085fb9893c1c123e4eae64f | [
"Apache-2.0"
] | null | null | null | from model.contact import ContactGroup
import re
| 42.245902 | 194 | 0.653214 |
a9cde816018d4cde80fd4caa4025019fd37e3e92 | 2,377 | py | Python | src/ramstk/views/gtk3/widgets/widget.py | TahaEntezari/ramstk | f82e5b31ef5c4e33cc02252263247b99a9abe129 | [
"BSD-3-Clause"
] | 26 | 2019-05-15T02:03:47.000Z | 2022-02-21T07:28:11.000Z | src/ramstk/views/gtk3/widgets/widget.py | TahaEntezari/ramstk | f82e5b31ef5c4e33cc02252263247b99a9abe129 | [
"BSD-3-Clause"
] | 815 | 2019-05-10T12:31:52.000Z | 2022-03-31T12:56:26.000Z | src/ramstk/views/gtk3/widgets/widget.py | TahaEntezari/ramstk | f82e5b31ef5c4e33cc02252263247b99a9abe129 | [
"BSD-3-Clause"
] | 9 | 2019-04-20T23:06:29.000Z | 2022-01-24T21:21:04.000Z | # pylint: disable=non-parent-init-called
# -*- coding: utf-8 -*-
#
# ramstk.views.gtk3.widgets.widget.py is part of the RAMSTK Project
#
# All rights reserved.
# Copyright 2007 - 2020 Doyle Rowland doyle.rowland <AT> reliaqual <DOT> com
"""RAMSTK GTK3 Base Widget Module."""
# Standard Library Imports
from typing... | 31.693333 | 86 | 0.619689 |
a9ce2c37b0bb5981068f798cd85b5e4ebcafdcc4 | 1,011 | py | Python | openCv/script.py | tfrere/bras | fb7ae3720dd6bae0ccb3b3b5ec59ab18e760f48b | [
"Unlicense"
] | null | null | null | openCv/script.py | tfrere/bras | fb7ae3720dd6bae0ccb3b3b5ec59ab18e760f48b | [
"Unlicense"
] | null | null | null | openCv/script.py | tfrere/bras | fb7ae3720dd6bae0ccb3b3b5ec59ab18e760f48b | [
"Unlicense"
] | null | null | null | from picamera.array import PiRGBArray
from picamera import PiCamera
import time
import numpy as np
import cv2
import picamera.array
camera = PiCamera()
camera.resolution = (800, 600)
camera.framerate =10
rawCapture = PiRGBArray(camera, size=(800, 600))
time.sleep(0.1)
face_cascade = cv2.CascadeClassifier('haarcascad... | 25.275 | 86 | 0.71909 |
a9cedc2010c3c6ab49074b7411de9c5f5d16a0f4 | 3,801 | py | Python | data_processing/fill_missing_data.py | irasus-technologies/EnergyBoost | c5fcd4ed58aedffe0c3c71cdc76f860c64bb1de1 | [
"MIT"
] | null | null | null | data_processing/fill_missing_data.py | irasus-technologies/EnergyBoost | c5fcd4ed58aedffe0c3c71cdc76f860c64bb1de1 | [
"MIT"
] | null | null | null | data_processing/fill_missing_data.py | irasus-technologies/EnergyBoost | c5fcd4ed58aedffe0c3c71cdc76f860c64bb1de1 | [
"MIT"
] | null | null | null |
# coding: utf-8
# In[1]:
import pandas as pd
import numpy as np
from datetime import datetime
# In[2]:
hh_df = pd.read_csv('home_ac/processed_hhdata_86_2.csv')
# print(hh_df.shape)
# hh_df.head(15)
hh_df.drop_duplicates(subset ="localhour", keep = False, inplace = True)
print(hh_df.shape)
# In[3]:
hh_df['ho... | 29.465116 | 115 | 0.61247 |
a9d05630a781b58d240403429a6be895d1c2a315 | 1,375 | py | Python | scripts/parse.py | yeshaokai/mmpose_for_maDLC | 84efe0ff00de3d916086c8c5579eae17c1ef43cb | [
"Apache-2.0"
] | 5 | 2022-01-13T15:06:45.000Z | 2022-01-28T19:39:54.000Z | scripts/parse.py | yeshaokai/mmpose_for_maDLC | 84efe0ff00de3d916086c8c5579eae17c1ef43cb | [
"Apache-2.0"
] | null | null | null | scripts/parse.py | yeshaokai/mmpose_for_maDLC | 84efe0ff00de3d916086c8c5579eae17c1ef43cb | [
"Apache-2.0"
] | 1 | 2022-01-13T11:46:55.000Z | 2022-01-13T11:46:55.000Z | import pandas as pd
import pickle
import json
csv_path='CollectedData_Daniel.csv'
all_data = pd.read_csv(csv_path)
for shuffle in [0,1,2]:
docu_path = 'Documentation_data-MultiMouse_95shuffle{}.pickle'.format(shuffle)
f = open(docu_path,'rb')
a = pickle.load(f)
train_indices = a[1]
test_indice... | 21.825397 | 82 | 0.664 |
a9d095ce36356e7ef30c09a4ee6e2a2426195379 | 1,072 | py | Python | python/strings/yahoo2.py | hs634/algorithms | e411d747eb27a1c784605e44111de2703f6dde4d | [
"MIT"
] | null | null | null | python/strings/yahoo2.py | hs634/algorithms | e411d747eb27a1c784605e44111de2703f6dde4d | [
"MIT"
] | null | null | null | python/strings/yahoo2.py | hs634/algorithms | e411d747eb27a1c784605e44111de2703f6dde4d | [
"MIT"
] | null | null | null | __author__ = 'harsh'
'''
Given two words, determine if the first word, or any anagram of it, appears in consecutive characters of the second word.
For instance, tea appears as an anagram in the last three letters of slate, but let does not appear as an anagram in actor
even though all the letters of let a... | 24.930233 | 126 | 0.624067 |
a9d0c58d713f7b758640446cf6d2d1ffe15cf420 | 6,766 | py | Python | Depression-Language-Evaluation/app.py | Melody-Lin/LokiHub | 349f087b9d3d9d3fd4117f6288b3524015702b77 | [
"MIT"
] | 17 | 2020-11-25T07:40:18.000Z | 2022-03-07T03:29:18.000Z | Depression-Language-Evaluation/app.py | Melody-Lin/LokiHub | 349f087b9d3d9d3fd4117f6288b3524015702b77 | [
"MIT"
] | 8 | 2020-12-18T13:23:59.000Z | 2021-10-03T21:41:50.000Z | Depression-Language-Evaluation/app.py | Melody-Lin/LokiHub | 349f087b9d3d9d3fd4117f6288b3524015702b77 | [
"MIT"
] | 43 | 2020-12-02T09:03:57.000Z | 2021-12-23T03:30:25.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from flask import Flask, request, abort
from linebot import LineBotApi, WebhookHandler
from linebot.exceptions import InvalidSignatureError
from linebot.models import *
import json
from ArticutAPI import Articut
from decimal import Decimal, ROUND_HALF_UP
app = Fla... | 37.175824 | 147 | 0.60065 |
a9d0ce32cd89e66e535e007ce974d024f687913b | 3,505 | py | Python | backend/core/migrations/0001_initial.py | andreaabellera/Ecoyou | 7b12e8a0d910549eaabf9d0e5e2da0abc293ca36 | [
"MIT"
] | null | null | null | backend/core/migrations/0001_initial.py | andreaabellera/Ecoyou | 7b12e8a0d910549eaabf9d0e5e2da0abc293ca36 | [
"MIT"
] | null | null | null | backend/core/migrations/0001_initial.py | andreaabellera/Ecoyou | 7b12e8a0d910549eaabf9d0e5e2da0abc293ca36 | [
"MIT"
] | 1 | 2021-01-14T21:12:47.000Z | 2021-01-14T21:12:47.000Z | # Generated by Django 3.1.4 on 2021-01-08 02:38
from django.db import migrations, models
| 44.935897 | 114 | 0.562054 |
a9d1738da8a05824ce4234b5aff1abc4836bc453 | 256 | py | Python | Curso/ExMundo1/Ex031IfElse4PagarKm.py | DavidBitner/Aprendizado-Python | e1dcf18f9473c697fc2302f34a2d3e025ca6c969 | [
"MIT"
] | null | null | null | Curso/ExMundo1/Ex031IfElse4PagarKm.py | DavidBitner/Aprendizado-Python | e1dcf18f9473c697fc2302f34a2d3e025ca6c969 | [
"MIT"
] | null | null | null | Curso/ExMundo1/Ex031IfElse4PagarKm.py | DavidBitner/Aprendizado-Python | e1dcf18f9473c697fc2302f34a2d3e025ca6c969 | [
"MIT"
] | null | null | null | d = int(input('Digite a distncia percorrida: Km '))
p = float
if d <= 200:
p = d * 0.50
print('Total a pagar pelos {}Km rodados R${:.2f}'.format(d, p))
else:
p = d * 0.45
print('Total a pagar pelos {}Km rodados R${:.2f}'.format(d, p))
| 28.444444 | 69 | 0.574219 |
a9d3366cae5cc9d2f3c4639160a38329df539f7f | 20,236 | py | Python | tests/conftest.py | msonderegger/PolyglotDB | 583fd8ec14c2e34807b45b9f15fa19cffa130bfa | [
"MIT"
] | null | null | null | tests/conftest.py | msonderegger/PolyglotDB | 583fd8ec14c2e34807b45b9f15fa19cffa130bfa | [
"MIT"
] | null | null | null | tests/conftest.py | msonderegger/PolyglotDB | 583fd8ec14c2e34807b45b9f15fa19cffa130bfa | [
"MIT"
] | null | null | null | import pytest
import os
import sys
from polyglotdb.io.types.parsing import (SegmentTier, OrthographyTier,
GroupingTier, TextOrthographyTier,
TranscriptionTier,
TextTranscriptionTier, TextMorphemeT... | 35.815929 | 113 | 0.588308 |
a9d4e535fb54b53fe43d60caf81b0fdd805c0370 | 408 | py | Python | 02-mayan.py | vyskocilm/plenty-of-couscous | f8d2dc299ce0faf78f81648f370ed1e2a088ef77 | [
"BSD-3-Clause"
] | null | null | null | 02-mayan.py | vyskocilm/plenty-of-couscous | f8d2dc299ce0faf78f81648f370ed1e2a088ef77 | [
"BSD-3-Clause"
] | null | null | null | 02-mayan.py | vyskocilm/plenty-of-couscous | f8d2dc299ce0faf78f81648f370ed1e2a088ef77 | [
"BSD-3-Clause"
] | null | null | null | #:: 0-.| .-| .|||-| ::-| .||-| ||
print "".join(("".join((y for y in x)) for x in
( (chr (sum( (x if y != 0 else x*20 for y, x in
enumerate ( len(x) if x != "0" else 0 for x in
(x.replace('|',':.:').replace(':','..')for x in
y))))) for y in x) for x in((x.split() for x in
y)for y in (x.split('-') for x in(x[1:] for x... | 40.8 | 48 | 0.421569 |
a9d5869d6b2fa94ae875350765d730ba155cbe5b | 1,512 | py | Python | bin/contentctl_project/contentctl_infrastructure/builder/security_content_investigation_builder.py | arjunkhunti-crest/security_content | 41e354485e5917d3366ef735a9c5b25a20d3b8cc | [
"Apache-2.0"
] | null | null | null | bin/contentctl_project/contentctl_infrastructure/builder/security_content_investigation_builder.py | arjunkhunti-crest/security_content | 41e354485e5917d3366ef735a9c5b25a20d3b8cc | [
"Apache-2.0"
] | null | null | null | bin/contentctl_project/contentctl_infrastructure/builder/security_content_investigation_builder.py | arjunkhunti-crest/security_content | 41e354485e5917d3366ef735a9c5b25a20d3b8cc | [
"Apache-2.0"
] | null | null | null | import re
import sys
from pydantic import ValidationError
from bin.contentctl_project.contentctl_core.application.builder.investigation_builder import InvestigationBuilder
from bin.contentctl_project.contentctl_core.domain.entities.investigation import Investigation
from bin.contentctl_project.contentctl_infrastructu... | 34.363636 | 221 | 0.691799 |
a9d679a3cfe8f4ed6ca4462fc2c4aebf02501562 | 626 | py | Python | test/base.py | itsmeCin/d2vs | d67f737620b0fe0aa479e9c66a834764f036bd68 | [
"MIT"
] | null | null | null | test/base.py | itsmeCin/d2vs | d67f737620b0fe0aa479e9c66a834764f036bd68 | [
"MIT"
] | null | null | null | test/base.py | itsmeCin/d2vs | d67f737620b0fe0aa479e9c66a834764f036bd68 | [
"MIT"
] | null | null | null | import numpy as np
from unittest import TestCase
from PIL import Image
from d2vs.ocr import OCR
| 25.04 | 73 | 0.627796 |
a9d8f74d2d05d2035a3088b326a56139ee5b3ff4 | 10,285 | py | Python | cumulus/steps/dev_tools/pipeline.py | john-shaskin/cumulus | 4687d83ab324e57d900d9888da62e2fb7f4505e9 | [
"MIT"
] | null | null | null | cumulus/steps/dev_tools/pipeline.py | john-shaskin/cumulus | 4687d83ab324e57d900d9888da62e2fb7f4505e9 | [
"MIT"
] | 11 | 2018-09-10T22:57:31.000Z | 2019-02-28T17:21:24.000Z | cumulus/steps/dev_tools/pipeline.py | john-shaskin/cumulus | 4687d83ab324e57d900d9888da62e2fb7f4505e9 | [
"MIT"
] | 3 | 2018-09-05T20:33:35.000Z | 2018-10-17T16:01:26.000Z |
import awacs
import awacs.aws
import awacs.awslambda
import awacs.codecommit
import awacs.ec2
import awacs.iam
import awacs.logs
import awacs.s3
import awacs.sts
import awacs.kms
import troposphere
from troposphere import codepipeline, Ref, iam
from troposphere.s3 import Bucket, VersioningConfiguration
import cumulus... | 37.673993 | 118 | 0.50841 |
a9d9b2323083a4b66b6d5fb8c072903336330ae4 | 13,539 | py | Python | all_functions/linux server/python GUI/wxpython_flash - Copy.py | Heroku-elasa/-heroku-buildpack-python-ieee-new | 06ec2fda04d9e478ed2506400e460489b0ca91ab | [
"MIT"
] | null | null | null | all_functions/linux server/python GUI/wxpython_flash - Copy.py | Heroku-elasa/-heroku-buildpack-python-ieee-new | 06ec2fda04d9e478ed2506400e460489b0ca91ab | [
"MIT"
] | 15 | 2021-03-18T20:25:13.000Z | 2022-03-02T14:54:33.000Z | all_functions/linux server/python GUI/wxpython_flash - Copy.py | Heroku-elasa/heroku-buildpack-python-ieee-new | 06ec2fda04d9e478ed2506400e460489b0ca91ab | [
"MIT"
] | 1 | 2017-03-04T16:48:55.000Z | 2017-03-04T16:48:55.000Z | """
GrooveWalrus: Flash Player
Copyright (C) 2009, 2010
11y3y3y3y43@gmail.com
http://groove-walrus.turnip-town.net
-----
This program 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 2 of the License... | 41.530675 | 168 | 0.626265 |
a9da06c2dab9036fffee0adcf12fef779efeb4ab | 308 | py | Python | sitetest/core/sandbox.py | ninapavlich/sitetest | 2f5942c5280e5e7516e28be669013ee74bf03da3 | [
"Apache-2.0"
] | 3 | 2017-10-17T13:44:51.000Z | 2018-11-17T15:43:08.000Z | sitetest/core/sandbox.py | ninapavlich/sitetest | 2f5942c5280e5e7516e28be669013ee74bf03da3 | [
"Apache-2.0"
] | 20 | 2015-01-06T21:06:14.000Z | 2021-12-13T19:58:56.000Z | sitetest/core/sandbox.py | ninapavlich/sitetest | 2f5942c5280e5e7516e28be669013ee74bf03da3 | [
"Apache-2.0"
] | null | null | null | import logging
import urllib2
logger = logging.getLogger('sitetest')
| 23.692308 | 63 | 0.730519 |
a9dabd49cf3a4d5bba971150c7530208c635b045 | 2,813 | py | Python | federation/tests/test_fetchers.py | weex/federation | 01357aacb04b076442ce5f803a0fc65df5a74d09 | [
"BSD-3-Clause"
] | 93 | 2016-11-26T10:52:13.000Z | 2022-01-15T20:07:35.000Z | federation/tests/test_fetchers.py | weex/federation | 01357aacb04b076442ce5f803a0fc65df5a74d09 | [
"BSD-3-Clause"
] | 75 | 2016-10-18T10:15:44.000Z | 2019-10-05T22:16:32.000Z | federation/tests/test_fetchers.py | weex/federation | 01357aacb04b076442ce5f803a0fc65df5a74d09 | [
"BSD-3-Clause"
] | 9 | 2017-04-08T08:03:45.000Z | 2021-09-13T22:00:48.000Z | from unittest.mock import patch, Mock, call
from federation.fetchers import retrieve_remote_profile, retrieve_remote_content
| 50.232143 | 120 | 0.740135 |
a9dd37febc5a7ea11a814b60ad8ec5a510d6ba88 | 278 | py | Python | siteblog/blog/templatetags/menu.py | wiky-avis/dartblog | af8cfcaa410006c62707fe1bfe8f94a2c5714b02 | [
"MIT"
] | null | null | null | siteblog/blog/templatetags/menu.py | wiky-avis/dartblog | af8cfcaa410006c62707fe1bfe8f94a2c5714b02 | [
"MIT"
] | 6 | 2021-06-09T18:05:22.000Z | 2022-03-12T00:56:37.000Z | siteblog/blog/templatetags/menu.py | wiky-avis/dartblog | af8cfcaa410006c62707fe1bfe8f94a2c5714b02 | [
"MIT"
] | null | null | null | from django import template
from blog.models import Category
register = template.Library()
| 23.166667 | 63 | 0.758993 |
a9de78e19fbd2362a60c1cdeb5bc9c8ec641c068 | 12,366 | py | Python | highway_env/envs/merge_out.py | jasonplato/High_SimulationPlatform | 8a0ed628ed824d08150ceff13487194212e95693 | [
"MIT"
] | null | null | null | highway_env/envs/merge_out.py | jasonplato/High_SimulationPlatform | 8a0ed628ed824d08150ceff13487194212e95693 | [
"MIT"
] | 1 | 2020-03-19T08:50:34.000Z | 2020-03-19T08:50:34.000Z | highway_env/envs/merge_out.py | jasonplato/Highway_SimulationPlatform | 8a0ed628ed824d08150ceff13487194212e95693 | [
"MIT"
] | null | null | null | from __future__ import division, print_function, absolute_import
import numpy as np
from highway_env import utils
from highway_env.envs.abstract import AbstractEnv
from highway_env.road.lane import LineType, StraightLane, SineLane, LanesConcatenation
from highway_env.road.road import Road, RoadNetwork
from highway_env... | 49.662651 | 203 | 0.576257 |
a9de834288288f89d510cc750e968243a7eb1eb3 | 355 | py | Python | office365/sharepoint/listitems/listItem_collection.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | 544 | 2016-08-04T17:10:16.000Z | 2022-03-31T07:17:20.000Z | office365/sharepoint/listitems/listItem_collection.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | 438 | 2016-10-11T12:24:22.000Z | 2022-03-31T19:30:35.000Z | office365/sharepoint/listitems/listItem_collection.py | rikeshtailor/Office365-REST-Python-Client | ca7bfa1b22212137bb4e984c0457632163e89a43 | [
"MIT"
] | 202 | 2016-08-22T19:29:40.000Z | 2022-03-30T20:26:15.000Z | from office365.sharepoint.base_entity_collection import BaseEntityCollection
from office365.sharepoint.listitems.listitem import ListItem
| 39.444444 | 82 | 0.811268 |
a9e038f65e8da59f86a3f7830fd28ce55cc2fa38 | 1,947 | py | Python | sprint.py | managedkaos/100-days-of-code-bot | dc7188917adb424b981d9deeeec6f5fe2fc97159 | [
"MIT"
] | null | null | null | sprint.py | managedkaos/100-days-of-code-bot | dc7188917adb424b981d9deeeec6f5fe2fc97159 | [
"MIT"
] | null | null | null | sprint.py | managedkaos/100-days-of-code-bot | dc7188917adb424b981d9deeeec6f5fe2fc97159 | [
"MIT"
] | null | null | null | # pylint: disable=C0114
# TODO: Convert this into a function XD
from datetime import date
from datetime import timedelta as delta
import os, requests, sys
length = delta(days = 100)
today = date.today()
# Sprint attributes:
# - start dates are 1/1, 5/1, and 9/1 (year dosen't matter)
# - end dates are 100 days after ... | 38.94 | 100 | 0.614792 |
a9e17bac878caca71bb8a3eaac1923a80b30d7b8 | 2,785 | py | Python | code/todo-app/final/chalicelib/db.py | BarracudaPff/code-golf-data-pythpn | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | [
"MIT"
] | null | null | null | code/todo-app/final/chalicelib/db.py | BarracudaPff/code-golf-data-pythpn | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | [
"MIT"
] | null | null | null | code/todo-app/final/chalicelib/db.py | BarracudaPff/code-golf-data-pythpn | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | [
"MIT"
] | null | null | null | from uuid import uuid4
from boto3.dynamodb.conditions import Key
DEFAULT_USERNAME = "default" | 39.225352 | 169 | 0.735727 |
a9e2f40ec8188b47714aa6c85a2a8b8fcf7896b9 | 1,285 | py | Python | demo_data.py | lechemrc/DS-Unit-3-Sprint-2-SQL-and-Databases | edab19d5c73af7c6f15eb5dc3f31d2c5fce558fd | [
"MIT"
] | null | null | null | demo_data.py | lechemrc/DS-Unit-3-Sprint-2-SQL-and-Databases | edab19d5c73af7c6f15eb5dc3f31d2c5fce558fd | [
"MIT"
] | null | null | null | demo_data.py | lechemrc/DS-Unit-3-Sprint-2-SQL-and-Databases | edab19d5c73af7c6f15eb5dc3f31d2c5fce558fd | [
"MIT"
] | null | null | null | import sqlite3
sl_conn = sqlite3.connect('demo_data.sqlite3')
sl_cur = sl_conn.cursor()
# Creating table demo
table = """
CREATE TABLE demo(
s VARCHAR (10),
x INT,
y INT
);
"""
sl_cur.execute('DROP TABLE demo')
sl_cur.execute(table)
# Checking for table creation accura... | 22.946429 | 63 | 0.631907 |
a9e3c1de91dc697b91606440bb81f175a4344975 | 4,679 | py | Python | code/edit.py | Seeyapm/MyDollarBot-BOTGo | f26b6ee49a2497406e2f8c783368164d6c386d28 | [
"MIT"
] | 1 | 2021-12-01T06:47:35.000Z | 2021-12-01T06:47:35.000Z | code/edit.py | Seeyapm/MyDollarBot-BOTGo | f26b6ee49a2497406e2f8c783368164d6c386d28 | [
"MIT"
] | 37 | 2021-11-04T05:41:29.000Z | 2021-11-05T03:31:44.000Z | code/edit.py | sak007/MyDollarBot | f26b6ee49a2497406e2f8c783368164d6c386d28 | [
"MIT"
] | 5 | 2021-11-18T18:23:50.000Z | 2022-01-09T16:02:50.000Z | import re
import helper
from telebot import types
| 40.686957 | 123 | 0.653131 |
a9e43bbbaca6ffcc52ea4dd9635c9d35894c2be1 | 2,910 | py | Python | sner/server/password_supervisor.py | bodik/sner4-web | cb054d79c587b2f8468c73a88754b7c0d5cd5a95 | [
"MIT"
] | 9 | 2019-05-15T11:33:43.000Z | 2022-02-17T04:05:28.000Z | sner/server/password_supervisor.py | bodik/sner4 | cb054d79c587b2f8468c73a88754b7c0d5cd5a95 | [
"MIT"
] | 1 | 2019-03-01T11:48:13.000Z | 2019-03-01T11:48:13.000Z | sner/server/password_supervisor.py | bodik/sner4-web | cb054d79c587b2f8468c73a88754b7c0d5cd5a95 | [
"MIT"
] | 3 | 2020-03-03T21:06:37.000Z | 2021-01-11T14:40:56.000Z | # This file is part of sner4 project governed by MIT license, see the LICENSE.txt file.
"""
password supervisor service
"""
import re
import secrets
import string
from crypt import crypt, mksalt, METHOD_SHA512 # pylint: disable=no-name-in-module
from hashlib import sha512
from hmac import compare_digest
| 29.393939 | 141 | 0.627148 |
a9e45a9537e83bc6e4c763dbf8b21bd0ddb46129 | 802 | py | Python | board/utility.py | ben741863140/cfsystem | 227e269f16533719251962f4d8caee8b51091d2f | [
"Apache-2.0"
] | 4 | 2018-02-22T01:59:07.000Z | 2020-07-09T06:28:46.000Z | board/utility.py | ben741863140/cfsystem | 227e269f16533719251962f4d8caee8b51091d2f | [
"Apache-2.0"
] | null | null | null | board/utility.py | ben741863140/cfsystem | 227e269f16533719251962f4d8caee8b51091d2f | [
"Apache-2.0"
] | null | null | null | import requests
from bs4 import BeautifulSoup
| 30.846154 | 72 | 0.617207 |
a9e509c7d64ad4f3481c6bd6a8b0e4e0168ff090 | 11,320 | py | Python | testlunr/unit/storage/helper/utils/test_worker.py | PythonGirlSam/lunr | 9476436a46d377fab26674d41ac7444d98df1cbd | [
"Apache-2.0"
] | 6 | 2015-11-09T14:16:26.000Z | 2018-04-05T14:27:35.000Z | testlunr/unit/storage/helper/utils/test_worker.py | PythonGirlSam/lunr | 9476436a46d377fab26674d41ac7444d98df1cbd | [
"Apache-2.0"
] | 16 | 2016-01-28T20:16:47.000Z | 2019-03-07T07:30:29.000Z | testlunr/unit/storage/helper/utils/test_worker.py | SaumyaRackspace/lunr | 9476436a46d377fab26674d41ac7444d98df1cbd | [
"Apache-2.0"
] | 18 | 2015-10-23T10:10:52.000Z | 2020-12-15T07:11:52.000Z | #!/usr/bin/env python
# Copyright (c) 2011-2016 Rackspace US, 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 app... | 37.359736 | 74 | 0.599205 |
a9e5663a61967eebf2017ef64a32596ecc3c2534 | 3,112 | py | Python | server/tests/unit/eb/test_eb.py | mdylan2/single-cell-explorer | 775e59fcf5c105bbe70edd17dbf1d2153c4f662c | [
"MIT"
] | 2 | 2021-08-30T16:32:16.000Z | 2022-03-25T22:36:23.000Z | server/tests/unit/eb/test_eb.py | mdylan2/single-cell-explorer | 775e59fcf5c105bbe70edd17dbf1d2153c4f662c | [
"MIT"
] | 194 | 2021-08-18T23:52:44.000Z | 2022-03-30T19:40:41.000Z | server/tests/unit/eb/test_eb.py | mdylan2/single-cell-explorer | 775e59fcf5c105bbe70edd17dbf1d2153c4f662c | [
"MIT"
] | 1 | 2022-01-21T09:20:15.000Z | 2022-01-21T09:20:15.000Z | import os
from unittest.mock import patch
import requests
import subprocess
import tempfile
import time
import unittest
from contextlib import contextmanager
from server.common.config.app_config import AppConfig
from server.tests import PROJECT_ROOT, FIXTURES_ROOT
| 37.493976 | 119 | 0.641067 |
a9e6b321cbcd1edcb4eb0eb263701cc7fe1c4c75 | 1,966 | py | Python | RI/flask_server/tapi_server/models/tapi_connectivity_connection_ref.py | arthurMll/TAPI | e1171bb139c6791a953af09cfc2bc7ad928da73d | [
"Apache-2.0"
] | 57 | 2018-04-09T08:56:18.000Z | 2022-03-23T08:31:06.000Z | RI/flask_server/tapi_server/models/tapi_connectivity_connection_ref.py | arthurMll/TAPI | e1171bb139c6791a953af09cfc2bc7ad928da73d | [
"Apache-2.0"
] | 143 | 2016-06-08T04:09:54.000Z | 2018-02-23T10:45:59.000Z | RI/flask_server/tapi_server/models/tapi_connectivity_connection_ref.py | arthurMll/TAPI | e1171bb139c6791a953af09cfc2bc7ad928da73d | [
"Apache-2.0"
] | 64 | 2018-03-07T07:55:17.000Z | 2022-03-28T07:14:28.000Z | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from tapi_server.models.base_model_ import Model
from tapi_server import util
| 29.343284 | 105 | 0.677009 |
a9e6e31bd3c6e72131078bf0a6956ecb4db026ee | 649 | py | Python | scheduling/common/input.py | makspll/OS-Scripts | 021b0a569ee0e64cb8a8e23cdd5b7ea6104a8d99 | [
"MIT"
] | null | null | null | scheduling/common/input.py | makspll/OS-Scripts | 021b0a569ee0e64cb8a8e23cdd5b7ea6104a8d99 | [
"MIT"
] | null | null | null | scheduling/common/input.py | makspll/OS-Scripts | 021b0a569ee0e64cb8a8e23cdd5b7ea6104a8d99 | [
"MIT"
] | null | null | null |
from typing import List
from enum import Enum
from .units import Process, Unit, Track
| 20.935484 | 58 | 0.522342 |
a9e73606f7f41fdb21cfe2e7660f8da5614d729c | 957 | py | Python | pylisk/create_transaction.py | t-kimber/PyLisk | b303221eae5af85577866b61a665d58219f121cd | [
"MIT"
] | null | null | null | pylisk/create_transaction.py | t-kimber/PyLisk | b303221eae5af85577866b61a665d58219f121cd | [
"MIT"
] | 12 | 2021-12-15T13:21:06.000Z | 2022-01-26T13:05:38.000Z | pylisk/create_transaction.py | t-kimber/pylisk | b303221eae5af85577866b61a665d58219f121cd | [
"MIT"
] | null | null | null | """
Script to create a transaction.
"""
from hashlib import sha256
from pylisk.transaction import BalanceTransferTransaction
from pylisk.account import Account
if __name__ == "__main__":
main()
| 23.925 | 89 | 0.687565 |
a9e76e674583cf9bbe414aa9046751492cfebb42 | 3,362 | py | Python | test/test_exponential_family.py | nonconvexopt/pytorch_ssge | 3e07e1748d97bd227c66f76ee76c04dc3e8b4ec4 | [
"MIT"
] | null | null | null | test/test_exponential_family.py | nonconvexopt/pytorch_ssge | 3e07e1748d97bd227c66f76ee76c04dc3e8b4ec4 | [
"MIT"
] | 1 | 2022-01-11T10:37:49.000Z | 2022-01-11T10:37:49.000Z | test/test_exponential_family.py | nonconvexopt/pytorch_ssge | 3e07e1748d97bd227c66f76ee76c04dc3e8b4ec4 | [
"MIT"
] | null | null | null | import pytest
import torch
import gpytorch
from torch_ssge import SSGE
KERNELS = [
gpytorch.kernels.ScaleKernel(gpytorch.kernels.RBFKernel()),
gpytorch.kernels.ScaleKernel(gpytorch.kernels.MaternKernel()),
]
# Example is consist of (<sampler instance>)
# <sampler instance> should have '.sample' and 'log_pro... | 28.016667 | 95 | 0.533016 |
a9e96f3479553a323cae24395aae1384d5d71a03 | 54 | py | Python | hello world.py | xiongshao1943/test-only | b197f1b3d7abeaafcd45dcadcc34a6cf4f600f88 | [
"Apache-2.0"
] | null | null | null | hello world.py | xiongshao1943/test-only | b197f1b3d7abeaafcd45dcadcc34a6cf4f600f88 | [
"Apache-2.0"
] | null | null | null | hello world.py | xiongshao1943/test-only | b197f1b3d7abeaafcd45dcadcc34a6cf4f600f88 | [
"Apache-2.0"
] | null | null | null | name = input('Enter you name :')
print('Hello ',name) | 27 | 33 | 0.648148 |
a9ea7e1103d7e405e0173553e3a33e8c3f2d77a8 | 1,116 | py | Python | src/Chapter7/Exercise2.py | djeada/Python-For-Informatics | fc93cb60b6c81ee98b82b76934d39930a0c323d0 | [
"MIT"
] | null | null | null | src/Chapter7/Exercise2.py | djeada/Python-For-Informatics | fc93cb60b6c81ee98b82b76934d39930a0c323d0 | [
"MIT"
] | null | null | null | src/Chapter7/Exercise2.py | djeada/Python-For-Informatics | fc93cb60b6c81ee98b82b76934d39930a0c323d0 | [
"MIT"
] | null | null | null | """
Exercise 2
Write a program to prompt for a file name, and then read through the file and
look for lines of the form:
X-DSPAM-Confidence: 0.8475
When you encounter a line that starts with 'X-DSPAM-Confidence:' pull apart
the line to extract the floating point number on the line. Count these lines
and the compute ... | 36 | 78 | 0.729391 |
a9ed614fe3c61a4ccb6a6fd96549be447884ceeb | 353 | py | Python | assets/downloads/CQED/CQED/Code/color.py | OTPS3141/otps3141.github.io | 2c0ee2d0f531ad4f7c99c0ba2962d7e1b6b290a4 | [
"MIT"
] | null | null | null | assets/downloads/CQED/CQED/Code/color.py | OTPS3141/otps3141.github.io | 2c0ee2d0f531ad4f7c99c0ba2962d7e1b6b290a4 | [
"MIT"
] | null | null | null | assets/downloads/CQED/CQED/Code/color.py | OTPS3141/otps3141.github.io | 2c0ee2d0f531ad4f7c99c0ba2962d7e1b6b290a4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Nov 21 13:00:28 2021
@author: OTPS
"""
import matplotlib.pyplot as plt
import numpy as np
from scipy.ndimage.filters import gaussian_filter
from PIL import Image
img1 = Image.open(r"fit to merge.png", mode='r')
img2 = Image.open(r"base to merge.png")
img1.paste(img2, ... | 17.65 | 49 | 0.685552 |
a9ee1cf8e130e1df16f5fb39574aa6241710e34f | 1,081 | py | Python | intake/serializers/application_transfer_serializer.py | cforlando/intake | a5233d5c0f862f28ee265b9b4831405aabeec7e2 | [
"MIT"
] | 51 | 2016-07-20T02:26:57.000Z | 2021-07-07T14:45:06.000Z | intake/serializers/application_transfer_serializer.py | enterstudio/intake | 793a8935914fdc8356321ec46e54d9ae1eeeee04 | [
"MIT"
] | 1,091 | 2016-04-29T18:07:45.000Z | 2021-04-19T18:39:39.000Z | intake/serializers/application_transfer_serializer.py | enterstudio/intake | 793a8935914fdc8356321ec46e54d9ae1eeeee04 | [
"MIT"
] | 24 | 2016-06-14T18:10:43.000Z | 2021-11-14T20:26:39.000Z | from intake import models
from rest_framework import serializers
from . import fields
| 31.794118 | 67 | 0.715079 |
a9ee3e2d59a60ee5b5ca120d2e41aae3d0a460cf | 256 | py | Python | submissions/abc120/b.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | 1 | 2021-05-10T01:16:28.000Z | 2021-05-10T01:16:28.000Z | submissions/abc120/b.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | 3 | 2021-05-11T06:14:15.000Z | 2021-06-19T08:18:36.000Z | submissions/abc120/b.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | null | null | null | a, b, k = map(int, input().split())
mx = max(a, b)
match, ans = 0, 0
for i in range(mx):
if ((a % (mx - i)) == 0) and ((b % (mx - i)) == 0):
match += 1
ans = mx - i
if match == k:
break
print(ans)
| 18.285714 | 55 | 0.378906 |
a9ee7d9ddb02712f3efcfc4263b4574071d89f40 | 237 | py | Python | src/server/handlers/issues.py | monosidev/monosi | a88b689fc74010b10dbabb32f4b2bdeae865f4d5 | [
"Apache-2.0"
] | 156 | 2021-11-19T18:50:14.000Z | 2022-03-31T19:48:59.000Z | src/server/handlers/issues.py | monosidev/monosi | a88b689fc74010b10dbabb32f4b2bdeae865f4d5 | [
"Apache-2.0"
] | 30 | 2021-12-27T19:30:56.000Z | 2022-03-30T17:49:00.000Z | src/server/handlers/issues.py | monosidev/monosi | a88b689fc74010b10dbabb32f4b2bdeae865f4d5 | [
"Apache-2.0"
] | 14 | 2022-01-17T23:24:34.000Z | 2022-03-29T09:27:47.000Z | from server.handlers.base import ListResource
from server.models import Issue
| 16.928571 | 45 | 0.696203 |
a9efff0068d850b62f8833a3ca0a86fffd2e04fc | 1,305 | py | Python | muddery/server/elements/world_npc.py | dongwudanci/muddery | 669fbbdb394d04995470e32e94f10d42f3387996 | [
"BSD-3-Clause"
] | 127 | 2015-04-16T15:27:59.000Z | 2022-03-10T08:35:37.000Z | muddery/server/elements/world_npc.py | dongwudanci/muddery | 669fbbdb394d04995470e32e94f10d42f3387996 | [
"BSD-3-Clause"
] | 14 | 2015-12-17T08:02:18.000Z | 2022-01-30T15:15:38.000Z | muddery/server/elements/world_npc.py | dongwudanci/muddery | 669fbbdb394d04995470e32e94f10d42f3387996 | [
"BSD-3-Clause"
] | 54 | 2015-06-23T07:27:45.000Z | 2022-02-22T01:46:05.000Z | """
None Player Characters
Player Characters are (by default) Objects setup to be puppeted by Players.
They are what you "see" in game. The Character class in this module
is setup to be the "default" character type created by the default
creation commands.
"""
from muddery.server.mappings.element_set import ELEMENT
... | 28.369565 | 84 | 0.669732 |
a9f12a5d988555852c0080f8c8a1c4ce957aa4ba | 14,149 | py | Python | authors/apps/articles/test/test_create_articles.py | Kasulejoseph/ah-backend-athena | 016810d6a2391ae45985b4d43003e51ada1e81be | [
"BSD-3-Clause"
] | null | null | null | authors/apps/articles/test/test_create_articles.py | Kasulejoseph/ah-backend-athena | 016810d6a2391ae45985b4d43003e51ada1e81be | [
"BSD-3-Clause"
] | 31 | 2018-11-26T17:42:35.000Z | 2022-03-11T23:36:55.000Z | authors/apps/articles/test/test_create_articles.py | Kasulejoseph/ah-backend-athena | 016810d6a2391ae45985b4d43003e51ada1e81be | [
"BSD-3-Clause"
] | 6 | 2018-11-23T09:55:02.000Z | 2021-06-17T15:18:49.000Z | import json
from .base import BaseTestArticles
from rest_framework.views import status
from ..models import Article
from ...authentication.models import User
from ....apps.profiles.models import Profile
| 41.250729 | 82 | 0.627111 |
a9f3f3be1654fa48f8d6c06923796e334d80d0ec | 7,135 | py | Python | davan/http/service/presence/PresenceMgrService.py | davandev/davanserver | 0be914268c8e34d4092251508bae213cff3ef621 | [
"MIT"
] | null | null | null | davan/http/service/presence/PresenceMgrService.py | davandev/davanserver | 0be914268c8e34d4092251508bae213cff3ef621 | [
"MIT"
] | null | null | null | davan/http/service/presence/PresenceMgrService.py | davandev/davanserver | 0be914268c8e34d4092251508bae213cff3ef621 | [
"MIT"
] | null | null | null | '''
@author: davandev
'''
import logging
import os
import urllib
import datetime
from threading import Thread,Event
import davan.config.config_creator as configuration
import davan.http.service.presence.url_helper as url_util
import davan.util.constants as constants
import davan.util.cmd_executor as cmd_exec... | 37.952128 | 140 | 0.569306 |
a9f61c14f73a64dee1f29930eb0caeda4f5890cd | 815 | py | Python | h2o-py/tests/testdir_algos/glm/pyunit_PUBDEV_6853_glm_plot.py | ahmedengu/h2o-3 | ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11 | [
"Apache-2.0"
] | 6,098 | 2015-05-22T02:46:12.000Z | 2022-03-31T16:54:51.000Z | h2o-py/tests/testdir_algos/glm/pyunit_PUBDEV_6853_glm_plot.py | ahmedengu/h2o-3 | ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11 | [
"Apache-2.0"
] | 2,517 | 2015-05-23T02:10:54.000Z | 2022-03-30T17:03:39.000Z | h2o-py/tests/testdir_algos/glm/pyunit_PUBDEV_6853_glm_plot.py | ahmedengu/h2o-3 | ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11 | [
"Apache-2.0"
] | 2,199 | 2015-05-22T04:09:55.000Z | 2022-03-28T22:20:45.000Z | from __future__ import print_function
import sys
sys.path.insert(1,"../../../")
import h2o
from tests import pyunit_utils
from h2o.estimators.glm import H2OGeneralizedLinearEstimator
if __name__ == "__main__":
pyunit_utils.standalone_test(test_glm_plot)
else:
test_glm_plot()
| 30.185185 | 87 | 0.687117 |
a9f972e3f0ce11289703edace28d7d79fca045c9 | 4,521 | py | Python | tutorials/03_exact_integration_simple.py | TruongQuocChien/FFTHomPy | 2c23c80dd2cab46f1090103e613b4f886b3daac7 | [
"MIT"
] | 18 | 2015-03-14T20:08:57.000Z | 2021-01-25T11:08:40.000Z | tutorials/03_exact_integration_simple.py | vondrejc/FFTHomPy | 2c23c80dd2cab46f1090103e613b4f886b3daac7 | [
"MIT"
] | null | null | null | tutorials/03_exact_integration_simple.py | vondrejc/FFTHomPy | 2c23c80dd2cab46f1090103e613b4f886b3daac7 | [
"MIT"
] | 10 | 2015-08-31T20:18:13.000Z | 2021-06-03T10:20:57.000Z | from __future__ import division, print_function
print("""
Numerical homogenisation based on exact integration, which is described in
J. Vondrejc, Improved guaranteed computable bounds on homogenized properties
of periodic media by FourierGalerkin method with exact integration,
Int. J. Numer. Methods Eng., 2016.
This ... | 39.313043 | 110 | 0.656492 |
a9f9c4d3526307e32a5500958c3dd33e1cedd8eb | 2,289 | py | Python | pipeline/io/xml.py | probonas/pipeline | 96f565f2d827498efd31a7e76b74e0394ef2abc1 | [
"Apache-2.0"
] | 5 | 2020-04-11T15:12:07.000Z | 2021-09-13T04:15:47.000Z | pipeline/io/xml.py | probonas/pipeline | 96f565f2d827498efd31a7e76b74e0394ef2abc1 | [
"Apache-2.0"
] | 46 | 2019-04-22T20:36:40.000Z | 2022-01-12T18:03:32.000Z | pipeline/io/xml.py | probonas/pipeline | 96f565f2d827498efd31a7e76b74e0394ef2abc1 | [
"Apache-2.0"
] | 2 | 2020-05-27T20:49:53.000Z | 2021-03-17T04:21:38.000Z | import sys
import lxml.etree
from bonobo.constants import NOT_MODIFIED
from bonobo.nodes.io.file import FileReader
from bonobo.config import Configurable, Option, Service
def print_xml_element(e):
s = lxml.etree.tostring(e).decode('utf-8')
print(s.replace('\n', ' '))
return NOT_MODIFIED
def print_xml_element_text... | 23.121212 | 85 | 0.676715 |
a9fac466d61fa4e1209093752784a51baa09d5f3 | 3,063 | py | Python | YukkiMusic/utils/formatters.py | VasuXD/YukkiMusicBot | d7fdbd46d9fc793daedf624fa34fe644119bcb25 | [
"MIT"
] | null | null | null | YukkiMusic/utils/formatters.py | VasuXD/YukkiMusicBot | d7fdbd46d9fc793daedf624fa34fe644119bcb25 | [
"MIT"
] | null | null | null | YukkiMusic/utils/formatters.py | VasuXD/YukkiMusicBot | d7fdbd46d9fc793daedf624fa34fe644119bcb25 | [
"MIT"
] | null | null | null | #
# Copyright (C) 2021-2022 by TeamYukki@Github, < https://github.com/TeamYukki >.
#
# This file is part of < https://github.com/TeamYukki/YukkiMusicBot > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/TeamYukki/YukkiMusicBot/blob/master/LICENSE >
#
# All rights res... | 22.195652 | 80 | 0.501469 |
a9fc4f5e65a9e9ec49c824da6ceb7e54ae1603c4 | 316 | py | Python | kubernetes_typed/client/models/v1_typed_local_object_reference.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | 22 | 2020-12-10T13:06:02.000Z | 2022-02-13T21:58:15.000Z | kubernetes_typed/client/models/v1_typed_local_object_reference.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | 4 | 2021-03-08T07:06:12.000Z | 2022-03-29T23:41:45.000Z | kubernetes_typed/client/models/v1_typed_local_object_reference.py | nikhiljha/kubernetes-typed | 4f4b969aa400c88306f92560e56bda6d19b2a895 | [
"Apache-2.0"
] | 2 | 2021-09-05T19:18:28.000Z | 2022-03-14T02:56:17.000Z | # Code generated by `typeddictgen`. DO NOT EDIT.
"""V1TypedLocalObjectReferenceDict generated type."""
from typing import TypedDict
V1TypedLocalObjectReferenceDict = TypedDict(
"V1TypedLocalObjectReferenceDict",
{
"apiGroup": str,
"kind": str,
"name": str,
},
total=False,
)
| 22.571429 | 53 | 0.667722 |
a9fcc66dd61126cc0745ff31b6efb944d4f0b8ed | 271 | py | Python | backend/system/__init__.py | red23495/maya | 8ac042982ffb803a8e1499c06a3957e93de2343a | [
"MIT"
] | null | null | null | backend/system/__init__.py | red23495/maya | 8ac042982ffb803a8e1499c06a3957e93de2343a | [
"MIT"
] | null | null | null | backend/system/__init__.py | red23495/maya | 8ac042982ffb803a8e1499c06a3957e93de2343a | [
"MIT"
] | null | null | null | from .context import GlobalContext
from .dao import BaseDao
from .model import BaseModel
from .service import BaseService
from .schema import BaseSchema, DeleteSchema, DeleteResponseSchema, ListSchema
from .crud import BaseCrud
from .message_generator import get_message
| 33.875 | 78 | 0.848708 |
a9fea1cdc53e3c61b7fd002e8743d6e65365ae7f | 3,742 | py | Python | karbor-1.3.0/karbor/services/operationengine/user_trust_manager.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 1 | 2021-05-23T01:48:25.000Z | 2021-05-23T01:48:25.000Z | karbor-1.3.0/karbor/services/operationengine/user_trust_manager.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | karbor-1.3.0/karbor/services/operationengine/user_trust_manager.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 2 | 2020-03-15T01:24:15.000Z | 2020-07-22T20:34:26.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
# d... | 35.980769 | 78 | 0.646713 |
a9fec7c77af3629a8aa1a529833cc19bcd959e3d | 7,309 | py | Python | config/custom_components/huesyncbox/__init__.py | LRvdLinden/homeassistant-config | 4f0e8bb08329b8af08fc90cb1699a9314e297ab7 | [
"MIT"
] | 288 | 2021-04-27T07:25:04.000Z | 2022-03-23T14:38:36.000Z | config/custom_components/huesyncbox/__init__.py | givemhell/homeassistant-config | 8ca951d299cb4df19e5fcc37bfea38c9f04f5a2a | [
"MIT"
] | 6 | 2021-04-30T10:47:24.000Z | 2022-01-12T01:14:15.000Z | config/custom_components/huesyncbox/__init__.py | givemhell/homeassistant-config | 8ca951d299cb4df19e5fcc37bfea38c9f04f5a2a | [
"MIT"
] | 28 | 2021-04-30T23:58:07.000Z | 2022-02-15T04:33:46.000Z | """The Philips Hue Play HDMI Sync Box integration."""
import asyncio
import logging
import json
import os
import voluptuous as vol
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers import (config_validation as cv)
from homeassistant.helpers.co... | 39.722826 | 383 | 0.738131 |
a9fefe89a714c084a57a2cacbde52e00dfefc404 | 6,278 | py | Python | examples/hubert/train.py | underdogliu/audio | 38e530d77e5a194d4e5f91356cc1a191207a3b29 | [
"BSD-2-Clause"
] | null | null | null | examples/hubert/train.py | underdogliu/audio | 38e530d77e5a194d4e5f91356cc1a191207a3b29 | [
"BSD-2-Clause"
] | null | null | null | examples/hubert/train.py | underdogliu/audio | 38e530d77e5a194d4e5f91356cc1a191207a3b29 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
"""Train the HuBERTPretrainModel by using labels generated by KMeans clustering.
Example:
python train.py --root-path ./exp/data/mfcc/ --feature-type mfcc --num-classes 100
"""
import logging
import pathlib
from argparse import (
ArgumentDefaultsHelpFormatter,
ArgumentParser,
RawDesc... | 28.798165 | 113 | 0.624084 |
e7016a36ae131d4a62b304569a0a5345a17c8a87 | 495 | py | Python | modeling/networks/proxylessnas.py | RunpeiDong/DGMS | 1f6a7ca9f39a2bc31cfade1e45967b006ea6532d | [
"Apache-2.0"
] | 2 | 2022-01-03T05:25:01.000Z | 2022-01-06T23:08:50.000Z | modeling/networks/proxylessnas.py | RunpeiDong/DGMS | 1f6a7ca9f39a2bc31cfade1e45967b006ea6532d | [
"Apache-2.0"
] | null | null | null | modeling/networks/proxylessnas.py | RunpeiDong/DGMS | 1f6a7ca9f39a2bc31cfade1e45967b006ea6532d | [
"Apache-2.0"
] | 1 | 2022-02-28T01:13:30.000Z | 2022-02-28T01:13:30.000Z | import torch
| 45 | 114 | 0.739394 |
e701d8319474ec61648531dd3164c26ea90f0f94 | 3,504 | py | Python | hellopy/test/utils/test.py | odys-z/hello | 39ca67cae34eb4bc4cbd848a06b3c0d65a995954 | [
"MIT"
] | null | null | null | hellopy/test/utils/test.py | odys-z/hello | 39ca67cae34eb4bc4cbd848a06b3c0d65a995954 | [
"MIT"
] | 3 | 2021-04-17T18:36:24.000Z | 2022-03-04T20:30:09.000Z | hellopy/test/utils/test.py | odys-z/hello | 39ca67cae34eb4bc4cbd848a06b3c0d65a995954 | [
"MIT"
] | null | null | null | '''
Created on 22 Dec 2019
@author: ody
'''
import unittest
from utils.Assrt import Eq, AssertErr, XdArrParser
if __name__ == "__main__":
#import sys;sys.argv = ['', 'Test.testName']
unittest.main() | 27.375 | 91 | 0.435788 |
e70273fea7d7bb9be6cfcea6ec6c16b42f763637 | 1,474 | py | Python | home/migrations/0017_remove_restaurant_date_remove_restaurant_start_time_and_more.py | divyesh1099/goparty | 7e2f189aa195824d31d349d25bdbe9c853209a42 | [
"MIT"
] | null | null | null | home/migrations/0017_remove_restaurant_date_remove_restaurant_start_time_and_more.py | divyesh1099/goparty | 7e2f189aa195824d31d349d25bdbe9c853209a42 | [
"MIT"
] | null | null | null | home/migrations/0017_remove_restaurant_date_remove_restaurant_start_time_and_more.py | divyesh1099/goparty | 7e2f189aa195824d31d349d25bdbe9c853209a42 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-05-03 21:53
from django.db import migrations, models
import django.db.models.deletion
| 30.708333 | 131 | 0.585482 |
e7038aeca649431fd026d3a0b2376ad105c16473 | 246 | py | Python | source/menu.py | Azzy001/Login-Register_Tk | 774538666992cee12797671bd56fcc0dde46c343 | [
"MIT"
] | 1 | 2022-02-01T15:46:51.000Z | 2022-02-01T15:46:51.000Z | source/menu.py | Azzy001/Login-Register_Tk | 774538666992cee12797671bd56fcc0dde46c343 | [
"MIT"
] | null | null | null | source/menu.py | Azzy001/Login-Register_Tk | 774538666992cee12797671bd56fcc0dde46c343 | [
"MIT"
] | null | null | null | from tkinter import *
window = Tk()
# Window configs
window.title("Azzy001 : Menu Window")
window.geometry("440x520")
window.resizable(0, 0)
window.attributes("-topmost", True)
window.mainloop() | 16.4 | 38 | 0.682927 |
e705a57826a489b26a0995f0c679c1815e1975ce | 701 | py | Python | anagram.py | Tatooine-Soldier/Beginner_projects | d6c77793e5d58860318cc95e0aedaef6f4b128db | [
"Apache-2.0"
] | null | null | null | anagram.py | Tatooine-Soldier/Beginner_projects | d6c77793e5d58860318cc95e0aedaef6f4b128db | [
"Apache-2.0"
] | null | null | null | anagram.py | Tatooine-Soldier/Beginner_projects | d6c77793e5d58860318cc95e0aedaef6f4b128db | [
"Apache-2.0"
] | null | null | null |
anagram("jack","kabj")
| 36.894737 | 100 | 0.46933 |
e706666948f0a275a5dbfc4777f61a9c59c85d96 | 2,298 | py | Python | ping_pong.py | SteelAnge1/ping-pong | dfc5200f907e0d139649afcc880ea918dd6083f3 | [
"CC0-1.0"
] | null | null | null | ping_pong.py | SteelAnge1/ping-pong | dfc5200f907e0d139649afcc880ea918dd6083f3 | [
"CC0-1.0"
] | null | null | null | ping_pong.py | SteelAnge1/ping-pong | dfc5200f907e0d139649afcc880ea918dd6083f3 | [
"CC0-1.0"
] | null | null | null | from pygame import *
win_width=600
win_height=500
back=(200, 255, 255)
window=display.set_mode((win_width, win_height))
window.fill(back)
p_l= Player('racket.png', 30, 200, 10, 80, 10)
p_r= Player('racket.png', 520, 200, 10, 80, 10)
ball=GameSprite('tenis_ball.png', 200, 200, 30, 30, 70)
font.init()
f... | 26.72093 | 89 | 0.561793 |
e707604999bdeed189d1ba802afd56ed532a88c3 | 2,121 | py | Python | companies/admin.py | Valuehorizon/valuehorizon-companies | 5366e230da69ee30fcdc1bf4beddc99310f6b767 | [
"MIT"
] | 1 | 2015-09-28T17:11:12.000Z | 2015-09-28T17:11:12.000Z | companies/admin.py | Valuehorizon/valuehorizon-companies | 5366e230da69ee30fcdc1bf4beddc99310f6b767 | [
"MIT"
] | 4 | 2020-02-11T22:59:54.000Z | 2021-06-10T17:55:15.000Z | companies/admin.py | Valuehorizon/valuehorizon-companies | 5366e230da69ee30fcdc1bf4beddc99310f6b767 | [
"MIT"
] | null | null | null | from django.contrib import admin
from datetime import *
from companies.models import Sector, IndustryGroup, Industry, SubIndustry
from companies.models import Company, Ownership, Director, Executive, CompanyNameChange
admin.site.register(Sector, SectorAdmin)
admin.site.register(IndustryGroup, IndustryGroupAdmin)
adm... | 35.949153 | 101 | 0.754833 |
e708f0f5533cb309985218c0e13c8f1882c1ecf0 | 2,234 | py | Python | ocd_backend/enrichers/text_enricher/tasks/theme_classifier.py | aolieman/open-raadsinformatie | 66469fc924fb0d312607afe998d271bf6f55c9d6 | [
"MIT"
] | 23 | 2015-10-28T09:02:41.000Z | 2021-12-15T08:40:41.000Z | ocd_backend/enrichers/text_enricher/tasks/theme_classifier.py | aolieman/open-raadsinformatie | 66469fc924fb0d312607afe998d271bf6f55c9d6 | [
"MIT"
] | 326 | 2015-11-03T12:59:48.000Z | 2022-03-11T23:18:14.000Z | ocd_backend/enrichers/text_enricher/tasks/theme_classifier.py | aolieman/open-raadsinformatie | 66469fc924fb0d312607afe998d271bf6f55c9d6 | [
"MIT"
] | 10 | 2016-02-05T08:43:07.000Z | 2022-03-09T10:04:32.000Z | import operator
import requests
from ocd_backend.enrichers.text_enricher.tasks import BaseEnrichmentTask
from ocd_backend.models.definitions import Meeting as MeetingNS, Rdf
from ocd_backend.models.misc import Uri
from ocd_backend.settings import ORI_CLASSIFIER_HOST, ORI_CLASSIFIER_PORT
from ocd_backend.utils.http imp... | 32.376812 | 107 | 0.608774 |
e70abdf746f94ff1be56b5f084ab1342ab7e56e2 | 3,465 | py | Python | src/model/mlp.py | statsu1990/yoto_class_balanced_loss | d05c97c6cea08efa431d458897199bf940bce4a7 | [
"MIT"
] | 13 | 2020-05-04T01:19:32.000Z | 2022-03-09T03:03:01.000Z | src/model/mlp.py | statsu1990/yoto_class_balanced_loss | d05c97c6cea08efa431d458897199bf940bce4a7 | [
"MIT"
] | 1 | 2020-12-17T00:58:42.000Z | 2020-12-17T01:56:33.000Z | src/model/mlp.py | statsu1990/yoto_class_balanced_loss | d05c97c6cea08efa431d458897199bf940bce4a7 | [
"MIT"
] | 3 | 2020-07-01T06:14:24.000Z | 2022-01-06T04:08:48.000Z |
"""
YOU ONLY TRAIN ONCE: LOSS-CONDITIONAL TRAINING OF DEEP NETWORKS
# https://openreview.net/pdf?id=HyxY6JHKwr
For YOTO models, we condition the last layer of eachconvolutional block.
The conditioning MLP has one hidden layer with 256 units on Shapes3D and 512 units on CIFAR-10.
At training time we sample the ... | 33.317308 | 104 | 0.583261 |
e70bb3a04a1fd426e40b7909cae8bda16260e6c6 | 1,067 | py | Python | pyenv/lib/python3.6/_weakrefset.py | ronald-rgr/ai-chatbot-smartguide | c9c830feb6b66c2e362f8fb5d147ef0c4f4a08cf | [
"Apache-2.0"
] | null | null | null | pyenv/lib/python3.6/_weakrefset.py | ronald-rgr/ai-chatbot-smartguide | c9c830feb6b66c2e362f8fb5d147ef0c4f4a08cf | [
"Apache-2.0"
] | 3 | 2020-03-23T18:01:51.000Z | 2021-03-19T23:15:15.000Z | pyenv/lib/python3.6/_weakrefset.py | ronald-rgr/ai-chatbot-smartguide | c9c830feb6b66c2e362f8fb5d147ef0c4f4a08cf | [
"Apache-2.0"
] | null | null | null | XSym
0078
350008fd8e0cf4fdaa063759c1fd071b
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/_weakrefset.py
... | 213.4 | 945 | 0.099344 |
e70f113a220c3f243ab0f7dd157ded80f7e74758 | 4,616 | py | Python | util/counter.py | FadedCosine/POS-Guided-Neural-Text-Generation | 2b5c72d8f2e08cbf4fe0babc4a4f1db09b348505 | [
"Apache-2.0"
] | 2 | 2021-06-23T08:52:20.000Z | 2021-06-23T08:52:31.000Z | util/counter.py | FadedCosine/POS-Guided-Neural-Text-Generation | 2b5c72d8f2e08cbf4fe0babc4a4f1db09b348505 | [
"Apache-2.0"
] | null | null | null | util/counter.py | FadedCosine/POS-Guided-Neural-Text-Generation | 2b5c72d8f2e08cbf4fe0babc4a4f1db09b348505 | [
"Apache-2.0"
] | null | null | null | import collections
import pandas as pd
import numpy as np
import re
import os
| 27.807229 | 95 | 0.581672 |
e71022164013af8d4affab42a89cbbb9cbc78af8 | 250 | py | Python | Ex02.py | ErickTeixeira777/Python-3 | 5bd886d13e8118bba556d499ecd6841e9cdb5e9f | [
"MIT"
] | null | null | null | Ex02.py | ErickTeixeira777/Python-3 | 5bd886d13e8118bba556d499ecd6841e9cdb5e9f | [
"MIT"
] | null | null | null | Ex02.py | ErickTeixeira777/Python-3 | 5bd886d13e8118bba556d499ecd6841e9cdb5e9f | [
"MIT"
] | null | null | null | # Aula 06-A
# Tipos Primitivos e Sada de Dados
n1 = int(input('\033[0;30;47mDigite um nmero:\033[m'))
n2 = int(input('\033[0;30;47mDigite outro nmero:\033[m'))
s = n1 + n2
print('\033[4;36;40mA soma entre {} e {} vale {}\033[m'.format(n1, n2, s)) | 41.666667 | 74 | 0.644 |
e711732a95edbbd28e9325c694a3258b0896d4c9 | 3,304 | py | Python | importkit/import_/tests/test_proxy.py | sprymix/importkit | 72702fd6150ef9b470c986061ff976bc814463c8 | [
"MIT"
] | 2 | 2015-04-25T09:04:10.000Z | 2018-05-04T18:03:19.000Z | importkit/import_/tests/test_proxy.py | sprymix/importkit | 72702fd6150ef9b470c986061ff976bc814463c8 | [
"MIT"
] | null | null | null | importkit/import_/tests/test_proxy.py | sprymix/importkit | 72702fd6150ef9b470c986061ff976bc814463c8 | [
"MIT"
] | null | null | null | ##
# Copyright (c) 2012 Sprymix Inc.
# All rights reserved.
#
# See LICENSE for details.
##
import importlib
import pickle
import sys
import types
import unittest
from importkit.import_ import module as module_utils
from importkit.import_ import utils as import_utils
| 29.5 | 99 | 0.664346 |
e7118f625a826be6f20337e189488ef58415fddb | 1,972 | py | Python | sdk/python/tests/compiler/testdata/tekton_loop_dsl.py | kubeflow/kfp-tekton | b16bd8863aaf36de240b7306f501d62b95f01f31 | [
"Apache-2.0"
] | 102 | 2019-10-23T20:35:41.000Z | 2022-03-27T10:28:56.000Z | sdk/python/tests/compiler/testdata/tekton_loop_dsl.py | kubeflow/kfp-tekton | b16bd8863aaf36de240b7306f501d62b95f01f31 | [
"Apache-2.0"
] | 891 | 2019-10-24T04:08:17.000Z | 2022-03-31T22:45:40.000Z | sdk/python/tests/compiler/testdata/tekton_loop_dsl.py | kubeflow/kfp-tekton | b16bd8863aaf36de240b7306f501d62b95f01f31 | [
"Apache-2.0"
] | 85 | 2019-10-24T04:04:36.000Z | 2022-03-01T10:52:57.000Z | # Copyright 2021 kubeflow.org
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 34 | 76 | 0.674949 |
e7146df9c79e95a75dba56942c81b49fcbfb3769 | 17,700 | py | Python | azure/mgmt/datalake/analytics/account/operations/data_lake_store_accounts_operations.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 1 | 2022-01-25T22:52:58.000Z | 2022-01-25T22:52:58.000Z | azure/mgmt/datalake/analytics/account/operations/data_lake_store_accounts_operations.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | azure/mgmt/datalake/analytics/account/operations/data_lake_store_accounts_operations.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 49.859155 | 192 | 0.668192 |
e71491f4cb9bb7378a6de6ac09af125d71edaa4c | 317 | py | Python | Problem1/Collections/DefaultDict Tutorial.py | Joanna-O-Ben/ADM-HW1 | 0a914d4ab5462fa563980644d3f5d777af61aef9 | [
"MIT"
] | null | null | null | Problem1/Collections/DefaultDict Tutorial.py | Joanna-O-Ben/ADM-HW1 | 0a914d4ab5462fa563980644d3f5d777af61aef9 | [
"MIT"
] | null | null | null | Problem1/Collections/DefaultDict Tutorial.py | Joanna-O-Ben/ADM-HW1 | 0a914d4ab5462fa563980644d3f5d777af61aef9 | [
"MIT"
] | null | null | null | # Enter your code here. Read input from STDIN. Print output to STDOUT
from collections import defaultdict
n, m = map(int, input().split())
d = defaultdict(lambda: -1)
for i in range(1, n+1):
word = input()
d[word] = d[word] + ' ' + str(i) if word in d else str(i)
for _ in range(m):
print(d[input()])
| 22.642857 | 69 | 0.630915 |
e715ae23973f203c68cfe998932183b2bad3bee2 | 6,966 | py | Python | excptr/excptr.py | kakkarja/Excptr | 2ed1b40da339130eb15770c1cc91e94e3a17690f | [
"BSD-3-Clause"
] | null | null | null | excptr/excptr.py | kakkarja/Excptr | 2ed1b40da339130eb15770c1cc91e94e3a17690f | [
"BSD-3-Clause"
] | null | null | null | excptr/excptr.py | kakkarja/Excptr | 2ed1b40da339130eb15770c1cc91e94e3a17690f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2022, KarjaKAK
# All rights reserved.
from functools import wraps
from textwrap import fill
from contextlib import redirect_stdout
from datetime import datetime as dt
import io, inspect, os, sys
__all__ = ['']
DIRPATH = (
os.environ["USERPROFILE"] if sys.platform.startsw... | 30.419214 | 87 | 0.47617 |
e715d497f6c98d297a4d39a0e91d8045bc2c4af4 | 81 | py | Python | ims/apps.py | lcneo/ims | 94fc8a1dea0278acdde8599224c0a7c8d54d758c | [
"MIT"
] | 8 | 2020-10-02T02:41:12.000Z | 2021-09-22T08:37:26.000Z | ims/apps.py | lcneo/ims | 94fc8a1dea0278acdde8599224c0a7c8d54d758c | [
"MIT"
] | 15 | 2021-03-19T03:43:56.000Z | 2022-03-12T00:30:55.000Z | ims/apps.py | hisham2k9/IMS-and-CAPA | 9f70988a6411c72ab4f0cbc818b84db58a28076f | [
"MIT"
] | 2 | 2018-12-22T20:19:13.000Z | 2020-09-02T07:32:21.000Z | from django.apps import AppConfig
| 13.5 | 33 | 0.728395 |
e716eb4f5f13801172dc0b217aa846ea2a03b1b0 | 25,735 | py | Python | PyU4V/tests/unit_tests/test_pyu4v_system.py | SiSTm1/PyU4V | ce9784fc5f8192024cfa42509b8d45583b83f01d | [
"MIT"
] | 19 | 2020-01-06T12:02:25.000Z | 2021-12-14T06:50:04.000Z | PyU4V/tests/unit_tests/test_pyu4v_system.py | SiSTm1/PyU4V | ce9784fc5f8192024cfa42509b8d45583b83f01d | [
"MIT"
] | 53 | 2019-12-17T17:26:44.000Z | 2022-02-03T12:28:34.000Z | PyU4V/tests/unit_tests/test_pyu4v_system.py | SiSTm1/PyU4V | ce9784fc5f8192024cfa42509b8d45583b83f01d | [
"MIT"
] | 11 | 2020-05-24T14:42:46.000Z | 2022-03-02T16:30:57.000Z | # Copyright (c) 2020 Dell Inc. or its subsidiaries.
#
# 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... | 46.790909 | 79 | 0.674956 |
e7184bb619f9cf0c50a0b0b91431faa51ba55646 | 4,968 | py | Python | fbms/create_fg_bg_masks.py | MSiam/segment-any-moving | 82cb782867d866d2f4eb68230edb75f613e15a02 | [
"Apache-2.0"
] | 70 | 2019-09-16T17:55:55.000Z | 2022-03-07T00:26:53.000Z | fbms/create_fg_bg_masks.py | MSiam/segment-any-moving | 82cb782867d866d2f4eb68230edb75f613e15a02 | [
"Apache-2.0"
] | 9 | 2019-09-30T09:15:11.000Z | 2021-07-21T11:33:13.000Z | fbms/create_fg_bg_masks.py | MSiam/segment-any-moving | 82cb782867d866d2f4eb68230edb75f613e15a02 | [
"Apache-2.0"
] | 5 | 2019-09-25T05:14:37.000Z | 2021-07-08T20:13:47.000Z | """Create foreground/background motion masks from detections."""
import argparse
import logging
import pickle
import pprint
from pathlib import Path
import numpy as np
from PIL import Image
import pycocotools.mask as mask_util
from utils.fbms import utils as fbms_utils
from utils.log import add_time_to_path, setup_... | 35.741007 | 78 | 0.652576 |
e7192a652cc3b4f56fd8f1600fe41d11e8eebf58 | 221 | py | Python | tests/file_to_strip.py | smok-serwis/strip-docs | 17ceb3aef9b3a8b9f80592da51cd8162edfc7600 | [
"MIT"
] | null | null | null | tests/file_to_strip.py | smok-serwis/strip-docs | 17ceb3aef9b3a8b9f80592da51cd8162edfc7600 | [
"MIT"
] | null | null | null | tests/file_to_strip.py | smok-serwis/strip-docs | 17ceb3aef9b3a8b9f80592da51cd8162edfc7600 | [
"MIT"
] | null | null | null | """
Strip me
"""
def empty_routine():
"""
Strip me
:return: nothing
"""
pass
| 10.045455 | 27 | 0.493213 |
e71995c893a9d316253ea7bd48b5f5659ea3fec1 | 1,669 | py | Python | src/dispatch/plugins/dispatch_google/common.py | jason-azze/dispatch | 56a9435d08b32429c6b44f83cb0f5aff5a8b6931 | [
"Apache-2.0"
] | null | null | null | src/dispatch/plugins/dispatch_google/common.py | jason-azze/dispatch | 56a9435d08b32429c6b44f83cb0f5aff5a8b6931 | [
"Apache-2.0"
] | 2 | 2021-03-11T04:29:11.000Z | 2021-10-06T21:12:45.000Z | src/dispatch/plugins/dispatch_google/common.py | jason-azze/dispatch | 56a9435d08b32429c6b44f83cb0f5aff5a8b6931 | [
"Apache-2.0"
] | null | null | null | import json
import socket
import tempfile
from google.oauth2 import service_account
import googleapiclient.discovery
from .config import (
GOOGLE_SERVICE_ACCOUNT_CLIENT_EMAIL,
GOOGLE_SERVICE_ACCOUNT_CLIENT_ID,
GOOGLE_SERVICE_ACCOUNT_DELAGATED_ACCOUNT,
GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY,
GOOGLE_SER... | 32.096154 | 98 | 0.732774 |
e719d280906322349a44262ff73a7f9f71dcec17 | 511 | py | Python | web_app/main.py | dimagi/commcare-fhir-web-app | c0afec94a177b79ee8314ac29692d0697567e1f2 | [
"Apache-2.0"
] | null | null | null | web_app/main.py | dimagi/commcare-fhir-web-app | c0afec94a177b79ee8314ac29692d0697567e1f2 | [
"Apache-2.0"
] | 3 | 2021-04-19T16:03:45.000Z | 2021-05-06T11:11:21.000Z | web_app/main.py | dimagi/commcare-fhir-web-app | c0afec94a177b79ee8314ac29692d0697567e1f2 | [
"Apache-2.0"
] | null | null | null | from flask import Flask, render_template, request
from web_app.fhir_client import fetch_patient_data
app = Flask(__name__)
| 22.217391 | 72 | 0.708415 |
e71b58e87dfbb0a1a266b2ea42679908ef474085 | 1,070 | py | Python | plugml/dao.py | mkraemer67/plugml | d1702a2b733e0511c735fea08e30b5b3f959a174 | [
"Apache-2.0"
] | 1 | 2015-03-26T13:28:47.000Z | 2015-03-26T13:28:47.000Z | plugml/dao.py | mkraemer67/plugml | d1702a2b733e0511c735fea08e30b5b3f959a174 | [
"Apache-2.0"
] | null | null | null | plugml/dao.py | mkraemer67/plugml | d1702a2b733e0511c735fea08e30b5b3f959a174 | [
"Apache-2.0"
] | null | null | null | import psycopg2
| 32.424242 | 72 | 0.447664 |
e71d0f0f5c085420788077efbcac474df2e59445 | 57 | py | Python | align_images/__init__.py | ArcturusB/align_images | 7bf0348e17db4172bc4ddd259d8a9dfbe9eca0e7 | [
"Unlicense"
] | 1 | 2019-06-21T05:11:34.000Z | 2019-06-21T05:11:34.000Z | align_images/__init__.py | ArcturusB/align_images | 7bf0348e17db4172bc4ddd259d8a9dfbe9eca0e7 | [
"Unlicense"
] | null | null | null | align_images/__init__.py | ArcturusB/align_images | 7bf0348e17db4172bc4ddd259d8a9dfbe9eca0e7 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
from . import align, cc2d, tools
| 14.25 | 32 | 0.701754 |
e71fe0afc69089b13f571b743733ac7787ae15e6 | 394 | py | Python | website/models/home_tab.py | LKKTGB/lkk-website | d9cd2f5a11f2b4316ea4b242c5e09981207abdfb | [
"MIT"
] | null | null | null | website/models/home_tab.py | LKKTGB/lkk-website | d9cd2f5a11f2b4316ea4b242c5e09981207abdfb | [
"MIT"
] | 5 | 2020-04-26T09:03:33.000Z | 2022-02-02T13:00:39.000Z | website/models/home_tab.py | LKKTGB/lkk-website | d9cd2f5a11f2b4316ea4b242c5e09981207abdfb | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import ugettext_lazy as _
| 26.266667 | 65 | 0.708122 |
e720bfb7b582ffd688d460b748233b9c2140ca6a | 1,528 | py | Python | kite-python/kite_ml/kite/infer_keyword/classifier.py | kiteco/kiteco-public | 74aaf5b9b0592153b92f7ed982d65e15eea885e3 | [
"BSD-3-Clause"
] | 17 | 2022-01-10T11:01:50.000Z | 2022-03-25T03:21:08.000Z | kite-python/kite_ml/kite/infer_keyword/classifier.py | kiteco/kiteco-public | 74aaf5b9b0592153b92f7ed982d65e15eea885e3 | [
"BSD-3-Clause"
] | 1 | 2022-01-13T14:28:47.000Z | 2022-01-13T14:28:47.000Z | kite-python/kite_ml/kite/infer_keyword/classifier.py | kiteco/kiteco-public | 74aaf5b9b0592153b92f7ed982d65e15eea885e3 | [
"BSD-3-Clause"
] | 7 | 2022-01-07T03:58:10.000Z | 2022-03-24T07:38:20.000Z | import tensorflow as tf
| 52.689655 | 119 | 0.645942 |
e722c1eb1d2bea4a1f19801458516ddedaac5629 | 226 | py | Python | 001146StepikPyBegin/Stepik001146PyBeginсh04p01st12C09_v06_Ivan_Merzlyakov_20200413.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 001146StepikPyBegin/Stepik001146PyBeginсh04p01st12C09_v06_Ivan_Merzlyakov_20200413.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | 001146StepikPyBegin/Stepik001146PyBeginсh04p01st12C09_v06_Ivan_Merzlyakov_20200413.py | SafonovMikhail/python_000577 | 739f764e80f1ca354386f00b8e9db1df8c96531d | [
"Apache-2.0"
] | null | null | null | # https://stepik.org/lesson/265081/step/12?discussion=1542627&thread=solutions&unit=246029
s, a, b, c = 0, int(input()), int(input()), int(input())
s += a if a > 0 else 0
s += b if b > 0 else 0
s += c if c > 0 else 0
print(s)
| 32.285714 | 90 | 0.628319 |
e722cecb5e5dea00739adffd75f58caf64344e85 | 171 | py | Python | assets/tuned/daemon/tuned/version.py | marioferh/cluster-node-tuning-operator | c0a64236e2083739e0b560f0bf75f65859df059e | [
"Apache-2.0"
] | null | null | null | assets/tuned/daemon/tuned/version.py | marioferh/cluster-node-tuning-operator | c0a64236e2083739e0b560f0bf75f65859df059e | [
"Apache-2.0"
] | null | null | null | assets/tuned/daemon/tuned/version.py | marioferh/cluster-node-tuning-operator | c0a64236e2083739e0b560f0bf75f65859df059e | [
"Apache-2.0"
] | 2 | 2022-02-02T11:46:53.000Z | 2022-02-02T11:51:57.000Z | TUNED_VERSION_MAJOR = 2
TUNED_VERSION_MINOR = 18
TUNED_VERSION_PATCH = 0
TUNED_VERSION_STR = "%d.%d.%d" % (TUNED_VERSION_MAJOR, TUNED_VERSION_MINOR, TUNED_VERSION_PATCH)
| 28.5 | 96 | 0.807018 |
e723fc68b936a185b342791de1bcfa8bea088d91 | 1,550 | py | Python | pages/process.py | BuildWeek-AirBnB-Optimal-Price/application | c65e1ec3db309dd3afbcf9429d16489ccda534d8 | [
"MIT"
] | null | null | null | pages/process.py | BuildWeek-AirBnB-Optimal-Price/application | c65e1ec3db309dd3afbcf9429d16489ccda534d8 | [
"MIT"
] | 1 | 2021-08-23T21:22:51.000Z | 2021-08-23T21:22:51.000Z | pages/process.py | BuildWeek-AirBnB-Optimal-Price/application | c65e1ec3db309dd3afbcf9429d16489ccda534d8 | [
"MIT"
] | null | null | null | '''
blog space for
collaborative and
model development process
RJProcess
'''
# Imports from 3rd party libraries
import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
from app import app
# 1 column layout... | 26.271186 | 212 | 0.687742 |
e725e18e3a277e1d976adc5ce8f0c78b09bd922e | 999 | py | Python | pro_tes/ga4gh/tes/endpoints/utils.py | Ayush5120/proTES | 5bf1a7394b7c528f6d5a5dc38c05689262ae033a | [
"Apache-2.0"
] | 2 | 2020-02-14T18:41:08.000Z | 2020-02-17T06:56:10.000Z | pro_tes/ga4gh/tes/endpoints/utils.py | Ayush5120/proTES | 5bf1a7394b7c528f6d5a5dc38c05689262ae033a | [
"Apache-2.0"
] | 22 | 2018-11-15T18:17:09.000Z | 2019-11-21T14:14:40.000Z | pro_tes/ga4gh/tes/endpoints/utils.py | Ayush5120/proTES | 5bf1a7394b7c528f6d5a5dc38c05689262ae033a | [
"Apache-2.0"
] | 3 | 2020-03-25T11:28:40.000Z | 2022-03-16T09:41:59.000Z | def
# Set access token
if authorization required:
try:
access_token = request_access_token(
user_id=document['user_id'],
token_endpoint=endpoint_params['token_endpoint'],
timeout=endpoint_params['timeout_token_request'],
)
... | 34.448276 | 78 | 0.502503 |
e72663b878c8d9076da42c6d7b5d2a0e8a31201f | 26 | py | Python | code/src/__init__.py | nzw0301/Understanding-Negative-Samples-in-Instance-Discriminative-Self-supervised-Representation-Learning | 957173bd8ec5b5e00994099d8b4467c74b802303 | [
"MIT"
] | 4 | 2021-10-06T07:04:43.000Z | 2022-01-28T09:31:29.000Z | code/src/__init__.py | nzw0301/Understanding-Negative-Samples | 957173bd8ec5b5e00994099d8b4467c74b802303 | [
"MIT"
] | null | null | null | code/src/__init__.py | nzw0301/Understanding-Negative-Samples | 957173bd8ec5b5e00994099d8b4467c74b802303 | [
"MIT"
] | null | null | null | from .loss import NT_Xent
| 13 | 25 | 0.807692 |
e7266a839947e7bff99aab9ea7cf93fed2314c1b | 84 | py | Python | framework/rpibaremetal/connection/__init__.py | KisImre/rpi-bare-metal-prototyping-framework | ec3db9db3697ddfdd56e8883d34111981a4c38f7 | [
"MIT"
] | null | null | null | framework/rpibaremetal/connection/__init__.py | KisImre/rpi-bare-metal-prototyping-framework | ec3db9db3697ddfdd56e8883d34111981a4c38f7 | [
"MIT"
] | null | null | null | framework/rpibaremetal/connection/__init__.py | KisImre/rpi-bare-metal-prototyping-framework | ec3db9db3697ddfdd56e8883d34111981a4c38f7 | [
"MIT"
] | null | null | null | # Copyright (c) 2020, Kis Imre. All rights reserved.
# SPDX-License-Identifier: MIT
| 28 | 52 | 0.738095 |
e726ce3420ac33849733ba1549bfbf5f6cbd4bab | 2,085 | py | Python | src/Chap13_Lab_PageRank.py | falconlee236/CodingTheMatrix-Answer | 4fab8087bde352913da71c8d86b802a93231b1b5 | [
"MIT"
] | null | null | null | src/Chap13_Lab_PageRank.py | falconlee236/CodingTheMatrix-Answer | 4fab8087bde352913da71c8d86b802a93231b1b5 | [
"MIT"
] | null | null | null | src/Chap13_Lab_PageRank.py | falconlee236/CodingTheMatrix-Answer | 4fab8087bde352913da71c8d86b802a93231b1b5 | [
"MIT"
] | null | null | null | from pagerank_test import small_links, A2
from pagerank import find_word, read_data
from vec import Vec
from mat import Mat
from math import sqrt
# Task 13.12.1
# Task 13.12.2
make_Markov(small_links)
# Task 13.12.3
# Task 13.12.4
links = read_data("links.bin")
# Task 13.12.5
# Task 13.12.6
make_Markov(... | 20.441176 | 73 | 0.608633 |
e7276f28ac4e072f7bd65b6f8eba2b3bc1b6fc22 | 4,695 | py | Python | tasks/parsing/parsers.py | rasmusbergpalm/attend-copy-parse | 4673be36db64e982ceabc1e29ff34a296917f969 | [
"MIT"
] | 8 | 2021-05-11T12:12:23.000Z | 2022-02-10T09:56:14.000Z | tasks/parsing/parsers.py | karimcossentini/attend-copy-parse | 4acbe7bfc2be1b5c21c197a44b27143a9422b426 | [
"MIT"
] | 3 | 2021-08-11T06:44:56.000Z | 2022-03-14T09:16:03.000Z | tasks/parsing/parsers.py | rasmusbergpalm/attend-copy-parse | 4673be36db64e982ceabc1e29ff34a296917f969 | [
"MIT"
] | 2 | 2021-05-22T07:41:21.000Z | 2021-05-26T12:39:02.000Z | import tensorflow as tf
from tensorflow.contrib import layers
from tensorflow.contrib.cudnn_rnn import CudnnLSTM
from tensorflow.contrib.cudnn_rnn.python.layers.cudnn_rnn import CUDNN_RNN_BIDIRECTION
import os
from tasks.acp.data import RealData
| 35.568182 | 140 | 0.613845 |
e72ac116e6c24e4369118ac69de62498b785f6e9 | 7,297 | py | Python | scripts/etl/constants.py | lcbm/cs-data-viz | 9272833b612b8921fe21b1196904e40f9e827e0e | [
"0BSD"
] | null | null | null | scripts/etl/constants.py | lcbm/cs-data-viz | 9272833b612b8921fe21b1196904e40f9e827e0e | [
"0BSD"
] | null | null | null | scripts/etl/constants.py | lcbm/cs-data-viz | 9272833b612b8921fe21b1196904e40f9e827e0e | [
"0BSD"
] | null | null | null | """ File with the definitions of constants for the ETL scripts. """
SCRIPTS_DIR = "scripts"
SCRIPTS_ETL_DIR = f"{SCRIPTS_DIR}/etl"
SCRIPTS_ETL_TRANSFORM = f"{SCRIPTS_ETL_DIR}/transform.sh"
VENV_BIN = ".venv/bin"
VENV_KAGGLE_BIN = f"{VENV_BIN}/kaggle"
DOCKER_DIR = "docker"
ENVARS_DIR = f"{DOCKER_DIR}/env.d"
DATA_DIR =... | 33.319635 | 93 | 0.771139 |
e72ac9ee875861cb5ac036cb18ed4ef985d32680 | 3,262 | py | Python | SouthernOceanTopography3D.py | cesar-rocha/SouthernOceanTopography | 10e698e01e8435ae35ef028437d7a881fa3e5585 | [
"MIT"
] | null | null | null | SouthernOceanTopography3D.py | cesar-rocha/SouthernOceanTopography | 10e698e01e8435ae35ef028437d7a881fa3e5585 | [
"MIT"
] | null | null | null | SouthernOceanTopography3D.py | cesar-rocha/SouthernOceanTopography | 10e698e01e8435ae35ef028437d7a881fa3e5585 | [
"MIT"
] | 1 | 2020-12-11T02:15:56.000Z | 2020-12-11T02:15:56.000Z |
# coding: utf-8
# This script makes a 3D plot of the Southern Ocean topography.
#
# The data comes from some geophysiscists at Columbia. The product is "MGDS: Global Multi-Resolution Topography". These folks took all multibeam swath data that they can get their hands on and filled gaps with Smith and Sandwell. See ht... | 23.467626 | 292 | 0.671061 |