blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f5e3c26105be0d37b85658b740c617e799dc16cb | 21961be64d9cd4414f4a6d0b45eb20f727734929 | /K47 User Manual/7_miscellany/37_relay/Code/Python/relay.py | 0e58bdd428c46888823cc7f321177d007c601ec2 | [] | no_license | Alion3064492356/Sensors-for-RaspberryPi | 156f70c2ce81705a9f1372f9d037d0432a7ad54c | f81ca29280d8d27da795f1c9720747e3db9c20d6 | refs/heads/master | 2020-03-17T20:54:52.709446 | 2018-06-14T02:30:46 | 2018-06-14T02:30:46 | 133,934,753 | 0 | 0 | null | 2018-06-12T20:31:51 | 2018-05-18T09:40:42 | Python | UTF-8 | Python | false | false | 676 | py | #!/usr/bin/env python
import RPi.GPIO as GPIO
import time
RelayPin = 10
def setup():
GPIO.setmode(GPIO.BOARD) # Numbers GPIOs by physical location
GPIO.setup(RelayPin, GPIO.OUT)
def loop():
while True:
print '...relayd on'
GPIO.output(RelayPin, GPIO.HIGH)
time.sleep(0.5)
print 'relay off...'
G... | [
"3064492356@qq.com"
] | 3064492356@qq.com |
c6f9bfe889eb0278f68b7a17049662d5605c5285 | 5af277b5819d74e61374d1d78c303ac93c831cf5 | /axial/logging_utils.py | ef723570c0f02a331ebfc7220811665417690c53 | [
"Apache-2.0"
] | permissive | Ayoob7/google-research | a2d215afb31513bd59bc989e09f54667fe45704e | 727ec399ad17b4dd1f71ce69a26fc3b0371d9fa7 | refs/heads/master | 2022-11-11T03:10:53.216693 | 2020-06-26T17:13:45 | 2020-06-26T17:13:45 | 275,205,856 | 2 | 0 | Apache-2.0 | 2020-06-26T16:58:19 | 2020-06-26T16:58:18 | null | UTF-8 | Python | false | false | 4,459 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
1eb51bed6fada6957870d90071118e0bb172b20d | dc68820135a54bbf744425fce65da16c1101ad33 | /web/api/post_image.py | 397c4e2dafed832004870a01e5e6218a182b1a46 | [] | no_license | andrefreitas/feup-ldso-foodrific | 425cf9013427d183e0b23c5632115135dc4542f1 | ec2bd0361873d3eadd4f6a2fa60b23eb3b7e6ddf | refs/heads/master | 2021-01-10T14:30:24.011293 | 2015-10-04T11:01:09 | 2015-10-04T11:01:09 | 43,633,158 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | from datastore import *
from pages import BaseHandler
from google.appengine.api import images
class PostImage(BaseHandler):
def get(self):
post = getPostByID(int(self.request.get("id")))
self.response.headers['Content-Type'] = 'image/png'
self.response.out.write(post.photo)
| [
"p.andrefreitas@gmail.com"
] | p.andrefreitas@gmail.com |
92c3a0d5822904b02ee02cf30204b593268f8d36 | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/2/matrix_squaring_20200413235341.py | 1cded98ea6504881b7ef71c0979704ed33286f9f | [] | no_license | jearistiz/Statistical-Physics-Projects | 276a86407b32ded4e06b32efb2fadbd8eff8daed | d9c5b16a50856e148dc8604d92b6de3ea21fc552 | refs/heads/master | 2022-11-05T03:41:23.623050 | 2020-06-28T06:36:05 | 2020-06-28T06:36:05 | 254,909,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,000 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
import matplotlib.pyplot as plt
from time import time
import pandas as pd
def rho_free(x,xp,beta):
"""
Uso: devuelve elemento de matriz dsnsidad para el caso de una partícula libre en un toro infinito.
"""
return (2.*np.pi*beta)... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
b992a6459c6e930f7216efb9a7c3dd03ebc7e85e | 2f81d225594bbe655bc7d3442a1a41924d3829ff | /src/qrcode/tests.py | 098102082f5e0412f5c8fd51ab6e2fe2a4c8b623 | [] | no_license | znight99/inkscape_ext_barcode | 02c33ec4d1f9d0be329f9b268682c7077ff433e4 | 52079e1f739bd318f28959b6148fa935cd8cd6ac | refs/heads/master | 2021-08-22T11:11:10.351558 | 2017-11-30T02:33:55 | 2017-11-30T02:33:55 | 112,554,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,830 | py | import six
import qrcode
import qrcode.util
import qrcode.image.svg
try:
import qrcode.image.pure
import pymaging_png # ensure that PNG support is installed
except ImportError:
pymaging_png = None
from qrcode.util import (
MODE_NUMBER, MODE_ALPHA_NUM, MODE_8BIT_BYTE)
try:
import unittest2 as uni... | [
"znight@yeah.net"
] | znight@yeah.net |
b100acdda26eabc4c53277934e03fac670a2011b | fe7c5854aa07223cfcfcb117ada0dd8111f258fe | /controlLayer_server/Control Layer.py | 7865665e43047daf46a77bca27d98560e268aa13 | [] | no_license | amrmoastafa/CodeYield | ba27dd8aa6d4c47dc43550a64ae0df24c5b30cdb | 7715e651ee13ca2e982f8edb844e0e4f6512ec42 | refs/heads/master | 2022-07-04T13:36:28.033621 | 2020-05-12T11:29:16 | 2020-05-12T11:29:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,884 | py | import cv2 as cv
from image import detectImage
from NavBar import navBar
from cross_circle import detectIcon
from LabelBar import labelBarDetection
from LabelDetection import labelDetection
path = "data/test.png"
img = cv.imread(path)
imageHeight, imageWidth, imageChannels = img.shape
print(imageHeight,imageWidth)
# ... | [
"ahmedmoamen138@gmail.com"
] | ahmedmoamen138@gmail.com |
54157e46485cfe84e785669c8a896e72e4eba04c | 22fc34523f4de64a1e1eea707e01da79e425a043 | /srtmprofile/core/urls.py | 3eb617af2639a39dc20d463863e4fff390506028 | [
"MIT"
] | permissive | marcellobenigno/srtmprofile | 04cdcf4a1f127462dd37d94ec5f368b0f304b932 | 52a2550976ce4ecad2921e53a72ac2ec8a8459b5 | refs/heads/master | 2021-04-03T05:25:54.097968 | 2018-03-15T11:05:02 | 2018-03-15T11:05:02 | 124,605,246 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | from django.conf.urls import url
from . import views
app_name = 'core'
urlpatterns = [
url(r'^$', views.home, name='home'),
url(r'^roads.geojson$', views.roads_geojson, name='roads_geojson'),
url(r'^(?P<pk>\d+)/$', views.detail, name='detail'),
]
| [
"benigno.marcello@gmail.com"
] | benigno.marcello@gmail.com |
52a5fc44063f2e73239719204651a2f2b4b3e5e5 | 767b5482f3c5b9c2c85575c711e37561f5b8f198 | /engine/engine_lib/encoderlib.py | 27d186e1e4d625fe001279e1c8110f2ff708818f | [] | no_license | zhupite233/scaner | 8e39c903f295d06195be20067043087ec8baac4f | 7c29c02bca2247a82bcbb91cc86955cc27998c95 | refs/heads/master | 2020-05-18T03:23:03.459222 | 2019-04-15T04:29:10 | 2019-04-15T04:29:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,332 | py | #!/usr/bin/env python
"""
This is the encoding / decoding functions collection for DharmaEncoder. It
allows you to encode and decode various data formats.
(c) 2010 Nathan Hamiel
Email: nathan{at}neohaxor{dot}org
Hexsec Labs: http://hexsec.com/labs
This program is free software: you can redistribute it and/or modify
it... | [
"lixiang@yundun.com"
] | lixiang@yundun.com |
225aaf3cdf09abdad88c9d81dc062d86ce62c1f7 | 16bb2395e3e1c51450a242c1f13718734686c749 | /src/models/ERGM_CVX.py | c89b1232c8587cc1ae750850d3c32148d94d5507 | [
"MIT"
] | permissive | DanqingZ/CPS_TRC | 8a05edacf2aa2ec1f260aa08fa19515779869a6b | 47f98ffc909e2cc9759a0f273a521b3ba189a02f | refs/heads/master | 2021-05-01T01:56:35.471342 | 2019-08-26T17:15:32 | 2019-08-26T17:15:32 | 82,489,734 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,662 | py | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from cvxpy import *
class ERGM_CVX:
def __init__(self, E, C, V, E_all):
self.E = E
self.C = C
self.V = V
self.E_all = E_all
def run_CVX(self):
community = self.C.values.tolist()
input = np.zeros((len(self.C)*len(self.C),2))
c_matr... | [
"danqing0703@berkeley.edu"
] | danqing0703@berkeley.edu |
a397b67df4bf1082a8f0cd0373bcb051241d51ce | e008a757fc02e6fcc725cc079b373f7c5cfefa28 | /experiments/analysis_gtex_feature_explore.py | b96d4acfe61ff7ff19f4fa1616583928de208ebe | [] | no_license | sc130/AdaFDRpaper | 74e3b67548f0f2811ac1a4d170f379396dd60440 | c564f24a513cf505c4ac7ab07e960d4ef6be1b9b | refs/heads/master | 2022-01-22T16:59:57.285565 | 2019-07-31T18:34:35 | 2019-07-31T18:34:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | ## system settings
import matplotlib
matplotlib.use('Agg')
import logging
import os
import sys
import argparse
import adafdr.data_loader as dl
import adafdr.method as md
import time
import matplotlib.pyplot as plt
import pickle
def main(args):
# Set up parameters.
alpha = 0.01
n_itr = 1500
# Set up th... | [
"martinjzhang@gmail.com"
] | martinjzhang@gmail.com |
9591bbc70a14e16ba63940263937edaeb6058ed4 | 1de19b4527989a29a15cb9ccf3b40c6cbce6e906 | /http/http_client.py | 87802227635ca277305215dce27147758e79c4ec | [] | no_license | rjcostales/python | 468406184bb984e893c3217e74dabff0be4d24c1 | ab09a421a0b9d806a9c8dbef9dc166274a19b4d2 | refs/heads/master | 2021-01-17T11:48:14.512859 | 2018-11-07T20:46:50 | 2018-11-07T20:46:50 | 38,708,542 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | import http.client
url = 'www.python.org'
conn = http.client.HTTPConnection(url)
conn.request("GET", "/")
response = conn.getresponse()
print('\nstatus')
print(response.status)
print('\nmsg')
print(response.msg)
print('\nheaders')
print(response.getheaders())
print(response.getheader("date"))
print(response.gethea... | [
"jesse.costales@sigfig.com"
] | jesse.costales@sigfig.com |
d2534e7f9ed2539c6ec7228c87061771a60c4676 | 1d11288ec1a5d98dcf66c4ca45072ffd29901de0 | /mrp_extend/models/mrp_bom_line.py | 0731280072097855fc742fa848452a84c7f6fb29 | [] | no_license | pyrun13/addons | 14202e273c802cee391a68474a6bdc7cf062b25c | b81650d81e0a227dd4fc460846e53ce5e61a8cc1 | refs/heads/master | 2020-09-07T21:48:18.673226 | 2019-11-12T16:15:06 | 2019-11-12T16:15:06 | 220,921,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | from odoo import models, fields, api, exceptions
class MrpBomLine(models.Model):
_inherit = 'mrp.bom.line'
attrition_rate = fields.Float(string='损耗率(%)')
def write(self, vals):
attrition_rate = vals.get('attrition_rate', 0)
if attrition_rate < 0:
raise exceptions.ValidationEr... | [
"xiongjianhong@gmail.com"
] | xiongjianhong@gmail.com |
16576534e3c49ba3775bb663e766209077577950 | a467c2c1f691095c0e13db08dd3e939f57ec2096 | /myenv/lib/python2.7/warnings.py | a0bd7105fc010dcd2c1b0f38d8a6f32eca1a30aa | [] | no_license | Etheri/my-first-blog | 88e7e5dfd6b31206964cef3213c877e717c88d0c | af14f10029bc9168d5875f5978342279c8bdd416 | refs/heads/master | 2021-01-23T05:09:58.496749 | 2017-05-31T14:44:38 | 2017-05-31T14:44:38 | 92,956,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | /home/bednyakova/anaconda2/lib/python2.7/warnings.py | [
"bednyakova.a@gmail.com"
] | bednyakova.a@gmail.com |
ac338df45f6245caeacf3c665331db8a223ae9b2 | a1af0d3029d0dc2715a3ee55a1767351d18a6f9f | /LC/2115_find_recipes.py | 29bff113ed5592ca5f8200edface44f74795b78a | [] | no_license | zona-li/practice_in_python | b36c12112ec6b27cdb3b9bf83b315ac021d0c4e2 | 2906d12452ec059a7e39fb772391082a576591f0 | refs/heads/master | 2022-09-07T18:02:03.520425 | 2022-09-04T22:40:26 | 2022-09-04T22:40:26 | 100,322,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | # recipes = ["burger", "sandwich", "bread"]
# ingredients = [["sandwich","meat","bread"],["bread","meat"],["yeast","flour"]]
# supplies = ["yeast","flour","meat"]
from collections import Counter, defaultdict, deque
from typing import List
from traitlets import default
class Solution:
def findAllRecipes(self, reci... | [
"haoyang.zona@gmail.com"
] | haoyang.zona@gmail.com |
b11487f305e77ea0ce64db973c3e20b4db2f6b9a | 8cf28f19ec1d4ac902a5c53a3a4f23a21f125af4 | /list_dictionary.py | b5c6314af499e0bf32f6f2500a4bbd104d9d54b8 | [] | no_license | thydev/dojo-pythonbasic | e8ba6e986c8eefd45f15bf4d66802323da46e96e | 1c96ef09b2e7f9b65c5e9a6b78dce5fd7ca675e3 | refs/heads/master | 2021-01-25T14:55:49.532555 | 2018-03-05T16:18:21 | 2018-03-05T16:18:21 | 123,735,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | # Create a function that takes in two lists and creates a single dictionary.
# The first list contains keys and the second list contains the values.
# Assume the lists will be of equal length.
name = ["Anna", "Eli", "Pariece", "Brendan", "Amy", "Shane", "Oscar","Dojo", "coding"]
favorite_animal = ["horse", "cat", "s... | [
"nginchanthy@gmail.com"
] | nginchanthy@gmail.com |
a8b812a267f75e48be0ef972c448526f65c16f4c | d7f8d98b7ce4ca157d44f8124b374887c5a55f79 | /project1/critic/splitgd.py | d1d823dca5d1a5e538420a9032083b1bbb91af7b | [] | no_license | oaowren/IT3105---Artificial-Intelligence-Programming | 1961e4487c4bc73aea527ff3c7f57838e69986a5 | e98c68f231f665e1659e5efcb4e42a785ca64ca6 | refs/heads/master | 2023-05-21T16:48:49.271201 | 2021-05-31T12:26:57 | 2021-05-31T12:26:57 | 328,962,486 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,177 | py | import math
import tensorflow as tf
import numpy as np
# ************** Split Gradient Descent (SplitGD) **********************************
# This "exposes" the gradients during gradient descent by breaking the call to "fit" into two calls: tape.gradient
# and optimizer.apply_gradients. This enables intermediate modi... | [
"noreply@github.com"
] | noreply@github.com |
05af6eb6e60b4748045485fcbf36d751acf72583 | 0c7ff0ec35ba2bb38f99ef6ecb261ec33466dd52 | /Day1/day1Project.py | 2d1e56254a4ef4fd53ab5a15fdd51db183e510ec | [] | no_license | TheKinshu/100-Days-Python | 15cbacc608ee349cc9733a7032e10a359bebb731 | 293ad6b3e5f5208da84efbc5b2d2d395a5a53421 | refs/heads/master | 2023-04-18T08:21:30.361800 | 2021-05-02T18:48:39 | 2021-05-02T18:48:39 | 351,582,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | #1. Create a greeting for your program.
print("Welcome to the Band Name Generator.")
#2. Ask the user for the city that they grew up in.
city = input("What's name of the city you gre up in?\n")
#3. Ask the user for the name of a pet.
pet = input("What's your pet's name?\n")
#4. Combine the name of their city and pet... | [
"kc007919@gmail.com"
] | kc007919@gmail.com |
2e3138b7aebe9b0d818303c674da9144988dee2d | 2b0eab74af8d23244ff11699830f9bb10fbd717a | /helpers/mixins/unpack_tags_mixin.py | 5e6e4c11c733fc5368427ac90ddb23bf2e781302 | [] | no_license | alexandrenorman/mixeur | c7e25cd20b03c78b361cb40e3e359a6dc5d9b06b | 95d21cd6036a99c5f399b700a5426e9e2e17e878 | refs/heads/main | 2023-03-13T23:50:11.800627 | 2021-03-07T15:49:15 | 2021-03-07T15:49:15 | 345,384,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | from .unpack_ids_mixin import UnpackIdsMixin
class UnpackTagsMixin(UnpackIdsMixin):
"""
Mixin to apply on a ModelViewSet which transform registered fields from string containing ids to list of objects
"1,2,3" => [<Obj id=1>, <Obj id=2>, <Obj id=3>]
If a string passed, it will create a new instance of ... | [
"norman@xael.org"
] | norman@xael.org |
ea06dfdc414399d140d3ee55f76920fd6e8f97c9 | b76990d490d87517e01f60e3f010de273e473725 | /naive_bayesian_for_text.py | 3479592ef6ac9058ae8cf48977118cfc0a7bc267 | [] | no_license | manju838/machine_learing_algo_python | 10799bba48e9e850cff397e4ede4ae1ca61c679b | d679f2df11b963bd926842d46db7e6235ff511a8 | refs/heads/master | 2022-03-06T04:30:11.481001 | 2019-10-24T01:26:55 | 2019-10-24T01:26:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | import numpy as np
import text_preprocess
class NaiveBayesianForText:
def fit(self, X, y):
'''
Parameters
----------
X : shape (n_corpus, text_length)
Training corpus
y : shape (n_corpus,)
Target values
'''
self.__classes ... | [
"zhaoyi3@lenovo.com"
] | zhaoyi3@lenovo.com |
e231384f1e02475631385dcbf48de464cedf8272 | b08b7d8561b78cdf0b245c79b577bfbc4f1805b7 | /autoclicker.py | e1f3999aa77b27481fd1823968b72a10f5f9484e | [] | no_license | AadityaKandel/AutoClicker | a3a679630ebadb048acd4cc027dfb1c0c7629d34 | 0c6559e434e40533fecf4289cd69276f13e118b6 | refs/heads/main | 2023-02-05T11:03:25.744489 | 2020-12-29T11:59:49 | 2020-12-29T11:59:49 | 325,274,803 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,394 | py | try:
from tkinter import *
import pyautogui as pp
import keyboard
# Import Success
root = Tk()
mouse = StringVar()
mouse.set("0")
mousee = StringVar()
mousee.set("0")
def loc():
for i in range(0,999999999):
act.set('Activated [ Shift+Q [ Deactivate ] ]')
root.update()
locc.se... | [
"noreply@github.com"
] | noreply@github.com |
5e181f655825792a06adea89c63d5a696c7e7028 | 6dbd108198759b98ed044fc740d79d775553636a | /3.py | 5d37ad979bece10dcce4e04d6e362609616466bc | [] | no_license | linh6666/baitaptuan7-xstk | c5ca69e2b292b5c2aab6304f3242585240fff7f1 | 712922ede096a76704378e5ad9a5ed1229c81786 | refs/heads/main | 2023-08-18T19:07:13.313201 | 2021-10-09T06:14:19 | 2021-10-09T06:14:19 | 415,216,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | import numpy as np
a = np.zeros((2, 512 * 512), dtype=np.float32)
a[0, :] = 1.0
a[1, :] = 0.1
print("a.shape: ", a.shape)
print("mean a = ", np.mean(a))
© 2021 GitHub, Inc.
| [
"noreply@github.com"
] | noreply@github.com |
3b0761a6d612bc898fd451258885973dbdba8234 | de3e36fb6ed1a94c3b8b0313f426d4f74c858fad | /industry/hw3/checkers/svm_impl_shtanko.py | 601f22ae73bcdf347265b05fc1e140f934602597 | [] | no_license | leonshting/data_mining_in_action_2017 | 5415c542de56013bc5b2ef21137e2347bf2f1765 | baeb379213e44c6f38d73f845a5c673ce78f2cf3 | refs/heads/master | 2021-05-07T01:20:52.985394 | 2017-11-18T16:02:25 | 2017-11-18T16:02:25 | 110,332,082 | 0 | 0 | null | 2017-11-11T09:02:35 | 2017-11-11T09:02:35 | null | UTF-8 | Python | false | false | 3,678 | py | import numpy as np
from sklearn.base import BaseEstimator
SVM_PARAMS_DICT = {
'C': 100,
'random_state': 42,
'iters': 1000,
'batch_size': 10,
}
import numpy as np
from random import randint
import random
np.random.seed(42)
random.seed(42)
class MySVM(object):
def __init__(self, C=10000, batch... | [
"leonshting@gmail.com"
] | leonshting@gmail.com |
e6d4a5b68241ef8bf821e322cb11bd1f31db75b6 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/7/rci.py | 1499f78fdcb23fcbcc72afecd718862922797f9e | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
9e70985c1a04109922a692d38d13895082188238 | 8575c4ce854151973bb8f58b8a124f7b1816df45 | /Malu_Python_Scripts/badpix_match.py | eb4ee7f719267ce1e11e56c8d1213791dbaeb636 | [] | no_license | mlldantas/Gal_classification | e0a3ce375d0661ca1933b4d36ff20f6fb4d469cc | 81c392ec828709d30dea351a2fe27ec81bc6e69d | refs/heads/master | 2022-03-30T14:24:18.340900 | 2020-02-21T17:24:25 | 2020-02-21T17:24:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,834 | py | from __future__ import division
import numpy as np
import pandas as pd
dn4000_txt = '/home/mldantas/Dropbox/STARLIGHT/dn4000_MALU.txt'
lines = '/home/mldantas/Dropbox/STARLIGHT/lines.txt'
dn4000_table = np.loadtxt(dn4000_txt, dtype=object)
lines_table = np.loadtxt(lines, dtype=object)
bad_pix_info = np.lo... | [
"noreply@github.com"
] | noreply@github.com |
1e6ab766a2799d3338ba484409f9b162c8797b68 | 1d8b4d67e1f65b785cd11d006d0322af0d27ebcc | /[0725_현수]Naver_DSC2018/TypeAnalysis_Cpu.py | e860a910918d24f084a3f913c62b0b36624edccb | [] | no_license | kumakuma34/Naver-DataScienceCompetition-2018 | 4256ff548d3d8893620581dc49cf8ea37a2a9d0e | a5c447f327ca6d18879cc7ae59b5889a0292fedc | refs/heads/master | 2020-05-04T21:56:23.604022 | 2019-09-28T11:40:22 | 2019-09-28T11:40:22 | 179,494,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 25 22:06:02 2018
@author: qgqg2
"""
import pandas as pd
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
import collections
from sklearn import datasets, linear_model
# utf-8 encoding error, so I take 'cp1252'
df = pd.read_csv('Processed_Data.c... | [
"qgqg264@naver.com"
] | qgqg264@naver.com |
d9431f1fb2020f8d301376bed93ef53f3204cbf1 | 0c110eb32f2eaea5c65d40bda846ddc05757ced6 | /python_scripts/pimriscripts/mastersort/scripts_dir/p7432_run2M1.py | 39656c11ebf8cd9db049ce6d7b9a74d8b7e3f30a | [] | no_license | nyspisoccog/ks_scripts | 792148a288d1a9d808e397c1d2e93deda2580ff4 | 744b5a9dfa0f958062fc66e0331613faaaee5419 | refs/heads/master | 2021-01-18T14:22:25.291331 | 2018-10-15T13:08:24 | 2018-10-15T13:08:24 | 46,814,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7432', 'run2M1']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2480/e1331017/s1388354_5610_2M1_s30', '... | [
"katherine@Katherines-MacBook-Pro.local"
] | katherine@Katherines-MacBook-Pro.local |
e1f2f7cda8711e3ec07881200a6ea52f823dd4d3 | 1b98c70426580d6cebf36b6f9ed807fe7a9c0729 | /plots/plot-rx-overhead.py | f34b76b70508ad27093ed0e330314680583b85a3 | [] | no_license | jvimal/eyeq-tests | 54a1bba50d7019c07b09fdd147b831a5a823b5ba | d99d05d001d5a3d9fce53b66c6587f605245b555 | refs/heads/master | 2020-06-06T17:31:13.127695 | 2013-03-21T17:24:46 | 2013-03-21T17:24:46 | 8,303,987 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,946 | py | import plot_defaults
from helper import *
import math
parser = argparse.ArgumentParser()
parser.add_argument('--cols',
help="Columns to include for CPU usage",
action="store",
default='user,sys,sirq,hirq',
dest="cols")
parser.add_argumen... | [
"j.vimal@gmail.com"
] | j.vimal@gmail.com |
c8448d233f737831366635ce1250748f73103822 | 97aa47340e99f7be364f27cba87e499d942eab43 | /dice.py | e625e3d7c22d238043fb453f6c002adc02a49a65 | [] | no_license | eryilmazysf/assignments- | cbe0d0d761a0a3da819c456ea0d9accb86175a35 | c1b3084b39ea72ae14fdc4c564d94c26ca198806 | refs/heads/master | 2022-12-11T00:22:59.427632 | 2020-09-02T15:26:12 | 2020-09-02T15:26:12 | 277,168,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | import random
print("""
*************************
DİCE SİMULATİON
*************************
do not forget dice number between 1 and 8
""")
x=int(input("how many dice you will use:"))
while (x<1 or x>8): #for control whether valid or not
print("not valid value try again")
x = int(input("how many dice... | [
"yusuferyilmaz1819@gmail.com"
] | yusuferyilmaz1819@gmail.com |
8c59ff3068e701a47f55427121fb4d45c93db56c | 649e2af15011b3c6326436e91a9dd9af0c3a6f8f | /vnpy/app/spread_trading/engine.py | 0a6901795c79ebaf15b64c56c62d0f2272d57e13 | [
"MIT"
] | permissive | Loopring/vnpy | 6270662260c2fdbeed846f0370d1b5eecea7c7bf | f7945b23e29dab8bfdf064da6a6cb815bb755b17 | refs/heads/loopring-release | 2023-07-16T23:11:10.174728 | 2021-09-06T04:01:00 | 2021-09-06T04:01:00 | 277,985,227 | 21 | 6 | MIT | 2021-01-23T02:21:08 | 2020-07-08T03:59:17 | Python | UTF-8 | Python | false | false | 31,837 | py | import traceback
import importlib
import os
from typing import List, Dict, Set, Callable, Any, Type
from collections import defaultdict
from copy import copy
from pathlib import Path
from datetime import datetime, timedelta
from vnpy.event import EventEngine, Event
from vnpy.trader.engine import BaseEngine, MainEngine... | [
"xiaoyou.chen@foxmail.com"
] | xiaoyou.chen@foxmail.com |
0203f8b7a170b9c90a9503a129644d67e720066b | de121a951947f70f402079d288a78d35c85747b2 | /exercises/exercises_04.py | 79cb7651e375b500210a4054a4ae7430a01afd4a | [] | no_license | tpurnachander/requests-workshop | 56899be6c5520fb947d91676c11864d09b4489d6 | dac134558f141c482e0a52f19fdce37b7e7ba928 | refs/heads/master | 2023-03-10T19:00:31.012280 | 2021-02-19T12:08:54 | 2021-02-19T12:08:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,359 | py | import requests
import xml.etree.ElementTree as et
# Exercise 4.1
# Create a function create_xml_body_from_string()
# that returns a docstring (with triple double quotes)
# containing the following XML document:
# <payee>
# <name>John Smith</name>
# <address>
# <street>My street</street>
# <ci... | [
"bas@ontestautomation.com"
] | bas@ontestautomation.com |
6a6ebbb1c7f50e95986df884a5b0e3681842fb9a | c72dae37d94d8f9e80db232a9838244e2bb33fb2 | /src/teachzy/urls.py | 387858aeb2ebd754105a9a08dec06e7ba64f4989 | [] | no_license | Asifrahman96/DjangoTeachzy | 956ae3c2e9b917ec1bb181fb06babe32f7f48083 | 89e3a07b0beb12e328747a0bc369d731d63b10ec | refs/heads/master | 2023-02-24T03:08:17.274863 | 2021-01-28T20:18:41 | 2021-01-28T20:18:41 | 333,869,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('', include('pages.urls')),
path('csvs/', include('csvs.urls')),
path('teachers/', include('teachers.urls')),
path('accounts/', include... | [
"asifrahmananvar@gmail.com"
] | asifrahmananvar@gmail.com |
0aca2f6b09e65de9d040194775493f12fd174098 | 4d539867a53a3b9909bec1bfb1a49e189a2f1e20 | /EGAT/data_generator_attention_visual.py | ef32d63aab04eba48e9b3958108c0b8d5495fe4c | [
"MIT"
] | permissive | sailfish009/EGAT | 7a1d05c7c77e750903cc2ceb4b671d0f37a4ea60 | a03d6cbeb3e6d8f75edd608370256326d8fcb05b | refs/heads/main | 2023-01-15T10:13:17.142550 | 2020-11-22T14:20:28 | 2020-11-22T14:20:28 | 315,053,817 | 0 | 0 | MIT | 2020-11-22T14:15:56 | 2020-11-22T14:15:55 | null | UTF-8 | Python | false | false | 4,534 | py |
import os
import time
import pickle
import torch as t
import numpy as np
from torch.utils import data
import gzip
from time import time
from config import DefaultConfig
import torch
import dgl
import threading
class dataSet(data.Dataset):
def __init__(self, root_dir, protein_list_file):
super(dataSet, sel... | [
"sazan97@gmail.com"
] | sazan97@gmail.com |
4b91aba2fe0eca1c717453b7bb0a1adc8c7c999a | 436da49d82df227fc2654c7e3c6acc72d6a6aad6 | /hindi/migrations/0001_initial.py | 4c174394056b998f564cafad188f59419be3a23f | [] | no_license | mc639/Manavmitra | c91a2178f01427284d256ff152a4032f978e48a4 | 567d3b483d52e9285681916bfeda773a7b9ae0ed | refs/heads/master | 2020-07-30T14:41:55.736634 | 2019-09-23T05:02:26 | 2019-09-23T05:02:26 | 210,266,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,342 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-07-19 18:26
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import tinymce.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
... | [
"noreply@github.com"
] | noreply@github.com |
3918150f5542d26412b16d6b3636c338034e5b14 | 97aed55858f227a56fd79fec51f093e192db6c01 | /app/core/tests/test_models.py | fd2b496c9844804512d95c53c549b3b3e2ae01ab | [
"MIT"
] | permissive | harrydadson/recipe-app-api | 9fdc7d52fe7c2689808d605e65e241e82235cd05 | 63015fd390877ed6d5f41384c818cb9c7d870c52 | refs/heads/master | 2020-06-26T01:18:38.264636 | 2019-08-09T04:25:53 | 2019-08-09T04:25:53 | 173,390,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,313 | py | from django.test import TestCase
from django.contrib.auth import get_user_model
class ModelsTests(TestCase):
def test_create_user_with_email_successful(self):
"""Test creating a new user with an email is successful"""
email = "test@email.com"
password = 'testpass123'
user = get_use... | [
"harry.dadson@gmail.com"
] | harry.dadson@gmail.com |
ecaeb6fd0293027f32aa44c7a539c89169160328 | 9f2fdb37e1dd7fd926d45fc22ecab5d3c0d6c4ab | /LDA/22.2.netease_news.py | 4d8b231eef12af009b0754091faf983191997db0 | [] | no_license | luoguohao/python2_machine_learning | 40c67028bc46b0d81ee0f28fa692be75eabaff9a | 3f6c893cf977a9ffa8b2cb18a39947c5d59600ef | refs/heads/master | 2021-05-05T21:12:00.384861 | 2017-12-28T07:49:17 | 2017-12-28T07:49:17 | 115,509,874 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,126 | py | # !/usr/bin/python
# -*- coding:utf-8 -*-
import numpy as np
from gensim import corpora, models, similarities
from pprint import pprint
import time
# import logging
# logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)
def load_stopword():
f_stop = open('22.stopword.txt')... | [
"guohao.luo@tendcloud.com"
] | guohao.luo@tendcloud.com |
94516c3ae940d74c65e1973a2df7f40372e0d9d4 | ecbaab2349087c97f512cd144538369609623b2b | /src/output_terminal.py | caef97d8fdb494d726d544cba5a50894735caba5 | [] | no_license | ErikCalsson/RNA_binding_site_correlation | c1b38a04efaab284c7914aba70d52e04dfa73823 | fe4e64813f90d74200660f622d06df9958c61438 | refs/heads/master | 2023-08-23T15:00:24.329338 | 2021-11-01T07:27:58 | 2021-11-01T07:27:58 | 372,179,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | # imports extern
# imports intern
# import sequence_pre_calculation as calc
# import graph_creation as graph
import data_calculation as dat
# start terminal output
def use_terminal():
print("See output barGroupPC1.png or barGroupPC2.png for visualisation of final results")
# output message with statistic
... | [
"ecarlsson@techfak.uni-bielefeld.de"
] | ecarlsson@techfak.uni-bielefeld.de |
72596ce81af81043b7245963fcc8b2090e48c45d | 70f27f6215c5261f080cb8d12ceac5c484f2f147 | /app/django_models/person/models.py | 7af80c95b061fd6d88de2200ad80dfc6017a9b6c | [] | no_license | jordangarside/django-async-pytest-example | bf2fa32c7ffc5ebed3f2077483113b47987afd5a | 3e141eb1a048b80bd3f04c49068534f726a8c4c6 | refs/heads/master | 2022-12-02T20:51:33.364679 | 2020-08-14T16:47:22 | 2020-08-14T16:47:26 | 286,944,630 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | from django.db import models
from asgiref.sync import sync_to_async
from typing import TypeVar
TModel = TypeVar("TModel", bound=models.Model)
class BonfireAsyncManager(models.Manager): # type: ignore # excuse: typed in a stub
"""This class is typed via a typestub in async_manager.pyi. Make sure to add new manag... | [
"jordan.garside@robinhood.com"
] | jordan.garside@robinhood.com |
001b8e5d7167d9f7ae30d9510713bbc363cc653b | da934e0010380fdc6894063540f61b0ebc2c9ded | /nova/crypto.py | 1f35ffa3915dad74a002a55998c536549c4b8d2d | [
"Apache-2.0"
] | permissive | bopopescu/cc-2 | ed4f1dfe3c98f476ff619058d99855a16272d36b | 37444fb16b36743c439b0d6c3cac2347e0cc0a94 | refs/heads/master | 2022-11-23T03:57:12.255817 | 2014-10-02T06:10:46 | 2014-10-02T06:10:46 | 282,512,589 | 0 | 0 | Apache-2.0 | 2020-07-25T19:36:05 | 2020-07-25T19:36:05 | null | UTF-8 | Python | false | false | 7,863 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright [2010] [Anso Labs, LLC]
#
# 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
... | [
"anotherjesse@gmail.com"
] | anotherjesse@gmail.com |
a5e2debc3b4de63242c2bc5f62e4db0ae3a58645 | 44f07b81df56d7ea44775784a9697648fe481478 | /day8/faceapp/facedetect.py | ab3e244e889618a394e6791b7b7b4edf81d25532 | [] | no_license | shaadomanthra/cbpython-advanced | 436510c70deca4e1ef01517f87bba0e392583a88 | 86b613f89ca0b0cd8b243c157af1a2807e6ce605 | refs/heads/master | 2022-11-30T23:33:45.938854 | 2020-08-12T11:20:03 | 2020-08-12T11:20:03 | 276,316,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | ## detect face and draw rectangles
# import packages (pip install opencv-python)
from cv2 import cv2
import sys
# path for image and cascade
imagePath = 'images/f1.jpg'
cascPath = "haarcascade_frontalface_default.xml"
# Create the haar cascade
faceCascade = cv2.CascadeClassifier(cascPath)
# Read the image & convert... | [
"packetcode@gmail.com"
] | packetcode@gmail.com |
ea3871eaa7c9b6755d2963498e08b7d307615ebc | e840fe54e8fc774fce6e81b373c5f532cc35bfd1 | /Api/Flask/Daos/AccesoDatos/DaoEspectros.py | 29c5cebbb14da20aeb31c5fac0b43239ce5184ae | [] | no_license | jcamiloq/geospectre | a059cf594c13aa5e01d2d2696615c5e6c2e0d3bb | 199896571b8ecc38da8374ff35f66f3bc1f3d193 | refs/heads/master | 2022-12-12T04:40:42.159146 | 2020-09-15T14:50:40 | 2020-09-15T14:50:40 | 293,323,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,148 | py | from .Logica.Espectros import Espectros
class DaoEspectros:
def __init__(self, conexion):
self.conexion = conexion
def guardarEspectros(self, espectros):
sql_guardar = "INSERT INTO espectros (white, dark, capturado, resultado, sensores_id) VALUES "
sql_guardar += "(%s, %s, %s, %s, %s) ... | [
"j.juankquintero@gmail.com"
] | j.juankquintero@gmail.com |
35520773184de9bc6cbe60fe4ed6a427c4a1cb42 | 1c79e354726a60b939df18aa34ab63408553d078 | /py/examples/counter_broadcast.py | 9e30f02433102c7e848efbfe1fc87dd3a516e969 | [
"Apache-2.0"
] | permissive | feddelegrand7/wave | 9017fc7bbeef9233c1fd9497c3e7a4d6f6911e85 | ba002d47fcea688bf46fa1682e6c4a73cae0f8ee | refs/heads/master | 2023-02-03T13:06:41.894758 | 2020-12-18T00:09:14 | 2020-12-18T00:09:14 | 322,443,421 | 0 | 0 | Apache-2.0 | 2020-12-18T00:31:26 | 2020-12-18T00:10:14 | null | UTF-8 | Python | false | false | 647 | py | # Mode / Broadcast
# Launch the server in broadcast mode to synchronize browser state across users.
# Open `/demo` in multiple browsers and watch them synchronize in realtime.
# ---
from h2o_wave import main, app, Q, ui, pack
@app('/demo', mode='broadcast')
async def serve(q: Q):
count = q.app.count or 0
if '... | [
"prithvi@h2o.ai"
] | prithvi@h2o.ai |
e84fdec36800bc2eaf6a99f809432ca0be4287f2 | 84c4f9e14040502efddb258c243cb8e326f274c5 | /task_2_version_3/window_func.py | 0dfa95cde19f5daed407baf331d5f76a219b536e | [] | no_license | labkubia/lab | 7b6707eb2e1a1912e64dbda87bff44ca0aa84299 | 7e8ba89aa8638eb0f80855ba76fb4d852cc63a6e | refs/heads/master | 2021-09-07T15:14:05.243702 | 2018-02-24T19:23:04 | 2018-02-24T19:23:04 | 111,433,806 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | import numpy as np
def window_func(train_frame_set):
window = np.hanning(len(train_frame_set[0])) #different in matlab
#window = np.hamming(len(train_frame_set[0]))
train_frame_set=np.float64(train_frame_set)
frame_windowed_set=np.multiply(train_frame_set,window) # apply the window to the frames
... | [
"yuxinliu_oliver@outlook.com"
] | yuxinliu_oliver@outlook.com |
a174ca449539006233ff7a4acea1252aef8eb3eb | 0ab90ab559eab46b583b4b1fdd4a5bb3f55b7793 | /python/ray/experimental/workflow/common.py | 3c40c555e0eab6747e2da0c8fe41e1c1b84e7018 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | swag1ong/ray | b22cd5ebab96c30f15b00a7d044fdeb7543a4616 | fdbeef604692aa308973988b32405ec0d70f9f40 | refs/heads/master | 2023-06-25T21:55:44.398516 | 2021-07-26T00:39:24 | 2021-07-26T00:39:24 | 389,518,857 | 2 | 0 | Apache-2.0 | 2021-07-26T05:33:40 | 2021-07-26T05:33:39 | null | UTF-8 | Python | false | false | 7,714 | py | from enum import Enum, unique
from collections import deque
import re
from typing import Dict, List, Optional, Callable, Set, Iterator, Any
import unicodedata
import uuid
from dataclasses import dataclass
import ray
from ray import ObjectRef
# Alias types
StepID = str
WorkflowOutputType = ObjectRef
@unique
class W... | [
"noreply@github.com"
] | noreply@github.com |
112b11038313f4ecd80672439c01bf4361a7ebd4 | 158f2afa919a22e51b8c607f7a34b34e72db1b1a | /Astropy_Open_Error.py | 8e9b32e185a495bd99e348ea98ba9b54dc0e07f6 | [] | no_license | chrisfrohmaier/Code_Snippets | 96fb40a8a0ea46fbe1171432af388b9003b7a877 | 59d2ec591cf74805f7d0e299a4e6dcdd23acb6de | refs/heads/master | 2016-09-10T15:50:29.066747 | 2014-03-07T11:54:07 | 2014-03-07T11:54:07 | 14,979,633 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | from astropy.io import fits
try:
hdulist_multi_sci=fits.open('/Users/cf5g09/Documents/PTF_Transform/Icecube/refs/ptf_2924/C01/cd.ptf_2924_01_R_first.weight.fits')
#print '++++ multi_mask assign ', science_image
except IOError or Warning or UnboundLocalError:
print 'Cant open Science' | [
"cf5g09@soton.ac.uk"
] | cf5g09@soton.ac.uk |
5bc96ed5b2ff7057cfe5cf0f85b1852e0b311584 | afa0d5a97925273f7fb0befef697d36020df5787 | /packages/google-cloud-alloydb/google/cloud/alloydb_v1beta/services/alloy_db_admin/pagers.py | 1c442de8074c691d92fdefd2aa87e57390df9038 | [
"Apache-2.0"
] | permissive | scooter4j/google-cloud-python | dc7ae1ba6a33a62a40b617b806ec8ed723046b8b | 36b1cf08092d5c07c5971bb46edda7a9928166b1 | refs/heads/master | 2023-04-14T18:36:48.643436 | 2023-04-06T13:19:26 | 2023-04-06T13:19:26 | 188,338,673 | 0 | 0 | null | 2019-05-24T02:27:15 | 2019-05-24T02:27:14 | null | UTF-8 | Python | false | false | 20,951 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# 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... | [
"noreply@github.com"
] | noreply@github.com |
ec6528e726e97e6f27a0169c8a07854d0fd9957b | d8c12c88942f5e0d0db76885884653bb94076cac | /src/boi/parser.py | 1275ecf1b21e99ef4817ae2441b9f314e5d3a697 | [] | no_license | jkarns275/ELLie | 58c5648f3e1fbcdfb3198a51af97ebee0e5fc91a | 2ecfed86f7f4bc0a9eec36368e9fd3319ebaac6c | refs/heads/master | 2020-06-23T20:06:47.745014 | 2019-07-28T03:20:51 | 2019-07-28T03:20:51 | 198,739,697 | 0 | 0 | null | 2019-07-25T02:11:27 | 2019-07-25T02:11:26 | null | UTF-8 | Python | false | false | 11,449 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# CAVEAT UTILITOR
#
# This file was automatically generated by TatSu.
#
# https://pypi.python.org/pypi/tatsu/
#
# Any changes you make to it will be overwritten the next time
# the file is generated.
from __future__ import print_function, division, absolute_import, un... | [
"jkarns275@gmail.com"
] | jkarns275@gmail.com |
df43518630c7ca82014fbf33f662d1d4af83bbca | 03a7a46f3cc00486ff46edcf4c4390dd64e214e5 | /lab2stack.py | c23b9e575cae786df29e52c83243cb6579e50154 | [] | no_license | fadybarsoum/NetSec-Reliable-Interaction-Protocol-Implementation | 1f558a8eb400f73df7d193b49571c9f2b196fca3 | a9ad4c4a1d9bbae224f1d61288f4df3686e27c2e | refs/heads/master | 2021-01-19T23:02:54.065939 | 2017-05-03T19:57:33 | 2017-05-03T19:57:33 | 88,915,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | from src.rip import RIPProtocol | [
"fady.m.barsoum@gmail.com"
] | fady.m.barsoum@gmail.com |
9a71057ca86eb6931927a2afbb8ea436b8c68c37 | afd44f9bf1469418ae4709f48f2c3c188b45eb73 | /preprocessing/text_processor.py | 88a513a6b2da416865452ab9af1cab27c4987d68 | [] | no_license | zerebom/pytoolkit | 2ed359ec0ef612461dec24b57e746f99f212d540 | 078a2fa786a755d6fe0ee69dd8caecec833fb2fa | refs/heads/master | 2020-06-29T06:20:11.069967 | 2019-09-18T01:59:14 | 2019-09-18T01:59:14 | 200,461,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,065 | py | import urllib.request, urllib.error
import re
import MeCab
import mojimoji
from sklearn.feature_extraction.text import TfidfVectorizer
def get_stopword()->list:
slothlib_path = 'http://svn.sourceforge.jp/svnroot/slothlib/CSharp/Version1/SlothLib/NLP/Filter/StopWord/word/Japanese.txt'
slothlib_file = urllib.req... | [
"ice.choco.pudding.kokoro@gmail.com"
] | ice.choco.pudding.kokoro@gmail.com |
a80a155616ff956f9c128c0f892b37b9c3a26c9c | bc7f8b45413692fbf3b74287ed95ce6b2857c83c | /src/test_ocr.py | 18367e4d149ba270d56c26f52d3c540961f356a7 | [
"MIT"
] | permissive | mouradsm/vrpdr | c58b5d699d32f8858af2e7bd3bd203d56c806b97 | 700de74ac322ef2d02be36c070039dcaead918e5 | refs/heads/master | 2022-10-23T14:16:50.189659 | 2020-06-20T16:48:57 | 2020-06-20T16:48:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py | import cv2 as cv
import numpy as np
import argparse
import sys
import os.path
import logging
import matplotlib.pyplot as plt
from ocr import OCR
def plot_images(data, rows, cols, cmap='gray'):
if(len(data) > 0):
i = 0
for title, image in data.items():
#logging.debug(title)
... | [
"andreybicalho@gmail.com"
] | andreybicalho@gmail.com |
1a57dcb6dd5bc694a8c241ff875abb2a00b8f021 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/Prime Services/FPythonCode/PaymentFees.py | d79409eb38743fa11ab65e6b6c2c6f2b1438516b | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,474 | py | """-----------------------------------------------------------------------
MODULE
PaymentFees
DESCRIPTION
Date : 2012-09-19
Purpose : Returns the payment fees of a trade
Department and Desk : Prime Services
Requester : Danilo Mantoan
Developer : N... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
63d50f46e6763c50b438c35733b409c516416606 | 33cff13b90fdd628560baef8b3f6d68ceaad912c | /tests/test_commands/test_package_downloads.py | e4b7b094ed22878a396f1c1e911369fd769b9165 | [
"MIT"
] | permissive | rosdyana/dephell | 3139140d6f16288177705020a625897f91f2514b | 993a212ce17dda04a878ceac64854d809f3dc47b | refs/heads/master | 2020-08-06T09:38:21.150070 | 2019-09-27T16:58:23 | 2019-09-27T16:58:23 | 212,927,181 | 0 | 0 | MIT | 2019-10-05T01:22:23 | 2019-10-05T01:22:23 | null | UTF-8 | Python | false | false | 708 | py | # built-in
import json
# external
import pytest
# project
from dephell.commands import PackageDownloadsCommand
from dephell.config import Config
@pytest.mark.skipif(True, reason='disable while pypistat is down')
@pytest.mark.allow_hosts()
def test_package_downloads_command(capsys):
config = Config()
config.... | [
"master_fess@mail.ru"
] | master_fess@mail.ru |
b327266507aba7d35b343d48b9710ab0f36214ad | 0da165e72316bff15e8330a9d1789bd743d30689 | /quadcopter/agents/ddpg_v1/ddpg_actor.py | 83c47f1620e3d085e795d5e60e55546294fba7ba | [] | no_license | padickinson/RL-Quadcopter-2 | 1267ce761780ea5d79f705ca2286ae780b95298c | ebb70ac7f7252b69cd94111bbe0637a17196e87e | refs/heads/master | 2020-03-29T10:19:54.320868 | 2018-09-21T21:31:43 | 2018-09-21T21:31:43 | 149,799,738 | 0 | 0 | null | 2018-09-21T18:02:26 | 2018-09-21T18:02:26 | null | UTF-8 | Python | false | false | 2,945 | py | from keras import layers, models, optimizers
from keras import backend as K
class Actor:
"""Actor (Policy) Model."""
def __init__(self, state_size, action_size, action_low, action_high, lr, alpha):
"""Initialize parameters and build model.
Params
======
state_size (int): D... | [
"padickinson@gmail.com"
] | padickinson@gmail.com |
4abe47ce110bd58ce4ebf9615f794bbff3b4f553 | ee2f57ffb3c0bec9a196090022a623a342a9ce96 | /PythonApp/FlaskWebProject1/runserver.py | dbe79fd5e33d3bd051c2ce33ad1fd4476e00178c | [] | no_license | cherho0/pythonApp | c313f2b2869530a79b0cba26d68e2c61df5d5ad1 | 9c7c6fb851358bc85956e9c512ba23b80d8cc3b3 | refs/heads/master | 2021-01-20T03:54:37.721785 | 2017-09-07T03:49:49 | 2017-09-07T03:49:49 | 101,373,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | """
This script runs the FlaskWebProject1 application using a development server.
"""
from os import environ
from FlaskWebProject1 import app
import socket
if __name__ == '__main__':
#HOST = environ.get('SERVER_HOST', 'localhost')
hostname = socket.gethostname()
ip = socket.gethostbyname(hostname)
pri... | [
"czy11807@ly.com"
] | czy11807@ly.com |
5aa9f68fd54dbb2103720c1b33fda1491da44482 | 436743a9a77d417350e27736dd20f117bb8d625a | /desidlas/preprocess/preprocess.py | d8fe688a2564fb58b2aa680d07f00882c2a2c179 | [] | no_license | samwang141224/dla_cnn | b0a017030e6007016fa9b889890fc6057fe9c3d2 | 402f675b73d7c449aa67dbe969f3ad3ab3ea3951 | refs/heads/main | 2023-03-26T23:26:32.481646 | 2021-03-31T07:48:39 | 2021-03-31T07:48:39 | 309,691,930 | 0 | 0 | null | 2021-03-31T07:48:39 | 2020-11-03T13:17:42 | Jupyter Notebook | UTF-8 | Python | false | false | 17,675 | py | """ Code for pre-processing DESI data"""
''' Basic Recipe
0. Load the DESI mock spectrum
1. Resample to a constant dlambda/lambda dispersion
2. Renomalize the flux?
3. Generate a Sightline object with DLAs
4. Add labels
5. Write to disk (numpy or TF)
'''
import numpy as np
from desidlas.dla_cnn.spectra_utils import ... | [
"noreply@github.com"
] | noreply@github.com |
2976ce29416e292cb0e119e7f3705c0bdd786ad7 | bad59b62baf06c5a110dbf96ee9653a69b8ca4df | /soldjango/soldjango/settings.py | 1daa5ebe5b7896e0a20e718dac4263b34ae127d4 | [] | no_license | 45jihoon/Leon | 848db934898ef9fc838154919c254ae5f7fcb684 | 69d024469a518a1b40e450e3408291671b183718 | refs/heads/main | 2023-01-13T10:55:11.184173 | 2020-11-18T01:47:33 | 2020-11-18T01:47:33 | 313,471,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,122 | py | """
Django settings for soldjango project.
Generated by 'django-admin startproject' using Django 1.11.29.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... | [
"45jihoon@naver.com"
] | 45jihoon@naver.com |
ad21dddcaff52dd22e77f283ff4e11ab18a76100 | b8d0b260960e1c43b883049d68c15a7183df200b | /5_py_blog/blog_app/tests.py | ebafc4198267b4929abd66e68f76098e08839139 | [] | no_license | JAreina/python-django | 59ac92d0694522c1d096bed636409d9405c5caba | 66c7c301dec448217df6516198723e1ce987eab7 | refs/heads/master | 2020-03-27T18:34:59.821701 | 2018-09-07T07:49:35 | 2018-09-07T07:49:35 | 146,931,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,739 | py |
# Create your tests here.
from django.contrib.auth import get_user_model
from django.test import Client, TestCase
from django.urls import reverse
from .models import Post
class BlogTests(TestCase):
def setUp(self):
self.user = get_user_model().objects.create_user(
username='testuser',
... | [
"jareinafdez@gmail.com"
] | jareinafdez@gmail.com |
90ebb27f00615a63b07c8ff1cd495f77293c88ea | 8f784ca91cd56818dc6e38d5e602756a913e13b4 | /modbus_tcp_server/network/accept_thread.py | a512980848dd5a91ed2ce730cf546634df5968c6 | [
"MIT"
] | permissive | smok-serwis/modbus-tcp-server | 9a02a3c5e9d0875179903bc4171b4d782d6d48b9 | 558eca908b6762280a74b16d78d56dc047a9dace | refs/heads/master | 2023-06-14T01:26:07.299860 | 2021-07-15T13:59:15 | 2021-07-15T13:59:15 | 339,780,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,383 | py | import socket
import typing as tp
from satella.coding import silence_excs
from satella.coding.concurrent import TerminableThread
from .conn_thread import ConnectionThread
from ..data_source import BaseDataSource, TestingDataSource
from ..datagrams import MODBUSTCPMessage
from ..processor import ModbusProcessor
clas... | [
"piotr.maslanka@henrietta.com.pl"
] | piotr.maslanka@henrietta.com.pl |
7f3cd58d2ad66672684040b5b5587e8f52617096 | 1ae6034a53d60bee5c61208539cbb39143ec76e3 | /Motion detection game/ui.py | 5982fe204020dab34a2dd66c4d71613ee9d9a191 | [
"MIT"
] | permissive | harshmalik9423/Motion-Detection-Game | 2f60e77983d8dda746ffb4c7de907f6658dcb2fb | 49ad8c25360df34f4e33647dee7406e6397311de | refs/heads/master | 2022-08-23T12:52:48.089138 | 2020-05-25T10:56:48 | 2020-05-25T10:56:48 | 266,755,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,110 | py | from tkinter import *
import cv2
from tkinter import messagebox
import PIL.Image, PIL.ImageTk
window = Tk()
window.title("Welcome")
window.geometry('1500x1500')
########CODING FOR QUIT BUTTON MESSAGEBOX#########
def close_window():
MsgBox=messagebox.askquestion('Quit the game','Are you sure you want to quit the g... | [
"harshmalik2013@gmail.com"
] | harshmalik2013@gmail.com |
ac24192eb309aac4b2982be8519bf5c2b06906ea | 1326612e90a772bd6acbf0c9532cbcaefdec9f48 | /BiblioPixelAnimations/strip/Searchlights.py | 5bed4eba37d24cfa5a9789fec768858fa29d0c92 | [
"MIT"
] | permissive | russp81/BiblioPixelAnimations | cc2ad721ed60435950282ce09d95191bf09b1eb3 | 4184ace37200861cc721e5bd7a43014bd0bbcadf | refs/heads/master | 2021-01-17T21:01:22.832174 | 2016-09-16T06:43:06 | 2016-09-16T06:43:06 | 68,341,732 | 1 | 0 | null | 2016-09-16T00:23:29 | 2016-09-16T00:23:29 | null | UTF-8 | Python | false | false | 3,267 | py | from bibliopixel import LEDStrip
import bibliopixel.colors as colors
from bibliopixel.animation import BaseStripAnim
import random
class Searchlights(BaseStripAnim):
"""Three search lights sweeping at different speeds"""
def __init__(self, led, colors=[colors.MediumSeaGreen,colors.MediumPurple,colors.MediumV... | [
"bonnie.barrilleaux@gmail.com"
] | bonnie.barrilleaux@gmail.com |
38834c15b947bd3f1e865675bfc8c866c246b9e8 | d4f4293505926285a3449bd7aba29fb4fe07a51c | /wangyi/wangyi/settings.py | c4abd898d64cb8001578cd9120598fc255472092 | [] | no_license | fugui12345/- | 96078509e798e7b55af5632dfdf37969c727894c | ffb9f7d6295cd246d990ea35f28c2fce5035af19 | refs/heads/main | 2023-07-01T06:36:32.951094 | 2021-08-04T18:48:15 | 2021-08-04T18:48:15 | 392,793,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,147 | py | # Scrapy settings for wangyi project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topics/downloader-middleware.... | [
"noreply@github.com"
] | noreply@github.com |
c8d42762f1ba5f26bd5112890d47ecaef5bed717 | d992f4973bb2aa3c43dce5d4b3483c6212108c60 | /hw1/MachineConstants.py | d31a5e92fb49edff71974ce9b0112e2e8b76759d | [] | no_license | wesshih/astr427 | ece74e5e3ac7275ed50ba6613ed6980a2da6cc8a | b6dc28a02b0712f8e40a5d9ca5e371a660c070f2 | refs/heads/master | 2021-01-18T15:45:50.093209 | 2017-06-08T05:30:08 | 2017-06-08T05:30:08 | 86,681,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,939 | py | import numpy as np
'''
Wesley Shih
1237017
Astr 427 Homework 1
4/11/17
Problem 1: Machine Constants
The first problem of the homework asks us to empirically determine several
machine constants related to floating point numbers. These include the smallest number
epsilon that can be successfully added to or subracted ... | [
"wesshih@uw.edu"
] | wesshih@uw.edu |
caa1a4bff741d96aeec1525edabd69b711687a41 | 4b5b168ab84b4d40d7e7cc58ebc806287e0a8d82 | /tricky.py | 714693cb19a608edcafbec9ebb2a41ea15f87da0 | [] | no_license | gould-ann/challenges- | 5de5f14527f2ee0147514d364f193d78cec6a113 | 4784eb6c3caf494ee24e0e8c587ce626fc026fdd | refs/heads/master | 2020-03-18T18:32:35.402677 | 2018-05-28T03:57:15 | 2018-05-28T03:57:15 | 135,099,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | #https://www.hackerrank.com/challenges/maximum-subarray-sum/problem
import math #lol
# arr = [1, 2, 3]
# mod_number = 2
# max([sum( [arr[j] if str(bin(i))[2:].zfill(len(arr))[j] == "1" else 0 for j in range(len(arr))] ) % mod_number for i in range(2**len(arr))])
def max_subarray(arr, mod_number):
best_sum = 0
... | [
"anngould@iastate.edu"
] | anngould@iastate.edu |
4bccb67d59f443ca9b1876575c634bd2741ec643 | 0a3b70128f4de8ba3dc74decea6d349924d31907 | /mysite/bin/easy_install-2.7 | 9f3daab08a7378e652e37d5ba6778ad0a331647e | [] | no_license | ozknight/Django_Tutorials_OJT_Proof | 80c38b278b42f2ca72bd05206f84a359b780daeb | 8006ed69be3bae7e666e49c62f517fbd2f454420 | refs/heads/master | 2016-09-06T16:13:58.746020 | 2015-06-24T23:53:40 | 2015-06-24T23:53:40 | 37,992,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | 7 | #!/home/oz-knightwalker/Desktop/Django_Tutorials_OJT_Proof/mysite/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ozknightwalker@yahoo.com"
] | ozknightwalker@yahoo.com |
b1efe20d5ba4c2a9c279544113a1e2bd6cdf7018 | 2432996ac1615cd36d61f0feeff8a359d2b438d8 | /env/lib/python3.8/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-eth_hash.py | 1b22c286fe3f7300f269b0ec19044cd2c28cc11a | [
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"GPL-2.0-only",
"Apache-2.0"
] | permissive | Parveshdhull/AutoTyper | dd65d53ece7c13fbc1ead7ce372947483e05e2e3 | 7fabb30e15b770d790b69c2e4eaf9bbf5a4d180c | refs/heads/main | 2023-05-08T14:10:35.404160 | 2023-05-07T20:43:15 | 2023-05-07T20:43:15 | 315,415,751 | 26 | 18 | Apache-2.0 | 2023-05-07T20:43:16 | 2020-11-23T19:13:05 | Python | UTF-8 | Python | false | false | 611 | py | # ------------------------------------------------------------------
# Copyright (c) 2020 PyInstaller Development Team.
#
# This file is distributed under the terms of the GNU General Public
# License (version 2.0 or later).
#
# The full license is available in LICENSE.GPL.txt, distributed with
# this software.
#
# SPD... | [
"parvesh.dhullmonu@gmail.com"
] | parvesh.dhullmonu@gmail.com |
4c8db1dea09dd07cd75539c214a17c0ac7ae5b64 | 1738a24cc31c3e659384d9c3cafaf9d15b1eac52 | /ChatBot.py | e9bde94ee7ef2562b2d6bcedd554077b56e4a139 | [] | no_license | michaelcicero/PythonChatBot | 7e7bb54e6009b80698b898e468a1dc375019b6fc | e0f8d47e42b05e5823880d1c21534d9560050072 | refs/heads/master | 2022-12-09T20:07:04.335082 | 2020-09-09T20:55:24 | 2020-09-09T20:55:24 | 294,226,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,946 | py | # # - * - coding: utf-8 - * -
""" Eliza homework """
_author_="Michael Cicero"
import re
#find bye function
def findBye(a):
if(re.findall(r'bye', curInp, re.IGNORECASE)):
print("It was nice speaking with you. Goodbye")
quit()
#find ed function
def findEd(b):
l = b.split("... | [
"noreply@github.com"
] | noreply@github.com |
19566dd1b2d10137c2e3943ea5ac2e7ec000f503 | 55e14ece094383ca13ad22d638d545767a637327 | /ClassificationModel_TrainedW2V/repeat.py | adaa7b183171cce43ebab70c21964e334860e323 | [] | no_license | UnitForDataScience/Neptune-Classification | e16ede89d2e3afc434a787d018d99c2393525811 | 114d78c1fcfd1ec329636fde3401fdedd8d418ef | refs/heads/master | 2022-06-09T23:25:04.386608 | 2020-05-06T06:05:10 | 2020-05-06T06:05:10 | 261,607,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | import os
import main
for i in range(4):
os.system('python main.py')
| [
"asudatascience@datascience.dhcp.asu.edu"
] | asudatascience@datascience.dhcp.asu.edu |
607250c2ca29295053d3ba2e5639b4b102ba1fb8 | 5f5f9fb972d6c8236142413876fee737b11b0090 | /Assignment4/comp/code_lstm/max_predictions.py | 9da8ed5ca0836e69d7c306c3c2a0b5fe796f133f | [] | no_license | agarwal-ayushi/Machine-Learning-Assignments | c634d48996dd975874ff7383aac46e626bcb338d | 53262ba02ce440946e0aa92d6385f94bd79b32c5 | refs/heads/master | 2022-12-17T00:15:25.626464 | 2020-09-16T17:19:33 | 2020-09-16T17:19:33 | 235,383,698 | 1 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from models_rasha import Encoder_Rasha, Decoder_Rasha
import numpy as np
def to_device(data, device):
if isinstance(data,(list,tuple)):
return [to_device(x,device) for x in data]
return data.to(device)
device = torch.device(... | [
"ayushi.mnnit@gmail.com"
] | ayushi.mnnit@gmail.com |
36d202508d82d6e61d7e13af2d2f6b042afdbfe4 | 77fb4b9902a79a2bcc42105f1c62744cc869cd15 | /wignerd1.py | 0aae41925ad38d3c8112ac88bc28753c021972ef | [] | no_license | davidsdatascience/Algorithm-Development | 6dd3d35d6eeab1a3a019abca8b591950f7830754 | 57b0cf1a976ce7005fa05a79880a49d6bdd06822 | refs/heads/master | 2020-04-20T09:21:54.105597 | 2019-05-04T20:08:50 | 2019-05-04T20:08:50 | 168,763,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,354 | py | from scipy.special import jv, legendre, sph_harm, jacobi
from scipy.misc import factorial, comb
from numpy import floor, sqrt, sin, cos, exp, power
from math import pi
def wignerd(j,m,n=0,approx_lim=10):
'''
Wigner "small d" matrix. (Euler z-y-z convention)
example:
j = 2
m ... | [
"noreply@github.com"
] | noreply@github.com |
123de62f0fc26c6891df29d80121cecdcef6d869 | bdea01d7702bec417772442f54744a5abcab8090 | /contours.py | 133c0683fc36f14bed0b04a8bd385e80397e1ea8 | [] | no_license | arbaza/open-cv | 6e21565e34e9e208d39a8d391137d038cef930f0 | 576d4f210f1ca764f9ae8d442e730bd6ee9a798a | refs/heads/main | 2023-02-10T11:27:05.228090 | 2020-12-30T18:19:09 | 2020-12-30T18:19:09 | 325,618,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | import numpy as np
import cv2 as cv
img = cv.imread('Photos\Euro.jpg')
cv.imshow('image', img)
cv.waitKey(0)
#Grayscale
gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY)
blank = np.zeros(img.shape[:2], dtype = 'uint8')
cv.imshow('Blank', blank)
#blur
# blur = cv.GaussianBlur(gray, (5,5), cv.BORDER_DEFAULT)
# cv.imshow("Bl... | [
"arbaaz_arbazzz@yahoo.com"
] | arbaaz_arbazzz@yahoo.com |
78d7b71bc57e02874094e8d8369f2ea02d403828 | ab6b73cc1bd2501fca5b406a0bcd69b7b8b7f94b | /hackerrank/warm-up/sales-by-match.py | fb602ce970fa16f37a83476ebb9e068e686fa307 | [] | no_license | youngbin-ro/problem-solving | c2a57a4318dc66647a182418d9c07bf0615ff36b | 7b27e44144bc25fd0ad9928eb979c5522ab772d4 | refs/heads/master | 2023-02-05T07:18:34.926633 | 2020-12-21T13:16:08 | 2020-12-21T13:16:08 | 232,480,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | from collections import defaultdict
def sock_merchant(arr):
dic = defaultdict(int)
count = 0
for num in arr:
dic[num] += 1
if dic[num] % 2 == 0:
dic[num] = 0
count += 1
return count
if __name__ == "__main__":
arr_ = [10, 20, 20, 10, 10, 30, 50, 10, 20]
... | [
"youngbin.ro@gmail.com"
] | youngbin.ro@gmail.com |
ebc97dabe6ba4cd2d87aca268755945115d291e2 | 3447227dd54587eb8c0c7f5346ac158504f7a907 | /compass/ocean/tests/global_ocean/threads_test/__init__.py | 42883b53b746d85a52e069468c8ae411ba7c414e | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-2-Clause"
] | permissive | MPAS-Dev/compass | 5e2c1525224dd399bcf4f56f661df05e2ec197a6 | 0b7440f0aa77c1ae052922a39e646bd35c267661 | refs/heads/main | 2023-08-30T20:59:52.052430 | 2023-08-29T09:45:14 | 2023-08-29T09:45:14 | 310,409,977 | 10 | 26 | NOASSERTION | 2023-09-13T14:19:16 | 2020-11-05T20:28:25 | Python | UTF-8 | Python | false | false | 2,046 | py | from compass.validate import compare_variables
from compass.ocean.tests.global_ocean.forward import ForwardTestCase, \
ForwardStep
class ThreadsTest(ForwardTestCase):
"""
A test case for performing two short forward runs to make sure the results
are identical with 1 and 2 thread per MPI process
""... | [
"xylarstorm@gmail.com"
] | xylarstorm@gmail.com |
6114e7a67a5459c344b648dc4ae2266a17a375b1 | 3b8955841f6982c575331ac78ce91deb327902ee | /utils/ax.py | 858f4f79bc2837700f6fdd88f371a3710a7d33d6 | [] | no_license | kyshel/ich | 6c7b1e66ca28c7c633d800eb7f4d3ee76e05c056 | 1cd4a17a9abf63afa72195fffdc7051fd87eed45 | refs/heads/main | 2023-07-22T17:27:58.461595 | 2021-08-21T13:42:54 | 2021-08-21T13:42:54 | 370,445,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,300 | py | # general functions that often use
import os
import pickle
import json
import csv
from time import localtime, strftime
from pathlib import Path
import time
import glob
import re
import math
from decimal import Decimal
from pathlib import Path
import glob
import re
import torch # no need repro cause only save here
... | [
"11898075+kyshel@users.noreply.github.com"
] | 11898075+kyshel@users.noreply.github.com |
bfcd8e3ab880fe73ecee9e775da43d432b361f6b | 90e131d3f407984c6eb651702c8539986216173b | /transform_content.py | a3ce95a5672e53fece2b5fe04e3f02e34b05a9f6 | [] | no_license | EnVyNm/EnVy | 2333c3f7954b6706527a09aee369bfceff7a1ddb | e12b71a4a6ae716998ecb64e6a4f8b09bb10b6a6 | refs/heads/master | 2020-04-18T22:33:15.011208 | 2014-05-07T03:38:46 | 2014-05-07T03:38:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,618 | py | #!/usr/bin/env python
# Copyright 2008 Brett Slatkin
#
# 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 ag... | [
"envynm@gmail.com"
] | envynm@gmail.com |
b6223ed96517013e0969b1c9d814fc5c4699d324 | 9ee84830f4360c063c1bb9fe0d7312e5fdab47d9 | /例子-0911-02.py | 0e43c38a239c44c7dbc3d1b443786146afc9123d | [] | no_license | hcl621/python | 05974f23548f7afd5d8643d9cf1fd4f5b1937186 | af8972dc2918640451c13fa76447f2088054b38c | refs/heads/master | 2020-07-09T22:07:52.317034 | 2019-10-08T12:40:53 | 2019-10-08T12:40:53 | 204,094,003 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | #coding=utf-8
try:
j
except NameError as e:
print('catch error!!!')
| [
"noreply@github.com"
] | noreply@github.com |
448adf2f39782bfbffbcd858cbcdfd29fa0d2642 | d4822b0a4bf2279f31edf5eceddac884f77de5b0 | /order/permissions.py | 6f85f40a9a84eafa2238d36dbc52d85319088402 | [] | no_license | xizlt/api_sport | bb05fa36272782bd91796ac8acb72e16cb38d881 | 55bbccfb344528016e4f903bcadad6ffaa02db17 | refs/heads/master | 2023-03-05T02:32:33.215134 | 2021-02-21T21:49:28 | 2021-02-21T21:49:28 | 297,443,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | from rest_framework.permissions import SAFE_METHODS, BasePermission
class OrderPermission(BasePermission):
def has_object_permission(self, request, view, obj):
return bool(
request.method in SAFE_METHODS or
request.user and
request.user.is_authenticated and (obj.user ==... | [
"ivantreada@gmail.com"
] | ivantreada@gmail.com |
feaced22bf438e634a1320d815dfdf7b85c5bbe9 | 5f5fb1cec25f432a8cc1c73fb9943b0b45588042 | /Base/BaseElementEnmu.py | c2416f791cdbf7aa1296caec5b556acaa7dc11fd | [] | no_license | qijianxiaobai/Python-Appium | 732f64c8e982f1a660b1c45bdf3a73c692e04417 | caef97e5eaa6f739b08a85194bfb61a2666419b6 | refs/heads/master | 2020-04-11T11:36:43.266070 | 2018-12-17T10:10:02 | 2018-12-17T10:10:02 | 161,753,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py |
class Element(object):
# 常用操作关键字
find_element_by_id = "id"
find_elements_by_id = "ids"
INDEX = "index"
find_elements_by_xpath = "xpaths"
find_element_by_xpath = "xpath"
find_element_by_css_selector = "css"
find_element_by_class_name = "class_name"
CLICK = "click"
BACK = "back"
... | [
"ad2156@email.vccs.edu"
] | ad2156@email.vccs.edu |
d0ca2d9cd484b355ced743af6aebbbdb18d8529a | 3cf8d34cc1ea0ef7857742211bed333ee0400e63 | /46.py | 422649ee9f326b4384db1ce35c43258bbd08ace6 | [] | no_license | ElseVladimir/py_tasks | 2dd11130cae83af772f4cb89d04e80da9dbcf070 | bdfa6e4dbb06b67eb79f3a06ba4ab1bf6052d1a6 | refs/heads/master | 2023-01-27T21:54:18.911645 | 2020-12-02T15:51:55 | 2020-12-02T15:51:55 | 303,987,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,203 | py | """
В этой задаче вам необходимо воспользоваться API сайта artsy.net
API проекта Artsy предоставляет информацию о некоторых деятелях искусства, их работах, выставках.
В рамках данной задачи вам понадобятся сведения о деятелях искусства (назовем их, условно, художники).
Вам даны идентификаторы художников в базе Arts... | [
"voinvova95@gmail.com"
] | voinvova95@gmail.com |
d7551e573e1989b8a7920c2d5ef568749c8cd130 | 642716a67e15459d713217ed02aa38d56348ff89 | /SF_Movies/urls.py | 2462fc91656ad0ae785117573efd3b5c33275fe6 | [] | no_license | zxzhang/coding-challenge-tools | 42eaa2355ad66e82abe2ac6401d702f505d3ff06 | cfc8c3a446331d2f29dae4fe972cfa7f7fdcb25d | refs/heads/master | 2021-01-19T07:24:06.713307 | 2015-05-20T01:43:52 | 2015-05-20T01:43:52 | 34,290,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic import RedirectView
RedirectView.permanent = True
urlpatterns = [
url(r'^$', RedirectView.as_view(url='/movies')),
url(r'^movies/', include('movies.urls')),
url(r'^admin/', include(admin.site.urls)),
]
| [
"zxzhang1991@gmail.com"
] | zxzhang1991@gmail.com |
1638e966bc35966aa652f2387e6f29f7caad377c | 9c4c895d23f8109d6ddd8c26937e33d905665b6e | /testing/readfile.py | 6d4e684df232b8e6e6116a8e879e9fd3030994f6 | [] | no_license | shaybix/Raazi | 401b3b4cd8ef31248f9efb58d8750a25ad319718 | 1fee51d2bdfb0a023c51ae5bc906f03f4e055544 | refs/heads/master | 2021-01-21T21:39:43.959826 | 2016-03-21T00:42:02 | 2016-03-21T00:42:02 | 18,281,430 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | import sqlite3
connection = sqlite3.connect('sample.sqlite3')
cursor = connection.cursor()
output = cursor.execute('Select * from main')
f = open('sample2.txt', 'w')
fetch = cursor.fetchone()
#lines = []
#
#for line in f:
# lines.append(line)
#
#
#print lines[]
#print fetch[0]
#print "----------------"
#pri... | [
"shayba@shaybix.com"
] | shayba@shaybix.com |
74a2ad6e251baa847e24ec5c7ee551c2e7349fbe | a232988fe8f247fbd56f7a91748ccfbf73326265 | /blog/blog/views.py | 739eb639313cb9e904159fe63b5e39ce4fd5f797 | [] | no_license | Vigs16/hello-world | 32236f6258ce42e6d8f5ef5139ecd84090be37bd | 4212e0669944f22d0d3148516b97bf9fec95b72d | refs/heads/master | 2021-01-20T13:03:51.843003 | 2017-05-30T04:52:13 | 2017-05-30T04:52:13 | 90,442,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | from flask import render_template
from flask import request, redirect, url_for
from . import app
from .database import session, Entry
PAGINATE_BY = 10
@app.route("/")
@app.route("/page/<int:page>")
def entries(page=1):
# Zero-indexed page
page_index = page - 1
count = session.query(Entry).count()
s... | [
"vigs16@outlook.com"
] | vigs16@outlook.com |
1767ed91cd5ecb9dc4967b259a9c41f4baf56d84 | 093d2e689823e5716c46b09511d8adebb2320573 | /Python Competitive Program/count occurance in tuple.py | c4103e6f394595ad87dceed955728d81a0eb86fe | [] | no_license | gauravk268/Competitive_Coding | 02813a908e4cd023e4a7039997e750d1fdae6d92 | 783c246dbaf36425a5b7cb76b4e79e2b7ba1a10c | refs/heads/master | 2022-10-15T02:25:41.598723 | 2022-10-03T06:09:17 | 2022-10-03T06:09:17 | 235,630,000 | 20 | 22 | null | 2022-10-03T06:09:18 | 2020-01-22T17:45:32 | C++ | UTF-8 | Python | false | false | 138 | py |
# Count occurrences of an element
str=input("Enter the string : ")
word_count={char:str.count(char) for char in str}
print(word_count)
| [
"mishraravi179@gmail.com"
] | mishraravi179@gmail.com |
1755b870d7e1acc791f2b3b36cfe6ebb0e6e8cfe | ec3964d765f2a499fd017a4e2fb89d405c3070c9 | /basicapp/models.py | 9358d6cd70b0ab4d7b5c7d1096ec410afe5aa252 | [] | no_license | aryan1jain2/Trycycle | 77476e8e769185db42fc7bb2ecdac6ad1f7c102c | 00e63728fdcc7e8d4ec37964ed4ac8e5f856ad14 | refs/heads/main | 2023-03-02T03:31:55.354309 | 2021-02-13T10:52:10 | 2021-02-13T10:52:10 | 338,552,016 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,529 | py | from django.db import models
# Create your models here.
class userinfo(models.Model): #corresponds to customer table
first_name = models.CharField(max_length=100)
last_name = models.CharField(max_length=100)
# reg_no = models.CharField(max_length=100)
# room_no = models.CharField(max_length=100)
u... | [
"aryan1jain2@gmail.com"
] | aryan1jain2@gmail.com |
4670ba9b785563921ebd4e8eb26fa337062abb5b | 1625edfe28b4b0979fd32b4a3c5e55249a993fd5 | /baekjoon14915.py | 7648498a85fccf5a369e7197408b17d1726a754d | [] | no_license | beOk91/baekjoon2 | b8bf504c506c6278899d4107ecfe51974ef13f5e | 39569f8effb8e32405a7d74d98bdabcab783ec56 | refs/heads/master | 2023-05-11T20:11:19.015113 | 2020-09-14T23:58:49 | 2020-09-14T23:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | m,n=map(int,input().strip().split())
def conversion(m,n):
c="0123456789ABCDEF"
if m<n:
return str(c[m])
else:
return conversion(m//n,n)+str(c[m%n])
print(conversion(m,n)) | [
"be_ok91@naver.com"
] | be_ok91@naver.com |
5e2e9ee1d976ed4b9dae0c19f9e48d49c14d8d4a | d4442db5a7ab9db2b04fef640a9864f3fba54758 | /src/python/WMCore/Services/Dashboard/DashboardAPI.py | 9f90e4842ae59431378744395dc3404a30601661 | [] | no_license | stuartw/WMCore | fa25ff19ab5058a635d35d3c58a0ac56a3e079a1 | 38c39c43f7237fd316930839674ac9be3c0ee8cc | refs/heads/master | 2021-01-18T07:18:18.324604 | 2012-10-18T22:30:34 | 2012-10-18T22:30:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,823 | py | #!/usr/bin/python
"""
This is the Dashboard API Module for the Worker Node
"""
from WMCore.Services.Dashboard import apmon
import time
from types import DictType, StringType, ListType
#
# Methods for manipulating the apmon instance
#
# Internal attributes
apmonInstance = None
apmonInit = False
# Monalisa configura... | [
"sfoulkes@4525493e-7705-40b1-a816-d608a930855b"
] | sfoulkes@4525493e-7705-40b1-a816-d608a930855b |
92296cabb36cdc43ac8a55f79c416c6d3190cc2b | f332244831040530c8d4d3ff42ee4e06078ca22b | /cart/views.py | eed5c0e9c50a9e6889b30cec001caa5258639029 | [] | no_license | worlddeleteRin/cosmetics | f8f1bd8a3d9b6b149ae29126fa6f4bd6bb5e72b1 | f7d593f3206606d24084d6281bd6d5472654da25 | refs/heads/master | 2023-03-04T04:34:59.349269 | 2021-02-13T19:43:37 | 2021-02-13T19:43:37 | 296,117,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,561 | py | from django.shortcuts import render
from django.http import HttpResponse, HttpResponse, HttpResponseRedirect, JsonResponse
from django.shortcuts import render, get_object_or_404
from django.urls import reverse
from .models import *
from products.models import *
from collections import defaultdict
import pandas as p... | [
"noname@MacBook-Pro-Rin.local"
] | noname@MacBook-Pro-Rin.local |
631a2dcb65f7b01f394a4887810810476c69ec19 | 933376c11498a6567da8d7eb7d2675100895c3ba | /pyzoo/zoo/chronos/forecaster/tcn_forecaster.py | 1d2359d1cc2e54a9820e4f91c65c4ff5cd87761b | [
"Apache-2.0"
] | permissive | intel-analytics/analytics-zoo | 320a461765f86d41dd456b598b1cf1d51d57f4c4 | 7cc3e2849057d6429d03b1af0db13caae57960a5 | refs/heads/master | 2023-08-13T20:47:58.621714 | 2023-07-06T00:49:11 | 2023-07-06T00:49:11 | 90,328,920 | 3,104 | 996 | Apache-2.0 | 2023-09-06T01:51:18 | 2017-05-05T02:27:30 | Jupyter Notebook | UTF-8 | Python | false | false | 5,894 | py | #
# Copyright 2018 Analytics Zoo Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"noreply@github.com"
] | noreply@github.com |
e3bffa2e9644e317f97a756bd852d57fe28c1fae | 50d8f7a805546edd768a245a544d3a362b674a73 | /03.image_stitch/image_stitch.py | 41706bca2902d0384ccbd7b7ef406ad1dddb2547 | [
"MIT"
] | permissive | Taishuaibo/pycv-training | 0d3f812a7e57acc8496ced9ada5879ee9f8a33f5 | a9ad8755c82bff62e907099ebac7587422b28ccd | refs/heads/main | 2023-05-05T15:51:19.394705 | 2021-05-30T01:08:17 | 2021-05-30T01:08:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,064 | py | import cv2
import numpy as np
def cv_show(name, img):
cv2.imshow(name, img)
cv2.waitKey(0)
cv2.destroyAllWindows()
def createFeature(img):
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
# 建立SIFT生成器
sift = cv2.xfeatures2d.SIFT_create()
# 检测SIFT特征点,并计算特征描述子
(kps, features) = sift.detectAn... | [
"coscyber@gmail.com"
] | coscyber@gmail.com |
1bd71c4ddec832e0d21c4f00197795038c20d8e4 | e5b5e21451f21bab50ed40eba73fbb1146a166b5 | /ecommerceproject/cart/views.py | a97556adf7f9f6ee15a81b6041b207180a3c90e5 | [] | no_license | Ebyprogramz/grocerystore | 64b46f16c98523bca9b5664bb7437ba549cb51e6 | 91afce25766879d3891f8b1e46b42cef09560f0f | refs/heads/master | 2023-08-15T01:45:16.668194 | 2021-09-29T05:37:30 | 2021-09-29T05:37:30 | 410,158,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,121 | py | from django.shortcuts import render, redirect, get_object_or_404
from store.models import Product
from .models import Cart,Cart_Item
from django.core.exceptions import ObjectDoesNotExist
# Create your views here.
def cart_id(request):
cart=request.session.session_key
if not cart:
cart=request.session.c... | [
"eby.hanson@yahoo.in"
] | eby.hanson@yahoo.in |
65eb25457df6d77b41c68d357cd137870ad8fe15 | f23c47a5495799015c8b803420813a6ee8d6d2a4 | /options/base_options.py | b8f879c556236b9d0b3fbbe242454ad2911e94d6 | [] | no_license | eitan3/continuous_view_synthesis_gluon | d3f5e74553ddfb480ba24861cc4cd39acbb7a1ce | b3d90378f0e49a165ae85a9249ee3e5d208348eb | refs/heads/master | 2022-12-02T16:16:37.440990 | 2020-08-21T17:17:33 | 2020-08-21T17:17:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,605 | py | import argparse
import os
from util import util
class BaseOptions():
def __init__(self):
self.parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
self.initialized = False
self.isTrain = True
self.opt = None
def initialize(self):
# b... | [
"eitanhadar4@gmail.com"
] | eitanhadar4@gmail.com |
1cc38e8e931283f05c93bbaab335422b6e5f0351 | 61191088ee4a257b15fad0b8fe53641c70ca78f1 | /vectdraw/draw/colour.py | b318d51482b6c8587b1dc0087345978adbb1cebc | [] | no_license | ajpen/Vectdraw | 2e0394a6ff646f408a683033ef14692b6d7fd048 | 3b0d941b31f759737bd52210ac9738d1ef7b5aaa | refs/heads/master | 2022-11-14T09:51:58.772146 | 2020-07-08T21:40:53 | 2020-07-08T21:40:53 | 277,761,591 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py |
"""
Class for rgba colour representation
"""
class Colour(object):
red = 0
green = 0
blue = 0
alpha = 255
def __init__(self, rgba=None):
"""
Returns a colour instance. If nothing is passsed, the default
is 0,0, 0, 255 for red, green, blue and alpha respectively
:param rgba: ... | [
"anferneejervis@gmail.com"
] | anferneejervis@gmail.com |
98166df402980f456d8048e29aa8a450f9257655 | 80d879a552ce00a9bc73a26d0ddb74c278867b1f | /scripts/080_hilo_concrete.py | 4abf39886121d03650f95582dad542dc8c6f5d56 | [] | no_license | whiskyching/WS-EscobedoGroup | 4a25abe62fac91b82d3b1abd74ddc02af107457f | bd36d623ec2f60638fe3f330b9ad92c810804e8d | refs/heads/main | 2023-03-20T07:03:19.594765 | 2021-03-16T13:15:14 | 2021-03-16T13:15:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,119 | py | import os
import compas
from compas.utilities import pairwise
from compas_rhino.artists import MeshArtist
HERE = os.path.dirname(__file__)
DATA = os.path.join(HERE, '../data')
FILE = os.path.join(DATA, 'session.json')
session = compas.json_load(FILE)
mesh = session['mesh']
# =======================================... | [
"vanmelet@ethz.ch"
] | vanmelet@ethz.ch |
803fe059f40e4b681949b8595a78dbf9f235cec5 | 7fbd07ed9d23381f73d408cb3a845e94c81ca496 | /mysite/settings.py | 6e3598873769ed4c12d9fe5ad4c2b240db9f6a16 | [] | no_license | halildilaver/E-CommercewithDjango | a1be0ce32f07f7b8874571140f845a8bf1ecc205 | b867a87bf4c272c461a75a5bc50af0895bcb85f7 | refs/heads/master | 2020-06-03T14:51:21.131135 | 2019-06-12T17:08:06 | 2019-06-12T17:08:06 | 191,613,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,641 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"halildlvr@gmail.com"
] | halildlvr@gmail.com |
25239a74775ef3920fb3ecec660792a627e451bc | e69053a7cc99efc9ed560b32f378920613e77517 | /coins_optimal.py | 04fcbabd8130821f86d267f59ed2c2ff2b0ab462 | [] | no_license | aantillonl/CakeInterviewProblems | 41a2a719364440a11af6841ce3b2e334c207c456 | d671aa6b196a433963f62ef5217582d3f80c6c63 | refs/heads/master | 2021-08-23T12:13:22.811133 | 2017-12-04T21:34:52 | 2017-12-04T21:34:52 | 112,225,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | # Your quirky boss collects rare, old coins...
# They found out you're a programmer and asked you to solve something they've been wondering for a long time.
# Write a function that, given:
# an amount of money
# a list of coin denominations
# computes the number of ways to make the amount of money with coins of the a... | [
"aantillonl@gmail.com"
] | aantillonl@gmail.com |
69de6c1c8c8510d0f6fd116fd216eb399a3db19a | a3d73905af9102c6388b7501aa5067e4008d4c6a | /Programming Assignment 3/histogram.py | 73be3f9db0101a93413a4962ca936d1b64d4ba93 | [] | no_license | ShumbaBrown/CSCI-100 | b9a5b6c4446a5fdec3044d82eca3f59e502d5372 | 8eec33e39b26e10ddf9b8395fafe861cf1eb53ec | refs/heads/master | 2020-05-23T06:25:34.908759 | 2016-10-07T05:25:15 | 2016-10-07T05:25:15 | 70,217,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | def PrintHistogram(nums):
# Prints the histogram for a list of numbers
# Dictionary to hold each key (number) and value (number of occurences)
numbers = { }
# Iterate through all the values in the list
for i in nums:
# Increment the number of asterics for the corresponding value in the di... | [
"shumbabrownjc@gmail.com"
] | shumbabrownjc@gmail.com |
abe1005bd1d0c5882d3e588d9d3a1e4a7486c579 | 44197b58b52349b0557f4d2327be292d1c01ea50 | /test/test_data_62.py | 2dd9de7ce8a273d4da81d28b4534861d76aaff37 | [] | no_license | jonpurdy/netbox-swagger-python-client | 58b2b7984ea24a690d8910f6a6a496b99e5098f9 | 6bfe8cf3bb753c4d293dd56a541fac026642207f | refs/heads/master | 2021-06-28T03:16:09.670793 | 2017-09-17T18:15:54 | 2017-09-17T18:15:54 | 103,851,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | # coding: utf-8
"""
NetBox API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import u... | [
"jon@knowroaming.com"
] | jon@knowroaming.com |
b2b0b0aec75a1ce380bcdf00f88afd9502f5a719 | 5cfea22c5b2c401acae9d429915ed9ba7a73024a | /pausemenu/menues/mainmenu.py | bfd1af3639d97960f8a1cdb1a197442a06296a7d | [] | no_license | LookACastle/Oiram | f48fe3f0c9c6e3cc14737d37e5d91013414a4671 | 2302c929c874eb44fa38e6308d49e4d7a415095d | refs/heads/master | 2022-03-15T06:09:09.106758 | 2019-10-26T23:09:57 | 2019-10-26T23:09:57 | 108,526,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | from pausemenu.menuitem.button import *
from constants import *
class MainMenu:
def __init__(self, screen):
options = ["Resume", "Options", "Save", "Exit"]
actions = [resumeAction, optionAction, saveAction, quitAction]
self.objects = []
y = 0
maxwidth = 0
for i in range(0, len(options)):
button = Butto... | [
"martinpinholt@hotmail.com"
] | martinpinholt@hotmail.com |
52a6526d5fb09f675ab48c251acde7cab3c2e1fc | 3329be589ec0376495948d52c234a31f8ed07cf8 | /utils/ckpt_utils.py | 0ba977f956bdac4fa96f168c7e709765e5746e2b | [] | no_license | arthurtibame/tensorflow_api_utils | 908a68a9c7524b91a340c6a7a02d8d12b8a69ae4 | d6b5fd42dd3445989b9db15431bda0f2e8358c02 | refs/heads/main | 2023-01-18T21:46:20.804311 | 2020-11-26T08:21:48 | 2020-11-26T08:21:48 | 316,155,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,365 | py | import json
import os
def chk_model(model_name):
return os.path.isdir(model_name)
def download_ckpt(model_name):
r"""
if model folder not exists then download
the check point from tensorflow model zoo
model names are as following url: https://github.com/tensorflow/models/blob/master/research/obj... | [
"arthurtibame@gmail.com"
] | arthurtibame@gmail.com |
00c251321617e1466a341cd899b00c702a0c9568 | bf5058783d658d958bf84910721e828f1316dbbe | /SisconcBNB/apps/alumnos/forms.py | 3345e54865c0d2970346942ce640ffe139b4b2fa | [] | no_license | djangoadminn/jose | 3acfe5a2861305c94658f3177d61ea8c557b3d01 | 1567894037548b7b452ac202b972cf0b1867a064 | refs/heads/master | 2021-01-22T08:38:31.707532 | 2017-05-27T22:20:12 | 2017-05-27T22:20:12 | 92,627,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,729 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from django import forms
from SisconcBNB.apps.alumnos.models import Alumno
from SisconcBNB.apps.alumnos.models import Seccion
from SisconcBNB.apps.alumnos.models import Inscripcion
from SisconcBNB.apps.alumnos.models import Enfermedad
from SisconcBNB.apps.alumnos.models impo... | [
"josejavamax@hotmail.com"
] | josejavamax@hotmail.com |
6d11a2a08e99746fcf09d5f7a1e8b2a1c35a11e3 | 9716316eb0c5b5a1487866d37b58efc116511d22 | /charmdet/runReconstruction.py | 7e60609548ccbac61bb0a6d7f587dec8d911689f | [] | no_license | klleung/FairShip | 68245fcd042f47a5ed2feeaad1c2e84e5aa21241 | a7e67ac58387f651722068e8325513b5e0d6832a | refs/heads/master | 2020-06-06T23:02:00.991756 | 2019-07-19T12:23:35 | 2019-07-19T12:23:35 | 192,870,986 | 2 | 0 | null | 2019-06-20T07:26:44 | 2019-06-20T07:26:44 | null | UTF-8 | Python | false | false | 15,856 | py |
import os,subprocess,ROOT,time,multiprocessing
from rootpyPickler import Unpickler
from rootpyPickler import Pickler
import pwd
ncpus = int(multiprocessing.cpu_count()*3./4.)
pathToMacro = '$FAIRSHIP/charmdet/'
def count_python_processes(macroName):
username = pwd.getpwuid(os.getuid()).pw_name
callstring = "ps -f -... | [
"Thomas.Ruf@cern.ch"
] | Thomas.Ruf@cern.ch |
b3ffb1f7298e5fec7c80d71946a31e424ff4682d | f3a31d0692f0cc4deb5d23f9da38eb69623ca8d1 | /Dynamics/Finite-sized_SIAM/fig_4.py | 2ada6228f29e1b93cfd3e04bbda484ce20125030 | [] | no_license | soumyodipto/SIAM | f2039d5796412db1e2204b65f1b43189227c521b | 4c7a96684dff759d0da453ed437827dd1b3da0fd | refs/heads/master | 2021-09-09T09:25:10.994397 | 2018-03-14T19:01:36 | 2018-03-14T19:01:36 | 107,188,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,409 | py | from os import path
import h5py
import numpy as np
import matplotlib
import matplotlib.patches as mpatches
import pylab as plt
from matplotlib.ticker import AutoMinorLocator
from matplotlib.ticker import AutoMinorLocator
from matplotlib.ticker import FormatStrFormatter
majorFormatter = FormatStrFormatter('%g')
plt.r... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.