blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6497c191d192cb0725b81862d4fff0d3b8e6c824 | 5c1e5935129b4d0f5626f64bd62e3370b0553262 | /openpype/settings/entities/list_entity.py | c6155b78f8d9f09056fe7454d0edca180480bd03 | [
"MIT"
] | permissive | dangerstudios/OpenPype | c72f9d6d3a4a964697fa77712c116cfd2949b696 | f82ed5e127340e852a7517ff1e13e2524ee6e704 | refs/heads/main | 2023-04-21T00:25:02.364398 | 2021-04-13T22:10:36 | 2021-04-13T22:10:36 | 362,811,887 | 0 | 0 | null | 2021-04-29T12:35:54 | 2021-04-29T12:35:53 | null | UTF-8 | Python | false | false | 14,725 | py | import copy
from . import (
BaseEntity,
EndpointEntity
)
from .lib import (
NOT_SET,
OverrideState
)
from .exceptions import (
DefaultsNotDefined,
StudioDefaultsNotDefined,
EntitySchemaError
)
class ListEntity(EndpointEntity):
schema_types = ["list"]
_default_label_wrap = {
... | [
"jakub.trllo@gmail.com"
] | jakub.trllo@gmail.com |
3b7f88b627b03e5c2620ab2849d8f09c9fcb3f2c | 6b449da42920425cf7fcc64c9fa6c03909266662 | /skysshit/tests/test_embeds.py | 235a536a3b3ebbc7c27aa02dadee8743e6869947 | [] | no_license | skylarr1227/skiz | 647bb499e85dd46d59a758a156b64e86668af6fa | c8131193f99a3f7e80e20ac3f749770bee62ac89 | refs/heads/master | 2020-07-11T14:36:15.183412 | 2019-09-21T19:59:02 | 2019-09-21T19:59:02 | 204,570,480 | 1 | 0 | null | 2019-09-21T14:36:20 | 2019-08-26T22:12:34 | Python | UTF-8 | Python | false | false | 7,628 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import unittest
from libneko.embeds import *
class DictifyMixin:
def __init__(self, *args, **kwargs):
self.i = 0
try:
super().__init__(*args, **kwargs)
except TypeError:
super().__init__()
def run(self, *args, **k... | [
"noreply@github.com"
] | noreply@github.com |
725b6c1e229d728030f45cb8f870e06dccdb758e | 44607c5bbcf5132a95e0de6ab352562158f99874 | /connectedness/dataset.py | f59a8c33418be6555c8737fd361bccf4daae1795 | [
"MIT"
] | permissive | KrnTneja/My-Experiments-With-DNC | d781a0a7988a8d446137cb077653ed04bc58404c | e34be763918bf9033113ed0e8054eb0c68d5c6f0 | refs/heads/master | 2020-05-17T09:01:01.984096 | 2019-05-03T17:36:56 | 2019-05-03T17:36:56 | 183,621,768 | 0 | 1 | MIT | 2019-05-03T17:36:57 | 2019-04-26T12:07:07 | Python | UTF-8 | Python | false | false | 3,111 | py | import numpy as np
import torch as T
from torch.autograd import Variable as var
import networkx as nx
# generate number of nodes randomly between [10,25]
# generate a Gnm graph
# Check if the the graph is connected
# generate two nodes randomly
# find the shortest path between them
def get_bit_sequence(x, bits=6):
... | [
"karantaneja318@yahoo.com"
] | karantaneja318@yahoo.com |
3c8cf23ef57c426d71261901919a61c1533391e0 | 59d2116aba1a5e24edcbcdfa6f3e6a973a8ecba7 | /service/jobservice.py | cd87567526e3fb9b99608675fd431d87788a9c78 | [] | no_license | liuwangleo/testGit | b6e09d3539ad3400093cfdb41c6f971467e91763 | 274ef1465a24ec0ff02315b4ed0d81ba48c495b3 | refs/heads/master | 2021-09-27T01:02:38.056756 | 2018-11-05T03:41:01 | 2018-11-05T03:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | from dao.jobdao import JobDAO
class JobService():
'''def __init__(self):
self.__jobDAO = JobDAO() # 不是线程安全的__jobDAO 这对象没有加锁
'''
def getJobXqInfo(self):
return JobDAO().getJobXq()
def getJobCpInfo(self):
return JobDAO().getJobCp()
def getJobXsInfo(self):
return Jo... | [
"3075312534@qq.com"
] | 3075312534@qq.com |
118e4b1974f84443f4a7aff55f59536929fc7f86 | 9f3b478d39f1a8b706813c1b4993614a376a045d | /pycryptics/utils/ngrams.py | f5b4948ad7ec29d344d4bdd141514be91e173c58 | [
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | kod3r/cryptics | a201c62bdd2ecafee5937d2d7af9c29dcd38ec67 | 4bd17d24202b6fabce8c7ad378a61e77eb7562a7 | refs/heads/master | 2020-12-25T16:36:25.800144 | 2013-03-09T06:12:35 | 2013-03-09T06:12:35 | 10,188,553 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | import cPickle as pickle
import os.path
INITIAL_NGRAMS = dict()
NGRAMS = dict()
i = 0
while True:
if os.path.exists('data/ngrams.%02d.pck' % i):
with open('data/initial_ngrams.%02d.pck' % i, 'rb') as f:
d = pickle.load(f)
INITIAL_NGRAMS.update(d)
with open('data/ngrams.%02d... | [
"robin.deits@gmail.com"
] | robin.deits@gmail.com |
c9b59822130a0a25ae630975135be65c9a5141b5 | e33831bae98bfc2191b7044f6df445c5f51f1226 | /languages/python/Queue.py | debd627d733b66143b4a985f8c4623997f6bd533 | [
"BSD-3-Clause"
] | permissive | mimikaan/learntosolveit | 6dfae0bdb656d529956e5212446f431fe80d34ac | 22022a70d3405b1b9a248d35ea3f0aab4135eace | refs/heads/version1 | 2021-06-25T19:33:36.848098 | 2019-10-07T11:25:06 | 2019-10-07T11:25:06 | 101,304,652 | 0 | 0 | BSD-3-Clause | 2019-10-07T11:25:07 | 2017-08-24T14:34:26 | Java | UTF-8 | Python | false | false | 665 | py | """
Simple implementation of a Queue datastructure in Python.
"""
class Queue:
def __init__(self, items = None):
if items is None:
items = []
self.__queue = items
def __repr__(self):
return str(self.__queue)
def isempty(self):
return len(self.__queue) == 0
... | [
"orsenthil@1860ccae-0748-11de-bc6d-132d5dcf21d4"
] | orsenthil@1860ccae-0748-11de-bc6d-132d5dcf21d4 |
7f95a83c43fdf2708fd750941606c18c42a90b70 | 684890a1bdb0c5c98c85f6564f52ea4dd162c0b1 | /Day-08/jagadeeshwaran.py | c1c51775a4440bc669b53cf56b784e42314c4719 | [] | no_license | Job-Colab/Coding-Preparation | eb39dc6f064a76c9ef3a0318f3612e96d6cc6459 | a0273cb0d38afbbda7b6a1f008ab812b93f09d74 | refs/heads/main | 2023-04-28T21:50:38.218873 | 2021-05-13T03:11:48 | 2021-05-13T03:11:48 | 301,300,545 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | class Solution:
def lastStoneWeight(self, stones: List[int]) -> int:
self.stones = sorted(stones)
for i in range(len(self.stones)):
try:
if(self.stones[-1] == self.stones[-2] ):
self.stones.pop()
self.stones.pop()
if... | [
"noreply@github.com"
] | noreply@github.com |
df98b6cceba7456b59e27d905b37b1ad32a71a0e | 236d2f99257211bbbd4bdafe95fddf7bfcb2d6e8 | /blog/views.py | 999510eb933755a9a8e24fbe26438502c866a744 | [] | no_license | vasuparikh/assign1 | 99f4bc466897d446c790513f2a1eef78eb36b2ed | 30b78e4197ec43e0eab897efc0e48eb6428493eb | refs/heads/master | 2021-05-09T05:41:12.804009 | 2018-01-29T01:45:23 | 2018-01-29T01:45:23 | 119,317,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,886 | py | from django.shortcuts import render, get_object_or_404
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.views.generic import ListView
from .models import Post, Comment
from .forms import EmailPostForm, CommentForm
from django.core.mail import send_mail
from taggit.models import Tag
f... | [
"vparikh@unomaha.edu"
] | vparikh@unomaha.edu |
7e44e71e032efd5f7dc7a27155411d3881d8f1b4 | d4ea11df73cc4fcc33665da20d673462c69c4bda | /recognizer_stream2.py | f59c67c55b6f932357719268673c9f210e5d8dbf | [] | no_license | ductandev/Face-Recognition_DLIB-InsightFace1 | b96eeb071d1cc1dafdb07ebe33bc8e5a2b38ab96 | d23f80e22c0cd6a5b9a87f3f928cae6b3a468498 | refs/heads/main | 2023-08-27T19:24:25.620061 | 2021-09-03T09:54:15 | 2021-09-03T09:54:15 | 402,659,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,423 | py |
import pickle
import mxnet as mx
from tensorflow.keras.models import load_model
# from mtcnn import MTCNN
from imutils import paths
from common import face_preprocess
import numpy as np
from deploy import face_model
import argparse
import time
import dlib
import cv2
import os
import facenet
import detect_face
import... | [
"nguyenductan998@gmail.com"
] | nguyenductan998@gmail.com |
d8c7eb58b1dc24797edb7fa6bcd2157b47720e59 | d65a5a51a4d2a4850f016b1a1a07da56207ed106 | /loginpass/github.py | 0c415912dee95d5554a126abb594b83805abb24c | [] | no_license | whysoserious97/Security-one-time-login | 47689892d2469b0cd1aa6a8a8928126c4dfdfc7c | 2f0c1d15eb7144a898827bd6722f5269a33ff34c | refs/heads/main | 2023-01-03T12:36:08.693358 | 2020-10-15T17:38:10 | 2020-10-15T17:38:10 | 304,314,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | def normalize_userinfo(client, data):
params = {
'sub': str(data['id']),
'name': data['name'],
'email': data.get('email'),
'preferred_username': data['login'],
'profile': data['html_url'],
'picture': data['avatar_url'],
'website': data.get('blog'),
... | [
"noreply@github.com"
] | noreply@github.com |
8f2a8b1a47778e9fafd036fb9c90ce4733f8b4a4 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_2_1/branyine/2016_round1B_A.py | 3a2e46214d97bb27396b00187e8aa2574f9e2376 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,790 | py | # link: https://code.google.com/codejam/contest/dashboard?c= #s=p0
import string
import time
testIndex=2
problemRoot="d:/prog/versenyek/googlejam"
problemDir="2016/round1B"
problemName="A"
inputFiles= ["-example.in", "-small.in", "-large.in"]
outputFiles=["-example.out", "-small.out", "-large.out"]
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
2936f8324096feb98f39411c15bce1a2e66e3521 | 0423a4354155b3d1b3981abfd58bbd1abfdc07de | /customdashboard/views.py | f7f6b0a5a43f5957901e4701f8acffd669796cbb | [] | no_license | toladata-ce/TolaActivity | 7cc2d0d9d5077cb082d464dc23fb8366a51f4d64 | 8a2d763e0c757c4d7547e7a2cd17fbb7dd880bfc | refs/heads/master | 2021-09-17T06:30:32.668525 | 2018-06-28T15:46:22 | 2018-06-28T15:46:22 | 103,903,777 | 2 | 0 | null | 2018-06-28T15:46:23 | 2017-09-18T06:55:44 | Python | UTF-8 | Python | false | false | 26,797 | py | from django.views.generic.list import ListView
from django.http import HttpResponse
from django.shortcuts import render
from workflow.models import WorkflowLevel2, WorkflowLevel1, SiteProfile,Country, TolaSites
from customdashboard.models import JupyterNotebooks
from formlibrary.models import TrainingAttendance, Distr... | [
"noreply@github.com"
] | noreply@github.com |
325d9ea1bfeb32f453f69fdbe6f3a4ee1a78e194 | 1ec579482f48c862512b07b49699140d9eec9d0d | /openCVTest2.py | 5ace26a655c73dc03e85dd12fd1d076bfb979ca7 | [] | no_license | GretaThunbergUltras/Entladen | d036a5a97cced575bc6db26a7ae382edfb413132 | ef85cc62586157394b8cd7b9a3af47d69a1dca26 | refs/heads/master | 2020-12-19T19:07:37.460160 | 2020-02-03T19:56:23 | 2020-02-03T19:56:23 | 235,824,404 | 0 | 0 | null | 2020-02-03T19:56:24 | 2020-01-23T15:29:33 | Python | UTF-8 | Python | false | false | 205 | py | import cv2
img = cv2.imread('lena.jpg', 0)
cv2.imshow('Jolo', img)
k = cv2.waitKey(0)
if k == 27:
cv2.destroyAllWindows()
elif k == ord('s'):
cv2.imwrite('lena_copy.png', img)
cv2.destroyAllWindows()
| [
"jo@gmail.com"
] | jo@gmail.com |
351b29912996e8d945597f34f8b8b701162901d5 | 0f655f1824bbd8783587f957a35cce528ff4b41a | /03-DRF-LEVEL-ONE/venv/bin/django-admin.py | 836dce4e1b49dffb2a401e669d50a4743bc31ae8 | [] | no_license | zackcpetersen/DRF | 35396dc6b9fc191de57d22ccee089200f85fbbc5 | 43daa8f8444a1bcda9b2b5a0e96f6d7467f09669 | refs/heads/master | 2020-08-04T17:26:22.150387 | 2019-10-02T23:09:46 | 2019-10-02T23:09:46 | 212,216,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | #!/Users/zachpeterson/Projects/Vue_Django/03-DRF-LEVEL-ONE/venv/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"zackcpetersen@gmail.com"
] | zackcpetersen@gmail.com |
c0dfd8ad42640aafa9293bf4c7772a4184ee2d3b | 7da3e8de4b1fe4ff87dc68f05384d2c8d92ccb99 | /model_validator.py | 4ebfda02cef9c3e4eaf6c9f060bd051f13450c00 | [] | no_license | haris-kekic/occupancy-prediction | 6f88eaf148de9ac22e60bff635ce463be8879845 | 365eb57c2b4eb688da7e5b93495d61cb494fac40 | refs/heads/master | 2022-12-14T12:58:21.499809 | 2020-09-15T08:02:23 | 2020-09-15T08:02:23 | 259,653,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,367 | py | # -----------------------------------------------------------
# Klasse, die es ermöglicht Modelle mit einem Datensatz zu
# tainieren und evaluieren. Dabei wird Forward-Chaining
# k-Fold Cross Validation für Zeitreihen verwendet
#
# (C) 2020 Haris Kekic, Fernuniversität in Hagen
# ---------------------------------------... | [
"haris.kekic@siemens.com"
] | haris.kekic@siemens.com |
76e7ae8e3189102c9527ecd4b8ad0f9665d4da91 | fd03e5908cb744a220a40d4cfaf4a220bed01570 | /users_trial/groups/urls.py | 09056f928b80144121e81dd8c142b4679844bbb6 | [] | no_license | navinkumar247/learningproject | 315378d34d142b3ec651f9231984927749fccf08 | a285e12fb3eeabe4a1cd91abe26c2a8f014ab96a | refs/heads/master | 2022-07-31T06:38:33.303164 | 2020-05-24T11:20:21 | 2020-05-24T11:20:21 | 265,815,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | from django.urls import path,include
from . import views
app_name= 'groups'
urlpatterns = [
path('grouplist/',views.GroupList.as_view(),name='grouplist'),
path('group/<slug>/',views.GroupDetail.as_view(),name='groupdetail'),
path('creategroup/',views.CreateGroup.as_view(),name='creategroup'),
path('... | [
"navinkumar247@gmail.com"
] | navinkumar247@gmail.com |
c5cc1dd7eaf84fc371110d20b2212204cc4e73b1 | 47510baab17bb33e9b88255b54f2bc97531b7e7b | /MNIST/Regression.py | e7882f4f1ba9fd40e275abf69d0da7093531952e | [] | no_license | afreeland/TensorFlow | f9a3dfb821fcec819fb305e6d89cb1194498638b | afba1840000c75f24adb2754099e1df8103a4cb3 | refs/heads/master | 2020-12-31T00:19:01.986509 | 2017-03-16T14:07:41 | 2017-03-16T14:07:41 | 85,115,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,739 | py | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
# https://www.tensorflow.org/get_started/mnist/beginners
# This represents a placeholder that will store our vertices of a single image that we input
# Our image is stored ... | [
"AFreeland@mmhad.mmhospital.org"
] | AFreeland@mmhad.mmhospital.org |
6eead2339d7beb6299ea75b3f6f188d0abada27a | 180ed6c8ff26b365e56c63d878a69c2e9d9b8c54 | /code/Day_04/01_xml.py | e218c1a1a13919328e7e183d4d19d9fc0e95e7c4 | [] | no_license | archeranimesh/python_devu_in | 9af46503b07f82a137d4b820920fa72f96a5067b | 3d77e9e7b150aae15375b236e3de7f573da4bdce | refs/heads/master | 2020-06-08T21:22:24.329530 | 2019-07-14T11:22:55 | 2019-07-14T11:22:55 | 193,308,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # Read from XML.
import xml.etree.ElementTree as ET
file_path = r"code/Day_04/data_files/data.xml"
f = ET.parse(file_path)
print("type(f): ", type(f))
# get the root.
root = f.getroot()
print("type(root): ", type(root))
print("---" * 30)
for i in root.iter():
print(i.tag)
print(i.text)
print("---" * 5)... | [
"animeshb@archerimagine.com"
] | animeshb@archerimagine.com |
e14073fe089fb089b1ffd4715e4332b9685f3cd9 | e65ae5bd9ae1c93e7117e630f7340bc73aa71212 | /lib/database/mongodb/build/lib.linux-x86_64-2.7/gridfs/grid_file.py | e5df5e42b479eedfdbf642e1d7f90b7f48d2075b | [
"Apache-2.0"
] | permissive | nadirhamid/oneline | e98ff1ed81da0536f9602ecdde2fb2a4fe80d256 | 833ebef0e26ae8e0cc452756381227746d830b23 | refs/heads/master | 2021-01-21T04:27:41.715047 | 2016-05-30T03:50:34 | 2016-05-30T03:50:34 | 23,320,578 | 1 | 2 | NOASSERTION | 2020-03-12T17:22:24 | 2014-08-25T16:29:36 | Python | UTF-8 | Python | false | false | 24,948 | py | # Copyright 2009-2014 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | [
"matrix.nad@gmail.com"
] | matrix.nad@gmail.com |
2d6afda630fcaf11b046b7bc8f1aea4823f7bb47 | 697fb11686110f569e7f4284045049d008688221 | /XDG_CACHE_HOME/Microsoft/Python Language Server/stubs.v1/Sm6gN7BhS-h48BYanqqR8e9hKpcKaYmhkeYrr4_nJd4=/_csv.cpython-37dm-x86_64-linux-gnu.pyi | ec5834e00fd39a7fb05a5e346445653229172585 | [
"Apache-2.0"
] | permissive | andredoumad/p3env | 433c9174899f0909b149f51c3243b6fe04e076bf | a8850d06755d53eb6fedd9995091dad34f1f9ccd | refs/heads/master | 2023-02-03T20:50:07.357255 | 2020-12-23T09:15:55 | 2020-12-23T09:15:55 | 317,041,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,032 | pyi | import builtins as _mod_builtins
class Dialect(_mod_builtins.object):
'CSV dialect\n\nThe Dialect type records CSV parsing and generation options.\n'
__class__ = Dialect
def __init__(self, *args, **kwargs):
'CSV dialect\n\nThe Dialect type records CSV parsing and generation options.\n'
pass... | [
"andre@stringkeeper.com"
] | andre@stringkeeper.com |
f6d7d9d5ec362e4befe85512b86666d80eafa119 | 614486849fc9fc6959a1e3f06f4598ceec60e507 | /pyjobs/core/tests/test_apps.py | 0daf63c0c9c12c5f1b4b9d6b685ea298e7971742 | [] | no_license | it-fm/PyJobs | 899bcc65fdff6cae121b6520c833c8cbbd3521d3 | 977f0271d60012d305b7d31fc85549474dbe9fcc | refs/heads/master | 2020-06-20T08:07:41.185206 | 2019-07-11T21:42:46 | 2019-07-11T21:42:46 | 197,054,058 | 1 | 0 | null | 2019-07-15T18:46:31 | 2019-07-15T18:46:31 | null | UTF-8 | Python | false | false | 292 | py | from django.apps import apps
from django.test import TestCase
from pyjobs.core.apps import CoreConfig
class CoreConfigTest(TestCase):
def test_apps(self):
self.assertEqual(CoreConfig.name, "pyjobs.core")
self.assertEqual(apps.get_app_config("core").name, "pyjobs.core")
| [
"vinicius@bigsp.com.br"
] | vinicius@bigsp.com.br |
083a4d4959c0e13f53c618c6d3d7c65c43e8a443 | 56832c284c45fa19ea0de80c38a432271ad6d144 | /app/health_check/blueprint.py | 36d37abafc0043c5181d4ae11e68dc003de1677e | [] | no_license | biancarosa/music-stats-api | c42bbf5395e9ace4fade1f6726ba54b893c171b9 | 6e855bab2e07f82c03b13d306f91ad427da1495a | refs/heads/master | 2022-07-11T20:34:04.568634 | 2018-01-09T16:00:15 | 2018-01-09T16:00:15 | 116,841,138 | 0 | 0 | null | 2019-06-09T03:53:59 | 2018-01-09T16:28:48 | Python | UTF-8 | Python | false | false | 415 | py | # encoding: utf-8
"""Define os blueprints para as rotas de health check"""
from flask_restful import Api
from flask import Blueprint
from .health_check import HealthCheck
def setup():
"""Retorna um blueprint para a função de health check"""
blueprint = Blueprint(
'health-check', __name__,
)
... | [
"me@biancarosa.com.br"
] | me@biancarosa.com.br |
8e8645232fa6b02d138786da3ea4323ad4a067d9 | fb580fc91e8b9bd5fe62ee30e5dd182d006dfdfd | /bin/phoneword | 94b7c9d5327bdab64164015f9a2cc00628147146 | [] | no_license | Anton1o-I/dotfiles | 66ad30dd87b09dc1ecb2af186663d573d4fdfe57 | 000a2c91c2d70b99f0b463515d56d6b52dc337d2 | refs/heads/master | 2020-09-12T18:15:54.524252 | 2019-10-04T05:33:52 | 2019-10-04T05:33:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | #!/usr/bin/env python3
"""
Converts words to phone numbers.
I occasionally use this to come up with mnemonic
port numbers to use for different applications.
"""
import sys
MAPPING = {
'a': 2,
'b': 2,
'c': 2,
'd': 3,
'e': 3,
'f': 3,
'g': 4,
'h': 4,
'i': 4,
'j': 5,
'k': 5,
... | [
"hello@nutty.cc"
] | hello@nutty.cc | |
8a37d224360ce057c93ddb21fa63280c073dbd46 | c50f6fa9a15b64ce95b0deb6138caa78fddc06c8 | /howtrader/app/cta_strategy/ui/widget.py | 663354c8287d31e287a982032a408c6471ba5e58 | [
"MIT"
] | permissive | mingren1992/howtrader | ba421623c5c41a739a2b1b6d946cd4f532950499 | 9945f0ed65be86a09668fea8e8f6659be8ce4591 | refs/heads/main | 2023-02-03T14:53:36.282305 | 2020-12-17T13:34:59 | 2020-12-17T13:34:59 | 322,328,845 | 1 | 1 | MIT | 2020-12-17T15:02:57 | 2020-12-17T15:02:57 | null | UTF-8 | Python | false | false | 13,915 | py | from howtrader.event import Event, EventEngine
from howtrader.trader.engine import MainEngine
from howtrader.trader.ui import QtCore, QtGui, QtWidgets
from howtrader.trader.ui.widget import (
BaseCell,
EnumCell,
MsgCell,
TimeCell,
BaseMonitor
)
from ..base import (
APP_NAME,
EVENT_CTA_LOG,
... | [
"lin"
] | lin |
6a11f96cbc8c1186af1c7cbd1479b1d709b55083 | e9aede4745da6fba31654408e4843175df682adf | /News_Retrieval.py | b14401f087abccf21c7faea71da7440470219c45 | [] | no_license | Susannnn/Information-Retrieval | 378747d7b9cf000355d28c9d35649baf8dd215a9 | 36ff660e3dac486699e5862706f9ff53595c683b | refs/heads/master | 2021-04-06T21:20:54.776448 | 2020-03-25T14:49:14 | 2020-03-25T14:49:14 | 248,614,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | import pandas as pd
from newsapi import NewsApiClient
# Initialisation
newsapi = NewsApiClient(api_key='dcb7e5eba8914cdda61d0c092d776c92')
# Retrieve all the news written in English between specified date
all_articles = newsapi.get_everything(q='coronavirus',
from_param='2020-02-... | [
"noreply@github.com"
] | noreply@github.com |
1217b1f5f691d23f891f995bc8163f304a68483d | 11f0e6122342b57c2986ef07834fbfa07450e8f4 | /08_Manejo_de_Cadenas.py | e335863e54ecc3cc2554eab2d14331f50a450a4b | [] | no_license | Aburgos86/PythonCourse | 5a4b4bf2fe8f2636da74f419a111cb3b7c2bd352 | 816be9955daea0fa118216074c7fddcb86025b33 | refs/heads/master | 2023-07-17T05:44:01.879923 | 2021-09-07T16:52:58 | 2021-09-07T16:52:58 | 404,054,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,805 | py |
# Manejo de Cadenas
# ESTILO WCODE
# Variables
# int_Nombre_variable = tipo_dato ; Variables del tipo entero
# float_Nombre_variable = tipo_dato ; Variables con decimales
# str_Nombre_variable = tipo_dato ; variables con Cadenas o caracteres
# bool_Nombre_variable = tipo_dato ; variables... | [
"corrientes1556@gmail.com"
] | corrientes1556@gmail.com |
a727112ec4da03b9e6099582828fdae48fb36ec7 | 7f1bb7461c8d80941baefbeb5ce6074058478a33 | /todoBot/types.py | e02b1cd00f5836b0c656433fc84569549b798366 | [] | no_license | lrusik/todoBot | ffe2e911fa84894d53433cfb7276639427587962 | 2ae6ad02c1f76a846fc992ff3377ab0e23a9135e | refs/heads/master | 2020-05-04T20:51:40.684947 | 2019-07-18T07:40:36 | 2019-07-18T07:40:36 | 179,454,108 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83,941 | py | # -*- coding: utf-8 -*-
try:
import ujson as json
except ImportError:
import json
import six
from todoBot import util
class JsonSerializable(object):
"""
Subclasses of this class are guaranteed to be able to be converted to JSON format.
All subclasses of this class must override to_json.
""... | [
"yakushev.rusl101@gmail.com"
] | yakushev.rusl101@gmail.com |
72c8111dc13edddf648e5ff982461fea4a203990 | e4471bd490598ab711832b262e51df9f19624b80 | /snake/state.py | af4842ecb56df20821677d9fc66868dbd76e3a1f | [] | no_license | sracela/snake | c74729a4e89565664cd3523c98f1ae92981bb1b9 | aa234740ddd0603f41aa64a9c395eeb94ada71fc | refs/heads/master | 2022-04-15T13:26:04.515103 | 2020-04-13T21:51:45 | 2020-04-13T21:51:45 | 255,007,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | from enum import Enum, auto
class State(Enum):
UP = auto()
DOWN = auto()
LEFT = auto()
RIGHT = auto() | [
"saracelalfonso@gmail.com"
] | saracelalfonso@gmail.com |
89d363676bee6d1b2d3d8bfa6606163fdb344a24 | a9953a909566243a3d6ff382984678226728e40d | /views/json.py | d5ac4398176762aea39f5412f1076b0a02ec2167 | [] | no_license | nailgun/djcommons | 27f3a0436d0f0bb743e450b128aeca06f3acc2f7 | 8078b4200e04bba32f68e195e5a10bdf411e0f8d | refs/heads/master | 2021-01-25T12:09:13.233433 | 2009-12-08T14:39:53 | 2009-12-08T14:39:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | from django.utils import simplejson
from django import http
def clean_query_value(value):
mapping = {
'__true__': True,
'__false__': False,
'__none__': None,
}
return mapping.get(value, value)
def default_pack(obj):
return (obj.pk, unicode(obj))
def object_list(request, queryset, pack_func=default_pack):
... | [
"nailgunster@gmail.com"
] | nailgunster@gmail.com |
cc30e097c5a8e1be0b554cb3c5dce3428c0620e4 | 4af59c0cd941f0ebe5f0ce447a4db90914585d23 | /tensorflow_federated/python/core/impl/compiler/local_computation_factory_base.py | 9297be8cd44edaf0ccebc7d3d4ab82a6af1935f9 | [
"Apache-2.0"
] | permissive | ali-yaz/federated | bbabac58c8a5e96f95cef2b7558f61c6a8610651 | 8e3d60ae6129611b5ebf8f94755c50082d97d45a | refs/heads/master | 2023-03-10T21:19:43.160733 | 2021-02-23T09:11:10 | 2021-02-23T09:11:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | # Copyright 2021, The TensorFlow Federated Authors.
#
# 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 o... | [
"tensorflow.copybara@gmail.com"
] | tensorflow.copybara@gmail.com |
f179ed862201ee57632b326d1a40adac210171db | 9f56b67705bfcafef541773a4334815abbc53eb2 | /duckTyping.py | 76fc2ae66da6733ac152e4b92726acc7ae1292de | [] | no_license | sukanyabag/Object-Oriented-Programming--Python | 5527543cc89b2d8bf60173d5042bc52f9d5a98b2 | e40cbc9ec099ca8194a79e6f5c3b784c982ba931 | refs/heads/main | 2023-07-18T20:10:42.981001 | 2021-09-12T14:27:01 | 2021-09-12T14:27:01 | 370,100,780 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # Python program to demonstrate
# duck typing
class Bird:
def fly(self):
print("fly with wings")
class Airplane:
def fly(self):
print("fly with fuel")
class Fish:
def swim(self):
print("fish swim in sea")
# Attributes having same name are
# considered as duck typing
fo... | [
"noreply@github.com"
] | noreply@github.com |
aafafef52ce240ded25a999631cce9f2a04f002a | dcccc67690a07b4b33dea6ddb1de92c20d7a2545 | /accounts/tests/test_form.py | c475c3ade3d24bf785d279f2379792d7b30ee398 | [] | no_license | t4christ/trivial-game | b2b3601b8ca5870832395b18d6d6f486087eb2f3 | 97fc606a41882415128e2d68a572f3d4705ca70c | refs/heads/master | 2023-07-06T11:14:50.174830 | 2023-06-21T19:36:41 | 2023-06-21T19:36:41 | 190,012,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | from django.test import TestCase
# Create your tests here.
import datetime
from django.utils import timezone
from accounts.forms import RegisterForm
class RegisterFormTest(TestCase):
def test_register_form_email_field_label(self):
form = RegisterForm()
self.assertTrue(form.fields['email']... | [
"bakaretemitayo7@gmail.com"
] | bakaretemitayo7@gmail.com |
f782078e74354ee182f30e2d720551f8c900ba4e | 16e775a4792a376c3e98176600944d71093d2537 | /miscellaneous/scripts/create_csv.py | 95f35162bf47ec643228275e9c36fca817a04a8d | [] | no_license | leequan/SceneRecognition-1 | b1a8242515bf13ed9525a1984d2d0c28844d1f62 | 016e2506e663b39cf172dbbc9aeb9918cf8f69b0 | refs/heads/master | 2020-03-24T07:08:50.723684 | 2016-02-22T09:56:09 | 2016-02-22T09:56:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | import os
import sys
import csv
if __name__ == '__main__':
if len(sys.argv) != 2:
print "Usage: create_csv <Base Path>"
sys.exit(1)
if not os.path.exists(sys.argv[1]):
print "Base Path does not exist !"
sys.exit(1)
else:
dest = "./testing.csv"
BASE_PATH = o... | [
"johnnylinxr@gmail.com"
] | johnnylinxr@gmail.com |
0d37212ad0a4f29125a824731a08f3d1111d8ae1 | 30e7173cd25d0c60bf3aecb009366c375e11411a | /articulos/templatetags/dict_key.py | a9144c06451ff0fe29b455948e58eb9ca08bbdd4 | [] | no_license | arm98sub/djangoHospital | 55eb8ab437d1fb2036f55d9247d41fc577978e1e | bef771676b336d9b98f750e2e0648324cb259056 | refs/heads/master | 2023-05-17T14:39:54.510044 | 2021-06-01T23:36:06 | 2021-06-01T23:36:06 | 372,985,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from django.template.defaultfilters import register
@register.filter(name='dict_key')
def dict_key(d,k):
return d.get(str(k)).get('cantidad') | [
"vagrant@ubuntu1804.localdomain"
] | vagrant@ubuntu1804.localdomain |
bb2cac6975527c67a5ad7d92a6370d389ed2c327 | 9de729424563c580270698d019fa6b3411908b08 | /test_main_page.py | feb586766c3e1436db51933d68711a0a294635f0 | [] | no_license | lunaticusz/qa-graduation-project | 70bd004dcdc1c701e1d6cae5bfafdf44a6146813 | 4e3d3a804036525d77be839b1d86f9de752e7aab | refs/heads/master | 2022-12-10T14:16:17.632926 | 2019-12-07T08:02:03 | 2019-12-07T08:02:03 | 223,190,115 | 0 | 0 | null | 2022-12-08T01:07:13 | 2019-11-21T14:16:09 | Python | UTF-8 | Python | false | false | 1,851 | py | # Команда для запуска:
# pytest -v --tb=line --language=en test_main_page.py
# pytest -v --tb=line --language=en -m login_guest test_main_page.py
import pytest
from pages.basket_page import BasketPage
from pages.locators import MainPageLocators
from pages.login_page import LoginPage
from pages.main_page import MainPage... | [
"e.igonichkina@magdv.com"
] | e.igonichkina@magdv.com |
58dac9d086dbc35e3e06a03f450bc12c5fdc07a8 | a783a0f294b224c59d51fdd50c9e8ff448a3f1a2 | /werobot/reply.py | bb28cc83052b41dc41797d5a7e0bfa88e933f259 | [
"MIT"
] | permissive | moonbingbing/WeRoBot | aacadb4eeb823844600e2925c13315ce59289069 | 94cdb19c06f47ea9e78953654a3277bf6ce47381 | refs/heads/master | 2020-12-25T08:43:10.893539 | 2013-03-23T06:27:15 | 2013-03-23T06:27:15 | 9,025,793 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,841 | py | # -*- coding: utf-8 -*-
import time
from .messages import WeChatMessage
from .utils import isstring, to_unicode
class Article(object):
def __init__(self, title, description, img, url):
self.title = title
self.description = description
self.img = img
self.url = url
class WeChatRe... | [
"whtsky@me.com"
] | whtsky@me.com |
b3df16bd97fd7c39119c0201bd5aae23d5c633cf | 9e8fd74b3b41a68dfc18135978df473236a99d7c | /rtlsdr.py | 1a1e755664cb08f583a1c9f34e1b5970efec907a | [] | no_license | RobertGolosynsky/remote_scanner | b5ee5b901839258d27dddc08efd39ef71c4c29fc | 5282b85bb1d0247f4cf4b08b112dacff9ebcfa4f | refs/heads/master | 2020-04-06T12:41:18.833676 | 2019-02-06T12:54:51 | 2019-02-06T12:54:51 | 157,466,010 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py |
import subprocess
class RTLSDR:
def __init__(self):
pass
def scan(self, min_max_step, interval_s, time, filename):
args = ['rtl_power']
if interval_s == '0':
args.append('-1')
else:
args.append('-i')
args.append(interval_s)
args+=[
'-f',min_max_step,
'-g', '50',
'-e', '{}s'.format... | [
"robertgolosynsky@gmail.com"
] | robertgolosynsky@gmail.com |
1ae466d23222088d28716c1920a9d455e51dde44 | d9776a630c276c4779501afede9bd20331b8c0bc | /Homework_3/mean.py | 017eedb9661ddce14ba3509e32cab4ce491015b5 | [] | no_license | itsEdu/CSCI220-Introduction-to-Programming | 38b62f532327170ec2663866b86cec09215bfbf2 | f2a3a9a4028e1b61709a8ebf3bee3bfbfb78c27f | refs/heads/master | 2020-09-13T08:30:35.675373 | 2017-10-10T13:52:03 | 2017-10-10T13:52:03 | 73,516,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | '''
Name: Eduardo Abreu
Problem: Write a Python program designed to output the
RMS (root-mean-square) Average and the Harmonic Mean.
'''
import math
def parseRawLst(rawLst):
lst = rawLst.split(",")
newLst = []
for numString in lst:
newLst.append(int(numString))
return new... | [
"noreply@github.com"
] | noreply@github.com |
ada479315bca15bc08aed6b95ba0e56a5f39ca7e | 1eadd8793a9b13bf18ea0b402d2bb4132bf001a9 | /utils.py | cd05a0997b5c35d26d6dfe39709ebcf1b0e14a65 | [] | no_license | aitirga/gda_brain_tumors | ba5656c8852a481121f4c1c16060309df9288a24 | eeaf98688f7b6d98a9046a572c16726878eed9c0 | refs/heads/main | 2023-06-29T08:11:19.712043 | 2021-07-28T19:27:28 | 2021-07-28T19:27:28 | 390,463,490 | 0 | 0 | null | 2021-08-02T16:14:44 | 2021-07-28T18:36:54 | Python | UTF-8 | Python | false | false | 152 | py | from pathlib import Path
def get_project_path():
return Path(__file__).parent
def get_config_path():
return get_project_path() / "./config"
| [
"aitirga@gmail.com"
] | aitirga@gmail.com |
58cd54b5f3208c9da701917f46cc021dda256bf4 | 7bf444edaa9305b3fac1197ff9661c61011bfcc4 | /Zoddok/shop/products/migrations/0011_product_favorite.py | ff21f1d0aea50809c47628b86a6a669de85e5925 | [] | no_license | ViralSoni104/Shopping-Site | 5f4d3e123ad6918efd643be37b3bcd4d120d627d | 33053ba62e4bc8a5a060c0c958951d67739c8929 | refs/heads/master | 2023-02-13T13:21:34.324448 | 2021-01-12T06:41:53 | 2021-01-12T06:41:53 | 290,803,336 | 0 | 1 | null | 2020-10-01T12:56:30 | 2020-08-27T14:51:17 | CSS | UTF-8 | Python | false | false | 534 | py | # Generated by Django 3.0.8 on 2020-09-29 19:26
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('products', '0010_delete_team'),
]
operations = [... | [
"47710626+ViralSoni104@users.noreply.github.com"
] | 47710626+ViralSoni104@users.noreply.github.com |
108a3b8aa471b952ca309c138f860da3c91af549 | f209a5462a88286fab63fa7d5cd881afbc5b5b71 | /margaritashotgun/repository.py | cc999da12bd1bad7665428a100c745efeaedf1c1 | [
"MIT"
] | permissive | toniblyx/margaritashotgun | 0505a2c4de44b94d4b5e27130bcb307a63d471d5 | 9ec1f800439cb9653a2ba9c3cadb04aa7613b365 | refs/heads/master | 2021-01-20T14:28:20.429158 | 2017-02-21T07:35:39 | 2017-02-21T07:35:39 | 82,754,239 | 1 | 0 | null | 2017-02-22T03:04:07 | 2017-02-22T03:04:07 | null | UTF-8 | Python | false | false | 14,281 | py | import gnupg
import gzip
import hashlib
import logging
import os
import requests
import time
import xmltodict
from datetime import datetime
from io import BytesIO
from margaritashotgun.exceptions import *
from prompt_toolkit import prompt
logger = logging.getLogger(__name__)
class Repository():
"""
Lime-comp... | [
"joel@ferrier.io"
] | joel@ferrier.io |
10f1a3be5b390a52def7d4ea51f59d79ad5e59e7 | 2bc28309657bf3ee0d4d395486c3ae968ca35eec | /scripts/vp_individual.py | 5989f44e3480f6c3a840f09a6e27c28f3d337f7b | [] | no_license | leschultz/vp | e3d9018d4809cdd19eb2be91ddc32441294855b9 | 026d050654aa7c08026168ec4bd9bb0c148b0615 | refs/heads/master | 2020-06-30T02:23:25.183208 | 2019-08-12T11:41:03 | 2019-08-12T11:41:03 | 200,690,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py | from analysis_functions import vp_iterator
import argparse
import os
parser = argparse.ArgumentParser(
description='Arguments for ICO analysis'
)
parser.add_argument(
'-i',
action='store',
typ... | [
"laneenriqueschultz@gmail.com"
] | laneenriqueschultz@gmail.com |
b7a7b83196f4c71b54bc51daa38a1d3f9f08621a | 91869585fafb6f304e734aeb265bff2ff241f09d | /venv/Scripts/autopep8-script.py | 9901f18665c6299567fec375d41917fb7698a118 | [] | no_license | sid2021/flask_blogapp | a33822103b60765bb6c57110e35fe8c9bec3d084 | c174ec39f29a86811ace7f9f43785384ef31babf | refs/heads/master | 2023-01-03T13:15:14.717506 | 2020-11-03T20:52:08 | 2020-11-03T20:52:08 | 309,800,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | #!C:\Users\Kuba\Desktop\MyProjects\flaskr-tdd\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'autopep8==1.5.4','console_scripts','autopep8'
import re
import sys
# for compatibility with easy_install; see #2198
__requires__ = 'autopep8==1.5.4'
try:
from importlib.metadata import distribution
except ImportErr... | [
"wolanski.jakub@gmail.com"
] | wolanski.jakub@gmail.com |
fbb2860ca4221244c0a63770d79e6e96dac90529 | 3603f8f76ff81ea75bfc916888bdcfa55b7f12e4 | /alds/alds1_6_c.py | ac675e72489195bfa0b40dd0da0ab01f62841d94 | [] | no_license | kimotot/aizu | 4de0319959a3b166b8c2c4940ab7b701b6ee3395 | 315be1240cff733e1c6a7cd98942a95b3bd7ec96 | refs/heads/master | 2021-07-24T12:37:41.935302 | 2021-03-10T09:05:05 | 2021-03-10T09:05:05 | 91,927,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | def decode():
n = int(input())
cards = []
for i in range(n):
[m, v] = input().split()
cards.append((m, int(v), i))
return n, cards
def partition(a, p, r):
x = a[r][1]
i = p - 1
for j in range(p, r):
if a[j][1] <= x:
i += 1
t = a[j]
... | [
"god4bid@hear.to"
] | god4bid@hear.to |
1a9e69058adada5cf59211d0e18c4d57611b5fc0 | dcfd89a6a8ebf3b32948dbf93e222063c223bec4 | /v2/api/Models.py | 3b97f745e06490cfcab6047d4c1f5baeb491b429 | [] | no_license | SirYaro/kdm-manager | a19ff1d7711bc39a2de9e8f740cb03fac28a52b7 | 263d1330764b915f3acb0771e58845020cce06b2 | refs/heads/master | 2021-09-05T05:47:58.511224 | 2018-01-24T15:09:18 | 2018-01-24T15:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,307 | py | #!/usr/bin/python2.7
from bson.objectid import ObjectId
from collections import OrderedDict
from copy import copy, deepcopy
from datetime import datetime, timedelta
import json
from bson import json_util
import inspect
import operator
import os
import random
import socket
from user_agents import parse as ua_parse
fro... | [
"toconnell@tyrannybelle.com"
] | toconnell@tyrannybelle.com |
0b06ccb8ca16626f5a41f60647f485724de940ff | f232e836ed460fe23c76b48573fb1b3c7d6c8150 | /engine/api/router.py | 3bce071710b0af950cc09df7319028bb18fc5016 | [
"Apache-2.0"
] | permissive | subratcall/katana-skipper | 6b5e768841e91a11f569270dbd53764899fe01af | aa9bef644c27caa4d8515e3bded322860111e915 | refs/heads/master | 2023-05-28T09:59:52.518915 | 2021-06-04T20:11:30 | 2021-06-04T20:11:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,127 | py | from fastapi import APIRouter
from .models import WorkflowTask, WorkflowTaskResult, WorkflowTaskData, WorkflowTaskCancelled
from .tasks import process_workflow
from celery.result import AsyncResult
from fastapi.responses import JSONResponse
import json
from .backend.event_producer import EventProducer
router_tasks = A... | [
"andrejus.baranovskis@gmail.com"
] | andrejus.baranovskis@gmail.com |
84330694197b406ea79fd66aedead88784a21bdd | 602f46f5b16f50ac3ca7883b95cd07a6b9010e00 | /chocolatefeast.py | 378759f2a7d5cb06f8d7820e2556749c8cb65739 | [] | no_license | raghothams/rankerhack | bf88c5fc4c6c78ba49c900489859a9f57eaf09f5 | 67fa4ea7de36d4eaf710a1d52cfe5df3fb57dd10 | refs/heads/master | 2016-09-10T15:41:36.899940 | 2014-05-05T04:20:22 | 2014-05-05T04:20:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py |
T = int(raw_input())
for i in range (0,T):
N,C,M = [int(x) for x in raw_input().strip().split(' ')]
total_choc = 0
chocs = 0
if N > C:
total_choc = N / C
wrappers = total_choc
while wrappers >= M:
chocs = wrappers / M
wrappers = (wra... | [
"raghotham.s@gmail.com"
] | raghotham.s@gmail.com |
5d25a95bf956d2210cab76d2bd46dc9719e6b30c | e8e411a0ff1da1e0ec9350e4d1b7d24353c2c4c6 | /bytearray from list.py | 55e43aac0814529329c8032099aec479d46cdc99 | [
"MIT"
] | permissive | manand881/Python-Programs | b3333b68172d4f0d7c0757f40f1608bfc6a6523a | eb970cb1b21d4aede0102c60425eb8a1d4ac605c | refs/heads/master | 2020-03-24T22:50:25.430484 | 2019-05-17T04:57:59 | 2019-05-17T04:57:59 | 141,669,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | # Create a bytearray from a list
print()
nums = [10, 20, 56, 35, 17, 99]
# Create bytearray from list of integers.
values = bytearray(nums)
for x in values: print(x)
print()
print("type of nums",type(nums))
print("type of values",type(values)) | [
"manand881@gmail.com"
] | manand881@gmail.com |
665a87a65f3939ca3dfd6824b1d96fcfadf8dae7 | 120a41a50c1127e88e4e4d4781625394c0d6047e | /imu_9drazor/scripts/msgConverter.py | ea8dbb5bbcfe0fd77a91f5866b16d1bfa67d9a6f | [] | no_license | adasta/rutgers-ros-pkg | 0004ed77ef1202c9f0c169a73f851f6c1396ebf3 | 93b88641ea60d06a5b1ea8af5f823b81c1c98e2b | refs/heads/master | 2018-12-28T18:29:47.943244 | 2011-01-29T22:26:56 | 2011-01-29T22:26:56 | 849,863 | 1 | 0 | null | 2014-07-04T16:30:17 | 2010-08-19T21:26:59 | C | UTF-8 | Python | false | false | 1,757 | py | #! /usr/bin/env python
# ROS driver for Sparkfun 9degree of freedom AHRS
#
# microstrain stdev="0.00017"
# cov = (std*std)^2 (ie variance * variance)
# since the sparkfun imu cant be as good as the microstrain, i am going to say
# that the std = 0.01
import roslib
roslib.load_manifest('imu_9drazor')
import rospy
impo... | [
"adasta@gmail.com"
] | adasta@gmail.com |
ec81c5347f900f5b8390d51c5ec6dc1d24fd7dd3 | b29349323954d7a7036f56cef4139ed2c8fcb4f0 | /scripts/color_sample.py | cbecd9d3b9924273ebb76deaaba6cd36e6b5d975 | [
"MIT"
] | permissive | JDevlieghere/dotfiles | e23098fb0241367764243531804c8b9f0ef41ac5 | 09fbb4369c2e54dd38c2566a283eb05864499068 | refs/heads/main | 2023-09-01T02:23:14.303513 | 2023-08-23T16:36:05 | 2023-08-23T16:36:05 | 39,687,300 | 336 | 123 | MIT | 2020-02-24T05:32:45 | 2015-07-25T13:52:36 | Perl | UTF-8 | Python | false | false | 2,707 | py | #!/usr/bin/python3
"""
usage: color_sample.py [-h] [file]
Color a call tree file generated by sample
positional arguments:
file sample file
optional arguments:
-h, --help show this help message and exit
"""
import re
import argparse
import fileinput
import bisect
END_MARKER = "Total number in stack"
BE... | [
"jonas@devlieghere.com"
] | jonas@devlieghere.com |
fbd5434718f074b8215b74b61004255aac3896fb | 59ea89f1162f8048d9f7f10f6e6a3a1567c56607 | /python/bil_decode_gabor_itc_binning.py | 51d7409843d01aaea7582a440a6139510cbb5533 | [] | no_license | elshafeh/own | a9b8199efb3511aa1b30b53755be9337d572b116 | ef3c4e1a444b1231e3357c4b25b0ba1ba85267d6 | refs/heads/master | 2023-09-03T01:23:35.888318 | 2021-11-03T09:56:33 | 2021-11-03T09:56:33 | 314,668,569 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,512 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 23 15:22:50 2019
@author: heshamelshafei
"""
import os
if os.name != 'nt':
os.chdir('/home/mrphys/hesels/.conda/envs/mne_final/lib/python3.5/site-packages/')
import mne
import numpy as np
from mne.decoding import (SlidingEstimator, cross_v... | [
"elshafeh@gmail.com"
] | elshafeh@gmail.com |
eacf7b7e2e8cbc4bef268a86f4123bc20ea172cb | 1d6a727f7ce4aba5e74b4aea61e5f14a833ab014 | /pytext/main.py | a2a3e0ce3a525bfe8fd998810158e1d292050f24 | [
"BSD-3-Clause"
] | permissive | Smerity/pytext | 56daa678c8ea7f3a48eb074cb11e5ea90fb3ed8d | 3c7ecd48860b9f02680f297873a222fa47d1efe6 | refs/heads/master | 2023-08-10T01:32:46.256450 | 2019-04-05T18:21:38 | 2019-04-05T18:25:05 | 179,795,531 | 0 | 0 | NOASSERTION | 2019-04-06T06:06:09 | 2019-04-06T06:06:08 | null | UTF-8 | Python | false | false | 14,695 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import json
import pprint
import sys
import tempfile
from importlib import import_module
from pydoc import locate
from typing import Dict, List, Optional, Union
import click
import torch
from pytext import create_predictor
f... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
10f845697bd2d9209660d1082d7ed90a2352d08d | 6f2cccf7c9aaa8f473ca1749ebd4e0f62b3452e8 | /edX/Introduction into Programming - Python (MIT)/Problem Set 4/ps4b.py | 98b80fbf2ee81f7c5d5c467c1248454df4f55ba4 | [
"Giftware"
] | permissive | abudish/Course_Materials_and_Certificates | 01138ef2203800f6c279cfd68d8ad5eea4a07c5d | fee27859569624f1e8df143001e1ab995b10088c | refs/heads/master | 2021-06-04T09:15:20.516215 | 2020-12-17T18:16:19 | 2020-12-17T18:16:19 | 109,249,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,698 | py | from ps4a import *
import time
#
#
# Problem #6: Computer chooses a word
#
#
def compChooseWord(hand, wordList, n):
"""
Given a hand and a wordList, find the word that gives
the maximum value score, and return it.
This word should be calculated by considering all the words
in the wordList.
... | [
"andreybudish@gmail.com"
] | andreybudish@gmail.com |
934c5f591cbd1e889937d83917b0417c2fa830bf | d9f0789ed43b0870f3a93675c511afa6844cd9ee | /venv/bin/python-config | 87643da503fdf2e6f588cc256a118c10133d96e9 | [] | no_license | fmors/webdiff | 7d3e194440b69272c4723354c02eaf53e8fb4a1b | 9abd2a07f80ff30ed98b4dcd96ac0a92384e5c20 | refs/heads/master | 2021-05-07T09:11:48.787934 | 2017-11-06T00:57:12 | 2017-11-06T00:57:12 | 109,513,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,355 | #!/home/fernando/Documents/webdiff/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.vers... | [
"fernandomslvr@gmail.com"
] | fernandomslvr@gmail.com | |
ee5c4afe63fa31ea2d01bec4656b019058d5622e | 2feb50463d6b21162664c1592ffa6f3c1db7a122 | /board/workSpace/main.py | 970fb957d4105dcf2c2dc3e667c8c157ec9df79c | [] | no_license | Lancer-zhang/ESP32_MQTT | fccacff7678c3c986ed689229c01fdc5b1a77d50 | bbf304e84241415e9a6adb3b42e283b4f0b6a119 | refs/heads/master | 2020-06-18T05:10:03.492147 | 2019-07-10T09:52:44 | 2019-07-10T09:52:44 | 196,174,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | import subcriber
subcriber.mqtt_connect()
| [
"zhangyufei@hangsheng.com.cn"
] | zhangyufei@hangsheng.com.cn |
75a5ad57248ab570bc94a24c02b246e07f9534cf | f9e105785cad44fc7b492ed1b0a16e28e7535423 | /ros_workspace_TETRIX/ros_workspace/build/rpi_camera/catkin_generated/pkg.installspace.context.pc.py | 10955a5a4d43251c247852aef9606411372c559a | [] | no_license | lnewbrook/Robotics | 04bfa8b84b91f6c25cea3a9eb3230bdb135ea9a9 | f8b7829cc53957c5574f6c7baca34d107ca00be9 | refs/heads/master | 2021-01-01T20:19:11.109983 | 2014-12-19T01:23:46 | 2014-12-19T01:23:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | CATKIN_PACKAGE_PREFIX=""
PROJECT_ABSOLUTE_INCLUDE_DIRS=""
PROJECT_CATKIN_DEPENDS=""
PKG_CONFIG_LIBRARIES_WITH_PREFIX=""
PROJECT_NAME="rpi_camera"
PROJECT_SPACE_DIR="/home/pi/ros_workspace/install"
PROJECT_VERSION="0.0.0"
| [
"jialiang@berkeley.edu"
] | jialiang@berkeley.edu |
4e2e0d61af7f46cb132981be20e6f6fd6aae140e | ae677649b6a862b57bb82b0a87f113743b14cd62 | /taxi/taxi/urls.py | a8a751820d15109d69151ef8236c467ac9fe4742 | [
"Apache-2.0"
] | permissive | rombr/agile-fusion-test-task | 6e5b32159f5b4efd3f60cd75e3668417562aaa46 | eacf3d5e41afdac9b88658e9ddd1e0dc8fef7631 | refs/heads/master | 2021-01-10T04:22:58.402845 | 2015-11-23T17:35:20 | 2015-11-23T17:35:20 | 46,679,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | """taxi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based ... | [
"rombr5@gmail.com"
] | rombr5@gmail.com |
597ea0852a5bef65bea9fe83d2dcac3322fadd3f | 1165e63f222dc7a139cb3005e205f27e44ed0826 | /plus_one.py | 215778018d933be99abdee6bd85e884727cdfc91 | [] | no_license | misrashashank/Competitive-Problems | ac6c80c6a7d8365004452552a06801ac002ef809 | bcd5517fe834062c9e941300ad07a37efdff9c75 | refs/heads/master | 2021-07-19T09:42:41.221405 | 2020-05-16T22:04:46 | 2020-05-16T22:04:46 | 162,201,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | '''
Given a non-empty array of digits representing a non-negative integer,
plus one to the integer.
The digits are stored such that the most significant digit is at the head
of the list, and each element in the array contain a single digit.
You may assume the integer does not contain any leading zero,
except the numb... | [
"misra.shashank1@gmail.com"
] | misra.shashank1@gmail.com |
570829b019832f73ad2eafe492f835da998da1ee | 1dfb14458c4f968e685ed6ef79a21c849e7f896f | /website/urls.py | ffc36dcd2ddd9d8c00dd6b914f8e8f77c1b0c683 | [] | no_license | Mirofd33/website | 93af79edee34b307d15c4fa8adf54f91776e1206 | 1e10eab38316cce9e69e1cc11935d3e39b96118f | refs/heads/master | 2023-04-10T10:15:39.811956 | 2021-04-08T03:42:41 | 2021-04-08T03:42:41 | 363,418,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | """website URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
... | [
"xunsizuobi84@126.com"
] | xunsizuobi84@126.com |
a9d91b1bfd4583bb647e6e8df8bfea24c76353a5 | 41b6d42bfc8b0ce28952595132ce93a0e75176dd | /2020/12/A - Calc.py | 9a5ed757c746c4a793821cb5fa4f3b28e14d2970 | [] | no_license | g0-I/AtCoder_log | e013103d88855146c474756d84f81a47811765f9 | db29528a80c7332e5bd7b401575e881682eb1929 | refs/heads/main | 2023-03-29T15:27:31.388324 | 2021-04-11T15:00:52 | 2021-04-11T15:00:52 | 302,367,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | a = int(input())
print(a * (1+a*(1+a)))
| [
"noreply@github.com"
] | noreply@github.com |
5e3fbd7e68a9f9a546b5ab547039decf8d759b24 | c50cf19707ecf44c8e15acf0e994d288fe4f01a7 | /credit/admin.py | d27528df722953df4b3f2fcffcb8d2b79e4637f8 | [
"MIT"
] | permissive | JeremyParker/idlecars-backend | ee5981356c60161dee05c22e01e5c913e73083c0 | 819cce48e4679d61164b238b81dab0e4d51b8afa | refs/heads/master | 2021-03-16T04:29:43.287760 | 2018-03-03T23:16:02 | 2018-03-03T23:16:02 | 31,734,223 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | # -*- encoding:utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from credit import models
class CustomerAdmin(admin.ModelAdmin):
readonly_fields = [
'user',
'invite_code',
'invitor_code',
'invitor_credited',
]
list_display = [
'use... | [
"github@jeremyparker.org"
] | github@jeremyparker.org |
f23bd713f2e4459533a57f0986fe4a39bbce0390 | 0b2a4ddaaf35b9a6101ef54ef9831519390488b9 | /interleave/interleave.py | d47caa5644926ea4db0d7f57774751bb2aa7a7d3 | [] | no_license | mUtterberg/python_morsels | 074c98b68497de21e97aab4e5f2f695f6a2751f3 | 09266424ead659b1e8e0a489c878ca828c5e7520 | refs/heads/master | 2021-06-07T17:50:32.665461 | 2021-04-30T19:16:14 | 2021-04-30T19:16:14 | 148,316,985 | 2 | 1 | null | 2019-06-01T11:18:38 | 2018-09-11T12:54:10 | Python | UTF-8 | Python | false | false | 163 | py |
def interleave(list_1, list_2):
for (item_1, item_2) in zip(list_1, list_2):
yield item_1
yield item_2
if __name__ == "__main__":
pass
| [
"Marissa@UtterbergDataDev.com"
] | Marissa@UtterbergDataDev.com |
671beb39be989c85863783d02e141e31d53be4be | 8516bcb2cd4f40f5fbdff488605019d6c7ac3e01 | /accelerator/twitter_handle_cleanup/organization_cleanup.py | b0db1610538e12a45761a9b1ba5bd4fba7ebdfe9 | [
"MIT"
] | permissive | masschallenge/django-accelerator | 0b0782ceb3b010715fbe829f774246ca4a68af23 | 665351d06c2adc65c48642905c499b8226276d12 | refs/heads/development | 2022-11-22T18:40:08.410117 | 2022-11-10T15:11:38 | 2022-11-10T15:11:38 | 94,241,861 | 6 | 0 | MIT | 2022-11-10T15:11:40 | 2017-06-13T17:55:54 | Python | UTF-8 | Python | false | false | 1,760 | py | import re
from .utils import (
remove_leading_slashes,
remove_trailing_slashes,
remove_trailing_and_leading_whitespace,
remove_leading_hashtag_on_valid_twitter_handles,
remove_twitter_url_prefix_from_handles,
remove_not_available_abbreviation_from_twitter_handles,
remove_hashbang_from_twitt... | [
"vincenthokie@gmail.com"
] | vincenthokie@gmail.com |
eb6166eec43fe151d8738787a51a433ff70d1972 | 5b9f7edaf22297d0d6d0239135f1b2484fd24b34 | /module07.mysql.with.python/exercise08.py | 9aad91a512ff126d042535a8a26bd58f3cb5c995 | [
"MIT"
] | permissive | deepcloudlabs/dcl162-2020-sep-02 | 925791b5c7adae8263e82a3c9a6a406d0b68eb0e | abd21c59d89985e9f5922df65fd1a5ccab019de4 | refs/heads/master | 2022-12-12T16:10:58.497846 | 2020-09-04T18:16:06 | 2020-09-04T18:16:06 | 291,666,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | import mysql.connector
my_connection = mysql.connector.connect(host="localhost", user="root", password="Secret_123", database="world")
my_cursor = my_connection.cursor()
sql = "select ctry.name, city.name from country as ctry inner join city as city on ctry.capital = city.id limit 10"
my_cursor.execute(sql)
result... | [
"deepcloudlabs@gmail.com"
] | deepcloudlabs@gmail.com |
d80af6ac6caa716e1f7c8f2cf9d5a0cab2561abb | 3b924c7eaf9f3df55df530b9b327a1e9ccdb9d17 | /tests/ui/screens/test_select_session_screen.py | ea9a386cee45d881930554ae8e5e4b07f2507d9f | [
"MIT"
] | permissive | ConstantinUrzica/mitzasql | 6209705a633951039ca873a55ed0a2ed16e1b08f | a0700c0bb159a770bf1f10f2826cefa0343dc724 | refs/heads/master | 2020-05-23T22:14:55.178028 | 2019-05-15T20:08:56 | 2019-05-15T20:08:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,865 | py | import tempfile
import os
import pytest
from mitzasql.ui.screens.session_select import (session_select, states)
from mitzasql.ui.widgets.saved_sessions_list import SavedSessionsList
from mitzasql.ui.widgets.create_new_session_dialog import CreateNewSessionDialog
from mitzasql.ui.widgets.edit_session_form import EditSe... | [
"vlad.balmos@gmail.com"
] | vlad.balmos@gmail.com |
e12d33b1eaa43f0f96a5312c21d3e31d8d937c06 | c3df0f8ed5b7ad2ebc387b1f49430f9a31a5ef23 | /mychannels/settings.py | 99d8408da203cdcbdd9cf841dd41cd0bd362985c | [] | no_license | leonardo1497/myChannels | a05352a6a812b4883ee4a259493202646bf8b9a7 | 1f977a4b53d0561a76b6260dac656204c6bf3f26 | refs/heads/main | 2023-02-01T00:35:17.517485 | 2020-12-17T23:38:05 | 2020-12-17T23:38:05 | 322,436,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,740 | py | """
Django settings for mychannels project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from path... | [
"1497enrique@gmail.com"
] | 1497enrique@gmail.com |
00342589534bc8d2b1b183d4fffc87cf8363fd73 | 63deaf056c59db72a1df338fddaa99453a4fbb6f | /haystack/nodes/question_generator/question_generator.py | 05f26d5e7c577959fa1f867d3c7a54e6e78f10f1 | [
"Apache-2.0"
] | permissive | aantti/haystack | 60efb46b090fdaf3b00e14e9b16afb617107a7fe | 6f6f2357fdef9e98850a7ffcd80f18b05aa7cfaf | refs/heads/master | 2023-08-20T23:41:10.416841 | 2021-10-26T09:47:25 | 2021-10-26T09:47:25 | 339,123,743 | 0 | 1 | Apache-2.0 | 2021-02-16T15:15:18 | 2021-02-15T15:39:59 | null | UTF-8 | Python | false | false | 5,386 | py | from typing import List
from transformers import AutoModelForSeq2SeqLM
from transformers import AutoTokenizer
from haystack.schema import Document
from haystack.nodes.base import BaseComponent
from haystack.nodes.preprocessor import PreProcessor
from haystack.modeling.utils import initialize_device_settings
class Q... | [
"noreply@github.com"
] | noreply@github.com |
aafad1db0c1f63a9bddf8464f320ab460c616abe | 59d2d80ee18056525576e000a8ffb1c8a4501677 | /catalog/suggested/priority_queue/heap.py | 2d3d50d618466726596a5587cafa8c8d5e745aa5 | [] | no_license | tashakim/code-catalog-python | bbc04df54ba8f341c5d050d07df2da8242131085 | ed95d93c1c5fdfb01b6d2bd0c82df543abe364f8 | refs/heads/master | 2022-11-09T04:11:02.725197 | 2020-06-16T05:58:29 | 2020-06-16T05:58:29 | 272,621,835 | 1 | 0 | null | 2020-06-16T05:56:13 | 2020-06-16T05:56:13 | null | UTF-8 | Python | false | false | 1,427 | py | import numpy
def heap_sort(data):
heapify(data)
end = len(data) - 1
while end > 0:
data[end], data[0] = data[0], data[end]
end -= 1
sift_down(data, 0, end)
def heapify(data):
length = len(data)
for i in reversed(range(length // 2)):
sift_down(data, i, length - 1... | [
"john@readyprompt.com"
] | john@readyprompt.com |
805a2619d4e4da6de40c77151c12caa6c35600e0 | 3ede8e6338936e08e6283b68bac0cb4e952b1b24 | /bytedance/question1/solution.py | dddcefb44c2dfe751b9d299332f8e24fe9209c49 | [] | no_license | Lemonstars/algorithm | 501726d40958c77a1f45520a68d43a04014aa2d2 | 944b633bc2718382628adfc136d72e3073fa2f03 | refs/heads/master | 2022-08-11T02:25:41.618059 | 2022-08-03T14:25:55 | 2022-08-03T14:30:29 | 173,030,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,919 | py | # #coding=utf-8
# # 本题为考试单行多行输入输出规范示例,无需提交,不计分。
# import sys
# for line in sys.stdin:
# a = line.split()
# print(int(a[0]) + int(a[1]))
# 本题为考试多行输入输出规范示例,无需提交,不计分。
import sys
import copy
if __name__ == "__main__":
matrix = list()
for line in sys.stdin:
values = list(map(int, line.split()))
... | [
"mf1832103@smail.nju.edu.cn"
] | mf1832103@smail.nju.edu.cn |
8fe9a9aa9e67b8b7e97efc8e2c7a2c3c38191481 | 56383649a68bae78972299a06a072605379303de | /Practice Midterm 2 2016 Spring.py | 29c8807f857eb83f272435cd3d26b4d267665090 | [] | no_license | ChainsawRambo/NJIT-CS-100 | 3b4edd4dbce498ac608d9e107d852fc0d6cdfe9f | ff5791c2efc20469b468152c0bfdc34dc303ac13 | refs/heads/master | 2020-09-30T00:44:55.828705 | 2019-12-10T16:02:14 | 2019-12-10T16:02:14 | 227,159,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,259 | py | #Devon Keen
##CS 100-017
#10/29/18
#Practice Midterm 2 2016 Spring
#MCQ
#1. a
#2. d
#3. c
#4. d
#5. e (nothing happens when you run it, only an empty line)
#6. e (Key Error)
#7. c
#8. d
#9. d
#10. e (answer is 4)
#11a.
def capitalL(t,width):
height = 2*width
t.down()
t.forward(wid... | [
"noreply@github.com"
] | noreply@github.com |
09a6fa7f3033f4fb40be0af0bda8c23201095e4a | 4d097d0e8c571874761463f698f5d34e38e549a0 | /python/b_1002 터렛.py | dbb3151cd939c0f0d6da6eb38b86c8cf3d2fd6e3 | [] | no_license | sondongmin0419/study | 533832151958fe8ae178d8aee183edf91ffa7e12 | 0c863e2c9111b35a15ccfaec3cc64828c584beb1 | refs/heads/master | 2023-03-24T11:54:04.139399 | 2021-03-15T13:40:21 | 2021-03-15T13:40:21 | 281,695,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | import sys
input = sys.stdin.readline
n = int(input())
for TC in range(n):
x1, y1, r1, x2, y2, r2 = map(int, input().rstrip().split())
distance = ((x2 - x1) ** 2 + (y2 - y1) ** 2) ** 0.5
if x1 == x2 and y1 == y2:
if r1 == r2:
print(-1)
else:
print(0)
elif r1 + ... | [
"dongmin.dev0419@gmail.com"
] | dongmin.dev0419@gmail.com |
c10bc84fef0f66a4b4a58a2786700ce395a7866b | d9c9a5cfbcc6635785bfee750b96869c2308a98a | /pde.py | 9b39f39b8f945a70aa23a63c61cf2a111df71749 | [] | no_license | neolee/learn-tf-1.0 | 39ce2cba4cdcf32b15a4775dccaa482c2f03c0f5 | 3db65da4e28beebdad692e1a0a6e155bbd6cbdca | refs/heads/master | 2021-09-18T12:58:57.759275 | 2018-07-14T10:31:43 | 2018-07-14T10:31:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,931 | py | import tensorflow as tf
import numpy as np
import PIL.Image
from io import BytesIO
def draw_array(a, fname, fmt='jpeg', range=[0, 1]):
"""Draw an array as a image file"""
a = (a - range[0]) / float(range[1] - range[0]) * 255
a = np.uint8(np.clip(a, 0, 255))
with open(fname, 'w') as f:
PIL.Ima... | [
"neo.lee@gmail.com"
] | neo.lee@gmail.com |
cae1a3b6d452892aea1aa186f1cdd345680d6a9d | 8c141f5f6672c59bf9fce7d87767a295bb4ddfae | /setMeeting.py | f8b1572a31a7693a54424e0a048c3d01a50291b6 | [] | no_license | saurabhkm/outlookAutomation | fb80e6407aacdb081bbdc3c0490cb5fdeb3a26ee | 9aadfc953108aefd1eeb857642f2849e9df3e337 | refs/heads/master | 2020-04-17T11:33:26.107208 | 2019-01-19T12:41:18 | 2019-01-19T12:41:18 | 166,545,186 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | import win32com.client
import datetime
OUTLOOK_FORMAT = '%m-%d-%Y %H:%M'
outlook_date = lambda dt: dt.strftime(OUTLOOK_FORMAT)
reminder = 15.5
oOutlook = win32com.client.Dispatch("Outlook.Application")
appt = oOutlook.CreateItem(1) # 1 - olAppointmentItem
#appt.Start = '2012-03-8 17:00'
appt.Start = outlook_d... | [
"saurabhkm007@gmail.com"
] | saurabhkm007@gmail.com |
ce580dc80f9d1e254df39bbd9c803c0514315380 | ffaba5d94ea820281fee39be0841e3bf08ed157c | /setup.py | c3e69ea047bbcb8f389a65050e82f6fedcd67a85 | [
"MIT"
] | permissive | arruda/Twitter-Get-Old-Tweets-Scraper | d532e316ce013f94426bb9c999112c554b0f585f | 6999a2c72df3866cb4a196370172c50b90b57e8d | refs/heads/master | 2020-03-19T17:29:46.926370 | 2018-06-10T06:09:32 | 2018-06-10T06:09:32 | 136,762,748 | 1 | 1 | MIT | 2020-03-19T06:35:05 | 2018-06-09T22:35:46 | Python | UTF-8 | Python | false | false | 1,202 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
with open('README.md') as readme_file:
readme = readme_file.read()
requirements = [
"pyquery>=1.2.17",
"requests>=2.13.0",
]
setup_requirements = [ ]
test_requirements = [ ]
setup(
au... | [
"felipe.arruda.pontes@gmail.com"
] | felipe.arruda.pontes@gmail.com |
98295b2cb205c7507e6df57bc7fb0cb355b566da | 253ba65cb5b3267cc40e75416ca385fa34f3e4b9 | /pages/urls.py | c6fb117b6ba56045fd7628cfd07457fc5cb9ae44 | [] | no_license | hijal/Sharing-Caring | 3cf67fa358c7be343c2355031887db81c2f5c9d1 | 75b17b13bb67e37c5ecf8a33fcf99b598886061e | refs/heads/master | 2020-04-11T07:23:17.577335 | 2018-12-14T16:20:26 | 2018-12-14T16:20:26 | 161,608,567 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from django.urls import path
from .views import HomePageView
urlpatterns = [
path('', HomePageView.as_view(), name = 'home'),
] | [
"hijikeshhijal@gmail.com"
] | hijikeshhijal@gmail.com |
970ad4b252df9b176f270a8a96ab8183609bc98c | 4936ea31ff84de57c2e646fef8cbb04516c03c99 | /reviews/management/commands/seed_reviews.py | d2b898129c630f95034dcbb3361b157219d10169 | [] | no_license | kkhh9469/airbnb-clone | e47b19f7231b156055025e629e6b4a5e428d5f67 | d9eae1a0e976b181f28d2f880d784f646fca545d | refs/heads/master | 2023-02-01T04:13:15.705941 | 2020-11-27T14:30:41 | 2020-11-27T14:30:41 | 293,695,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | import random
from django.core.management.base import BaseCommand
from django_seed import Seed
from reviews import models as review_models
from users import models as user_models
from rooms import models as room_models
class Command(BaseCommand):
help = "This command creates reviews"
def add_arguments(self,... | [
"66230761+kkhh9469@users.noreply.github.com"
] | 66230761+kkhh9469@users.noreply.github.com |
07fa8c07b29110af5236f5a4438944f41a3b977f | ae7b48957fd15d3b79c62b0f936b18dd77878e6c | /rho_v_h.py | 2769bed66579326915e7d4d0000159cf81414d6f | [] | no_license | PDI16A/LAB3 | 856bd093784b46470c22dcb19c4b12e32f9ace2e | e620deefdbeb76d1f058b438d392183c43356b42 | refs/heads/master | 2020-12-25T14:39:16.278787 | 2016-06-07T17:27:37 | 2016-06-07T17:27:37 | 60,563,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,680 | py | import os
from SimpleCV import *
import matplotlib.pyplot as plt
import time
from pylab import imshow, figure, show, subplot
import numpy as np
import Image
import cv2
import math
def rho_v_h(img, promedio_rho):
b,g,r = cv2.split(img)
dimX,dimY = img.shape[:2]
A_h_r = 0
A_h_g = 0
A_... | [
"guimachuca@udec.cl"
] | guimachuca@udec.cl |
98578271ff134621aa5698f8dad4dd7168228fea | c4570396268e99fe4baca1260274cc95f4581723 | /src/contest/weekly-contest-187/code_5402.py | 77ffe466d524c51d3bcd039498280e2d530fba9c | [] | no_license | fanzijian/leet-code-practice | c255b5c49df72529a23a42452fb09d2ca5de51a0 | 70a580603d996d9843cda3c167c6e63c29df6656 | refs/heads/master | 2021-05-25T16:05:13.451770 | 2020-11-09T15:01:06 | 2020-11-09T15:01:06 | 253,818,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,647 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
"""
?????https://leetcode-cn.com/problems/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit/submissions/
Authors: fanzijian
Date: 2020-05-03 11:23:56
"""
class Solution(object):
def longestSubarray(self, nums, limit):
"""
:ty... | [
"1158534904@qq.com"
] | 1158534904@qq.com |
037c4ca4bc34aaba9dbec1cf244192ff70767f46 | ebc021c80facc0026934f2e8a8b430ef89081126 | /CalBarraMomentum.py | f27735a2f21d0a78bc9b2c12a09d5619efe1d74d | [] | no_license | lxj0276/BARRA_risk | 22af9d7eb9d21e876f8dd527805e6b89adddf5eb | 76d7c6cc4a93b219922b9382bf308692eea63476 | refs/heads/master | 2020-11-28T06:31:39.397308 | 2019-12-20T06:58:18 | 2019-12-20T06:58:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,760 | py | """
Created on Wed Nov 13 2019
@author: heyuan
"""
import pandas as pd
import numpy as np
import math
import datetime
import sqlalchemy
import urllib
from sklearn import datasets, linear_model
def linear_regression_int(X,y):
reg = linear_model.LinearRegression()
reg.fit(X,y)
return reg.intercept_
def cal... | [
"noreply@github.com"
] | noreply@github.com |
ee8aa99ade23479a983764da1775a04a61b82685 | 0c9b91297ba31935c57c0bce7d1a06f15c4efec1 | /CreateWeatherHistogram.py | 215a319b3b99712e1b33c18ec327a5738d54246b | [] | no_license | ChadLei/Weather-Histogram | af9ec6c32f522a1de3699620f1bc692e6e1ec1fb | fc9823d73c3f3e93732ad2de7d0140ba4f91dbe8 | refs/heads/master | 2023-06-24T15:49:21.139015 | 2021-07-16T21:40:59 | 2021-07-16T21:40:59 | 386,767,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,078 | py | import re
import datetime
import requests
import json
import csv
import argparse
import logging
import time
import os
import matplotlib.pyplot as plt
class WeatherHistogram:
def __init__(self, input, output, bucket_count):
self.input_file = input
self.output_file = output
self.bucket_count ... | [
"cblei@uci.edu"
] | cblei@uci.edu |
f66ef8809a3ce8550baa37b01d6fbfb57d59fe22 | 041469cfe025d838bba0a40ca172d2874605d618 | /Python/environments/djangocourses/djangocourses/settings.py | 8f0a825cf27998f2d1cecfc8940ff19d5768cbba | [] | no_license | anarslez/repo1 | 06816547b21504e46fa0840e9c898c3470195321 | 625befde39851d9a3bb9dfd09067f344ce68665e | refs/heads/master | 2020-03-24T19:23:52.235714 | 2018-09-11T03:59:14 | 2018-09-11T03:59:14 | 142,923,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,137 | py | """
Django settings for djangocourses project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
impor... | [
"anarslez@gmail.com"
] | anarslez@gmail.com |
3d7ee8ae84ab5ab58c26d82efde6cdd7d3a8ccaf | 461d2f0d79a7d5db82fcced6f7c29fc7bd5903d8 | /octant_functional/all.py | ecf165e73dba5ce094cd0768bfbe5d469979fefd | [
"Apache-2.0"
] | permissive | shrek/octant | f4f2f080e47200862ba0790c642e0eaed641d385 | 3b13b44b6727382de31ab969be0e8d3c80a882b8 | refs/heads/master | 2022-04-02T08:46:27.690193 | 2020-02-10T12:15:04 | 2020-02-10T12:15:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,004 | py | # Copyright 2018 Orange
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | [
"pierre.cregut@orange.com"
] | pierre.cregut@orange.com |
d446ecb118b19a35a16437d69b3143f2f614af98 | 3ceac0fdd6a6fb90c5402d3d5725dd13bd6c2ffe | /implementingnbdev/__init__.py | ca9ace776d2d4525b40fcbc9f056ca6ea2ffd1ed | [
"Apache-2.0"
] | permissive | leanne-kim/implementingnbdev | c75c54fa1943a6f6001091e83982ebb5c15422a7 | b4074c5723e698ff3fa5da2c72dc1d6087d52795 | refs/heads/master | 2023-04-12T22:27:29.094796 | 2020-01-17T15:48:22 | 2020-01-17T15:48:22 | 232,628,594 | 0 | 0 | Apache-2.0 | 2023-04-11T23:28:00 | 2020-01-08T18:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 44 | py | # from .core import *
__version__ = "0.0.1"
| [
"leanne@hellosoda.com"
] | leanne@hellosoda.com |
04a545784e294c836de742a6d821a7fb037be579 | 47af6dffa5c13dc07c5fbd2ca5fe737a0b07b7e9 | /translateAPI.py | 61e26bfe69636a000a8c29d175a6f7c91e72cd31 | [] | no_license | RootReturn0/Dictionary_Translate | d5c786c24ff9eaa24b4494e8df5e87489f1ac438 | 9962dd60b2c6107505e203a62b0578852c86dccb | refs/heads/master | 2020-08-25T02:16:29.462522 | 2020-01-09T02:54:18 | 2020-01-09T02:54:18 | 216,947,461 | 0 | 0 | null | 2020-01-09T02:58:47 | 2019-10-23T02:06:43 | Python | UTF-8 | Python | false | false | 2,840 | py | import requests
import http.client
import hashlib
import urllib
import random
import json
URL_TRANSLATE_API = 'http://fanyi.youdao.com/openapi.do?keyfrom=neverland&key=969918857&type=data&doctype=json&version=1.1&q='
def translateByAPI(word):
word = word.replace('_',' ')
res = youdaoTranslate(word)
# pri... | [
"1121149171@qq.com"
] | 1121149171@qq.com |
4a17c47fd62d295fffa7b5a9de62eddf98f2d7f9 | 16401ee584c405675764e349f246b289d8938c16 | /teads/feature/feature_store.py | 8c8c8d786d008862915ee167876beaf90820fc63 | [] | no_license | tea1013/google_brain_ventilator_pressure_prediction | eca2a9a4b4ee7d814ff572234e6b3b992e9371c0 | 10107ca440877b197a16da4cd18c8e315b667446 | refs/heads/master | 2023-08-29T02:42:48.944730 | 2021-11-07T04:35:50 | 2021-11-07T04:35:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | import os
import traceback
from enum import Enum
from functools import wraps
from typing import Callable, Dict, List, Optional, Union
import pandas as pd
from pandas import DataFrame
class StoreMode(Enum):
Train = "train"
Test = "test"
class FeatureStore:
def __init__(self, target_df: DataFrame, mode: ... | [
"tomoi_ochiai@voyagegroup.com"
] | tomoi_ochiai@voyagegroup.com |
8439d19170cf896f5580caa519a737b1e0e12471 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/o11_j200739+544516/sdB_O11_J200739+544516_lc.py | c712c7ed5a3afda832ff3ba22080131102af8479 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[301.9125,54.754444], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_O11_J200739+544516 /sdB_O11_J200739+544516_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
cf57f5756ca9a19764d9c9aa304a6ca81b391407 | 3a1261f1ce05c16f37a2071766b419256120c767 | /Parte 1/Constructor/obtener_laberinto.py | cc969e1540f959b90a2610be60b027852ed58551 | [] | no_license | lautarodelosheros/TDA_tp2 | 22e39d13832702b27d3ec29b14e26fbbf6b41f7a | 4ba4a7767a63fdfd297d4fc9b03acd5a1b64fb27 | refs/heads/master | 2020-05-17T15:43:42.361513 | 2019-05-22T22:20:07 | 2019-05-22T22:20:07 | 183,799,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | import random
from grafo import *
def obtener_laberinto(grafo, origen):
visitados = set()
arbol_dfs = Grafo(False)
for vertice in grafo:
arbol_dfs.agregar_vertice(vertice)
DFS(grafo, arbol_dfs, origen, visitados)
return arbol_dfs
def DFS(grafo, arbol_dfs, vertice, visitados)... | [
"noreply@github.com"
] | noreply@github.com |
712ceb3b77f28b34aa28bb7f6a929725c6ffaab5 | fff5194a319099f462c815cf8dc1f83c405e15e1 | /loss/mse_log_loss.py | e95ed45fa6cba041511f85bfeedd7ba7c74c3880 | [] | no_license | jensen199105/aispeech-training | ccb58c42d29d20ae804d95cbce9e9c010cf169ab | c37fad670a3dfe06612c56f16dc399e32d497299 | refs/heads/master | 2023-08-24T15:46:14.923682 | 2021-09-30T07:27:44 | 2021-09-30T07:27:44 | 411,964,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,928 | py | import torch
import torch.nn as nn
from .loss import Loss
class logMSELoss(Loss):
"""A warpper of original pytorch CELoss
It simply unpacks the output and batch into specific format, and computes
some useful metrics for logging purposes.
Args:
output (tensor, B,T,C)
data_batch (dict)... | [
"jensen199105@gmail.com"
] | jensen199105@gmail.com |
732730ec5d579d7f153650432a993677c78e6b43 | 9f1e5cbe9a162a7d78f8ed9b56ee6d71d0e7dbf3 | /Question_2.py | 2bd90c2762bbfc0dfb9419dd030422d60cbe95c3 | [] | no_license | singhdharm17/Python_Edureka | adf2596836bc1b9133aa87fbada51168a7a14069 | 2e11b9359f9a27f083454472571efaf1096ae4ff | refs/heads/master | 2023-08-03T01:01:28.279668 | 2021-09-27T11:07:55 | 2021-09-27T11:07:55 | 410,875,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | # Data of XYZ company is stored in sorted list. Write a program for searching specific data from that list.
c_data = input("Enter the data separated by commas:-")
print("Company List has been created")
list_c_data = str(c_data).split(",") # converting list into list by delimiter
f_data = input("Enter the item need to... | [
"dharmsingh.abu@gmail.com"
] | dharmsingh.abu@gmail.com |
16c5084c8facfaa531bb49fd7db885074c265ff4 | c04d5bc4fa98b32966ad4d5e59b8b4eeb65f4eae | /kmeans-and-sklearn/kmeans-and-sklearn-master/main3.py | 78e023b0369a89e6d61e19f3eade426e141a7499 | [
"MIT"
] | permissive | Shivvrat/Machine-Learning-Algorithms | 0c011d02a9f858674edf1826dc19c04f8467d66e | f20503ee513dbd7e51470c464e47358dd6c1e133 | refs/heads/master | 2022-09-21T12:07:05.572659 | 2020-05-31T15:16:12 | 2020-05-31T15:16:12 | 268,168,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | import itertools
import import_mnist
import GradientBoostingClassifier
max_features = ['sqrt']
criterion = ['friedman_mse']
max_depth = [7]
X_train, y_train, X_test, y_test = import_mnist.import_mnist_data()
for each in list(itertools.product(max_features , criterion, max_depth)):
predicted_y = Gradient... | [
"noreply@github.com"
] | noreply@github.com |
1254ed52ba67bacf9db93bb9e2c70d3433f20b28 | 64edcd9fc50220905fdfb81c52b95d4cf43f08dd | /home/migrations/0025_auto_20210312_1951.py | 0d8e0defc56987aabd89b8ed79eed45bd7989c97 | [] | no_license | kbakhchedzhy/django_project | b922707558deb37cca011440a83902b71d893dd9 | e10c9d588277a5e5b8bd132653ce7b580613b5f8 | refs/heads/master | 2023-03-27T23:43:59.965039 | 2021-03-29T19:47:58 | 2021-03-29T19:47:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # Generated by Django 3.1.5 on 2021-03-12 19:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0024_auto_20210312_1947'),
]
operations = [
migrations.RemoveField(
model_name='student',
name='picture',
... | [
"k.bakhchedzhy@gmail.com"
] | k.bakhchedzhy@gmail.com |
327930c5d02ee21e4a4e312baa8897fa3d39a0c9 | c82c24f9b17fbdc81f8794627c434f01e747740c | /setup.py | ac17ec720c7ad6cc152b563393be386e6bb303f4 | [] | no_license | ShihBrian/Snake | 3f2fa26552527076dd67d190cc8b0810cf38643b | 04f55d182854cb813a939d9ad719f8e9abaee41f | refs/heads/master | 2021-01-18T04:53:43.618939 | 2018-02-26T18:54:40 | 2018-02-26T18:54:40 | 55,740,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,182 | py |
from distutils.core import setup
import py2exe
import os
import sys
sys.argv.append('py2exe')
# The filename of the script you use to start your program.
target_file = 'Game.py'
# The root directory containing your assets, libraries, etc.
assets_dir = '.\\'
# Filetypes not to be included in the above.
exclude... | [
"brianshih33@hotmail.com"
] | brianshih33@hotmail.com |
91826376e37e968eab0f407ca654d3ac0586fdbf | ef074c3aaaab0678c6b3dfeef0ad48fc7a0014dd | /github3.py | f5448c63e1c72668aa4c15e1a1e8326fad694fcb | [] | no_license | shashikant7/github_repo_3 | d0e0ffded10ed4d323f86b15b2f311fcf543a66e | 51a054adb21c17ca4cb09150c98b855079eaf9d9 | refs/heads/master | 2021-01-16T21:36:39.508162 | 2016-08-22T13:38:08 | 2016-08-22T13:38:08 | 63,946,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,950 | py | import random
import commands
import time
import multiprocessing
from multiprocessing import Process
import logging
import fileinput
# cmd = "git ls-remote github.com:Infoblox-CTO/xaas-web HEAD | tail -1"
# cmd = "git ls-remote github.com:Gopalkrish14/xaas-web HEAD | tail -1"
logging.basicConfig(filename='... | [
"shashikantsingh0158@gmail.com"
] | shashikantsingh0158@gmail.com |
9a4e5074437b3d9f45c748ebed0fd38b0cd02ff1 | dc6e7960d948ae811d306886c18f02058ad0daf5 | /PlagiarismChecker/Plagiarism/wsgi.py | 83e75bc9c7e3488b69adbf9985e5b54d5f7e2c15 | [] | no_license | tabihh/PlagiarismCheckerDjangoPython | 0c2e26d65eba53dd3c9101852ef6416f5d35259d | 23c7f12938add54fafefb0f8dd2db44a3ae3e6e1 | refs/heads/master | 2022-11-03T03:00:11.556076 | 2020-06-12T17:24:52 | 2020-06-12T17:24:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
WSGI config for Plagiarism project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefau... | [
"noreply@github.com"
] | noreply@github.com |
25234a7bc747b74d02c2cee1bf53e37771d84e71 | a211aafcd8ae2369cd3289fca6ced287ee09cc26 | /alogs_1/topic_62_strings_finals/task_b/task_b_find_substrings_dk.py | 193ff013243c6f74d92be164d89c8e80c015e9b1 | [] | no_license | vitt0ri0/yalgorithms | 562d27449bbc0907c37d632b6eff4d5dbf9da208 | 1ff6bdc92b61baf03463f299e62c6199d05be040 | refs/heads/master | 2023-03-21T21:07:02.339838 | 2021-03-21T13:00:43 | 2021-03-21T13:00:43 | 287,198,070 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,902 | py | from collections import deque
# filename = '01'
filename = '09'
class Node:
def __init__(self):
self.next = {}
self.word = []
self.suffix = None
def ac_automate(patterns):
root = Node()
for path in patterns:
node = root
for symbol in path:
node = node.... | [
"vitt0ri0.progr@gmail.com"
] | vitt0ri0.progr@gmail.com |
20feba71c0e5589367855b3fbc6b4fb15d06de4b | 20398853a96fa9aee2f3e358fd5cfd0daf4a94b6 | /drafts/nansatExampleMODIS.py | 7047912bf5f3132ff785d03c15cd5073e669770d | [] | no_license | whigg/PySOL | fa78c36c65ab33db274709214dfb8a9159934f42 | 3c354f2ca69dc981eb4117976351e8d7454ad505 | refs/heads/master | 2021-05-31T05:47:13.633994 | 2016-05-11T08:33:06 | 2016-05-11T08:33:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,425 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 21 21:54:28 2012
@author: mag
"""
"""
Remarks to nansat
when "print n" units are "m/m"
"""
from nansat import Nansat
from domain import Domain
import matplotlib.pyplot as plt
from scipy.io import savemat
import distancelib
from numpy import array
iPath = '/media/SOLa... | [
"alexander.myasoedov@gmail.com"
] | alexander.myasoedov@gmail.com |
44a88ef6c47660f70db2f79b8fdd1d06f0611b66 | 875b9c5093efd688f79fada905bee80c42380ec1 | /tests/test_pygame_player.py | 20237226009ceb731a7dd5490eed46043acf0029 | [
"MIT"
] | permissive | chaheeee/PyGamePlayer | 945e64819b3e862757e1bf9dbf622ac844f6dbed | 430ced572eddcd638a2db5eb906e5f2016ac7250 | refs/heads/master | 2023-02-21T19:42:18.229341 | 2021-01-22T02:22:52 | 2021-01-22T02:22:52 | 330,974,347 | 0 | 0 | MIT | 2021-01-21T15:05:27 | 2021-01-19T12:35:22 | Python | UTF-8 | Python | false | false | 3,064 | py | import time
import pygame
from unittest import TestCase
from pygame_player import PyGamePlayer
class DummyPyGamePlayer(PyGamePlayer):
def __init__(self, force_game_fps=10, run_real_time=False):
super(DummyPyGamePlayer, self).__init__(force_game_fps=force_game_fps, run_real_time=run_real_time)
def get... | [
"danielslaterishere@gmail.com"
] | danielslaterishere@gmail.com |
5171ac07d2be35016805b504c4184d500421005d | 045cb1a5638c3575296f83471758dc09a8065725 | /addons/mrp_subcontracting/models/stock_picking.py | 34f266a39dd33ebb2f957f12845bc85be08de33c | [] | no_license | marionumza/saas | 7236842b0db98d1a0d0c3c88df32d268509629cb | 148dd95d991a348ebbaff9396759a7dd1fe6e101 | refs/heads/main | 2023-03-27T14:08:57.121601 | 2021-03-20T07:59:08 | 2021-03-20T07:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,173 | py | # -*- coding: utf-8 -*-
# Part of Harpiya. See LICENSE file for full copyright and licensing details.
from datetime import timedelta
from harpiya import api, fields, models
class StockPicking(models.Model):
_inherit = 'stock.picking'
display_action_record_components = fields.Boolean(compute='_compute_displ... | [
"yasir@harpiya.com"
] | yasir@harpiya.com |
a9ce49aadae5bb7546d8fffefc7834f013afb78e | de98786f325a87a71024e408a14a9eb01aeaed7a | /HandyKeras/Component/python/Lib/site-packages/pip/_vendor/pkg_resources/__init__.py | 0b432f689646268f3c7233b5eb3cb67727bdddba | [
"MIT"
] | permissive | HandyOrg/HandyKeras | 2efdb85b0aa40862d2ba07635a0ed3ece29a0b1f | 76d2b62cf6a4b3a9061124b9299a424b6e60725e | refs/heads/master | 2021-07-10T01:27:36.550482 | 2019-01-17T11:56:13 | 2019-01-17T11:56:13 | 152,439,874 | 6 | 2 | MIT | 2020-07-02T05:38:07 | 2018-10-10T14:45:48 | Python | UTF-8 | Python | false | false | 103,915 | py | # coding: utf-8
"""
Package resource API
--------------------
A resource is a logical file contained within a package, or a logical
subdirectory thereof. The package resource API expects resource names
to have their path parts separated with ``/``, *not* whatever the local
path separator is. Do not use os.path opera... | [
"836904362@qq.com"
] | 836904362@qq.com |
c7f2ae49249b5766291fc985c98da886adfc4f44 | 4f2e8c05e57aa9aabc7812eccf1cf03976bcbf6d | /xadmin/views/base.py | 53ee7890e6fa85e0bb50e56508ed812a02cdd280 | [] | no_license | SalvationN/MovieRecommend | aec7dc1a7d033248b2369198259b64bfb15719aa | 14d83cf2055f75b80ef6a1844701bf6e1c13556c | refs/heads/master | 2022-11-06T04:53:08.016663 | 2020-06-20T03:21:01 | 2020-06-20T03:21:01 | 273,628,956 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,439 | py | import copy
import functools
import datetime
import decimal
from functools import update_wrapper
from inspect import getfullargspec
from django import forms
from django.apps import apps
from django.conf import settings
from django.contrib import messages
from django.contrib.auth import get_permission_codename
from dja... | [
"494574031@qq.com"
] | 494574031@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.