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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6ba2492b88130e8e844944ac40db6c880ef449f2 | 5,979 | py | Python | scripts/keypoints/demo.py | gachiemchiep/gluon-cv | 8400bd53cbe16d6dd76fce4af7c5b492e5ffc7d6 | [
"Apache-2.0"
] | null | null | null | scripts/keypoints/demo.py | gachiemchiep/gluon-cv | 8400bd53cbe16d6dd76fce4af7c5b492e5ffc7d6 | [
"Apache-2.0"
] | null | null | null | scripts/keypoints/demo.py | gachiemchiep/gluon-cv | 8400bd53cbe16d6dd76fce4af7c5b492e5ffc7d6 | [
"Apache-2.0"
] | null | null | null | from __future__ import division
import argparse, logging, os, math, tqdm
import numpy as np
import mxnet as mx
from mxnet import gluon, nd, image
from mxnet.gluon.data.vision import transforms
import matplotlib.pyplot as plt
import gluoncv as gcv
from gluoncv import data
from gluoncv.data import mscoco
from gluoncv.... | 36.907407 | 97 | 0.599264 |
6ba3851f3b148e4849b2b928ff739f496772e92a | 4,618 | py | Python | src/obmak_debug.py | jeppeter/py-obcode | c2cdcb198b3cbc19f87dafd2a63e05901c11fcd9 | [
"BSD-Source-Code"
] | null | null | null | src/obmak_debug.py | jeppeter/py-obcode | c2cdcb198b3cbc19f87dafd2a63e05901c11fcd9 | [
"BSD-Source-Code"
] | null | null | null | src/obmak_debug.py | jeppeter/py-obcode | c2cdcb198b3cbc19f87dafd2a63e05901c11fcd9 | [
"BSD-Source-Code"
] | null | null | null | #! /usr/bin/env python
import sys
import os
import extargsparse
import re
import time
##importdebugstart
sys.path.append(os.path.abspath(os.path.dirname(__file__)))
from strparser import *
from filehdl import *
from fmthdl import *
from extract_ob import *
from obmaklib import *
##importdebugend
REPLACE_IMPORT_LIB=1... | 34.207407 | 148 | 0.622131 |
6ba44c15532a1eb969c9c42b5ee34f85d42c99fb | 892 | py | Python | changePositionToIndexUpstream.py | oicr-gsi/bam-statistics | 62109bcb6ae09a0425a386dd139e5487ef019c81 | [
"MIT"
] | null | null | null | changePositionToIndexUpstream.py | oicr-gsi/bam-statistics | 62109bcb6ae09a0425a386dd139e5487ef019c81 | [
"MIT"
] | null | null | null | changePositionToIndexUpstream.py | oicr-gsi/bam-statistics | 62109bcb6ae09a0425a386dd139e5487ef019c81 | [
"MIT"
] | null | null | null | #!/usr/bin/python
## my upstream target intervals were of size 1000 each.
import sys
# use stdin if stdin is full
if not sys.stdin.isatty():
indexFile = sys.stdin
#otherwise, read from input
else:
try:
input_file = sys.argv[1]
except IndexError:
message = 'need filename as first argument if stdin is not ful... | 21.238095 | 66 | 0.502242 |
6ba44f7d327a52dea057b82f3bb4c121df5c5152 | 3,814 | py | Python | engine/graphics/tests/test_cross_box.py | codehearts/pickles-fetch-quest | ca9b3c7fe26acb50e1e2d654d068f5bb953bc427 | [
"MIT"
] | 3 | 2017-12-07T19:17:36.000Z | 2021-07-29T18:24:25.000Z | engine/graphics/tests/test_cross_box.py | codehearts/pickles-fetch-quest | ca9b3c7fe26acb50e1e2d654d068f5bb953bc427 | [
"MIT"
] | 41 | 2017-11-11T06:00:08.000Z | 2022-03-28T23:27:25.000Z | engine/graphics/tests/test_cross_box.py | codehearts/pickles-fetch-quest | ca9b3c7fe26acb50e1e2d654d068f5bb953bc427 | [
"MIT"
] | 2 | 2018-08-31T23:49:00.000Z | 2021-09-21T00:42:48.000Z | from ..cross_box import CrossBox
from unittest.mock import Mock, patch
from pyglet.gl import GL_LINES
import unittest
def test_sets_color_with_batch(self):
"""Cross box sets custom colors when using a batch."""
color = (1, 2, 3)
expected_colors = color * self.vertex_count
batch = ... | 34.053571 | 79 | 0.611169 |
6ba49ff9b9f6e55b26f202ca7d30bd2c0a6def8a | 967 | py | Python | boolmininfo/two_input/two_input_canalization.py | godzilla-but-nicer/boolmininfo | 50281b1a9d8a0718815910edf4123d67c532aa66 | [
"MIT"
] | null | null | null | boolmininfo/two_input/two_input_canalization.py | godzilla-but-nicer/boolmininfo | 50281b1a9d8a0718815910edf4123d67c532aa66 | [
"MIT"
] | null | null | null | boolmininfo/two_input/two_input_canalization.py | godzilla-but-nicer/boolmininfo | 50281b1a9d8a0718815910edf4123d67c532aa66 | [
"MIT"
] | null | null | null | import pandas as pd
from tqdm import tqdm
from ..binarize import to_binary
from cana.boolean_node import BooleanNode
# set up variables
n_inputs = 2**2
n_rules = 2**(2**2)
df_dict = []
for rule in tqdm(range(n_rules)):
canal = {} # becomes row of dataframe
arr = to_binary(rule, digits=4)
print(arr)
... | 24.175 | 61 | 0.657704 |
6ba4ad801a9aa7d778472b993d995c3148627cc0 | 149 | py | Python | telethon/default.py | yeung1704/Telethon | 4562ba9ccfb1aef33facd5ca1a2675705d390e1c | [
"MIT"
] | 1 | 2019-07-20T08:28:10.000Z | 2019-07-20T08:28:10.000Z | telethon/default.py | yeung1704/Telethon | 4562ba9ccfb1aef33facd5ca1a2675705d390e1c | [
"MIT"
] | null | null | null | telethon/default.py | yeung1704/Telethon | 4562ba9ccfb1aef33facd5ca1a2675705d390e1c | [
"MIT"
] | null | null | null | """
Sentinel module to signify that a parameter should use its default value.
Useful when the default value or ``None`` are both valid options.
"""
| 24.833333 | 73 | 0.744966 |
6ba55a9d58c8e54a868a196a9d91d4d5f9c774fc | 8,319 | py | Python | p5lib/diagManager.py | panwalas/SDC-P5 | eb7f59d919cbd37dfd3ade8ab6dab40dfded6132 | [
"MIT"
] | 1 | 2020-06-16T05:48:44.000Z | 2020-06-16T05:48:44.000Z | p5lib/diagManager.py | SidSong01/SDC-P5 | 818a2de532c37f16761e2913ca3ff18d2de9f828 | [
"MIT"
] | null | null | null | p5lib/diagManager.py | SidSong01/SDC-P5 | 818a2de532c37f16761e2913ca3ff18d2de9f828 | [
"MIT"
] | 1 | 2018-10-05T14:01:20.000Z | 2018-10-05T14:01:20.000Z | #!/usr/bin/python
"""
diagManager.py: version 0.1.0
History:
2017/01/29: coding style phase1:
reformat to python-guide.org code style
http://docs.python-guide.org/en/latest/writing/style/
which uses PEP 8 as a base: http://pep8.org/.
2017/01/09: Initial version converted to a class
... | 39.240566 | 74 | 0.547061 |
6ba5c75d24987e85c04283050683308be22b8758 | 3,084 | py | Python | resources/python/KemendagriKTP/main.py | freezyoff/kosan-server | 0e6ec0a763075a838557258740f95bf07caf47a7 | [
"MIT"
] | null | null | null | resources/python/KemendagriKTP/main.py | freezyoff/kosan-server | 0e6ec0a763075a838557258740f95bf07caf47a7 | [
"MIT"
] | 4 | 2020-03-02T13:06:23.000Z | 2022-02-27T12:47:45.000Z | resources/python/KemendagriKTP/main.py | freezyoff/kosan-server | 0e6ec0a763075a838557258740f95bf07caf47a7 | [
"MIT"
] | null | null | null | import os
import sys
import glob
import options as setting
import xlsToCsv as csvConverter
import csvParser as parser
import dbProvider as db
if __name__ == "__main__":
searchExt = "xlsx"
convertExt = "csv"
country = "id"
# Clean csv file in src/csv directory
array = glob.glob(setting.paths["csv"]+"/*")
for i... | 28.82243 | 104 | 0.682231 |
6baa91249a1d6feaecd6484fdec577d31bedced2 | 890 | py | Python | posts/views.py | JySa65/platzi-gram | e991a59a8ebe28574671f39cf8bd552e31799cd8 | [
"MIT"
] | null | null | null | posts/views.py | JySa65/platzi-gram | e991a59a8ebe28574671f39cf8bd552e31799cd8 | [
"MIT"
] | null | null | null | posts/views.py | JySa65/platzi-gram | e991a59a8ebe28574671f39cf8bd552e31799cd8 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.views.generic import ListView, CreateView, DetailView
from django.contrib.auth.mixins import LoginRequiredMixin
from posts.models import Post
from posts.forms import PostForm
from django.urls import reverse_lazy
# Create your views here.
| 28.709677 | 65 | 0.741573 |
6baaff8afa9315a4684afe9922b3bc17351fe624 | 5,154 | py | Python | training_engine.py | DDMAL/Calvo-classifier | 06e9a74b2221e130ec7eae1dfe462f9de1a5ffa3 | [
"MIT"
] | null | null | null | training_engine.py | DDMAL/Calvo-classifier | 06e9a74b2221e130ec7eae1dfe462f9de1a5ffa3 | [
"MIT"
] | 25 | 2017-07-17T19:49:57.000Z | 2021-05-21T14:29:34.000Z | training_engine.py | DDMAL/Calvo-classifier | 06e9a74b2221e130ec7eae1dfe462f9de1a5ffa3 | [
"MIT"
] | null | null | null | import cv2
import numpy as np
import random as rd
import os
from tensorflow.keras.models import Sequential, Model
from tensorflow.keras.layers import Dense, Dropout, Activation, Flatten
from tensorflow.keras.layers import Conv2D, MaxPooling2D, Input
from tensorflow.keras.optimizers import Adadelta
from tensorflow.keras... | 32.2125 | 121 | 0.590221 |
6bab10a8f6ed4cb25868e69655d856cbf7ed3d4a | 1,315 | py | Python | board/views.py | mijiFernandes/pa_1 | 10ede10494a632a98ef4e234ef58a73e8ea3c52f | [
"Unlicense"
] | null | null | null | board/views.py | mijiFernandes/pa_1 | 10ede10494a632a98ef4e234ef58a73e8ea3c52f | [
"Unlicense"
] | null | null | null | board/views.py | mijiFernandes/pa_1 | 10ede10494a632a98ef4e234ef58a73e8ea3c52f | [
"Unlicense"
] | null | null | null | from django.views.generic import ListView, DetailView, TemplateView, CreateView, UpdateView, DeleteView
from board.models import Post
from django.contrib.auth.mixins import LoginRequiredMixin
from django.urls import reverse_lazy
from mysite.views import OwnerOnlyMixin
from django.conf import settings
#--- ListView
... | 25.784314 | 103 | 0.727757 |
6bad192dd000bca228a62d8ca74676979f55e0df | 5,512 | py | Python | froide/problem/models.py | OpendataCH/froide | 8136bac0d8caa56f9cfc7ba15480be987280e55d | [
"MIT"
] | null | null | null | froide/problem/models.py | OpendataCH/froide | 8136bac0d8caa56f9cfc7ba15480be987280e55d | [
"MIT"
] | null | null | null | froide/problem/models.py | OpendataCH/froide | 8136bac0d8caa56f9cfc7ba15480be987280e55d | [
"MIT"
] | null | null | null | from django.conf import settings
from django.db import models
from django.dispatch import Signal
from django.utils import timezone
from django.utils.translation import gettext_lazy as _
from froide.foirequest.models import FoiMessage
from .utils import inform_user_problem_resolved
USER_PROBLEM_CHOICES = make_choi... | 31.497143 | 85 | 0.675798 |
6baea58c725737990251602caf5b1d374aecb680 | 631 | py | Python | s5/pipe.py | aut-ce/CE304-OS-Lab | 2d77860d1d9fb23603d37b99d03fb208eb83bb13 | [
"MIT"
] | 1 | 2019-12-04T17:44:44.000Z | 2019-12-04T17:44:44.000Z | s5/pipe.py | aut-ce/OS-Lab | 2d77860d1d9fb23603d37b99d03fb208eb83bb13 | [
"MIT"
] | null | null | null | s5/pipe.py | aut-ce/OS-Lab | 2d77860d1d9fb23603d37b99d03fb208eb83bb13 | [
"MIT"
] | 2 | 2019-12-03T04:27:39.000Z | 2020-02-16T16:26:56.000Z | # In The Name of God
# =======================================
# [] File Name : pipe.py
#
# [] Creation Date : 27-11-2019
#
# [] Created By : Parham Alvani <parham.alvani@gmail.com>
# =======================================
import os
if __name__ == '__main__':
parent()
| 18.028571 | 57 | 0.44374 |
6baefc213b6e18384bf7694489eee455b60eff69 | 1,763 | py | Python | twilio_notification.py | srisankethu/cowin-service | 12595b3e5c13f1990e11ed9a82723840dc0882f1 | [
"MIT"
] | null | null | null | twilio_notification.py | srisankethu/cowin-service | 12595b3e5c13f1990e11ed9a82723840dc0882f1 | [
"MIT"
] | null | null | null | twilio_notification.py | srisankethu/cowin-service | 12595b3e5c13f1990e11ed9a82723840dc0882f1 | [
"MIT"
] | null | null | null | from twilio.rest import Client
from twilio.twiml.voice_response import Gather, VoiceResponse
import os | 41.97619 | 405 | 0.613727 |
6bb00e54f0e1134bc23f3eb78651d55347669c5e | 439 | py | Python | dh_abstracts/app/abstracts/migrations/0019_auto_20200331_1723.py | dSHARP-CMU/dhweb_app | fe3d89aeb6c59e6606596747a236a2df5529e9a4 | [
"MIT"
] | 3 | 2021-05-07T17:01:33.000Z | 2022-01-08T07:54:22.000Z | dh_abstracts/app/abstracts/migrations/0019_auto_20200331_1723.py | dSHARP-CMU/dhweb_app | fe3d89aeb6c59e6606596747a236a2df5529e9a4 | [
"MIT"
] | 336 | 2019-12-04T23:06:08.000Z | 2022-03-31T16:23:15.000Z | dh_abstracts/app/abstracts/migrations/0019_auto_20200331_1723.py | dSHARP-CMU/dhweb_app | fe3d89aeb6c59e6606596747a236a2df5529e9a4 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-03-31 21:23
from django.db import migrations
| 19.954545 | 49 | 0.567198 |
6bb170d5c328d56d3db2bd3a99c889c8e64d2806 | 1,452 | py | Python | Project_CaesarCipher/main.py | PratyushPriyam/Python_Projects | d97785464921ce24d2665360ec023b51dd26318b | [
"MIT"
] | null | null | null | Project_CaesarCipher/main.py | PratyushPriyam/Python_Projects | d97785464921ce24d2665360ec023b51dd26318b | [
"MIT"
] | null | null | null | Project_CaesarCipher/main.py | PratyushPriyam/Python_Projects | d97785464921ce24d2665360ec023b51dd26318b | [
"MIT"
] | null | null | null | from art import logo
print(logo)
alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u',
'v', 'w', 'x', 'y', 'z']
continue_code = True
while continue_code:
direction = input("Type 'encode' to encrypt, type 'decode' to decrypt: ")... | 36.3 | 117 | 0.569559 |
6bb1e9b462105a87b65e25760039d444b95ec23d | 2,016 | py | Python | chapter-4/transcribe_text.py | PacktPublishing/Applied-Machine-Learning-for-Healthcare-and-Life-Sciences-using-AWS | b602a57411cf272c9fbaf01c4f77c18516e8c641 | [
"MIT"
] | 1 | 2022-03-27T22:53:43.000Z | 2022-03-27T22:53:43.000Z | chapter-4/transcribe_text.py | PacktPublishing/Applied-Machine-Learning-for-Healthcare-and-Life-Sciences-using-AWS | b602a57411cf272c9fbaf01c4f77c18516e8c641 | [
"MIT"
] | null | null | null | chapter-4/transcribe_text.py | PacktPublishing/Applied-Machine-Learning-for-Healthcare-and-Life-Sciences-using-AWS | b602a57411cf272c9fbaf01c4f77c18516e8c641 | [
"MIT"
] | null | null | null | from __future__ import print_function
import time
import boto3
import json
import pandas as pd
transcribe = boto3.client('transcribe')
job_name = "med-transcription-job"
job_uri = "" #enter the S3 URI of the audio file between the double quotes
try:
transcribe.delete_medical_transcription_job(MedicalTranscriptio... | 32.516129 | 138 | 0.719742 |
6bb3917ff82bec4f0c2a3f6af9219c74f32f81ac | 1,978 | py | Python | examples_ltnw/multilabel_classification.py | gilbeckers/logictensornetworks | c4cc3628db91030230c78d3b964c26304a3b452b | [
"MIT"
] | null | null | null | examples_ltnw/multilabel_classification.py | gilbeckers/logictensornetworks | c4cc3628db91030230c78d3b964c26304a3b452b | [
"MIT"
] | null | null | null | examples_ltnw/multilabel_classification.py | gilbeckers/logictensornetworks | c4cc3628db91030230c78d3b964c26304a3b452b | [
"MIT"
] | 1 | 2019-05-19T01:28:04.000Z | 2019-05-19T01:28:04.000Z | # -*- coding: utf-8 -*-
import logging
logger = logging.getLogger()
logger.basicConfig = logging.basicConfig(level=logging.DEBUG)
import numpy as np
import matplotlib.pyplot as plt
import logictensornetworks_wrapper as ltnw
nr_samples=500
data=np.random.uniform([0,0],[1.,1.],(nr_samples,2)).astype(np.float32)
data_A... | 28.257143 | 82 | 0.681496 |
6bb53b334618a95bb81b6c7302559a93e9cd5c47 | 391 | py | Python | server/storage.py | migueladanrm/Fascan | 393777b9949ded6b99c20e25801d33c75c412ad9 | [
"MIT"
] | 1 | 2021-01-25T23:35:15.000Z | 2021-01-25T23:35:15.000Z | server/storage.py | migueladanrm/Fascan | 393777b9949ded6b99c20e25801d33c75c412ad9 | [
"MIT"
] | null | null | null | server/storage.py | migueladanrm/Fascan | 393777b9949ded6b99c20e25801d33c75c412ad9 | [
"MIT"
] | null | null | null | from google.cloud import storage
from uuid import uuid4
from os import environ
| 20.578947 | 48 | 0.677749 |
6bb6a1fc2bc9aae0b758ba1bfbfd95c520ca767e | 5,480 | py | Python | api/api.py | kalinkinisaac/modular | 301d26ad222a5ef3278aaf251908e0a8537bb58f | [
"MIT"
] | null | null | null | api/api.py | kalinkinisaac/modular | 301d26ad222a5ef3278aaf251908e0a8537bb58f | [
"MIT"
] | null | null | null | api/api.py | kalinkinisaac/modular | 301d26ad222a5ef3278aaf251908e0a8537bb58f | [
"MIT"
] | null | null | null | from api.subgroups_names import ClassicalSubgroups
from graph_constructor import get_graph
from plotter.graph_plotter import GraphPlotter
from plotter.geodesic_plotter import GeodesicPlotter
from plotter.marker_plotter import MarkerPlotter
from special_polygon import SpecialPolygon
from fimath import Matrix, Field
from... | 35.584416 | 99 | 0.619343 |
6bb7889b4decd4266d4e92eef2bdbcfe210d5377 | 493 | py | Python | thaniya_server_upload/src/thaniya_server_upload/slots/IUploadSlotContext.py | jkpubsrc/Thaniya | 4ebdf2854e3d7888af7396adffa22628b4ab2267 | [
"Apache-1.1"
] | 1 | 2021-01-20T18:27:22.000Z | 2021-01-20T18:27:22.000Z | thaniya_server_upload/src/thaniya_server_upload/slots/IUploadSlotContext.py | jkpubsrc/Thaniya | 4ebdf2854e3d7888af7396adffa22628b4ab2267 | [
"Apache-1.1"
] | null | null | null | thaniya_server_upload/src/thaniya_server_upload/slots/IUploadSlotContext.py | jkpubsrc/Thaniya | 4ebdf2854e3d7888af7396adffa22628b4ab2267 | [
"Apache-1.1"
] | null | null | null |
from thaniya_server_sudo import SudoScriptRunner
from thaniya_server.usermgr import BackupUserManager
from thaniya_server.sysusers import SystemAccountManager
#
| 14.085714 | 56 | 0.793103 |
6bb87d3d71c7e51c8fd1529d97d984d4d891a1f9 | 2,799 | py | Python | elliot/recommender/neural/NeuMF/tf_custom_sampler_2.py | gategill/elliot | 113763ba6d595976e14ead2e3d460d9705cd882e | [
"Apache-2.0"
] | 175 | 2021-03-04T15:46:25.000Z | 2022-03-31T05:56:58.000Z | elliot/recommender/neural/NeuMF/tf_custom_sampler_2.py | gategill/elliot | 113763ba6d595976e14ead2e3d460d9705cd882e | [
"Apache-2.0"
] | 15 | 2021-03-06T17:53:56.000Z | 2022-03-24T17:02:07.000Z | elliot/recommender/neural/NeuMF/tf_custom_sampler_2.py | gategill/elliot | 113763ba6d595976e14ead2e3d460d9705cd882e | [
"Apache-2.0"
] | 39 | 2021-03-04T15:46:26.000Z | 2022-03-09T15:37:12.000Z | """
Module description:
"""
__version__ = '0.3.1'
__author__ = 'Vito Walter Anelli, Claudio Pomo'
__email__ = 'vitowalter.anelli@poliba.it, claudio.pomo@poliba.it'
import tensorflow as tf
import numpy as np
import random
| 35.43038 | 136 | 0.563773 |
6bb8b1c35c567a11394eb8dab8bdf13c41609743 | 339 | py | Python | emailServer/testClient.py | rindhane/automata | 738965c3f2794dbcdc55eb383f70fd8082b051d8 | [
"MIT"
] | null | null | null | emailServer/testClient.py | rindhane/automata | 738965c3f2794dbcdc55eb383f70fd8082b051d8 | [
"MIT"
] | null | null | null | emailServer/testClient.py | rindhane/automata | 738965c3f2794dbcdc55eb383f70fd8082b051d8 | [
"MIT"
] | 1 | 2021-08-09T23:11:53.000Z | 2021-08-09T23:11:53.000Z | #! /usr/bin/env python
import socket
if __name__== "__main__" :
print('Received',repr(send_ping_data('127.0.0.1','65432')))
| 26.076923 | 64 | 0.646018 |
6bb8b58e3d4c509f2ab9e15701ed9173e1ab9a10 | 814 | py | Python | Lib/test/test_decr.py | zingero/cpython | da36d8cdedc1cf1937c3579e2bc089a8ff97c093 | [
"0BSD"
] | null | null | null | Lib/test/test_decr.py | zingero/cpython | da36d8cdedc1cf1937c3579e2bc089a8ff97c093 | [
"0BSD"
] | 13 | 2020-12-01T05:38:24.000Z | 2022-03-01T18:00:55.000Z | Lib/test/test_decr.py | zingero/cpython | da36d8cdedc1cf1937c3579e2bc089a8ff97c093 | [
"0BSD"
] | null | null | null | # Decrement test.
import unittest
if __name__ == '__main__':
unittest.main()
| 23.941176 | 91 | 0.592138 |
6bba0831f8000a7d9aa7ea9f3bb07c2544738078 | 554 | py | Python | rmp_nav/simulation/agent_utils.py | KH-Kyle/rmp_nav | d598fe70664a4cdc0e9b9dd4b52e84aa3de1b551 | [
"MIT"
] | 30 | 2020-03-02T10:31:17.000Z | 2022-03-14T08:47:00.000Z | rmp_nav/simulation/agent_utils.py | KH-Kyle/rmp_nav | d598fe70664a4cdc0e9b9dd4b52e84aa3de1b551 | [
"MIT"
] | 4 | 2020-06-23T17:07:28.000Z | 2021-11-21T02:37:37.000Z | rmp_nav/simulation/agent_utils.py | KH-Kyle/rmp_nav | d598fe70664a4cdc0e9b9dd4b52e84aa3de1b551 | [
"MIT"
] | 8 | 2020-05-26T08:18:21.000Z | 2022-01-27T09:25:55.000Z | import math
| 27.7 | 78 | 0.548736 |
6bbb09399af12973f203e06cfe0dab224ca66d09 | 6,549 | py | Python | fuel-package-updates.py | artem-panchenko/fuel-updates | 87abddfeae749ee81c58328410f842ccd9afe3dc | [
"Apache-2.0"
] | null | null | null | fuel-package-updates.py | artem-panchenko/fuel-updates | 87abddfeae749ee81c58328410f842ccd9afe3dc | [
"Apache-2.0"
] | null | null | null | fuel-package-updates.py | artem-panchenko/fuel-updates | 87abddfeae749ee81c58328410f842ccd9afe3dc | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Mirantis, 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.210227 | 79 | 0.619331 |
6bbb22de60337e2759ffb3707d8365c266ee95c7 | 3,673 | py | Python | src/utils.py | one-acre-fund/MapTilesDownloader | bbd15d2990c51b1ae97a0cb7838bba861d66e567 | [
"MIT"
] | null | null | null | src/utils.py | one-acre-fund/MapTilesDownloader | bbd15d2990c51b1ae97a0cb7838bba861d66e567 | [
"MIT"
] | null | null | null | src/utils.py | one-acre-fund/MapTilesDownloader | bbd15d2990c51b1ae97a0cb7838bba861d66e567 | [
"MIT"
] | 1 | 2021-11-25T14:37:47.000Z | 2021-11-25T14:37:47.000Z | #!/usr/bin/env python
from urllib.parse import urlparse
from urllib.parse import parse_qs
from urllib.parse import parse_qsl
import urllib.request
import cgi
import uuid
import random
import string
from cgi import parse_header, parse_multipart
import argparse
import uuid
import random
import time
import json
import sh... | 20.519553 | 129 | 0.647155 |
6bbda07e389bf551e26624d26ca28aadcfbca0c4 | 217 | py | Python | Curso_Python/Secao2-Python-Basico-Logica-Programacao/37_desempacotamento_listas/37_desempacotamento_listas.py | pedrohd21/Cursos-Feitos | b223aad83867bfa45ad161d133e33c2c200d42bd | [
"MIT"
] | null | null | null | Curso_Python/Secao2-Python-Basico-Logica-Programacao/37_desempacotamento_listas/37_desempacotamento_listas.py | pedrohd21/Cursos-Feitos | b223aad83867bfa45ad161d133e33c2c200d42bd | [
"MIT"
] | null | null | null | Curso_Python/Secao2-Python-Basico-Logica-Programacao/37_desempacotamento_listas/37_desempacotamento_listas.py | pedrohd21/Cursos-Feitos | b223aad83867bfa45ad161d133e33c2c200d42bd | [
"MIT"
] | null | null | null | """
Desempacotamento de listas em python
"""
lista = ['Luiz', 'Joo', 'Maria', 1, 2, 3, 4, 5]
n1, n2, *n3 = lista #todo: usando a * cria outra lista, e os valores que eu quiser mostrar, comea pelas ultimas
print(n3)
| 31 | 112 | 0.663594 |
6bbde57011fb68c8e0f5a21714cd11c6fd5f094f | 1,177 | py | Python | bot/bot.py | CourTeous33/DiscordBetBot | a65bdfa84566d7617a2f7e5a726a26cf2a5b49b8 | [
"MIT"
] | 1 | 2021-01-04T20:50:38.000Z | 2021-01-04T20:50:38.000Z | bot/bot.py | CourTeous33/DiscordBetBot | a65bdfa84566d7617a2f7e5a726a26cf2a5b49b8 | [
"MIT"
] | null | null | null | bot/bot.py | CourTeous33/DiscordBetBot | a65bdfa84566d7617a2f7e5a726a26cf2a5b49b8 | [
"MIT"
] | null | null | null | # bot.py
import os
import random
import discord
from dotenv import load_dotenv
import commands as cm
import qrys
load_dotenv()
TOKEN = os.getenv('DISCORD_TOKEN')
GUILD = os.getenv('DISCORD_GUILD')
client = discord.Client()
prefix = '$'
client.run(TOKEN)
| 20.649123 | 88 | 0.619371 |
6bc48f1105639594b37bef4cc42c322feae89544 | 1,318 | py | Python | airflow/migrations/versions/86770d1215c0_add_kubernetes_scheduler_uniqueness.py | abhishek-ch/incubator-airflow | 3358551c8e73d9019900f7a85f18ebfd88591450 | [
"Apache-2.0"
] | 4 | 2015-11-12T10:58:54.000Z | 2017-08-05T06:41:36.000Z | airflow/migrations/versions/86770d1215c0_add_kubernetes_scheduler_uniqueness.py | abhishek-ch/incubator-airflow | 3358551c8e73d9019900f7a85f18ebfd88591450 | [
"Apache-2.0"
] | 6 | 2015-12-08T21:41:51.000Z | 2017-11-28T13:24:05.000Z | airflow/migrations/versions/86770d1215c0_add_kubernetes_scheduler_uniqueness.py | abhishek-ch/incubator-airflow | 3358551c8e73d9019900f7a85f18ebfd88591450 | [
"Apache-2.0"
] | 2 | 2015-12-14T11:38:49.000Z | 2018-03-26T15:03:07.000Z | # flake8: noqa
#
# 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
# distrib... | 26.36 | 88 | 0.729135 |
6bc4bf2d5b5985b5f35826eee953cf4a89bb1e53 | 138 | py | Python | petpy/__main__.py | csmarfan/petpy | d5edaea43a6657e6a93a1f01f3dd27e9e8fbb0cf | [
"Apache-2.0"
] | null | null | null | petpy/__main__.py | csmarfan/petpy | d5edaea43a6657e6a93a1f01f3dd27e9e8fbb0cf | [
"Apache-2.0"
] | 2 | 2019-06-19T12:16:12.000Z | 2019-06-19T12:38:02.000Z | petpy/__main__.py | csmarfan/petpy | d5edaea43a6657e6a93a1f01f3dd27e9e8fbb0cf | [
"Apache-2.0"
] | 1 | 2019-06-19T12:27:06.000Z | 2019-06-19T12:27:06.000Z | import sys
from .petpy import gardner
if __name__=='__main__':
main()
| 13.8 | 26 | 0.637681 |
6bc5c3c8ad41b9e3ab17bceffccd95fe645a515a | 5,037 | py | Python | PhaseI/DataPreparation/monitor_HRRR_forecast_rainfall.py | uva-hydroinformatics-lab/FloodWarningModelProject | b7db75943a6e1dc8dd5799cb069612e3d188911a | [
"MIT"
] | 2 | 2019-05-07T09:01:18.000Z | 2019-05-07T09:01:21.000Z | PhaseI/DataPreparation/monitor_HRRR_forecast_rainfall.py | uva-hydroinformatics-lab/FloodWarningModelProject | b7db75943a6e1dc8dd5799cb069612e3d188911a | [
"MIT"
] | null | null | null | PhaseI/DataPreparation/monitor_HRRR_forecast_rainfall.py | uva-hydroinformatics-lab/FloodWarningModelProject | b7db75943a6e1dc8dd5799cb069612e3d188911a | [
"MIT"
] | 1 | 2018-05-03T17:15:02.000Z | 2018-05-03T17:15:02.000Z | from pydap.client import open_url
from pydap.exceptions import ServerError
import subprocess
import boto.ec2
import datetime as dt
import numpy as np
import csv
import schedule
import time
"""
Global parameters:
-Study area location (LL and UR corners of TUFLOW model bounds)
-Initial and avera... | 35.723404 | 105 | 0.600953 |
6bc61e068e959137aa36d8d2d5734023051dfbb7 | 678 | py | Python | farmer/ncc/augmentation/segmentation_aug.py | aiorhiroki/farmer.tf2 | 5d78f4b47b753ab2d595829c17fef7c6061235b5 | [
"Apache-2.0"
] | 10 | 2019-04-04T07:32:47.000Z | 2021-01-07T00:40:50.000Z | farmer/ncc/augmentation/segmentation_aug.py | aiorhiroki/farmer | cf3bb93173efbf4a34b782be9faf40c707152ab8 | [
"Apache-2.0"
] | 59 | 2019-04-18T05:44:31.000Z | 2021-05-02T10:33:02.000Z | farmer/ncc/augmentation/segmentation_aug.py | aiorhiroki/farmer.tf2 | 5d78f4b47b753ab2d595829c17fef7c6061235b5 | [
"Apache-2.0"
] | 4 | 2020-01-23T14:01:43.000Z | 2021-02-11T04:16:14.000Z | from .aug_utils import get_aug
from .augment_and_mix import dual_augment_and_mix
import albumentations
| 25.111111 | 65 | 0.631268 |
6bc6410029447c381616875bb772eef8eeeb8473 | 21,234 | py | Python | models/seg_generator/models/seg_model.py | valeoai/SemanticPalette | a1b02a384c09881d6f1ca1a0c0ebfd87278c3d7d | [
"Apache-2.0"
] | 17 | 2021-07-15T13:22:31.000Z | 2022-02-15T05:37:51.000Z | models/seg_generator/models/seg_model.py | valeoai/SemanticPalette | a1b02a384c09881d6f1ca1a0c0ebfd87278c3d7d | [
"Apache-2.0"
] | null | null | null | models/seg_generator/models/seg_model.py | valeoai/SemanticPalette | a1b02a384c09881d6f1ca1a0c0ebfd87278c3d7d | [
"Apache-2.0"
] | 3 | 2021-07-16T09:25:10.000Z | 2022-01-11T12:36:28.000Z | import torch
import torch.nn.functional as F
from ..models.progressive import ProGANGenerator, ProGANDiscriminator
from ..modules.gan_loss import ImprovedWGANLoss
from ..modules.instance_refiner import InstanceRefiner
from tools.utils import to_cuda
from models import load_network, save_network, print_network
... | 51.790244 | 200 | 0.610059 |
6bc693e9a62ec487309174bee3496e49df5860e6 | 1,204 | py | Python | utils/arguments.py | LiangsLi/Pytorch_Project_Template | d6779351cf3b2f3069f601b7c4d8508316e5ed83 | [
"MIT"
] | 3 | 2019-11-12T11:17:24.000Z | 2021-06-07T06:48:50.000Z | utils/arguments.py | LiangsLi/Pytorch_Project_Template | d6779351cf3b2f3069f601b7c4d8508316e5ed83 | [
"MIT"
] | null | null | null | utils/arguments.py | LiangsLi/Pytorch_Project_Template | d6779351cf3b2f3069f601b7c4d8508316e5ed83 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Created by li huayong on 2019/10/8
# import configargparse as argparse
import os
import torch
import argparse
import yaml
if __name__ == '__main__':
from pprint import pprint
pprint(vars(parse_args()))
| 28 | 96 | 0.642857 |
6bc750a167e0f472ce43e3874c6b0afa920d8be1 | 173 | py | Python | hottbox/utils/validation/__init__.py | adamurban98/hottbox | 26580018ec6d38a1b08266c04ce4408c9e276130 | [
"Apache-2.0"
] | 167 | 2018-05-07T10:31:00.000Z | 2022-02-24T19:20:31.000Z | hottbox/utils/validation/__init__.py | adamurban98/hottbox | 26580018ec6d38a1b08266c04ce4408c9e276130 | [
"Apache-2.0"
] | 19 | 2018-05-10T13:26:39.000Z | 2020-01-31T12:49:27.000Z | hottbox/utils/validation/__init__.py | adamurban98/hottbox | 26580018ec6d38a1b08266c04ce4408c9e276130 | [
"Apache-2.0"
] | 24 | 2018-04-02T17:16:50.000Z | 2021-12-07T06:21:40.000Z | from .checks import is_toeplitz_matrix, is_super_symmetric, is_toeplitz_tensor
__all__ = [
"is_toeplitz_matrix",
"is_super_symmetric",
"is_toeplitz_tensor",
]
| 19.222222 | 78 | 0.757225 |
6bcf8bea70fc48c69e00f77e17e050348b68ff77 | 479 | py | Python | config/config.py | SchoolPower/SchoolPower-Backend | 0a44fd7680957cac2a90395744a168e7dffff99c | [
"Apache-2.0"
] | 2 | 2017-09-01T07:58:42.000Z | 2018-04-29T08:05:58.000Z | config/config.py | SchoolPower/SchoolPower-Backend | 0a44fd7680957cac2a90395744a168e7dffff99c | [
"Apache-2.0"
] | null | null | null | config/config.py | SchoolPower/SchoolPower-Backend | 0a44fd7680957cac2a90395744a168e7dffff99c | [
"Apache-2.0"
] | 1 | 2018-05-01T16:25:14.000Z | 2018-05-01T16:25:14.000Z | import os
import sys
TOPIC = 'studio.schoolpower.SchoolPower'
PS_API = 'https://powerschool.mapleleaf.cn'
CACHE_DB_LOCATION = os.environ.get("CACHE_DB_LOCATION", None)
DB_LOCATION = os.environ.get('DB_LOCATION', 'users.db')
PEM_FILE_PATH = os.environ.get("APNS_CERT_FILE", None)
SECRET = os.environ.get("SECRET", "test"... | 34.214286 | 86 | 0.734864 |
6bd0902adadf7df515913b52171b1675bbcb0d41 | 1,277 | py | Python | train.py | allenye0119/PPO-pytorch | 32f8934203db9ec25620244d7c0fbc2d3a86230b | [
"MIT"
] | 1 | 2018-11-06T14:07:31.000Z | 2018-11-06T14:07:31.000Z | train.py | allenye0119/PPO-pytorch | 32f8934203db9ec25620244d7c0fbc2d3a86230b | [
"MIT"
] | null | null | null | train.py | allenye0119/PPO-pytorch | 32f8934203db9ec25620244d7c0fbc2d3a86230b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
from box import Box
import numpy as np
import torch
import gym
from model import Model
from trainer import Trainer
if __name__ == '__main__':
print('Loading config...')
config_path = sys.argv[1]
with open(config_path, 'r') as config_f:
config = Box.fro... | 26.604167 | 67 | 0.655442 |
6bd13573370ac90140341288aa969c676558720f | 1,421 | py | Python | custom/migrations/0003_auto_20181001_1734.py | rexhepberlajolli/Insurance | 8a179976bfb3d9c476d8fc415c8dd7fc0face434 | [
"MIT"
] | null | null | null | custom/migrations/0003_auto_20181001_1734.py | rexhepberlajolli/Insurance | 8a179976bfb3d9c476d8fc415c8dd7fc0face434 | [
"MIT"
] | 23 | 2018-10-02T20:16:29.000Z | 2022-03-24T03:55:46.000Z | custom/migrations/0003_auto_20181001_1734.py | rexhepberlajolli/Insurance | 8a179976bfb3d9c476d8fc415c8dd7fc0face434 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.1 on 2018-10-01 17:34
import django.contrib.postgres.fields
from django.db import migrations, models
import uuid
| 36.435897 | 245 | 0.589022 |
6bd181d5bab6a6cc59c0bc66ddbf84f7659bdd8a | 9,159 | py | Python | scraping/fpl_gameweek.py | Fournierp/FPL | 6210c6ab9d872b46a10804ba8ee9f5d0df735308 | [
"Apache-2.0"
] | 2 | 2021-12-06T10:36:15.000Z | 2022-03-01T19:12:05.000Z | scraping/fpl_gameweek.py | Fournierp/FPL | 6210c6ab9d872b46a10804ba8ee9f5d0df735308 | [
"Apache-2.0"
] | null | null | null | scraping/fpl_gameweek.py | Fournierp/FPL | 6210c6ab9d872b46a10804ba8ee9f5d0df735308 | [
"Apache-2.0"
] | null | null | null | import os
import sys
import requests
import logging
import time
import json
import pandas as pd
import numpy as np
from concurrent.futures import ProcessPoolExecutor
from git import Git
if __name__ == "__main__":
logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(message)s")
logger: logging.L... | 33.797048 | 107 | 0.541653 |
6bd719864180b59c3d21d158c7f7b73ceb5e6694 | 1,040 | py | Python | tests/unit/chroma_core/lib/storage_plugin/subscription_plugin.py | beevans/integrated-manager-for-lustre | 6b7e49b8a58058e6139ad815a4388f21a581dfa0 | [
"MIT"
] | 52 | 2018-09-13T03:26:23.000Z | 2022-03-25T16:51:37.000Z | tests/unit/chroma_core/lib/storage_plugin/subscription_plugin.py | beevans/integrated-manager-for-lustre | 6b7e49b8a58058e6139ad815a4388f21a581dfa0 | [
"MIT"
] | 1,264 | 2018-06-15T19:50:57.000Z | 2022-03-28T08:19:04.000Z | tests/unit/chroma_core/lib/storage_plugin/subscription_plugin.py | beevans/integrated-manager-for-lustre | 6b7e49b8a58058e6139ad815a4388f21a581dfa0 | [
"MIT"
] | 27 | 2018-06-18T08:51:59.000Z | 2022-03-16T15:35:34.000Z | from chroma_core.lib.storage_plugin.api import attributes
from chroma_core.lib.storage_plugin.api.identifiers import GlobalId, ScopedId
from chroma_core.lib.storage_plugin.api.plugin import Plugin
from chroma_core.lib.storage_plugin.api import resources
from chroma_core.lib.storage_plugin.api import relations
version ... | 26.666667 | 95 | 0.722115 |
6bd80e24fc1630e79ebce78655c26b6a79cf443e | 4,668 | py | Python | FlappyBot.py | HTeker/Flappy-Bird-Q-Learning | 39156f2099c0b2573a62695bf0481c510719bbbc | [
"MIT"
] | null | null | null | FlappyBot.py | HTeker/Flappy-Bird-Q-Learning | 39156f2099c0b2573a62695bf0481c510719bbbc | [
"MIT"
] | null | null | null | FlappyBot.py | HTeker/Flappy-Bird-Q-Learning | 39156f2099c0b2573a62695bf0481c510719bbbc | [
"MIT"
] | null | null | null | import math
import json | 33.582734 | 115 | 0.574336 |
6bd88c3ebeb6be89ecc6b48f2f8cb1de2882b211 | 1,865 | py | Python | google_or_tools/knapsack_cp_sat.py | tias/hakank | 87b7f180c9393afce440864eb9e5fb119bdec1a4 | [
"MIT"
] | 279 | 2015-01-10T09:55:35.000Z | 2022-03-28T02:34:03.000Z | google_or_tools/knapsack_cp_sat.py | tias/hakank | 87b7f180c9393afce440864eb9e5fb119bdec1a4 | [
"MIT"
] | 10 | 2017-10-05T15:48:50.000Z | 2021-09-20T12:06:52.000Z | google_or_tools/knapsack_cp_sat.py | tias/hakank | 87b7f180c9393afce440864eb9e5fb119bdec1a4 | [
"MIT"
] | 83 | 2015-01-20T03:44:00.000Z | 2022-03-13T23:53:06.000Z | # Copyright 2021 Hakan Kjellerstrand hakank@gmail.com
#
# 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 ... | 24.539474 | 74 | 0.688472 |
6bd8d936f14c4e1b165c0128695dd658f0631455 | 5,855 | py | Python | slack/io/requests.py | autoferrit/slack-sansio | 3b4d25e0c96745657cffe13699bf74304c74b026 | [
"MIT"
] | null | null | null | slack/io/requests.py | autoferrit/slack-sansio | 3b4d25e0c96745657cffe13699bf74304c74b026 | [
"MIT"
] | null | null | null | slack/io/requests.py | autoferrit/slack-sansio | 3b4d25e0c96745657cffe13699bf74304c74b026 | [
"MIT"
] | null | null | null | import json
import time
import logging
import requests
import websocket
from . import abc
from .. import events, sansio, methods, exceptions
LOG = logging.getLogger(__name__)
| 30.336788 | 110 | 0.568745 |
6bdabddf24475c6a7309d4c9ef42f919cb418158 | 250 | py | Python | bdsim/blocks/__init__.py | petercorke/bdsim | 0b6afee0ae889e39a4be036f2aea8c2261cce0f8 | [
"MIT"
] | 64 | 2020-05-24T01:07:41.000Z | 2022-02-27T10:31:07.000Z | bdsim/blocks/__init__.py | petercorke/bdsim | 0b6afee0ae889e39a4be036f2aea8c2261cce0f8 | [
"MIT"
] | 6 | 2020-06-14T10:48:29.000Z | 2022-02-12T08:30:44.000Z | bdsim/blocks/__init__.py | petercorke/bdsim | 0b6afee0ae889e39a4be036f2aea8c2261cce0f8 | [
"MIT"
] | 17 | 2020-06-13T18:53:53.000Z | 2022-01-10T14:42:51.000Z | from .functions import *
from .sources import *
from .sinks import *
from .transfers import *
from .discrete import *
from .linalg import *
from .displays import *
from .connections import *
url = "https://petercorke.github.io/bdsim/" + __package__
| 22.727273 | 57 | 0.74 |
6bdbdcb7e6fae6f5f43d9d2e29566ae137ee8fda | 844 | py | Python | temp/msgManager.py | f0lg0/pyChat | abade1f8a99d7eb38634b59622726a401dbab575 | [
"MIT"
] | 13 | 2020-06-30T18:59:24.000Z | 2022-03-09T17:57:49.000Z | temp/msgManager.py | f0lg0/pyChat | abade1f8a99d7eb38634b59622726a401dbab575 | [
"MIT"
] | 1 | 2021-01-18T19:58:50.000Z | 2021-01-18T20:00:22.000Z | temp/msgManager.py | f0lg0/pyChat | abade1f8a99d7eb38634b59622726a401dbab575 | [
"MIT"
] | 5 | 2020-06-30T19:06:48.000Z | 2022-03-12T21:47:29.000Z | #Will add a fixed header and return a sendable string (we should add pickle support here at some point somehow), also encodes the message for you
#streams data from the 'target' socket with an initial buffersize of 'bufferSize' (returns the decoded data)
| 28.133333 | 146 | 0.652844 |
6bdcc333baa696834a6f60e9431421020f6f9298 | 762 | py | Python | L1TriggerConfig/L1ScalesProducers/python/L1CaloScalesConfig_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | L1TriggerConfig/L1ScalesProducers/python/L1CaloScalesConfig_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | L1TriggerConfig/L1ScalesProducers/python/L1CaloScalesConfig_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
from L1TriggerConfig.L1ScalesProducers.l1CaloScales_cfi import *
emrcdsrc = cms.ESSource("EmptyESSource",
recordName = cms.string('L1EmEtScaleRcd'),
iovIsRunNotTime = cms.bool(True),
firstValid = cms.vuint32(1)
)
jetrcdsrc = cms.ESSource("EmptyESSource",
record... | 26.275862 | 64 | 0.723097 |
6bdddfe44201c8fae58d93801e71ec2fd2b73136 | 3,668 | py | Python | enhancements/predict.py | Tim-orius/CSENDistance | 69668ee89edcff92964393547f6f7a34909fbf48 | [
"MIT"
] | 3 | 2021-11-24T21:38:11.000Z | 2022-01-24T13:57:07.000Z | enhancements/predict.py | Tim-orius/CSENDistance | 69668ee89edcff92964393547f6f7a34909fbf48 | [
"MIT"
] | null | null | null | enhancements/predict.py | Tim-orius/CSENDistance | 69668ee89edcff92964393547f6f7a34909fbf48 | [
"MIT"
] | 1 | 2022-01-17T14:09:40.000Z | 2022-01-17T14:09:40.000Z | import numpy as np
from sklearn.preprocessing import StandardScaler
import scipy.io
import tensorflow as tf
tf.random.set_seed(10)
import os
import sys
sys.path.append('../')
from csen_regressor import model
import argparse
from sklearn.model_selection import train_test_split
# INITIALIZATION
# construct the argument... | 30.823529 | 107 | 0.700654 |
6bdeb8952e145c4fda381df27983fc8d9df47adf | 375 | py | Python | app/sms_bot/sms_test.py | d3F0g/ESD-G7T1 | 166d718c6ed3433a7461301e3a7c36a0fe12055f | [
"MIT"
] | null | null | null | app/sms_bot/sms_test.py | d3F0g/ESD-G7T1 | 166d718c6ed3433a7461301e3a7c36a0fe12055f | [
"MIT"
] | null | null | null | app/sms_bot/sms_test.py | d3F0g/ESD-G7T1 | 166d718c6ed3433a7461301e3a7c36a0fe12055f | [
"MIT"
] | null | null | null | import os
from twilio.rest import Client
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)
message = client.messages \
.create(
body='This is the ship that made the Kessel Run in fourteen parsecs?',
from_='+15017122661',
... | 20.833333 | 79 | 0.698667 |
6be11fbead11fcb81f2ef968873ca42c8b19679c | 3,127 | py | Python | auth/application/user_service.py | nicolaszein/auth | 90112f1a4d6f368714b19daad7e8a4226594b383 | [
"MIT"
] | null | null | null | auth/application/user_service.py | nicolaszein/auth | 90112f1a4d6f368714b19daad7e8a4226594b383 | [
"MIT"
] | null | null | null | auth/application/user_service.py | nicolaszein/auth | 90112f1a4d6f368714b19daad7e8a4226594b383 | [
"MIT"
] | null | null | null | import uuid
from auth.application.exception import InvalidCredentials, UserNotActivated
from auth.domain.user import User
from auth.infrastructure.password import Password
from auth.infrastructure.token import Token
from auth.infrastructure.user_adapter import UserAdapter
| 35.134831 | 99 | 0.721458 |
6be1c77316aa7c95dddaffa64c782780a8fdefed | 6,001 | py | Python | coopihc/inference/BaseInferenceEngine.py | jgori-ouistiti/CoopIHC | 0fe24c618a430517c1394625275faff3ce344f7f | [
"MIT"
] | null | null | null | coopihc/inference/BaseInferenceEngine.py | jgori-ouistiti/CoopIHC | 0fe24c618a430517c1394625275faff3ce344f7f | [
"MIT"
] | 52 | 2021-11-23T13:49:50.000Z | 2022-03-15T12:28:18.000Z | coopihc/inference/BaseInferenceEngine.py | jgori-ouistiti/CoopIHC | 0fe24c618a430517c1394625275faff3ce344f7f | [
"MIT"
] | 1 | 2022-03-08T11:10:24.000Z | 2022-03-08T11:10:24.000Z | from collections import OrderedDict
# Base Inference Engine: does nothing but return the same state. Any new inference method can subclass InferenceEngine to have a buffer and add_observation method (required by the bundle)
def add_observation(self, observation):
"""add observation
Add an observ... | 30.461929 | 253 | 0.6009 |
6be2face076e8b3accb63a8d1177e6d440d63b46 | 939 | py | Python | src/structurizr/mixin/childless_mixin.py | xolynrac/examen_final_4c | dfa19b44fee6a17b7efc5630f1c8580aabc549e9 | [
"Apache-2.0"
] | 47 | 2020-04-26T20:00:03.000Z | 2022-02-19T14:32:04.000Z | src/structurizr/mixin/childless_mixin.py | xolynrac/examen_final_4c | dfa19b44fee6a17b7efc5630f1c8580aabc549e9 | [
"Apache-2.0"
] | 84 | 2020-05-25T14:49:21.000Z | 2022-01-26T01:55:04.000Z | src/structurizr/mixin/childless_mixin.py | xolynrac/examen_final_4c | dfa19b44fee6a17b7efc5630f1c8580aabc549e9 | [
"Apache-2.0"
] | 14 | 2020-07-01T11:03:25.000Z | 2022-01-11T06:37:31.000Z | # Copyright (c) 2020
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softwar... | 30.290323 | 76 | 0.729499 |
6be3d79eb474d7475c7414dc029b636159bd7a12 | 1,536 | py | Python | S2.Surface_Normal/unet/unet_model.py | leoshine/Spherical_Regression | d19bc2f6f52982d4d58f5ddabe4231381d7facd7 | [
"BSD-2-Clause-FreeBSD"
] | 133 | 2019-04-12T20:52:08.000Z | 2021-12-09T06:34:39.000Z | S2.Surface_Normal/unet/unet_model.py | QUVA-Lab/Spherical_Regression | 6a3b2a19d00f27f2417cb9f2fe21df5963def5b3 | [
"BSD-2-Clause-FreeBSD"
] | 11 | 2019-06-21T04:07:04.000Z | 2022-03-03T07:48:41.000Z | S2.Surface_Normal/unet/unet_model.py | QUVA-Lab/Spherical_Regression | 6a3b2a19d00f27f2417cb9f2fe21df5963def5b3 | [
"BSD-2-Clause-FreeBSD"
] | 16 | 2019-04-18T15:55:48.000Z | 2021-12-14T09:01:57.000Z | """
@Author : Shuai Liao
"""
# full assembly of the sub-parts to form the complete net
import numpy as np
from unet_parts import *
if __name__ == '__main__':
model = UNet(n_channels=3, n_classes=1)
# import numpy as np
dummy_batch_data = np.zeros((2,3,224,224),dtype=np.float32)
dummy_batch_data ... | 26.947368 | 64 | 0.553385 |
6be3ede726b1e64bebafd58df94260e254ba04e4 | 6,635 | py | Python | build/markdown_utils.py | NDevTK/cel | e97226416b6e12245564bfc1c3631d610d62f052 | [
"BSD-3-Clause"
] | null | null | null | build/markdown_utils.py | NDevTK/cel | e97226416b6e12245564bfc1c3631d610d62f052 | [
"BSD-3-Clause"
] | null | null | null | build/markdown_utils.py | NDevTK/cel | e97226416b6e12245564bfc1c3631d610d62f052 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import print_function
import difflib
import logging
import os
import re
import textwrap
def ProcessIncludesInConten... | 31.29717 | 102 | 0.651696 |
6be5e795f5242181eb44268261a775ef5fe280af | 3,679 | py | Python | common/Request_Package.py | Four-sun/Requests_Load | 472f3f6d9bd407f1c4ed30a5557ec141e2434188 | [
"Apache-2.0"
] | null | null | null | common/Request_Package.py | Four-sun/Requests_Load | 472f3f6d9bd407f1c4ed30a5557ec141e2434188 | [
"Apache-2.0"
] | null | null | null | common/Request_Package.py | Four-sun/Requests_Load | 472f3f6d9bd407f1c4ed30a5557ec141e2434188 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created: on 2018-04-11
@author: Four
Project: common\Request_Package.py
Request
"""
import json
import time
from common.log import Logger
Logger_Message = Logger()
send_time=time.strftime("%Y-%m-%d-%H_%M_%S",time.localtime(time.time())) #
def send_requests(s, testdata, cookie=None,):
... | 33.445455 | 173 | 0.544985 |
6bea0b523f00b0e10c188dff6116fb32a31bf903 | 1,585 | py | Python | copy.py | tzuryby/copyip | 31f32bbf7615308f2f80b4632157e4bfb207c693 | [
"Apache-2.0"
] | null | null | null | copy.py | tzuryby/copyip | 31f32bbf7615308f2f80b4632157e4bfb207c693 | [
"Apache-2.0"
] | null | null | null | copy.py | tzuryby/copyip | 31f32bbf7615308f2f80b4632157e4bfb207c693 | [
"Apache-2.0"
] | null | null | null |
import sys
import os
import urllib2
from bs4 import BeautifulSoup as bsoup
print sys.argv
if len(sys.argv) < 3:
print "Usage example: python copy.py Netflix /path/to/target-repo-directory"
sys.exit(1)
orgurl = sys.argv[1]
targetdir = sys.argv[2]
orgurl = "https://www.github.com/%s?page=1" % orgurl
print "... | 25.15873 | 102 | 0.702208 |
6bea332ba0e011a3d57549e2e8dc5c7c34aff05f | 3,993 | py | Python | bmstu_project/student/forms.py | TrungLuong1194/django-student-management | 5fabcad86eb1067c48c3b5f25e6a6a9e37571a6a | [
"MIT"
] | 1 | 2020-07-17T14:10:50.000Z | 2020-07-17T14:10:50.000Z | bmstu_project/student/forms.py | TrungLuong1194/django-student-management | 5fabcad86eb1067c48c3b5f25e6a6a9e37571a6a | [
"MIT"
] | null | null | null | bmstu_project/student/forms.py | TrungLuong1194/django-student-management | 5fabcad86eb1067c48c3b5f25e6a6a9e37571a6a | [
"MIT"
] | null | null | null | from django import forms
from student.models import Major, UserProfile
from django.contrib.auth.models import User
| 38.76699 | 79 | 0.78287 |
6bebaf90bd15c0134f852db0621fb4a1fed9268b | 264 | py | Python | colorizer/__main__.py | danbradham/colorizer | 0071f7fdfa3d88e024103e585c8c194877176c8f | [
"MIT"
] | 2 | 2020-03-26T14:37:42.000Z | 2020-06-20T23:04:52.000Z | colorizer/__main__.py | danbradham/colorizer | 0071f7fdfa3d88e024103e585c8c194877176c8f | [
"MIT"
] | null | null | null | colorizer/__main__.py | danbradham/colorizer | 0071f7fdfa3d88e024103e585c8c194877176c8f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Standard library imports
import sys
# Third party imports
from Qt import QtWidgets
# Local imports
from .ui import Dialog
if __name__ == '__main__':
app = QtWidgets.QApplication(sys.argv)
d = Dialog()
sys.exit(d.exec_())
| 15.529412 | 42 | 0.674242 |
6bec3491894eabe6b9c96d032fabf8dc9eaab0cc | 4,258 | py | Python | module1-introduction-to-sql/rpg_queries.py | JimKing100/DS-Unit-3-Sprint-2-SQL-and-Databases | 657758bd4edf2df5ede64e0a0f542c477f70a551 | [
"MIT"
] | null | null | null | module1-introduction-to-sql/rpg_queries.py | JimKing100/DS-Unit-3-Sprint-2-SQL-and-Databases | 657758bd4edf2df5ede64e0a0f542c477f70a551 | [
"MIT"
] | null | null | null | module1-introduction-to-sql/rpg_queries.py | JimKing100/DS-Unit-3-Sprint-2-SQL-and-Databases | 657758bd4edf2df5ede64e0a0f542c477f70a551 | [
"MIT"
] | null | null | null | # Imports
import sqlite3
# Queries
query1 = 'SELECT COUNT(character_id) \
FROM charactercreator_character;'
query2a = 'SELECT COUNT(character_ptr_id) \
FROM charactercreator_mage;'
query2b = 'SELECT COUNT(character_ptr_id) \
FROM charactercreator_thief;'
query2c = 'SELECT COUNT(characte... | 32.753846 | 80 | 0.614843 |
6bef6c9538aaf0c45b0c05f749775ee7cc380ffd | 1,697 | py | Python | tests/app/main/views/service_settings/test_inbound_sms_setting.py | karlchillmaid/notifications-admin | 9ef6da4ef9e2fa97b7debb4b573cb035a5cb8880 | [
"MIT"
] | null | null | null | tests/app/main/views/service_settings/test_inbound_sms_setting.py | karlchillmaid/notifications-admin | 9ef6da4ef9e2fa97b7debb4b573cb035a5cb8880 | [
"MIT"
] | null | null | null | tests/app/main/views/service_settings/test_inbound_sms_setting.py | karlchillmaid/notifications-admin | 9ef6da4ef9e2fa97b7debb4b573cb035a5cb8880 | [
"MIT"
] | null | null | null | from flask import url_for
from tests.conftest import normalize_spaces
| 27.370968 | 107 | 0.724808 |
6bf080bfdf8a64a00ceae90b2db608920ca1dc9f | 2,014 | py | Python | examples/set_bucket_policy.py | cheungpat/minio-py | a4d6f27b0b66441170a4c56f7ac1ef0983430bd7 | [
"Apache-2.0"
] | null | null | null | examples/set_bucket_policy.py | cheungpat/minio-py | a4d6f27b0b66441170a4c56f7ac1ef0983430bd7 | [
"Apache-2.0"
] | null | null | null | examples/set_bucket_policy.py | cheungpat/minio-py | a4d6f27b0b66441170a4c56f7ac1ef0983430bd7 | [
"Apache-2.0"
] | 1 | 2018-07-12T19:31:42.000Z | 2018-07-12T19:31:42.000Z | # -*- coding: utf-8 -*-
# Minio Python Library for Amazon S3 Compatible Cloud Storage.
# Copyright (C) 2016 Minio, 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.apac... | 39.490196 | 74 | 0.714499 |
6bf1b8faec412f1cce9606a9643d4de5cc1158b7 | 1,125 | py | Python | 3-Python-Advanced (May 2021)/00-Exams-Prep/03-Python-Advanced-Exam-14-Feb-2021/01-Problem-1.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | 3-Python-Advanced (May 2021)/00-Exams-Prep/03-Python-Advanced-Exam-14-Feb-2021/01-Problem-1.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | 3-Python-Advanced (May 2021)/00-Exams-Prep/03-Python-Advanced-Exam-14-Feb-2021/01-Problem-1.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | # Problem 1
# First, you will be given a sequence of integers representing firework effects. Afterwards you will be given another
# sequence of integers representing explosive power.
# You need to start from the first firework effect and try to mix it with the last explosive power.
# If the sum of their values is:
# d... | 75 | 117 | 0.776 |
6bf2e10ef1c962f287260fbe76454fcdd8f7957d | 6,890 | py | Python | cno/edit_distance.py | CherokeeLanguage/cherokee-audio-data | a10b7b38c0c1b56338561c917cef18a078ca573c | [
"CC0-1.0",
"MIT"
] | 2 | 2021-09-15T19:41:01.000Z | 2022-01-12T17:57:08.000Z | cno/edit_distance.py | CherokeeLanguage/cherokee-audio-data | a10b7b38c0c1b56338561c917cef18a078ca573c | [
"CC0-1.0",
"MIT"
] | 1 | 2021-10-08T18:06:29.000Z | 2021-10-08T18:48:44.000Z | cno/edit_distance.py | CherokeeLanguage/cherokee-audio-data | a10b7b38c0c1b56338561c917cef18a078ca573c | [
"CC0-1.0",
"MIT"
] | null | null | null | #!/usr/bin/env python3
if __name__ == "__main__":
import os
import sys
import csv
import re
dname = os.path.dirname(sys.argv[0])
if len(dname) > 0:
os.chdir(dname)
syllabaryList: tuple = (
"syllabaryb", 'nounadjpluralsyllf', 'vfirstpresh', 'vsecondimpersylln', 'vthirdinfsyllp'... | 40.529412 | 112 | 0.498839 |
6bf44da783424910fd5398cf483e2be80ee83e20 | 3,799 | py | Python | afgraph/evolve/evolution_tree.py | TNonet/afgraph | e5b0fc57b3301d1560cba8b131a5371a5f4f96b5 | [
"MIT"
] | null | null | null | afgraph/evolve/evolution_tree.py | TNonet/afgraph | e5b0fc57b3301d1560cba8b131a5371a5f4f96b5 | [
"MIT"
] | null | null | null | afgraph/evolve/evolution_tree.py | TNonet/afgraph | e5b0fc57b3301d1560cba8b131a5371a5f4f96b5 | [
"MIT"
] | null | null | null | from ..function.node import *
from ..function.tree import *
import numpy as np
| 31.658333 | 114 | 0.614635 |
6bf4b8a52f02323e9d369817916df449609a7046 | 3,772 | py | Python | blackpill/current/lib/grblcontrol.py | fedor2018/my_upython | f334d78959e30ee41de784121edd4276d5980a60 | [
"Unlicense"
] | null | null | null | blackpill/current/lib/grblcontrol.py | fedor2018/my_upython | f334d78959e30ee41de784121edd4276d5980a60 | [
"Unlicense"
] | null | null | null | blackpill/current/lib/grblcontrol.py | fedor2018/my_upython | f334d78959e30ee41de784121edd4276d5980a60 | [
"Unlicense"
] | null | null | null | from grbl import *
from pyb import I2C, delay, millis
from pyb_i2c_lcd import I2cLcd
from lcd_v_minus import *
import time
"""
X
01234567890123456789
X=-xxx.xx F=xxxx* W
Y=-xxx.xx S=xxxx* FM
Z=-xxx.xx Idle. XYZP
message
---------------------
* override
F - feed
S - spindle
W - coordinate W M O
FM - flood mist
... | 27.136691 | 93 | 0.514581 |
6bf62c07f0cb54b97e8948b7bf4b698f8f719e5f | 1,685 | py | Python | dragon_cache_manager/management/commands/load_test_cache.py | Lenders-Cooperative/django-dragon | ce364eeb48df995d00a87eaac6ca69debfb77e62 | [
"BSD-3-Clause"
] | null | null | null | dragon_cache_manager/management/commands/load_test_cache.py | Lenders-Cooperative/django-dragon | ce364eeb48df995d00a87eaac6ca69debfb77e62 | [
"BSD-3-Clause"
] | null | null | null | dragon_cache_manager/management/commands/load_test_cache.py | Lenders-Cooperative/django-dragon | ce364eeb48df995d00a87eaac6ca69debfb77e62 | [
"BSD-3-Clause"
] | null | null | null | import random
from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
from django.core.cache import caches
| 39.186047 | 110 | 0.590504 |
6bf6ff73615a07ab5bdfdc7cbe3744532b49cd92 | 2,023 | py | Python | digit-dataset/k-means.py | MasayukiHigashi/CAT | b2690e8d7b8bf0d36422bb9be5feb693d8639c32 | [
"MIT"
] | 19 | 2019-07-31T03:21:03.000Z | 2021-11-15T12:33:42.000Z | digit-dataset/k-means.py | MasayukiHigashi/CAT | b2690e8d7b8bf0d36422bb9be5feb693d8639c32 | [
"MIT"
] | 3 | 2019-08-04T04:11:13.000Z | 2021-01-20T14:47:23.000Z | digit-dataset/k-means.py | MasayukiHigashi/CAT | b2690e8d7b8bf0d36422bb9be5feb693d8639c32 | [
"MIT"
] | 9 | 2019-08-03T15:20:37.000Z | 2021-04-10T22:28:48.000Z | import numpy as np
from sklearn.cluster import KMeans
num_classes = 10
dirr = "./"
cat = np.load(dirr+"features_cat.npz")
rev = np.load(dirr+"features_rev.npz")
mstn = np.load(dirr+"features_mstn.npz")
cat_pred = KMeans(n_clusters=num_classes, n_jobs=-1).fit_predict(np.concatenate([cat['x1'],cat['x2']] , 0))
cat_labe... | 30.19403 | 109 | 0.634207 |
6bf7fad60bd6530f2448ecde08c56c91a702e06b | 665 | py | Python | prob_046.py | tansly/euler | 8b420cb05223cf60b6c01aac9bfe8ce5a3b96ddc | [
"MIT"
] | 1 | 2017-02-13T19:00:59.000Z | 2017-02-13T19:00:59.000Z | prob_046.py | tansly/euler | 8b420cb05223cf60b6c01aac9bfe8ce5a3b96ddc | [
"MIT"
] | null | null | null | prob_046.py | tansly/euler | 8b420cb05223cf60b6c01aac9bfe8ce5a3b96ddc | [
"MIT"
] | null | null | null |
n = 9
found = False
while not found:
if not checkPrime(n):
i = 2
while i <= n - 2:
if checkPrime(i) and checksq(n, i):
break
else:
i += 1
if i == n - 1:
found = True
if not found:
n += 2
print n
| 19 | 58 | 0.389474 |
6bf89f8df6976df53c1f6ba49374d7b04b91987a | 1,392 | py | Python | utils/data/common_voice.py | luweishuang/rnnt-speech-recognition | cfa550495bf1a1cab3683f5196885d3bce8a90be | [
"MIT"
] | null | null | null | utils/data/common_voice.py | luweishuang/rnnt-speech-recognition | cfa550495bf1a1cab3683f5196885d3bce8a90be | [
"MIT"
] | null | null | null | utils/data/common_voice.py | luweishuang/rnnt-speech-recognition | cfa550495bf1a1cab3683f5196885d3bce8a90be | [
"MIT"
] | null | null | null | import os
import tensorflow as tf
from .. import preprocessing
| 33.142857 | 120 | 0.668103 |
6bfd4a70b31deb9c33bb558b7d3f81259b05673a | 27,217 | py | Python | src/rotorse/virtual_factory.py | Ben-Mertz/RotorSE | b0a48e09c432f4475a5cdd682661ab0510d5a240 | [
"Apache-2.0"
] | null | null | null | src/rotorse/virtual_factory.py | Ben-Mertz/RotorSE | b0a48e09c432f4475a5cdd682661ab0510d5a240 | [
"Apache-2.0"
] | null | null | null | src/rotorse/virtual_factory.py | Ben-Mertz/RotorSE | b0a48e09c432f4475a5cdd682661ab0510d5a240 | [
"Apache-2.0"
] | null | null | null |
import numpy as np
import math
| 77.321023 | 279 | 0.588088 |
6bfd8018da3b1e7e079cf5a1debfffc1f8000b98 | 1,794 | py | Python | core/funcs.py | MrSpaar/Hikari-PolyBot | 54ef585cf773829160a42d2751b1534da1b973d5 | [
"BSD-3-Clause"
] | 4 | 2021-09-26T11:13:21.000Z | 2022-02-27T15:08:38.000Z | core/funcs.py | MrSpaar/Hikari-PolyBot | 54ef585cf773829160a42d2751b1534da1b973d5 | [
"BSD-3-Clause"
] | null | null | null | core/funcs.py | MrSpaar/Hikari-PolyBot | 54ef585cf773829160a42d2751b1534da1b973d5 | [
"BSD-3-Clause"
] | null | null | null | from hikari import Permissions
from lightbulb import Context, Check, errors
from datetime import datetime, timedelta
from unicodedata import normalize
from aiohttp import ClientSession
from typing import Union
from os import environ
def normalize_string(s: str) -> str:
return normalize(u"NFKD", s).encode("asci... | 30.931034 | 146 | 0.687291 |
6bff350f518f439e181a5a3b43b8b57339abb3a9 | 96 | py | Python | bitmovin_api_sdk/encoding/filters/watermark/customdata/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 11 | 2019-07-03T10:41:16.000Z | 2022-02-25T21:48:06.000Z | bitmovin_api_sdk/encoding/filters/watermark/customdata/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 8 | 2019-11-23T00:01:25.000Z | 2021-04-29T12:30:31.000Z | bitmovin_api_sdk/encoding/filters/watermark/customdata/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 13 | 2020-01-02T14:58:18.000Z | 2022-03-26T12:10:30.000Z | from bitmovin_api_sdk.encoding.filters.watermark.customdata.customdata_api import CustomdataApi
| 48 | 95 | 0.90625 |
6bff94374d1c3418f2f616b2dab661a86acc6ce0 | 19,067 | py | Python | bindings/ast.py | idobatter/PythonJS | 0161dd5aba6caeaf5b06e74cc8524efd04a36143 | [
"BSD-3-Clause"
] | 1 | 2015-11-06T02:36:29.000Z | 2015-11-06T02:36:29.000Z | bindings/ast.py | idobatter/PythonJS | 0161dd5aba6caeaf5b06e74cc8524efd04a36143 | [
"BSD-3-Clause"
] | null | null | null | bindings/ast.py | idobatter/PythonJS | 0161dd5aba6caeaf5b06e74cc8524efd04a36143 | [
"BSD-3-Clause"
] | null | null | null | # Brython AST to Python AST Bridge
# by Brett Hartshorn - copyright 2013
# License: "New BSD"
_decorators = []
_operators = {
'+' : Add,
'-' : Sub,
'/' : Div,
'//': FloorDiv,
'*' : Mult,
'%' : Mod,
'**': Pow,
'<<': LShift,
'>>': RShift,
'|' : BitOr,
'^' : BitXor,
'&' : BitAnd,
'==': Eq,
'!=': NotEq,
'<... | 22.671819 | 131 | 0.639744 |
d4006dca0b09b33e1610f0342bc71d08e20b023c | 2,704 | py | Python | leetcode/lessons/binary_search/004_median_of_two_sorted_arrays/__init__.py | wangkuntian/leetcode | e8dc9c8032c805a7d071ad19b94841ee8e52e834 | [
"MIT"
] | null | null | null | leetcode/lessons/binary_search/004_median_of_two_sorted_arrays/__init__.py | wangkuntian/leetcode | e8dc9c8032c805a7d071ad19b94841ee8e52e834 | [
"MIT"
] | 2 | 2020-03-24T18:00:21.000Z | 2020-03-26T11:33:51.000Z | leetcode/lessons/binary_search/004_median_of_two_sorted_arrays/__init__.py | wangkuntian/leetcode | e8dc9c8032c805a7d071ad19b94841ee8e52e834 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__project__ = 'leetcode'
__file__ = '__init__.py'
__author__ = 'king'
__time__ = '2020/2/10 14:40'
_ooOoo_
o8888888o
88" . "88
(| -_- |)
... | 28.463158 | 78 | 0.37463 |
d4010288139e89f92e7e1a1c715375c19d4b15d5 | 2,779 | py | Python | spira/yevon/gdsii/base.py | JCoetzee123/spira | dae08feba1578ecc8745b45109f4fb7bef374546 | [
"MIT"
] | null | null | null | spira/yevon/gdsii/base.py | JCoetzee123/spira | dae08feba1578ecc8745b45109f4fb7bef374546 | [
"MIT"
] | null | null | null | spira/yevon/gdsii/base.py | JCoetzee123/spira | dae08feba1578ecc8745b45109f4fb7bef374546 | [
"MIT"
] | null | null | null | from spira.core.transformable import Transformable
from spira.core.parameters.initializer import ParameterInitializer
from spira.core.parameters.initializer import MetaInitializer
from spira.core.parameters.descriptor import FunctionParameter
from spira.yevon.process.gdsii_layer import LayerParameter
from spira.core.pa... | 30.877778 | 110 | 0.652033 |
d4017585e20622cc50b2ff4c09c5715513ab989a | 353 | py | Python | torch_enhance/utils.py | lawrence880301/pytorch-enhance | 768875a2a52f1a6274a0d2ab911aec4d4322d498 | [
"Apache-2.0"
] | 25 | 2021-04-28T16:48:59.000Z | 2022-03-30T15:36:34.000Z | torch_enhance/utils.py | lawrence880301/pytorch-enhance | 768875a2a52f1a6274a0d2ab911aec4d4322d498 | [
"Apache-2.0"
] | 11 | 2021-05-12T16:41:43.000Z | 2022-02-18T09:26:38.000Z | torch_enhance/utils.py | lawrence880301/pytorch-enhance | 768875a2a52f1a6274a0d2ab911aec4d4322d498 | [
"Apache-2.0"
] | 8 | 2021-05-12T09:23:06.000Z | 2022-02-10T17:04:38.000Z | import torchvision
__all__ = ["plot_compare"]
def plot_compare(sr, hr, baseline, filename):
"""
Plot Super-Resolution and High-Resolution image comparison
"""
sr, hr, baseline = sr.squeeze(), hr.squeeze(), baseline.squeeze()
grid = torchvision.utils.make_grid([hr, baseline, sr])
torchvision.... | 25.214286 | 69 | 0.696884 |
d401f31b2eefbf0cc8b212fb12bd2127da0e7bfe | 763 | py | Python | util/data_loader.py | chrismachado/ML-IFCE2020.1 | 35310507356711052d4e388830d0f75118bb1ef3 | [
"MIT"
] | null | null | null | util/data_loader.py | chrismachado/ML-IFCE2020.1 | 35310507356711052d4e388830d0f75118bb1ef3 | [
"MIT"
] | null | null | null | util/data_loader.py | chrismachado/ML-IFCE2020.1 | 35310507356711052d4e388830d0f75118bb1ef3 | [
"MIT"
] | null | null | null | import torch
from sklearn.model_selection import train_test_split
from torch.utils.data import TensorDataset, DataLoader
| 40.157895 | 109 | 0.788991 |
d40426202b9b155286b4717780f009edeeea81e4 | 634 | py | Python | tgadmin/santabot/migrations/0004_alter_event_last_register_date_and_more.py | c-Door-in/secret-santa-bot | 1b1e71f76f5673a0b07d55307fa9c3dae84f24c5 | [
"MIT"
] | null | null | null | tgadmin/santabot/migrations/0004_alter_event_last_register_date_and_more.py | c-Door-in/secret-santa-bot | 1b1e71f76f5673a0b07d55307fa9c3dae84f24c5 | [
"MIT"
] | null | null | null | tgadmin/santabot/migrations/0004_alter_event_last_register_date_and_more.py | c-Door-in/secret-santa-bot | 1b1e71f76f5673a0b07d55307fa9c3dae84f24c5 | [
"MIT"
] | 1 | 2021-12-22T13:19:52.000Z | 2021-12-22T13:19:52.000Z | # Generated by Django 4.0 on 2021-12-24 20:48
from django.db import migrations, models
| 26.416667 | 82 | 0.626183 |
d404a6a5dde46ee64de57a37cb23a30d29ffa7ea | 3,404 | py | Python | xnmt/simultaneous/simult_state.py | neulab/xnmt | d93f8f3710f986f36eb54e9ff3976a6b683da2a4 | [
"Apache-2.0"
] | 195 | 2017-05-27T11:23:40.000Z | 2021-09-28T06:03:24.000Z | xnmt/simultaneous/simult_state.py | neulab/xnmt | d93f8f3710f986f36eb54e9ff3976a6b683da2a4 | [
"Apache-2.0"
] | 386 | 2017-05-25T23:22:19.000Z | 2020-05-03T13:57:28.000Z | xnmt/simultaneous/simult_state.py | neulab/xnmt | d93f8f3710f986f36eb54e9ff3976a6b683da2a4 | [
"Apache-2.0"
] | 53 | 2017-05-23T17:45:18.000Z | 2021-04-18T12:36:37.000Z | import numbers
import xnmt.tensor_tools as tt
import xnmt.modelparts.decoders as decoders
import xnmt.transducers.recurrent as recurrent
import xnmt.transducers.base as transducers_base
import xnmt.expression_seqs as expr_seq
import xnmt.vocabs as vocabs
| 40.52381 | 96 | 0.668331 |
d406251fe7793c7032b41cb5f7d51aa32f5b3405 | 677 | py | Python | checkov/json_doc/base_json_check.py | pmalkki/checkov | b6cdf386dd976fe27c16fed6d550756a678a5d7b | [
"Apache-2.0"
] | null | null | null | checkov/json_doc/base_json_check.py | pmalkki/checkov | b6cdf386dd976fe27c16fed6d550756a678a5d7b | [
"Apache-2.0"
] | null | null | null | checkov/json_doc/base_json_check.py | pmalkki/checkov | b6cdf386dd976fe27c16fed6d550756a678a5d7b | [
"Apache-2.0"
] | null | null | null | from typing import Iterable, Optional
from checkov.common.checks.base_check import BaseCheck
from checkov.common.models.enums import CheckCategories
from checkov.json_doc.registry import registry
| 33.85 | 118 | 0.672083 |
d407b2431374019136c2486c6cd14c32d8191423 | 1,358 | py | Python | RemoveDuplicatesFromSortedList.py | reedwave/leetcode-cn | dd9367948b39aea31501bd345492aaa16d2640fa | [
"MIT"
] | 1 | 2020-12-21T10:01:48.000Z | 2020-12-21T10:01:48.000Z | RemoveDuplicatesFromSortedList.py | reed-qu/leetcode-cn | dd9367948b39aea31501bd345492aaa16d2640fa | [
"MIT"
] | 7 | 2020-01-23T13:24:07.000Z | 2021-03-30T08:00:09.000Z | RemoveDuplicatesFromSortedList.py | reed-qu/leetcode-cn | dd9367948b39aea31501bd345492aaa16d2640fa | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/12/27 6:04
# @Title : 83.
# @Link : https://leetcode-cn.com/problems/remove-duplicates-from-sorted-list/
QUESTION = """
1:
: 1->1->2
: 1->2
2:
: 1->1->2->3->3
: 1->2->3
"""
THINKING = """
duplicate_nodesListNodepreviousListNode
previousheadval... | 24.25 | 81 | 0.640648 |
d4087f925ec255cdb5d353bbe238dc14c602eddc | 3,159 | py | Python | xldlib/controllers/bindings/core.py | Alexhuszagh/XLDiscoverer | 60937b1f7f2e23af4219eb26519d6b83fb4232d6 | [
"Apache-2.0",
"MIT"
] | null | null | null | xldlib/controllers/bindings/core.py | Alexhuszagh/XLDiscoverer | 60937b1f7f2e23af4219eb26519d6b83fb4232d6 | [
"Apache-2.0",
"MIT"
] | null | null | null | xldlib/controllers/bindings/core.py | Alexhuszagh/XLDiscoverer | 60937b1f7f2e23af4219eb26519d6b83fb4232d6 | [
"Apache-2.0",
"MIT"
] | null | null | null | '''
Controllers/Bindings/core
_________________________
Core ABC with methods to bind QKeySequences to various slots
defined in other modules within the package.
:copyright: (c) 2015 The Regents of the University of California.
:license: GNU GPL, see licenses/GNU GPLv3.txt for more details.
''... | 24.3 | 74 | 0.606521 |
d408e83d104994c7b56a60993f81203af1d2e4b2 | 2,491 | py | Python | envs/babyai/oracle/xy_corrections.py | AliengirlLiv/babyai | 51421ee11538bf110c5b2d0c84a15f783d854e7d | [
"MIT"
] | 2 | 2022-02-24T08:47:48.000Z | 2022-03-23T09:44:22.000Z | envs/babyai/oracle/xy_corrections.py | AliengirlLiv/babyai | 51421ee11538bf110c5b2d0c84a15f783d854e7d | [
"MIT"
] | null | null | null | envs/babyai/oracle/xy_corrections.py | AliengirlLiv/babyai | 51421ee11538bf110c5b2d0c84a15f783d854e7d | [
"MIT"
] | 1 | 2021-12-27T19:03:38.000Z | 2021-12-27T19:03:38.000Z | import numpy as np
import pickle as pkl
from envs.babyai.oracle.teacher import Teacher
| 42.220339 | 113 | 0.620233 |
d409828d34c91d7940cba40bf708e67a3916a479 | 3,785 | py | Python | python_tools/utils.py | ultimatezen/felix | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | [
"MIT"
] | null | null | null | python_tools/utils.py | ultimatezen/felix | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | [
"MIT"
] | null | null | null | python_tools/utils.py | ultimatezen/felix | 5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from loc import (we_are_frozen,
module_path)
import os
import datetime
import time
import loc
import traceback
import sys
from win32com.client import Dispatch
logfile = sys.stdout
def determine_redirect(filename):
"""
Determine where to redirect stdout
... | 23.805031 | 83 | 0.572523 |
d409886ea338a4ea9ab5d211030cc1dfd81b3020 | 4,978 | py | Python | train.py | Nuwanda7O/Financial-data-analysis-paper | 586f883295c42f77b85ad7e740589bb7e73ea426 | [
"Apache-2.0"
] | null | null | null | train.py | Nuwanda7O/Financial-data-analysis-paper | 586f883295c42f77b85ad7e740589bb7e73ea426 | [
"Apache-2.0"
] | null | null | null | train.py | Nuwanda7O/Financial-data-analysis-paper | 586f883295c42f77b85ad7e740589bb7e73ea426 | [
"Apache-2.0"
] | null | null | null | #
import tushare as ts
#
import numpy as np
import pandas as pd
#
from torch.autograd import Variable
import torch.nn as nn
import torch
from torch.utils.data import DataLoader, Dataset
from torchvision import transforms
#
import matplotlib as plt
# token
ts.set_token('801000ee55cfd2cd9d915ce6c347689b938de98c482b8... | 31.308176 | 115 | 0.660104 |
d40aa4b7c4c1322f1ff3a827cd66e9ea94ffb317 | 3,101 | py | Python | library/tests/test_compensation.py | Sossa24/bmp280-python | e718bfb8a3580fda8a735e4d645f0a8fc2eba63d | [
"MIT"
] | 39 | 2018-12-04T00:05:52.000Z | 2022-01-23T18:44:16.000Z | library/tests/test_compensation.py | Sossa24/bmp280-python | e718bfb8a3580fda8a735e4d645f0a8fc2eba63d | [
"MIT"
] | 10 | 2018-11-06T12:21:57.000Z | 2022-02-01T07:10:35.000Z | library/tests/test_compensation.py | Sossa24/bmp280-python | e718bfb8a3580fda8a735e4d645f0a8fc2eba63d | [
"MIT"
] | 16 | 2018-11-04T19:57:35.000Z | 2022-02-04T03:29:12.000Z | TEST_TEMP_RAW = 529191
TEST_TEMP_CMP = 24.7894877676
TEST_PRES_RAW = 326816
TEST_PRES_CMP = 1006.61517564
TEST_ALT_CMP = 57.3174
| 31.323232 | 72 | 0.698484 |
d40b54816ee88b394aeebc54a80db5a3a1d2930a | 2,349 | py | Python | tsai/models/RNNPlus.py | MOREDataset/tsai | 54987a579365ca7722475fff2fc4a24dc054e82c | [
"Apache-2.0"
] | null | null | null | tsai/models/RNNPlus.py | MOREDataset/tsai | 54987a579365ca7722475fff2fc4a24dc054e82c | [
"Apache-2.0"
] | null | null | null | tsai/models/RNNPlus.py | MOREDataset/tsai | 54987a579365ca7722475fff2fc4a24dc054e82c | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/105_models.RNNPlus.ipynb (unless otherwise specified).
__all__ = ['RNNPlus', 'LSTMPlus', 'GRUPlus']
# Cell
from ..imports import *
from ..utils import *
from ..data.core import *
from .layers import *
# Cell
| 48.9375 | 148 | 0.640272 |
d40c39dcc4a54c401d52ae765f4e78fdec664aa9 | 4,059 | py | Python | tests/losses/test_smooth_ap_loss.py | tajanthan/pytorch-metric-learning | a00e6ef6386064509c2d451d38eac99da4b4420e | [
"MIT"
] | null | null | null | tests/losses/test_smooth_ap_loss.py | tajanthan/pytorch-metric-learning | a00e6ef6386064509c2d451d38eac99da4b4420e | [
"MIT"
] | null | null | null | tests/losses/test_smooth_ap_loss.py | tajanthan/pytorch-metric-learning | a00e6ef6386064509c2d451d38eac99da4b4420e | [
"MIT"
] | null | null | null | # mnist example, Downloaded from PML github
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
### MNIST code originally from https://github.com/pytorch/examples/blob/master/mnist/main.py ###
from torchvision import datasets, transforms
from pytorch_metric_learning import d... | 36.9 | 105 | 0.697216 |
d40ded469dcf2a288e4a8eec75e092707939419c | 78 | py | Python | gpt2/test.py | kimjayney/flask-app-blueprint | 0541be42c408e6e517b2e51521a98a7bf73bd145 | [
"MIT"
] | 1 | 2021-05-15T12:11:14.000Z | 2021-05-15T12:11:14.000Z | gpt2/test.py | kimjayney/flask-app-blueprint | 0541be42c408e6e517b2e51521a98a7bf73bd145 | [
"MIT"
] | null | null | null | gpt2/test.py | kimjayney/flask-app-blueprint | 0541be42c408e6e517b2e51521a98a7bf73bd145 | [
"MIT"
] | null | null | null | import time
while True:
print("Test program")
time.sleep(10)
pass | 15.6 | 25 | 0.641026 |
d40ecae437284e87ff9c508488b53b62edec243f | 3,050 | py | Python | LintCode/364.py | RENHANFEI/LintCode | d572dee248ba4c2a95b52cd737d76c7297f4e7b4 | [
"CNRI-Python"
] | null | null | null | LintCode/364.py | RENHANFEI/LintCode | d572dee248ba4c2a95b52cd737d76c7297f4e7b4 | [
"CNRI-Python"
] | null | null | null | LintCode/364.py | RENHANFEI/LintCode | d572dee248ba4c2a95b52cd737d76c7297f4e7b4 | [
"CNRI-Python"
] | null | null | null |
# class Solution:
# """
# @param heights: a matrix of integers
# @return: an integer
# """
# def trapRainWater(self, heights):
# result = 0
# height_dict = dict()
# for i, rows in enumerate(heights):
# for j, height in enumerate(rows):
# ... | 35.465116 | 116 | 0.471475 |
d40ed53a9263c70e7ce5de9501d2ca2c5b50b7dc | 4,332 | py | Python | spidermon/contrib/scrapy/runners.py | heylouiz/spidermon | 3ae2c46d1cf5b46efb578798b881264be3e68394 | [
"BSD-3-Clause"
] | 2 | 2019-10-03T16:47:11.000Z | 2022-02-22T11:56:02.000Z | spidermon/contrib/scrapy/runners.py | heylouiz/spidermon | 3ae2c46d1cf5b46efb578798b881264be3e68394 | [
"BSD-3-Clause"
] | 23 | 2019-05-30T20:27:38.000Z | 2019-08-20T07:23:09.000Z | spidermon/contrib/scrapy/runners.py | heylouiz/spidermon | 3ae2c46d1cf5b46efb578798b881264be3e68394 | [
"BSD-3-Clause"
] | 1 | 2022-03-24T03:01:19.000Z | 2022-03-24T03:01:19.000Z | from __future__ import absolute_import
import logging
from spidermon.results.monitor import (
MonitorResult,
actions_step_required,
monitors_step_required,
)
from spidermon.runners import MonitorRunner
from spidermon.utils.text import Message, line, line_title
LOG_MESSAGE_HEADER = "Spidermon"
class Sp... | 32.328358 | 83 | 0.649354 |
d40fdb541fc9e03dac33c0b9f4c82b2d96ae6913 | 4,387 | py | Python | committees/listeners.py | navotsil/Open-Knesset | d6cc6457f87e67a3dbeaec9c1ccbc8d8b7c60c04 | [
"BSD-3-Clause"
] | 69 | 2015-02-03T12:02:56.000Z | 2022-02-16T13:08:01.000Z | committees/listeners.py | navotsil/Open-Knesset | d6cc6457f87e67a3dbeaec9c1ccbc8d8b7c60c04 | [
"BSD-3-Clause"
] | 446 | 2015-01-01T11:10:33.000Z | 2021-11-01T08:15:39.000Z | committees/listeners.py | navotsil/Open-Knesset | d6cc6457f87e67a3dbeaec9c1ccbc8d8b7c60c04 | [
"BSD-3-Clause"
] | 67 | 2015-01-01T09:13:58.000Z | 2021-11-01T07:51:08.000Z | from django.db.models.signals import post_save,m2m_changed, pre_delete
from django.contrib.comments.signals import comment_was_posted
from django.contrib.comments.models import Comment
from django.contrib.contenttypes.models import ContentType
from planet.models import Feed, Post
from actstream import action, follow
fr... | 44.765306 | 118 | 0.672441 |
d4106ef2d4017a6b1f0b1925dc954af1533e879f | 2,921 | py | Python | src/resources/embed.py | ev1ldoge/mokujin | d54e29655443f82dc710523df59bafb2cc1c22fa | [
"MIT"
] | null | null | null | src/resources/embed.py | ev1ldoge/mokujin | d54e29655443f82dc710523df59bafb2cc1c22fa | [
"MIT"
] | null | null | null | src/resources/embed.py | ev1ldoge/mokujin | d54e29655443f82dc710523df59bafb2cc1c22fa | [
"MIT"
] | null | null | null | import discord
def move_embed(character, move):
"""Returns the embed message for character and move"""
embed = discord.Embed(title=character['proper_name'],
colour=0x00EAFF,
url=character['online_webpage'],
description='**Move: ' + ... | 38.434211 | 131 | 0.606984 |
d410a4f6da30a2a801ffd20f35c415969c962c57 | 6,902 | py | Python | models/unetc.py | sxlyiyiyi/HuBMAP---Hacking-the-Kidney_Baseline | 757a356387907923a5ce468953b6c5dd1217cad3 | [
"Apache-2.0"
] | null | null | null | models/unetc.py | sxlyiyiyi/HuBMAP---Hacking-the-Kidney_Baseline | 757a356387907923a5ce468953b6c5dd1217cad3 | [
"Apache-2.0"
] | null | null | null | models/unetc.py | sxlyiyiyi/HuBMAP---Hacking-the-Kidney_Baseline | 757a356387907923a5ce468953b6c5dd1217cad3 | [
"Apache-2.0"
] | 2 | 2020-12-21T20:55:56.000Z | 2020-12-31T03:25:46.000Z | import tensorflow as tf
from models.backbone.efficientnet import (EfficientNetB0,
EfficientNetB1,
EfficientNetB2,
EfficientNetB3,
EfficientNetB4,
... | 47.273973 | 115 | 0.628079 |
d410e56dbc9df1300a47006e894b37f0f670424b | 711 | py | Python | uti.py | shaoxiang-zheng/Branch-and-price-for-one-dimensional-bin-packing | ab919dd12318721aebf02298edeca917400b56b9 | [
"Unlicense"
] | 1 | 2020-10-01T11:59:46.000Z | 2020-10-01T11:59:46.000Z | uti.py | shaoxiang-zheng/Branch-and-price-for-one-dimensional-bin-packing | ab919dd12318721aebf02298edeca917400b56b9 | [
"Unlicense"
] | 2 | 2021-05-06T05:51:12.000Z | 2021-06-15T07:12:55.000Z | uti.py | shaoxiang-zheng/Branch-and-price-for-one-dimensional-bin-packing | ab919dd12318721aebf02298edeca917400b56b9 | [
"Unlicense"
] | 2 | 2020-10-22T14:34:45.000Z | 2021-12-22T00:51:28.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time: 2020/9/26 9:41
# Author: Zheng Shaoxiang
# @Email: zhengsx95@163.com
# Description:
from enum import Enum
ReducedEpsilon = 1e-5
IntegerEpsilon = 1e-6
ComparisonEpsilon = 1e-5
if __name__ == '__main__':
pass
| 17.341463 | 48 | 0.59775 |
d411bcf57c4f370a0e86fb32316cd0566cf5048d | 19,836 | py | Python | zoo_tensorflow/examples/ssd_mobilenet_v2_quanteval.py | quic/aimet-model-zoo | e18113f551686be1b96a3a851dc943f41493ba4f | [
"0BSD"
] | 89 | 2021-01-03T06:29:00.000Z | 2022-03-25T08:57:09.000Z | zoo_tensorflow/examples/ssd_mobilenet_v2_quanteval.py | quic/aimet-model-zoo | e18113f551686be1b96a3a851dc943f41493ba4f | [
"0BSD"
] | 3 | 2021-03-08T16:46:48.000Z | 2021-07-03T09:47:49.000Z | zoo_tensorflow/examples/ssd_mobilenet_v2_quanteval.py | quic/aimet-model-zoo | e18113f551686be1b96a3a851dc943f41493ba4f | [
"0BSD"
] | 20 | 2020-12-29T00:48:31.000Z | 2022-03-05T05:37:34.000Z | #!/usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
#
# Copyright (c) 2020 of Qualcomm Innovation Center, Inc. All rights reserved.
#
# @@-COPYRIGHT-END-@@
# ===========================================================... | 44.276786 | 115 | 0.645695 |
d411fd7add68ebba0ab642debfbe9373acbee1e6 | 6,131 | py | Python | openmdao/devtools/d3graph.py | colinxs/OpenMDAO | a9a52be29281a23a102c64b577066ee5fc70f4b4 | [
"Apache-2.0"
] | null | null | null | openmdao/devtools/d3graph.py | colinxs/OpenMDAO | a9a52be29281a23a102c64b577066ee5fc70f4b4 | [
"Apache-2.0"
] | null | null | null | openmdao/devtools/d3graph.py | colinxs/OpenMDAO | a9a52be29281a23a102c64b577066ee5fc70f4b4 | [
"Apache-2.0"
] | null | null | null |
import os
import sys
import json
from itertools import chain
from six import iteritems
import webbrowser
from openmdao.core.component import Component
# default options for different viewers
viewer_options = {
'collapse_tree': {
'expand_level': 1,
},
'partition_tree': {
'size_1': True,
... | 29.618357 | 84 | 0.596314 |
d41230ba441e815ec08e69e833b5472b73126c13 | 2,172 | py | Python | data_utils/split_train_val.py | aman0044/pytorch-classifier | a1d4ad0bb319948fe4fa868873d0981162b92003 | [
"Apache-2.0"
] | null | null | null | data_utils/split_train_val.py | aman0044/pytorch-classifier | a1d4ad0bb319948fe4fa868873d0981162b92003 | [
"Apache-2.0"
] | null | null | null | data_utils/split_train_val.py | aman0044/pytorch-classifier | a1d4ad0bb319948fe4fa868873d0981162b92003 | [
"Apache-2.0"
] | null | null | null | import torch
from torchvision import datasets
import shutil
import argparse
import os
import numpy as np
from tqdm import tqdm
########### Help ###########
'''
#size = (h,w)
python split_train_val.py \
--data_dir /Users/aman.gupta/Documents/self/datasets/blank_page_detection/letterbox_training_data/ \
--val... | 30.166667 | 141 | 0.677716 |
d41235cfd426754bc747b9f2f6052745a07393cf | 157 | py | Python | main.py | James-Leslie/github-actions | adb4206f365c879ab5297e52e1153fb93191e190 | [
"Unlicense"
] | null | null | null | main.py | James-Leslie/github-actions | adb4206f365c879ab5297e52e1153fb93191e190 | [
"Unlicense"
] | null | null | null | main.py | James-Leslie/github-actions | adb4206f365c879ab5297e52e1153fb93191e190 | [
"Unlicense"
] | null | null | null | def add_two(a, b):
'''Adds two numbers together'''
return a + b
def multiply_two(a, b):
'''Multiplies two numbers together'''
return a * b
| 17.444444 | 41 | 0.605096 |
d41783c72128f0b491591a255fc04b992392dea0 | 863 | py | Python | tools/visualize_mask.py | wilson1yan/RLBench | 30f97033f7060962bef24ab2314f45c7e6e2973f | [
"BSD-3-Clause"
] | null | null | null | tools/visualize_mask.py | wilson1yan/RLBench | 30f97033f7060962bef24ab2314f45c7e6e2973f | [
"BSD-3-Clause"
] | null | null | null | tools/visualize_mask.py | wilson1yan/RLBench | 30f97033f7060962bef24ab2314f45c7e6e2973f | [
"BSD-3-Clause"
] | null | null | null | from PIL import Image
import numpy as np
import glob
import os.path as osp
import matplotlib.pyplot as plt
import matplotlib.cm as cm
root = osp.join('data', 'lamp_on_big', 'variation0', 'episodes', 'episode0')
rgb_images = glob.glob(osp.join(root, 'front_rgb', '*.png'))
rgb_images.sort()
mask_images = glob.glob(osp.j... | 29.758621 | 76 | 0.71263 |