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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
160e6f9e2f4622e1af2cb9e5ff9252cf7e29d002 | efc90aad821f8994d2c05082fab5ba67f355f699 | /volkscv/analyzer/statistics/processor/box_processor.py | 6e1cb1f7fddc5cb00b2f24484e68903cb8d39e17 | [
"Apache-2.0"
] | permissive | ChaseMonsterAway/volkscv | d1cdcbaaf1ca17076cb991862b29459c1adb2813 | aa7e898cc29e3e5f26363e56bf56f4c56574bbd8 | refs/heads/master | 2023-03-10T02:54:50.269361 | 2021-02-24T02:34:53 | 2021-02-24T02:34:53 | 285,753,693 | 10 | 0 | Apache-2.0 | 2021-02-24T02:34:54 | 2020-08-07T06:20:03 | Python | UTF-8 | Python | false | false | 7,904 | py | import matplotlib.pyplot as plt
import numpy as np
from .base import BaseProcessor
from ..plotter import OneDimPlotter, TwoDimPlotter, SubPlotter, Compose, cdf_pdf
class BoxProcessor(BaseProcessor):
""" Process the information related to box, get several statistical distribution.
Args:
data (dict): ... | [
"jun.sun@media-smart.cn"
] | jun.sun@media-smart.cn |
dc6bc1e49da835ba067f04ecc87cc1a6ea910278 | d5b4ac45bb59287fd86bbaa454a97982f159f90a | /DB7.py | 864ebbd67afd21b252e08a0bc059056efff34cd5 | [] | no_license | 21368236/1 | b7d43a4d6b48033e483d61e9bc7dee6e5eecdc45 | 6f72422d6565bfbd503e36a5ffc4e0590115acc8 | refs/heads/master | 2022-08-24T22:43:05.169200 | 2022-08-14T21:32:59 | 2022-08-14T21:32:59 | 152,224,029 | 0 | 0 | null | 2018-10-18T15:11:26 | 2018-10-09T09:26:07 | Python | UTF-8 | Python | false | false | 32 | py | s= ("7")
int (s)
print (s/7)
| [
"noreply@github.com"
] | 21368236.noreply@github.com |
c0750ef184ed5e43af364a74a3f17262aca88d07 | 96cfaaa771c2d83fc0729d8c65c4d4707235531a | /RecoHcal/HcalProm/test/runHcalTemplate.py | 56f7ce258be40e5eeb4134a4662b388ce4da6b3f | [] | no_license | khotilov/cmssw | a22a160023c7ce0e4d59d15ef1f1532d7227a586 | 7636f72278ee0796d0203ac113b492b39da33528 | refs/heads/master | 2021-01-15T18:51:30.061124 | 2013-04-20T17:18:07 | 2013-04-20T17:18:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("HCALTemplate")
process.load("MagneticField.Engine.uniformMagneticField_cfi")
# process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
process.load("L1Trigger.Configuration.L1Config_cff")
process.load("L1TriggerConfig.L1GtConfigPr... | [
"sha1-cf070837f75a2e740f971de86d9d2e3a75a81342@cern.ch"
] | sha1-cf070837f75a2e740f971de86d9d2e3a75a81342@cern.ch |
1ab90d2920fccca9c25b7d34341889016c5a1931 | 9224be8b75cd55325dfa69772a2734e6c81e6b5b | /audio/sig/fbanks.py | 29c840455a9960ac00e9b3f28039a66170ccb26a | [] | no_license | RaphaelOlivier/audio-smoothing | 28bc4a7a36364ee8ca0f32680c48c3449a44c907 | 092ab54ae181cbf86787ad64de276f19be9dbf70 | refs/heads/master | 2022-11-29T14:20:32.726104 | 2020-06-30T17:30:09 | 2020-06-30T17:30:09 | 275,976,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,886 | py | """FilterBANKS for audio analysis and synthesis."""
import math
import numpy as np
from numpy.fft import rfft, fft
from scipy.fftpack import dct
from .auditory import hz2mel, mel2hz
from .auditory import erb_space, erb_filters, erb_fbank, erb_freqz
from .window import hamming
from .temporal import convdn, conv
clas... | [
"raphael.franck.olivier@gmail.com"
] | raphael.franck.olivier@gmail.com |
b50026269bbbba85f9812f1668b0b260550a19d7 | b9072925512750284c663f1b22059f94e5ccf289 | /3-deploy_web_static.py | 3c52cf865b22f5732832b6e23c8f12144faeea26 | [] | no_license | mmanumos/AirBnB_clone_v2 | dad72f8a3bdf672c509dff96b57eb20954d20cbf | 473730369dd6cfee1fecfea95f8885cfc62973d1 | refs/heads/master | 2022-04-25T13:47:26.538922 | 2020-04-27T06:50:40 | 2020-04-27T06:50:40 | 255,198,068 | 0 | 0 | null | 2020-04-13T00:45:52 | 2020-04-13T00:45:52 | null | UTF-8 | Python | false | false | 1,494 | py | #!/usr/bin/python3
# Fabric script to deploy web_static to server
from fabric.api import *
import os
from time import strftime as ti
env.user = 'ubuntu'
env.hosts = ['34.73.242.80', '54.209.158.161']
def do_pack():
"""Fabric script to compress files in web_static"""
local("mkdir -p versions")
ver = ti("%... | [
"mosqueramanuel5@gmail.com"
] | mosqueramanuel5@gmail.com |
3f800cd02f80ce00ee6facfa70dab1e68fbb75ec | ea35f4925caeaa398df4f6f5245765e994ee62f7 | /BruteForceModel/main.py | f05c74e397f51b174f178b803670126388384c65 | [] | no_license | jhubar/PI | 5c19368dfaf5d095d08e5bdb7c7a6cfca9376b5e | 2b2a0d75520e1af5408d42ea3ee10a22b3989045 | refs/heads/master | 2023-03-25T18:13:03.353705 | 2021-03-23T10:40:35 | 2021-03-23T10:40:35 | 297,372,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,182 | py |
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from SEIR import SEIR
import tools
if __name__ == "__main__":
# Create a model
model = SEIR()
# Import the dataset
model.import_dataset()
# Find an optimal value for initial state
#init_I = tools.initial_infected_estima... | [
"francoislievens@outlook.com"
] | francoislievens@outlook.com |
768579ce9651f223ea9ba98f96756513ebf95d7b | 606d2d0ceb97eaa0cd442d125613ebd220621acd | /src/pythonDemo/dev_debug.py | af1fce439c4f921e2ce3e661f80c71d70db14dd4 | [] | no_license | cisin-python/Django-Demo | fba10a57a2ea6073e4308961312e2f94d780b492 | fc995cfdad85da502b7f19444dc931c983193cd5 | refs/heads/master | 2021-01-22T11:55:02.299136 | 2015-01-16T14:46:53 | 2015-01-16T14:46:53 | 24,186,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | # # Settings for development with Debug Toolbar enabled
# #
# # To use this settings run the manage.py commands as the following:
# #
# # python manage.py COMMAND --settings=medtrics.settings.dev_debug
# #
# INSTALLED_APPS += (
# 'debug_toolbar',
# )
# MIDDLEWARE_CLASSES += (
# 'debug_toolbar.middlewar... | [
"cis@machin101"
] | cis@machin101 |
397ff88a6fe7cdbd3ea47529ac39003f0d88056e | 2b76a1307bd35d3e7de180cca4977dce382d7ddc | /python/Recrusive/S93.py | fbd070deb2166a2807469cf11f3e772daa0dddaf | [] | no_license | liqiushui/leetcode | c2966135a5bb98f1d651db536144c4ed77ec63fe | be47d32fb11b9dcb8ab7368a4294461b5819c7b1 | refs/heads/master | 2020-04-09T07:10:59.202835 | 2018-12-27T11:27:33 | 2018-12-27T11:27:33 | 160,144,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | class Solution:
def restoreIpAddresses(self, s):
"""
:type s: str
:rtype: List[str]
"""
if not s:
return []
ret = []
self.helper(s, 0, [], ret)
return ret
def helper(self, s, pos, temp, result):
limit = 4
if len(temp) =... | [
"xidianli@qq.com"
] | xidianli@qq.com |
2472db8ca01f6ac1c6f038ef9d9fc2e3edd5edf4 | 2374d6d17259f481fe0412ec4176b0811eba075f | /scripts_indentation/add_InterpolatedImage.py | 0bd658adb92048fe560af26b10c4f5f846640611 | [
"MIT"
] | permissive | chakra34/Optimizer | 29cecca3898ac42e47c435442870d1905fe0a47a | 6302e0f4357cab08e75c53db3b5527660607a7e1 | refs/heads/master | 2020-04-21T13:39:24.209230 | 2019-09-27T23:47:58 | 2019-09-27T23:47:58 | 169,606,357 | 2 | 2 | MIT | 2019-09-27T23:47:59 | 2019-02-07T16:50:15 | Python | UTF-8 | Python | false | false | 5,064 | py | #!/usr/bin/env python
import numpy as np
import scipy
import damask
import os,sys,string
from subprocess import call
from optparse import OptionParser
from scipy.interpolate import griddata
scriptID = string.replace('$Id: add_InterpolatedImage.py 247 2016-03-22 21:45:34Z chakra34 $','\n','\\n')
scriptName = os.p... | [
"chakra34@egr.msu.edu"
] | chakra34@egr.msu.edu |
c4b26ee0fa67ac238d809d3ad4f4c64c3dbd38fd | 836bbf6ad60fc6bb53b4306be0148b24dac9afe7 | /hw2/train_pg_f18.py | a27cd6f876ae1bad4afe0c66aa59467882e0becf | [
"MIT"
] | permissive | jperl/rl-homework | 4517349aa58861dbadf8f31c6dd5fe37f5947537 | 6a5be151994cb8043686c563b777719f9338f314 | refs/heads/master | 2020-03-27T13:06:30.507241 | 2018-10-22T20:48:47 | 2018-10-22T20:49:24 | 146,590,585 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,645 | py | """
Original code from John Schulman for CS294 Deep Reinforcement Learning Spring 2017
Adapted for CS294-112 Fall 2017 by Abhishek Gupta and Joshua Achiam
Adapted for CS294-112 Fall 2018 by Michael Chang and Soroush Nasiriany
"""
import numpy as np
import tensorflow as tf
import gym
import logz
import os
import time
im... | [
"perl.jonathan@gmail.com"
] | perl.jonathan@gmail.com |
cb1255443d464075c4a0a21807a42108d40cac93 | bc9b637285f1302386f9812eb41e71759148a442 | /AnalysisScripts/py/cv67.py | 5dde412e14bef9bd5bca3e761dc37b5bb6ba5bf1 | [] | no_license | regkwee/LHC-Collimation | 744aa431c60345aedfc0bc001bbe106a3104d3e2 | 22e87527c0acd724ee7e99f12d681af60c5ebfaa | refs/heads/master | 2021-10-02T20:15:14.767031 | 2018-11-30T12:37:02 | 2018-11-30T12:37:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,470 | py | #!/usr/bin/python
#
# reweights by pressure profile
# Sept 16
#
# R Kwee, 2016
#
# ---------------------------------------------------------------------------------
import ROOT, sys, glob, os, math, helpers
from ROOT import *
# get function to read the data if 14 columns are present
from cv32 import getdata14c
from h... | [
"Regina.Kwee@cern.ch"
] | Regina.Kwee@cern.ch |
2843a54ecf8ef912bbe42609b777510055fc7424 | 07065baf1ba995691ffbd19afd90eacbcb81f84c | /Liquid/images/generate_HTML_image_links.py | 52a8793332b05cfa3cbdc9e9a694d6b8dcbb4d70 | [] | no_license | theloracle/laurel-code-foo | 71e2a1d25728e3be0ad681f85706968b0cd0bac4 | 9857bff6ef8b40149d2f9d60f56d248bf4eb06da | refs/heads/master | 2021-01-19T14:07:47.629223 | 2012-04-30T09:17:50 | 2012-04-30T09:17:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | while 1:
color = raw_input("Color?: ")
end = int(raw_input("# of imgs?: "))
for x in range(1, end +1):
print '<li>Bot'+str(x)+'</li>'
print '<a href="images/'+color+str(x)+'.jpg" rel="lightbox['+color+']"title="Bot'+str(x)+'">'
print '<img src="images/'+color+str(x)+'.jpg" re... | [
"eibachla@gmail.com"
] | eibachla@gmail.com |
a70f7d20f7d65f7a4532b40577899f7f0a8771dc | d23d974fefa2ff0058b849a6584a0dc24458fd00 | /src/gym-snake/gym_snake/core/new_world.py | 9a797522e85a16c1df53b9afbd1bc41d9a03bae8 | [
"MIT"
] | permissive | jdubkim/Self-play-on-Multi-Snakes-Environment | fa672e5b5e2e88487d9426fffaf1a5a33c464867 | 8e72c66110a007d6bf0ca2ff68fc0a845f3b3a42 | refs/heads/master | 2020-03-22T02:45:22.167284 | 2020-01-12T13:55:54 | 2020-01-12T13:55:54 | 139,391,281 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,180 | py | import random
from copy import copy
import numpy as np
class Snake:
def __init__(self, snake_id, start_pos, direction, start_length=3):
self.snake_id = snake_id
self.start_pos = start_pos
self.start_length = start_length
self.snake_length = start_length
self.alive = True
... | [
"jeewoo1998@gmail.com"
] | jeewoo1998@gmail.com |
3cf83f944276bc5b5775acc12ffc5cb5e1939a77 | a9e47206ab3434212595f11c5ddb5250876093e1 | /mapping_server/urls.py | c10573b1eec31defc4129dc78d9a7f6659ea63ae | [] | no_license | aweb-pj/mapping-server2 | 5a760fcf5928bad1187500dffd250cd031b8724c | b400ad135debc13087026b9008a77163701b5c39 | refs/heads/master | 2020-03-29T00:59:41.096620 | 2017-06-22T17:09:25 | 2017-06-22T17:09:25 | 94,637,799 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | """mapping_server 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')
C... | [
"913575864@qq.com"
] | 913575864@qq.com |
bc181da1b46971b964437590de20297cc7848837 | e21e962ed98a5a8c6c1fc0d7d6885e33c5a77469 | /Voting_ganache/node_modules/ganache-cli/node_modules/ganache-core/node_modules/web3-providers-ws/node_modules/websocket/build/config.gypi | 468391b5890aa15c28091ed3af9e80421d6421eb | [
"Apache-2.0",
"MIT"
] | permissive | perrywang123/FinalProject | 4624d2ea26aa5bc038046d3cea5b096560ca75bf | f7934bcc48dda509b7d9e750d0626b43a29dfc30 | refs/heads/master | 2020-04-14T04:46:55.598766 | 2018-12-31T07:02:31 | 2018-12-31T07:02:31 | 163,645,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,966 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"debug_http2"... | [
"1731611872@qq.com"
] | 1731611872@qq.com |
60316d664a4795400d93a8c1d5c0da68d691e61a | 9483919096697dd198aa76c63e4292515874b247 | /Basic5_Nested_Loops/1380_10826077(AC).py | af0751d5def5b6d425e4dfc2c897dc76c7eaa42b | [] | no_license | ankiwoong/Code_UP | 0811c7b9a2ce4c8e5a8dc2b33dfffcdccfca31aa | 09cade40d9f42a915294adf39c9a2b9d3e4cae80 | refs/heads/master | 2020-12-01T15:49:16.615354 | 2020-04-10T01:49:08 | 2020-04-10T01:49:08 | 230,687,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | import io, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf8')
k = int(input())
for i in range(1, 7):
for j in range(1, 7):
if i +j == k:
print(i, j)
| [
"ankiwoong@gmail.com"
] | ankiwoong@gmail.com |
5a3006c51a82a94c798fc606ce974ff6a94620fc | 5fa9efa61eb1fb53c3507bcb1fff3522bb40837f | /app.py | 4b45076ddc11c4ac7061a84bfef1de4f37c333d3 | [] | no_license | abuarbaz/Kubernetes | 964cd93aab53fd96dee46395f0328b77022056f4 | 08e6763abd103a71c0146f7f97d0ddff2853fa54 | refs/heads/main | 2023-03-08T09:24:11.272969 | 2021-02-19T15:27:22 | 2021-02-19T15:27:22 | 340,408,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,752 | py | #!/usr/bin/env python3
from bottle import run, get, post, response
from prometheus_client import Counter, generate_latest, CollectorRegistry
import os
import redis
rcon = redis.StrictRedis(
host=os.getenv("REDIS_HOST", default="localhost"),
port=os.getenv("REDIS_PORT", default=6379),
password=os.getenv("... | [
"arbazmohammed17@gmail.com"
] | arbazmohammed17@gmail.com |
59a96f4dc9ceea0df78b9b607a5ffb2d71df4e00 | 02e092a20950f1108e526950435708f653628bd5 | /flaskr/apps/auth/view_auth.py | 608e900ad05422ce07fa0ee8127f9345115bb4e7 | [] | no_license | chin-saya/flask-sample | 7031beacf5cd21f366db17dd01d6a279e0d5ec15 | f6ba3db731cd9598f8a8df5487f91a37ba81e2a5 | refs/heads/master | 2020-03-25T13:49:02.518296 | 2019-01-02T03:39:15 | 2019-01-02T03:39:15 | 143,844,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,368 | py | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
from . import auth
from exts import db
from models import User
from flask import flash, redirect, render_template, request, url_for
from flask_login import login_user, logout_user
from utils.common import is_safe_url
from werkzeug.exceptions import abort
@auth.route('/reg... | [
"chenhaiwen@cecgw.cn"
] | chenhaiwen@cecgw.cn |
b1f3e07beb6a1adce6360ecb5ecd3b15ccd21135 | ab19c316ba8995aebf5c0d6c861a65e3853cef34 | /assignment4/ex38.py | 12ae60c0ab1f6860bb7492b5dc14e4ffcf053ceb | [] | no_license | joshuascodes/afs505_u1 | 0466721fe7300e2b48cc638900296a5be4bdc8c8 | 2a2dd2ac6c3471ff49df501cfa5c9b87b6b880f4 | refs/heads/master | 2020-12-15T17:20:33.017506 | 2020-07-07T21:02:35 | 2020-07-07T21:02:35 | 234,392,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | ten_things = "apples oranges crows telephone light sugar"
print("wait there are not 10 things in that list, lets fix that")
stuff = ten_things.split(' ')
more_stuff = ["day", "night", "song", "frisbee", "corn", "banana", "girl", "boy"]
while len(stuff) != 10:
next_one = more_stuff.pop()
print("add... | [
"noreply@github.com"
] | joshuascodes.noreply@github.com |
0ed4160351434c43539ae0ed376abcfc88ea6a88 | f0dcf51ca12abf81e92f70d4bb61267ee1934a2c | /herramienta/migrations/0001_initial.py | 1a39426c9b42dc1e976a225a303b2a83287696d9 | [] | no_license | leo452/Final_ConectaTE_group4 | de779c2d39854966b164875ded26fcd49ffdc3db | 92f520d7a660e10ed5bc89732cc29663efd0e011 | refs/heads/master | 2020-03-18T13:19:16.570147 | 2018-05-21T03:28:52 | 2018-05-21T03:28:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,462 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-03-25 14:40
from __future__ import unicode_literals
import cuser.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_model_changes.changes
class Migration(migrations.Migration):
... | [
"tj.marrugo10@uniandes.edu.co"
] | tj.marrugo10@uniandes.edu.co |
a198846c54320a116d40ab861e75c935e1bb7b70 | d6b7981e76a6559c256ad48ffd74b6109c87fedd | /1/1.2/1.2.b.py | 08d077ceafaec5beae899a579a946265efbdefbf | [] | no_license | outtrip-kpsv/brainskills | ea5e88d8f231fd441835a8ebcf4e1875d15d5e31 | b329cc2a1012d8285cda1e0d7fc952f2e95db08e | refs/heads/master | 2022-12-31T19:31:36.434763 | 2020-10-15T19:52:39 | 2020-10-15T19:52:39 | 285,710,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | def sign(x):
if x > 0:
return 1
elif x < 0:
return -1
else:
return 0
print(sign(int(input()))) | [
"kpsv.igor@gmail.com"
] | kpsv.igor@gmail.com |
1add8c75002fbce3f859b38780f7581b5e520bd9 | 5641ea4f21cbb541286d26571b53c9242dbc805c | /model/data_providers.py | cc05a70ae5cbc389876ea6213a726c3fd4596cab | [] | no_license | Masnerin/Testing_the_site_LiteCart | 75f466fdb291aa0cd4fe616b6aa287d299d87a86 | 4f2fd1901a7f55fb879430395b31a2d7853d7beb | refs/heads/master | 2020-03-25T03:11:22.960244 | 2018-08-11T12:51:52 | 2018-08-11T12:51:52 | 143,327,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,308 | py | from model.input_data import Customer, Admin, Product
import os
import time
import random
# Функция вывода текущего времени в милисекундах:
def current_time_millis():
return int(round(time.time() * 1000))
# Функция создания уникального e-mail:
def gen_email():
array = [chr(i) for i in range(65, 91)]
ran... | [
"32953372+Masnerin@users.noreply.github.com"
] | 32953372+Masnerin@users.noreply.github.com |
2b76efc562c1c3e9c2c2b81b174ef091e6cb4437 | 5604ec101eb28549d7e3fa9cdd2084722e3b1432 | /artifacts/spark_submit_templates/spark_submit_gametrics.py | 28860f7ee73ba48ec44eaba287aa1672b8295c8f | [] | no_license | felipemsantos/datalake-toolkit | 1f828e48b3a821e9ee1261d3a28968b449ae3f93 | 1e80619a0a37ce28dbe6bb7b380f6ba9003f7201 | refs/heads/master | 2023-01-23T14:48:16.643794 | 2020-12-09T13:00:42 | 2020-12-09T13:00:42 | 283,282,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,378 | py | from __future__ import print_function
import sys
from datetime import datetime
from pyspark import SparkContext
from pyspark.sql import SparkSession
from pyspark.sql.functions import udf
from pyspark.sql.types import *
dt = str(sys.argv[1])
s3_object_name_stage = str(sys.argv[2])
hive_database = str(sys.argv[3])
hiv... | [
"robot@example.com"
] | robot@example.com |
278d6930bd2560902d82ef0b55253720908ea2d9 | b2c480f843501b16aa04d0a13b3a866e8cf089d8 | /Bojung/2강/2_13 drink shop.py | 44bd17ac566730aa790076b7c6c983ee5f907505 | [] | no_license | Forif-PythonClass/Assignments | 31dec7ccf2314ad8474c364b43ceabe8127db462 | 2dd7750abc40109e9fb04d1e136d0a87848ed887 | refs/heads/master | 2021-01-19T05:04:06.046321 | 2017-06-01T10:48:24 | 2017-06-01T10:48:24 | 87,412,590 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | money = 0
while money < 10000 :
print '--OPEN--'
print '''What do you want?
We have 1. Coke, 2. Juice, 3. Energy Drink.'''
beverage = int(raw_input())
if beverage == 1 :
money = money + 1500
print 'Here is your coke.'
elif beverage == 2 :
money = money + 1200
... | [
"bjkim0125@gmail.com"
] | bjkim0125@gmail.com |
9c474aa08559590c685310323a8210114d2ef19a | 4e478a4831a3a71829108ab7f6c71f71601fccf1 | /intranet/views.py | eb6ff8763a6c32d9761e59a89869449f3f9b702a | [] | no_license | marcoabonce/Intranet | c7e1becacc6dbfb95e44d37a06f2a71ebefa7e87 | b653e89d61fb0ac56601e7d6e486081aac79219c | refs/heads/master | 2023-01-02T06:12:40.734862 | 2020-10-29T00:11:53 | 2020-10-29T00:11:53 | 307,795,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,998 | py | from django.shortcuts import render
from compression_middleware.decorators import compress_page
from django.shortcuts import redirect
from django.contrib.auth import authenticate
from django.contrib.auth import login
from django.contrib.auth import logout
from django.contrib import messages
from users.models import Use... | [
"marcoabonce.mt@gmail.com"
] | marcoabonce.mt@gmail.com |
062b57bc9ca28f0e4174396d81af62224185dada | 516fe2c01014d4ce665949b7fb4431b172cc4019 | /accounts/migrations/0003_auto_20200720_1244.py | d02bd3ad9d44cff4a6eb9fa36c1647478ce58854 | [] | no_license | Mahbub20/Django-Customer-Management-System | 18b34c5e2abded89054bd9d19f0fa677cd29d2b6 | a263df6755f6978d1d2de5e65633f27a66f0b6ea | refs/heads/master | 2022-11-24T14:23:34.868403 | 2020-07-31T15:44:44 | 2020-07-31T15:44:44 | 280,682,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,330 | py | # Generated by Django 3.0.7 on 2020-07-20 12:44
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_order_product'),
]
operations = [
migrations.CreateModel(
name='Tag',
... | [
"mmahbub569@gmail.com"
] | mmahbub569@gmail.com |
792a35d3bfcca875858834dba3e83a3c145fdc11 | af9268e1ead8cdb491868c14a2240d9e44fb3b56 | /last-minute-env/lib/python2.7/site-packages/django/templatetags/i18n.py | 650e9c63029694f08f8e2fd4e8d0bee61d7e98aa | [] | no_license | frosqh/Cousinade2017 | d5154c24c93ca8089eeba26b53c594e92cb6bd82 | c34d5707af02402bf2bb7405eddc91297da399ff | refs/heads/master | 2021-01-20T07:57:34.586476 | 2017-10-22T18:42:45 | 2017-10-22T18:42:45 | 90,074,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,909 | py | from __future__ import unicode_literals
import sys
from django.conf import settings
from django.template import Library, Node, TemplateSyntaxError, Variable
from django.template.base import TOKEN_TEXT, TOKEN_VAR, render_value_in_context
from django.template.defaulttags import token_kwargs
from django.utils im... | [
"frosqh@gmail.com"
] | frosqh@gmail.com |
c03039604d8be646f5dbfc7b8b383282b5703cda | 88d5a273893b9ae1707da5d93fe44153ffca2a27 | /화공전산(2-2)/chapter8.경계값 문제/ex8.8_비선형미방_유한차분법.py | a3131111c560b8929fe3cf45084efa7c74d733d9 | [] | no_license | exgs/hongikuniv_chemical-engineering | 018ce8bfaca5d44ce1d03d529ab19eac47e6c94c | 5e7165ec3b05710131ed558da87fc167d326d330 | refs/heads/master | 2023-07-16T14:20:27.718158 | 2021-08-31T22:12:44 | 2021-08-31T22:12:44 | 264,912,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | a, ya = 0, 1
b, yb = 1, 1.5
n = 20
eps1, eps2 = 1e-3, 1e-2
kmax = 100
h = 1/n
import numpy
tj = numpy.linspace(a, b + h/2, n + 1)
yk = numpy.linspace(ya, yb, n + 1)
print(tj)
print(yk)
from scipy.linalg import solve_banded
k = 0
while k < kmax:
fk, JU, JD, JL = [], [], [], []
# for j in range(0, n-1):
for j in ran... | [
"yunslee@student.42seoul.kr"
] | yunslee@student.42seoul.kr |
866309775c90ca2e82d7c0843595a409719723e4 | 0b69f21bcec30504338798c9294a02792e4aca44 | /draugr/opencv_utilities/windows/default.py | 22fee5b520fc2fadca66ef66d0c44ecf3e7dc844 | [
"Apache-2.0"
] | permissive | cnheider/draugr | 12e5fcb274f2a86ad51d0ddc2147bf2c99781916 | 94a402cab47a2bd6241608308371490079af4d53 | refs/heads/master | 2023-08-04T08:31:20.337823 | 2022-12-06T12:39:53 | 2022-12-06T12:39:53 | 156,557,610 | 4 | 1 | Apache-2.0 | 2022-12-06T20:13:14 | 2018-11-07T14:20:39 | Python | UTF-8 | Python | false | false | 508 | py | from enum import Enum
from typing import Iterable
from sorcery import assigned_names
__all__ = ["ExtensionEnum", "match_return_code"]
ESC_CHAR = chr(27)
def match_return_code(ret_val, chars: Iterable[str] = ("q", ESC_CHAR)) -> bool:
"""
:param ret_val:
:type ret_val:
:param chars:
:type chars:... | [
"christian.heider@alexandra.dk"
] | christian.heider@alexandra.dk |
70a67bb74721a09b03e08fbea79b3605ef133633 | d8b83901ea5ad88ef073504ca569314d9de2b4d0 | /Spiders/HuXiu/Spider.py | 9c7530bf8799b9ae0d45b4bca3d9b35b431eb355 | [] | no_license | lisx9/ForestExplorer | 19aef15d4240297b8f32e8936637317644b161cb | a75dbd09989629023307ad13d9b89daedd4cf32f | refs/heads/master | 2022-12-03T23:20:31.941514 | 2020-09-01T07:27:44 | 2020-09-01T07:27:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,831 | py | # -*- coding: utf-8 -*-
# Written by panzy
from apscheduler.schedulers.blocking import BlockingScheduler
from bs4 import BeautifulSoup
import requests
import re
import json
import os
import time
import logging
trapInfo = {}
hotKeyWordsPath = '/home/st01/ForestExplorer/hotKeyword.txt'
'''
用于实现虎嗅网的... | [
"pzy000301@gmail.com"
] | pzy000301@gmail.com |
eeec05a32d1e6106ac6cde195aedc739a23f1ad4 | fba6c9f65e8bca522f1c5f7b0315a7a02e343f69 | /src/metadata.py | 8710ca1d6e1efe851d7ed1e62d8c62deda4b3a49 | [] | no_license | fzh4519/002_mind | a41cd258dce8fbfbe67ae05a2a7c70769456813f | b341fc3a61dd1ccb35f62ddb94e5db45b81852c6 | refs/heads/master | 2023-06-17T13:29:58.768365 | 2021-07-13T00:53:47 | 2021-07-13T00:53:47 | 384,894,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,398 | py | import numpy as np
from os import listdir
import random
tracker_skeID = {'test1': 'skele1.p', 'test2': 'skele2.p', 'test6': 'skele2.p', 'test7': 'skele1.p',
'test_9434_1': 'skele2.p', 'test_9434_3': 'skele2.p', 'test_9434_18': 'skele1.p',
'test_94342_0': 'skele2.p', 'test_94342_1': 's... | [
"60700050+fengzhihong-377@users.noreply.github.com"
] | 60700050+fengzhihong-377@users.noreply.github.com |
c7c8e0aef6b0f1ed3c228861c1309297ef5a51df | 0875563641c4ab6105da7a9850ce5102b791045f | /setup.py | 402e14f10b992d22c5a0731808c0f8024ef3cbc1 | [
"MIT"
] | permissive | ParaguayEduca/etoys.activity | 17a7569fd6766afdfbd4a20341883924ce4119ff | 4755e31ad440ca7247a02a45b4481d84e23af524 | refs/heads/master | 2022-09-17T10:57:07.707315 | 2020-06-02T00:59:32 | 2020-06-02T00:59:32 | 268,666,765 | 0 | 1 | null | 2020-06-02T00:59:33 | 2020-06-02T00:53:52 | null | UTF-8 | Python | false | false | 87 | py | #!/usr/bin/env python
from sugar3.activity import bundlebuilder
bundlebuilder.start() | [
"fierrofenix@gmail.com"
] | fierrofenix@gmail.com |
7fe96dd13f0dbe0b06778f993c0886ee04348852 | 93ad452b4bfb55c10aed246f3f37342deaed1274 | /scripts/generator_utils.py | 2f9926e6ef8d115bed92d35bd68c483a6bacd940 | [] | no_license | open-craft/microsite-generator | 2a18dc078e941d6cbe4dc0e30e3ad4656a5b68fd | e444a913bb883d557249c8a9874b302349777529 | refs/heads/main | 2023-06-29T10:29:57.605699 | 2021-07-26T18:49:08 | 2021-07-26T18:49:08 | 373,735,873 | 4 | 0 | null | 2021-07-26T18:49:09 | 2021-06-04T05:56:58 | Python | UTF-8 | Python | false | false | 7,889 | py | import yaml
import os
from argparse import ArgumentParser
from const import GENERATED_SHARED_CONFIG_FILE
def common_args() -> ArgumentParser:
"""
Common argument parser for each script
"""
parser = ArgumentParser()
parser.add_argument("ConfigFilePath", metavar='config_file_path', type=str, help="C... | [
"noreply@github.com"
] | open-craft.noreply@github.com |
9641b775ef1b783924590a3d1b9b8ce16399e971 | 124b68cc525fcc562e0d274bc3b5f75062e134f7 | /IoT8_differential_comparer/tests/test_comparer.py | 2d1d4408190cb752301e7e34b11dd84b0f852015 | [] | no_license | akane34/iot_api_adaptation_chain | 9c88b9666d47d586123e7d6e458616d71104882e | 50a0187c59d984cea7cf4e58dde9dabe29f194bf | refs/heads/master | 2022-12-18T13:32:28.939109 | 2018-09-17T02:58:59 | 2018-09-17T02:58:59 | 148,314,118 | 0 | 0 | null | 2022-12-08T01:01:10 | 2018-09-11T12:31:54 | Python | UTF-8 | Python | false | false | 2,928 | py | from unittest import TestCase
from differential_comparer.comparer import processApis
class ComparerTestCase(TestCase):
def setUp(self):
self.API_ORIGINAL = \
'/home/farkaz00/Documents/MISO/IoT_Challenge8/03.Case_Study/03.SHAS_REST_API.json'
self.API_TYPE_CHANGE = \
'/home/... | [
"jarvein@hotmail.com"
] | jarvein@hotmail.com |
be1b35d1d52e9d9bfc1110abcf20f8718435742e | 7ecbe46fc65ad557da224d5b34fadf03e0117bcf | /Inception_v3/bottleneckcal3.py | d8265e16be2e2026d965dd01c965b761f6de144c | [] | no_license | LuoJiaji/flower-photo-classification | 78ada93b43b4d99904cfee87aac8c3b328e61e11 | 2852cd3fa26ba7747b31362a9d41ef7ea65805e9 | refs/heads/master | 2020-04-07T07:50:14.951807 | 2018-11-19T09:14:51 | 2018-11-19T09:14:51 | 158,190,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,908 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 15 16:50:00 2018
@author: Bllue
"""
import os
import random
import numpy as np
import tensorflow as tf
datapath = 'data/tmp/bottleneck/'
n_calss = len(os.listdir(datapath))
batchsize = 256
def get_datalist(datapath,train_percentage=80,test_percentage =10):
train_... | [
"lt920@126.com"
] | lt920@126.com |
224cedecd9373beedd0e96c6f7abe0b67b5010e3 | c46668ed2d366905978581bd19ba60cb6356f5f5 | /misc/test.py | 5c43001b183cb72a2a548780d887cec5a38b89fa | [] | no_license | ndrwchn/bitshovel | db5992f61b22e7bf1d1d0ed6b112bc396f93f891 | 49a8f21ae4fb0dca0a82b81beb1ae913b1d39cd8 | refs/heads/master | 2020-04-14T10:56:51.524738 | 2019-01-01T23:43:08 | 2019-01-01T23:43:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | import os
import sys
import base64
import json
import pprint
import requests
import redis
from sseclient import SSEClient
def with_requests(url):
"""Get a streaming response for the given event feed using requests."""
return requests.get(url, stream=True)
r = redis.StrictRedis(host="localhost", port=6379, pa... | [
"dfoderick@gmail.com"
] | dfoderick@gmail.com |
42ec93628543ed4b5d99e9565a39876bd8b17f99 | 5ee2155447132c91c70032b8bc980d4e41a2f762 | /main_himawari/scripts/typhoon_case.py | 198efa909323e056cf85886cba4c2de28231fd4d | [] | no_license | redmundnacario/himawari-8-legacy | 0864e047a9b822254bb976f198d6c9741e750380 | b47786d6af8ad6ad5755e75c66644b0ba405e1cf | refs/heads/master | 2020-03-18T02:34:52.326945 | 2018-05-21T00:20:32 | 2018-05-21T00:20:32 | 134,197,777 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,239 | py | # -*- coding: utf-8 -*-
"""
1. Open radar data
> pre-process
> grid
Created on Tue Dec 8 22:44:01 2015
@author: red
"""
# importing functions from different folder
import sys
sys.path.insert(0, '/media/red/SAMSUNG/main/main_radar')
sys.path.insert(0, '/media/red/SAMSUNG/main/main_himawari')
from radar_preproce... | [
"rednacky@gmail.com"
] | rednacky@gmail.com |
1e3200edf2bcd028b8c04e5c7b5af0af62fd036e | be364bd76ef1c25cb9f13b2e9b83c1dd802148e5 | /misc/ServerGui.py | 8bece371b9646a9404661e2f6bc2d9bfd375d123 | [] | no_license | minhkhoi1026/remote-monitor | 93a73e4f0e2a500ff7ab9f102b79ed259fc8de33 | 0e965cdc4a23c1d02f7052bc8da473b7f57ffa04 | refs/heads/master | 2023-08-26T09:00:30.042696 | 2021-11-07T17:33:02 | 2021-11-07T17:33:02 | 418,033,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Server.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui... | [
"minhkhoi1026@gmail.com"
] | minhkhoi1026@gmail.com |
a62411f8d8935793da3181d5a3dd0120876a35ea | 5f904cb4964655537aa83e5aa9658d5cbd43d221 | /AutosClasificados/urls.py | 7091107fe281fb9ca8f63307ffbbed4639bfaf8b | [
"MIT"
] | permissive | joaquinpunales1992/Python-Django-WatsonVisualRecognition-WatsonNLU | 03471db80d7351d34816ffb782585d28847acf52 | 2997359150236a7d897a3f9201f8e9404f3d7f02 | refs/heads/master | 2021-05-09T22:05:21.965903 | 2018-02-17T06:09:08 | 2018-02-17T06:09:08 | 118,743,295 | 0 | 0 | MIT | 2018-02-17T07:16:16 | 2018-01-24T09:32:06 | Python | UTF-8 | Python | false | false | 455 | py | from django.conf.urls import url
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
from .core import views
urlpatterns = [
url(r'^$', views.home, name='home'),
url(r'^AutosClasificados/form/$', views.publicarArticulo, name='publicarArticulo'),
ur... | [
"joaquinpunales@gmail.com"
] | joaquinpunales@gmail.com |
144a57e2abf73235b54f924ded7230ea6f2f9d53 | 513d230f48d6563435fee13fa222bd4ddbf69036 | /architectures/GroupNetworkInNetwork.py | 3d594846e623f8e00902bb9bb0c724bb82142522 | [
"MIT"
] | permissive | AliaksandrSiarohin/FeatureLearningRotNet | feb4ccc80843f1909ad267c9a2825ac8431844c9 | 5ca057389984d3eb21aa032baef6cc10a6d61bf6 | refs/heads/master | 2020-08-21T19:59:04.780682 | 2019-10-21T15:38:10 | 2019-10-21T15:38:10 | 216,235,320 | 0 | 1 | MIT | 2019-10-19T16:21:19 | 2019-10-19T16:21:19 | null | UTF-8 | Python | false | false | 7,143 | py | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from groupy.gconv.pytorch_gconv import P4ConvP4, P4ConvZ2
class BasicBlock(nn.Module):
def __init__(self, in_planes, out_planes, kernel_size, first=False):
super(BasicBlock, self).__init__()
padding = (kernel_size - ... | [
"you@example.com"
] | you@example.com |
dc83274eed03fba89086dbecd9f871c6037a6f44 | b71afb6809bb8e0c4c9993840e88505d50123938 | /src/Team.py | 237efdb8b449a1086e3bc8af21a9406832ce29ab | [] | no_license | rafalsiniewicz/deep_learning_project | ec59e7fe151fc11f17f44619a7e8c7ce1e8e6562 | eb13046c3b44bddb2de6437fd59d09f141c2ce50 | refs/heads/master | 2021-04-02T13:06:39.067835 | 2020-05-22T16:41:05 | 2020-05-22T16:41:05 | 248,278,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | from Player import *
from Game import *
class Team:
def __init__(self, games=[], players=[], stats=pd.DataFrame()):
super().__init__(stats)
self.games = games #Game
self.players = players #Player
def get_data(self):
pass
| [
"rafalsiniewicz@gmail.com"
] | rafalsiniewicz@gmail.com |
2a796a36b90bf571d8b9b1bf7abeabd2232aa657 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_07_01/aio/operations/_route_tables_operations.py | 1c9a94c29cdc2efe60006d96c3e30c66ba36f568 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 29,608 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
89e1333380f672897a9ec01d8b3306d735939835 | 84c4778bde1fc399e834883afe62ffc36f2d2cd6 | /Egypt.py | 8a0d1077498e9eae3fdf4f52a111051e6c9d7abb | [] | no_license | mebsahle/ICPC_Solved- | edbfde745084ccc028b7cb446f3e55c941ca474f | 4d805b075a522b51944127845e91feb25b315758 | refs/heads/master | 2023-02-11T05:43:59.074750 | 2021-01-10T04:31:08 | 2021-01-10T04:31:08 | 217,336,000 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | while True:
a,b,c = [int(i) for i in input().split()]
if a == 0 and b == 0 and c == 0:
break
else:
if a**2+b**2==c**2 or a**2+c**2==b**2 or a**2==b**2+c**2:
print("right")
else:
print("wrong")
| [
"mebatsionsahle@gmail.com"
] | mebatsionsahle@gmail.com |
1ae1c64e80e8fbb9a8c92151c4703c8ba5a8e8b2 | 2de33ba731066a63352080dd19da1e4582bb00c4 | /collective.cover/src/collective/cover/tests/test_collection_tile.py | b045e92d615b8556d5004a7d3f0a99dd65042b89 | [] | no_license | adam139/plonesrc | 58f48e7cdfc8fbed7398011c40649f095df10066 | cbf20045d31d13cf09d0a0b2a4fb78b96c464d20 | refs/heads/master | 2021-01-10T21:36:44.014240 | 2014-09-09T04:28:04 | 2014-09-09T04:28:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,894 | py | # -*- coding: utf-8 -*-
from collective.cover.testing import INTEGRATION_TESTING
from collective.cover.tiles.base import IPersistentCoverTile
from collective.cover.tiles.collection import CollectionTile
from plone.app.testing import login
from plone.app.testing import setRoles
from plone.app.testing import TEST_USER_I... | [
"plone@localhost.localdomain"
] | plone@localhost.localdomain |
d24c9809aadb1aa5dbb5b1da5b40a993ec9cfc61 | 817cad93c3ef277e2651e5ad2a5888fb8b903d32 | /DA2Lite/compression/filter_decomposition/methods/vmbf.py | 8c3f1c871339b2475c1cd89d08a6285b2facf44a | [
"MIT",
"Python-2.0"
] | permissive | TrendingTechnology/DA2Lite | 6a601703ff6958b089ac84e4f8b392ebefa9573f | b95bb47bd13b4b0ddeefe5e0d93122f384f2774d | refs/heads/main | 2023-04-17T09:34:11.168433 | 2021-05-04T03:47:43 | 2021-05-04T03:47:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,164 | py | from __future__ import division
import numpy as np
from scipy.sparse.linalg import svds
from scipy.optimize import minimize_scalar
def VBMF(Y, cacb, sigma2=None, H=None):
"""Implementation of the analytical solution to Variational Bayes Matrix Factorization.
This function can be used to calculate the analytic... | [
"kangsinhan@nate.com"
] | kangsinhan@nate.com |
772b99702c24090a612c5cb84aebeeeadbf61b34 | cf7883026dd1520ef5b01d377c50d38885fa3d4c | /JUNECO/SNACKUP.py | c27325d7c064ea46d9d2349d648414bd70114b71 | [] | no_license | krishnadey30/Competitive_Coding | 7e885bb9bc2ee3e06d7a0b722c48dde5131ad371 | 7e4a4ce145f4975ffa51ef0727b9d78f132d03a4 | refs/heads/master | 2020-03-08T03:13:43.429082 | 2018-04-04T18:44:54 | 2018-04-04T18:44:54 | 127,884,428 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | test=int(input())
for t in range(0,test):
n=int(input())
l=[]
for i in range(1,n):
l.append((i,i+1))
l.append((n,1))
print(n)
for i in range(0,n):
print(n)
for j in range(0,n):
print(j+1,end=" ")
for x in l[j]:
print(x,end=" ")
print()
l.append(l[0])
l.remove(l[0]) | [
"krishnakumar.d16@iiits.in"
] | krishnakumar.d16@iiits.in |
da5d1b860142f323050bc7b2cb8a083b79ef2e94 | 9887b201a356d9f2d56bd95e4fb59533b7fc8529 | /actions/procesamiento/factor_strategies.py | ab439ea23e01c8df6c40bdada883a341612e861b | [] | no_license | matiasguerrero/ProcessActionBot | ea6ae02b7aadaf561d33d328ea7c37a9df871e8b | a0261b408d57d21c742266e1c15fa99ca6c27f28 | refs/heads/master | 2023-06-03T05:50:42.393538 | 2021-06-25T21:16:29 | 2021-06-25T21:16:29 | 371,838,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,052 | py | import abc
import datetime
from typing import Dict, Any
from actions.procesamiento.tarea import Tarea
from actions.procesamiento.fase import Fase
from actions.event_handling import EventPublisher
class CalculationStrategy(metaclass=abc.ABCMeta):
"""Interfaz que define el comportamiento basico requerido por una es... | [
"maguerrero@alumnos.exa.unicen.edu.ar"
] | maguerrero@alumnos.exa.unicen.edu.ar |
6b73163a5f9e5940fdf3a55ac661f2276cc2bfe2 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/e521d476743c42ac9b3d37225576e9b9.py | 0573a84aba567a7d294818af2b4f8c2a561bdbc8 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 609 | py | # -*- coding: utf-8 -*-
'''
Author: Postprandial
Purpose: Version2 of the Bob file:
Bob now answers all questions with 'Sure' and all shouting (caps) with 'Whoa, chill out!'
lowercase questions or questions ending in whitespace are also answered with 'sure'.
Bob also still looks
All statements (upper & lowercase) are... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
10cd3ec2bf6aed6db6fa2683eebb85e68ff3df10 | 7b7bfbfebd627a3ccfdd52bb7164fa4f94cda7fc | /optic_store/patches/v0_6/set_spec_parts_cl.py | da352328e9d34fba734fd5b1b615a11d138a1001 | [
"MIT"
] | permissive | f-9t9it/optic_store | d117b7ef7c4107ec15d8194fc57d66a18aff5945 | 4682ae99cdb2cbfb1ff99196398d7379b4b6c8f1 | refs/heads/master | 2022-07-01T10:29:54.783550 | 2022-06-21T14:34:40 | 2022-06-21T14:34:40 | 171,165,708 | 23 | 43 | NOASSERTION | 2022-06-21T14:21:16 | 2019-02-17T19:58:33 | Python | UTF-8 | Python | false | false | 1,615 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, 9T9IT and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from optic_store.doc_events.sales_order import get_parts
from optic_store.patches.v0_6.set_spec_parts import _get_docs
def execute():
setti... | [
"sun@libermatic.com"
] | sun@libermatic.com |
de7d37f5795ee1cb6a9597629efc6cf0a5d219a9 | 587581b377a823a9bbb3c75e88fd31c7cf05fb01 | /assignment2/ensemble.py | 9d4c8612dec8ed4c8288c860491d546966b74da9 | [] | no_license | Miopas/BioNLP | 48b6a512ba9eb53888c9f7c5e060992dc5c99b9a | bf1c7c1d824f381b001d71c158cc11eb8ccf1061 | refs/heads/master | 2022-12-28T06:09:17.462986 | 2020-10-12T03:54:39 | 2020-10-12T03:54:39 | 295,817,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,604 | py | from sklearn import svm
from sklearn.model_selection import StratifiedKFold
from feature_generator import FeatureGenerator, Record
from sklearn.model_selection import KFold
import argparse
from cls_utils import *
from sklearn.svm import LinearSVC
from sklearn.naive_bayes import GaussianNB
from sklearn.ensemble import ... | [
"gyt_guoyuting@126.com"
] | gyt_guoyuting@126.com |
4672b88873af075d8bf74a280c3e3548c05c72f5 | 3b41d40a0285f3f29ff52f673a37ba6e368eb490 | /OneArticle/settings.py | 72d9351e9a96b370d405d2494f603b6b903d5d92 | [] | no_license | X-Wei/OneArticleCrawler | 020ce1adb7c8a47b50183c5524a3b06c28b92c48 | 3e69bfdb22d45f07f1543a83bf37864a98c8a7ba | refs/heads/master | 2016-09-15T20:22:32.797774 | 2016-03-29T07:32:38 | 2016-03-29T07:32:38 | 34,137,487 | 0 | 1 | null | 2016-03-29T07:32:39 | 2015-04-17T20:03:49 | Python | UTF-8 | Python | false | false | 503 | py | # -*- coding: utf-8 -*-
# Scrapy settings for OneArticle project
#
# For simplicity, this file contains only the most important settings by
# default. All the other settings are documented here:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
#
BOT_NAME = 'OneArticle'
SPIDER_MODULES = ['OneArticle.spide... | [
"wistar.sjtu@gmail.com"
] | wistar.sjtu@gmail.com |
82f9cc6486cffac22234ff1e553f1f5831bfd5c9 | 15d0cf422e01e6e3e2cd1770e42974fecd12fc38 | /new_JSON.py | 45898bc3b1d900f787afa6610322133c5575b97b | [] | no_license | pluxury8state/new_JSON | 9f8787204e6d222544b981002a5d75e942c41562 | 0217edd85f97845d403203e07097c1effd9eb19e | refs/heads/master | 2022-09-21T01:49:37.396989 | 2020-05-31T16:09:04 | 2020-05-31T16:09:04 | 268,314,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | import json
def sort_and_top10(ob):
new_mas = sorted(ob, key=lambda mas: mas[1])
a = int(len(new_mas)) - 1
p = 0
print('top 10')
while p != 10:
print(new_mas[a])
a -= 1
p += 1
def counter(ob):
mas4 = []
for ind in ob:
p = 0
for i in mas4:
... | [
"ssdffgmlg@gmail.com"
] | ssdffgmlg@gmail.com |
0eb41e66c1e6eae15f241cdd168bc70a77cbbdda | 4d1ae7f21c4f179f8a894038a9871417297c4fb8 | /src/feature_engineering.py | 16a644969920de3db7ad3cd2a778a128b2b2204d | [] | no_license | chuck1l/long_short_term_memory | a7ebba0b9d74bbbf2b8566dfdf1c9811f7ba4372 | b8333b5ecf37fdfe61c0d1413dc7f23e98b7f916 | refs/heads/main | 2023-04-24T05:09:37.909859 | 2021-05-13T14:49:23 | 2021-05-13T14:49:23 | 367,079,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,121 | py | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import yfinance as yf
from datetime import date
from pandas_datareader import data as pdr
class CreateDataFrame(object):
'''
This class is used to create the rolling average on all features and
targets in the input dataframe. This is... | [
"chucks_apple@Chucks-MacBook-Pro.local"
] | chucks_apple@Chucks-MacBook-Pro.local |
ed80eecc6d927982d83f6e023d454b76afd420e3 | aa65c8e24e8f3b0d16173ab72feb392855a481ac | /workspace/.c9/metadata/workspace/test/python week 8 lecture test/argv0.py | 2f33c17f283644c381923e6f29ee230a7be41930 | [] | no_license | olafironfoot/CS50_introduction-to-computer-science | d7688a29378fd2beeb71b73dab1433b99d670789 | 2dd45f4abfec2c9ae4c65f0045217dc9cbc960a7 | refs/heads/master | 2021-05-20T00:26:20.231700 | 2020-04-01T13:25:44 | 2020-04-01T13:25:44 | 252,106,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,970 | py | {"filter":false,"title":"argv0.py","tooltip":"/test/python week 8 lecture test/argv0.py","undoManager":{"mark":100,"position":100,"stack":[[{"start":{"row":2,"column":14},"end":{"row":2,"column":15},"action":"insert","lines":["v"],"id":55}],[{"start":{"row":2,"column":16},"end":{"row":2,"column":17},"action":"insert","... | [
"Erik.gwl@gmail.com"
] | Erik.gwl@gmail.com |
bc127285406c1c1cc417c1d35248d28a447b1270 | d935d3d4285aef15f17c0ec77e62689ee78a38f3 | /script/pylib/analysis/tfidf.py | 4ccf8f6f5cae0acd01d3dddcb847ae1cb2bfaf95 | [] | no_license | 18dubu/ChunhuaLab_2016BBW | 43d279ee74cfcac60e0e63e8da6adbc8cbdc23ac | c368c255b46908d7110fdf0beac01e126089ae9c | refs/heads/master | 2016-09-01T16:20:29.003305 | 2016-01-29T19:28:40 | 2016-01-29T19:28:40 | 50,610,583 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,228 | py | __author__ = 'mahandong'
import pickle
from pylib.onlineresource.ctgov import *
from pylib.onlineresource.sales import *
from pylib.onlineresource.pdr import *
import itertools
import signal
import string
import collections
from pylib.db.findTrials import *
from pylib.db.writeTrainingDB import *
from pylib.util.file im... | [
"handongma.work@gmail.com"
] | handongma.work@gmail.com |
db45d397f67e7159649779081aab67d4a025c466 | 296deb151838a750ed06c3da8f2131db522cf6a6 | /Dashboard.py | 4690ad2e5a1f4b307c116b3986bc8b10b3cf9523 | [] | no_license | mbolisov/mb | 3c6e8d5cd8ffcfa266554fb61fbff3e2f99f387c | 02ff58b123f9f01823f5d98b9ee50f97b1667bde | refs/heads/master | 2020-06-03T20:42:22.436813 | 2019-06-13T08:40:47 | 2019-06-13T08:40:47 | 191,723,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | from selenium.webdriver.common.by import By
from under_the_hood.multyusable import GBtool
from selenium.common.exceptions import WebDriverException
from under_the_hood.Constructor import Constructor
import time
from nose.tools import assert_equal, assert_true
from selenium import webdriver
import re
class Locators(o... | [
"noreply@github.com"
] | mbolisov.noreply@github.com |
f9bfc9c998a07887de15b2674a198cdb6bcc93cf | 385ed58325dd0cc75bdb9fd3e61c5e005f7a4f28 | /source/tuyoo/src/poker/entity/game/rooms/normal_room.py | bc38658272423936f9d7fc9e3a1c5a20a67e60da | [] | no_license | csirui/hall37 | 17dfa4e4f1f8bf719d0c11ac7738fa4c14fd06db | 5c4eb4b2bf57bbbee4731470c830d8d81915d603 | refs/heads/master | 2021-09-04T03:55:12.460035 | 2018-01-15T15:12:30 | 2018-01-15T15:12:30 | 117,560,615 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 8,860 | py | # coding=UTF-8
'''普通房间类
'''
from poker.entity.game.game import TYGame
__author__ = [
'"Zhouhao" <zhouhao@tuyoogame.com>',
'Zqh'
]
from random import choice
from freetime.core.tasklet import FTTasklet
import freetime.util.log as ftlog
from freetime.util.log import getMethodName
from poker.entity.configure im... | [
"cg@ibenxi.com"
] | cg@ibenxi.com |
f4f9c13205eeef3b47879fe03e9487fe5b216969 | c82158c7c6b008dc417a4a391bd714735f875a69 | /manager/campaign_sel.py | bb4ee735a3a9c326a3835d707884753bdcc1c691 | [] | no_license | Mattvasquez22/Sem_Proj2 | 9d2fe312edc7ddc93c711695eb0be32170438a84 | e6d59e040af60f3ba1bd31b9ab516f5e570b8df8 | refs/heads/master | 2020-05-07T13:57:59.542228 | 2019-06-25T06:40:20 | 2019-06-25T06:40:20 | 180,570,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | #########################################################
# Script used to define functions used to obtain the #
# campaigns, manage the campaign selection accordingly #
# and puts client back into pool if necessary #
#########################################################
from connection_char import p... | [
"leonel.vasquez@eurecom.fr"
] | leonel.vasquez@eurecom.fr |
3958bf3f4fade40cb900cf460be2dd1ecfc1c305 | fc1487ea5c2999a7e3020a42099acaa9fb7378bd | /Subject/migrations/0002_subject_m_subject_code.py | a69042f0874a351b31c8f6420488c12d8c4378fd | [] | no_license | shadreckmukuka/SRMS_Django | 2a961dbbd121de4420dfb90798252230a53192f9 | 99c436f0c0c424ca634eb532f1081d1d4ae3f8c6 | refs/heads/master | 2023-06-25T06:28:19.270333 | 2021-07-24T07:41:39 | 2021-07-24T07:41:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 3.2.3 on 2021-07-20 20:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Subject', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='subject_m',
name='subject_code',
... | [
"39671178+SumitJamnani@users.noreply.github.com"
] | 39671178+SumitJamnani@users.noreply.github.com |
ec8b44146c38a98c983c6b3ab090d8e6feff727e | 6abb92d99ff4218866eafab64390653addbf0d64 | /AtCoder/abc/abc180/b.py | 3dd5250c5676e7d938a6207c7c033d8e8d4ed8eb | [] | no_license | Johannyjm/c-pro | 38a7b81aff872b2246e5c63d6e49ef3dfb0789ae | 770f2ac419b31bb0d47c4ee93c717c0c98c1d97d | refs/heads/main | 2023-08-18T01:02:23.761499 | 2023-08-07T15:13:58 | 2023-08-07T15:13:58 | 217,938,272 | 0 | 0 | null | 2023-06-25T15:11:37 | 2019-10-28T00:51:09 | C++ | UTF-8 | Python | false | false | 223 | py | n = int(input())
x = list(map(int, input().split()))
res1 = 0
res3 = -1
for e in x:
res1 += abs(e)
res3 = max(res3, abs(e))
res2 = 0
for e in x:
res2 += e * e
res2 **= 0.5
print(res1)
print(res2)
print(res3) | [
"meetpastarts@gmail.com"
] | meetpastarts@gmail.com |
904e0904076d47255579ccf0a619de76d3f6deba | d3e5f96f07bbebdd09ae3764356a14ccf63a7f13 | /test/test_video_recorder.py | 89025ba9896829c1f0e2a170928142bac2dec180 | [] | no_license | ijeriomit/ROS-Video-Recorder | e8c1941ba650b7303be3313daf9bf2c43f543d14 | 99dbbf22d7445926a6c619041d23c4478b872dbd | refs/heads/main | 2023-06-21T07:15:48.186967 | 2021-07-08T18:20:42 | 2021-07-08T18:20:42 | 372,615,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,218 | py | #!/usr/bin/env python2
# System Imports #
import unittest
# ROS Imports #
import os
import time
import rospkg
import rospy
import rostest
import subprocess
import os
import re
import shutil
from random import seed
from random import random
import cv2
from cv_bridge import CvBridge
import threading
from sensor_msgs.m... | [
"iiomitogun@uh.edu"
] | iiomitogun@uh.edu |
69c355ce7434a1a1a8919fd35926fa3157709e70 | 53f8a044b81e3bb7cd058162d12c2eacf2038d6c | /Variable assignment.py | 9e80942ef86d61a7c81b0333d7da6e5b46f73bb1 | [] | no_license | NehaChandwani/test-gate- | 72b53ccd56a4ecfdfa8b05d1dc662d23e6a1a1ac | eb877f3a5ecf17d1ce0f4a16941b62d5b7ce9a3d | refs/heads/main | 2023-02-03T23:39:08.797141 | 2020-12-23T20:02:23 | 2020-12-23T20:02:23 | 323,830,396 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | #attributes os song
instrument="Piano and guitar" #instrument used in song
lyrics="Gulzar" # song written by
lengthinseconds=380 #length of song
title="Keh du tumhe" # Title of song
producer="T-series"
singer="AnuMalik"
genere="Jazz"
print(instrument)
print(lyrics)
p... | [
"noreply@github.com"
] | NehaChandwani.noreply@github.com |
5c26542d8366a51e50177dd19e240fb09ea48219 | de159ab9a9cc8d5c7460f2ef1cf549c6e50aba4d | /course6/avltree.py | d8f9809cdcce1511954cba98680f7822bcc94a76 | [] | no_license | g10guang/MIT_6.006 | 56869a79ed863b55b46c4f3011fdb0de21992dec | 2fbdb6123a9541ef00de80f627fe05a3c34ceffa | refs/heads/master | 2021-09-05T01:23:28.944260 | 2018-01-23T10:47:33 | 2018-01-23T10:47:33 | 117,412,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,564 | py | #!/usr/bin/env python3
# coding=utf-8
# author: Xiguang Liu<g10guang@foxmail.com>
# 2017-11-10 08:19
class AVLTree:
def __init__(self, NodeType=AVLNode) -> None:
super().__init__()
self.root = None
def insert(self, k):
"""
向 AVL T ree 中插入新节点
:param k:
:return:
... | [
"g10guang@gmail.com"
] | g10guang@gmail.com |
331df3698f95431259f82bc02d2be2f0a859cb97 | df2435ffc5c2916d9bbe99a0d53086569c34dc5e | /patchconv/setup.py | b89ab2d494c238a39509c0d3c55aba4d503b869d | [] | no_license | lucassanttoss/codingtools | 73d810f1e3e5498af1cfb0d3fd5bffc43bd8d055 | 5fa857c16149801acc7bad2f41597a5264f7015e | refs/heads/master | 2021-06-17T03:13:43.460518 | 2017-01-12T15:16:33 | 2017-01-12T15:16:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | # This file is part of Adblock Plus <https://adblockplus.org/>,
# Copyright (C) 2006-2016 Eyeo GmbH
#
# Adblock Plus is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# Adblock Plus is distributed in... | [
"vasily@adblockplus.org"
] | vasily@adblockplus.org |
d9c7ee008ad673217b75a03c9bd9aa2b6d4c4bc6 | 25872e1ba4f86cbbf77d0130f341b21e5dd9e692 | /ValidParentheses.py | 246578df7ae6388798faaa7fda377b4bd2652d76 | [] | no_license | zongxinwu92/leetcode | dc3d209e14532b9b01cfce6d4cf6a4c2d7ced7de | e1aa45a1ee4edaf72447b771ada835ad73e7f508 | refs/heads/master | 2021-06-10T21:46:23.937268 | 2017-01-09T09:58:49 | 2017-01-09T09:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | '''
Created on 1.12.2017
@author: Jesse
''''''
Given a string containing just the characters ( , ) , { , } , [ and ] , determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "([)]" are not.
"
'''
| [
"darrencheng0817@gmail.com"
] | darrencheng0817@gmail.com |
95893bf0b00c2ce101c951b6965603548445099c | 2475e641635d626764ee8759c9c03840a7ea8d83 | /migrations/versions/1658bdd37b17_.py | c78e326dac4674c74ba3dce4d4ee3e2343d8f4b2 | [] | no_license | donggiLee1012/flask_pybo | f11b89d0e5d40bf5ea233b83f8af602fac62a425 | f346940d6f188d2022e0be9c1d6a0c03bc158feb | refs/heads/master | 2023-01-04T16:30:57.320725 | 2020-10-30T04:58:24 | 2020-10-30T04:58:24 | 296,055,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | """empty message
Revision ID: 1658bdd37b17
Revises: ff8aed8fa5b3
Create Date: 2020-10-20 19:36:49.072582
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '1658bdd37b17'
down_revision = 'ff8aed8fa5b3'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"multidong1017@gmail.com"
] | multidong1017@gmail.com |
483b866833396c462eb05f924fd41b4139c7f05f | 0432f80e0a058262af8c0b560dca268f52001644 | /pygcam/built_ins/query_plugin.py | f08af4cf608c66c4341233d6350d8e9a730d59d2 | [
"MIT"
] | permissive | heishanmao/pygcam | 095387fdf9dd6e049f26b6074cc1dea2f6f5bf21 | 20e48133ffadbb8db8e84c26b54e3db59b4a7b68 | refs/heads/master | 2021-01-08T08:36:02.928185 | 2020-02-14T20:00:30 | 2020-02-14T20:00:30 | 241,973,039 | 1 | 0 | NOASSERTION | 2020-02-20T19:37:12 | 2020-02-20T19:37:11 | null | UTF-8 | Python | false | false | 5,670 | py | """
.. Support for querying GCAM's XML database and processing results.
.. codeauthor:: Rich Plevin <rich@plevin.com>
.. Copyright (c) 2016 Richard Plevin
See the https://opensource.org/licenses/MIT for license details.
"""
from ..subcommand import SubcommandABC, clean_help
class QueryCommand(SubcommandABC):
... | [
"rich@plevin.com"
] | rich@plevin.com |
b80cee7cc5858b41cedec45e66dcf36ac75cf6b6 | b67ce4473d51a0273f6ef6c2bc30d531c31cae7d | /pset6/readability/readability.py | 3d2d8342d325cc40b537537f43d0094b889f1ddf | [] | no_license | lucas404x/cs50-exercises | 4681eb9b52395e926426e20cf693eeabb2644414 | 00eff92aefb0422176d96d90fc495fdfd1c8eb7f | refs/heads/master | 2022-11-18T11:16:38.468585 | 2020-07-19T20:52:21 | 2020-07-19T20:52:21 | 280,948,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | from cs50 import get_string
from sys import exit
import re
def main():
text = get_string("Text: ")
grade = round(coleman_liau_index(L(text), S(text)))
if grade < 1:
print("Before Grade 1")
elif grade < 16:
print(f"Grade {grade}")
else:
print("Grade 16+")
exit(0)
def ... | [
"joselucas0303@gmail.com"
] | joselucas0303@gmail.com |
06fa91e1b41f2ce0d895152caf7f8d1828297a61 | 7414e0795e47436587b7ad76a6f36e319fe47695 | /day4_homework/homeworkquestion1.py | 5c7c667c584fe4a392e54bf1647c9843c88628c6 | [] | no_license | jhaversat/qbb2016-answers | 04a34b1d54f4cbb4c3bb2eaee4d4f23c1f9c8c3b | 757bd118057dd2ce93286db9ce11254746d5ab01 | refs/heads/master | 2020-09-26T23:16:17.724758 | 2016-12-19T23:03:01 | 2016-12-19T23:03:01 | 66,853,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,473 | py | #!/usr/bin/env Python
"""
How to run:
./homeworkquestion1.py <metadata.csv> <ctab_dir>
Generates:
Line plot of
"""
import sys
import pandas as pd
import matplotlib.pyplot as plt
Sample_file = pd.read_csv(sys.argv[1])
replicate_file = pd.read_csv(sys.argv[2])
ctab_dir = sys.argv[3]
female_Sxl = []
male... | [
"Jhaversat@gmail.com"
] | Jhaversat@gmail.com |
d3fd5a70f236f2a0ae3b837807f273fc78db2d66 | 54c3981ad7dfbeeabf79087746f143bcde4190d3 | /bot.py | 9a4084035f31149768e02a60b71c2bdf596c704b | [
"Apache-2.0"
] | permissive | Sunetz/galinabot | c2ba0497c16ff8c5ecdc9b0e759ffc61dc30940c | a17d031c3838d4407fee8484cab39d5e1a0966f6 | refs/heads/main | 2023-04-05T11:16:48.346301 | 2021-04-13T10:49:04 | 2021-04-13T10:49:04 | 357,506,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,776 | py | import config
import os
from random import choice
from time import sleep
from string import ascii_letters, ascii_lowercase, ascii_uppercase, digits
import telebot
from telebot import types
from selenium import webdriver
from imageai.Detection import ObjectDetection
import password
chromedriver_path = os.path.join("c:/... | [
"asuntcova@yandex.ru"
] | asuntcova@yandex.ru |
6f42a4420ad54741cba50d807238607340e07c03 | 7d62096ef268cc25be7a2d4c2c2d6d490a7dff24 | /examples/prms_streamflow_ex.py | d17d4416d19ad4d5291f57fdb8251ee6fd803217 | [
"MIT"
] | permissive | pymt-lab/pymt_prms_streamflow | becf1e5c6d0d30205408a7bd0e9cb5ca6b97c499 | a25fe20da317b49ff12e0a6df546d2ba0e0dfe6f | refs/heads/master | 2022-12-31T20:08:18.099769 | 2020-10-13T17:31:17 | 2020-10-13T17:31:17 | 264,988,300 | 0 | 0 | MIT | 2020-10-13T17:25:56 | 2020-05-18T15:53:45 | Python | UTF-8 | Python | false | false | 3,607 | py | """Interact with the PRMSStreamflow BMI through Python."""
import os
import numpy as np
from pymt_prms_streamflow import PRMSStreamflow
run_dir = '../meta/PRMSStreamflow'
config_file = 'control.default'
# Instantiate a model and get its name.
m = PRMSStreamflow()
print(m.get_component_name())
# Initialize the mod... | [
"mark.piper@colorado.edu"
] | mark.piper@colorado.edu |
edbcbecc6f0f8d884487ac9870caa7a739c31558 | 00843d7d1744e25eecae29a95754294fab79986c | /train-model.py | d1ed9851036371c26642abb7abcf2624cda3d5d1 | [] | no_license | Aditya148/Face-Recognition | 2970648277ef819d457658b3f1bb405b2885f13c | 514c00d56fa2da7fd76e5e764132a76dcf9fe83c | refs/heads/main | 2023-01-04T10:32:38.909947 | 2020-10-29T10:56:58 | 2020-10-29T10:56:58 | 307,947,791 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,256 | py | # -*- coding: utf-8 -*-
from keras.layers import Input, Lambda, Dense, Flatten
from keras.models import Model
from keras.applications.vgg16 import VGG16
from keras.applications.vgg16 import preprocess_input
from keras.preprocessing import image
from keras.preprocessing.image import ImageDataGenerator
from kera... | [
"noreply@github.com"
] | Aditya148.noreply@github.com |
3bba89a25e36b1f137a155594ea9efacddbf0a07 | 5c6857c12e4abfeb51e5c4426a6f86e4fae86ede | /jactorch/data/dataset.py | dd275c4051e8e5942601be97ceae205960430408 | [
"MIT"
] | permissive | lzhbrian/Jacinle | 93bbb123bca52d5ca1ce5dbded3acb9b827b9061 | 4e6ea4902079d8d59d9eda0849714bd544f281a2 | refs/heads/master | 2023-04-01T03:07:07.208186 | 2021-04-07T17:58:38 | 2021-04-07T17:58:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,151 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# File : dataset.py
# Author : Jiayuan Mao
# Email : maojiayuan@gmail.com
# Date : 03/08/2018
#
# This file is part of Jacinle.
# Distributed under terms of the MIT license.
import random
import itertools
from jacinle.logging import get_logger
logger = get_logger(... | [
"maojiayuan@gmail.com"
] | maojiayuan@gmail.com |
47669b7666a1946891fd5bb9f52e54802d2f537e | 9efe294abec2371bc938bad3115bc5cf9aa304be | /test_green_mask.py | 6f34d96088b1fd7d06cd51275e1ae151275ec23e | [] | no_license | Happyflytoyou/rss_xman | ea7f3d4064905aca79e574ec85858ffa4cfb95e6 | 9d52356e2c8b05dc9586fcc7fb5a3d1fae0f2ee0 | refs/heads/master | 2020-06-12T10:43:15.068768 | 2019-07-07T14:12:40 | 2019-07-07T14:12:40 | 194,274,610 | 4 | 3 | null | 2019-07-07T14:12:41 | 2019-06-28T13:00:14 | Python | UTF-8 | Python | false | false | 3,832 | py | import torch
from models.Siam_unet import SiamUNet
from models.final_Siam_unet import finalSiamUNet
from torch.autograd import Variable
import utils.dataset as my_dataset
import cv2
import numpy as np
import config.rssia_config as cfg
import preprocessing.transforms as trans
from torch.utils.data import DataLoader
from... | [
"1848185889@qq.com"
] | 1848185889@qq.com |
72406593eb4ad8bee4de31d6537425c61a039f83 | b6316322bc74bb47c7108051f7a1b5b6343f92b6 | /ground.py | 0feabc558f6f181d5d1234dd4c8a93f976aeb5ab | [] | no_license | HananeKheirandish/Assignment-13 | 9408a965338e6c201a6b4699e64013b8ee2e4345 | 9ada0212a091ccc2e9eb2199ba4bbee1293ac08e | refs/heads/master | 2023-07-31T21:33:38.937656 | 2021-09-21T21:32:48 | 2021-09-21T21:32:48 | 408,975,958 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | import arcade
class Ground(arcade.Sprite):
def __init__(self, x, y):
super().__init__()
self.texture = arcade.load_texture(':resources:images/tiles/grassMid.png')
self.width = 120
self.height = 135
self.center_x = x
self.center_y = y
class Box(arca... | [
"hananekheirandish1378@gmail.com"
] | hananekheirandish1378@gmail.com |
8e5fd91e5309a62076c60a7df6232e48b539fc7a | 4eb7d655586db7e60e2d54be7dff4a199bb9005c | /shopping list.py | 079d296e5e462d7ef4665143810df0b65fb06882 | [] | no_license | chaNcharge/Coding | c0a5f2b1bf5a38f14763aa5908204572d0ae5853 | 0bb94968efc3a3e75418a6ab6795911e64a83ee3 | refs/heads/master | 2021-01-22T07:31:46.490512 | 2018-06-06T01:28:32 | 2018-06-06T01:28:32 | 102,305,539 | 7 | 1 | null | 2017-09-13T01:50:08 | 2017-09-04T01:18:07 | Python | UTF-8 | Python | false | false | 443 | py | #!/usr/bin/python
shopping_list = ["banana", "orange", "meme", "meme", "pear", "meme", "apple"]
stock = {
"banana": 6,
"apple": 0,
"orange": 32,
"pear": 15,
"meme": 21
}
prices = {
"banana": 4.99,
"apple": 2.99,
"orange": 1.49,
"pear": 3.99,
"meme": 5.99
}
def compute_bill(food):
total = 0
for i in foo... | [
"chancharge@gmail.com"
] | chancharge@gmail.com |
f6a2cee4962eb4e0522e2c6b922c4fab40e4ebc2 | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /tests/layer_tests/common/utils/tf_utils.py | fb02c3f0a1b298370faf288e2f248e5dad1da3b0 | [
"Apache-2.0"
] | permissive | openvinotoolkit/openvino | 38ea745a247887a4e14580dbc9fc68005e2149f9 | e4bed7a31c9f00d8afbfcabee3f64f55496ae56a | refs/heads/master | 2023-08-18T03:47:44.572979 | 2023-08-17T21:24:59 | 2023-08-17T21:24:59 | 153,097,643 | 3,953 | 1,492 | Apache-2.0 | 2023-09-14T21:42:24 | 2018-10-15T10:54:40 | C++ | UTF-8 | Python | false | false | 6,923 | py | # Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import os
import re
import numpy as np
import tensorflow as tf
from openvino.tools.mo.ops.op import PermuteAttrs
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
def mix_array_with_value(input_array, value):
input_shape = input_array.s... | [
"noreply@github.com"
] | openvinotoolkit.noreply@github.com |
98fc54b6771a94ea39ab4d85d2ce2a00aac5a6fe | 29061d1ac5ee01d9e2dd73c691bc03d795e0ce7a | /2020_21_p2.py | 5c757a4d3bcfd6ef9b8341a38c01b8186770ebe0 | [
"MIT"
] | permissive | Dementophobia/advent-of-code-2020 | af074c8f847095f3d111d656f34aa8c46cb4e18a | ee1fb67d4ec55ed082aa7723c79759310925a85a | refs/heads/main | 2023-02-05T19:12:54.844842 | 2020-12-25T10:17:38 | 2020-12-25T10:17:38 | 317,787,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,612 | py | from aoc import read_file, timer
from re import match, sub
from collections import defaultdict
def analyse_input(raw_input):
allergens_dict = defaultdict(list)
all_ingredients = []
for line in raw_input:
ingredients, allergens = [words.split() for words in match(r"((?:(?:\w+) )+)\(contains ((... | [
"34186142+Dementophobia@users.noreply.github.com"
] | 34186142+Dementophobia@users.noreply.github.com |
c812cf4e30c6d1d51291e9295e325acdf22fc658 | c705b2620119df0d60e925e55228bfbb5de3f568 | /archives/learning/security/otp.py | f2cd3498bc6d6c0e3c11c542444a6afe0249e1a0 | [
"Apache-2.0"
] | permissive | mcxiaoke/python-labs | 5aa63ce90de5da56d59ca2954f6b3aeae7833559 | 61c0a1f91008ba82fc2f5a5deb19e60aec9df960 | refs/heads/master | 2021-08-05T03:47:51.844979 | 2021-07-24T11:06:13 | 2021-07-24T11:06:13 | 21,690,171 | 7 | 7 | Apache-2.0 | 2020-08-07T01:52:32 | 2014-07-10T10:20:17 | Python | UTF-8 | Python | false | false | 4,777 | py | # -*- coding: UTF-8 -*-
# -*- coding: utf-8 -*-
"""
otpauth
~~~~~~~
Implements two-step verification of HOTP/TOTP.
:copyright: (c) 2013 - 2014 by Hsiaoming Yang.
:license: BSD, see LICENSE for more details.
"""
import base64
import hashlib
import hmac
import struct
import sys
import time
import ... | [
"mcxiaoke@gmail.com"
] | mcxiaoke@gmail.com |
acb759430a9f83b7215bb9aef54d72993c9d46b7 | 3ef8175776af868486c9f70f2846f32d36d21fe1 | /PalindromePartitioning.py | 6c5a0c324609b7dd866a89bb85a0de1f44a3e5e3 | [] | no_license | youngyuan/Leetcodes | 495d3c355c24294024cc4a6caaf7bf2a4f11649f | 4464e40dc78b3529226e98996d4da838828fb3a5 | refs/heads/master | 2021-01-22T23:58:19.887689 | 2015-09-18T15:07:51 | 2015-09-18T15:07:51 | 41,552,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | class Solution(object):
def isPalindrome(self, s, start, end):
i = start
j = end
while i < j:
if s[i] != s[j]:
return False
i += 1
j -= 1
return True
def dfs(self, s, start, end, res, path):
if start > end:
... | [
"youngyuan00@gmail.com"
] | youngyuan00@gmail.com |
1e91ab4820bab344b781fa5ffd2176a03f1b30c7 | 889ef6cd7328a08d3b12518b18c6f41c40702d32 | /main.py | 5bc7067e0d61456139ec529229f634e85df2253f | [] | no_license | Yetinator/BicycleRaceSplits | ad6c8e91f024a3dca247d56ae667b4aeed2f4d39 | f26f563ca44a4a471cf1c4592f2d1ec0c52bde7e | refs/heads/master | 2020-04-09T00:44:38.392479 | 2018-12-19T21:43:03 | 2018-12-19T21:43:03 | 159,879,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py |
from tkinter import *
import tkinter.filedialog
import time
from array import *
from writeClass import *
from windowClass import AbstractWindow
from windowClass import MyWindow
from stopWatchClass import SwissWatch
tempWindow = MyWindow()
mainloop()
| [
"Helmethair@zoho.com"
] | Helmethair@zoho.com |
4210d0e4b8cd675a18ae6f39d33ccab6ad71f1fe | 213f71cd752b20327e175df8f9ad6fdb7fcf596b | /blog/migrations/0003_auto_20190509_1119.py | 23995561e18aa63ebffeb36b10162e77a7080a7f | [] | no_license | jnsun/mysite | 94fd5c7591996d5789427b6b43f8fc546050f6da | 3ca839d4cd4701f8f2dffc7b161e4a311d53ee31 | refs/heads/master | 2020-05-20T03:27:56.666352 | 2019-05-09T06:52:48 | 2019-05-09T06:52:48 | 177,090,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # Generated by Django 2.2.1 on 2019-05-09 03:19
from django.db import migrations
import mdeditor.fields
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_auto_20190507_1044'),
]
operations = [
migrations.AlterField(
model_name='blog',
name='c... | [
"jnsun@qq.com"
] | jnsun@qq.com |
fcea36acdb8c99a405600822c08ef350ce5e9ff8 | 3427605c7877d1e9899a629160355f8b653847a9 | /migrations/0001_initial.py | 3743e4cbbfc0bdaf00ada9ff3596db4d67f1fce9 | [] | no_license | Pranathi-Paruchuri/E-Commerce | d40d97fa6ac37a8f9c7b1066a918aa736dea1045 | 565ff974023678d1b08e07d9c14ddf076aeef921 | refs/heads/master | 2022-11-29T12:52:46.991256 | 2020-07-27T18:31:23 | 2020-07-27T18:31:23 | 282,981,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,415 | py | # Generated by Django 3.0.8 on 2020-07-20 11:38
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"noreply@github.com"
] | Pranathi-Paruchuri.noreply@github.com |
bb65ecfb10019fd65397574241138df4aa66a8fb | 9789aaa94e4a321fed2a1f624ef180d938f1fe56 | /src/entry.py | a751c34c3bcfab03051a7dce97a1e000465541e1 | [] | no_license | fantascy/snsanalytics | 61ff6b8f384f0bd4be8f89a2a19101ad2cf1bc77 | 927f186c7f5a1d534e0ff7ce7aff46a0c1a36c51 | refs/heads/master | 2021-01-13T14:18:05.684839 | 2016-11-06T07:43:35 | 2016-11-06T07:43:35 | 72,827,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,851 | py | from django.views.generic.simple import direct_to_template, redirect_to
from django.views.defaults import page_not_found as django_page_not_found
import deploysoup
import context
import settings
from sns.dashboard.views import home as sns_home
from sns.chan.views import twitter_callback as new_twitter_callback
from sn... | [
"cong@snsanalytics.com"
] | cong@snsanalytics.com |
49e2dcdaf2dd5f03916376f133577cc6a1c46e39 | 93713f46f16f1e29b725f263da164fed24ebf8a8 | /Library/lib/python3.7/site-packages/astropy-4.0-py3.7-macosx-10.9-x86_64.egg/astropy/units/quantity.py | b315485d32611402a5243f5f34a2aac4c8397ccb | [
"BSD-3-Clause"
] | permissive | holzschu/Carnets | b83d15136d25db640cea023abb5c280b26a9620e | 1ad7ec05fb1e3676ac879585296c513c3ee50ef9 | refs/heads/master | 2023-02-20T12:05:14.980685 | 2023-02-13T15:59:23 | 2023-02-13T15:59:23 | 167,671,526 | 541 | 36 | BSD-3-Clause | 2022-11-29T03:08:22 | 2019-01-26T09:26:46 | Python | UTF-8 | Python | false | false | 69,779 | py | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This module defines the `Quantity` object, which represents a number with some
associated units. `Quantity` objects support operations like ordinary numbers,
but will deal with unit conversions internally.
"""
# Standard libra... | [
"nicolas.holzschuch@inria.fr"
] | nicolas.holzschuch@inria.fr |
ff4f676fa354d855a5e6ad5e934dd37f8761e8d9 | 20c71b8e74506e569426c29645d708015fecca4b | /main/api.py | 352a92724e2bea2a9deb0889d8be6f8a9c7bc568 | [] | no_license | ruchej/guestbook | 5468e5b57a9732956253340efe13ffac76965f4d | e1cd1d358aa4ee01fb36519aee81ad50ffdf031c | refs/heads/master | 2022-12-12T06:39:40.997569 | 2020-09-21T06:43:43 | 2020-09-21T06:43:43 | 296,591,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | from rest_framework import generics
from main.models import GuestResponse
from .serializers import GuestResponseSerializer
class ListGR(generics.ListAPIView):
queryset = GuestResponse.objects.all()
serializer_class = GuestResponseSerializer
class CreateGR(generics.CreateAPIView):
serializer_class = Gu... | [
"lvar-8@ya.ru"
] | lvar-8@ya.ru |
1082a5fed48e307852e68329f09867d9e725f342 | af35bc4b716b99cc2995a224c163ac36c438792c | /for/prime_numbers.py | 24a685f272009500a070a1ae008e4d29b6c531fa | [] | no_license | Kris2209/python_practice | 795cca381132751a3ecf2ff49069043dae7fdb32 | de3a73b1f88dcce2ad51a6a172e92652350b2842 | refs/heads/main | 2023-08-11T07:31:33.961991 | 2021-09-14T14:34:07 | 2021-09-14T14:34:07 | 398,629,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | # Напишите программу, которая считает количество простых чисел в заданной последовательности и выводит ответ на экран.
def is_prime(n):
sqrt = n ** 0.5
stop = int(sqrt + (sqrt % 1 > 0))
for k in range(2, stop + 1):
if (n % k == 0):
return False
return True
n = int(input('Сколько... | [
"yakovenko.k1997@gmail.com"
] | yakovenko.k1997@gmail.com |
a1c9d9f338a1b479bd1b42a0f0397121e24c9b17 | 30b2eb381ec8f3225671274e77a55b63206dfb60 | /leetcode/p0912/merge_sort.py | 4e7fa636f095e20a1cd252558c4dd90128788689 | [] | no_license | b1ueskydragon/PythonGround | 52888f32336e5e20be8490454beb67e676be7057 | 5a401250e88926235f581e6c004d1a4acb44230d | refs/heads/master | 2021-07-10T03:00:38.340959 | 2021-04-02T03:34:29 | 2021-04-02T03:34:29 | 98,208,402 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | class Solution:
def sortArray(self, nums: [int]) -> [int]:
def divide(xs):
if len(xs) < 2:
return xs
mid = len(xs) // 2
left = divide(xs[:mid])
right = divide(xs[mid:])
return conquer(left, right)
def conquer(l1, l2):
... | [
"dragoalie@gmail.com"
] | dragoalie@gmail.com |
6148052c0e616349dbab22d39e1b93729ce4070f | c79b32f270cf5051ab0488528eb1b1b05b674b06 | /lab8/api/models.py | eef069428d4c023849a152ac9cbe1f4016df31e7 | [] | no_license | AzhrAkhmtkn/WebDevelopment | a977b1b63a6ee521818a6e79f88574ce2d7a1d6b | 028c75c78416547d475c8f7da7d8bcb2ed2d9d12 | refs/heads/main | 2023-04-16T23:57:56.853946 | 2021-04-14T16:42:48 | 2021-04-14T16:42:48 | 337,195,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | from django.db import models
# Create your models here.
class Category(models.Model):
name = models.CharField(max_length=300)
def to_json(self):
return {
'id': self.id,
'name': self.name
}
class Product(models.Model):
name = models.CharField(max_length=300)
pri... | [
"a.bolatovna2001@gmail.com"
] | a.bolatovna2001@gmail.com |
1d2877dd8825d0b1fb80d7ab2ab259963689f282 | 11060ca244940baef96a51d794d73aab44fc31c6 | /src/brainstorming/tornado/restmongo/rest/handler.py | 326a05674ace5ea711685b23c4d878747376ff37 | [] | no_license | D3f0/txscada | eb54072b7311068a181c05a03076a0b835bb0fe1 | f8e1fd067a1d001006163e8c3316029f37af139c | refs/heads/master | 2020-12-24T06:27:17.042056 | 2016-07-27T17:17:56 | 2016-07-27T17:17:56 | 3,565,335 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | from tornado.web import RequestHandler, HTTPError
from rest.emitters import Emitter
import httplib as http
class RESTHandler(RequestHandler):
MAPPED_METHODS = { 'GET': 'retrieve', 'POST': 'create', 'PUT': 'update', 'DELETE': 'delete' }
def __init__(self, *args, **kwargs):
emitter_format = kwargs.pop('... | [
"devnull@localhost"
] | devnull@localhost |
04db73cf6465fb41c21a66c052f385d4b408274e | 8e39a4f4ae1e8e88d3b2d731059689ad5b201a56 | /x11-libs/gdk-pixbuf/gdk-pixbuf-2.31.7.py | 675fbd31c023b5284965677d53ef86aacdbfd165 | [] | no_license | wdysln/new | d5f5193f81a1827769085932ab7327bb10ef648e | b643824b26148e71859a1afe4518fe05a79d333c | refs/heads/master | 2020-05-31T00:12:05.114056 | 2016-01-04T11:38:40 | 2016-01-04T11:38:40 | 37,287,357 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | metadata = """
summary @ An image loading library for GTK+ V2
homepage @ http://www.gtk.org/
license @ GPL2
src_url @ ftp://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/2.31/gdk-pixbuf-$version.tar.xz
arch @ ~x86_64
options @ debug introspection X jpeg tiff
"""
depends = """
runtime @ sys-libs/glib media-libs/libpng x11... | [
"zirkovandersen@gmail.com"
] | zirkovandersen@gmail.com |
a9d8b7ed7b8a9422898cab5220c4a7fcf726652a | 74f6c5b2fbc1c868c7fabda7486eabfdb4466f1b | /5.py | dd03195d440cc3d05f2979a902950e0f68dc5b20 | [] | no_license | jcstoltzfus/project-euler | 0eec3e3275f1d4d0a2cca2cc1df7426fcac0a89d | 50439a22d65eb029794c25346dc62702558728fb | refs/heads/master | 2020-03-30T11:19:52.795796 | 2018-10-01T22:33:56 | 2018-10-01T22:33:56 | 151,167,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | bol = False
num = 1
while(not bol):
isTrue = True
for i in range(1,21):
if(not (num % i == 0)):
isTrue = False
break
if(isTrue):
bol = True
else: num += 1
print num
| [
"stoltzfus.eelman@gmail.com"
] | stoltzfus.eelman@gmail.com |
b6275b3b63ff9b7896792ace7da39bcb430ca2a8 | 0060b1d9ea546854e9f5d40aa39ec8e4ec4b774f | /mobility/parsing.py | 111fb27da9461c99e5573019398e9c6160c45a8b | [] | no_license | VinayVPai/covid19-analysis | fe766683ced91ac20d99ce2a484b4ba2086e628f | ba73cf2766057a3480ab17308a4481a68395d2be | refs/heads/master | 2022-04-15T08:37:09.496150 | 2020-04-13T05:04:05 | 2020-04-13T05:04:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,316 | py | from collections import defaultdict
import glob
import os
import sys
import logging
import numpy as np
import pandas as pd
from tqdm.auto import tqdm
from geoIds import GEO_IDS
# PyMuPDF
import fitz
def parse_stream(stream):
data_raw = []
data_transformed = []
rotparams = None
npatches = 0
for li... | [
"horace.guy.k@gmail.com"
] | horace.guy.k@gmail.com |
6bf29746917b0fca38a29cf1bca79320d73ad8f1 | d7a4701e18be0f38820f5c15d80099fda6385f9f | /ABC185/B.py | 369adbcaf93345af9b9239f966033d645742dde9 | [] | no_license | shiki7/Atcoder | 979a6f0eeb65f3704ea20a949940a0d5e3434579 | c215c02d3bfe1e9d68846095b1bd706bd4557dd0 | refs/heads/master | 2022-05-21T16:59:01.529489 | 2022-04-29T11:26:42 | 2022-04-29T11:26:42 | 201,536,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | N, M, T = map(int, input().split())
AB = list(list(map(int, input().split())) for _ in range(M))
total = N
for i in range(M):
a = AB[i][0]
b = AB[i][1]
if i == 0:
total -= AB[i][0]
else:
total -= AB[i][0] - AB[i-1][1]
if total <= 0:
print('No')
exit()
total += AB[... | [
"noreply@github.com"
] | shiki7.noreply@github.com |
f96a638a4cb5da10a1c6fd376a557e05cb7893a0 | dadbed9984cdc9d9a1e84a3c9929ac4c9a58c370 | /src/datasets/adult.py | 90a374fcd2c2e68a40c05c2377bb8c4ebffc1ab4 | [
"MIT"
] | permissive | GRSEB9S/deepSVDD | 74efac2d3c997aff07c85d30587883ef55fd1030 | caf44c93914414ca26525fec69b780e920b9d061 | refs/heads/master | 2021-07-08T21:25:50.738316 | 2017-10-06T08:30:49 | 2017-10-06T08:30:49 | 109,243,104 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,463 | py | from datasets.base import DataLoader
from config import Configuration as Cfg
import numpy as np
import pandas as pd
class Adult_DataLoader(DataLoader):
def __init__(self):
DataLoader.__init__(self)
self.dataset_name = "adult"
self.n_train = 32561
self.n_val = 16281
se... | [
"lukas.ruff@gmail.com"
] | lukas.ruff@gmail.com |
f88e046174b76a32b75f5c6a78c8e3b5ce4518a2 | d381b1834c6ff5102f66f2710d1738500e108519 | /字节跳动/t1.py | b0dedefbfd8eb31d951738b9dbfe16b68352618c | [] | no_license | hshrimp/test_school | d930c8eaafba450cc57e4b03d1240c3661a54878 | dde5033c944af294abf5876ceb1da7f6f3b3c0e4 | refs/heads/master | 2020-03-28T13:31:25.210726 | 2018-10-08T10:30:23 | 2018-10-08T10:30:23 | 148,402,081 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : wushaohong
# abc3
def find(string):
max_len = 0
for i in range(len(string)):
temp = [string[i]]
for j in range(i + 1, len(string)):
if string[j] in temp:
if len(temp) > max_len:
max_len = l... | [
"850566163@qq.com"
] | 850566163@qq.com |
c76ada545351b735242bd62fc9916b53aad7ebfe | e882573ccbfe73a325f38a0ae4550259e9591332 | /mrcnn/config.py | 18b36c1e1ddb39bd5d3aa6f8db8113ec8faf284c | [
"MIT"
] | permissive | liruiqi0515/mask-rcnn-point | f4f4a3ef513c133c068c7506bd78dc7f8965527e | 8a4da7067b7eb0c638199a7af988a7573a9fffbc | refs/heads/main | 2023-07-15T23:44:06.591872 | 2021-08-31T05:11:50 | 2021-08-31T05:11:50 | 401,557,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,393 | py | """
Mask R-CNN
Base Configurations class.
Copyright (c) 2017 Matterport, Inc.
Licensed under the MIT License (see LICENSE for details)
Written by Waleed Abdulla
"""
import numpy as np
# Base Configuration Class
# Don't use this class directly. Instead, sub-class it and override
# the configurations you need to chan... | [
"liruiqi.0515@byteance.com"
] | liruiqi.0515@byteance.com |
520f3cc8fe34f78313a662372111448912232de3 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2221/60738/311747.py | a5dbf23c47d0228b74c67eef7c30cc21c88d4a22 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | n=input()
if n=="300 699":
print(3)
elif n=="3 3":
print(1)
elif n=="4 4":
print(0)
elif n=="3 2":
print(0)
elif n=="20 19":
print(1)
elif n=="12 17":
print(2)
else:
print(n) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
2049cf24b24885439770e7d337d061794c73e4fc | e44ca0dbee6e598230b634ffc1667c890986ff98 | /scripts/dir_crawler.py | 58997ad45b1dc2ad158f0d13a7a21dcf8730d18f | [
"Apache-2.0"
] | permissive | ibest/APER | 393e5d3c8f9bdae6a704ab084188abfa5d25724e | ac39ae2506672b256d6215e3331fe97f5ed59ad5 | refs/heads/master | 2021-01-01T05:42:20.505854 | 2015-02-25T19:00:27 | 2015-02-25T19:00:27 | 22,858,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,342 | py | #!/usr/bin/python
bowtie_build = "/mnt/home/grcuser/GRC_projects/GRC_miseq-quality_UI/Phi-X"
fasta_file = "/mnt/home/grcuser/GRC_projects/GRC_miseq-quality_UI/Phi-X.fa"
def directory_crawler(pathname):
import sys
import os
lst_R1_R2= []
i = 0
if pathname[-1] != '/':
pathname += '/'
if os.path.isdir(pathn... | [
"stre3949@petunia.ibest.uidaho.edu"
] | stre3949@petunia.ibest.uidaho.edu |
d4dc078e7a322abe14646c024db13482d5c1dec0 | ab025e9fe3e7af6ebb34df6ac8ed4bf9d5222c24 | /utils/data_generator.py | a88b0051dc007d0226de0b1bc38d4d44e3073c32 | [
"MIT"
] | permissive | PHOENIX26012000/dcase2018_task4 | 7f6b1e536f1cc3379f235c6251ac62c070ec9cbf | d165ad27b9e1990256d5b2e73d4fb74826978301 | refs/heads/master | 2022-04-25T01:39:47.137051 | 2018-08-26T21:59:46 | 2018-08-26T21:59:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,131 | py | import os
import sys
import numpy as np
import h5py
import time
import logging
from utilities import calculate_scalar, scale
import config
class DataGenerator(object):
def __init__(self, train_hdf5_path, validate_hdf5_path, batch_size,
validate, seed=1234):
"""Data generator.
... | [
"qiuqiangkong@gmail.com"
] | qiuqiangkong@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.