blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
08596d2d132a3910d7f04e4123c37aff47d8b801 | 968bd3464bc968f6b4aedc35056d90d6c623c5a5 | /forms.py | ee5f360e5c915f0549710ae40b709423aff8057e | [] | no_license | SShanmukh-cell/online_school_quiz | d2d6c191d97e37de79dc646cbbe4204499a49ac3 | f5d3c532e0938d800919c4d1c15a60e1a043b96f | refs/heads/main | 2023-05-07T02:31:12.365507 | 2021-05-25T05:24:53 | 2021-05-25T05:24:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | from django import forms
# creating a form
class InputForm(forms.Form):
first_name = forms.CharField(max_length=200)
last_name = forms.CharField(max_length=200)
roll_number = forms.IntegerField(
help_text="Enter 6 digit roll number"
)
password = forms.CharField(widget=forms.P... | [
"noreply@github.com"
] | SShanmukh-cell.noreply@github.com |
a73e7844df3db18de71d428658ea074b3c8d8671 | 08c0396f8c96632f3f3203931f526858d83c40b6 | /KJW_Project1_DS620/data/marvel_massage.py | 20c6e4145637b6bac07afb35203c9c1b131ae50f | [] | no_license | WillieDavonSmalls/KJW_CUNY_DATA_620 | 00a2968934deebe0a47b6c3bc388446bb12e281c | 1d01a5e198cccab31eb3dae82b283772ad2cbcec | refs/heads/master | 2022-11-21T04:07:04.887616 | 2020-07-20T03:28:36 | 2020-07-20T03:28:36 | 271,411,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | import pandas as pd
from fuzzywuzzy import process
#%cd '/Users/williesmalls/Documents/School/CUNY\ SPS/01\ -\ Courses/00\ -\ Web\ Analytics/Data\ Play/project\ 1'
# import os
# os.chdir(path)
df_hero_network = pd.read_csv('hero-network.csv')
df_marvel_characters = pd.read_csv('marvel-wikia-data.csv')
lst_heroes = s... | [
"williesmalls@Willies-MacBook-Air.local"
] | williesmalls@Willies-MacBook-Air.local |
6ce6a4887f81223e6c1df30e7238cdcebef911a5 | 2ce992c3a82e3e67a15dd9685463ca38ba24875c | /pycco/__init__.py | 864b6310d90cfe785a61b6031221fd35402e217d | [
"MIT"
] | permissive | mhils/pycco | 39cc65df946f60c04920710ba257514b9a4a65b5 | 14ece38506057f7c412aa11768112b6985e0cafb | refs/heads/master | 2020-04-05T23:13:42.477736 | 2011-09-13T10:40:20 | 2011-09-13T10:40:20 | 2,307,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,146 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# For python 2.5 compatibility.
from __future__ import with_statement
# "**Pycco**" is a Python port of [Docco](http://jashkenas.github.com/docco/ ):
# the original quick-and-dirty, hundred-line-long, literate-programming-style
# documentation generator. It produc... | [
"git@maximilianhils.com"
] | git@maximilianhils.com |
4bcc7480277a4ea734b672ef2d573d7b2b5c830b | 82a438bc77f47e5b2d293e7abfc0304fd501c22a | /test/test_schedule.py | 2556264b6b2201d06a121b6b591326fe0a1eea9c | [] | no_license | jnpr-xbhuang/python | e0b56d9880bfdc7366b8745ae44a66a24bce398b | b4140835c2a658d257f7f312c6e1c52ccdd18450 | refs/heads/master | 2021-01-13T09:27:16.334472 | 2016-10-20T09:25:51 | 2016-10-20T09:25:51 | 72,103,442 | 0 | 1 | null | 2016-10-27T11:54:11 | 2016-10-27T11:54:11 | null | UTF-8 | Python | false | false | 598 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: test_schedule.py
@time: 2016/10/20 下午5:17
"""
import schedule
import time
def job():
print("I'm working...")
def run():
schedule.every(10).minutes.do(job)
schedule.every().hour.do(job)
schedule.every().day.at("... | [
"zhang_he06@163.com"
] | zhang_he06@163.com |
0987c5e1b0d45ac52d51229d2bfe98b785f9d918 | 3522a0f9ae04b6bd325e36a07c0b2828ab49dfb4 | /bot.py | 7c0999e082fe9e93f4267089d2570d9b39bb9056 | [] | no_license | davide-brunetto94/hate-speech-detection-bot-twitter | ee4de1512000c51b69223e104160fe1042e39cad | f502597621e8369a09d4126aa10626c66fed1e4d | refs/heads/main | 2023-01-09T12:25:32.341061 | 2020-11-10T09:54:49 | 2020-11-10T09:54:49 | 311,595,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,200 | py | #!/usr/bin/env python
import tweets as tw
import pp as preprocessing
import logging
import classification as cl
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
# Enable logging
logging.basicConfig(
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", level=logging.INF... | [
"noreply@github.com"
] | davide-brunetto94.noreply@github.com |
313d6e5a7be8e3431b1c790fccc5dcfeb0e5ddf3 | 578a23c6850e0a03cf9329878ea10c7e5e2941c2 | /core/config/__init__.py | fa20c48f37c9053422148cd259ed52f3b59ba9a1 | [] | no_license | pydtools/FastAPI-MySQL-Tortoise-Casbin | 3fb585bea1056d79ef926d813b28305b43344bff | ebd96bf29c2196f459718e9a9c340fd03a2ffeeb | refs/heads/main | 2023-05-30T09:43:58.791122 | 2021-06-15T09:15:45 | 2021-06-15T09:15:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | import os
# 获取环境变量
env = os.getenv("ENV", "")
if env:
# 如果有虚拟环境 则是 生产环境
print("----------生产环境启动------------")
from .production_config import settings
else:
# 没有则是开发环境
print("----------开发环境启动------------")
from .development_config import settings | [
"beixia1989@163.com"
] | beixia1989@163.com |
a7e983776b2d152f2c05fbc65323d25b8410d1be | 9bcdd4ce802462230b7a966bfe046fe413e7139c | /JSON_Schema_Analysis.py | 6ddf3158e5bb836d5cf26e7c44d08191bb58a410 | [] | no_license | jiaoxlong/schemastore-analysis | 6b66bdb8c0efff49f4d35ca50ba49b5a0e11e036 | 297c672f8b8ed7ab5beb39b400238819d2fc9d74 | refs/heads/master | 2023-03-17T00:48:21.144565 | 2019-11-16T09:28:13 | 2019-11-16T09:28:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,779 | py | #! /usr/bin/python
"""! @package JSON_Schema_Analysis
@brief This is the main file of the JSON Schema Analysis Project.
By calling this file and specifying its command line arguments the analysis process is started
Usage:
JSON_Schema_Analysis.py [-v | --verbose] [(-a | --all) | ((-c | --count) <val>)
Args:... | [
"riedle.benjamin@gmail.com"
] | riedle.benjamin@gmail.com |
4cbeff608168f50999b88289e0c6e3e6ae1551fd | 5ef3ac5ab3cd2a03767f409f243633993e18000b | /standard_day1/play_code2.py | cbcd7c4fe02693fbb1ba97d3124945b2cc4d7a85 | [] | no_license | Teddy512/project | 4c00114c7a8613af145c3fcfbe70a909106ceb88 | 3898439cdf8abe1e090f9eebbd35fcc9f90aaf96 | refs/heads/master | 2022-12-21T01:12:53.853700 | 2018-03-06T03:31:42 | 2018-03-06T03:31:42 | 124,015,246 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | # authon :teddy
names=input ("please input you name")
age=int (input("age"))
job=input("you job")
salary=input("you salary")
info ='''-----info of %s------
name:%s
age:%s
job:%s
salary:%s
'''%(names,names,age,job,salary)
info2='''-----info of {_name}-------
name:{_name}
age... | [
"m13655699934@163.com"
] | m13655699934@163.com |
ed0d08acff7cdb566160e636f759999e536ab4f6 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03037/s274754900.py | 6902135688b72b2db1d327d37916c624bd8af23c | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | n, m = map(int, input().split())
max_l = 0
min_r = 10**5
for i in range(m):
l, r = map(int, input().split())
if l > max_l:
max_l = l
if r < min_r:
min_r = r
max_l = min(n+1, max_l)
min_r = min(n+1, min_r)
res = min_r - max_l + 1
if res<0:
res = 0
print(res) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2ffd05a2ab646749d3b65ccb1fedf4b70903a1cf | 419231d8bf3e94f07c11625b9f54f12522153d95 | /server/models/models/order_id.py | 91f80ec4ed361c56532e931c0fcdc62d97cb67e4 | [] | no_license | 06wagon/LightningFuturesExchange | f062268a343aeaab6415515f0ae5cd046fb8f5bf | 337915c9fc024a2da66975d2d6302a25b31d7a68 | refs/heads/master | 2020-03-28T12:04:54.500939 | 2018-04-30T03:46:19 | 2018-04-30T03:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | from shared.shared import db
class OrderId(db.Model):
equity_id = db.Column(db.Integer, primary_key=True, nullable=False)
order_id = db.Column(db.Integer, nullable=False)
| [
"ryansfishman@gmail.com"
] | ryansfishman@gmail.com |
3bccbd76ac39f774b2cbd6e293322c711716dac4 | cca46b6703c111465967f12515d75c8235874909 | /replace/replace.py | a75f32b6195fc57ef33ccff31f2605d58d57c1b1 | [] | no_license | Youngjin-KimY/DS_code_python | 6e084ab6f98b7a25603a4f170e24aa7fd98ac78b | aa3481cb6481de4c884c6f2e2195b36ffea4c5e1 | refs/heads/master | 2020-04-09T11:29:47.498356 | 2018-12-04T06:44:54 | 2018-12-04T06:44:54 | 160,311,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | import sys
f = open("testfile","r")
start = sys.argv[1]
to = sys.argv[2]
lines = f.readlines()
f.close()
w = open("testfile","w")
for line in lines:
line = line.replace(start,to)
w.write(line)
w.close() | [
"11kimyj@gmail.com"
] | 11kimyj@gmail.com |
44fc2e1570fe5a0bdd8c5b8fcdb30c27f1d45eee | 281bd2c08ff444bab4bdf561939f942d20115ba8 | /_beatspot/settings.py | bac37488ff956b9e158daa788d4876c8b8c8e7e2 | [] | no_license | AM0k84/Social-website-sketch | 443b77c0c27c48ad0dd402333fd440d3419d5aad | 35a409b496293759304804a65095d4668d45f1f2 | refs/heads/master | 2023-01-02T10:49:43.467801 | 2020-10-20T17:22:37 | 2020-10-20T17:22:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,637 | py | """
Django settings for _beatspot project.
Generated by 'django-admin startproject' using Django 3.1.1.
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/
"""
import os
f... | [
"l.chalinski@gmail.com"
] | l.chalinski@gmail.com |
dbfe92ca3ae9dcd36f2a40281697bca8e8b4db77 | b6e09f9a39a219dd5375c66e7497e4971059b03e | /tools/media.py | ba9b0dc3ffe1ed47981a767e951acda1dd4f7042 | [] | no_license | moon0walker/musicbox | 627c3c5089de5f9707bb1afe9a35f528839f402e | 768c15523fe0bc3460e9353fb44256ae2908b298 | refs/heads/master | 2021-01-12T16:16:18.730798 | 2016-10-26T06:10:34 | 2016-10-26T06:10:34 | 71,970,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,117 | py | import gi
gi.require_version('Gtk', '3.0')
from gi.repository import GdkPixbuf
from os import listdir
from os.path import exists, isfile, isdir
from collections import OrderedDict
import json, time
pixbuf_folder = GdkPixbuf.Pixbuf.new_from_file_at_scale('/home/user/musicbox/data/folder.png', 24, 16, False)
pixbuf_mus... | [
"user@debian"
] | user@debian |
cd7d028a7110451c68ca81f852b71f61576154a6 | c6e8e849acd1e775d586cba97bace388886307d4 | /service/InMoovTorso.py | c5308656291c464c2233a3c21be74067692934e2 | [
"Apache-2.0"
] | permissive | Greaver77/pyrobotlab | 1137a6dbf56cc3d3e27ecb37715fde1998db7c14 | f0b45f6cdb26be07d1009f9f1972f34644612b29 | refs/heads/master | 2021-08-08T14:25:07.770462 | 2017-11-10T14:18:18 | 2017-11-10T14:18:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | # start the service
inmoovtorso = Runtime.start("inmoovtorso","InMoovTorso") | [
"supertick@gmail.com"
] | supertick@gmail.com |
1cab4477f0fd43df04e799ced1716973ea57502a | eb5c52cdaa43efd54dbb66c8617b99c98504c327 | /youtube_platform/views/plain.py | 24b861bb53aa444432338a0df7da5586cc178d4b | [] | no_license | slushkovsky/youtube | 517c88c10ea76a8c23b14b55c68187d0b3a63aca | 32e347ac4ed9628bca96686e4c133f57b1bf9ea7 | refs/heads/master | 2021-03-27T10:15:59.144955 | 2017-05-22T08:03:50 | 2017-05-22T08:03:50 | 87,112,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from ..models import Plain
from .menu import create_context_from_request
from .modules import ServicePermission
@login_required
def handle_plains(request):
context = create_context_from_request(request)
context['di... | [
"s.lushkovsky@gmail.com"
] | s.lushkovsky@gmail.com |
c5c16ec3635e6f5238dc6dc3f6deac1894c165d5 | 9d2f0e8b1fe94901c7eac55b7f5454e9049a5295 | /2python_work/RANGE _TRYING.py | adf35d7f54f33be65c903bb6dc5e23eec6ea4bd8 | [] | no_license | muxum/python-learning | cff38a979a0671b36c654ba751ff124df9f16126 | bf30552bc9d0df191d1cded6c0397a6d43da9c61 | refs/heads/master | 2020-06-26T03:42:06.890691 | 2019-08-06T10:33:51 | 2019-08-06T10:33:51 | 199,517,167 | 1 | 0 | null | null | null | null | MacCentralEurope | Python | false | false | 392 | py | for value in range(1,5):
print(value)###print 1, 2, 3,4 no "5",because RIGHT value is not included
##range()isgooood
numbers=list(range(1,6))
print(numbers)
k =[]
a =0;
b =11;
for i in range(a,b):###just like for(i=a;i<b;i++) in C;
k.append(i**2)
print(k)
print("\n\n\n")
print([value**2 for value in r... | [
"noreply@github.com"
] | muxum.noreply@github.com |
4e4f1240996a91861928dae34c2a25ba533b08fa | e3a95ba3206a4d15a17d194ac9a8672a2eaef2e1 | /srcOld/filter.py | 73d944c89a8936f1d4a9eaa270c721d3f12618cc | [] | no_license | quant42/Champuru2 | 4903a07f01a54401bae0de86dcf1b2d76c074b28 | 9789122f57fe39c7e81738cb66394024c48536fa | refs/heads/master | 2020-05-21T19:55:22.217595 | 2016-11-13T09:51:13 | 2016-11-13T09:51:13 | 61,372,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | #! /usr/bin/env python
# -*- coding: UTF-8 -*-
from __future__ import division, print_function
import numpy as np
__doc__ = """
Simply library for signal processing filters.
"""
def _getGaussianWeights(sigma):
"""
Get the needed weights for the gaussian filter.
@param sigma The sigma value for t... | [
"yann_spoeri@web.de"
] | yann_spoeri@web.de |
f8b50a4da62a19b52deb5ca48874165a469de09c | 5a9dcf4b8df692e05db6032b4aafd43ce77f3ee7 | /client/client.py | cdc15691545f1013b16c453bf9d944f22804fd72 | [] | no_license | mtaylor719/pindrop | d528e4155889a9e001d87c968868840d4c52a6d0 | 712956853f821930fdb0141b91a7f41568644639 | refs/heads/master | 2021-01-10T06:51:47.232664 | 2016-01-26T02:16:34 | 2016-01-26T02:16:34 | 50,396,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | #!/usr/bin/python
import requests
try:
import json
except ImportError:
import simplejson as json
class client:
def __init__(self, endpoint, port):
self.endpoint = 'http://{}:{}'.format(endpoint, port)
"""
Used to get all results
"""
def all_result(self):
return self._req... | [
"michael.taylor719@gmail.com"
] | michael.taylor719@gmail.com |
01950d6e2de6ac5b6b6a87bf948cbad9cb0c9458 | 120e7d566341180f776cf99d4969063a919e8ef1 | /bai_03.py | f1d53dad4b4dffa8714386bacb5acab7ba8d6631 | [] | no_license | Toan73/PythonCore | 098f699819bef409f89e04ac081f38f9897a9e4b | 7e3ad9ce503df0ec175edbe90e9dd983d71e9243 | refs/heads/main | 2023-05-31T16:16:19.991938 | 2021-07-03T06:09:19 | 2021-07-03T06:09:19 | 364,540,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | n = input("n = ")
s = max(n)
print(f"Ky tu lon nhat la: {s}")
s = min(n)
print(f"Ky tu nho nhat la: {s}") | [
"noreply@github.com"
] | Toan73.noreply@github.com |
13db545cc31fbda5f286e1866bc83a40d3fe8279 | 81d27ece7360d219fe241114c7a51db99ff1371a | /game/controller/consolecontroller.py | 8905c7a51e83a0994e381a83bd21f07d64101a7e | [] | no_license | alexandr-gnrk/reversi | b5f5aea8c06c7dc76122075a13fd970dcc47a848 | 9d7d69274564a58c062a8cb10be7610f6097baf7 | refs/heads/main | 2023-01-03T03:51:58.424222 | 2020-10-27T03:55:54 | 2020-10-27T03:55:54 | 300,346,784 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,549 | py | from ..model.game import Game
from ..model.antigame import AntiGame
from .player.consoleplayer import HumanPlayer, AIPlayer
from .gamemode import GameMode
import random
import time
class ConsoleController():
def __init__(self, black_hole=None, experimental=False):
# set Anti-Reversi mode if black hole wa... | [
"alexandr.gnrk@gmail.com"
] | alexandr.gnrk@gmail.com |
58eead567e75645d41c6b6d3ae1812abc6e17d02 | b6aa706c66f306fe8938a981eca3299bb773a917 | /ScrapyCourse/ScrapyBooks/books_crawler/spiders/books.py | 81b546e5ea98cdca68815ddd9803115d263abc2b | [] | no_license | starl1stener/ParsingStaff | 4515d4e09106cf5cde9bcead44ca9fb206f980fc | e31898399ad760e427150b721e818a50ae23222a | refs/heads/master | 2022-12-09T12:49:07.984492 | 2019-10-23T18:54:29 | 2019-10-23T18:54:29 | 151,253,949 | 0 | 1 | null | 2021-12-13T19:50:03 | 2018-10-02T12:52:46 | Python | UTF-8 | Python | false | false | 403 | py | # -*- coding: utf-8 -*-
from scrapy.spiders import CrawlSpider, Rule
from scrapy.linkextractors import LinkExtractor
class BooksSpider(CrawlSpider):
name = 'books'
allowed_domains = ['books.toscrape.com']
start_urls = ['http://books.toscrape.com/']
rules = (Rule(LinkExtractor(allow=('music')), callbac... | [
"nantog@gmail.com"
] | nantog@gmail.com |
554c67db9adf6ed2a5fe9d7043b826cf528ed3b0 | 7fc8ca926a0b3069896b065cc33cb89d4c46af02 | /读书笔记/pythonCookBookSourceCode/chapter1_DS/priorityqueue.py | 7e8368d91f633bd264b3a4d6be3f4a51d59f59a5 | [] | no_license | guobin8205/LearningMD | c7798ea6bb27bf9ad7d548ee8d1e818d739e674c | df9d0dd6b53a91e936345491c2235d976382e0e4 | refs/heads/master | 2023-04-08T15:52:02.626066 | 2021-04-24T04:09:54 | 2021-04-24T04:09:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | # -*-coding: utf-8 -*-
"""
利用heapq实现优先级队列
"""
import heapq
class PriorityQueue:
def __init__(self):
self._queue = []
self._index = 0
def push(self, item, priority):
heapq.heappush(self._queue, (-priority, self._index, item))# 优先级为负数的目的是使得元素按照优先级从高到低排序。index 变量的作用是保证同等优先级元素的... | [
"434329188@qq.com"
] | 434329188@qq.com |
1baeda83554cd5797e384d58f9229151c8706eee | e9850af29ed29f13af837cd011f32c314a6f8520 | /pyhcup/pd.py | 10578994ee17238c3a3087f736aaf6bf9da78266 | [
"MIT"
] | permissive | bbodek/pyhcup | 8b81367972f02aab85105aef713f50bb013523e8 | 8609fd5a5d7d7f02665fc5b3ec5550eceb928f8b | refs/heads/master | 2023-01-24T20:57:41.408070 | 2020-12-06T17:52:59 | 2020-12-06T17:52:59 | 318,869,695 | 0 | 0 | null | 2020-12-05T19:16:21 | 2020-12-05T19:16:20 | null | UTF-8 | Python | false | false | 658 | py | """Helper functions for dealing with pandas and numpy"""
import math
import numpy as np
def cast_np_to_py(x):
"""Casts values to native Python types, mainly so they can be passed on as bind params for SQL"""
int_types = [int, np.int, np.int64, np.int32, np.int16]
float_types = [float, np.float, np.f... | [
"tbiel@med.umich.edu"
] | tbiel@med.umich.edu |
931d2002619985e2bfc116fef9479dc1eaffb073 | 242086b8c6a39cbc7af3bd7f2fd9b78a66567024 | /python/PP4E-Examples-1.4/Examples/PP4E/Gui/TextEditor/simpleshell.py | 924883a098406c9a233cf0443888b2a1e2d7edb4 | [] | no_license | chuzui/algorithm | 7537d0aa051ac4cbe9f6a7ca9a3037204803a650 | c3006b24c4896c1242d3ceab43ace995c94f10c8 | refs/heads/master | 2021-01-10T13:05:30.902020 | 2015-09-27T14:39:02 | 2015-09-27T14:39:02 | 8,404,397 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | # read and run Python statement strings: like PyEdit's run code menu option
namespace = {}
while True:
try:
line = input('>>> ') # single-line statements only
except EOFError:
break
else:
exec(line, namespace) # or eval() and print result
| [
"zui"
] | zui |
a2baa1540c6619ad75c2619e945c124d20dae234 | 998a41d15c4a2c3b8620d6f81b523821810bf08a | /AP/training/admin.py | 2d61442c30f810ba523b86cdfb0664d030c2382c | [] | no_license | Naveenhiremath/AP | 7977644d61bffd1ec93e239755d33065d0362fb8 | ab127ed4dc919d4275c212fc4a9b0679460e7aa6 | refs/heads/master | 2020-04-16T05:31:23.157660 | 2019-01-11T21:18:37 | 2019-01-11T21:18:37 | 165,309,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from django.contrib import admin
from .models import Event
# Register your models here.
admin.site.register(Event)
# admin.site.register(Employee)
# admin.site.register(ProfessionalBehaviour) | [
"AL2328@accionlabs.in"
] | AL2328@accionlabs.in |
b646f76ca9bbf5a6d2afd13f6cce716e6b1b84ac | c787dc2722b3ae6e4331e7a10bb84f9c4a17afc7 | /DocumentWithReviewFirstN/models/model.py | 01c48c2a60e107b4f5fceefefc27c852aa233651 | [] | no_license | halecakir/description-to-permission-fidelity | 65e01039eead1a617dc40f4b07392efbe75c2703 | bc02aac9fe73d64d5cb2d47163f297dc54473a03 | refs/heads/master | 2022-04-04T18:53:57.030327 | 2020-02-11T15:12:33 | 2020-02-11T15:12:33 | 161,750,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,629 | py | import sys
import os
import csv
import random
import pickle
import scipy
import pandas as pd
import numpy as np
import torch
import torch.nn as nn
import torch.nn.init as init
from torch import optim
from utils.io_utils import IOUtils
from utils.nlp_utils import NLPUtils
from sklearn.metrics import roc_auc_score, a... | [
"huseyinalecakir@gmail.com"
] | huseyinalecakir@gmail.com |
182c9a970bbc935993654adb7ebb6a5294d97a4d | d03b5399786cdb898ac347c65ed9021a3c497740 | /7_FM-原始数据转化为libsvm格式/输出/libsvm6.py | 3463b509324437408819fa8760a915f3d929f980 | [] | no_license | CynthiaWang2018/Scoial-Network-Mining | 775fa4fda55e38d8ceecda98ff9eb3bff5605313 | 29d54c0ddddb6075817a6991479f83cbd5a401b6 | refs/heads/master | 2020-04-07T01:44:27.810016 | 2019-02-20T05:24:20 | 2019-02-20T05:24:20 | 157,950,377 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,047 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 28 10:06:53 2018
@author: Administrator
"""
import pandas as pd
import numpy as np
movie_vec = pd.read_csv('movie_vec1.csv',header=None)
del movie_vec[0]
del movie_vec[15]
movie_vec.columns = movie_vec.ix[0,:]
movie_vec = movie_vec.drop(0,axis=0)
movie_... | [
"noreply@github.com"
] | CynthiaWang2018.noreply@github.com |
baf58035c41c885e7fe744aeeaad3bf2268cda80 | 2e10cfcfd8650a53998b5f6e80f08212371a62bc | /11 模块/实例1.py | 3e48ca7ef884087778d8a81ad811fab1306c537f | [] | no_license | Selina0210/Python-learning | 711bce7679dbefc2be7ca73b26d4f8b13afa7062 | 111a1332f56aa798530642b0ff906e3d0de0061d | refs/heads/master | 2020-03-28T14:00:25.263258 | 2018-10-09T12:08:03 | 2018-10-09T12:08:03 | 148,450,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | #1----
#导入模块,需要模块名作为前缀
import m1
#利用模块里的类实例化对象
s=m1.student('selina',18)
s.say()
#调用模块里的函数
m1.hello()
#2---
#导入模块里的特定函数,不用带模块名
from m1 import hello
hello()
#导入模块里的特定类
from m1 import student
s1=student('lili',20)
s1.say() | [
"noreply@github.com"
] | Selina0210.noreply@github.com |
725b90f298c72cf4a541f6d593b58b3c2a42f5cc | 702a827ca7abcda88fbd3ffdb48869284ab8d18d | /2011-mebipenny/contest/fib/fib.py | f96ac827ff59a6cd687f70d3c9b0d8f2c5da3a1c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | stringham/contests | 7dda147c129645a6e0491bbad9e141642f615559 | 8325ff8ae5b57baf05eae9e8255fde1873bc3af5 | refs/heads/master | 2020-04-08T05:27:37.335493 | 2015-09-21T01:01:44 | 2015-09-21T01:01:44 | 42,835,527 | 1 | 0 | null | 2015-09-21T00:38:05 | 2015-09-21T00:38:05 | null | UTF-8 | Python | false | false | 693 | py | #!/usr/bin/env python
import sys, re
def int_stream(datastream):
whitespace = re.compile(r'\s+')
for line in datastream:
chunks = whitespace.split(line)
for chunk in chunks:
if not chunk: continue
yield int(chunk)
def fib_count(a, b):
count = 0
counted_1_already = False
x, y = 0, 1
wh... | [
"jt@instructure.com"
] | jt@instructure.com |
d7ee865e250634965a3ca532d24216dc0acde7f0 | 8e64d4ef5bb953f0447bb88fe05d81ba9b61f725 | /app/migrations/0002_auto_20201223_1719.py | 62dcb28d7a2918a1144e16c0ba6317e7830b11d3 | [] | no_license | itsdeka/bitcoin-exchange | 1597d8dd2aa54a15cd2f7e97222da187f9888a69 | d2ab9a29ba1970111921e9f82bec47ecf7ae31f1 | refs/heads/master | 2023-05-15T10:54:33.461813 | 2021-05-30T12:43:51 | 2021-05-30T12:43:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # Generated by Django 3.0.5 on 2020-12-23 16:19
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='profile',
name='user',
),
migrat... | [
"marcodignazio@gmail.com"
] | marcodignazio@gmail.com |
3ca36e30db95dfa0413ce29829506bfcea66b55d | d499db07cac87471a14cd73599e659abcd3c3afc | /account/migrations/0001_initial.py | 3cd99fa1aa7f54a1c4db401fefcbdeed78e5413f | [] | no_license | ArtusU/ChatApp | 7127afcad99d485993bf803ca130e5eacc095814 | bea6e447d433ce519ebf01aedd8152454d1ae2d1 | refs/heads/master | 2023-02-08T16:32:02.609163 | 2020-12-28T12:48:13 | 2020-12-28T12:48:13 | 322,002,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | # Generated by Django 3.1.4 on 2020-12-19 13:18
import account.models
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Account',
fields=[
('... | [
"artusrock@hotmail.com"
] | artusrock@hotmail.com |
ae67d1955e3cc2d34661101cdbb636de8c9b46aa | f45fa7e4f0f23a53065f55ed916456a2c1bdef3e | /ceilometer/tests/database/test_notifications.py | 93f480a400adff78d4b69ea2b45e453b7b255347 | [
"Apache-2.0"
] | permissive | r-mibu/ceilometer | ef35aa553f3650ad872931399ba569cd73a9e2f0 | e5562b7e73317ac13e8dda934bd00101c3d54550 | refs/heads/master | 2021-01-21T15:07:45.629220 | 2015-07-23T04:35:01 | 2015-07-23T04:35:01 | 39,547,413 | 0 | 0 | null | 2015-07-23T05:24:37 | 2015-07-23T05:24:37 | null | UTF-8 | Python | false | false | 3,315 | py | #
# Copyright 2015 Hewlett Packard
#
# 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 wr... | [
"rohit.jaiswal@hp.com"
] | rohit.jaiswal@hp.com |
6d06e3869d991cdba871e3ea3de84ef5f9f3797e | ec0f7de5313f7b7ec80bbf9a8199fe499d540598 | /mainpage/views.py | 5b373ff42b69cde3cf9783d38a08db2ea98ece93 | [] | no_license | DenisSkulovic/Finance_Django_Project | d2908c58f6b1dace78f8b700a29a4db355f6e9fa | 0bb52ef8231cc3b2e416e3b02678200b00de74c1 | refs/heads/master | 2023-02-11T20:25:31.257617 | 2021-01-07T13:37:58 | 2021-01-07T13:37:58 | 324,163,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | from django.shortcuts import render
from django.views.generic import TemplateView, ListView, View, CreateView, DeleteView, UpdateView
# Create your views here.
class MainpageTemplateView(TemplateView):
template_name = 'mainpage.html'
class ContactTemplateView(TemplateView):
template_name = 'contact.html' | [
"dskulovich@gmail.com"
] | dskulovich@gmail.com |
5009d72e66510b1f700002769eddcea15c26a5cc | 5911f67eb716c3cc744c6c6ea21e8830e4c7e581 | /lasso/lasso.py | 6b2ee44c98bebedc8d34edb01b3a4c9c90d498ba | [] | no_license | sauxpa/ML_101 | bda709e1ed382f37729c2684695e6a5642951756 | 842941db91fa093d9b7fdf047f7c485a6c2f90cd | refs/heads/master | 2023-07-23T13:30:03.149435 | 2023-07-15T13:16:15 | 2023-07-15T13:16:15 | 164,256,524 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,965 | py | #!/usr/bin/env python
# coding: utf-8
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
from typing import Tuple
class Lasso():
"""Wrapper for Lasso regression in tensorflow,
with model selection tools (lasso path, number of active features...)
"""
def __init__(self,
... | [
"noreply@github.com"
] | sauxpa.noreply@github.com |
aae6ec9804c5fab083ea57b08ea4e72f40f10236 | dc95bde612acd19a37e6cf49143124307e98b8cd | /appdaemon/apps/localvars.py | 04ed4dfbc98a41488ba297af4821f65090f20e57 | [] | no_license | kf-nz/Home-AssistantConfig | 5741b06edf1fb2c7f043adb64cc2cf1f19945df1 | 11448d8571376c04e733aca15bef2a12a1ee24f5 | refs/heads/master | 2023-01-27T11:38:08.374457 | 2019-09-21T23:00:55 | 2019-09-21T23:00:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | Notify_Morning_Update = 0 | [
"kyle@tai.net.au"
] | kyle@tai.net.au |
6b6f7b2b6ac85440527e29ad0de7b5beeefb88c0 | fbe6b76073a94cbb25ae0cec763a18b0e9d19c46 | /tests/common.py | 9e19326d841517afadd3d42542cc9b11a5c4a5d7 | [
"Apache-2.0"
] | permissive | Algomorph/ext_argparse | 19301bb75c4ec18d390c5b7d9c857208770182c5 | fbca26f8a551f84677475a11fb5415ddda78abd9 | refs/heads/main | 2023-08-25T18:36:53.354766 | 2021-10-18T19:28:13 | 2021-10-18T19:28:13 | 401,475,082 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | import os
import pathlib
import typing
import pytest
from ext_argparse.parameter import Parameter
from ext_argparse.param_enum import ParameterEnum
from enum import Enum
class RoofMaterial(Enum):
SLATE = 0
METAL = 1
CONCRETE = 2
COMPOSITE = 3
SOLAR = 4
CLAY = 5
SYNTHETIC_BARREL = 6
S... | [
"algomorph@gmail.com"
] | algomorph@gmail.com |
7237a2efa1e08295933e872f5393278d2355d6dd | eeb6ce7ce2d2b058c72d1dd05f31aa3157f692a1 | /plot16.py | 95c8683fb8ee006b3ed62c963a33481308b8c39b | [] | no_license | qiyang-ustc/2d-Ising-Dynamics | a894453a0421466bc42c692f4b2db8313ebae0c8 | 6b61dd784e6f5add6f9e7e0624b8e6bd10e3f61b | refs/heads/master | 2020-09-16T19:04:55.644289 | 2019-12-15T08:50:31 | 2019-12-15T08:50:31 | 223,861,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py | # Only for degeneracies:
import matplotlib.pyplot as plt
import numpy as np
import os
import platform
import math
L=16
dJ_set=['-0.1','-0.01','-0.001','-0.0005','-0.0002','-0.0001','0.0','0.0001','0.0002','0.0005','0.001','0.01','0.1']
color_map_name = 'plasma'
color_interval = 10
color_map = plt.get_cmap(color_map_... | [
"qiyang@mail.ustc.edu.cn"
] | qiyang@mail.ustc.edu.cn |
80880417854f6d34fcd4c992d6162711060ddb99 | c09b37459c38bb28ffce5abd6da85a4a77508f57 | /app.py | 4f7675c927fe461d4c23afbf274f7c01b0254e3f | [] | no_license | avalonLZ/Flash_HomeMonitorSys | 35edad68857d62819102beac46adf1598841ddba | f8121677b768462c9b44f052775dec7aecd0dab5 | refs/heads/master | 2021-09-01T22:46:12.462848 | 2017-12-29T01:27:39 | 2017-12-29T01:27:39 | 115,673,424 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,112 | py | #coding:utf8
from flask import Flask,session,render_template,request,redirect,flash
import RPi.GPIO as GPIO
import time
import os
import random
import dht11
import motor
import ledstart
from apscheduler.schedulers.background import BackgroundScheduler
def my_job():
date=dht11.start()
#print date
sched = Backgroun... | [
"423810942@qq.com"
] | 423810942@qq.com |
543322bde64805dbcb5094870aea0d23f6a307e4 | 7aafea72da8a8feec096e52a5d300566d8534b16 | /env/bin/pip3 | 119719284667384eff7b7734617919ff97af2ae8 | [] | no_license | deepesh15/url-shortener | 288bccbf2e16fbc399ce4a5f5c07f8e270e7d068 | 8aea52780562f92f650c6157ff71393e25db9191 | refs/heads/master | 2023-02-01T05:56:56.771395 | 2020-12-17T08:10:18 | 2020-12-17T08:10:18 | 322,223,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | #!/home/pop-py/url-shortner/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"juit.deepesh@gmail.com"
] | juit.deepesh@gmail.com | |
84f283c2d6e32bf80d78a712642904b37a95f12a | 1d0977590f9f8bee5a97964a6155d0efc98aed9e | /neighborhood/migrations/0007_auto_20191029_0844.py | deca23a3f05035d5e477559cfe6b3d1f9436d8e2 | [
"MIT"
] | permissive | josylad/My-Neighborhood | 09530b65952654ecf0d4f3a5697af043dacc3038 | 1955da6b95792d62df0b01165147da79b8af9e55 | refs/heads/master | 2021-11-24T17:18:25.369748 | 2021-11-11T08:51:29 | 2021-11-11T08:51:29 | 217,216,983 | 0 | 3 | MIT | 2021-11-11T08:51:30 | 2019-10-24T05:17:54 | Python | UTF-8 | Python | false | false | 569 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-10-29 08:44
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('neighborhood', '0006_auto_20191029_0813'),
]
operati... | [
"josylado@gmail.com"
] | josylado@gmail.com |
3ad50b0392c543c8b67eceb4bfdf27fe66d482ea | 255021fadf9f739db042809ca95f5b9f75609ec5 | /D3/5110 수열합치기.py | 5c8bc3c8690a5b04fcd125f4897ac861916a08af | [] | no_license | unsung107/Algorithm_study | 13bfff518fc1bd0e7a020bb006c88375c9ccacb2 | fb3b8563bae7640c52dbe9324d329ca9ee981493 | refs/heads/master | 2022-12-13T02:10:31.173333 | 2020-09-13T11:32:10 | 2020-09-13T11:32:10 | 295,137,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py | class Node():
def __init__(self, value, nxt):
self.value = value
self.nxt = nxt
def __str__(self):
return '%d' %self.value
for ro in range(int(input())):
N, M = map(int,input().split())
lists = []
heads = []
for i in range(M):
lists.append(list(map(int,input... | [
"unsung102@naver.com"
] | unsung102@naver.com |
2994a2c292b1c38a977c3cfd2b4fdecb1309fb7b | b83c9e6568a1328f9cb6fc4385224541db183c4d | /yatube/yatube/urls.py | 21cccba3aaae6dcd805a4e5c760a6d80e166e196 | [] | no_license | diakonovmakar/yatube_final | fe074962d9970216c841c58d41227e31808b543a | 43ce2864f26e6e76529d265efd89e6aaa5234f43 | refs/heads/master | 2023-07-03T07:07:44.249572 | 2021-08-17T00:13:53 | 2021-08-17T00:13:53 | 396,022,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | '''yatube URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"diakonov.makar@gmail.com"
] | diakonov.makar@gmail.com |
cdd69a753b645190928c19189c8cb35e338dd0ac | 010bc1db26ae14ae6359dac6d064f30248ab9252 | /src/utils/csrc/setup.py | c72838f55143af7eb3e2bfed58e188fd851b87fe | [
"MIT"
] | permissive | ck196/yolo-pytorch | 633756808d36202f07fb1a652696da977645280a | c2c9b129e0466f6cb4b5ec260d18f025399ed024 | refs/heads/master | 2020-05-15T13:11:58.672400 | 2019-04-17T02:46:25 | 2019-04-17T02:46:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | from distutils.core import setup
import numpy as np
from distutils.extension import Extension
from torch.utils.cpp_extension import BuildExtension, CppExtension
import torch
from torch.utils.cpp_extension import CUDA_HOME
from torch.utils.cpp_extension import CUDAExtension
import glob
import os
requirements = ["torch"... | [
"tuananh.kirimaru@gmail.com"
] | tuananh.kirimaru@gmail.com |
7c28c0a4417fbfbf23a7a0f23fe8145ef948b579 | 5298919395285e0c11cd1cded557c1b05b36c6b1 | /src/stock.py | 4aa809f947991d11b2abca8354f2a43972e87e02 | [
"Apache-2.0"
] | permissive | sneharai4/Stock-Example | 3fd5a8208d9433920977195f771d384b00c1fa31 | 3df25112be5badb6b75bca9f1a4afc0eb2c78a78 | refs/heads/master | 2020-04-14T15:40:51.977953 | 2019-01-09T08:52:13 | 2019-01-09T08:52:13 | 163,934,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,279 | py |
from datetime import datetime, timedelta
from math import isnan
import logging
import os
import pandas as pd
data = [
{'Stock Symbol': 'TEA', 'Type': 'Common', 'Last Dividend': 0, 'Fixed Dividend': '', 'Par Value': 100},
{'Stock Symbol': 'POP', 'Type': 'Common', 'Last Dividend': 8, 'Fixed Dividend': '', 'Pa... | [
"sneha.rai@hpe.com"
] | sneha.rai@hpe.com |
39196d6112fbd470d9590ac6859aa7c02132f777 | 570eede1aca5b713e60dea9d2a6e78da573a2ca1 | /todo_api/views.py | d174da6efdf25d06d756ee154944cf3c928dcf28 | [
"MIT"
] | permissive | MateuszKijewski/to-do-api | 7bf540bf19bb8c0fd72e7a64e149f1d32bc9afd1 | 0c0b206b331753c92b730d8b4317ef060ced520b | refs/heads/master | 2022-05-04T02:44:50.752939 | 2019-10-18T22:31:07 | 2019-10-18T22:31:07 | 211,272,581 | 0 | 0 | MIT | 2022-04-22T22:24:17 | 2019-09-27T08:29:10 | Python | UTF-8 | Python | false | false | 4,591 | py | import json
import random
from django.shortcuts import redirect
from django.urls import reverse
from django.utils import text
from rest_framework.response import Response
from rest_framework import status
from rest_framework import viewsets
from rest_framework.views import APIView
from rest_framework.authentication i... | [
"mateuszkijewski2307@gmail.com"
] | mateuszkijewski2307@gmail.com |
ab90c1d450910b0d5483e6cc83580277e0f77401 | 8cad156f70f27af541be08b0bd4a7ba92826dcff | /hw4/train_VAE.py | 37df4cd636dc8df01d7abc9a92cdd755ac646a47 | [] | no_license | tiffany70072/DLCV2018SPRING | 4380356cee4a5f5cf7038bfd1afcd96ad78aaf60 | 807f9e6b01ba5ff0f2ed55b853075f1768cc3a35 | refs/heads/master | 2022-02-18T18:34:44.349119 | 2019-10-08T09:13:47 | 2019-10-08T09:13:47 | 125,210,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,997 | py | from import_data import import_image
from model import autoencoder_1, VAE, VAE_encoder, VAE_decoder
from plot import output_32, output_20
import scipy.misc
from sklearn.metrics import mean_squared_error
import numpy as np
import sys
from keras.layers import Input, Conv2D, MaxPooling2D, UpSampling2D, Dropout
from kera... | [
"tiffany70072@gmail.com"
] | tiffany70072@gmail.com |
638c0d1f13b981105872cfe7e8d0bd8a58105f2a | 61144246b8a33a1ac55936ab8c1643a3bd6ff90f | /server/namespaces.py | 66b5d7854bee4a76ea0668784b8487585872e206 | [] | no_license | smorris93/jobservice | 2c9e3bf02115dd2edebff27f280239b0c21bdc37 | 741abcbeec8558dbbf9f74645c7abecf68ccd41f | refs/heads/master | 2021-01-18T09:46:59.456903 | 2014-11-05T20:00:33 | 2014-11-05T20:00:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | from socketio.namespace import BaseNamespace
from socketio.mixins import BroadcastMixin
class PushNamespace(BaseNamespace, BroadcastMixin):
def initialize(self):
PushNamespace.sModel.addListener(self)
def disconnect(self, *pArgs, **pKwargs):
super(PushNamespace, self).disconnect(*pArgs, **pK... | [
"rainer.poisel@gmail.com"
] | rainer.poisel@gmail.com |
cde7f232740ed7a8a2206205c568b3b4427573e8 | 17f8b15b186802031099fcac6be304df644fc371 | /python/conversion_utility.py | 7a07595c774b1b3595cf01b8036b4d5b2431f783 | [] | no_license | MattIrv/menumerations | a24c6b486fc939a6e58302db1e686eb3576c9e9d | 29e00f6886c726f5bd705c70650b5274d615de4f | refs/heads/master | 2020-03-29T10:28:48.488320 | 2014-10-18T02:44:58 | 2014-10-18T02:44:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,186 | py | #@Martin Kellogg
import sys
import fractions
def unit_convert( val, unit ):
val_parts = val.split()
acc = 0
for item in val_parts:
try:
acc += float(fractions.Fraction(item))
except:
continue
if "cup" in unit or unit == "c" or unit == "c.":
return (acc,... | [
"mji7wb@virginia.edu"
] | mji7wb@virginia.edu |
438722461013057d03c29e4513b18e4c234e6efa | 1d2301980e52955d5b8d06b340254bcafe13ff45 | /build/simple_control/catkin_generated/generate_cached_setup.py | 6ee5a396bc3d3beddcc0ca5932979212d6d63082 | [] | no_license | j-alicia-long/ros-sim-projects | 3f4f74ef6ded867947aa29372a49bfe557c5bbcd | a77eea0510b6c8f80f7670b6f68aefe22dd311b5 | refs/heads/master | 2022-04-05T03:03:17.373721 | 2020-03-05T08:43:10 | 2020-03-05T08:43:10 | 241,970,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,348 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"j.alicia.long@gmail.com"
] | j.alicia.long@gmail.com |
ae7dcba6c0fdc7a613a199ba0229136f159ce5bd | 5b2504f42c2bcbffcfae00bde549be74c9e62a60 | /vb_simulation_pkgs/example_pkgs/pkg_moveit_examples/scripts/node_eg7_play_trajectory.py | d2af808e94fc35507ecfbadeecf2a3611ac7bc4e | [
"MIT"
] | permissive | ROBODITYA/Eyantra-2021-Vargi-Bots | 0996937b48b6ac61a90f55fb8a405c026aa83ce8 | f1c6a82c46e6e84486a4832b3fbcd02625849447 | refs/heads/main | 2023-05-11T17:39:10.012824 | 2021-06-03T12:53:48 | 2021-06-03T12:53:48 | 369,171,672 | 0 | 0 | MIT | 2021-06-05T07:58:07 | 2021-05-20T10:38:28 | C++ | UTF-8 | Python | false | false | 5,278 | py | #! /usr/bin/env python
import rospy
import moveit_commander
import moveit_msgs.msg
import geometry_msgs.msg
import actionlib
import rospkg
import yaml
import os
import math
import time
import sys
import copy
from std_srvs.srv import Empty
class Ur5Moveit:
# Constructor
def __init__(self, arg_robot_name):
rosp... | [
"tejasphutane@gmail.com"
] | tejasphutane@gmail.com |
adf56f7b8eca22fc8ae2a9b79686086c8ae581f2 | 50bee36bef24c0ce4d866195acdbeb62edf13495 | /chemprop/nn_utils.py | d701848b1016ba5d5c141573ef6522f83926cc32 | [
"MIT"
] | permissive | dmis-lab/PerceiverCPI | 8419a45680fe7d4b3477c1b02696982e6f09492f | b73f9f0116fd5cab71cca91263fffee0b9d8f75e | refs/heads/main | 2023-05-23T23:33:53.681441 | 2023-04-10T06:48:31 | 2023-04-10T06:48:31 | 477,911,910 | 29 | 3 | null | null | null | null | UTF-8 | Python | false | false | 8,606 | py | import math
from typing import List, Union
import numpy as np
import torch
import torch.nn as nn
from torch.optim import Optimizer
from torch.optim.lr_scheduler import _LRScheduler
from tqdm import tqdm
from chemprop.data import MoleculeDataLoader, MoleculeDataset
def compute_pnorm(model: nn.Module) -> float:
"... | [
"noreply@github.com"
] | dmis-lab.noreply@github.com |
3ad7919837af743ea3c3f20f94b100470c79f92f | 602cf847d868912cac9638daacab686d765e2a2d | /magedu/week02/job/num2.py | cd9eaec7f59975799988b4f0acdaa894fff46bf2 | [] | no_license | jiepy/byte | 1a8096ccbcd39bc5bd90d37adae5caffcb59155d | e5cee9337c8be52fe9cee928f95a0931c18f0f5a | refs/heads/master | 2021-01-21T13:56:38.548960 | 2016-05-28T15:12:00 | 2016-05-28T15:12:00 | 52,060,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | num = 58
lst = list(str(num))
while True:
if len(lst) >= 2:
num = 0
for x in lst:
num += int(x)
lst = list(str(num))
else:
print(lst)
break
| [
"gengjie@outlook.com"
] | gengjie@outlook.com |
ac0267c670116e744e862d36c58a0b3758317289 | 8f24edb735e29028f6625b8ea587cdc47ac33a8e | /tests/resources.py | 28c2e90fcf107eb624c9fe0cfb24a195d60cc54a | [
"BSD-2-Clause"
] | permissive | philhodge/stistools | c28fd58a8cc69810c85d9b0c3e101f06abcdef0c | 0ec0d56c6e4b8dc30ea2aa4493970fd7dc34fca7 | refs/heads/master | 2020-08-28T02:55:21.439731 | 2019-04-03T20:18:18 | 2019-04-03T20:18:18 | 217,567,690 | 0 | 1 | NOASSERTION | 2019-11-01T16:24:05 | 2019-10-25T15:53:19 | null | UTF-8 | Python | false | false | 12,950 | py | """HSTCAL regression test helpers."""
from astropy.extern.six.moves import urllib
import getpass
import os
import sys
import math
from io import StringIO
import shutil
import datetime
from os.path import splitext
from difflib import unified_diff
import pytest
import requests
from astropy.io import fits
from astropy.i... | [
"ogaz@stsci.edu"
] | ogaz@stsci.edu |
cecd25afa69432766e8904b3989b94b251dec64b | 08e3e50ba9c2c856fd90f6822ad7d785332126c2 | /mymodule_demo2.py | 125c606d17056b0e3e19b460a21d4e04213bebc8 | [] | no_license | mujker/PythonLearning | 38cc11f49af1fbe69e28e792515d37105f8cb8c6 | 23db0061f8088e7ef44c9bf32f14f5bdb5482062 | refs/heads/master | 2021-01-19T14:45:16.628691 | 2017-08-22T02:35:05 | 2017-08-22T02:35:05 | 100,918,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from mymodule import say_hi, __version__
# from mymodule import *
# 这将导入诸如 say_hi 等所有公共名称,但不会导入 __version__ 名称,因为后者以双下划线开头。
say_hi()
print('Version : ', __version__)
| [
"mujker@163.com"
] | mujker@163.com |
2ec576a1b4171a171b0352d59eb63b30adba236e | 9effef387b551c1ed86233182065d820a71c1f92 | /TonguePlusData/PaperExp_Part1_Backbone_Exp4_InceptionV3/PaperExp_Part1_Backbone_Exp4_InceptionV3_Train.py | 80ed88f921a7833f749d5d5b3d1843d8639ec291 | [] | no_license | tbe07tyg/MyPolyTongue | 4df2a7e06439da23d19626cbcfd59be9f3b31a3a | 8796a8a88c6ea9e0d656fbe959991f4548ab6595 | refs/heads/master | 2023-01-06T03:27:04.471478 | 2020-10-26T13:03:51 | 2020-10-26T13:03:51 | 286,447,117 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79,145 | py | #that is fork from https://github.com/qqwweee/keras-yolo3
#the modifications are as follows:
# - backbone uses squeeze-and-excitation blocks and has fewer parameters
# - the neck and head is new, it has single output scale
# - it is extended by the bounding polygon functionality
from datetime import datetime
import co... | [
"383441523@qq.com"
] | 383441523@qq.com |
37868d9b4048229cc36cbafea3f537b3c05ce832 | 5541a71754a145c206c08530248d2c31e495b8f2 | /python3/sdk/moderation_image_demo.py | e01cc75a0857c3e051d845661f27cae212b626e9 | [
"Apache-2.0"
] | permissive | zhouyluck/ais-sdk | 94849d31935ca43830d00c19fb0363091ffe1690 | 1bfa939fbc3f4a3fc75d4ca892dea5feb1e67c77 | refs/heads/master | 2020-04-05T07:26:43.224542 | 2018-11-07T09:09:44 | 2018-11-07T09:10:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | # -*- coding:utf-8 -*-
from ais_sdk.gettoken import get_token
from ais_sdk.utils import encode_to_base64
from ais_sdk.moderation_image import moderation_image
from ais_sdk.moderation_image import moderation_image_aksk
if __name__ == '__main__':
#
# access moderation image,post data by token
#
user_name ... | [
"17091412@qq.com"
] | 17091412@qq.com |
60cb09da07fd38ca67b44dd6ec8f727e4136cc98 | a11cd2f9385ffa06bc70743ace3c5bc81920f02e | /mainx/main.py | 9ebcb513bff1e6526e5d1cd7a791703521fa2fe5 | [] | no_license | hevi9/etc-python | f58cb1b7c42f7693eac0b797abc522910f824986 | edf02381972788bf4f22ca0d4e0449b522a6038d | refs/heads/master | 2020-12-19T20:49:16.384025 | 2018-03-29T16:14:41 | 2018-03-29T16:14:41 | 17,981,430 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 137 | py |
from .util import TEST
import sys
def main():
print("HERE main", __name__, TEST, sys.argv)
if __name__ == "__main__":
main()
| [
"hevi@lut.fi"
] | hevi@lut.fi |
0071de2e2326958290cbef070ff8de467c33db3d | a2381a5428a32a8dd5461e5c7fbb68f76b22c478 | /Advanced Lane Finding/undistort_and_transform.py | 1de28ca517237b224a95e8a7356c9fd6cc3fd3a0 | [] | no_license | ibiscp/Nanodegree_Self_Driving_Car | c12ceeb1952a5e8d76cee3c8a0be7be8d0e55158 | bd9aac583e5a86de7bedab2a9acc72dbd94a8ee1 | refs/heads/master | 2020-06-13T12:25:39.798513 | 2017-02-19T15:03:55 | 2017-02-19T15:03:55 | 75,381,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,753 | py | __author__ = 'Ibis'
import pickle
import cv2
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
# Read in the saved camera matrix and distortion coefficients
# These are the arrays you calculated using cv2.calibrateCamera()
dist_pickle = pickle.load( open( "wide_dist_pickle.p", "rb" )... | [
"ibiscp@gmail.com"
] | ibiscp@gmail.com |
2d4265c5038f40141c9a571ae184162ef9a3c7f2 | 21f2d0be3073718f40ee3f1bd7bd5b3bb5cdcf0e | /install_packages.py | 933a8d87754feb94c32e37693b29d1454ce087af | [
"Apache-2.0"
] | permissive | Mohsen-Kalantar/IEEE_CIS_Fuzzy | 9ae9b06c3dd151f589dce3ca3b1aca2d96d06a55 | 3c5fc77494de3676095ced1afecb10752a1f2c3d | refs/heads/main | 2023-04-30T11:59:31.653520 | 2021-05-16T01:08:46 | 2021-05-16T01:08:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | #!/usr/bin/env python
from pip._internal import main as pip
pip(['install', '--upgrade', 'pip'])
pip(['install', '--user', 'pandas'])
pip(['install', '--user', 'numpy'])
pip(['install', '--user', 'sklearn'])
pip(['install', '--user', 'catboost'])
pip(['install', '--user', 'pyarrow'])
pip(['install', '--upgrade', 'os']... | [
"kasun@192-168-1-101.tpgi.com.au"
] | kasun@192-168-1-101.tpgi.com.au |
b6728c152fc65f1ac75a040034784143700c7acd | b9a53a0f376e0121a07bbf1ee0940748976d1eb2 | /fanfic/utils.py | 5f43bc92a90166771b364468632e809233a7168c | [] | no_license | davidmcclure/fanfic-crawler | 41621b13ccc5f2083bad3be0f7a275dd64d8ba38 | 78ff96f94b9fa9cf1878c766399027b96ff9f320 | refs/heads/master | 2021-01-12T17:48:16.270816 | 2017-03-07T01:21:39 | 2017-03-07T01:21:39 | 69,393,449 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py |
import re
def extract_int(href: str) -> int:
"""Extract a numeric id from an href.
"""
# TODO: Should this always take the first match?
return int(re.search('[0-9]+', href).group())
def clean_string(value: str) -> str:
"""
- Strip whitespace.
- Replace whitespace strings with 1 space.... | [
"davidwilliammcclure@gmail.com"
] | davidwilliammcclure@gmail.com |
87240e1137ea2faf360234aaf1001a943f6fb854 | 59b5f2d56adf48f5ac9658327da16cac3c95e03c | /Exercise 21-Neural networks.py | 0dced4bed4d72d23caea3459a277b3bfa02f9971 | [] | no_license | Leaves2018/Elements-of-AI-Building-Ai | 3d87d317563f8d0339090cde5155932894321854 | f4716d02ad8b6c2f623e4f429e5a1f7fa15b8e3a | refs/heads/main | 2023-06-18T17:21:53.084227 | 2021-07-20T05:00:21 | 2021-07-20T05:00:21 | 385,882,919 | 1 | 0 | null | 2021-07-14T09:23:45 | 2021-07-14T09:23:44 | null | UTF-8 | Python | false | false | 2,453 | py | import numpy as np
w0 = np.array([[ 1.19627687e+01, 2.60163283e-01],
[ 4.48832507e-01, 4.00666119e-01],
[-2.75768443e-01, 3.43724167e-01],
[ 2.29138536e+01, 3.91783025e-01],
[-1.22397711e-02, -1.03029800e+00]])
w1 = np.array([[11.5631751 , 11... | [
"yuanyufei1999@gmail.com"
] | yuanyufei1999@gmail.com |
711d78260156fbb049a2c66c0d29e63312fe1193 | 3d193be5bcbc0823c91fdb2504beef631d6da709 | /mojo/public/tools/bindings/generators/mojom_cpp_generator.py | 1e111a4b6328307c609f9b7e66d8e089ad05ab6c | [
"BSD-3-Clause"
] | permissive | a402539/highweb-webcl-html5spec | 7a4285a729fdf98b5eea7c19a288d26d4759d7cc | 644216ea0c2db67af15471b42753d76e35082759 | refs/heads/master | 2020-03-22T14:01:34.091922 | 2016-04-26T05:06:00 | 2016-05-03T12:58:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,594 | py | # Copyright 2013 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.
"""Generates C++ source files from a mojom.Module."""
import mojom.generate.generator as generator
import mojom.generate.module as mojom
import mojom.genera... | [
"kimdh@infrawareglobal.com"
] | kimdh@infrawareglobal.com |
2f5056aae3675e28af27b4689c854bfc319a3d5e | 2cc3aed1b5dfb91e3df165144d95c01a495bd54b | /142-Linked-List-Cycle-II.py | b866deca3fcb1fae2c867bb58c88e3937880da9d | [] | no_license | listenviolet/leetcode | f38e996148cb5d4be8f08286daac16243b3c30e4 | 0c1efcbfd35e5ef036ec1ccd0c014cd7baf2ed2b | refs/heads/master | 2020-05-01T07:35:23.462429 | 2019-12-11T12:44:32 | 2019-12-11T12:44:32 | 177,354,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,192 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def detectCycle(self, head):
"""
:type head: ListNode
:rtype: ListNode
"""
if head is None or head.n... | [
"listenviolet@gmail.com"
] | listenviolet@gmail.com |
18d31ce26b142b55eafc0587a3f4b93eaf51f976 | f4b79529109fbb4055f334d0d9c7c96cb0710447 | /colour/difference/din99.py | f386a6173c77e60e5d2555ca4e31f35b4bc5ea9d | [
"BSD-3-Clause"
] | permissive | trevorandersen/colour | 167381b3d03e506a270a8d2a519a164808995437 | 02b595b26313c4b4f55adc41d599f90c4c9edbcd | refs/heads/develop | 2021-07-15T04:48:19.585586 | 2021-01-23T23:51:44 | 2021-01-23T23:51:44 | 230,421,054 | 0 | 0 | BSD-3-Clause | 2019-12-28T12:54:20 | 2019-12-27T10:10:30 | null | UTF-8 | Python | false | false | 3,016 | py | # -*- coding: utf-8 -*-
"""
:math:`\\Delta E_{99}` DIN99 - Colour Difference Formula
========================================================
Defines the :math:`\\Delta E_{99}` *DIN99* colour difference formula:
- :func:`colour.difference.delta_E_DIN99`
References
----------
- :cite:`ASTMInternational2007` : AST... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
20a76123d62775caac61987efbe1c94afac15e93 | 16047f965a69893a8cd2c8d18fbd7b9c86a07eb3 | /src/kubernetes/client/models/v1beta1_ingress_backend.py | 3b9ea01b4e62638976dff3f47f8b4d0f6ba8e523 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | guctum/aws-kube-codesuite | 9ce2cc02fe5fa15c2e175fb697138014fb162f1e | 5d62beaadc13bec745ac7d2fc18f07805e91cef3 | refs/heads/master | 2021-05-24T10:08:00.651840 | 2020-04-23T20:21:46 | 2020-04-23T20:21:46 | 253,511,083 | 0 | 0 | Apache-2.0 | 2020-04-06T13:48:14 | 2020-04-06T13:48:13 | null | UTF-8 | Python | false | false | 4,214 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.7.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"olari@784f435df7a4.ant.amazon.com"
] | olari@784f435df7a4.ant.amazon.com |
9e01cd2867c8dd87c381d8e40446a10643d503de | cc506603700471c58cc6fa922d4b990e4fa4c1c6 | /reports/fippon/report.py | 41e7a64cfab64fdd2a207fe26a00eaf7bcbfcb64 | [] | no_license | Thatweirdcodesman/Airflow | 5cf85282deae750c8e0122bb84566a6054efbcd4 | cd877541f5ded84e2f85c945cf859f5262feb4e5 | refs/heads/master | 2023-01-13T04:50:51.215400 | 2020-11-15T13:19:23 | 2020-11-15T13:19:23 | 293,459,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | import initializeDB as i
import generateReport as g
import exportAndDestroy as e
i.main()
g.main()
e.main()
| [
"achyuthari2000@gmail.com"
] | achyuthari2000@gmail.com |
a7f69367dcfb8bc56dbcb6b6fcffaa3ca19fbd80 | ef32b87973a8dc08ba46bf03c5601548675de649 | /pytglib/api/types/push_message_content_video_note.py | 99172cefb73e820d28fa587a393074904f236be3 | [
"MIT"
] | permissive | iTeam-co/pytglib | 1a7580f0e0c9e317fbb0de1d3259c8c4cb90e721 | d3b52d7c74ee5d82f4c3e15e4aa8c9caa007b4b5 | refs/heads/master | 2022-07-26T09:17:08.622398 | 2022-07-14T11:24:22 | 2022-07-14T11:24:22 | 178,060,880 | 10 | 9 | null | null | null | null | UTF-8 | Python | false | false | 942 | py |
from ..utils import Object
class PushMessageContentVideoNote(Object):
"""
A video note message
Attributes:
ID (:obj:`str`): ``PushMessageContentVideoNote``
Args:
video_note (:class:`telegram.api.types.videoNote`):
Message content; may be null
is_pinned (:obj:`... | [
"me@amirh.co"
] | me@amirh.co |
094cc32163da54a0fdcd050d817137505c7b6b74 | 65329299fca8dcf2e204132624d9b0f8f8f39af7 | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/mt_isn/neighbors/neighbor/subTLVs/subTLVs_/max_reservable_link_bandwidth/state/__init__.py | b402f8bb5659f387eeb3352f8f0310daa86e68ea | [
"Apache-2.0"
] | permissive | darylturner/napalm-yang | bf30420e22d8926efdc0705165ed0441545cdacf | b14946b884ad2019b896ee151285900c89653f44 | refs/heads/master | 2021-05-14T12:17:37.424659 | 2017-11-17T07:32:49 | 2017-11-17T07:32:49 | 116,404,171 | 0 | 0 | null | 2018-01-05T16:21:37 | 2018-01-05T16:21:36 | null | UTF-8 | Python | false | false | 362,538 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from decimal import Decimal
from bitarray import bitar... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
55cb8394c6b3fb21b36bb395f4b6ef5f6633ba0d | 4f04ad7b7f3e5bf921e3328b0cf5b92fa4cbbd1c | /src/__init__.py | 97e4a1cf2d15396564270756ecceba93192c37f0 | [
"MIT"
] | permissive | Manwholikespie/desumoin | dca76a72f5e14cb54d619534dd710fbf45280c29 | 8391462c00c82556bd1aa327965c655053f2f7fa | refs/heads/master | 2023-05-27T17:16:52.935643 | 2019-10-17T02:43:18 | 2019-10-17T02:43:18 | 164,559,798 | 0 | 0 | MIT | 2023-05-01T20:31:25 | 2019-01-08T04:22:03 | Python | UTF-8 | Python | false | false | 1,107 | py | import logging
import uuid
import flask
from src.extensions import assets
from src.auth import auth_manager
from src.views import register_views
def create_app(config):
""" App factory. """
app = flask.Flask(__name__)
app.config.from_object(config)
# Debugging
if app.config['DEBUG']:
ap... | [
"rdominguez@me.com"
] | rdominguez@me.com |
c9c4e9ad3822745d18f03d391e9f83130f245031 | bf1130a1df6978eb528bebec358f9424135204eb | /split_store_backup_utfbscs_report_clean_check.py | 63bba9162e3517425cd10dba40621b649d52a586 | [] | no_license | ookubo-soichi/hello-world | d1444f261abf909802b53e6e86c92999b518373b | c69ecf2b42bad232e7ee3e533ec4e2dd659c22be | refs/heads/master | 2021-07-04T03:24:21.733984 | 2021-05-18T13:04:57 | 2021-05-18T13:04:57 | 22,738,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,460 | py | import os
import re
import shutil
import ctypes
dll = ctypes.windll.trash
animetitle_long = ["通常攻撃が全体攻撃で二回攻撃のお母さんは好きですか",
"可愛ければ変態でも好きになってくれますか",
"この世の果てで恋を唄う少女",
"ありふれた職業で世界最強",
"世話やきキツネの仙狐さん",
"荒ぶる季節の乙女どもよ",
... | [
"noreply@github.com"
] | ookubo-soichi.noreply@github.com |
9762e137224e3eece6dd68d78bd3f401c20ca4b3 | 65f6b3c99020bc06d13a5978042eb4a1e469fdd2 | /db.py | cbc89eabf1ece7188a4de5f191092881c699ff57 | [] | no_license | shatiwa/Coding | b09ebf39826aed9c62f1aa0fa62dcf8ab3642b3f | 089d113387c46be6f22add6254b0f155db214aee | refs/heads/master | 2022-11-08T15:54:45.259013 | 2020-07-13T13:15:23 | 2020-07-13T13:15:23 | 279,384,013 | 0 | 0 | null | 2020-07-13T18:39:59 | 2020-07-13T18:39:58 | null | UTF-8 | Python | false | false | 1,153 | py |
import sqlite3
class DB:
def __init__(self, dbname="details.sqlite"):
self.dbname = dbname
self.conn = sqlite3.connect(dbname)
def setup(self):
stmt = "CREATE TABLE IF NOT EXISTS INFO(Name text, College text, Sideproject text, Language text, Framework text, Board text, Confirm text)"... | [
"noreply@github.com"
] | shatiwa.noreply@github.com |
35ec3f9244dfe4fc94f5752e31bfe340d3af01f6 | 6676867d1b645bd6d8fc7c79d85d7e943a3a3550 | /ROS/skinny/build/messages/catkin_generated/pkg.develspace.context.pc.py | 1c89a5b220d0bc484b871b76fddd3217220ecb66 | [] | no_license | Razorbotz/RMC-Code-20-21 | 88604410293c5edb7a877365aa8bbf2a9cb4141b | f1a5a9c99a3af840188f8dc3a680c0453600ee02 | refs/heads/master | 2023-07-18T03:44:26.445419 | 2021-05-11T18:08:24 | 2021-05-11T18:08:24 | 336,593,274 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/team/SoftwareDevelopment/ROS/devel/include".split(';') if "/home/team/SoftwareDevelopment/ROS/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime".replace(';', ' ')
PKG_CONFIG_... | [
"andrewburroughs17@gmail.com"
] | andrewburroughs17@gmail.com |
857a66af872eeadeb1b03d6408394cbbfd9e33dd | d4b68672c2e016ccafe3ab9175ecea46ffcab0c4 | /python/files.py | ec41cf582cbd85d0fe537389c7664fd3b9ab7a49 | [] | no_license | ShivamSainier/socket_chat-in-python- | e00bda1bbc023faafb2c9ed2f4bc46e9858d8980 | 275fff8ccf9cdd2552f82813ada881e0eff8c2ff | refs/heads/master | 2022-04-18T06:26:29.056682 | 2020-03-03T04:58:46 | 2020-03-03T04:58:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | # Reading and writing files in python
file=open('test.txt','r') # Open a file
print(file.read())
| [
"ss1907364@gmail.com"
] | ss1907364@gmail.com |
64fca505a0e04157d06ac57fce5f84b1bdc24c9a | d79115d281b7e0b868e0aa1129e1b041cc7868c4 | /KS201905271228/addons/plugin.video.vstream/resources/sites/streamzzz_com.py | 3a81aa2276a021740abf68262c8cf1b93ecb540f | [] | no_license | Salva59s/kodirepo | 4989a2b322b23d9e17c333103cfbcee08ff520bc | 3e5f58f6760d03cb2b8f3fb3dd6ae52dae125b4f | refs/heads/master | 2020-05-27T17:55:18.890216 | 2020-03-14T14:25:14 | 2020-03-14T14:25:14 | 188,731,353 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,228 | py | #-*- coding: utf-8 -*-
# https://github.com/Kodi-vStream/venom-xbmc-addons
#voir episode avec ex: 2 x 1 au lieu de 2 - 1
from resources.lib.gui.hoster import cHosterGui
from resources.lib.gui.gui import cGui
from resources.lib.handler.inputParameterHandler import cInputParameterHandler
from resources.lib.handler.output... | [
"48624308+Salva59s@users.noreply.github.com"
] | 48624308+Salva59s@users.noreply.github.com |
f8d37e2820659c14d76526cffac90b73ea471a17 | c3f85d8d2d3d637829981a3758daeb0c360b4bba | /tests/test_utils.py | 1cec0a1f896e85143d15a4882be971e3b89afb3b | [] | no_license | edumotya/gstreamer-python | e95b0a6f03bb2d48231196845c8d5865eaef48eb | 8704ee6cfb32b10e103b5ed8c37c808a10376973 | refs/heads/master | 2022-06-13T09:19:59.489904 | 2020-05-04T10:23:51 | 2020-05-04T10:23:51 | 255,419,719 | 0 | 0 | null | 2020-04-13T19:14:06 | 2020-04-13T19:14:05 | null | UTF-8 | Python | false | false | 6,019 | py | import os
import time
import math
import typing as typ
from random import randint
from fractions import Fraction
import numpy as np
import pytest
from gstreamer import GstVideo, Gst
import gstreamer as gst
import gstreamer.utils as utils
NUM_BUFFERS = 10
WIDTH, HEIGHT = 1920, 1080
FPS = 15
FORMAT = "RGB"
Frame = t... | [
"jackersson@meta.ua"
] | jackersson@meta.ua |
843549c01f6394022291fe0ead53d4d7656862d3 | 070c04673e045a20c3e26a566e9ff2c14c5540d1 | /xknx/knx/dpt_scaling.py | c2d8567808e48c2462ededa70a44dd58ba35caa5 | [
"MIT"
] | permissive | MrChrisCool/xknx | 81d71d2f5506f573b71d911e097a13aea538bdca | 3215abc5c1ba08bd91218db1e9d184372436673e | refs/heads/master | 2021-05-08T11:28:04.244641 | 2018-02-02T19:17:44 | 2018-02-02T19:17:44 | 119,739,688 | 0 | 0 | null | 2018-01-31T20:30:37 | 2018-01-31T20:30:36 | null | UTF-8 | Python | false | false | 1,119 | py | """Implementation of Basic KNX DPT_Scaling (Percent) Values."""
from xknx.exceptions import ConversionError
from .dpt import DPTBase
class DPTScaling(DPTBase):
"""
Abstraction for KNX 1 Octet DPT_Scaling.
DPT 5.001
"""
value_min = 0
value_max = 100
unit = ""
resolution = 1
@cla... | [
"julius@mittenzwei.com"
] | julius@mittenzwei.com |
5bd973480a1f89b0932866675956bb5980cbadda | eec590deb889f088cd097d955c67596f7e33595a | /huffman.py | 6acc20a13603b9380a11866c718f196a91ef90e4 | [] | no_license | songweiuliu/Data_structure | 0cd513c304114e9f3809bc1e24066ecc9d28fe11 | d3c31e6fc7ef1a55f8becafd3e94c7082f0f4ce1 | refs/heads/master | 2020-03-28T22:48:49.474385 | 2018-09-18T09:50:34 | 2018-09-18T09:50:34 | 149,259,481 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,580 | py | # coding: utf-8
# About huffman encoding
from priqueue_heap import *
from Binarytree import Binnode,printallnode
#由于要基于优先序列(堆实现的)实现huffman编码,因此节点存储的数据是二叉树节点(父节点,左右子节点)
#因此要实现优先序列,必须实现序列中元素的可比性,也就是要给节点增加比较大小的属性
class Huffmannode(Binnode):
#对于派生类一般不用重新定义初始化函数,只定义不同的部分
# def __init__(self,elem_,left_=None,righ... | [
"songweiliu@hust.edu.cn"
] | songweiliu@hust.edu.cn |
d5a275e6a092e8f529444b0dedf3963b36cac54b | 07d6565edb27e5366a55fc4d15f0e94fc610e5c4 | /Models/DenseNet.py | 99cf4771cb42644f4b8564a40db7473add700224 | [
"Apache-2.0"
] | permissive | Wenyuan-Vincent-Li/SSL_Seg_GAN | 8b79069d1fb6cd374ce65e67791cc8b20509dbcd | 8f6c45fd000ea12468dccf211b376fadbf4759c6 | refs/heads/master | 2022-04-10T22:34:54.985755 | 2020-02-27T19:35:29 | 2020-02-27T19:35:29 | 232,152,538 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,984 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class DenseLayer(nn.Module):
def __init__(self, n_channels, growth_rate=16):
'''
DenseNet Layer, as described in Jegou 2017.
Returns concatenation of input and output along feature map
dimension `1`.
BN -> Re... | [
"liwenyuan.zju@gmail.com"
] | liwenyuan.zju@gmail.com |
73b82f1af015cdcd1a456fcc9601299bf0a44949 | 9bb01fa882e713aa59345051fec07f4e3d3478b0 | /docs/developers/source/conf.py | d314b8e844c24fcf9a8014072e18dd2341ccd829 | [] | no_license | syarra/cysparse | f1169c496b54d61761fdecbde716328fd0fb131b | 7654f7267ab139d0564d3aa3b21c75b364bcfe72 | refs/heads/master | 2020-05-25T16:15:38.160443 | 2017-03-14T21:17:39 | 2017-03-14T21:17:39 | 84,944,993 | 0 | 0 | null | 2017-03-14T12:11:48 | 2017-03-14T12:11:48 | null | UTF-8 | Python | false | false | 7,219 | py | # -*- coding: utf-8 -*-
#
#
# This file is execfile()d with the current directory set to its containing dir.
#
# The contents of this file are pickled, so don't put values in the namespace
# that aren't pickleable (module imports are okay, they're removed automatically).
#
# All configuration values have a default; val... | [
"nikolaj.van.omme@gmail.com"
] | nikolaj.van.omme@gmail.com |
33e385aebe31e3b1ffb5811cb47bb7521d66997a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02422/s471361750.py | 0cf878de52dfdcdb737e717b9de0b5ccae18f4d5 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | import sys
string = raw_input()
string_list = list(string)
#print string_list
q = input()
for i in range(q):
x = map(str, raw_input().split())
if(x[0] == 'replace'):
k = 0
for j in range(int(x[1]), int(x[2])+1):
string_list[j] = x[3][k]
k += 1
#print "".join(str... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
070fd62c4d3a71b9cca0beefd35100a4e5a546ce | 47df4f3b1a457771c7d40197e70b2404aec48e5f | /SetAntenaInHouse.py | 15f90d761cba9ea4c541ca6f49e7fd316c33f3cc | [] | no_license | jungmin0710/Algorithms | c42920b7f5e8d591e204917d03e485c908a78448 | 686cec1cf3703214c3abdd8a4220c9c383c966e1 | refs/heads/main | 2023-01-12T07:04:44.780105 | 2020-11-13T08:58:33 | 2020-11-13T08:58:33 | 303,243,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | ##방법1: 합계를 계산해서 산출
#입력받기 + 정렬(최솟값이 여러개 나올 경우 앞 쪽 값을 먼저 산출)
n = int(input())
house = list(map(int,input().split(" ")))
s_house = sorted(house)
#임시변수 설정
result = []
sum = 0
#거리값을 계산해서 리스트에 넣기
for i in range(n):
for j in range(n):
sum += abs(house[j]-house[i])
result.append(sum)
sum = 0
#결과 리스트의 값이 최솟값이면 해당... | [
"noreply@github.com"
] | jungmin0710.noreply@github.com |
89db9473dc9b2a81e4c67e8785dcf077eb8f4294 | a64f122dd4df3e20bc3e25aca31bb11ec9d55977 | /Assignment 3/clustering.py | ee7908876a95d098ee73611bbbd0b2070aadb4b4 | [] | no_license | mbrine555/gatech_ML | f9de5e1e1c29e40693030fcf3dce4797339f3ada | 2a3dea874ac7710104fb891a5199afa9f3c046af | refs/heads/master | 2020-04-16T10:39:44.328425 | 2019-04-10T11:54:37 | 2019-04-10T11:54:37 | 165,512,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,837 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Mar 16 10:38:28 2017
@author: jtay
"""
#%% Imports
import pandas as pd
import numpy as np
from sklearn.manifold import TSNE
from time import clock
from sklearn.preprocessing import StandardScaler
from sklearn.pipeline import Pipeline
from sklearn.cluster import KMeans as kme... | [
"briner.15@osu.edu"
] | briner.15@osu.edu |
491144c1597f64c1a41b15ecc4b30ea1511b3f41 | 8ff1a1ba57644d794b48e01a27231299e12e6efc | /CactusTEAnnotator/findRepeats.py | ea0fab8e7a6e34999461b32592f70404214cf2c4 | [] | no_license | adderan/CactusTEAnnotator | f913e79d39b7addc663313f35ee826efda9f1512 | 9e711b8ef8eee66d9d3ebe2a2025c4f07cf1545f | refs/heads/master | 2021-06-05T02:01:54.849797 | 2020-09-25T19:07:58 | 2020-09-25T19:07:58 | 109,070,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,544 | py | import argparse
import random
import os
import shutil
import sys
import subprocess
from toil.job import Job
from toil.common import Toil
from sonLib.bioio import fastaRead, fastaWrite, catFiles, reverseComplement
def makeURL(path):
return "file://%s" % os.path.abspath(path)
dockerImage = "cactus-te-annotator:la... | [
"adderan@ucsc.edu"
] | adderan@ucsc.edu |
f4b03bd5d4e1268c79ec8798a15c29305fcb51bf | 34a3da4cd8dc3835cb7acc4e1a4232c5738e1f71 | /part_three_functions_as_objects/chapter_6_design_patterns_first_class_func/stategy_pattern/function-oriented.py | 64299410d050a4080323eb794b1d0f9e78fddf58 | [] | no_license | AlexMussell/fluent-python | eec6fd55bf932032cfa62d1d1411870ed91c755e | 89885c16dc243164c589f7372f8eb8c832f33358 | refs/heads/master | 2020-12-26T22:41:00.406790 | 2020-03-03T21:39:48 | 2020-03-03T21:39:48 | 237,672,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,741 | py | """
# BEGIN STRATEGY_TESTS
>>> joe = Customer('John Doe', 0) # <1>
>>> ann = Customer('Ann Smith', 1100)
>>> cart = [LineItem('banana', 4, .5),
... LineItem('apple', 10, 1.5),
... LineItem('watermellon', 5, 5.0)]
>>> Order(joe, cart, fidelity_promo) # <2>
<Order total: 42.00 due: 42.00>
>>> Order(ann,... | [
"alexander.mussell@hotmail.co.uk"
] | alexander.mussell@hotmail.co.uk |
e57da91920747c52a1bb059dfd2d2f81a8858e68 | 3c1a519e6ebcb25a23ad1ecf69fe9ec85aef0ffc | /challenge-triangle-app.py | 4b167f4fb63e924d245965d740154a8c646f2388 | [] | no_license | mdev-qn95/python-code40 | 02ee1cc5e2e6772472f04387d846f4df0039d136 | 641c8f9c2e74f55f1aea1b32f81d0d6e39c78ec5 | refs/heads/master | 2022-12-01T03:57:18.920437 | 2020-08-15T13:28:31 | 2020-08-15T13:28:31 | 285,978,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | # Basic Data Types: Right Trangle Solver App
import math
print("Welcome to the Right Triangle Solver App")
# Get user input
side_a = float(input("\nWhat is the first leg of the triangle: "))
side_b = float(input("What is the second leg of the triangle: "))
# Calculations
side_c = math.sqrt(side_a**2 + side_b**2)
si... | [
"thaivanphu.qn95@gmail.com"
] | thaivanphu.qn95@gmail.com |
c012f0bd2f4c43230a2dff624300815e0cf3ad9c | 202dccf345d942f4a08d0cd54a39da96a8d4033b | /lib/dataset/DOTA.py | 784d36883ba6a81790531d968a92dd8ee9fb73c9 | [
"BSD-2-Clause-Views",
"MIT",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | chinakook/Detection_and_Recognition_in_Remote_Sensing_Image | 3dceed5a9314ca5256bea74d335631acfd7da4fa | 201c7450ad45d203b59d8345fb6fad903fad8748 | refs/heads/master | 2020-05-22T14:35:58.648145 | 2019-03-06T08:34:59 | 2019-03-06T08:34:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,387 | py | # --------------------------------------------------------
# Deformable Convolutional Networks
# Copyright (c) 2017 Microsoft
# Licensed under The Apache-2.0 License [see LICENSE for details]
# Modified by Haozhi Qi, from py-faster-rcnn (https://github.com/rbgirshick/py-faster-rcnn)
# ----------------------------------... | [
"46738358+whywhs@users.noreply.github.com"
] | 46738358+whywhs@users.noreply.github.com |
c24069a05746d28faf5c5f9a374f27631e8ab25c | f53212c4acbe6b5717dbde05e5a7af0a466f43bb | /fitting/xi_multi/norec/calcsigma.py | 1319e78b3f9cf2f8481fbfc893dec55e2d72deed | [] | no_license | qiongyu/CosmoCodes | 7d913312b06c799ea7e4b4881d003fecf7f638eb | 7847fad0b1a150756890d7dc4b72d66311fa20a0 | refs/heads/master | 2020-05-17T00:32:26.174850 | 2013-06-22T22:07:52 | 2013-06-22T22:07:52 | 10,871,922 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,798 | py | import math
import numpy as np
import matplotlib
from matplotlib import pyplot
from matplotlib.backends.backend_pdf import PdfPages
a = np.loadtxt('grids.txt',dtype=({'names': ['infile'],'formats': ['S100']}))
infile = a['infile']
nf = np.size(infile)
malpha = np.zeros(nf)
mepsilon = np.zeros(nf)
calpha = np.zeros(nf)... | [
"xiaoyingxu@cmu.edu"
] | xiaoyingxu@cmu.edu |
3e88a60d56a7aba5189017961bae770a9caccd0f | 26e0c20d027e30a6477a4e17a2c85702a852b97e | /tutorial_14.py | 96857963c3b8c6c1e0d046c7f4491515b9dc3214 | [] | no_license | chenbidong/tutorial | c41da7570a22ef11e7065bae3acf2bca75d0dc2b | f0f09be8faa9dc1088609a296e7914550cdded40 | refs/heads/master | 2020-03-24T16:12:47.388752 | 2018-07-30T02:57:20 | 2018-07-30T02:57:20 | 142,816,877 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | import cv2 as cv
import numpy as np
def big_image_binary(image):
print(image.shape)
cw = 256
ch = 256
h, w = image.shape[:2]
gray = cv.cvtColor(image, cv.COLOR_BGR2GRAY)
for row in range(0, h, ch):
for col in range(0, w, cw):
roi = gray[row:row+ch, col:cw+col]
... | [
"noreply@github.com"
] | chenbidong.noreply@github.com |
c09a6cea0ffaddecc2ab9c4b6dd24df58397ff34 | 404728244681a773f55be7f7b0c4933f439f3106 | /walis/api/handler/analytics/transaction.py | 7ce88bb159f9a77aa2de90c68f0b65de02636b86 | [] | no_license | limingjin10/walis | c4e22db27d964cefa068883edf979cabfedd74d6 | 198a4e94992c1790b7a9f2cd34b1686fefc87845 | refs/heads/master | 2021-05-29T04:50:34.091849 | 2015-06-15T14:19:23 | 2015-06-15T14:19:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | #! /usr/bin/env python2
# -*- coding:utf-8 -*-
from __future__ import absolute_import, division, print_function
from walis.utils.http import Arg, args_parser
from walis.api.handler.region.region import front_area_to_back_area
from walis.service.analytics import transaction as transaction_svc
def query_by_area():
... | [
"shaofeirong2006@126.com"
] | shaofeirong2006@126.com |
e174499919655acbf684b14a3e824f5bdf9d08c0 | 4480b2a2c83e2e1ee25da406c1d06de5edeeca2b | /src/_version.py | c97218510d21e95d9e10a02280fa2062296b6e28 | [
"MIT"
] | permissive | IllDepence/anki_add_pitch_plugin | af9b49c2d155ccaa0dc1aaf45412382d80acc9c8 | f901ba9784dd280eab61a47f753616761efe3992 | refs/heads/master | 2023-05-12T12:41:54.467424 | 2023-05-07T13:36:14 | 2023-05-07T13:36:14 | 205,711,163 | 28 | 12 | MIT | 2022-03-26T08:52:03 | 2019-09-01T17:41:09 | Python | UTF-8 | Python | false | false | 51 | py | """ Version information
"""
__version__ = '0.9.1'
| [
"tareksaier@gmail.com"
] | tareksaier@gmail.com |
3b7e6d245def0f2cf7235e239d3dac0f35d6fc51 | 606f0fe4be1828e1750486f9b8dd1ff24f8c70ea | /pyWorker/info/consts.py | c11e6ebde84d3c155486804bc7f285d81042aa77 | [] | no_license | yyywrz/Currency_pairs | 0e71f5b676a742a0b5f78a797643e312b471fd2e | 3a14358248a441a102e5a2c083342dd4d8236be7 | refs/heads/master | 2022-03-26T22:47:00.310733 | 2019-12-30T10:00:06 | 2019-12-30T10:00:06 | 224,400,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,500 | py | Europe = {'Germany', 'Austria', 'Belgium', 'Cyprus', 'Estonia',
'Finland', 'France', 'Greece', 'Ireland', 'Italy',
'Latvia', 'Lithuania', 'Luxembourg', 'Malta', 'Netherlands',
'Portugal', 'Slovakia', 'Slovenia', 'Spain'}
all_codes = {'USD', 'AED', 'ARS', 'AUD', 'BGN', 'BRL',
... | [
"45575275+yyywrz@users.noreply.github.com"
] | 45575275+yyywrz@users.noreply.github.com |
28f9d903f83878d1ce387372b862dd32eb37db2b | 4ee21d2625445ac814a0fe536fe45a2e64c41705 | /someFunctions.py | 3f3d51c3d20ffa760b69705928106ad31f66234a | [] | no_license | CrisRu95/Prueba | 128ab72e0cc1aff0e74ddc77aee21781cf8c7356 | 1fe912ba261b1fdd5f32e7a4d5be6d2389330eb2 | refs/heads/main | 2021-12-10T05:57:40.705842 | 2021-12-09T17:19:18 | 2021-12-09T17:19:18 | 253,436,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py |
def suma(n1, n2):
r = n1 + n2
return r | [
"ecrisru@alumni.uv.es"
] | ecrisru@alumni.uv.es |
327432950f4feb08518c20a1c661437c6748ce4c | b08f1485d0c2c18e57134d0d3d56220fdff3cc5e | /FlaskAPI_ENV/scripts/Section 6/Video 6.2/source_code/tests_route.py | c1e73a775fdba31d368d8d85330cc2f608ab9949 | [] | no_license | bithu30/myRepo | 250c9383d31c296a9e116032aebf4ce947d1964e | 64485bb10327ed3a84b3c15200b1dd6a90117a8e | refs/heads/master | 2022-10-21T16:26:45.997395 | 2018-05-31T02:51:31 | 2018-05-31T02:51:31 | 41,030,617 | 5 | 18 | null | 2022-10-05T07:40:41 | 2015-08-19T11:43:00 | Jupyter Notebook | UTF-8 | Python | false | false | 1,464 | py | import app
import unittest
import json
class RoutesTestCase(unittest.TestCase):
def setUp(self):
app.app.config['TESTING'] = True
self.app = app.app.test_client()
def tearDown(self):
pass
def test_api_candidate_OK(self):
print("\nRunning: test_api_candidate_OK")
... | [
"bijith.komalan@gmail.com"
] | bijith.komalan@gmail.com |
17876fc2d595856a258c0709afa482be8d292718 | cab0dcea0b9d90a3465a85dbcd7b7e437cafbacf | /main/migrations/0021_auto_20200908_0051.py | 71c8b9e859eba8369edccfa6e47abda868422de7 | [] | no_license | Efrain96/SchedulerUEES | 99c7a2a80a5587897a4a1db3040734c98b7b0813 | 1f474d642612ea83c6d0236554dbcd0d6e4cec6f | refs/heads/master | 2022-12-14T23:57:41.591255 | 2020-09-09T01:37:30 | 2020-09-09T01:37:30 | 293,951,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | # Generated by Django 3.1.1 on 2020-09-08 05:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0020_auto_20200907_2316'),
]
operations = [
migrations.AlterField(
model_name='lineitemschedulemodel',
name=... | [
"vargasedwin463@gmail.com"
] | vargasedwin463@gmail.com |
c4cdbd70c8aa1ac30268890fedb9604f8884985e | 5fb98bab6b44b6454faa4502d99bb71bbfe3040c | /train_net.py | 8a2a048b5a0f6ee21179b2178f7d258f9662a3c3 | [] | no_license | martamaria96/deep-wnet | 4e3646d16c45a1534e002ab174305e5d97a6b579 | eb6557dd5a65daf1e03d32f1e098e22ffc20f4ce | refs/heads/master | 2022-04-03T10:30:27.075239 | 2020-02-11T12:00:01 | 2020-02-11T12:00:01 | 170,550,258 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,148 | py | from unet_model import *
from wnet_model import *
from gen_mask_neighbor import *
from gen_patches import *
from generator import *
from clr_callback import *
import os.path
import tensorflow as tf
import sys
import decimal
from keras.callbacks import CSVLogger
from keras.callbacks import ModelCheckpoint, ... | [
"maria.ldias96@gmail.com"
] | maria.ldias96@gmail.com |
dffb4cca42d49ca3386e9c77de4f2bd2dd579da1 | 8948d56d9a27d455e62cb9dc6b0a976f543877d5 | /test_topics_feedback.py | 9d1e1161defb27f50c6a465bc214d21dfc9bcc71 | [] | no_license | saurabh241930/MQTT_TEST | 624cfb13533cafecd0a1153d2dd6dab37068ae68 | ee39ec80b6977aad97c31cd356774a56376d7726 | refs/heads/main | 2023-02-17T21:17:38.393985 | 2021-01-20T16:37:22 | 2021-01-20T16:37:22 | 331,363,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | import paho.mqtt.client as mqtt
from utils import connect_mqtt,subscribe
import random,time,os,sys
broker = 'broker.emqx.io'
port = 1883
topic = [("/Vehicle1/location/x/value",0),("/Vehicle1/location/y/value",1)]
# generate client ID with pub prefix randomly
client_id = f'python-mqtt-{random.randint(0, 1000)}'
# use... | [
"noreply@github.com"
] | saurabh241930.noreply@github.com |
a70453fb8640df1a235d3b8d3ec1e063a5c63249 | 6a8224bc267a892a2b05eae47d7de6221e05c636 | /SCPI_TRX_Control.py | 9bd914bdc5f6b5691dffda3f1f635b65eb32405c | [] | no_license | jaffreyho/Pipit24 | 5cb31e4a938e886c2db61c22b816077906a555a4 | 156f68fac86bc9f33381c7b30c8941deb3312843 | refs/heads/main | 2023-04-03T18:49:36.379458 | 2021-04-15T05:20:51 | 2021-04-15T05:20:51 | 358,112,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,807 | py | import os
import sys
import argparse
from SCPI_Client import SCPI_Client
class CHANNEL_CTRL_OBJECT(object):
IC_num: int
mode: int
module: int
channel_1_switch = 0
channel_2_switch = 0
channel_3_switch = 0
channel_4_switch = 0
channel_5_switch = 0
channel_6_switch = 0
channel_7_switch = 0
channel_8_switch... | [
"noreply@github.com"
] | jaffreyho.noreply@github.com |
dc86eb20d5edb199c37f567c3128d97b26db9875 | b6d4439d6be7c693148595be248455a538f3c6e7 | /gamer/player_factory.py | 8b4cc0a979150dd481d309b65eab0b4d24833396 | [] | no_license | ParkSanggi/black_jack_python | 4823463757e788ade329adad51b999c23d1d263b | 579035f60ef3b0ac51eab02df1c28814eae06854 | refs/heads/master | 2022-11-17T11:36:02.147998 | 2020-07-13T12:27:17 | 2020-07-13T12:27:17 | 276,088,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | from gamer.names import PlayerNames
from gamer.gamer import Player
from profit.betting_money import BettingMoney
class PlayerFactory:
@staticmethod
def create():
player_names = PlayerNames()
player_name = player_names.get_next_name()
players = list()
while player_name:
... | [
"sangpark@student.42seoul.kr"
] | sangpark@student.42seoul.kr |
30eb158a441dcc7ae4eaa97fa60be1ecfa86aaa4 | fda201d7cca34e216a17d97665c8457c72e66cb2 | /libya_elections/tests/test_schedule.py | b59346ae49540ddec35f1665aa5dcc8cc4da2da0 | [
"Apache-2.0"
] | permissive | SmartElect/SmartElect | 94ab192beb32320e9ae8ae222f90ee531037c1c6 | d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8 | refs/heads/develop | 2020-12-26T04:04:42.753741 | 2019-07-17T17:08:25 | 2019-07-17T17:08:25 | 44,687,036 | 24 | 12 | Apache-2.0 | 2020-06-06T07:16:48 | 2015-10-21T15:47:07 | Python | UTF-8 | Python | false | false | 471 | py | import datetime
from django.test import TestCase
from libya_elections.utils import at_noon
class ScheduleTest(TestCase):
def test_at_noon(self):
# at_noon returns a datetime with the right values
dt = datetime.datetime(1970, 2, 3, 4, 5, 6, 7)
result = at_noon(dt)
self.assertEqual(... | [
"vinod@kurup.com"
] | vinod@kurup.com |
f9bfd7da0adfef7e954c1cf905f42db4317ebe94 | 20419c6c9f2cdd28b536ceef1f62c5f25516826d | /srp.py | 8999daf937f6555d604d1b709571bc002ea37537 | [] | no_license | thermalbarker/matasano-crypto-fu | 52868ed3218062ff9b864dfd359d9c3ea1d975ba | f6580c9a75ddd9a314c9fca186a76629bb47cd5e | refs/heads/master | 2021-04-26T16:43:13.822008 | 2016-08-20T11:46:08 | 2016-08-20T11:46:08 | 30,983,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,843 | py | import random
import hashlib
import hmac
from diffiehellman import dh_public_key, dh_shared_secret, tom_modexp, dh_encrypt, dh_decrypt
from cryptobuffer import cryptobuffer
class SrpCommon(object):
private_key_size = 2 ** 1024
def __init__(self, N, g, k, I, P, privkey = None):
self.N = N # modulus
... | [
"thermalbarker@gmail.com"
] | thermalbarker@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.