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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0bb8e30ded6e839a96a8ac9f64f609621cb56e4a | 2,055 | py | Python | S4/S4 Library/simulation/careers/pick_career_by_agent_interaction.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | 1 | 2021-05-20T19:33:37.000Z | 2021-05-20T19:33:37.000Z | S4/S4 Library/simulation/careers/pick_career_by_agent_interaction.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | S4/S4 Library/simulation/careers/pick_career_by_agent_interaction.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | from event_testing.resolver import SingleSimResolver
from sims4.resources import Types
from sims4.tuning.tunable import TunableList, TunableReference
from sims4.tuning.tunable_base import GroupNames
from traits.trait_tracker import TraitPickerSuperInteraction
import services
| 60.441176 | 583 | 0.734793 |
0bb9728183f6cd95e86f2c16d976742c14283f39 | 149 | py | Python | api/urls.py | kirklennon/Clickbait | 9ce97d38b3dce78ce151b285a0cc55ddbb7b58be | [
"MIT"
] | 1 | 2020-08-29T09:31:22.000Z | 2020-08-29T09:31:22.000Z | api/urls.py | kirklennon/Clickbait | 9ce97d38b3dce78ce151b285a0cc55ddbb7b58be | [
"MIT"
] | null | null | null | api/urls.py | kirklennon/Clickbait | 9ce97d38b3dce78ce151b285a0cc55ddbb7b58be | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('json', views.api, name='api'),
] | 21.285714 | 40 | 0.644295 |
0bba1e28f68dedeccae5371afea0ac4ab68e2473 | 68,549 | py | Python | tests/examples/minlplib/waterno2_03.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 2 | 2021-07-03T13:19:10.000Z | 2022-02-06T10:48:13.000Z | tests/examples/minlplib/waterno2_03.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 1 | 2021-07-04T14:52:14.000Z | 2021-07-15T10:17:11.000Z | tests/examples/minlplib/waterno2_03.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | null | null | null | # MINLP written by GAMS Convert at 04/21/18 13:55:18
#
# Equation counts
# Total E G L N X C B
# 617 367 103 147 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | 38.381299 | 117 | 0.65222 |
0bbab57a58980cab77be4152c0853746383805da | 3,265 | py | Python | examples/pincell_depletion/restart_depletion.py | norberto-schmidt/openmc | ff4844303154a68027b9c746300f5704f73e0875 | [
"MIT"
] | 262 | 2018-08-09T21:27:03.000Z | 2022-03-24T05:02:10.000Z | examples/pincell_depletion/restart_depletion.py | norberto-schmidt/openmc | ff4844303154a68027b9c746300f5704f73e0875 | [
"MIT"
] | 753 | 2018-08-03T15:26:57.000Z | 2022-03-29T23:54:48.000Z | examples/pincell_depletion/restart_depletion.py | norberto-schmidt/openmc | ff4844303154a68027b9c746300f5704f73e0875 | [
"MIT"
] | 196 | 2018-08-06T13:41:14.000Z | 2022-03-29T20:47:12.000Z | import openmc
import openmc.deplete
import matplotlib.pyplot as plt
###############################################################################
# Load previous simulation results
###############################################################################
# Load geometry from statepoint
st... | 35.879121 | 90 | 0.543951 |
0bbb896c1f766d40e02d03530e5012bd42f6b56e | 660 | py | Python | app/schemas/treatment_type.py | DzhonPetrus/Treatment-Management | 6b08c59d2d4e79181bbae4e951b7a5fd2e3162f1 | [
"MIT"
] | null | null | null | app/schemas/treatment_type.py | DzhonPetrus/Treatment-Management | 6b08c59d2d4e79181bbae4e951b7a5fd2e3162f1 | [
"MIT"
] | null | null | null | app/schemas/treatment_type.py | DzhonPetrus/Treatment-Management | 6b08c59d2d4e79181bbae4e951b7a5fd2e3162f1 | [
"MIT"
] | null | null | null | from datetime import datetime as dt
from typing import Optional, List
from pydantic import BaseModel
from ..utils.schemaHelper import Base, as_form
| 19.411765 | 46 | 0.721212 |
0bbbc45ba4c350c8c90d7bb728eaa10783237f8b | 2,211 | py | Python | app/daemon.py | mika-koivusaari/mqtt_db_gateway | c2e6a0f97d340f5a9d8a2f530f3ae0145064fd2b | [
"MIT"
] | 1 | 2017-12-02T17:38:23.000Z | 2017-12-02T17:38:23.000Z | app/daemon.py | mika-koivusaari/mqtt_db_gateway | c2e6a0f97d340f5a9d8a2f530f3ae0145064fd2b | [
"MIT"
] | null | null | null | app/daemon.py | mika-koivusaari/mqtt_db_gateway | c2e6a0f97d340f5a9d8a2f530f3ae0145064fd2b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from pep3143daemon import DaemonContext, PidFile
import signal
import os
import sys
import time
| 35.66129 | 99 | 0.502035 |
0bc0a0c5b56516ed3c7366dbc0aa3ccecc32fda3 | 623 | py | Python | src/posts/forms.py | trivvet/djangoAdvance | 28891893869c1c0c3cf67d7f496dda96322de18c | [
"MIT"
] | null | null | null | src/posts/forms.py | trivvet/djangoAdvance | 28891893869c1c0c3cf67d7f496dda96322de18c | [
"MIT"
] | null | null | null | src/posts/forms.py | trivvet/djangoAdvance | 28891893869c1c0c3cf67d7f496dda96322de18c | [
"MIT"
] | null | null | null | from django import forms
from crispy_forms.helper import FormHelper
from pagedown.widgets import PagedownWidget
from .models import Post
| 23.961538 | 72 | 0.622793 |
0bc0b1a713ee07a7da22300f41d7eef91e9cf3f3 | 1,621 | py | Python | games/migrations/0004_auto_20150726_1430.py | rnelson/library | 5f327c188f2847151dcfc92de0dc4f43f24096bf | [
"MIT"
] | null | null | null | games/migrations/0004_auto_20150726_1430.py | rnelson/library | 5f327c188f2847151dcfc92de0dc4f43f24096bf | [
"MIT"
] | null | null | null | games/migrations/0004_auto_20150726_1430.py | rnelson/library | 5f327c188f2847151dcfc92de0dc4f43f24096bf | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
| 27.016667 | 60 | 0.52992 |
0bc0f8ad9a5e857c61031c1ca0a45f2bb10b8808 | 783 | py | Python | Exareme-Docker/src/mip-algorithms/HEALTH_CHECK/global.py | tchamabe1979/exareme | 462983e4feec7808e1fd447d02901502588a8879 | [
"MIT"
] | null | null | null | Exareme-Docker/src/mip-algorithms/HEALTH_CHECK/global.py | tchamabe1979/exareme | 462983e4feec7808e1fd447d02901502588a8879 | [
"MIT"
] | null | null | null | Exareme-Docker/src/mip-algorithms/HEALTH_CHECK/global.py | tchamabe1979/exareme | 462983e4feec7808e1fd447d02901502588a8879 | [
"MIT"
] | null | null | null | import sys
import json
from os import path
from argparse import ArgumentParser
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))) + '/utils/')
from algorithm_utils import set_algorithms_output_data
from health_check_lib import HealthCheckLocalDT
if __name__ == '__main__':
main()
| 27.964286 | 84 | 0.715198 |
0bc10ee1d8cb8fa794fa00533f0e4782089ee855 | 107 | py | Python | app/search/urlmap.py | Hanaasagi/Ushio | 007f8e50e68bf71a1822b09291b1236a1a37c515 | [
"MIT"
] | 5 | 2016-10-24T14:01:48.000Z | 2017-09-26T07:33:20.000Z | app/search/urlmap.py | Hanaasagi/Ushio | 007f8e50e68bf71a1822b09291b1236a1a37c515 | [
"MIT"
] | null | null | null | app/search/urlmap.py | Hanaasagi/Ushio | 007f8e50e68bf71a1822b09291b1236a1a37c515 | [
"MIT"
] | null | null | null | # -*-coding:UTF-8-*-
from handler import SearchHandler
urlpattern = (
(r'/search', SearchHandler),
)
| 13.375 | 33 | 0.654206 |
0bc1b5133ac6d7c68f1be37cb9acd664f71acc62 | 1,601 | py | Python | collect_data/utils/immerseuk/gtr/gtr_extrainfo_awsreduce.py | jaklinger/nesta_dataflow | 5d5647dd8d900a40b460bae0841f7d917e53ae08 | [
"MIT"
] | null | null | null | collect_data/utils/immerseuk/gtr/gtr_extrainfo_awsreduce.py | jaklinger/nesta_dataflow | 5d5647dd8d900a40b460bae0841f7d917e53ae08 | [
"MIT"
] | null | null | null | collect_data/utils/immerseuk/gtr/gtr_extrainfo_awsreduce.py | jaklinger/nesta_dataflow | 5d5647dd8d900a40b460bae0841f7d917e53ae08 | [
"MIT"
] | null | null | null | import logging
from utils.common.datapipeline import DataPipeline
import boto3
import json
from copy import deepcopy
s3 = boto3.resource('s3')
bucket = s3.Bucket('tier-0')
if __name__ == "__main__":
#run()
#import numpy as np
#all_numbers = list(np.arange(0,37242,6))
#all_numbers.append(37242)
p... | 25.822581 | 56 | 0.519675 |
0bc1b87155af7211f7ef4f7bb261c76723b7c1da | 3,595 | py | Python | src/features/helpers/processing_v4.py | askoki/nfl_dpi_prediction | dc3256f24ddc0b6725eace2081d1fb1a7e5ce805 | [
"MIT"
] | null | null | null | src/features/helpers/processing_v4.py | askoki/nfl_dpi_prediction | dc3256f24ddc0b6725eace2081d1fb1a7e5ce805 | [
"MIT"
] | null | null | null | src/features/helpers/processing_v4.py | askoki/nfl_dpi_prediction | dc3256f24ddc0b6725eace2081d1fb1a7e5ce805 | [
"MIT"
] | null | null | null | import math
import numpy as np
from matplotlib.patches import FancyArrowPatch
def arrow(x, y, s, ax, color):
"""
Function to draw the arrow of the movement
:param x: position on x-axis
:param y: position on y-axis
:param s: speed in yards/s
:param ax: plot's configuration
:param color: ... | 27.868217 | 94 | 0.569958 |
0bc25237116d36d1b3724261d878f108f7fb3326 | 1,103 | py | Python | abc199/d/main.py | KeiNishikawa218/atcoder | 0af5e091f8b1fd64d5ca7b46b06b9356eacfe601 | [
"MIT"
] | null | null | null | abc199/d/main.py | KeiNishikawa218/atcoder | 0af5e091f8b1fd64d5ca7b46b06b9356eacfe601 | [
"MIT"
] | null | null | null | abc199/d/main.py | KeiNishikawa218/atcoder | 0af5e091f8b1fd64d5ca7b46b06b9356eacfe601 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
main() | 23.978261 | 54 | 0.481414 |
0bc25628bdeee646aae0cedd3efc79f8829fa812 | 4,963 | py | Python | scripts/corpinfo.py | HiroshiOhta/GetCorporationInfo | 3c64ba44a15d481c652da70d62f7127372ac6d1e | [
"Apache-2.0"
] | 1 | 2020-05-24T02:41:24.000Z | 2020-05-24T02:41:24.000Z | scripts/corpinfo.py | HiroshiOhta/GetCorporationInfo | 3c64ba44a15d481c652da70d62f7127372ac6d1e | [
"Apache-2.0"
] | null | null | null | scripts/corpinfo.py | HiroshiOhta/GetCorporationInfo | 3c64ba44a15d481c652da70d62f7127372ac6d1e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
from pathlib import Path
from re import search, sub
from sys import exit, argv
from xml.etree import ElementTree as ET
import csv
#
from requests import get
from requests.exceptions import Timeout, RequestException
#
from constants import ENC_API_KEY, NTA_API_URL
from crypt_string import ... | 25.715026 | 84 | 0.518638 |
e7e46d31c42a93c03c2df71128dd11ecc6e4322c | 3,289 | py | Python | lib/misc.py | cripplet/langmuir-hash | 5b4aa8e705b237704dbb99fbaa89af8cc2e7a8b5 | [
"MIT"
] | null | null | null | lib/misc.py | cripplet/langmuir-hash | 5b4aa8e705b237704dbb99fbaa89af8cc2e7a8b5 | [
"MIT"
] | null | null | null | lib/misc.py | cripplet/langmuir-hash | 5b4aa8e705b237704dbb99fbaa89af8cc2e7a8b5 | [
"MIT"
] | null | null | null | # custom libs
from lib.args import getConf
# Python libs
from re import sub
from os import mkdir
from os.path import exists
from getpass import getuser
from socket import gethostname
# given an int (treated as binary list), generate all unique rotational permutations of int (circular shifts)
# http://bit.ly/GLdKmI
#... | 28.353448 | 112 | 0.617817 |
e7e6f4d9ac01c5dc81ed803d1582d06a2e43feb7 | 5,538 | py | Python | actions/geoip.py | cognifloyd/stackstorm-networking_utils | 56bbb6fc55f7662c2e7e7cccd79f1ebbfcb1df38 | [
"Apache-2.0"
] | null | null | null | actions/geoip.py | cognifloyd/stackstorm-networking_utils | 56bbb6fc55f7662c2e7e7cccd79f1ebbfcb1df38 | [
"Apache-2.0"
] | null | null | null | actions/geoip.py | cognifloyd/stackstorm-networking_utils | 56bbb6fc55f7662c2e7e7cccd79f1ebbfcb1df38 | [
"Apache-2.0"
] | null | null | null | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | 36.434211 | 109 | 0.501083 |
e7e747c17639e0dcf83dd1ce0bf4d49fb48d32c9 | 6,372 | py | Python | backend/src/dealer/helpers/result.py | codepals-org/poker | 8b58df2ff4d3d9799c42652a9d6942d8ec6b3707 | [
"MIT"
] | 2 | 2020-11-07T16:37:14.000Z | 2020-11-07T17:11:24.000Z | backend/src/dealer/helpers/result.py | codepals-org/poker | 8b58df2ff4d3d9799c42652a9d6942d8ec6b3707 | [
"MIT"
] | 7 | 2020-11-07T14:04:06.000Z | 2020-11-11T11:49:13.000Z | backend/src/dealer/helpers/result.py | codepals-org/poker | 8b58df2ff4d3d9799c42652a9d6942d8ec6b3707 | [
"MIT"
] | 1 | 2020-11-08T13:00:27.000Z | 2020-11-08T13:00:27.000Z | """ This module comes with functions to decide which poker player out
of all players has the best cards.
"""
import itertools
# full_list in [('A','A'),('B','B')...,('F','F')]
def results(full_list, public_card):
""" The results function takes a list of player cards and
the community cards (in the middle of... | 38.155689 | 91 | 0.44005 |
e7e78d1aba44146a11b4493e469f13a8468f2449 | 420 | py | Python | nimble-newts/askgrieves/chatbot/models.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 40 | 2020-08-02T07:38:22.000Z | 2021-07-26T01:46:50.000Z | nimble-newts/askgrieves/chatbot/models.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 134 | 2020-07-31T12:15:45.000Z | 2020-12-13T04:42:19.000Z | nimble-newts/askgrieves/chatbot/models.py | AvianAnalyst/summer-code-jam-2020 | c5e2aeb4ce399c438a1b8aad393d9c2e9ef98a75 | [
"MIT"
] | 101 | 2020-07-31T12:00:47.000Z | 2021-11-01T09:06:58.000Z | from django.db import models
| 23.333333 | 57 | 0.7 |
e7e9d221f1fcec4aa818bff540aa8cfe75c86d5f | 1,026 | py | Python | examples/example_wait_for.py | plun1331/discord.py-components-1 | a31b1a0cfbd31b98d01e910ed905c9c70afe0c3e | [
"MIT"
] | 1 | 2021-08-07T18:40:36.000Z | 2021-08-07T18:40:36.000Z | examples/example_wait_for.py | plun1331/discord.py-components-1 | a31b1a0cfbd31b98d01e910ed905c9c70afe0c3e | [
"MIT"
] | null | null | null | examples/example_wait_for.py | plun1331/discord.py-components-1 | a31b1a0cfbd31b98d01e910ed905c9c70afe0c3e | [
"MIT"
] | null | null | null | from discord.ext.commands import Bot
from discord_components import DiscordComponents, Button, ButtonStyle, InteractionType
from asyncio import TimeoutError
bot = Bot("!")
bot.run("TOKEN")
| 24.428571 | 99 | 0.621832 |
e7ea14302b331a9466a14df8ced10e7042b53923 | 7,081 | py | Python | core/data/dataloader/upb_kitti.py | nemodrive/awesome-semantic-segmentation-pytorch | fa0e4174004822ace0560cc046c2fbdb81f1e1b9 | [
"Apache-2.0"
] | null | null | null | core/data/dataloader/upb_kitti.py | nemodrive/awesome-semantic-segmentation-pytorch | fa0e4174004822ace0560cc046c2fbdb81f1e1b9 | [
"Apache-2.0"
] | null | null | null | core/data/dataloader/upb_kitti.py | nemodrive/awesome-semantic-segmentation-pytorch | fa0e4174004822ace0560cc046c2fbdb81f1e1b9 | [
"Apache-2.0"
] | null | null | null | """Pascal VOC Semantic Segmentation Dataset."""
import os
import torch
import numpy as np
from PIL import Image
from .segbase import SegmentationDataset
if __name__ == '__main__':
dataset = KITTISegmentation()
| 36.880208 | 141 | 0.591018 |
e7ea5fbf2a5ea893fa5d02bc075a60e6e8983358 | 4,580 | py | Python | app/request.py | angelakarenzi5/News-Highlight | 3eae6f743f9e5d9eb4ea80b29ae0e2c57dd0aa62 | [
"Unlicense"
] | null | null | null | app/request.py | angelakarenzi5/News-Highlight | 3eae6f743f9e5d9eb4ea80b29ae0e2c57dd0aa62 | [
"Unlicense"
] | null | null | null | app/request.py | angelakarenzi5/News-Highlight | 3eae6f743f9e5d9eb4ea80b29ae0e2c57dd0aa62 | [
"Unlicense"
] | null | null | null | from app import app
import urllib.request,json
from .models import source
from .models import article
Source = source.Source
Article = article.Article
# Getting api key
api_key = app.config['NEWS_API_KEY']
# Getting the source base url
base_url = app.config["SOURCE_API_BASE_URL"]
article_url = app.config["ARTICLE_A... | 31.156463 | 98 | 0.691921 |
e7ea9b418ef09dc2361de5d9ada98bfd38198af3 | 19 | py | Python | login.py | XM001-creater/test_one | 1cf96a45c8dfbf988125e3d250d86fb06fe65c34 | [
"MIT"
] | null | null | null | login.py | XM001-creater/test_one | 1cf96a45c8dfbf988125e3d250d86fb06fe65c34 | [
"MIT"
] | null | null | null | login.py | XM001-creater/test_one | 1cf96a45c8dfbf988125e3d250d86fb06fe65c34 | [
"MIT"
] | null | null | null | num1 =1
num2 = 222
| 6.333333 | 10 | 0.631579 |
e7ecc557e33faf2b68bd5445272a43c0e0419ea1 | 445 | py | Python | change_file_name.py | Guzhongren/picuture2thumbnail | 15d58c2e53652e5c5af9ff1bf89883b9038bfa03 | [
"MIT"
] | 1 | 2019-07-07T17:51:37.000Z | 2019-07-07T17:51:37.000Z | change_file_name.py | Guzhongren/picuture2thumbnail | 15d58c2e53652e5c5af9ff1bf89883b9038bfa03 | [
"MIT"
] | null | null | null | change_file_name.py | Guzhongren/picuture2thumbnail | 15d58c2e53652e5c5af9ff1bf89883b9038bfa03 | [
"MIT"
] | 1 | 2020-01-19T08:27:10.000Z | 2020-01-19T08:27:10.000Z | # -*- coding: utf-8 -*-
# Author:Guzhongren
# created: 2017-05-08
import os
path = 'C:\\geoconFailed\\willfix\\'
for file in os.listdir(path):
if os.path.isfile(os.path.join(path,file))==True:
_file= file.split(".")
_file_name=_file[0]
_file_type=_file[1]
new_file_name=_file_name[:-... | 27.8125 | 77 | 0.624719 |
e7ed80b597ccfb79e5e0d84b01e14970f4384658 | 434 | py | Python | day22/day22.py | norbert-e-horn/adventofcode-2017 | 81a6a8eb6f23f2191786d1ea8b2aad1f54d9c12a | [
"Apache-2.0"
] | null | null | null | day22/day22.py | norbert-e-horn/adventofcode-2017 | 81a6a8eb6f23f2191786d1ea8b2aad1f54d9c12a | [
"Apache-2.0"
] | null | null | null | day22/day22.py | norbert-e-horn/adventofcode-2017 | 81a6a8eb6f23f2191786d1ea8b2aad1f54d9c12a | [
"Apache-2.0"
] | null | null | null | import sys
c=[[2if a=="#"else 0for a in i]for i in sys.argv[1].split("\n")]
n=len(c)
s=1001
a=[]
k=(s-n)//2
for i in range(s):a+=[0]*k+c[i-k]+k*[0]if k<=i<(s+n)/2else[0]*s
b=list(a)
d=[0,s**2//2,0]
for i in range(10000):m(2)
print(d[2])
a=b
d=[0,s**2//2,0]
for i in range(10000000):m(1)
print(d[2])
| 20.666667 | 64 | 0.495392 |
e7edbdfed8164b295e564361932bcbdae312f33f | 10,178 | py | Python | armory/scenarios/audio_asr.py | GuillaumeLeclerc/armory | c24928701b4ff6fc37cdb994ea784f9733a8e8da | [
"MIT"
] | 1 | 2021-06-17T23:05:58.000Z | 2021-06-17T23:05:58.000Z | armory/scenarios/audio_asr.py | GuillaumeLeclerc/armory | c24928701b4ff6fc37cdb994ea784f9733a8e8da | [
"MIT"
] | null | null | null | armory/scenarios/audio_asr.py | GuillaumeLeclerc/armory | c24928701b4ff6fc37cdb994ea784f9733a8e8da | [
"MIT"
] | null | null | null | """
Automatic speech recognition scenario
"""
import logging
from typing import Optional
from tqdm import tqdm
import numpy as np
from art.preprocessing.audio import LFilter, LFilterPyTorch
from armory.utils.config_loading import (
load_dataset,
load_model,
load_attack,
load_adversarial_dataset,
... | 39.449612 | 91 | 0.599921 |
e7ee6d842483ab8133f076264eb1658607e7ec98 | 5,558 | py | Python | FMWKubernetesMAA/OracleEnterpriseDeploymentAutomation/OracleWebCenterSites/charts/wc-sites/unicast.py | rishiagarwal-oracle/fmw-kubernetes | cf53d0aac782cacaa26cb1f8f1cdb7130f69d64f | [
"UPL-1.0",
"MIT"
] | null | null | null | FMWKubernetesMAA/OracleEnterpriseDeploymentAutomation/OracleWebCenterSites/charts/wc-sites/unicast.py | rishiagarwal-oracle/fmw-kubernetes | cf53d0aac782cacaa26cb1f8f1cdb7130f69d64f | [
"UPL-1.0",
"MIT"
] | null | null | null | FMWKubernetesMAA/OracleEnterpriseDeploymentAutomation/OracleWebCenterSites/charts/wc-sites/unicast.py | rishiagarwal-oracle/fmw-kubernetes | cf53d0aac782cacaa26cb1f8f1cdb7130f69d64f | [
"UPL-1.0",
"MIT"
] | null | null | null | # Copyright (c) 2022, Oracle and/or its affiliates.
#
# Licensed under the Universal Permissive License v 1.0 as shown at
# https://oss.oracle.com/licenses/upl
import xml.dom.minidom
import re
import sys
# Method to uncomment and comment the required tag and save back
# Method to replace the properties
# Method ... | 45.933884 | 161 | 0.737496 |
e7ee8f88cffe1a482d5fa7391195738c0119a53d | 2,228 | py | Python | SQLFileGenerator/sqlqueries.py | DataMadeEasy/PySQLFileGenerator | 3efc54fa7b8741f48d00dc199675081b0fc4e04d | [
"BSD-2-Clause"
] | null | null | null | SQLFileGenerator/sqlqueries.py | DataMadeEasy/PySQLFileGenerator | 3efc54fa7b8741f48d00dc199675081b0fc4e04d | [
"BSD-2-Clause"
] | null | null | null | SQLFileGenerator/sqlqueries.py | DataMadeEasy/PySQLFileGenerator | 3efc54fa7b8741f48d00dc199675081b0fc4e04d | [
"BSD-2-Clause"
] | null | null | null | sqlqueries = {
'WeatherForecast':"select concat ('FY', to_char(f.forecasted_timestamp, 'YY')) Fiscal_yr, to_char(f.forecasted_timestamp, 'MON') Fiscal_mth, concat ('Day_', to_char(f.forecasted_timestamp, 'DD')) Fiscal_day, f.zipcode zip, min(f.temp_avg) low, max(f.temp_avg) high, max(f.wind_speed) wind, max(f.humid... | 371.333333 | 604 | 0.763465 |
e7f06cecae55d479e6604b53a295b76a9bdf0276 | 5,005 | py | Python | backend/tests/unit/protocols/application/test_lists.py | pez-globo/pufferfish-software | b42fecd652731dd80fbe366e95983503fced37a4 | [
"Apache-2.0"
] | 1 | 2020-10-20T23:47:23.000Z | 2020-10-20T23:47:23.000Z | backend/tests/unit/protocols/application/test_lists.py | pez-globo/pufferfish-software | b42fecd652731dd80fbe366e95983503fced37a4 | [
"Apache-2.0"
] | 242 | 2020-10-23T06:44:01.000Z | 2022-01-28T05:50:45.000Z | backend/tests/unit/protocols/application/test_lists.py | pez-globo/pufferfish-vent-software | f1e5e47acf1941e7c729adb750b85bf26c38b274 | [
"Apache-2.0"
] | 1 | 2021-04-12T02:10:18.000Z | 2021-04-12T02:10:18.000Z | """Test the functionality of protocols.application.states classes."""
from ventserver.protocols.application import lists
from ventserver.protocols.protobuf import mcu_pb as pb
def test_send_new_elements() -> None:
"""Test adding new elements to a list for sending."""
example_sequence = [
lists.Update... | 36.532847 | 77 | 0.675524 |
e7f2a75349f080e6ef9556951fc033879ae1e187 | 1,969 | py | Python | application/api.py | DonBlaine/OpenDoorData | 74740c6ff6dca893f0389963f2ef12de42a36829 | [
"MIT"
] | null | null | null | application/api.py | DonBlaine/OpenDoorData | 74740c6ff6dca893f0389963f2ef12de42a36829 | [
"MIT"
] | null | null | null | application/api.py | DonBlaine/OpenDoorData | 74740c6ff6dca893f0389963f2ef12de42a36829 | [
"MIT"
] | null | null | null | # file that contains db models to be exposed via a REST API
from models import room, survey, wifi_log, timetable, module # import db models
from app import app # import Flask app
from auth import auth # import Auth app to provide user authentificaiton
from flask import request # import request object to parse json req... | 39.38 | 145 | 0.739462 |
e7f30077f490cc616f7f71217c5e89c086968e6a | 1,807 | py | Python | www/purple_admin/urls.py | SubminO/vas | 3096df12e637fc614d18cb3eef43c18be0775e5c | [
"Apache-2.0"
] | null | null | null | www/purple_admin/urls.py | SubminO/vas | 3096df12e637fc614d18cb3eef43c18be0775e5c | [
"Apache-2.0"
] | null | null | null | www/purple_admin/urls.py | SubminO/vas | 3096df12e637fc614d18cb3eef43c18be0775e5c | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from purple_admin import views
urlpatterns = [
path('', views.cabinet, name='admin_panel_cabinet'),
#
path('route_list', views.cabinet_list, {'type': 'route'}, name='admin_panel_route_list'),
path('route_add', views.cabinet_add, {'type': 'route'}, name='admin_panel_rout... | 62.310345 | 120 | 0.716657 |
e7f60dd013f54bbf4fa181ff948f295cdc87e462 | 1,893 | py | Python | tests/mock_dbcli_config.py | bluelabsio/db-facts | fc8faa59f450a5cc00a0e50160ca57e47291b375 | [
"Apache-2.0"
] | 2 | 2020-11-25T20:11:50.000Z | 2020-12-12T18:39:09.000Z | tests/mock_dbcli_config.py | bluelabsio/db-facts | fc8faa59f450a5cc00a0e50160ca57e47291b375 | [
"Apache-2.0"
] | 5 | 2020-01-24T15:05:50.000Z | 2020-02-29T13:34:40.000Z | tests/mock_dbcli_config.py | bluelabsio/db-facts | fc8faa59f450a5cc00a0e50160ca57e47291b375 | [
"Apache-2.0"
] | 1 | 2021-05-16T17:07:40.000Z | 2021-05-16T17:07:40.000Z | mock_dbcli_config = {
'exports_from': {
'lpass': {
'pull_lastpass_from': "{{ lastpass_entry }}",
},
'lpass_user_and_pass_only': {
'pull_lastpass_username_password_from': "{{ lastpass_entry }}",
},
'my-json-script': {
'json_script': [
... | 28.253731 | 86 | 0.43159 |
e7f7aa1ed993e5ba94893e2ddce56e42c0e3c43a | 586 | py | Python | java/test/src/main/resources/test_cross_language_invocation.py | hershg/ray | a1744f67fe954d8408c5b84e28ecccc130157f8e | [
"Apache-2.0"
] | 2 | 2017-12-15T19:36:55.000Z | 2019-02-24T16:56:06.000Z | java/test/src/main/resources/test_cross_language_invocation.py | hershg/ray | a1744f67fe954d8408c5b84e28ecccc130157f8e | [
"Apache-2.0"
] | 4 | 2019-03-04T13:03:24.000Z | 2019-06-06T11:25:07.000Z | java/test/src/main/resources/test_cross_language_invocation.py | hershg/ray | a1744f67fe954d8408c5b84e28ecccc130157f8e | [
"Apache-2.0"
] | 2 | 2017-10-31T23:20:07.000Z | 2019-11-13T20:16:03.000Z | # This file is used by CrossLanguageInvocationTest.java to test cross-language
# invocation.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import six
import ray
| 21.703704 | 78 | 0.723549 |
e7f8e7564db7dfcbe99ed0496a94327a80f2134b | 534 | py | Python | game_stats.py | DeqianBai/Project-Alien-Invasion | 3beac9eaba6609b8cecce848269b1ffe7b7bf493 | [
"Apache-2.0"
] | 4 | 2019-02-25T13:11:30.000Z | 2019-07-23T11:42:38.000Z | game_stats.py | DeqianBai/Project-Alien-Invasion | 3beac9eaba6609b8cecce848269b1ffe7b7bf493 | [
"Apache-2.0"
] | 1 | 2019-11-22T12:50:01.000Z | 2019-11-22T12:50:01.000Z | game_stats.py | DeqianBai/Project-Alien-Invasion | 3beac9eaba6609b8cecce848269b1ffe7b7bf493 | [
"Apache-2.0"
] | 3 | 2019-06-13T03:00:50.000Z | 2020-03-04T08:46:42.000Z | #/usr/bin/env python
# -*- coding:utf-8 -*-
# author:dabai time:2019/2/24
| 19.777778 | 52 | 0.567416 |
e7f94faea0813341ebda497d2d676c1095cd32fd | 4,464 | py | Python | ros/src/tl_detector/light_classification/carla.py | xiangjiang/Capstone_1 | 68e6d044041f5759f3596d6d547bd871afb1970b | [
"MIT"
] | null | null | null | ros/src/tl_detector/light_classification/carla.py | xiangjiang/Capstone_1 | 68e6d044041f5759f3596d6d547bd871afb1970b | [
"MIT"
] | null | null | null | ros/src/tl_detector/light_classification/carla.py | xiangjiang/Capstone_1 | 68e6d044041f5759f3596d6d547bd871afb1970b | [
"MIT"
] | null | null | null | import tensorflow as tf
from os import path
import numpy as np
from scipy import misc
from styx_msgs.msg import TrafficLight
import cv2
import rospy
import tensorflow as tf
| 43.764706 | 114 | 0.533602 |
e7fca0855906e19926ef43a259b033f9d1d6ddb0 | 542 | py | Python | transform/indexed_transform.py | cviaai/unsupervised-heartbeat-anomaly-detection | 3586bf505256463c030422607e95e4cee40fa086 | [
"MIT"
] | 2 | 2020-10-14T05:50:25.000Z | 2021-05-11T03:42:02.000Z | transform/indexed_transform.py | cviaai/unsupervised-heartbeat-anomaly-detection | 3586bf505256463c030422607e95e4cee40fa086 | [
"MIT"
] | null | null | null | transform/indexed_transform.py | cviaai/unsupervised-heartbeat-anomaly-detection | 3586bf505256463c030422607e95e4cee40fa086 | [
"MIT"
] | null | null | null | from typing import Tuple, List
from transform.transformer import TimeSeriesTransformer
import numpy as np
| 30.111111 | 84 | 0.695572 |
e7fca20cce05d1364eee53a17bec476012eb661d | 2,177 | py | Python | dropconnect/combine_pred_mod.py | zygmuntz/kaggle-cifar | 16936af9cf621d668c50491291e042a7849a1ac3 | [
"BSD-2-Clause"
] | 26 | 2015-01-12T18:00:50.000Z | 2020-12-19T23:49:16.000Z | dropconnect/combine_pred_mod.py | zygmuntz/kaggle-cifar | 16936af9cf621d668c50491291e042a7849a1ac3 | [
"BSD-2-Clause"
] | null | null | null | dropconnect/combine_pred_mod.py | zygmuntz/kaggle-cifar | 16936af9cf621d668c50491291e042a7849a1ac3 | [
"BSD-2-Clause"
] | 26 | 2015-01-10T22:35:01.000Z | 2020-01-15T08:56:53.000Z | #------------------------------------------
# this script combine result of different
# nets and report final result
#------------------------------------------
import sys
import numpy as np
from util import pickle, unpickle
if __name__ == "__main__":
main()
| 30.661972 | 87 | 0.592559 |
e7fcb403c125d5647a5fdcb4339ffbade5bc81e8 | 1,556 | py | Python | goless/__init__.py | ctismer/goless | 02168a40902691264b32c7da6f453819ed7a91cf | [
"Apache-2.0"
] | 1 | 2015-05-28T03:12:47.000Z | 2015-05-28T03:12:47.000Z | goless/__init__.py | ctismer/goless | 02168a40902691264b32c7da6f453819ed7a91cf | [
"Apache-2.0"
] | null | null | null | goless/__init__.py | ctismer/goless | 02168a40902691264b32c7da6f453819ed7a91cf | [
"Apache-2.0"
] | null | null | null | """
``goless`` introduces go-like channels and select to Python,
built on top of Stackless Python (and maybe one day gevent).
Use :func:`goless.chan` to create a synchronous or buffered channel.
Use :func:`goless.select` like you would the ``Select`` function in Go's reflect package
(since Python lacks a switch/case st... | 30.509804 | 88 | 0.703728 |
e7fcf109cce1b1c57ca682a8b6f5606efb8ee46b | 643 | py | Python | data/test1.py | moses-alexander/simple-python-parser | a15f53a86d61fa5d98f5ade149d8c3a178ebfb50 | [
"BSD-3-Clause"
] | null | null | null | data/test1.py | moses-alexander/simple-python-parser | a15f53a86d61fa5d98f5ade149d8c3a178ebfb50 | [
"BSD-3-Clause"
] | null | null | null | data/test1.py | moses-alexander/simple-python-parser | a15f53a86d61fa5d98f5ade149d8c3a178ebfb50 | [
"BSD-3-Clause"
] | null | null | null | 1+2
3+5
7+8
6>7
abs(-3)
if 8 < 9: min(3,5)
else 4 < 5: abs(-2)
else 4 > 5: max(3, 7)
round(2.1)
round(3.6)
len("jfdgge")
type(4)
any(1, 3, 4)
any(0.0, 0.0, 0.0)
all("abc", "a")
all(0, 1)
bin(45)
lower("ABC")
upper("abc")
join("abc", "abc")
bool(0)
bool("abc")
ord('r')
chr(100)
str(130)
globals()
help()
hex(15)
oct(27)
... | 14.613636 | 196 | 0.62986 |
e7fd1190b6509c18afc6e8dc44570e03220fb1f1 | 235 | py | Python | python/funciones2.py | Tai-Son/Python-Chile | fd3aa28304caa806ee334686adbb029e81514912 | [
"MIT"
] | null | null | null | python/funciones2.py | Tai-Son/Python-Chile | fd3aa28304caa806ee334686adbb029e81514912 | [
"MIT"
] | null | null | null | python/funciones2.py | Tai-Son/Python-Chile | fd3aa28304caa806ee334686adbb029e81514912 | [
"MIT"
] | null | null | null | # Practica de funciones
#! /usr/bin/python
# -*- coding: iso-8859-15
# Programa que usa la funcion f
n = int(input("Ingrese nmero: "))
for i in range(n):
y = f(i)
print (i,y)
| 13.823529 | 34 | 0.557447 |
e7fdb3f99099bfa047bbe790a686f91e9a3ed33c | 1,070 | py | Python | setup.py | br-g/pyroaman | 86d9a4771e4e0657c96e1c45dacbbde579e527d9 | [
"MIT"
] | 2 | 2021-06-16T01:54:36.000Z | 2021-11-08T13:00:39.000Z | setup.py | br-g/pyroaman | 86d9a4771e4e0657c96e1c45dacbbde579e527d9 | [
"MIT"
] | null | null | null | setup.py | br-g/pyroaman | 86d9a4771e4e0657c96e1c45dacbbde579e527d9 | [
"MIT"
] | 1 | 2021-04-24T17:02:26.000Z | 2021-04-24T17:02:26.000Z | from distutils.core import setup
from setuptools import find_packages
with open('README.md', 'r') as fh:
long_description = fh.read()
setup(
name='pyroaman',
version='0.1.1',
license='MIT',
description='Roam Research with Python',
author = 'Bruno Godefroy',
author_email='brgo@mail.com',
... | 29.722222 | 76 | 0.627103 |
e7ff7ca7cdc4e23499b3182976ee2bee8f1569cf | 974 | py | Python | pgel_sat.py | AndrewIjano/pgel-sat | 25b6ef5922a9fa79bbcf9896cf9a5eefd9925e45 | [
"MIT"
] | null | null | null | pgel_sat.py | AndrewIjano/pgel-sat | 25b6ef5922a9fa79bbcf9896cf9a5eefd9925e45 | [
"MIT"
] | null | null | null | pgel_sat.py | AndrewIjano/pgel-sat | 25b6ef5922a9fa79bbcf9896cf9a5eefd9925e45 | [
"MIT"
] | null | null | null | import sys
from pgel_sat import ProbabilisticKnowledgeBase, solve
import argparse
if __name__ == '__main__':
main()
| 23.190476 | 79 | 0.637577 |
e7ffb07502a866daacad535d6c162c3df47ed0fa | 1,075 | py | Python | 001-050/029-divide-two-integers.py | bbram10/leetcode-master | 565f5f0cb3c9720e59a78ddf2e5e6e829c70bac6 | [
"MIT"
] | 134 | 2017-01-16T11:17:44.000Z | 2022-03-16T17:13:26.000Z | 001-050/029-divide-two-integers.py | bbram10/leetcode-master | 565f5f0cb3c9720e59a78ddf2e5e6e829c70bac6 | [
"MIT"
] | 1 | 2019-11-18T02:10:51.000Z | 2019-11-18T02:10:51.000Z | 001-050/029-divide-two-integers.py | bbram10/leetcode-master | 565f5f0cb3c9720e59a78ddf2e5e6e829c70bac6 | [
"MIT"
] | 54 | 2017-07-17T01:24:00.000Z | 2022-02-06T05:28:44.000Z | """
STATEMENT
Divide two integers without using multiplication, division and mod operator.
CLARIFICATIONS
- Do I have to handle 32-bit integer overflow? Yes, return the MAX_INT in that case.
- Can the divisor be zero? Yes, return the MAX_INT.
EXAMPLES
34/3 -> 11
COMMENTS
- This solution is by tusizi in Leetcode (pic... | 27.564103 | 115 | 0.613953 |
f000c275681d6eb860ca8edd89619bd04e3efa9d | 508 | py | Python | conv/setup.py | hughpyle/GW-BASIC | f0c1ef3c9655b36cd312d18e4620bb076f03afd3 | [
"MIT"
] | 26 | 2020-05-23T18:09:05.000Z | 2022-01-30T10:07:04.000Z | conv/setup.py | hughpyle/GW-BASIC | f0c1ef3c9655b36cd312d18e4620bb076f03afd3 | [
"MIT"
] | 1 | 2020-06-25T06:20:01.000Z | 2020-06-25T06:20:01.000Z | conv/setup.py | hughpyle/GW-BASIC | f0c1ef3c9655b36cd312d18e4620bb076f03afd3 | [
"MIT"
] | 4 | 2020-05-23T12:36:44.000Z | 2022-01-16T00:20:20.000Z | from setuptools import setup, find_packages
"""
https://tia.mat.br/posts/2020/06/21/converting-gwbasic-to-z80.html
"""
setup(
name="z80conv",
version='0.0.1',
author="lp",
description="Porting GW-BASIC from 8086 back to the Z80",
license="GPLv2",
packages=find_packages(),
long_description=... | 24.190476 | 66 | 0.661417 |
f000f73c7ff791dd3f202fae2e9cd2cdf7773f23 | 8,046 | py | Python | hera_cc_utils/catalog.py | pagano-michael/hera_cc_utils | 2d61f8ab0bb4d75b9a2e5891450256195851db08 | [
"MIT"
] | null | null | null | hera_cc_utils/catalog.py | pagano-michael/hera_cc_utils | 2d61f8ab0bb4d75b9a2e5891450256195851db08 | [
"MIT"
] | 6 | 2021-09-08T21:28:12.000Z | 2021-09-15T18:18:33.000Z | hera_cc_utils/catalog.py | pagano-michael/hera_cc_utils | 2d61f8ab0bb4d75b9a2e5891450256195851db08 | [
"MIT"
] | 1 | 2021-12-01T15:29:55.000Z | 2021-12-01T15:29:55.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2021 The HERA Collaboration
# Licensed under the MIT License
"""Utilities for dealing with galaxy/QSO catalogs."""
import numpy as np
import matplotlib.pyplot as plt
from astropy.coordinates import SkyCoord
from .util import deg_per_hr
_xshooter_ref = "https://ui.adsabs.harva... | 28.83871 | 88 | 0.527716 |
f002326f1a28c7e060443caad098a4b8ad312c0c | 216 | py | Python | src/myutils/__init__.py | yyHaker/TextClassification | dc3c5ffe0731609c8f0c7a18a4daa5f149f83e9f | [
"MIT"
] | 3 | 2019-06-08T14:11:56.000Z | 2020-05-26T15:08:23.000Z | src/myutils/__init__.py | yyHaker/TextClassification | dc3c5ffe0731609c8f0c7a18a4daa5f149f83e9f | [
"MIT"
] | null | null | null | src/myutils/__init__.py | yyHaker/TextClassification | dc3c5ffe0731609c8f0c7a18a4daa5f149f83e9f | [
"MIT"
] | null | null | null | #!/usr/bin/python
# coding:utf-8
"""
@author: yyhaker
@contact: 572176750@qq.com
@file: __init__.py
@time: 2019/3/9 15:41
"""
from .util import *
from .functions import *
from .nn import *
from .attention import *
| 14.4 | 26 | 0.685185 |
f0023ff5d4658332709a6d9a26c8392cbad88994 | 1,236 | py | Python | configs/config.py | AcordUch/open-heartmagic | aa76b098cc19b2ac6d1bc149461c421fcbbd3301 | [
"MIT"
] | null | null | null | configs/config.py | AcordUch/open-heartmagic | aa76b098cc19b2ac6d1bc149461c421fcbbd3301 | [
"MIT"
] | null | null | null | configs/config.py | AcordUch/open-heartmagic | aa76b098cc19b2ac6d1bc149461c421fcbbd3301 | [
"MIT"
] | null | null | null | from configparser import ConfigParser
from os import path
_config: ConfigParser = ConfigParser()
_path: str = path.join(path.dirname(__file__), "config.ini")
if not path.exists(_path):
create_config()
print(" configs.ini , api ")
exit()
_config.read(_path)
API_ID = _config['Telegram']['api_id']
API... | 32.526316 | 71 | 0.673139 |
f0057eec2984c2e77cf59e2e17b878ea511d289d | 609 | py | Python | Python/squirrel-simulation.py | xiaohalo/LeetCode | 68211ba081934b21bb1968046b7e3c1459b3da2d | [
"MIT"
] | 9 | 2019-06-30T07:15:18.000Z | 2022-02-10T20:13:40.000Z | Python/squirrel-simulation.py | pnandini/LeetCode | e746c3298be96dec8e160da9378940568ef631b1 | [
"MIT"
] | 1 | 2018-07-10T03:28:43.000Z | 2018-07-10T03:28:43.000Z | Python/squirrel-simulation.py | pnandini/LeetCode | e746c3298be96dec8e160da9378940568ef631b1 | [
"MIT"
] | 9 | 2019-01-16T22:16:49.000Z | 2022-02-06T17:33:41.000Z | # Time: O(n)
# Space: O(1)
| 26.478261 | 69 | 0.489327 |
f0068035c6bebf4ad8dfcbde5996ed5461d03f51 | 345 | py | Python | scripts/utils/merge.py | GabrielTavernini/TelegramMap | 96879d037a3e65b555a8f13f4f468645a02cf1f2 | [
"MIT"
] | 3 | 2021-02-19T21:43:49.000Z | 2022-03-30T07:50:06.000Z | scripts/utils/merge.py | GabrielTavernini/TelegramMap | 96879d037a3e65b555a8f13f4f468645a02cf1f2 | [
"MIT"
] | null | null | null | scripts/utils/merge.py | GabrielTavernini/TelegramMap | 96879d037a3e65b555a8f13f4f468645a02cf1f2 | [
"MIT"
] | 2 | 2021-02-20T16:50:48.000Z | 2022-01-25T15:15:07.000Z | import pandas as pd
import sys
from dotenv import load_dotenv
load_dotenv()
src = pd.read_csv(sys.argv[1])
dst = pd.read_csv(os.getenv('FILE_PATH'))
fdf = pd.concat([dst, src])
fdf = fdf[~((fdf['user'].duplicated(keep='first')) & (fdf['user']!='Point'))]
fdf = fdf[~fdf.duplicated(keep='first')]
fdf.to_csv(os.getenv('... | 28.75 | 77 | 0.692754 |
f00829ce69ca21d2a75d867579f5065b5c43824d | 395 | py | Python | lib/locator/location_test.py | alt-locator/address-locator-python | 9f052dc7721223bde926723648790a17b06e9d7a | [
"MIT"
] | null | null | null | lib/locator/location_test.py | alt-locator/address-locator-python | 9f052dc7721223bde926723648790a17b06e9d7a | [
"MIT"
] | null | null | null | lib/locator/location_test.py | alt-locator/address-locator-python | 9f052dc7721223bde926723648790a17b06e9d7a | [
"MIT"
] | null | null | null | import location
import unittest
| 30.384615 | 78 | 0.698734 |
f0089faf3980c65d96a9b87de2dfb4cc044e17a8 | 41,489 | py | Python | ProjectiveClusteringCoreset.py | muradtuk/ProjectiveClusteringCoresets | 2dcb59723934dc545da9ff84a1f71eb5e02b49d1 | [
"MIT"
] | null | null | null | ProjectiveClusteringCoreset.py | muradtuk/ProjectiveClusteringCoresets | 2dcb59723934dc545da9ff84a1f71eb5e02b49d1 | [
"MIT"
] | null | null | null | ProjectiveClusteringCoreset.py | muradtuk/ProjectiveClusteringCoresets | 2dcb59723934dc545da9ff84a1f71eb5e02b49d1 | [
"MIT"
] | null | null | null | """*****************************************************************************************
MIT License
Copyright (c) 2022 Murad Tukan, Xuan Wu, Samson Zhou, Vladimir Braverman, Dan Feldman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation fi... | 49.157583 | 139 | 0.576803 |
f00939c44715cbb46e21a3b0bd4e2b066d1b7f29 | 2,549 | py | Python | extras/pyrepl/console.py | dillionhacker/python222 | 205414c33fba8166167fd8a6a03eda1a68f16316 | [
"Apache-2.0"
] | 1 | 2019-05-27T00:58:46.000Z | 2019-05-27T00:58:46.000Z | extras/pyrepl/console.py | tuankien2601/python222 | 205414c33fba8166167fd8a6a03eda1a68f16316 | [
"Apache-2.0"
] | null | null | null | extras/pyrepl/console.py | tuankien2601/python222 | 205414c33fba8166167fd8a6a03eda1a68f16316 | [
"Apache-2.0"
] | null | null | null | # Copyright 2000-2004 Michael Hudson mwh@python.net
#
# All Rights Reserved
#
#
# Permission to use, copy, modify, and distribute this software and
# its documentation for any purpose is hereby granted without fee,
# provided that the above copyright notice appear in all copies and
# that both ... | 27.117021 | 71 | 0.634759 |
f009b3d518e1b8520f28ad27fc966139292e346f | 15,818 | py | Python | robotpy_build/hooks_datacfg.py | ConnectionMaster/robotpy-build | 9571a84fdd6268be5e945b31ea8929d84355071a | [
"BSD-3-Clause"
] | null | null | null | robotpy_build/hooks_datacfg.py | ConnectionMaster/robotpy-build | 9571a84fdd6268be5e945b31ea8929d84355071a | [
"BSD-3-Clause"
] | null | null | null | robotpy_build/hooks_datacfg.py | ConnectionMaster/robotpy-build | 9571a84fdd6268be5e945b31ea8929d84355071a | [
"BSD-3-Clause"
] | null | null | null | #
# Defines data that is consumed by the header2whatever hooks/templates
# to modify the generated files
#
import enum
from typing import Dict, List, Tuple, Optional
from pydantic import validator
from .util import Model, _generating_documentation
if not _generating_documentation:
FunctionData.update_forwa... | 29.845283 | 123 | 0.637249 |
f009d6a3b56d42edfcb8bf537787593ecb613a4c | 27,482 | py | Python | src/auspex/qubit/qubit_exp.py | minhhaiphys/Auspex | 3b9480120f0cdaf8a1e890a59e0e45e0fab5f1dd | [
"Apache-2.0"
] | null | null | null | src/auspex/qubit/qubit_exp.py | minhhaiphys/Auspex | 3b9480120f0cdaf8a1e890a59e0e45e0fab5f1dd | [
"Apache-2.0"
] | null | null | null | src/auspex/qubit/qubit_exp.py | minhhaiphys/Auspex | 3b9480120f0cdaf8a1e890a59e0e45e0fab5f1dd | [
"Apache-2.0"
] | null | null | null | from auspex.log import logger
from auspex.experiment import Experiment, FloatParameter
from auspex.stream import DataStream, DataAxis, SweepAxis, DataStreamDescriptor, InputConnector, OutputConnector
import auspex.instruments
import auspex.filters
import bbndb
import numpy as np
import sys
import os
if sys.platform ==... | 47.138937 | 282 | 0.640965 |
f00b1f413db4083c2b4c12dfb8af15b799f387ae | 2,288 | py | Python | mtconnect/mtconnect_ros_bridge/scripts/closedoor.py | mtconnect/ros_bridge | b578e8c3edca83ea0de8ed15aff0f7733dd23e04 | [
"Apache-2.0"
] | 5 | 2015-04-30T21:51:46.000Z | 2019-03-18T06:24:38.000Z | mtconnect/mtconnect_ros_bridge/scripts/closedoor.py | CubeSpawn/ros_bridge | b578e8c3edca83ea0de8ed15aff0f7733dd23e04 | [
"Apache-2.0"
] | null | null | null | mtconnect/mtconnect_ros_bridge/scripts/closedoor.py | CubeSpawn/ros_bridge | b578e8c3edca83ea0de8ed15aff0f7733dd23e04 | [
"Apache-2.0"
] | 4 | 2016-02-21T20:04:31.000Z | 2021-01-04T13:48:41.000Z | #! /usr/bin/env python
"""
Copyright 2013 Southwest Research Institute
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 req... | 34.666667 | 96 | 0.723776 |
f00bfebe8f465035bb8191daaed17fe817eb4bdf | 4,112 | py | Python | cte/__main__.py | iqbal-lab-org/covid-truth-eval | a11125538699f21a5483f15bd5aac952340d3797 | [
"MIT"
] | 1 | 2022-01-21T11:54:21.000Z | 2022-01-21T11:54:21.000Z | cte/__main__.py | iqbal-lab-org/covid-truth-eval | a11125538699f21a5483f15bd5aac952340d3797 | [
"MIT"
] | null | null | null | cte/__main__.py | iqbal-lab-org/covid-truth-eval | a11125538699f21a5483f15bd5aac952340d3797 | [
"MIT"
] | 1 | 2022-03-21T09:48:32.000Z | 2022-03-21T09:48:32.000Z | #!/usr/bin/env python3
import argparse
import logging
import sys
import cte
if __name__ == "__main__":
main()
| 34.266667 | 225 | 0.614543 |
f00d8a2ff37a2b007fa4edfda74f6d8657793532 | 3,684 | py | Python | piton/lib/inquirer/questions.py | piton-package-manager/PPM | 19015b76184befe1e2daa63189a13b039787868d | [
"MIT"
] | 19 | 2016-04-08T04:00:07.000Z | 2021-11-12T19:36:56.000Z | piton/lib/inquirer/questions.py | LookLikeAPro/PPM | 19015b76184befe1e2daa63189a13b039787868d | [
"MIT"
] | 9 | 2017-01-03T13:39:47.000Z | 2022-01-15T20:38:20.000Z | piton/lib/inquirer/questions.py | LookLikeAPro/PPM | 19015b76184befe1e2daa63189a13b039787868d | [
"MIT"
] | 6 | 2017-04-01T03:38:45.000Z | 2021-05-06T11:25:31.000Z | # -*- coding: utf-8 -*-
"""
Module that implements the questions types
"""
import json
from . import errors
def load_from_dict(question_dict):
"""
Load one question from a dict.
It requires the keys 'name' and 'kind'.
:return: The Question object with associated data.
:return type: Question
... | 24.236842 | 72 | 0.604777 |
f00ff90a15569e736314d9e7505d121e6996f894 | 4,216 | py | Python | json_replacer.py | MrMusicMan/json-item-replacer | 04362b5e5ecf3cf9dd12ef3e72a7a1474a5239fa | [
"Apache-2.0"
] | null | null | null | json_replacer.py | MrMusicMan/json-item-replacer | 04362b5e5ecf3cf9dd12ef3e72a7a1474a5239fa | [
"Apache-2.0"
] | null | null | null | json_replacer.py | MrMusicMan/json-item-replacer | 04362b5e5ecf3cf9dd12ef3e72a7a1474a5239fa | [
"Apache-2.0"
] | null | null | null | import os
import json
import string
from tkinter import filedialog, simpledialog
from tkinter import *
if __name__ == '__main__':
root = Tk()
root.csv_filename = filedialog.askopenfilename(
title="Select CSV file with translations",
filetypes=(("CSV Files", "*.csv"),)
)
root.jso... | 34.842975 | 89 | 0.57851 |
f01114fcd31b24a944a91cf16636601c7b3cffa8 | 6,134 | py | Python | src/func.py | yygr/datascience_utility | aa6aa37508e46ab3568805dd1bb514ef10652240 | [
"MIT"
] | null | null | null | src/func.py | yygr/datascience_utility | aa6aa37508e46ab3568805dd1bb514ef10652240 | [
"MIT"
] | null | null | null | src/func.py | yygr/datascience_utility | aa6aa37508e46ab3568805dd1bb514ef10652240 | [
"MIT"
] | null | null | null | from pdb import set_trace
from time import time
import matplotlib.pyplot as plt
import numpy as np
from numpy import random
from scipy.stats import chi2
import renom as rm
| 31.137056 | 80 | 0.5 |
f0113aeb5d7960eefb66a0247171970b6a1b3515 | 2,245 | py | Python | portality/cms/implied_attr_list.py | gaybro8777/doaj | 27d9d98ce4f496ae52acbaba6ee8e42c84cf1a58 | [
"Apache-2.0"
] | 47 | 2015-04-24T13:13:39.000Z | 2022-03-06T03:22:42.000Z | portality/cms/implied_attr_list.py | gaybro8777/doaj | 27d9d98ce4f496ae52acbaba6ee8e42c84cf1a58 | [
"Apache-2.0"
] | 1,215 | 2015-01-02T14:29:38.000Z | 2022-03-28T14:19:13.000Z | portality/cms/implied_attr_list.py | gaybro8777/doaj | 27d9d98ce4f496ae52acbaba6ee8e42c84cf1a58 | [
"Apache-2.0"
] | 14 | 2015-11-27T13:01:23.000Z | 2021-05-21T07:57:23.000Z | import markdown
import re
from markdown.extensions import attr_list
| 34.538462 | 117 | 0.629399 |
f0123837d9cb8c6159b0ec92e3dc57d8e6054cf3 | 704 | py | Python | services/web/apps/main/pool/views.py | xUndero/noc | 9fb34627721149fcf7064860bd63887e38849131 | [
"BSD-3-Clause"
] | 1 | 2019-09-20T09:36:48.000Z | 2019-09-20T09:36:48.000Z | services/web/apps/main/pool/views.py | ewwwcha/noc | aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb | [
"BSD-3-Clause"
] | null | null | null | services/web/apps/main/pool/views.py | ewwwcha/noc | aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# ---------------------------------------------------------------------
# main.pool application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------... | 28.16 | 71 | 0.473011 |
f012b80503a597191471f367c16412e1f714452d | 2,396 | py | Python | new_corpus/_sympy.py | y-akinobu/multiese | e28e6424b9714c5f145f438c8502c4194b70fe25 | [
"MIT"
] | null | null | null | new_corpus/_sympy.py | y-akinobu/multiese | e28e6424b9714c5f145f438c8502c4194b70fe25 | [
"MIT"
] | null | null | null | new_corpus/_sympy.py | y-akinobu/multiese | e28e6424b9714c5f145f438c8502c4194b70fe25 | [
"MIT"
] | null | null | null | import sympy
'''
@test($$;type(sympy))
@alt(||)
@alt(|)
[||][|]
'''
s = 'z'
sympy.symbol(s)
'''
@test(sympy=missing;$$)
s
'''
z = sympy.symbol(s)
'''
@test(sympy=missing;$$;z)
@prefix(z;[|])
s[|][|]z
'''
e = e2 = sympy.symbol(s)
n = 2
e.subs(z, n)
'''
@test(e=missing;e2='e2';z='x';$$)
@prefix(e;)
ezn
'''
e.subs(z, ... | 14.261905 | 55 | 0.604758 |
f013b73782802e7be9ad94ff6ab1e1a0a57d6410 | 1,224 | py | Python | saleor/app/tests/test_models.py | fairhopeweb/saleor | 9ac6c22652d46ba65a5b894da5f1ba5bec48c019 | [
"CC-BY-4.0"
] | 15,337 | 2015-01-12T02:11:52.000Z | 2021-10-05T19:19:29.000Z | saleor/app/tests/test_models.py | fairhopeweb/saleor | 9ac6c22652d46ba65a5b894da5f1ba5bec48c019 | [
"CC-BY-4.0"
] | 7,486 | 2015-02-11T10:52:13.000Z | 2021-10-06T09:37:15.000Z | saleor/app/tests/test_models.py | aminziadna/saleor | 2e78fb5bcf8b83a6278af02551a104cfa555a1fb | [
"CC-BY-4.0"
] | 5,864 | 2015-01-16T14:52:54.000Z | 2021-10-05T23:01:15.000Z | from ...app.models import App
from ...webhook.event_types import WebhookEventType
| 32.210526 | 88 | 0.768791 |
f01546244daef76f91454218d243e57cff9b2fef | 113 | py | Python | feast/DetectionModules/__init__.py | ChandlerKemp/FEAST_PtE | 9551824932379149dd6bc9135cfac6edf60c40c8 | [
"MIT"
] | 3 | 2020-04-21T18:59:01.000Z | 2021-01-14T22:56:17.000Z | feast/DetectionModules/__init__.py | ChandlerKemp/FEAST_PtE | 9551824932379149dd6bc9135cfac6edf60c40c8 | [
"MIT"
] | null | null | null | feast/DetectionModules/__init__.py | ChandlerKemp/FEAST_PtE | 9551824932379149dd6bc9135cfac6edf60c40c8 | [
"MIT"
] | null | null | null | from . import null
from . import abstract_detection_method
from . import tech_detect
from . import tiered_detect
| 22.6 | 39 | 0.823009 |
f015bf5e2e71b04cd941a3ba7f14c687b44c2b00 | 263 | py | Python | apps/transactions/__init__.py | lsdlab/djshop_toturial | 6d450225cc05e6a1ecd161de2b522e1af0b68cc0 | [
"MIT"
] | null | null | null | apps/transactions/__init__.py | lsdlab/djshop_toturial | 6d450225cc05e6a1ecd161de2b522e1af0b68cc0 | [
"MIT"
] | 6 | 2020-06-07T15:18:58.000Z | 2021-09-22T19:07:33.000Z | apps/transactions/__init__.py | lsdlab/djshop_toturial | 6d450225cc05e6a1ecd161de2b522e1af0b68cc0 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
default_app_config = 'apps.transactions.TransactionsConfig'
| 20.230769 | 59 | 0.752852 |
f01636a07a87cf93e98d3a0d5e5e79dd6e4913ce | 1,260 | py | Python | 8/code.py | DeclanOGorman/AdventofCode2021 | 71a25327d5ab1f88124d09ec8ef853610cbff8ef | [
"MIT"
] | null | null | null | 8/code.py | DeclanOGorman/AdventofCode2021 | 71a25327d5ab1f88124d09ec8ef853610cbff8ef | [
"MIT"
] | null | null | null | 8/code.py | DeclanOGorman/AdventofCode2021 | 71a25327d5ab1f88124d09ec8ef853610cbff8ef | [
"MIT"
] | null | null | null | with open('./8/input_a.txt', 'r') as f:
input = [[a.strip().split(' | ')[0].split(' '), a.strip().split(' | ')[1].split(' ')] for a in f]
num = sum([sum([1 if len(a) in {2,3,4,7} else 0 for a in o[1]]) for o in input ])
print(f'Part A: Number of 1,4,7 or 8s in output - {num}')
print(f'Part B: total output sum val... | 57.272727 | 118 | 0.52381 |
f0172d0fc69d85a2da2f03f4a401ed701e820bb2 | 6,144 | py | Python | pythonium/orders/galaxy.py | cacrespo/pythonium | 74cc5d4333212adfb6eedade8fcd8dfe86d221d5 | [
"MIT"
] | null | null | null | pythonium/orders/galaxy.py | cacrespo/pythonium | 74cc5d4333212adfb6eedade8fcd8dfe86d221d5 | [
"MIT"
] | null | null | null | pythonium/orders/galaxy.py | cacrespo/pythonium | 74cc5d4333212adfb6eedade8fcd8dfe86d221d5 | [
"MIT"
] | null | null | null | import logging
from itertools import groupby
import attr
import numpy as np
from ..explosion import Explosion
from .core import GalaxyOrder
logger = logging.getLogger("game")
| 30.415842 | 80 | 0.495605 |
f0178f93e06a5ab22b51ea951cf67bdba0d3c339 | 59 | py | Python | pdip/processing/factories/__init__.py | ahmetcagriakca/pdip | c4c16d5666a740154cabdc6762cd44d98b7bdde8 | [
"MIT"
] | 2 | 2021-12-09T21:07:46.000Z | 2021-12-11T22:18:01.000Z | pdip/processing/factories/__init__.py | PythonDataIntegrator/pdip | c4c16d5666a740154cabdc6762cd44d98b7bdde8 | [
"MIT"
] | null | null | null | pdip/processing/factories/__init__.py | PythonDataIntegrator/pdip | c4c16d5666a740154cabdc6762cd44d98b7bdde8 | [
"MIT"
] | 3 | 2021-11-15T00:47:00.000Z | 2021-12-17T11:35:45.000Z | from .process_manager_factory import ProcessManagerFactory
| 29.5 | 58 | 0.915254 |
f01853fdef99763aa76db241019fe3f05895618d | 4,221 | py | Python | assets/src/ba_data/python/ba/_analytics.py | SahandAslani/ballistica | 7e3814cd2a1920ea8f5820cb1cdbb4dc5420d30e | [
"MIT"
] | 2 | 2020-07-02T22:18:58.000Z | 2020-07-02T22:19:49.000Z | assets/src/ba_data/python/ba/_analytics.py | MalTarDesigns/ballistica | c38ae5c39b3cc7985be166a959245ca060d3bf31 | [
"MIT"
] | null | null | null | assets/src/ba_data/python/ba/_analytics.py | MalTarDesigns/ballistica | c38ae5c39b3cc7985be166a959245ca060d3bf31 | [
"MIT"
] | null | null | null | # Copyright (c) 2011-2020 Eric Froemling
#
# 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, merge, publish,... | 45.880435 | 79 | 0.664298 |
f01944d27e76d31f7d24bb6d6aee8d5e5c5f6995 | 10,940 | py | Python | todo_app/display.py | WeaverDyl/python-todo | 80c533b79c6170ba9ba4923ba78f4900fece8339 | [
"MIT"
] | 3 | 2020-01-16T09:39:11.000Z | 2021-11-15T08:38:52.000Z | todo_app/display.py | WeaverDyl/python-todo | 80c533b79c6170ba9ba4923ba78f4900fece8339 | [
"MIT"
] | null | null | null | todo_app/display.py | WeaverDyl/python-todo | 80c533b79c6170ba9ba4923ba78f4900fece8339 | [
"MIT"
] | null | null | null | import os
import math
import shutil
import textwrap
from datetime import datetime
from terminaltables import AsciiTable
def print_task_list_formatted(self, rows):
""" Prints each formatted task to the terminal in the form
of a table """
header = [self.color_message(i, 'BOLD') for i in [... | 39.927007 | 135 | 0.599543 |
f019487c4d2bfcb30f0598d1b5c51468e7c7807d | 797 | py | Python | linked_list/adding_nodes_value/test.py | Shawn-Ng/algorithms-test | 1ca740d288b9b3fee580f1ac557a1c1b17ea33b1 | [
"BSD-2-Clause"
] | null | null | null | linked_list/adding_nodes_value/test.py | Shawn-Ng/algorithms-test | 1ca740d288b9b3fee580f1ac557a1c1b17ea33b1 | [
"BSD-2-Clause"
] | 1 | 2018-01-12T18:56:58.000Z | 2018-01-13T01:14:51.000Z | linked_list/adding_nodes_value/test.py | Shawn-Ng/algorithms | 1ca740d288b9b3fee580f1ac557a1c1b17ea33b1 | [
"BSD-2-Clause"
] | null | null | null |
list1 = Node(5)
list1.next = Node(6)
list1.next.next = Node(3)
list2 = Node(8)
list2.next = Node(4)
list2.next.next = Node(2)
sumLinkedListNodes(list1, list2)
| 18.97619 | 46 | 0.599749 |
f0199c2ddd6cf1a82c3279d8fee04fa2d5d2f015 | 3,674 | py | Python | env2048.py | qhduan/rl-2048 | 9730d366625ac7ffdd8875586ffbb8615468f110 | [
"MIT"
] | 3 | 2022-02-10T02:19:58.000Z | 2022-03-06T14:39:20.000Z | env2048.py | qhduan/rl-2048 | 9730d366625ac7ffdd8875586ffbb8615468f110 | [
"MIT"
] | null | null | null | env2048.py | qhduan/rl-2048 | 9730d366625ac7ffdd8875586ffbb8615468f110 | [
"MIT"
] | null | null | null | import logic
import numpy as np
import gym
ACTION_MAP = {
0: 'up',
1: 'down',
2: 'left',
3: 'right'
}
if __name__ == '__main__':
main()
| 29.15873 | 107 | 0.531301 |
f019f56e66a32402b7c9862f91bbe2284661cc13 | 1,697 | py | Python | users/views.py | Paulwamaria/instagram | 546c5472bbebd868e647fd600519a91ccfc47054 | [
"MIT"
] | null | null | null | users/views.py | Paulwamaria/instagram | 546c5472bbebd868e647fd600519a91ccfc47054 | [
"MIT"
] | 4 | 2020-06-05T23:46:45.000Z | 2021-06-10T19:06:27.000Z | users/views.py | Paulwamaria/instagram | 546c5472bbebd868e647fd600519a91ccfc47054 | [
"MIT"
] | null | null | null | from django.shortcuts import render,redirect
from django.contrib.auth.decorators import login_required
from .forms import InstaRegistrationForm, UserUpdateForm, ProfileUpdateForm
from django.views.generic import DetailView
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib import messages
fro... | 33.27451 | 94 | 0.675899 |
f01a75f5202b2a67529c1984f10926191041214e | 9,865 | py | Python | 1D_CNN.py | alex386/EEGPatternRecognition | d84085880baa9172a7cfd73b2737b93472394f3e | [
"MIT"
] | null | null | null | 1D_CNN.py | alex386/EEGPatternRecognition | d84085880baa9172a7cfd73b2737b93472394f3e | [
"MIT"
] | null | null | null | 1D_CNN.py | alex386/EEGPatternRecognition | d84085880baa9172a7cfd73b2737b93472394f3e | [
"MIT"
] | 1 | 2019-02-25T18:24:37.000Z | 2019-02-25T18:24:37.000Z | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 13 12:55:47 2018
@name: CSVMachLearn.py
@description: 1D CNN using CSV vector for machine learning
@author: Aleksander Dawid
"""
from __future__ import absolute_import, division, print_function
import matplotlib.pyplot as plt
from matplotlib.lines import Line2... | 32.557756 | 166 | 0.604055 |
f01db4ce612793fa6669b67b17c501ac73c893ec | 6,037 | py | Python | eslearn/machine_learning/classfication/el_classify_sensitive_person_test.py | dongmengshi/easylearn | df528aaa69c3cf61f5459a04671642eb49421dfb | [
"MIT"
] | null | null | null | eslearn/machine_learning/classfication/el_classify_sensitive_person_test.py | dongmengshi/easylearn | df528aaa69c3cf61f5459a04671642eb49421dfb | [
"MIT"
] | null | null | null | eslearn/machine_learning/classfication/el_classify_sensitive_person_test.py | dongmengshi/easylearn | df528aaa69c3cf61f5459a04671642eb49421dfb | [
"MIT"
] | 1 | 2021-01-11T08:21:35.000Z | 2021-01-11T08:21:35.000Z | # -*- coding: utf-8 -*-
"""
Created on 2020/03/16
Feature selection: Relief-based feature selection algorithm.
------
@author: LI Chao
"""
import numpy as np
from sklearn import preprocessing
import os
from sklearn.externals import joblib
from el_classify_sensitive_person_train_validation import ClassifyFourKindOfPer... | 41.349315 | 164 | 0.630777 |
f01e36c7e52b2f29e3153f9812f722135e5763dd | 2,483 | py | Python | Curso em Video/D_045.py | tonmarcondes/UNIVESP | a66a623d4811e8f3f9e2999f09e38a4470035ae2 | [
"MIT"
] | null | null | null | Curso em Video/D_045.py | tonmarcondes/UNIVESP | a66a623d4811e8f3f9e2999f09e38a4470035ae2 | [
"MIT"
] | null | null | null | Curso em Video/D_045.py | tonmarcondes/UNIVESP | a66a623d4811e8f3f9e2999f09e38a4470035ae2 | [
"MIT"
] | null | null | null | import random
cor = {
'fim':'\033[m',
'amarelo':'\033[1;033m',
'vermelho':'\033[1;031m',
'vermelhof':'\033[7;031m',
'azul':'\033[1;034m',
'verde':'\033[1;32m',
'verdef':'\033[7;32m',
'branco':'\033[1;030m'
}
print('''
Escolha uma das opes abaixo:
\t {}1{} {}P... | 42.084746 | 114 | 0.515103 |
f01e8e597dc20bba7caf3b9b0fddc57695c216de | 5,316 | py | Python | train.py | ThiruRJST/Deformed-Yolo | c9eb4e8c090dff0e9fc4f8652897ff2c59dce889 | [
"MIT"
] | 1 | 2021-09-10T17:20:09.000Z | 2021-09-10T17:20:09.000Z | train.py | ThiruRJST/Deformed-Yolo | c9eb4e8c090dff0e9fc4f8652897ff2c59dce889 | [
"MIT"
] | 1 | 2021-09-10T17:19:54.000Z | 2021-09-11T08:17:14.000Z | wandb/run-20210904_163431-3lkn6hoe/files/code/train.py | ThiruRJST/Deformed-Yolo | c9eb4e8c090dff0e9fc4f8652897ff2c59dce889 | [
"MIT"
] | null | null | null | from pandas.core.algorithms import mode
import torch
import torch.nn as nn
from albumentations import Compose,Resize,Normalize
from albumentations.pytorch import ToTensorV2
import wandb
import time
import torchvision
import torch.nn.functional as F
import torch.optim as optim
from torch.cuda.amp import autocast,GradSc... | 29.04918 | 133 | 0.659518 |
f01e97fde7da87878e9d54736f7cb227db681497 | 257 | py | Python | test/test_encoder.py | mickey9910326/py-asa-loader | 75852a4c633f34a67f5de2b2a807d2d40ce423bf | [
"MIT"
] | null | null | null | test/test_encoder.py | mickey9910326/py-asa-loader | 75852a4c633f34a67f5de2b2a807d2d40ce423bf | [
"MIT"
] | null | null | null | test/test_encoder.py | mickey9910326/py-asa-loader | 75852a4c633f34a67f5de2b2a807d2d40ce423bf | [
"MIT"
] | null | null | null | import conftest
from asaprog import pac_encode
from asaprog.util import *
if __name__ == "__main__":
pac = {
'command': asaProgCommand.CHK_DEVICE.value,
'data': b'test'
}
res = pac_encode(pac)
print(res)
print(res[-1])
| 18.357143 | 51 | 0.626459 |
f01f136d0d4a9137fd6a7ceea105c26d2d1478ac | 1,098 | py | Python | tests/controllers/controller_with_throttling.py | DmitryKhursevich/winter | 9f3bf462f963059bab1f1bbb309ca57f8a43b46f | [
"MIT"
] | 1 | 2020-10-26T09:48:05.000Z | 2020-10-26T09:48:05.000Z | tests/controllers/controller_with_throttling.py | mikhaillazko/winter | cd4f11aaf28d500aabb59cec369817bfdb5c2fc1 | [
"MIT"
] | null | null | null | tests/controllers/controller_with_throttling.py | mikhaillazko/winter | cd4f11aaf28d500aabb59cec369817bfdb5c2fc1 | [
"MIT"
] | null | null | null | from http import HTTPStatus
import winter.web
from winter.web import ExceptionHandler
from winter.web.exceptions import ThrottleException
| 26.780488 | 69 | 0.721311 |
f020207356e26d12c8db3a4bedd4f52a81d8f981 | 269 | py | Python | appwebshare/files.py | cvakiitho/Webshare-download-manager | 4c79242d6a8562b269ee69a9096b7158e9f6c3c0 | [
"MIT"
] | 3 | 2015-02-06T11:22:58.000Z | 2019-08-14T21:25:29.000Z | appwebshare/files.py | cvakiitho/Webshare-download-manager | 4c79242d6a8562b269ee69a9096b7158e9f6c3c0 | [
"MIT"
] | 2 | 2015-02-04T11:45:51.000Z | 2015-03-04T22:01:11.000Z | appwebshare/files.py | cvakiitho/Webshare-download-manager | 4c79242d6a8562b269ee69a9096b7158e9f6c3c0 | [
"MIT"
] | null | null | null | # -*- coding: UTF=8 -*-
__author__ = 'Tomas Hartmann'
import glob
from appwebshare.scripts import config | 26.9 | 53 | 0.66171 |
f0229b401abe3feee370d9a51bbc8c817449f9e9 | 1,132 | py | Python | tests/checkout_four_sdk_test.py | riaz-bordie-cko/checkout-sdk-python | d9bc073306c1a98544c326be693ed722576ea895 | [
"MIT"
] | null | null | null | tests/checkout_four_sdk_test.py | riaz-bordie-cko/checkout-sdk-python | d9bc073306c1a98544c326be693ed722576ea895 | [
"MIT"
] | null | null | null | tests/checkout_four_sdk_test.py | riaz-bordie-cko/checkout-sdk-python | d9bc073306c1a98544c326be693ed722576ea895 | [
"MIT"
] | null | null | null | import pytest
import checkout_sdk
from checkout_sdk.environment import Environment
from checkout_sdk.exception import CheckoutArgumentException
| 30.594595 | 65 | 0.682862 |
f022af95545ca83849a19b9cfbeb75f2ed9c4fd0 | 181 | py | Python | transitfeed_web/__init__.py | ed-g/transitfeed_web | 1e9be7152823641c450612b27cace99a1efe0b4f | [
"Apache-2.0"
] | null | null | null | transitfeed_web/__init__.py | ed-g/transitfeed_web | 1e9be7152823641c450612b27cace99a1efe0b4f | [
"Apache-2.0"
] | null | null | null | transitfeed_web/__init__.py | ed-g/transitfeed_web | 1e9be7152823641c450612b27cace99a1efe0b4f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2
import sys
import transitfeed
import run_transitfeed_web_server
import util
if __name__ == '__main__':
main()
| 12.928571 | 33 | 0.707182 |
f0238d97d920682e53df77bf6d0427a081fe7819 | 7,980 | py | Python | untiler/__init__.py | waissbluth/untiler | 866b3096196ac340597f77fbf5f2ce899e58238e | [
"MIT"
] | 37 | 2015-10-06T16:41:18.000Z | 2022-03-22T14:52:13.000Z | untiler/__init__.py | waissbluth/untiler | 866b3096196ac340597f77fbf5f2ce899e58238e | [
"MIT"
] | 18 | 2015-09-02T21:13:44.000Z | 2021-01-04T15:46:04.000Z | untiler/__init__.py | waissbluth/untiler | 866b3096196ac340597f77fbf5f2ce899e58238e | [
"MIT"
] | 8 | 2017-04-12T01:22:36.000Z | 2021-08-17T04:10:46.000Z | #!/usr/bin/env python
from __future__ import with_statement
from __future__ import print_function
from __future__ import division
import os
from multiprocessing import Pool
import click
import mercantile as merc
import numpy as np
import rasterio
from rasterio import Affine
from rasterio.warp import reproject
try:
... | 30.113208 | 153 | 0.590977 |
f023dd97d1d559d5d0d17b6855fef5c568625d43 | 236 | py | Python | loadenv.py | Natsu-dev/otenki | d962d44737a68a4751fd58051a670be4ecf852ce | [
"MIT"
] | null | null | null | loadenv.py | Natsu-dev/otenki | d962d44737a68a4751fd58051a670be4ecf852ce | [
"MIT"
] | null | null | null | loadenv.py | Natsu-dev/otenki | d962d44737a68a4751fd58051a670be4ecf852ce | [
"MIT"
] | null | null | null | import os
from os.path import join, dirname
from dotenv import load_dotenv
load_dotenv(verbose=True)
dotenv_path = join(dirname(__file__), '.env')
load_dotenv(verbose=True, dotenv_path=dotenv_path)
TOKEN = os.getenv('DISCORD_TOKEN')
| 21.454545 | 50 | 0.792373 |
f024f2d1468cd63a89d1e5336dc2508a4542b04f | 1,476 | py | Python | Stack/10-stack-special-design-and-implement.py | mahmutcankurt/DataStructures_Python | bfb81e3530b535c4e48c07548dc4a4f9a648bab2 | [
"MIT"
] | 1 | 2022-01-25T22:17:55.000Z | 2022-01-25T22:17:55.000Z | Stack/10-stack-special-design-and-implement.py | mahmutcankurt/DataStructures_Python | bfb81e3530b535c4e48c07548dc4a4f9a648bab2 | [
"MIT"
] | null | null | null | Stack/10-stack-special-design-and-implement.py | mahmutcankurt/DataStructures_Python | bfb81e3530b535c4e48c07548dc4a4f9a648bab2 | [
"MIT"
] | null | null | null |
if __name__ == "__main__":
s = SpecialStack()
s.push(10)
s.push(20)
s.push(30)
print(s.getMin())
s.push(5)
print(s.getMin()) | 20.219178 | 36 | 0.443767 |
f02506946a855a60b83d59b8fe69069f7a64c710 | 1,316 | py | Python | fork_process/dataPreprocess/data_extraction_2.py | JianboTang/modified_GroundHog | cc511a146a51b42fdfb2b2c045205cca6ab306b7 | [
"BSD-3-Clause"
] | null | null | null | fork_process/dataPreprocess/data_extraction_2.py | JianboTang/modified_GroundHog | cc511a146a51b42fdfb2b2c045205cca6ab306b7 | [
"BSD-3-Clause"
] | null | null | null | fork_process/dataPreprocess/data_extraction_2.py | JianboTang/modified_GroundHog | cc511a146a51b42fdfb2b2c045205cca6ab306b7 | [
"BSD-3-Clause"
] | null | null | null | import numpy
import pickle
readfile1 = open('intermediate_data/post_1.txt','r');
readfile2 = open('intermediate_data/cmnt_1.txt','r');
writefile = open('intermediate_data/dictionary.pkl','w');
#writefile1 = open('intermediate_data/post_2.txt','w');
#writefile2 = open('intermediate_data/cmnt_2.txt','w');
if __name__ ==... | 25.803922 | 57 | 0.660334 |
f027e6207f84d89378cfacc9c580753614b7155a | 4,245 | py | Python | visualization.py | Tommy-Johannessen/MovementRecognition | be84d7d014a272987dd20d03194336a9244eb900 | [
"MIT"
] | null | null | null | visualization.py | Tommy-Johannessen/MovementRecognition | be84d7d014a272987dd20d03194336a9244eb900 | [
"MIT"
] | null | null | null | visualization.py | Tommy-Johannessen/MovementRecognition | be84d7d014a272987dd20d03194336a9244eb900 | [
"MIT"
] | 1 | 2019-02-13T12:42:39.000Z | 2019-02-13T12:42:39.000Z | import itertools
import os
from collections import defaultdict
import matplotlib.pyplot as plt
#plt.style.use('ggplot')
from matplotlib.ticker import FuncFormatter
import pickle
import os
import numpy as np
def calculate_cm(pred_vals, true_vals, classes):
"""
This function calculates the confusion matrix.... | 30.321429 | 113 | 0.640047 |
f028c9418a1b88c255939fa631a2c379765ba1a6 | 7,188 | py | Python | raw-myo-plot/Extract_Features.py | rjweld21/prostheticClinic | 1e1ab314fc31d85f455bd7a7868e1269f2808b50 | [
"MIT"
] | null | null | null | raw-myo-plot/Extract_Features.py | rjweld21/prostheticClinic | 1e1ab314fc31d85f455bd7a7868e1269f2808b50 | [
"MIT"
] | null | null | null | raw-myo-plot/Extract_Features.py | rjweld21/prostheticClinic | 1e1ab314fc31d85f455bd7a7868e1269f2808b50 | [
"MIT"
] | 1 | 2018-12-13T22:19:55.000Z | 2018-12-13T22:19:55.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 1 12:54:07 2018
@author: bsala_000
"""
import os
import numpy as np
import pandas as pd
def getFilename(RECORDS_DIR='myo_data'):
"""
Function to allow user to pick filename of CSV to load in the
input records directory. Filename is picked by it... | 28.86747 | 89 | 0.569839 |
f029112ff9d652c6d8e36f9059cb703264d4ebbd | 739 | py | Python | Hartree-Fock_H2/utils.py | WonhoZhung/CH502 | c64a174fe7218e6e86c84c73e6df441fb5074211 | [
"MIT"
] | null | null | null | Hartree-Fock_H2/utils.py | WonhoZhung/CH502 | c64a174fe7218e6e86c84c73e6df441fb5074211 | [
"MIT"
] | null | null | null | Hartree-Fock_H2/utils.py | WonhoZhung/CH502 | c64a174fe7218e6e86c84c73e6df441fb5074211 | [
"MIT"
] | null | null | null | #----------------------------------------------------------------------
# Basis Set Exchange
# Version v0.8.13
# https://www.basissetexchange.org
#----------------------------------------------------------------------
# Basis set: STO-3G
# Description: STO-3G Minimal Basis (3 functions/AO)
# Role: orbital
# ... | 35.190476 | 71 | 0.460081 |
f02ceba7181acc45bf9bae1d138dd71123a318a6 | 422 | py | Python | my_wallet/apiv1/permissions.py | ibolorino/wallet_backend | 20c80e419eaef6b0577ca45ff35bf4eb9501e3a3 | [
"MIT"
] | null | null | null | my_wallet/apiv1/permissions.py | ibolorino/wallet_backend | 20c80e419eaef6b0577ca45ff35bf4eb9501e3a3 | [
"MIT"
] | null | null | null | my_wallet/apiv1/permissions.py | ibolorino/wallet_backend | 20c80e419eaef6b0577ca45ff35bf4eb9501e3a3 | [
"MIT"
] | null | null | null | from rest_framework import permissions | 35.166667 | 110 | 0.699052 |
f02d76a5fd8b5ecfd2e0de43f20b301ddaf039ba | 2,294 | py | Python | automate_insurance_pricing/preprocessing/descriptive_functions.py | nassmim/automate-insurance-pricing-nezz | 7a1cc48be9fb78bdadbbf7616fb01d4d6429e06c | [
"MIT"
] | 2 | 2021-11-09T15:47:22.000Z | 2021-11-14T13:54:56.000Z | automate_insurance_pricing/preprocessing/descriptive_functions.py | nassmim/automate-insurance-pricing-nezz | 7a1cc48be9fb78bdadbbf7616fb01d4d6429e06c | [
"MIT"
] | null | null | null | automate_insurance_pricing/preprocessing/descriptive_functions.py | nassmim/automate-insurance-pricing-nezz | 7a1cc48be9fb78bdadbbf7616fb01d4d6429e06c | [
"MIT"
] | 1 | 2021-07-09T04:12:57.000Z | 2021-07-09T04:12:57.000Z | import pandas as pd
def derive_termination_rate_year(df, start_business_year, extraction_year, main_column_contract_date, policy_id_column_name, column_to_sum_name):
"""Derives the contracts termination rates per year
Arguments --> the dataframe, the business starting year, the extraction year
... | 46.816327 | 148 | 0.735397 |
f02d80a4afeebaf1a2e3f75631b09c3fc74059e3 | 2,538 | py | Python | src/flask_easy/auth.py | Josephmaclean/flask-easy | 64cb647b0dbcd031cb8d27cc60889e50c959e1ca | [
"MIT"
] | 1 | 2021-12-30T12:25:05.000Z | 2021-12-30T12:25:05.000Z | src/flask_easy/auth.py | Josephmaclean/flask-easy | 64cb647b0dbcd031cb8d27cc60889e50c959e1ca | [
"MIT"
] | null | null | null | src/flask_easy/auth.py | Josephmaclean/flask-easy | 64cb647b0dbcd031cb8d27cc60889e50c959e1ca | [
"MIT"
] | null | null | null | """
auth.py
Author: Joseph Maclean Arhin
"""
import os
import inspect
from functools import wraps
import jwt
from flask import request
from jwt.exceptions import ExpiredSignatureError, InvalidTokenError, PyJWTError
from .exc import Unauthorized, ExpiredTokenException, OperationError
def auth_required(other_roles=No... | 32.126582 | 79 | 0.593775 |
f02f263b4792b69303bcdec39c484284dc805802 | 1,221 | py | Python | src/prefect/engine/result_handlers/secret_result_handler.py | trapped/prefect | 128f11570c35e7156d65ba65fdcbc1f4ccd7c2b7 | [
"Apache-2.0"
] | 1 | 2019-12-20T07:43:55.000Z | 2019-12-20T07:43:55.000Z | src/prefect/engine/result_handlers/secret_result_handler.py | trapped/prefect | 128f11570c35e7156d65ba65fdcbc1f4ccd7c2b7 | [
"Apache-2.0"
] | null | null | null | src/prefect/engine/result_handlers/secret_result_handler.py | trapped/prefect | 128f11570c35e7156d65ba65fdcbc1f4ccd7c2b7 | [
"Apache-2.0"
] | null | null | null | import json
from typing import Any
import prefect
from prefect.engine.result_handlers import ResultHandler
| 27.133333 | 104 | 0.626536 |
f02f4e1f7df53040bb2247eb8bc8db48f7b3454e | 9,283 | py | Python | hnn_core/tests/test_dipole.py | mkhalil8/hnn-core | a761e248ddf360710dd60638269f70361f5d6cb3 | [
"BSD-3-Clause"
] | null | null | null | hnn_core/tests/test_dipole.py | mkhalil8/hnn-core | a761e248ddf360710dd60638269f70361f5d6cb3 | [
"BSD-3-Clause"
] | null | null | null | hnn_core/tests/test_dipole.py | mkhalil8/hnn-core | a761e248ddf360710dd60638269f70361f5d6cb3 | [
"BSD-3-Clause"
] | null | null | null | import os.path as op
from urllib.request import urlretrieve
import matplotlib
import numpy as np
from numpy.testing import assert_allclose
import pytest
import hnn_core
from hnn_core import read_params, read_dipole, average_dipoles
from hnn_core import Network, jones_2009_model
from hnn_core.viz import plot_dipole
fr... | 43.378505 | 78 | 0.660885 |
f02fc9e2410362e641030d8eb9da915829910a4c | 1,280 | py | Python | setup.py | creeston/chinese | 44317b8aa9b909eda9cf3008f6bd0cf4d92f228c | [
"MIT"
] | 15 | 2018-11-15T16:54:41.000Z | 2022-01-12T00:53:10.000Z | setup.py | creeston/chinese | 44317b8aa9b909eda9cf3008f6bd0cf4d92f228c | [
"MIT"
] | 1 | 2021-05-19T04:01:21.000Z | 2021-05-19T04:01:21.000Z | setup.py | creeston/chinese | 44317b8aa9b909eda9cf3008f6bd0cf4d92f228c | [
"MIT"
] | 5 | 2019-03-01T09:30:34.000Z | 2022-03-07T19:25:40.000Z | from setuptools import setup, find_packages
with open('docs/README-rst') as f:
desc = f.read()
setup(
name='chinese',
version='0.2.1',
license='MIT',
url='https://github.com/morinokami/chinese',
keywords=['Chinese', 'text analysis'],
classifiers=[
'Development Status :: 3 - Alpha',... | 32 | 74 | 0.613281 |
f03149894a1a1db841d1f4b4176a844bc1ba3dd2 | 2,880 | py | Python | glacis_core/api/get_keys.py | ImperiumSec/glacis_core | b9dd0ad0f92dfd89c8ee1791c03ee1a8c6e93500 | [
"MIT"
] | null | null | null | glacis_core/api/get_keys.py | ImperiumSec/glacis_core | b9dd0ad0f92dfd89c8ee1791c03ee1a8c6e93500 | [
"MIT"
] | null | null | null | glacis_core/api/get_keys.py | ImperiumSec/glacis_core | b9dd0ad0f92dfd89c8ee1791c03ee1a8c6e93500 | [
"MIT"
] | null | null | null | from ..models import EntityOnServer, AccessToken, Organisation, Server, ServerUser, Key, KeyFetchEvent, AuditNote, AuditEvent, LoginAttempt
from django.template import Context, Template
from django.views.decorators.csrf import csrf_exempt
from django.http import HttpResponse
from uuid import uuid4
from datetime import... | 27.692308 | 139 | 0.613194 |
f031c64cd48b598cd3b616708c05819e454b8bc1 | 2,870 | py | Python | core/translator.py | bfu4/mdis | fac5ec078ffeaa9339df4b31b9b71140563f4f14 | [
"MIT"
] | 13 | 2021-05-17T06:38:50.000Z | 2022-03-27T15:39:57.000Z | core/translator.py | bfu4/mdis | fac5ec078ffeaa9339df4b31b9b71140563f4f14 | [
"MIT"
] | null | null | null | core/translator.py | bfu4/mdis | fac5ec078ffeaa9339df4b31b9b71140563f4f14 | [
"MIT"
] | null | null | null | from typing import List
from parser import parse_bytes, split_bytes_from_lines, get_bytes, parse_instruction_set, wrap_parsed_set
from reader import dump_file_hex_with_locs
| 28.7 | 105 | 0.591289 |
f0339846cad63a7692947f289af6990dc4271899 | 3,987 | py | Python | easyp2p/p2p_signals.py | Ceystyle/easyp2p | 99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc | [
"MIT"
] | 4 | 2019-07-18T10:58:28.000Z | 2021-11-18T16:57:45.000Z | easyp2p/p2p_signals.py | Ceystyle/easyp2p | 99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc | [
"MIT"
] | 1 | 2019-07-05T09:21:47.000Z | 2019-07-05T09:21:47.000Z | easyp2p/p2p_signals.py | Ceystyle/easyp2p | 99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc | [
"MIT"
] | 2 | 2019-07-05T08:56:34.000Z | 2020-06-09T10:03:42.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2018-2020 Niko Sandschneider
"""Module implementing Signals for communicating with the GUI."""
from functools import wraps
import logging
from PyQt5.QtCore import QObject, pyqtSignal
| 34.37069 | 75 | 0.605719 |
f033f0846a998f9a5ac92cbb40712c19a572ab8c | 623 | py | Python | extra_tests/ctypes_tests/test_unions.py | nanjekyejoannah/pypy | e80079fe13c29eda7b2a6b4cd4557051f975a2d9 | [
"Apache-2.0",
"OpenSSL"
] | 333 | 2015-08-08T18:03:38.000Z | 2022-03-22T18:13:12.000Z | extra_tests/ctypes_tests/test_unions.py | nanjekyejoannah/pypy | e80079fe13c29eda7b2a6b4cd4557051f975a2d9 | [
"Apache-2.0",
"OpenSSL"
] | 7 | 2020-02-16T16:49:05.000Z | 2021-11-26T09:00:56.000Z | extra_tests/ctypes_tests/test_unions.py | nanjekyejoannah/pypy | e80079fe13c29eda7b2a6b4cd4557051f975a2d9 | [
"Apache-2.0",
"OpenSSL"
] | 55 | 2015-08-16T02:41:30.000Z | 2022-03-20T20:33:35.000Z | import sys
from ctypes import *
| 21.482759 | 48 | 0.523274 |
f0348185cb88efdb34b5de39fe352d2ee65ecef9 | 13,977 | py | Python | nssrc/com/citrix/netscaler/nitro/resource/config/snmp/snmpmib.py | guardicore/nitro-python | 5346a5086134aead80968f15a41ff527adaa0ec1 | [
"Apache-2.0"
] | null | null | null | nssrc/com/citrix/netscaler/nitro/resource/config/snmp/snmpmib.py | guardicore/nitro-python | 5346a5086134aead80968f15a41ff527adaa0ec1 | [
"Apache-2.0"
] | null | null | null | nssrc/com/citrix/netscaler/nitro/resource/config/snmp/snmpmib.py | guardicore/nitro-python | 5346a5086134aead80968f15a41ff527adaa0ec1 | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2021 Citrix Systems, 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... | 37.980978 | 387 | 0.701867 |
f034b8b6b6d0852450c50577d53070c406d80750 | 770 | py | Python | lambda-archive/lambda-functions/codebreaker-update-testcaseCount/lambda_function.py | singaporezoo/codebreaker-official | 1fe5792f1c36f922abd0836d8dcb42d271a9323d | [
"MIT"
] | 11 | 2021-09-19T06:32:44.000Z | 2022-03-14T19:09:46.000Z | lambda-archive/lambda-functions/codebreaker-update-testcaseCount/lambda_function.py | singaporezoo/codebreaker-official | 1fe5792f1c36f922abd0836d8dcb42d271a9323d | [
"MIT"
] | null | null | null | lambda-archive/lambda-functions/codebreaker-update-testcaseCount/lambda_function.py | singaporezoo/codebreaker-official | 1fe5792f1c36f922abd0836d8dcb42d271a9323d | [
"MIT"
] | 1 | 2022-03-02T13:27:27.000Z | 2022-03-02T13:27:27.000Z | import json
import boto3 # Amazon S3 client library
s3 = boto3.resource('s3')
dynamodb = boto3.resource('dynamodb')
problems_table = dynamodb.Table('codebreaker-problems')
bucket = s3.Bucket('codebreaker-testdata')
| 28.518519 | 72 | 0.672727 |