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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17b9d239bbde4ad756cdac742a21f3ba3903272b | ec596dbe13eb8741387e1b5ff754ef4c69da50dd | /py/compmatrix/plot.py | b14d7563c30090db7353e54648144bba216e90a7 | [] | no_license | mnurpeiissov/product-eng-interview | f922a513d37d924d8080036e0ae9fd532194aa49 | 413bb0bc4a9a20dae023b768c9e5369c24e8715d | refs/heads/master | 2023-04-04T00:51:54.632428 | 2021-04-05T09:14:44 | 2021-04-05T09:14:44 | 354,697,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,474 | py | import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import plotly.graph_objs as go
import data_utils
import plotly.figure_factory as ff
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
app = dash.Dash(__name__, e... | [
"mukhamet.nurpeiissov@mail.ru"
] | mukhamet.nurpeiissov@mail.ru |
9f80ecf1fc98619b13b9ef05a0d05d8bbd76e322 | f9317ba461c93656a36c96d6bc3ae5ae8c9f4899 | /data.py | 6e86de98858717307a608f075d5a95accce1ce56 | [] | no_license | jusa798/Neural-Network-Trading-Bot | 3fee3cd95f42ffe8920315b2398c9f8bc26c965e | 9b52935b1c85009116cef541445ff344c580aa1d | refs/heads/master | 2020-05-16T12:43:31.351039 | 2019-04-25T17:10:04 | 2019-04-25T17:10:04 | 183,053,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,087 | py | from nameko.rpc import rpc
from nameko.timer import timer
from oandapyV20 import API # the client
import oandapyV20.endpoints.pricing as pricing
import oandapyV20.endpoints.instruments as instruments
from pymongo import MongoClient
mongoclient = MongoClient('127.0.0.1')
db = mongoclient['historical_data... | [
"noreply@github.com"
] | noreply@github.com |
5ba5618f64a07ad878884f94a4af26b22dd8de0b | 670a91553df97adbb9d818787990d52424f6ce95 | /Resnet+FastRCNN+Django+web/fasterRCNN/predict_kitti.py | 70b0e5d9c5de9338eb614704779e69c2f01ac82d | [] | no_license | PelenJiang/Apple-Leaf-Disease-Detection | 1d14f93950174bf9a4711a8c5f6681e9746eaa56 | ad548f17e45757f6d9492d5a724447736a2c7b64 | refs/heads/master | 2023-02-22T16:39:47.452331 | 2022-02-23T04:20:37 | 2022-02-23T04:20:37 | 196,157,728 | 1 | 3 | null | 2023-02-15T18:13:40 | 2019-07-10T07:46:36 | Python | UTF-8 | Python | false | false | 7,435 | py | from __future__ import division
import os
os.environ["CUDA_VISIBLE_DEVICES"]=""
import cv2
import numpy as np
import pickle
import time
from keras_frcnn import config
from keras import backend as K
from keras.layers import Input
from keras.models import Model
from keras_frcnn import roi_helpers
import argparse
import o... | [
"iterator@hjr"
] | iterator@hjr |
651445c706a20e9d64ba374f98dfa874fbcff5a4 | bc3bf437611cf1fef5c0fe9475b42bce27c612d5 | /vehicle_final_competition/ParseDetect/_parse_datafield.py | bc43934d8959b77cfbf9c2d22c9959fba28ba9c0 | [] | no_license | wzd-sjtu/CanAbnormalDetection | 10e271a0262d1bb9f5aef2f2150f6e0c64076ce0 | 1c8609ca3ffd2e19f98c8ad4557c23cf640e936b | refs/heads/master | 2023-07-01T04:13:32.438085 | 2021-07-28T08:13:29 | 2021-07-28T08:13:29 | 365,096,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,460 | py |
import pandas as pd
import numpy as np
import time
from .used_class import *
threshold_num = 96
grad_threshold = 36
high_threshold_num = 8
high_grad_threshold = 10
combine_likely_grad_threshold = 96
class ParseData:
checksum_tag = 0
sensor_tag = 1
const_tag = 2
counter_tag = 3
multi_value_tag = ... | [
"wzdwxjwxw@sjtu.edu.cn"
] | wzdwxjwxw@sjtu.edu.cn |
b92d802785ab23084b78792db9bc55ba0cf6e4c8 | 5aca4640e00d943a6d2015349a643cfebe8c881f | /app.py | ee016ff61c138cdc4af3d3a3985e698fdefa014f | [] | no_license | cesardlinx/aquatik | 62399eb8294051d18dea230f4819dd7bdafd616d | 0b70600725585a840e338c6517f642ad18586e38 | refs/heads/master | 2020-04-26T04:20:06.554051 | 2019-03-11T00:01:36 | 2019-03-11T00:01:36 | 173,298,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,634 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import tkinter as tk
from frames.main import MainFrame
from frames.data import DataFrame
from frames.graph import GraphFrame
from frames.menu import MenuNotebook
from models.database import Database
from styles.style import Style
class Application(tk.Frame):
... | [
"davidpadilla.f22@gmail.com"
] | davidpadilla.f22@gmail.com |
a45e4f74466d3bd99dfbf9192e36490b52ee01d5 | dd792d3b72583eb87b713049e60e281a4185a3ba | /models/docker/eDN/model/features.py | ea0ea701bab2d64ef1647cd4b50b5211c8b0ba57 | [
"MIT"
] | permissive | TsotsosLab/SMILER | 59b9c3f5b7a7d9109924d4bce6d3edb5d03222e8 | 427ce783a4477db550dd8fe064a38e3b71db346e | refs/heads/master | 2023-07-22T18:39:26.495739 | 2022-11-25T21:35:07 | 2022-11-25T21:35:07 | 162,616,795 | 41 | 19 | NOASSERTION | 2023-07-06T21:37:59 | 2018-12-20T18:32:31 | MATLAB | UTF-8 | Python | false | false | 3,221 | py | """
Image features and operations on them
"""
import numpy as np
import scipy as sp
import numexpr
numexpr.set_num_threads(1)
numexpr.set_vml_num_threads(1)
import sthor
from sthor.model.slm import SequentialLayeredModel
from imageOps import convertRGB2YUV
def eDN_features(img, desc, outSize=None):
""" Compute... | [
"tkunic@rocketmail.com"
] | tkunic@rocketmail.com |
159024a76dd01ba2ea3e6bbbd52fdb0d78bb0c61 | 1e52f46f6dceb52b2b013280f40ff6d504ea370e | /card/serializers.py | 9df40e8d3499c0e7bad680ccfb9a9e49d948861b | [
"MIT"
] | permissive | LeonardoSaid/gypz_api | 87b4bd5b2ad939d4e1a94e45bbc55bcfa84b7014 | ec9426be27f372bf9f9b73931bdcf20ebf2cb008 | refs/heads/master | 2022-12-26T13:10:39.059565 | 2020-10-05T12:09:01 | 2020-10-05T12:09:01 | 296,459,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | from rest_framework import serializers
from .models import Card
class CardSerializer(serializers.ModelSerializer):
class Meta:
model = Card
fields = ('id', 'status', 'score', 'limit', 'user', 'created_at') | [
"leonardocosta013@gmail.com"
] | leonardocosta013@gmail.com |
8ddf4db48b7deacda11fe34f30c1f1e62ff575ef | 0e6354e400602b416d564781894b72b2f60baf29 | /python_sqlalchemy.py | 2f90d832fa31608f322c277f8577fca51141a2a0 | [] | no_license | LaxminarayanaV7416/MostlyPython | 2f324336f9b82461b460c1faf61f554e43fa4cb3 | 5af0e0133d4a2ceeb64ea2b15bb2a88762a72f8e | refs/heads/master | 2022-11-24T14:07:12.468112 | 2020-08-03T10:29:16 | 2020-08-03T10:29:16 | 272,762,506 | 2 | 1 | null | 2020-07-29T04:18:01 | 2020-06-16T16:46:56 | Python | UTF-8 | Python | false | false | 3,637 | py | # Lets conquer sqlalchemy for best ORM mapping
import pandas as pd
# lets try connecting to postgresql first by creating engine!
from sqlalchemy import create_engine, Table, Column, Integer, String, MetaData, ForeignKey
from sqlalchemy.sql import select, and_, or_, not_, text, func
engine = create_engine('postgresql+p... | [
"laxminarayana.vadnala@gmail.com"
] | laxminarayana.vadnala@gmail.com |
62b0573bc7f1504ca41457b4772e914c14441c06 | 11d6571fb3ca1229417740b46ad2fed318eed990 | /Hangman.py | d337940bc65bbe934e7a4a57072edc61e02a1cee | [] | no_license | Zen12345/RandomGames | 2eac2d998c3e0345794e45bb8374397ef9162205 | a3f90a36ea95e8112cb34e6e2f493ade7f09cace | refs/heads/master | 2020-05-22T06:16:49.498453 | 2019-05-19T16:23:17 | 2019-05-19T16:23:17 | 186,250,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,949 | py | word = 'Hello'.lower()
win = False
line = "________________________"
hangman = (
"""
_________
|/
|
|
|
|
|
|___
""",
"""
_________
|/ |
|
|... | [
"zenkoh@live.com"
] | zenkoh@live.com |
45e9fe97204b511b448cc560c310f7bc77bbcfd0 | 22d1ffff7fcf2146001598e1ac43da2e1ac34041 | /Bernard/SerpienskiRecursion.py | b5476b3682384f9a5974f07b6ca337f8eaf661e3 | [] | no_license | S-Luther/school-python | f9de543ab7272fd3b4566e1edd3d4629272498b5 | 5bc62ddd37df0fc2aa0c76ee1a5ff14b3a1917e9 | refs/heads/master | 2022-09-07T09:33:26.212777 | 2017-04-27T22:29:14 | 2017-04-27T22:29:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,503 | py | import turtle
def drawTriangle(left_x, left_y, top_x, top_y, right_x, right_y,color,myTurtle):
myTurtle.fillcolor(color)
myTurtle.up()
myTurtle.goto(left_x, left_y)
myTurtle.down()
myTurtle.begin_fill()
myTurtle.goto(top_x, top_y)
myTurtle.goto(right_x, right_y)
myTurtle.goto(le... | [
"bernardkintzing@gmail.com"
] | bernardkintzing@gmail.com |
92aff0f285a7fc190bc5abbeac9d0022d3928573 | e2e68e6bd765c372ff8efb1292280aeb23a81419 | /src/model/graph/translation.py | d3c6926222d1eddaddde4222b81cd3a5f50e75ae | [] | no_license | marcusvb/abm-orchestra | d0c8963d4a22442c6ffcb45b34408902be8ed092 | 2f96feb696ff8811c7453f0f64d53f5c7ebea0d1 | refs/heads/master | 2022-07-14T00:37:05.101628 | 2020-02-08T17:32:15 | 2020-02-08T17:32:15 | 234,281,743 | 0 | 0 | null | 2022-06-22T01:05:02 | 2020-01-16T09:21:16 | Python | UTF-8 | Python | false | false | 5,589 | py | import networkx as nx
import matplotlib.pyplot as plt
import numpy as np
src = None
G = nx.Graph()
viewing_range = None
def draw_graph(G, outer, path=None):
edges = []
for n1, n2, attr in G.edges(data=True):
attrs = (n1, n2, attr["weight"])
edges.append(attrs)
pos = nx.spring_layout(G)
... | [
"mbhjvanbergen@gmail.com"
] | mbhjvanbergen@gmail.com |
e7b36c21f59ad06459d4b86ada0988020ae3ef90 | 463c8ba5baad086d37819804af4ee10f43ab6dd5 | /Algorithm/190911/실수_연습문제3.py | 82ce02e942a893598cacf8b5c5949694673348f5 | [] | no_license | sooya14/TIL | dbbb0608d45ce273ddef6f7cea1b1195285f269d | 232b0d38d8f6ee2e6e5517bfd6a2a15cf1000dad | refs/heads/master | 2023-01-11T17:12:39.370178 | 2020-05-11T12:06:41 | 2020-05-11T12:06:41 | 195,916,241 | 0 | 0 | null | 2023-01-05T18:22:56 | 2019-07-09T02:17:42 | Jupyter Notebook | UTF-8 | Python | false | false | 169 | py |
def Bbit_print(i):
output = ''
for j in range(15, -1, -1):
output += '1' if i & (1 << j) else '0'
return output
a = 0xDEC
print(Bbit_print(a))
| [
"soosmile9653@gmail.com"
] | soosmile9653@gmail.com |
027fe1ba89bf94566735a3fa4a57415fa1d2299c | cfa6f749a0d91f1cdca01d807cbf953c73d548c9 | /section12.py | fc650ac8165e984dd6de28a2e017f0d3f1f3feb7 | [] | no_license | dydrb141/python-study | 5e379fe8dbca3ccda83ef8eae202d37cdf92780f | db27e190b098b4f7e2184ed7075fb0e8e34480a5 | refs/heads/master | 2022-12-08T21:42:49.543885 | 2020-08-10T04:45:13 | 2020-08-10T04:45:13 | 271,697,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,752 | py | # 파이썬 데이터베이스 연동 (sqlLIte)
# 데이터 생성 및 삽입
import sqlite3
import datetime
#삽입 날짜 생성
now = datetime.datetime.now()
print ('now', now)
nowDateTime = now.strftime('%Y-%m-%d %H:%M:$s')
print ('nowdatetiem:', nowDateTime)
#sqllite3
print('sqllie.veriosn', sqlite3.version)
print('sqllie.sqite_version', sqlite3.sqlite_versio... | [
"dydrb141@naver.com"
] | dydrb141@naver.com |
0a8c1bda01efa087814cb28828347ce423491459 | 1c3ba1dcad0057e37479792798d4d95f867a3f96 | /examples/indexes/example_ivf_pq.py | 4a3237e67fadb40d3c1e78c2562c6e6e323a20ec | [
"Apache-2.0",
"Python-2.0"
] | permissive | PahudPlus/pymilvus | 6d52e84df1ecdd4ee04b9543b7f17f8a1a8ec5ee | bb799829492e99f73e7ee8a14a8a1fa0813f0c18 | refs/heads/master | 2023-01-22T18:56:13.095486 | 2020-05-15T09:44:40 | 2020-05-15T09:44:40 | 264,456,880 | 0 | 0 | null | 2020-05-16T14:37:52 | 2020-05-16T14:37:52 | null | UTF-8 | Python | false | false | 1,673 | py | # This python shell demonstrate how to create IVF_PQ index
# and search
# Note that index IVF_PQ is not supported on server of GPU version,
# please make sure milvus server you used is on CPU version.
import random
from milvus import Milvus, IndexType, MetricType
from utils import gen_collection, insert_data
if __n... | [
"yinghao.zou@zilliz.com"
] | yinghao.zou@zilliz.com |
ea927b4e0c5bced254d280d852f4fa073af6c7a3 | 10a7d0650bf8379f231cae89f1fa76ca3d9bfb3b | /portfolio-project/jobs/views.py | 54fe9f04fb00bee0eb2fa95306551a40d4821376 | [] | no_license | HectorSanchez2000/HelloWorld-REST-Framework | c660ad10ecef7ad9b78e74884b5970726ebcc939 | 47ad52ea95f27e09a3b1a8cfb7944f16564660a0 | refs/heads/master | 2020-06-22T06:37:04.731675 | 2019-07-18T21:49:54 | 2019-07-18T21:49:54 | 197,660,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from django.shortcuts import render
from .models import HelloWorld
# Create your views here.
def home(request):
worlds = HelloWorld.objects
return render(request,'jobs/home.html', {'worlds': worlds})
| [
"noreply@github.com"
] | noreply@github.com |
ba50d67df374167270831ee86f66ac7d0f40ba3f | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/F/frabcus/p-francis.py | 16380646750da2ccabd56a5aaf6b52e69bb3b125 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | import scraperwiki
print "hello, world"
download = scraperwiki.scrape("http://un.org/")
print download
data = { 'foo': 10, 'bar': 'hello' }
scraperwiki.sqlite.save( ['foo'], data )
import scraperwiki
print "hello, world"
download = scraperwiki.scrape("http://un.org/")
print download
data = { 'foo': 10, 'bar': '... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
36343a288db95407a14e3b18bf8ff51b28721225 | 8f275de49b19bc19f9e5ac1488ab69e74716bca8 | /tests/test_basic.py | fdbef16b2fc6b7325cb920f0d900e62f446af7d5 | [
"MIT"
] | permissive | rastrea2r/rastrea2r-server | 0163982751b9939eafdee6a7f9962cdd9e59a0b8 | 3e4d26d06d02a32f309afaac1bdf82cada149c2a | refs/heads/master | 2021-06-09T06:26:55.781343 | 2019-09-28T17:00:15 | 2019-09-28T17:00:15 | 139,407,912 | 3 | 2 | MIT | 2021-04-29T20:25:14 | 2018-07-02T07:37:52 | Python | UTF-8 | Python | false | false | 4,228 | py |
import os
import rastrea2r_server
from rastrea2r_server import app, auth, config, db, user
import unittest
from base64 import b64encode
class BasicTestCase(unittest.TestCase):
""" Basic test cases """
TEST_USER = "testuser"
TEST_PWD = "testpasswd"
def setUp(self):
rastrea2r_server.app.confi... | [
"sudheendra_bhat@mcafee.com"
] | sudheendra_bhat@mcafee.com |
91022c1cd81004f297e498e29c5f0d8ef7dc05c1 | 01bedd0b28be03457e67f104b1d93f8a34cb8fd4 | /src/main/python/ambari_cli/__init__.py | 9ed83984bd3db60492c318c97898fb55f972f28a | [] | no_license | grozeille/ambari-cli | edbb0bcad6a15a25b06538f8f57bfa15d27d928d | 20655cb582e1cea01c697180181986d2fad236f5 | refs/heads/master | 2021-01-01T19:48:11.296118 | 2018-01-25T12:51:22 | 2018-01-25T12:51:22 | 98,689,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,898 | py | #!/usr/bin/env python
import logging
import os
import argparse
import json
import sys
def main(args=None):
# logging configuration
logFormatter = logging.Formatter("%(asctime)s [%(threadName)-12.12s] [%(levelname)-5.5s] %(message)s")
rootLogger = logging.getLogger()
rootLogger.setLevel(logging.INFO)
... | [
"mathias.kluba@gmail.com"
] | mathias.kluba@gmail.com |
62f04477c68537931b411f9665f862a275f40275 | 1bc8632f1b64eb40063924f5fc82aee20cd8a9a4 | /Scraper/tempoAfter.py | a48d431056afe10340b08b450737c883009b2cfa | [
"MIT"
] | permissive | lumierra/smart_news | 771e8bef36768e5efadf6f7b0fc1956e0df26040 | d73773b9d54fa520297a4dd222fff1b8ea3497ec | refs/heads/master | 2022-03-22T19:05:25.142457 | 2019-12-18T03:38:52 | 2019-12-18T03:38:52 | 195,634,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,945 | py | from textacy.preprocess import preprocess_text
from bs4 import BeautifulSoup
from tqdm import tqdm
import id_beritagar as indo
import requests
import datetime
import id_aldo
import sys
sys.path.insert(0, '/home/lumierra/smart_news/Database/')
import dbMongo
## Load NLP
nlp = id_aldo.load()
nlp_ner = indo.load()
## L... | [
"tripoernomoaji@gmail.com"
] | tripoernomoaji@gmail.com |
7575bf446c359895d17c9438fcd51be00a653e7a | 95655fcba8cd4afb545288f52fd4a4b973fec063 | /app1.py | 9fb1a107e786af158c0a433a04fb10de128ebdd6 | [] | no_license | straiker22/Programacion | 937b8648dddc43fc71f136449841c0f87a73ac41 | e04843ad15065efd187ba77701a6668f06470914 | refs/heads/master | 2023-05-11T19:08:15.270008 | 2021-05-25T01:47:14 | 2021-05-25T01:47:14 | 363,279,279 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | print("hola mundo")
print("hola mundo2") | [
"trinchera_22_97@hotmail.com"
] | trinchera_22_97@hotmail.com |
d99e269d291005bbf20999c07c713c7ec1bd9eae | f38bb187847005fc121bec01fe10042358004a87 | /OOPS/Class_Different_Method.py | cc90d789b976ebba90b7695484c12ec1eabb3040 | [] | no_license | loyolastalin/Python_Training_2020 | 17aaee735711ef3b4673479fb06f34fbf8bdba0b | dcee3c17615ff567b57afb67abbb45d63d72812a | refs/heads/master | 2023-08-14T23:44:43.897149 | 2021-10-05T08:20:28 | 2021-10-05T08:20:28 | 278,421,132 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | class MultipleMethod:
value = 100 # class level variable
def instance_method(self):
print('instance method')
@classmethod
def class_method(cls):
print('class_method ', cls.value)
@staticmethod
def static_method():
print('static_method')
a = MultipleMethod()
a.i... | [
"loyolastalin@gmail.com"
] | loyolastalin@gmail.com |
1da90d47e0baa7245379d835e6c7881cb1c35645 | 37ebf94fff151574a76e4eb839f4d264ba405691 | /code/shapenet_loader.py | 565f450e9a75d91d62e870d5f6f36203fccf2562 | [] | no_license | k-r-jain/unsupervised_landmarks | 0acba8c4d46c3077de299dff133d0229a3527156 | bb59aba5204557b38a6e8ff7575e0f1c66576b97 | refs/heads/master | 2020-05-17T10:48:38.131655 | 2019-06-02T17:28:05 | 2019-06-02T17:28:05 | 183,666,788 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,847 | py | import tensorflow as tf
import torch
import torchvision
from torchvision import transforms
from PIL import Image
import torch.nn as nn
import os
import numpy as np
from torch.utils.data import Dataset, DataLoader
import matplotlib.pyplot as plt
import torch.nn.functional as F
import torch.optim as optim
import random
... | [
"kjain@Knights.ucf.edu"
] | kjain@Knights.ucf.edu |
6c8de022ddb8fe728443eef1413f77549c184739 | af9ea63b54c56460f861e4767e0358992289b45d | /Help-Friends/set_partition/pa04.py | f17759e4553bf1ab0166c17e5d2e959017a6a06c | [] | no_license | CaoYouXin/myPython | 160aea5bb5c97ca81bd5710bfaf5bfb6bd07efee | 69d5ce8117b2716d19d713ba59f255856cbef30b | refs/heads/master | 2023-07-04T05:39:45.055451 | 2020-11-05T08:55:18 | 2020-11-05T08:55:18 | 394,208,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,796 | py | class Set:
def __init__(self,V):
self._elements = V
def Elements(self):
v = []
for i in self._elements:
v.append(i)
v.sort()
return v
class Partition:
def __init__(self,V):
self.Sets=[]
for i in V:
if V.coun... | [
"954382491@qq.com"
] | 954382491@qq.com |
db0075a312c5191fbe8ab1c749b93da07077d880 | 2eeda6bfea74cf746f8223274ee9ec25b9387526 | /dgCubeDemo/testString.py | 8641d86826c9af2d47311dc85fb3b364d42349e4 | [] | no_license | PowerDG/PycharmProjects | 74f6468964d64846d8c979260a51f375e5d0476d | 74a7f18be4a7337eef546e4bf3cc6320b9f5b39d | refs/heads/master | 2022-12-09T09:25:11.993089 | 2020-09-18T13:28:00 | 2020-09-18T13:28:00 | 287,977,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,391 | py | # !/usr/bin/env python
# -*- coding:utf-8 -*-
# outhor:xinlan time:
# 我是中国人
"""
https://zhuanlan.zhihu.com/p/52770875
我是中国人,
那你呢
"""
str1 = '我叫 %s,俺爹是 %s' % ('小王', '老王')
print(str1)
nameStr = '马爸爸'
moneyStr = '有钱'
print('用+将字符串合并,', nameStr + moneyStr)
# === 列表----[ ]
nameList = ['猴子', '马云', '王健林', '马化腾']
n... | [
"1049365046@qq.com"
] | 1049365046@qq.com |
9c2d8c52ddf70fc8024960109c57c450a6355d16 | a63e80fbb60a672ad87a74e9ed56616fb4809d72 | /Session19D.py | 84645d887444ccc6379d3ef31c2b16cf0850270f | [] | no_license | noorah98/python1 | ba2188b6417e8bcc32d89fedf1ba2457490312d8 | 398869a95c6a30430da1b5859e08c64ea91cff7b | refs/heads/master | 2020-12-18T11:19:32.983829 | 2020-04-03T05:26:51 | 2020-04-03T05:26:51 | 235,360,188 | 0 | 1 | null | 2020-07-23T02:21:56 | 2020-01-21T14:21:45 | Python | UTF-8 | Python | false | false | 259 | py |
import pack.One
pack.One.fun()
pack.One.show()
cRef = pack.One.CA()
"""
import pack.One as o
o.fun()
o.show()
cRef = o.CA()
"""
"""
from pack.One import *
fun()
show()
cRef = CA()
"""
"""
from pack.One import show
# fun() err
show()
# cRef = CA() err
""" | [
"basoornoorah@gmail.com"
] | basoornoorah@gmail.com |
5fa7ce1e855f5a132bd504c55451782a6702c15e | 6512d66fa77a4506708a77ba9e126469c0ca452e | /src/eventapp/utils.py | c37424e9160c6cf1c8a4ecdd08217b970e026b0e | [] | no_license | judith-tawiah/G8-Event-Registration-System | e5b1346fc4c6b3b18eec7f1e003062535c17e850 | 08e021fdc8117b1a179cbab0907dc1a34e980007 | refs/heads/master | 2022-12-23T21:06:49.628727 | 2020-09-26T11:24:29 | 2020-09-26T11:24:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,120 | py | from django.core.mail import EmailMessage
from eventapp.models import EventBooking, User
import datetime
class Util:
@staticmethod
def send_email(data):
email = EmailMessage(
subject=data['email_subject'], body=data['email_body'], to=[data['to_email']])
email.content_subtype = "tex... | [
"joe1989@live.com"
] | joe1989@live.com |
4acf6f9d637ab50c68fd86341c97c96e77851e51 | a7d81ecdaef444cb95c557a1fa1ee8b4c5cf1844 | /_students/parsa_habibi/homework2/dags/homework2.py | 73c5c654cd0de08586b4bf2e1c4a7d8c3480c55c | [
"MIT"
] | permissive | Phabibi/Synopsis | d019cc5c75a98677526054df7bc8abf2008ec6d5 | d689153eb0a0d078f08e5e220374c54f57c2ecc8 | refs/heads/master | 2020-06-20T09:12:12.184944 | 2019-07-29T23:39:53 | 2019-07-29T23:39:53 | 197,072,658 | 0 | 0 | null | 2019-07-15T21:07:57 | 2019-07-15T21:07:56 | null | UTF-8 | Python | false | false | 1,729 | py | import praw as pr
import pandas as pd
from datetime import datetime, timedelta
#Airflow
import airflow
from airflow import DAG
from airflow.operators.python_operator import PythonOperator
from airflow.operators.bash_operator import BashOperator
reddit = pr.Reddit(client_id='vptn_Gf-ohjL7Q', client_secret='Dvkk7N2R... | [
"phabibi@sfu.ca"
] | phabibi@sfu.ca |
511a12dcf6ad86e4c5a9d820d091e7c541027811 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03239/s021170085.py | 463b5e90f404a028b4f64d43dc4fefef0042eb47 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | def resolve():
n,T=map(int,input().split())
ans=10000
for i in range(n):
c,t=map(int,input().split())
if t<=T:
ans=min(ans,c)
if ans==10000:
print('TLE')
else:
print(ans)
if __name__ == '__main__':
resolve() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
480312fb4dd33c1c96bed2d89c5eda9c402cec34 | b7f3edb5b7c62174bed808079c3b21fb9ea51d52 | /third_party/blink/renderer/build/scripts/make_origin_trials.py | db5b93a998e28fcaa8ec63a52fc4e2229de671db | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 64bee65c921db7e78e25d08f1e98da2668b57be5 | refs/heads/webml | 2023-03-21T03:20:15.377034 | 2020-11-16T01:40:14 | 2020-11-16T01:40:14 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | Python | false | false | 5,714 | py | #!/usr/bin/env python
# Copyright (C) 2015 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list ... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
2f27f50db7be131dcf42cad932f5cec4de80535c | eec791eebce41bf7b07c0114eae86db7839911b2 | /config/production_setting.py | 08a1dd92ebbf864765c0b79f59f9f3e070a174ab | [] | no_license | jibingkun1/hmsc_text | bcba8ce295b8eea4aa0200f4dd748a9b083057bf | 9855eb152c3ee922aa3555ea2ea0cf2b94cf0352 | refs/heads/master | 2022-05-27T02:55:24.958612 | 2020-05-04T09:31:36 | 2020-05-04T09:31:36 | 261,131,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | DEBUG = False
SQLALCHEMY_DATABASE_URI = 'mysql://root:root@127.0.0.1/hmsc_db?charset=utf8'
SQLALCHEMY_TRACK_MODIFICATIONS = False #关闭对模型修改的监控 | [
"j837351979@163.com"
] | j837351979@163.com |
c4c4ccbd2c0b793fb79453c25f124a66643c2f62 | 8535bbc7781c4691880c935bd7025646f0dbb7c3 | /sum of square of digits.py | 56cc2426f15835c4fed720b0b451c4f4bf9814a9 | [] | no_license | Mahadev0317/Codekata | 3b2149f3116ebe4b48b2059b873544c27b23ff39 | c35fa0ed0c4870faea69152638f461e743a9ff69 | refs/heads/master | 2020-04-15T04:59:17.062947 | 2019-05-29T04:46:35 | 2019-05-29T04:46:35 | 164,404,727 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | n=list(input())
s=0
for i in n:
i=int(i)
s=s+(i**2)
print(s)
| [
"noreply@github.com"
] | noreply@github.com |
fa01e618a3d5d1ae2a96d267e0a63d3cb6f561e4 | d3988ce62799c233e06a109ebcb06764c3d21e2a | /alien_invasion/game_functions.py | 383aa434321bcef24d373fa2569911c95def069e | [] | no_license | Summerhackv/Alien_Invas | 283f5247e48210519d9cc0a59a57b99446d69517 | c3f0a878343f9ba32432c38a4d44453089996f26 | refs/heads/master | 2020-03-29T15:54:40.374563 | 2018-09-24T13:58:44 | 2018-09-24T13:58:44 | 150,087,060 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,962 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 15 22:23:19 2018
@author: Summerhack
"""
import sys
import pygame
from bullet import Bullet
from alien import Alien
def check_keydown_events(event,ai_settings, screen, ship, bullets):
"""响应按键"""
if event.key == pygame.K_RIGHT: #检测键盘向右
ship.moving_ri... | [
"summerhackv@163.com"
] | summerhackv@163.com |
7c301bf2de52f271696a5d9dbbaed9312112fc21 | 582f16c1c0db2db5c32fa8c1a4bf1e3313d561f6 | /venv/bin/easy_install-3.8 | 2dea10578d66fa8e9abf6b0d62e56bd33dcc4fdd | [] | no_license | adeleon1054/fastapi-stockscreen | e048eeef1ca394ec6b04184a769943c966dbc17a | 1662144b6e1948bb2e427d9f6dc6fd73e7ce2ff4 | refs/heads/master | 2022-12-05T13:43:08.765373 | 2020-08-26T22:18:17 | 2020-08-26T22:18:17 | 290,615,890 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 273 | 8 | #!/Users/asdruval/PycharmProjects/stockscreen/venv/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())
| [
"me@asdruval.com"
] | me@asdruval.com |
28e294ead831fac621f0bc524cdea08bdca809fa | bad2dd6da386c3e5771d85969329f40639457567 | /scripts/report_non_unicode_data.py | 56ee0749faf1bb1fccbde21c05862cd6784d03b4 | [
"BSD-3-Clause"
] | permissive | ucldc/harvester | 9300077ff680bbe1a9e86e3c0905ebf026410853 | b42846bf9d869e6f75dbb0b9f9e0e30273d3d35c | refs/heads/master | 2023-05-28T02:50:06.418969 | 2021-04-20T23:19:46 | 2021-04-20T23:19:46 | 15,175,482 | 5 | 4 | BSD-3-Clause | 2023-05-22T21:34:38 | 2013-12-13T22:22:26 | Python | UTF-8 | Python | false | false | 2,481 | py | '''run grabbing of new collection and updating in couch docs locally.
'''
import sys
import argparse
import Queue
import threading
import requests
import json
url_api_base = 'https://registry.cdlib.org/api/v1/collection/'
from harvester.post_processing.couchdb_runner import CouchDBWorker
from harvester.fetcher import... | [
"mredar@gmail.com"
] | mredar@gmail.com |
2358045598136f87583bfb602e34f757cb5c6c6d | cff08cd0aefb52f1cf2c5a8bc5c301c6a03b886e | /maskrcnn_benchmark/config/defaults_2d.py | 672946d117c798f5610a2b65bfd98d1a35a4af03 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zhupan007/Detection_3D | 5bc0c4f185889c08a531990a257af7f3af25fafa | 2fead7b8d754912a53fed6c5826d4d898a520237 | refs/heads/master | 2020-11-28T13:48:16.763314 | 2019-11-25T11:12:47 | 2019-11-25T11:12:47 | 212,738,109 | 1 | 0 | MIT | 2019-10-04T04:51:29 | 2019-10-04T04:51:29 | null | UTF-8 | Python | false | false | 11,394 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import os
from yacs.config import CfgNode as CN
# -----------------------------------------------------------------------------
# Convention about Training / Test specific parameters
# ------------------------------------------------------------... | [
"buaaxyz@yeah.net"
] | buaaxyz@yeah.net |
b7388cda678735599600396afb2733b7c6da0566 | a0977ce54adae33e387d9fbf34e63088283fbb2a | /watch/utils/render_page.py | 99cd222e11795813f4a4e0469c921573b9311f85 | [
"MIT"
] | permissive | adelinopds/watch | ba2064585fcea34def420e44a6f8a309e42eec02 | 5b6749dad03d12f8efc2edb55989a72b95965518 | refs/heads/master | 2023-06-13T23:56:48.701825 | 2021-07-07T20:54:07 | 2021-07-07T20:54:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,559 | py | from cx_Oracle import DatabaseError, OperationalError
from flask import flash, g, render_template, request
from watch import app
from .oracle import execute
def render_page(prepare_only=False):
data = None
statement = None
parameters = {}
endpoint = app.view_functions[request.endpoint]
if hasatt... | [
"30608516+alx-sdv@users.noreply.github.com"
] | 30608516+alx-sdv@users.noreply.github.com |
8ed0cf78993886a197122064e7528b3cde1952d6 | 977a21306d1747bc216dfd4bea6b311894e3d216 | /MYSQL/Dataframe数据在mysql中的存取.py | 9991721af2a03a33a648f15bb4faed4607ae8ad0 | [] | no_license | hua980/hellogithub | 58ad8816779cc1fd34350127841b5b7dbbfb503c | 20f3f4a2ffc7ca74dd10be6cd0af89808b90aaa0 | refs/heads/main | 2023-08-04T15:33:18.682521 | 2021-09-13T13:55:28 | 2021-09-13T13:55:28 | 390,965,264 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | import sqlalchemy as sqla
import pymysql
import pandas as pd
# 定义从数据库读取数据转换成dataframe函数
def sql_query(sql):
conn = pymysql.connect(host='localhost', user='root', passwd='123456', db='my_test', port=3306, charset='utf8')
cursor = conn.cursor()
cursor.execute(sql)
results = cursor.fetchall()
... | [
"noreply@github.com"
] | noreply@github.com |
eb708cc9a278893e28052e77aa5fd6ca1b44b33b | 84d823917033aa1b8f70258844f8232c8c7ddd29 | /catalogue/migrations/0005_auto_20180911_1111.py | 15a5fc945b078497beb82694ead06a5ed32dddbd | [] | no_license | csdbrass/CSDLibrary | ce8213279cd8ececa83651100d8f8e0786a230da | df662e8f1110fd0ae3a90549bd6f54d2ee6b04be | refs/heads/master | 2020-04-02T07:09:10.277460 | 2018-10-27T09:59:20 | 2018-10-27T09:59:20 | 154,183,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | # Generated by Django 2.1 on 2018-09-11 10:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('catalogue', '0004_auto_20180911_0940'),
]
operations = [
migrations.CreateModel(
name='Genre',
... | [
"david.dchdr.uk"
] | david.dchdr.uk |
dbff59cfd81df062750f88bfaa36478100c5bdbf | dcd83aeb799143b58956612fb0bfc0258d30f229 | /src/python/WorkflowInjector/Plugins/OfflineDQM.py | 3c5f175309cd22066ad4a130826404e7d945aa96 | [] | no_license | giffels/PRODAGENT | 67e3e841cfca7421caa505d03417b663a62d321b | c99608e3e349397fdd1b0b5c011bf4f33a1c3aad | refs/heads/master | 2021-01-01T05:51:52.200716 | 2012-10-24T13:22:34 | 2012-10-24T13:22:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,335 | py | #!/usr/bin/env python
"""
_OfflineDQM_
Plugin for injecting a set of analysis jobs for Offline DQM tools.
These jobs are set to process the entire dataset in a single job,
so the size of the dataset is pulled in and the split size
set to the number of files in the dataset
"""
import logging
from WorkflowInjec... | [
""
] | |
c058e5093d6a97f233203cc6cdb2119a59fccd5a | c1d79665102564f0a0b9291cc1efab1431324373 | /lib/python3.6/re.py | aa07b8a95fe727097c18deaf961dac823e73540b | [] | no_license | Sonalianildeshmukh/testing | e13715333523060d68abfdd60a0991c16b0e1ed2 | 986543f7dd8cb920a27f9ecaae8ff4484a010a22 | refs/heads/master | 2023-05-03T19:35:58.939588 | 2021-05-31T13:21:21 | 2021-05-31T13:21:21 | 115,976,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | /home/tanvi/anaconda3/lib/python3.6/re.py | [
"sonki@example.com"
] | sonki@example.com |
c41013fcbae7df51d04a6e80c96ad4de24752f18 | d0aade2edd6ba5750d70c70198a4bfe16356355e | /maskrcnn_benchmark/modeling/poolers.py | 754b5147485769c9de1ff6429e4a1300a0e27231 | [
"MIT"
] | permissive | mjq11302010044/RRPN_pytorch | ca3a6b781d49b80323671581ea0a5c13ca500a7a | a966f6f238c03498514742cde5cd98e51efb440c | refs/heads/master | 2022-08-29T07:29:20.311262 | 2020-10-16T02:29:19 | 2020-10-16T02:29:19 | 184,703,273 | 305 | 68 | MIT | 2020-04-30T06:37:19 | 2019-05-03T05:28:03 | Python | UTF-8 | Python | false | false | 7,295 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import torch
import torch.nn.functional as F
from torch import nn
from maskrcnn_benchmark.layers import ROIAlign
from maskrcnn_benchmark.layers import RROIAlign
from .utils import cat
class LevelMapper(object):
"""Determine which FPN level ... | [
"mjq11302010044@gmail.com"
] | mjq11302010044@gmail.com |
f18f451c15c3dbbcf06caf81ab364b442fe72a74 | 9954c82324bfef1b0bb351e091b27988e12fa94b | /spikebuilder/const_rate_spike_gen.py | 8f83af10e0d9371acbabbe77d56d3592ca1aafdb | [] | no_license | maharjun/InputBuilder | b79d1412915b91649c91781033e84a61a1a3def7 | 84c36995134a197ac10d3a4bdec68ad860905b51 | refs/heads/master | 2021-08-18T19:24:56.181209 | 2017-11-23T16:43:14 | 2017-11-23T16:44:30 | 111,830,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,064 | py | from . import BaseSpikeBuilder
from genericbuilder.propdecorators import requires_built
from numpy.random import mtrand
import numpy as np
mtgen = mtrand.binomial.__self__
class ConstRateSpikeBuilder(BaseSpikeBuilder):
"""
=======================
ConstRateSpikeBuilder
=======================
... | [
"arjun210493@gmail.com"
] | arjun210493@gmail.com |
cbd10e05457dc8a144a69dadf122b1e2fe01cb1b | e3682ff2ee6bc65977a3a1eed4c7684bbf4c965b | /nabilx.py | 8e6fc86554f5614a0399cb955c2067bd266d6a5f | [] | no_license | nabil-404/nabil-404x | 85b805e45b65133a229202bb6a381d58148cfa75 | c4c3f16b533a5516530665cce401663299f2a502 | refs/heads/master | 2022-12-11T10:29:53.098789 | 2020-09-14T05:52:34 | 2020-09-14T05:52:34 | 295,317,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,934 | py | #!/usr/bin/python2
#coding=utf-8
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
from mechanize import Browser
reload(sys)
sys.setdefaultencoding('utf8')
br = mechanize.Browse... | [
"noreply@github.com"
] | noreply@github.com |
abc5741ad3a4e8506952d62f6ad07a29f415d663 | f133a9321510559c53abac2a6c4e1d3dbf277514 | /Shop/migrations/0006_remove_shop_user.py | 1f68573f7a4f3391adcfde939a7ddd79fd87c457 | [] | no_license | robinsmaskey/Store-System | a8f018583576a25c21c7f32a74fbbf3598d912be | 4c58dbb5954c07b10a4d6d791fd6666f4f1d6d17 | refs/heads/main | 2023-08-13T09:58:03.545659 | 2021-10-14T05:59:57 | 2021-10-14T05:59:57 | 417,006,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | # Generated by Django 3.1.7 on 2021-09-13 16:07
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Shop', '0005_auto_20210913_2147'),
]
operations = [
migrations.RemoveField(
model_name='shop',
name='user',
),
]... | [
"rmaske45@gmail.com"
] | rmaske45@gmail.com |
8f80696625fe6c9f4b22523d0f91b7208e2e6da7 | e34e65175806c3f9700b890983ffc64ef1754e64 | /python/sparkdl/graph/utils.py | 5b891e3978d1d9b06d11cb1b13ec50a3a0a4ccc3 | [
"Apache-2.0",
"MIT"
] | permissive | allwefantasy/spark-deep-learning-toy | 19c17f9cd1c73f126302c550e3e5ffda594e77c9 | 9e9725c4ae336c1609d5c6b865ca4e931e375378 | refs/heads/master | 2020-03-28T08:57:48.175010 | 2018-10-31T13:53:09 | 2018-10-31T13:53:09 | 148,002,900 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,015 | py | #
# Copyright 2017 Databricks, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"allwefantasy@gmail.com"
] | allwefantasy@gmail.com |
2f7ca902a28ce3aa82ac108109bfd23ac72ac3d9 | d2aab976c2b03619572b55ff5cb0a4b7aff1badc | /intro/settings.py | 36fd753a55d952d5a76652a3d45bd6d78e2d8b6d | [] | no_license | Echohawkdown/django-tut | d8a6e60ffb4fa8d518e878c3476567db0ac65f81 | 42a4b71cc2a67a4046699d249c6e52eff181a920 | refs/heads/master | 2016-09-05T08:58:59.336880 | 2015-07-05T16:57:18 | 2015-07-05T16:57:18 | 38,576,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,697 | py | """
Django settings for intro project.
Generated by 'django-admin startproject' using Django 1.8.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths ... | [
"sheepish.alpaca@gmail.com"
] | sheepish.alpaca@gmail.com |
2067d61381590f7cafb9325a6b08cb0da795bd97 | 35ee928cfe943675ba6c1208949584f8120f08ff | /src/Unit_A/slam_03_c_find_cylinders_question.py | e51261702b97f425b4de1a56a4e37edf5615c02f | [] | no_license | krishnaallani/SLAM | 7c9657dba27e0c9d0fbf5e1c7a2414a5dd37b41b | ae77869ac1110b5d8afc47ad8c5787af5ca250b0 | refs/heads/master | 2021-05-31T23:23:08.244973 | 2016-05-21T02:33:25 | 2016-05-21T02:33:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | #!/usr/bin/env python
# For each cylinder in the scan, find its ray and depth.
# 03_c_find_cylinders
# Claus Brenner, 09 NOV 2012
from pylab import *
from lego_robot import *
# Find the derivative in scan data, ignoring invalid measurements.
def compute_derivative(scan, min_dist):
jumps = [ 0 ]
for i... | [
"allanis@oregonstate.edu"
] | allanis@oregonstate.edu |
e573961b6b4a97dad46ad243b21fea47ffb59910 | 39a904b9a103acfe63c4e467721541c2dc3df68f | /SkillFinderWeb/SkillFinderWeb/SkillFinderWeb/views.py | b962e5bed3cd488f84a76940b915d8cdcbd3de4c | [] | no_license | shawntabrizi/Skill-Finder | 1743332997e5631178bf8e5964d16164ebf72e68 | 9ba959cf55f895e8a255002aba07273fd7afd77b | refs/heads/master | 2022-11-14T12:04:34.493870 | 2020-07-13T17:56:02 | 2020-07-13T17:56:02 | 93,347,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,059 | py | """
Routes and views for the flask application.
"""
from SkillFinderWeb.mailparser import *
from datetime import datetime, timedelta
from flask import Flask, redirect, url_for, session, request, jsonify, render_template, Response, stream_with_context
from SkillFinderWeb import app, microsoft, db, table_service, Entity... | [
"shawntabrizi@gmail.com"
] | shawntabrizi@gmail.com |
7c4beb4c63680a1ee45c5c97a528c02e1ef70d08 | ae7ba9c83692cfcb39e95483d84610715930fe9e | /yubinbai/pcuva-problems/UVa 12493 stars/main.py | 779906f17e251db0fb19cfabdf8ad7b649c8263a | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | import sys
import math
def primeFactors(n):
i = 2
result = []
while i <= math.sqrt(n):
while n % i == 0:
result.append(i)
n /= i
i += 1
if n != 1:
result.append(n)
result.sort()
return result
sys.stdin = open('input.txt')
while True:
try:
... | [
"xenron@outlook.com"
] | xenron@outlook.com |
34537e63014e90915b087f8e7ab45e39eba4a445 | e5a2fc6034f04c512a6a05cde768b0c3cba2110b | /whatsapp/browser/methods.py | cca472d6767c5a0da3748471c4feb54b5e37dfb7 | [
"Apache-2.0"
] | permissive | jaobernardi/robosdocovid | b58bb202e402d6646f0319a2e7c825d65f736656 | e620b2951e5bdd9046f81abf38e767080a9695f4 | refs/heads/main | 2023-06-23T01:51:12.832379 | 2021-07-26T08:18:08 | 2021-07-26T08:18:08 | 378,197,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,805 | py | from structures import IO_Var, Config
from time import sleep
import os
import logging
import re
import difflib
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_... | [
"joao_bernardi@outlook.com"
] | joao_bernardi@outlook.com |
f0b36e876db026e32aeb47a005d47490db58f2bd | ff23e5c890216a1a63278ecb40cd7ac79ab7a4cd | /clients/client/python/test/test_update_recovery_flow_body.py | 91fe274624feee373ef8d631fc0e1e6dd405c9ab | [
"Apache-2.0"
] | permissive | ory/sdk | fcc212166a92de9d27b2dc8ff587dcd6919e53a0 | 7184e13464948d68964f9b605834e56e402ec78a | refs/heads/master | 2023-09-01T10:04:39.547228 | 2023-08-31T08:46:23 | 2023-08-31T08:46:23 | 230,928,630 | 130 | 85 | Apache-2.0 | 2023-08-14T11:09:31 | 2019-12-30T14:21:17 | C# | UTF-8 | Python | false | false | 1,293 | py | """
Ory APIs
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501
The version of the OpenAPI document: v1.1.51
Contact: support@ory.sh
Generated by: https://ope... | [
"3372410+aeneasr@users.noreply.github.com"
] | 3372410+aeneasr@users.noreply.github.com |
5438ba96fd162ae2e70bbb91ae576858d4e0be66 | f571d27e94600786d54af4ca51c030b35061ef76 | /slot_booking/interactors/storages/user_slot_storage_interface.py | 07b75ce41ae791600649beb348eefb9da12e3bd9 | [] | no_license | PUNEETH21/slot_booking | 7c45690396dbc111a70383e4195161fedd5e716c | 1d73f95f23076fa018b90b12c5ff8c8964c0e55b | refs/heads/master | 2022-11-06T01:51:25.185131 | 2020-06-09T04:08:44 | 2020-06-09T04:08:44 | 269,611,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | from abc import ABC
from abc import abstractmethod
from typing import List
class UserSlotStorageInterface(ABC):
@abstractmethod
def get_previous_slots(self, user_id: int, off_set: int, limit:int):
pass
@abstractmethod
def get_upcoming_slots(self, user_id: int):
pass
@abstractmet... | [
"ra@gmail.com"
] | ra@gmail.com |
faeb98b87b529091b354db981aaab9a7664aa97d | a59d20b9918df7cc17cfaf4bd1abaa73a086eb2a | /tfcnn_retraining.py | bc37e62d3d31befff38348e8f53c5da0d95d24cf | [] | no_license | yanqinghao/TFdeeplearning | 5da5e7f4462c539ae25f29a42f2c5bc3b4abd171 | 8ec4f99b6e73b9d0866bc3706e2807cfa3229c58 | refs/heads/master | 2018-12-10T13:45:35.552852 | 2018-09-13T09:52:49 | 2018-09-13T09:52:49 | 118,085,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,866 | py | import os
import tarfile
import _pickle as cPickle
import numpy as np
import urllib.request
import scipy.misc
cifar_link = 'https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz'
data_dir = 'temp'
if not os.path.isdir(data_dir):
os.makedirs(data_dir)
objects = ['airplane', 'automobile', 'bird', 'cat', 'deer', 'd... | [
"187280967@qq.com"
] | 187280967@qq.com |
28afd6508b5e70ecd02ae5d67d3c5db5da804f0d | 5691b6a00201ae6551394cc0f600780b8ecbfd22 | /project_euler/56.py | 8bb4b44f0c3874aa369fe36d52ebfaec7696527a | [
"MIT"
] | permissive | huangshenno1/algo | 15c367ab41bb8bdb6bc133365cb285a7c568545a | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | refs/heads/master | 2021-01-17T10:17:41.625025 | 2016-04-11T07:17:43 | 2016-04-11T07:17:43 | 29,778,231 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | digitSum = lambda x: sum([int(i) for i in str(x)])
x = [i**j for i in xrange(1, 100) for j in xrange(1, 100)]
print max(map(digitSum, x))
| [
"huangshenno1@gmail.com"
] | huangshenno1@gmail.com |
8cba1ddf95347822fa4c1f65e73e047df90f1796 | 9d41b0d5c1fcc1521173e3a96f8ae6a029da70a5 | /rockpaperscissors.py | 4ce4f000d1de2723af6d234e14dd5b6dbd6810c0 | [] | no_license | cmerriman04/Python-Rock-Paper-Scissors | 39041a3b15d66529deb60843d14b0ac047b7c7bc | 0ab140f92c7c0d68f40bef3baf2134c1b56bd8dd | refs/heads/master | 2020-03-10T01:59:07.881489 | 2018-04-12T00:11:37 | 2018-04-12T00:11:37 | 129,124,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | import random
import os
import re
os.system('cls' if os.name == 'nt' else 'clear')
while(1 < 2):
print "Rock, Paper, Scissors, Shoot!"
uChoice = raw_input("Choose your weapon -- [R]ock, [P]aper, or [S]cissors: ")
if not re.match("[SsRrPp]", uChoice):
print "Please choose a letter: "
print "Rock, Paper, ... | [
"noreply@github.com"
] | noreply@github.com |
1c3d6c73d7e4087de4dede686079077d72f76e64 | 87270006fa5147fa63388c1f6549aa1de5b0d7e3 | /app/api.py | 22071cad2adea887c47c0ab29a0733371341253d | [
"MIT"
] | permissive | badrap/python-app-example | 25ac3e2662e5be3d5abca3d451bc6904d810150c | f31a4bab8dff4147369f3d39a5500c91079b2dc9 | refs/heads/main | 2023-05-12T23:58:54.577008 | 2021-06-03T13:31:40 | 2021-06-03T13:31:40 | 329,294,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,006 | py | import os
import json
import urllib
import requests
API_URL = os.environ["API_URL"]
API_TOKEN = os.environ["API_TOKEN"]
def api_request(method, path, raise_for_status=True, headers=None, timeout=15, **kwargs):
url = urllib.parse.urljoin(API_URL + "/", "./" + path)
headers = dict(headers) if headers else {}
... | [
"jviide@iki.fi"
] | jviide@iki.fi |
a97a6f1247c8a556a7c85195b1a42d13004c0e7a | b71c4180470f118a2f251c64646bbf7b2c671548 | /sql_judge/view/qt_view/data_generation/tables_data_generation_tab_view.py | 013ea027daa9fe8b8fe77bf17e00d4b7fc551b88 | [
"MIT"
] | permissive | r4ulill0/gui_dbjudge | 101ab95ef631ce6d2173538538b1c98aeb66fb9f | 7c421c6f2fe1281f95e624242338b3e020ee5f28 | refs/heads/master | 2023-01-23T18:10:45.422432 | 2020-12-08T20:19:04 | 2020-12-08T20:19:04 | 319,734,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,663 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/media/raul/OS/Users/king_/Desktop/carrera/curso2018-2019/2oCuatri/TFG/gui_dbjudge/sql_judge/view/qt_view/data_generation/tables_data_generation_tab_view.ui'
#
# Created by: PyQt5 UI code generator 5.13.2
#
# WARNING! All changes made in thi... | [
"raul.medina@alumnos.uva.es"
] | raul.medina@alumnos.uva.es |
584201b3a981910411696aaa3cbbeb9fa1d2944e | 8f8f40280afdd0c47fd39664b43c8fb45d86a285 | /code_sd_ssc/plot_utils.py | d11d53930b5434a904ba8695ee4e51e7e4f4b739 | [] | no_license | shibaji7/IP_Shock_SSC_SuperDARN | d463341c432e14c3007a0540ad96b4325289d6c0 | 32ea9d72d2ab68a7b80ab12f41228783370b6d4f | refs/heads/main | 2023-02-19T14:32:43.806681 | 2021-01-23T02:41:00 | 2021-01-23T02:41:00 | 303,022,533 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,803 | py | #!/usr/bin/env python
"""plot_utils.py: module is dedicated to plot different types of parameters"""
__author__ = "Chakraborty, S."
__copyright__ = "Copyright 2020, SuperDARN@VT"
__credits__ = []
__license__ = "MIT"
__version__ = "1.0."
__maintainer__ = "Chakraborty, S."
__email__ = "shibaji7@vt.edu"
__status__ = "Re... | [
"shibaji7@vt.edu"
] | shibaji7@vt.edu |
6f44ad3e9b210ae18d0310d2a837a53b97b45a4d | f555608150415bd30d452d97621b8675be09046f | /algorism/insert_sort.py | 93b4f4ca3c0178705ee432661b2f046e3c73810a | [] | no_license | luxiao/python | b9fcaf4b003cee7d164ce0829939448fe84bbdf6 | 8da50c6f14c97f855f53d526c85329c22fab071f | refs/heads/master | 2020-12-24T16:34:26.599911 | 2019-05-14T08:11:12 | 2019-05-14T08:11:12 | 18,641,100 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | def MaoPaoSort():
"""insert sort"""
li=[1,3,4,2,9,5,8,6,7]
print li
for l in xrange(8):
i=0
while(i<len(li)-l-1):
if li[i+1]<li[i]:
li[i],li[i+1]=li[i+1],li[i]
i+=1
print li
print li
def ChaRuSort():
"":::""
li=[1,3,4,2,9,5,8,6,7]
for j in xrange(len(li)):
if li[j+1]<... | [
"luxiao1223@gmail.com"
] | luxiao1223@gmail.com |
fa772d6c102d931e816220e31d045e9b09bf18ab | 3fd9c7ee49a32eae3013191b63154a9a5d6dafe6 | /12.6驾驶飞船/12.6.4调整飞船的速度/alien_invasion_0.10.py | 07be0e8c4159b335189b2368a83e687b00039bf0 | [] | no_license | taozhenting/alien_invasion | e0c03cd9797cb33e40ca47a13eadeda8b1c4cf85 | fd9bd97d6238da702fbb1eb6fcb78e8352875fe2 | refs/heads/master | 2020-04-27T05:31:48.862784 | 2019-01-30T09:43:49 | 2019-01-30T09:43:50 | 174,083,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | #修改while循环,每次执行循环时调用飞船方法update()
import pygame
from settings_2 import Settings
from ship_4 import Ship
import game_functions_5 as gf
def run_game():
#初始化游戏并创建一个屏幕对象
pygame.init()
#创建Settings实例存储在ai_settings变量中
ai_settings = Settings()
#使用ai_settings的属性screen_width和screen_height
screen = pygame... | [
"taozt@ichile.com.cn"
] | taozt@ichile.com.cn |
1b585bcf38d425f7d59499c7e26a777b0ba792c4 | 66fbac8ffdb2e321a1076a9a7fb72b3acb117229 | /tests/utils.py | 44face2e6745a478c0f7ec3e54c9769553ad98e1 | [
"MIT"
] | permissive | eyurtsev/kor | d8e6880cb1784653e71e7b644d2c6b1581e15179 | 0f9c7b2005b05e8f5608b25e3dde93b8897aca87 | refs/heads/main | 2023-07-25T13:46:40.166994 | 2023-07-15T07:06:23 | 2023-07-15T07:06:23 | 602,715,785 | 1,144 | 58 | MIT | 2023-09-06T19:22:04 | 2023-02-16T19:47:25 | Python | UTF-8 | Python | false | false | 1,468 | py | from typing import Any, List, Optional
from langchain.callbacks.manager import (
AsyncCallbackManagerForLLMRun,
CallbackManagerForLLMRun,
)
from langchain.chat_models.base import BaseChatModel
from langchain.schema import AIMessage, BaseMessage, ChatGeneration, ChatResult
from pydantic import Extra
class Toy... | [
"noreply@github.com"
] | noreply@github.com |
bda4370a1c11b63eb3c77396a8e7e691a1820837 | 3a3287a522a937784c99d8fa429cc4e563cf2863 | /TCC.py | 27f74936b7729b1eac743652a76b6c655b52d2e2 | [] | no_license | wylkson/TCC-Ci-ncia-de-dados-e-Big-Data | 4cec71ba5f06cbb26a87c5aacfb9971b2a2181bf | 781b51d714103cc23cd4e87f7aab0ab5af83eff2 | refs/heads/main | 2023-04-11T01:40:12.970156 | 2021-04-30T14:44:34 | 2021-04-30T14:44:34 | 363,168,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,920 | py | from surprise import Dataset, Reader, KNNBasic, KNNWithMeans, accuracy
from surprise.model_selection import train_test_split
from collections import defaultdict
import pandas as pd
import numpy as np
def carregar_filmes(path):
filmes = pd.read_csv(path)
return filmes
def carregar_avaliacoes(path):
avaliac... | [
"noreply@github.com"
] | noreply@github.com |
ded84433bff0e82fd58f4dc304b9a645a18403dd | dfad28a2e1a0199c0117e551fd1e31804804d5b9 | /app/__init__.py | 6efcbe27d1084742b368ce958eb28dc8ecdb33de | [
"MIT"
] | permissive | wilbrone/Pitches | c33d60b142b43de9ccf60a86cf59acbc262c6711 | b20d234fd930a6551f26d9cf863c6d1631b62bc2 | refs/heads/master | 2022-12-09T08:02:08.631177 | 2019-11-25T23:47:13 | 2019-11-25T23:47:13 | 223,405,696 | 0 | 0 | MIT | 2022-12-08T06:55:48 | 2019-11-22T13:09:30 | Python | UTF-8 | Python | false | false | 1,139 | py | from flask import Flask
from flask_bootstrap import Bootstrap
from flask_sqlalchemy import SQLAlchemy
from flask_mail import Mail
from flask_login import LoginManager
from flask_simplemde import SimpleMDE
# from flask_uploads import UploadSet,configure_uploads,IMAGES
from config import config_options
bootstrap = Boo... | [
"wilbroneokoth@gmail.com"
] | wilbroneokoth@gmail.com |
3969d764206530e1a0d8824335995d8763a13aed | 9c36c10eae92dc2d35eeea7cab1a4812a5c27979 | /code/tests/tests.py | eacb17338fb881da872603986d05c9772428cd0b | [] | no_license | theophilec/kernel-methods | 506250c4c88ca2c6bfbde0353782464e34d7cdc6 | b96722bef0abcdfafef7294b9c582546f3762893 | refs/heads/main | 2023-03-25T09:36:40.806793 | 2021-03-25T10:11:19 | 2021-03-25T10:11:19 | 337,351,408 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,530 | py | import sys
sys.path.insert(0,'..')
import os
import numpy as np
from tqdm import tqdm
import shutil
import io_utils
import algos
import kernels
# Create dataset
print("Testing data preprocessing...")
exp = io_utils.Experiment()
exp.create_new_experiment()
exp.load_all_test_datasets()
# Gaussian kernel
print("T... | [
"victor.amblard@mines-paristech.fr"
] | victor.amblard@mines-paristech.fr |
e9ffdd369e8cf9aa5bb408cd6b3d8e47a3023d8e | 7d7a7c0f6dbad05b7ca6860724381682336b7f69 | /all/policies/soft_deterministic_test.py | 27ee7cff009152922e9c5b61f5a463153b6bd51e | [
"MIT"
] | permissive | cilence/autonomous-learning-library | 019cee9910c8fb87fcf8e0859720316b339868d6 | 9c44d41826aec49f9ecba43093551219f9f39408 | refs/heads/master | 2023-02-24T20:43:06.641936 | 2020-11-02T22:06:11 | 2020-11-02T22:06:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,273 | py | import unittest
import torch
import numpy as np
import torch_testing as tt
from gym.spaces import Box
from all import nn
from all.approximation import DummyCheckpointer
from all.core import State
from all.policies import SoftDeterministicPolicy
STATE_DIM = 2
ACTION_DIM = 3
class TestSoftDeterministic(unittest.TestCas... | [
"noreply@github.com"
] | noreply@github.com |
28eb2ea77e7be41cfe07c49716ba966024090b71 | 66b816583282859e714beb3ac206bac62575796f | /rough/scrollby.py | 3e4f37706362c388bb56115e24475a4505263285 | [] | no_license | rohan4842/ActTime_second | e4966844cd637825def2d76ece3dea805abdb16d | f43f0aca00a6c51af19ecd66b68e393ae2105991 | refs/heads/master | 2020-05-09T13:34:17.115690 | 2019-04-11T10:46:30 | 2019-04-11T10:46:30 | 181,157,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | from selenium import webdriver
driver = webdriver.Chrome()
driver.get("https://azure.microsoft.com/en-in/")
driver.maximize_window()
# scrollby pixel
# https://github.com/atinfo/awesome-test-automation(github)
# driver.execute_script("window.scrollBy(0,2000)","")
#scroll_by particular element
ele = driver.find_eleme... | [
"rohankarambalkar02@gmail.com"
] | rohankarambalkar02@gmail.com |
9189e14ede0ac807d8a87cbc8d16cfa2631611ec | 63924151be3094df4435961bcaa84a8903abb18b | /src/untitled/webapp/views.py | 12e5270bc775b07aa70a24d511fe6545f3c31917 | [] | no_license | punithpatil/csci5448 | cd665bbbe92fdf23b8e464c2175dbf96386294b9 | 5966de325c91e87304fa20090a6d6ebec6ab0444 | refs/heads/master | 2020-03-30T02:01:09.677329 | 2018-11-29T16:15:23 | 2018-11-29T16:15:23 | 150,607,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
import webapp.csm.patient
import webapp.csm.counsellor
import webapp.csm.appointment
def index(request):
print("Add new patient")
new_patient = webapp.csm.patient.Patient("Punith Patil", 23)
print(new_pati... | [
"punithp007@gmail.com"
] | punithp007@gmail.com |
49646ded33696d34cc674698e55c25cfe02b1619 | 8e70bbfeaadedae941ad9e044e1c8b863bddce0c | /DiscoLight.py | 006cfc308e5c985c4ee170c3bbca90ee9ff17010 | [] | no_license | Frederik1988/Hindb-rT-rte | 123569a4c45a14ca50fc7b99119c5cf093453d01 | c6170c50dd387390bd0631e7d3ef0fbebd5429d4 | refs/heads/master | 2020-04-06T10:30:02.362589 | 2018-12-10T20:54:42 | 2018-12-10T20:54:42 | 157,382,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | from sense_hat import SenseHat
from random import randint
import time
sense = SenseHat()
count = 0.01
t = 0.4
def pick_random_colour():
random_red = randint(0, 255)
random_green = randint(0, 255)
random_blue = randint(0, 255)
return (random_red, random_green, random_blue)
while (t>0.3):
o = pick_ran... | [
"noreply@github.com"
] | noreply@github.com |
a696eb19acc55fdc558204acd466e1dd09b6ebed | eb97ee5d4f19d7bf028ae9a400642a8c644f8fe3 | /tags/2010-02-27/seasar2-2.4.41/employee-benchmark/employee-seasar2-teeda/src/test/script/grinder_kuina.py | 5ba438b98815d68f88f3c399448c99ac465bfd30 | [
"Apache-2.0"
] | permissive | svn2github/s2container | 54ca27cf0c1200a93e1cb88884eb8226a9be677d | 625adc6c4e1396654a7297d00ec206c077a78696 | refs/heads/master | 2020-06-04T17:15:02.140847 | 2013-08-09T09:38:15 | 2013-08-09T09:38:15 | 10,850,644 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 31,386 | py | # The Grinder 3.0-beta32
# HTTP script recorded by TCPProxy at 2007/02/27 19:19:47
from net.grinder.script import Test
from net.grinder.script.Grinder import grinder
from net.grinder.plugin.http import HTTPPluginControl, HTTPRequest
from HTTPClient import NVPair
connectionDefaults = HTTPPluginControl.getConnect... | [
"koichik@319488c0-e101-0410-93bc-b5e51f62721a"
] | koichik@319488c0-e101-0410-93bc-b5e51f62721a |
96ec11d8f8cd0037d0f1c632453538d74bee3a89 | 6695fb9716095368ddefb9fa425156d761bc7e02 | /posts/migrations/0001_initial.py | b5649daddc9cc66edb041f7f24bfb953c7e7d842 | [] | no_license | Sarani1612/django-blog | 5d15361eb5c122ea2a54385b530350737c3bde0b | c2f62bee105f222e39bbd8e97b3735a182c99e75 | refs/heads/master | 2023-04-28T09:41:07.397149 | 2020-06-06T14:10:08 | 2020-06-06T14:10:08 | 246,144,397 | 0 | 0 | null | 2023-04-21T20:54:17 | 2020-03-09T21:19:56 | Python | UTF-8 | Python | false | false | 981 | py | # Generated by Django 2.2.11 on 2020-03-10 17:25
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
... | [
"sara.larsen1612@gmail.com"
] | sara.larsen1612@gmail.com |
3993e5e94822a244475ecf0ac7e09fca494482a3 | cc019c118682dfd3298e66b5aabead1764f3acbe | /network_manage_tool.py | c7ec25dd3f7447992978242a1fdf0ba332a9bc64 | [] | no_license | bhagamgopi/network-management-tool | 23266789e24805ad4258e6b7c1cd9762e0b72991 | ea5ea2af09cafefc215dfc7194990d8f137eef87 | refs/heads/master | 2023-08-22T22:27:17.898417 | 2021-09-20T20:00:25 | 2021-09-20T20:00:25 | 408,463,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,806 | py | #!/bin/user/python3
import os
from rich.prompt import Prompt
from rich import style
from rich.console import Console
console = Console()
def assign_ip_add():
ip = input('Enter ip address to add on interface : ')
inter_name=input('Enter a interface name:-')
cmd = f'sudo ip address add {ip} dev {inter_na... | [
"gopibhagam023@gmail.com"
] | gopibhagam023@gmail.com |
f57e92ca341a4ef719218a9cc8d1a392d5f8ed20 | f14f48e50efb50cfe7078c68f0d61015ae2d646b | /Stock/Select/Ui/Other/DyStockSelectTestedStocksDlg.py | 2b6d429fd49050e93adc805172ad3f4f682f0fbe | [
"MIT"
] | permissive | stockcode/DevilYuan | 17a23da68954714cacae29f428c3005444e0e3a2 | 163d06cb7fd30a8f24b3f2e06206c1fd024353c3 | refs/heads/master | 2020-05-03T14:40:08.420822 | 2019-03-29T13:16:42 | 2019-03-29T13:16:42 | 178,683,886 | 2 | 1 | MIT | 2019-03-31T12:17:49 | 2019-03-31T12:17:49 | null | UTF-8 | Python | false | false | 2,126 | py | from datetime import *
import os
import re
from PyQt5.QtWidgets import QDialog, QGridLayout, QLabel, QTextEdit, QPushButton, QApplication
from DyCommon.DyCommon import *
class DyStockSelectTestedStocksDlg(QDialog):
def __init__(self, data, parent=None):
super().__init__(parent)
self._data = da... | [
"louis_chu@163.com"
] | louis_chu@163.com |
8d060080d9ac988d600c1234ef4eab1b4bd8bd3d | dca086653a55e5cc7c0753bb8f5fe4060708714c | /Algorithm_DataStructure/Recursive_fib.py | 930364b95cfcdd835dc60bed091a3b1563260e8a | [] | no_license | CJHdreamore/Udacity_learning | 69d98687d49567de16e7e5ab3b27d92ebbdeffe5 | 0750f2b323800ef0d87d3773a1869d4181ba77b8 | refs/heads/master | 2021-07-09T21:58:02.804762 | 2017-10-10T13:08:13 | 2017-10-10T13:08:13 | 100,436,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | def get_fib(position):
first,second = 0, 1
for fib_pos in range(position - 1):
first,second = second,first + second
return second
def get_fib_recursive(position):
if position == 0:
return 0
elif position == 1:
return 1
elif position >= 2:
return get_fib_recursi... | [
"cjhjane@foxmail.com"
] | cjhjane@foxmail.com |
736ef5b71732e77fd9f36e7717e1b01e76a7a60f | ac54dca636e7418dd5c48b9fb2d0affec6f5cf65 | /behind/oa_behind/notice/views.py | 7b60738676cdc687fe02e219149725ac394d68e4 | [] | no_license | jiangfj/OA | 4ab5eadc0be9f47c6bfd8e36c1d35287a84109f7 | 6fe46ef771766d6a97746d20b7781fe271baefb1 | refs/heads/main | 2023-02-25T05:58:28.825146 | 2021-02-09T16:51:26 | 2021-02-09T16:51:26 | 337,471,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,013 | py | """通知公告模块"""
from django.core.paginator import Paginator
from django.shortcuts import render
from notice.models import Notice_list
from management.models import Management
from django.http import HttpResponseRedirect, JsonResponse
import json
from tools.login_dec import login_check
# Create your views here.
@login_c... | [
"jiangfj_work@163.com"
] | jiangfj_work@163.com |
a52649e5f4616ba8bab658783284777a289f502a | 518aaaf900cdde6855647d61e01707e6eec92bcd | /app/lib/modules/main_module.py | df0561dea7061a7805e50a0a4ec0eefb900bc5b1 | [
"MIT"
] | permissive | kosuke1701/character-reid | f72b3af23c7d78138d1bfa6f9ceab1a1015992e3 | 5b7d1d01a1a046f3f25a863d24022bf21f95ff9d | refs/heads/master | 2022-11-28T03:45:05.696134 | 2020-08-05T01:10:32 | 2020-08-05T01:10:32 | 231,327,227 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,680 | py | import configparser
from functools import partial
import glob
import os
import _pickle as pic
import numpy as np
import torch
from ..common import AgglomerativeCluster, id_enroll
class AbstractMainModule(object):
def __init__(self, max_batch_size):
self.bs = max_batch_size
config_fn = os.path.jo... | [
"kosuke1701@gmail.com"
] | kosuke1701@gmail.com |
2c3f6bfc62f83528235fd9f1e6de6ef268f43fff | bfaa3b024236b5f724a515770c434a18a34d1477 | /listing_40/listing_40.pyde | fcf8dda7051d701442480a1559e79ad23da6a840 | [
"MIT"
] | permissive | tiranderel/2019-fall-polytech-cs | 88838a694d19b1ad9bfc20cda407b54049cb0336 | 67f0482a0f143381f9b494a4348d6436ce8f8c1e | refs/heads/master | 2020-07-28T20:16:38.719375 | 2019-12-19T19:59:46 | 2019-12-19T19:59:46 | 209,524,192 | 0 | 0 | MIT | 2019-10-02T17:53:04 | 2019-09-19T10:20:18 | Python | UTF-8 | Python | false | false | 496 | pyde | def setup():
size(500, 500)
smooth()
background(50)
strokeWeight(2)
stroke(250)
counter=0
cx=250
cy=250
cRadius=200
mcolor=0
def draw():
global counter, cx, cy, cRadius, mcolor
x1 = sin(counter)*cRadius + cx
y1 = cos(counter)*cRadius + cy
mcolor = mcolor + 1
... | [
"noreply@github.com"
] | noreply@github.com |
d9e54c6afb721bbaf3f7e1f7694e10ad5edd9813 | 840a90abcfefe1b27055edc3f0f3869469f366cb | /ufaInterfaceTest/testcase/testcase1/startcase.py | fc9778350c7116adf45bf263cd67d84a255f4732 | [] | no_license | xieyuanzheng/ufaautotest | 8b53cdc66ee2f249cf58d4401f0713966b765ad9 | e6a183745e1a79046b062d7c888ef5cdcf1b7214 | refs/heads/master | 2021-04-15T06:04:12.871543 | 2018-03-21T08:33:44 | 2018-03-21T08:41:11 | 126,144,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,074 | py | # -*- coding:utf-8 -*-
import unittest
import requests
from ufaInterfaceTest.common import httpRequest,configDB
import json
import sys
import HTMLTestRunner,os,time
import pymysql
class Startcase():
host = "localhost"
username = "jamko"
password = "ufa123456"
dbname = "interfacetestcase"
def __ini... | [
"121546683@qq.com"
] | 121546683@qq.com |
1e1cb8da54368fa2aa6bca2291ee090df46f5d47 | 4969cdb312336bf2a20b6e582ba0c2f4a696a41b | /diarization/v1/local/data/decode-uxssd-upx.py | f349ee574dace0055b9e47f16c3982a30d0e7ed4 | [
"Apache-2.0"
] | permissive | UltraSuite/ultrasuite-kaldi | 3bbfdca46247f34a2b18430432124d18266dafa6 | fa6c4e2ad2c20794c244a8040ecb5a5eea59b879 | refs/heads/master | 2020-06-19T05:55:27.135338 | 2019-07-12T15:52:29 | 2019-07-12T15:52:29 | 196,588,259 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,184 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Prepare UXSSD/UPX data for decoding with Speaker Labelling model.
Date: 2018
Author: M. Sam Ribeiro
"""
import os
import sys
import argparse
from utils import write_data
from utils import get_duration
def main(corpus_dir, labels_dir, output_dir, sample_rate=16000, ... | [
"msamribeiro@users.noreply.github.com"
] | msamribeiro@users.noreply.github.com |
a3d380babac3cb50ff3bc380ee6571c605f9c0df | f35e4077f7a039672a10a2919ffbfaf37e216590 | /algorithm_and_data_structure/algorithmic_toolbox_coursera_course/problems/03_divide_and_conquer_starter_files/majority_element/majority_element.py | 7eb26a5dc4c048e4c0e096625f2f6da8f9a9baf4 | [
"MIT",
"CC0-1.0"
] | permissive | muler415/Awesome-Full-Stack-Web-Developer | 7bdf329a0842b998e0c37d4ac44c14d6640db84f | d7c8a48ba809832270f2061f6872df7b8550699d | refs/heads/master | 2020-05-24T14:27:36.683410 | 2017-03-22T13:03:12 | 2017-03-22T13:03:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | # Uses python3
import sys
def get_majority_element(a, left, right):
if left == right:
return -1
if left + 1 == right:
return a[left]
left_m = get_majority_element(a, left, (left + right - 1)//2 + 1)
right_m = get_majority_element(a, (left + right - 1)//2 + 1, right)
left_count = 0
... | [
"anas.ieee@gmail.com"
] | anas.ieee@gmail.com |
e879bbed9fe0669563f49e86d9f9be90c1122e78 | 85393ecb2fbabebacbfaa6e8b8fb4eb7efe9a721 | /Weight_Tracker/account/views.py | f2feced2af17c17213c1f79994d4c026fc43d091 | [] | no_license | birendra-Sapkota/WeightlossTracker | 1fa2cbc3c9faba68bbf02cb1181831592c369863 | f0c887ffbdac8f483399c5dc3715053395f05f35 | refs/heads/main | 2023-02-03T17:13:08.443237 | 2020-12-20T16:33:58 | 2020-12-20T16:33:58 | 323,109,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,351 | py | from django.contrib import messages
from django.shortcuts import render, redirect
from django.contrib.auth.models import User, auth
# Create your views here.
def register(request):
if request.method == 'POST':
first_name = request.POST['fname']
last_name = request.POST['lname']
username = ... | [
"birendra716214sapkota@gmail.com"
] | birendra716214sapkota@gmail.com |
d3d7c13f9910d709fc5fe409a621a1a56b61a4b1 | 2da9ba51ac285e833013d2ad746633a0699e65a0 | /pandas/Python_for_Data_Analysis/__init__.py | 3137b0ba4fcc4ec4d29ce18318a7c072997a2f33 | [] | no_license | current-liu/NextIdea | 3ede7d5802c4ea54de2fe1be5a78523395a778be | fd18bb4a8448bf3868005595eedcf8838641613d | refs/heads/master | 2021-07-22T18:02:30.793659 | 2017-11-08T09:40:09 | 2017-11-08T09:40:09 | 108,254,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | #!/usr/bin/env python
# coding=utf-8
"""
Created on 10/26/17 1:52 PM
base Info
"""
__author__ = 'liuchao'
__version__ = '1.0'
| [
"liuchao_mail@qq.com"
] | liuchao_mail@qq.com |
014442c52df6cfc9302ce48ac5b1ba27eebb94e3 | d9eef8dd3489682c8db41f2311e3058d1f369780 | /.history/abel-network-files/mcmc_alg_implementation_own_two_20180704104642.py | 20737f1c25b68caf620680915be9d652c2c31371 | [] | no_license | McKenzie-Lamb/Gerrymandering | 93fe4a49fe39a0b307ed341e46ba8620ea1225be | b7a7c4129d6b0fcd760ba8952de51eafa701eac3 | refs/heads/master | 2021-01-25T06:06:43.824339 | 2018-10-16T14:27:01 | 2018-10-16T14:27:01 | 93,526,515 | 0 | 0 | null | 2018-07-12T19:07:35 | 2017-06-06T14:17:47 | Python | UTF-8 | Python | false | false | 11,006 | py | # Author: Abel Gonzalez
# Date: 06/26/18
#
# Description:
# This program uses the .shp file to create a network graph where each node
# represents a census tract and the edge represents adjacency between each
# tract, usign graph-tool instead of networkx
import random
import math
import numpy as np
import graph_tool.al... | [
"gonzaleza@ripon.edu"
] | gonzaleza@ripon.edu |
fcdd5dd0c6d5f1f16e5a2bd169aae72dcdd073c9 | bac9f522c2c4657be743cc72465904abb03fc0cf | /physons/Chapter 3/ex02.py | 970621f64dacd1c07d7cc3c73f4435d4ee32e1bb | [] | no_license | tony090717/HelloPyson | 241f66a75da505f1da7fea4a23e65521564a48a2 | f90803fa41300f689f5d1d8a72a9bee93d9d4667 | refs/heads/master | 2020-05-15T17:30:36.559492 | 2019-04-20T13:00:03 | 2019-04-20T13:00:03 | 182,406,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | americano_price = 2000
latte_price = 3000
cappuccino_price = 3500
ame_cups = int(input("아메리카노의 잔수를 입력하세요."))
latte_cups = int(input("카페라떼의 잔수를 입력하세요."))
capu_cups = int(input("카푸치노의 잔수를 입력하세요."))
sum_all = 0
sum_all = americano_price * ame_cups
sum_all = sum_all + latte_price * latte_cups
sum_all = sum... | [
"noreply@github.com"
] | noreply@github.com |
30803c6dff5c998963cda3b71b2b7841c71ae32d | 0399b83b012977db22083a6394ad04d2f6209443 | /Part1/vehicle_tests.py | 4cb58fa3c8e8f9249a0e9188aeef9a5c0b72fbe6 | [] | no_license | Sirtobey24/UnitTests | 38936ec58141ce93efa09986b40939c854aece42 | f65f1c1e333445ca43050de154292dcf33bcbe95 | refs/heads/master | 2020-08-10T06:26:26.723653 | 2019-10-10T20:50:30 | 2019-10-10T20:50:30 | 214,282,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | import unittest
from Part1.vehicle import *
class VehicleTests(unittest.TestCase):
def test_vehicle(self):
sedan = Vehicle(4, 100, 4, True)
self.assertEqual(sedan.numofwheels, 4)
self.assertEqual(sedan.amountoffuelrem, 100)
self.assertEqual(sedan.numofdoors, 4)
self.assertE... | [
"fujinvsjax@gmail.com"
] | fujinvsjax@gmail.com |
e3c998de44a0fd45ab4f6e5ee9caaf4a0348a544 | e7ea09292ea45c6aac85c319ee8b7333e93cf253 | /users/migrations/0004_auto_20191207_0113.py | 0e92fdc828b3201278c2102759c2757929ca411e | [] | no_license | yogendramaarisetty/Tech-hire | 46010972c1aba4fd44ab0c32f7c1bf859d64c4e8 | b71dac13c55f0cad2468b9bdb2092d39c620ed16 | refs/heads/master | 2022-12-23T15:20:37.094478 | 2019-12-11T13:49:05 | 2019-12-11T13:49:05 | 226,064,727 | 0 | 1 | null | 2022-12-10T20:42:11 | 2019-12-05T09:28:44 | Python | UTF-8 | Python | false | false | 568 | py | # Generated by Django 2.2.7 on 2019-12-06 19:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0003_auto_20191207_0105'),
]
operations = [
migrations.AddField(
model_name='profile',
name='firstname',
... | [
"yogendramaarisetty@gmail.com"
] | yogendramaarisetty@gmail.com |
889b37e0be0c53d72f481d172a2856185efa4725 | f778a0bf0fbcb89d4d3330075417d77536338c15 | /app/routes.py | 39a31f9ee573e31264d534f60ea1ab34149eac83 | [] | no_license | jefferson-william/python-nuxt | d24a667a591f48c508965d750fdfa0af00a83f32 | 6921c2ededef640c65847943dc305d263bfcbd8b | refs/heads/master | 2020-04-08T20:03:47.110846 | 2018-11-29T14:57:28 | 2018-11-29T15:11:52 | 159,682,624 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | from flask import Flask, jsonify
from flask_cors import CORS
app = Flask(__name__)
cors = CORS(app, resources={r"/*": {"origins": "http://localhost:3000"}})
@app.route('/')
def home():
message = {}
data = {}
message['message'] = 'Hello World from Flask!'
data['status'] = 200
data['data'] = message
retur... | [
"jeffersonwilliammachado@gmail.com"
] | jeffersonwilliammachado@gmail.com |
34929796899a0e3f4bd71c7745c1eef9512033eb | 5fd27481ec852447c26eaa719bc7d942cfe1119b | /KNN.py | e5eb57d39436948bc5c5b7caaca1592819209f53 | [] | no_license | masenov9607/KNN | f08d4da0696a4c8493937a8bfb1e281692c8a763 | 3324414d40e6da7e09ade94a9f7da24ca3121689 | refs/heads/master | 2020-11-26T01:02:53.551728 | 2020-01-14T19:06:54 | 2020-01-14T19:06:54 | 228,915,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,643 | py | import pandas as pd
from scipy.io import arff
from sklearn import preprocessing
import numpy as np
class KNN(object):
def __init__(self,input_file):
data = arff.loadarff(input_file)
self.dataset = pd.DataFrame(data[0])
self.K = int(np.sqrt(len(self.dataset)))
if self.K % 2 == 0:
... | [
"noreply@github.com"
] | noreply@github.com |
bf15e338e9c95f8b3007c1643a44cd95c6d3c326 | 16288e243ec9e9440bd8497f3e1188fde50ebb00 | /hw2.py | eed9404f2015e9d7f7e1f3450d09592aa3264615 | [] | no_license | NHendelman/HW02 | 4ff3afe4f07e9d9ac27de67da4003aab12aa4076 | b395dbad7bcc8d99ee9ebff4593dd3e2c13010a9 | refs/heads/main | 2023-08-24T14:05:28.767609 | 2021-10-26T23:02:45 | 2021-10-26T23:02:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,445 | py | import json
import matplotlib.pyplot as plt
import os
import matplotlib.pyplot as plt
import numpy as np
with open ("/Users/noahendelman/Documents/GitHub/nhendelman/HW/Obama2012.json" , encoding= 'ascii') as f1:
data_1 = json.loads(f1.read())
with open ("/Users/noahendelman/Documents/GitHub/nhendelman/HW/Obama2013... | [
"noreply@github.com"
] | noreply@github.com |
8b7a7bf8e469f8575e9b8af31593301da9b21c06 | e57af4a840d1126e22363bd9611a40fe18093c92 | /wrappers/s2i/python/test/router-template-app/MyRouter.py | 10aa8ee91177f1fa9145641815baeec07abb43aa | [
"Apache-2.0"
] | permissive | holdenk/seldon-core | ca05e12c8e568700487f9b9e4b79a900200bd03c | de08406883850e5566b4e08af7d6484c1960bdd6 | refs/heads/master | 2020-03-07T12:47:07.530623 | 2018-03-30T10:08:42 | 2018-03-30T10:08:42 | 127,485,585 | 1 | 0 | Apache-2.0 | 2018-03-31T00:37:40 | 2018-03-31T00:37:40 | null | UTF-8 | Python | false | false | 755 | py |
class MyRouter(object):
"""
Router template.
"""
def __init__(self):
"""
Add any initialization parameters. These will be passed at runtime from the graph definition parameters defined in your seldondeployment kubernetes resource manifest.
"""
print("Initializing")... | [
"cc@seldon.io"
] | cc@seldon.io |
37f5a2f09f28b604550167dfe7790c704ca1d637 | a0942f6d2010336405cd266c9fbd83361570dbc8 | /python/szyforwanie.py | 739d4cbd42de4b6e2fd8c99f7e939c06085156b7 | [] | no_license | grudyszyn/gitrepoo | 0511cc8e7e0dd8812452d6e75a52724f0ea7441b | 595d1cb76ae802cd8c490799c16d29ca3499c8d9 | refs/heads/master | 2021-05-16T08:20:03.926056 | 2018-03-01T07:08:41 | 2018-03-01T07:08:41 | 104,045,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
def main(args):
szyfrogram = szyfruj_cezar(tekst, klucz)
print(szyfrogram)
print(deszyfruj(szyfrogram, klucz))
return 0
if __name__ == '__main__':
import sys
sys.exit(main(sys.argv))
| [
"rudzikg11@wp.pl"
] | rudzikg11@wp.pl |
94d23a9c6b0e7ad4bc7c9e6b077000f319c5ed96 | 3b48bee1b2667b5dfe48f7aa0c7ef25f4d7ea72a | /to_latex.py | d1210846c9d4d32711e7bf209806e7a02511c695 | [] | no_license | evelez7/DSP_Collect | 365be4951ccca09482d1b89b50a87dce7ce3b2e4 | 9ec7ac1a76fb705399fef49a046e5556081837cc | refs/heads/main | 2023-03-08T10:54:00.961933 | 2021-02-23T21:02:06 | 2021-02-23T21:02:06 | 341,340,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,016 | py | import glob
def insert_escape(to_fix):
if '_' not in to_fix:
return to_fix
index_list = [i for i, char in enumerate(to_fix) if char == '_' or char == "_"]
i = 0
for index in index_list:
to_fix = to_fix[:index + i] + "{backslash}".format(backslash = "\\") + to_fix[index + i:]
... | [
"erickvelez7@gmail.com"
] | erickvelez7@gmail.com |
14932d1be051b2bfeac0b34ee7d9a05f642d4117 | b9356e99568e5b7d6adbdbb59f89ea28dc783a96 | /web/bitquant/bitquant.py | ea801b60f25ac367bef20bf5a1ded24c83138ee8 | [
"BSD-2-Clause"
] | permissive | joequant/bitquant-local | 627ef5c21713fa9332a2a1179bf38cd55f53ed2d | 0271a2b1b0f4159612f3cbb165721a5182afed05 | refs/heads/master | 2021-09-09T05:27:52.152048 | 2018-03-14T00:30:43 | 2018-03-14T00:30:43 | 125,134,356 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | #!/usr/bin/python3
from flask import Flask, request, render_template
app = Flask(__name__, static_url_path='', static_folder='')
@app.route("/")
def root():
return app.send_static_file('index.html')
@app.route("/test")
def test():
return "test"
if __name__ == "__main__":
app.run()
| [
"joequant@gmail.com"
] | joequant@gmail.com |
76e230199a599c291f1d6686fc6a009c056042bd | 347eb56e8541dcffaf8572a25bcb2a1fb163a264 | /Algorithm.Python/ETFConstituentUniverseCompositeDelistingRegressionAlgorithmNoAddEquityETF.py | 179f7ebc05c9e0397581be481b03f4171d32e60e | [
"Apache-2.0"
] | permissive | Synchronicity89/Lean | d1bcfbfaafe394829869cc5c928493261a1b0e27 | 66f3347afdc7a27218b47870338c4cdf6fcc1127 | refs/heads/master | 2023-09-01T13:26:05.469633 | 2022-11-22T00:46:12 | 2022-11-22T00:46:12 | 169,467,452 | 0 | 0 | Apache-2.0 | 2022-11-20T18:37:47 | 2019-02-06T19:54:24 | C# | UTF-8 | Python | false | false | 3,450 | py | # QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
#
# 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 Licen... | [
"noreply@github.com"
] | noreply@github.com |
3fa3dd8f091498d27619b41c759e2087c4960e7a | b4b7ffb5716a46cc8c9875296f1d58522120a8c2 | /Assignments/Week 1/Assignment 2/11 - Mean, Var and Std/w1a2 Mean, Var and Std.py | 76feeec642debc3022ab7f52b6b2bcc1e9535249 | [] | no_license | TheRandomizer7/LifeDetection-QTSP-Project | 6f57fd9bc167d9e4f07ffb01135b8a058cc21f4a | b60653b1147078241ba8ec1051c8381ed074a70d | refs/heads/main | 2023-07-02T02:45:26.004372 | 2021-08-17T10:53:35 | 2021-08-17T10:53:35 | 386,220,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | import numpy
dimensions = input().strip().split(' ')
rows = int(dimensions[0])
columns = int(dimensions[1])
arr = numpy.empty(rows * columns, numpy.int64)
arr = arr.reshape(rows, columns)
i = 0
while i < rows:
input_column = input().strip().split()
j = 0
while j < columns:
arr[i, j] = int(input_c... | [
"yash.yelmame@gmail.com"
] | yash.yelmame@gmail.com |
bbf67b6d8b12d59dd77937c8c5df126c1dd64d82 | ba198225eceb33df214400c8a19a46292c051fe2 | /conf/settings/settings_production.py | 3e2f6aff61ff45d7a83f5a749ef78ecc26392a48 | [] | no_license | puntonim/inspire-read-api | 64e39261b41c6610f8775645eab18252bbeeb6c2 | 876a053ae5ad2642911bab5387ed6139bc9b09ec | refs/heads/master | 2020-07-11T12:36:41.358661 | 2019-04-04T12:22:38 | 2019-08-26T19:07:21 | 204,540,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | """
Production settings.
"""
from .settings_base import *
DEBUG = False
ALLOWED_HOSTS = ['mysite.com']
SECRET_KEY = 'mysecretkey'
ORCID_TOKENS_ENCRYPTION_KEY = 'mykey' | [
"puntonim@gmail.com"
] | puntonim@gmail.com |
7df60af6c75a2a8c377ef490bcc3c782fc6551ee | dfc6ad59e5f4d9099ddb120147ecf039f5e948b5 | /hakaSchool/wsgi.py | cb6756c5491f91f0913278390a85e21f441ac87a | [] | no_license | andy010629/mcu-owo | 1cc7adbb2190e509a727b8149c255a52073e2500 | 421ce5c802b858e3622bdc8b446b9eabaa63e60c | refs/heads/main | 2023-03-30T00:20:04.080807 | 2021-04-02T09:15:28 | 2021-04-02T09:15:28 | 353,750,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | """
WSGI config for hakaSchool project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
## local
# import os
# from django.core.wsgi import get_wsgi_application
# os.environ.setdefa... | [
"andy010629@gmail.com"
] | andy010629@gmail.com |
81edabd97821e56c6ff10a58a21193bf552e29d2 | fbfd0b189f5c19b572cffeaf9a9bee9c1f9f4abd | /app/static/libs/bokeh/examples/charts/file/scatter_multi.py | e3c6bd89d9895ff419db48e6e551aeac8eb37a5b | [
"MIT"
] | permissive | TBxy/bokeh_start_app | ec6fdbe4eba35c66e6d40b4bb9ac91f338d6b13d | 755494f6bc60e92ce17022bbd7f707a39132cbd0 | refs/heads/master | 2021-01-19T21:29:42.833778 | 2017-04-25T20:44:28 | 2017-04-25T20:44:28 | 88,659,320 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,442 | py | import pandas as pd
from bokeh.charts import Scatter, output_file, defaults, show
from bokeh.charts.operations import blend
from bokeh.charts.utils import df_from_json
from bokeh.layouts import gridplot
from bokeh.sampledata.autompg import autompg as df
from bokeh.sampledata.iris import flowers
from bokeh.sampledata.o... | [
"tburgherr@gmail.com"
] | tburgherr@gmail.com |
91ed16c8db1c51aa9e4271b1a1438b5930a7c410 | 2d7b375c2be51e5a499148e8434e04b77b4a2dc3 | /MFRC522.py | c5f5c56e38675b2885c4e97b381087b76ae74c76 | [] | no_license | jakupe/smartOffice | d4604060598bef740446c325279d45853673e00e | e4d4e649b0a733280a4f09fe84ea0141a7159883 | refs/heads/master | 2020-06-14T07:07:05.925244 | 2019-07-02T23:40:19 | 2019-07-02T23:40:19 | 185,592,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,734 | py | #!/usr/bin/env python
# -*- coding: utf8 -*-
#import RPi.GPIO as GPIO
import spi
import signal
import time
class MFRC522:
NRSTPD = 22
MAX_LEN = 16
PCD_IDLE = 0x00
PCD_AUTHENT = 0x0E
PCD_RECEIVE = 0x08
PCD_TRANSMIT = 0x04
PCD_TRANSCEIVE = 0x0C
PCD_RESETPHASE = 0x... | [
"jakupe@mail.de"
] | jakupe@mail.de |
b02e4f387db0a542ef2db6095b8e3ee1a4f2b3a5 | 20511a413838d9c9bb0319ceb65095cd05a3894f | /server/submodule/www/router.py | 96ec9d0698482503c548b879570a5faa58ef764f | [
"MIT"
] | permissive | hexueyuan/Adanos | c33e86518e97dbc3c4e2fdf24f6f8afdf2234e70 | b35873fc88b61dabda49c85f0e2b2d126731d34f | refs/heads/master | 2022-12-16T14:03:23.335705 | 2020-01-23T08:22:38 | 2020-01-23T08:22:38 | 166,649,995 | 0 | 0 | MIT | 2022-12-09T23:59:24 | 2019-01-20T10:43:59 | HTML | UTF-8 | Python | false | false | 145 | py | from . import Adanos
from flask import render_template
@Adanos.route('/', methods=['GET'])
def index():
return render_template('index.html') | [
"im.hexueyuan@outlook.com"
] | im.hexueyuan@outlook.com |
a5af53f0ae3c8b6d8628a1c09137e61e88a8ea9d | 156b77dc620d47fa76baf9361b4ccac04a7f7995 | /FSND/projects/02_trivia_api/starter/backend/test_flaskr.py | 5adf46e7e178d309d8bf8069f3ee65a3d2663468 | [] | no_license | zyfsju/fullstack-study | cc43b18a47bdf277be3828d351624063d965723a | 1172d62689e8edf60636d548cfc89c5168296d9c | refs/heads/master | 2023-03-25T03:03:04.021634 | 2021-03-22T17:56:04 | 2021-03-22T17:56:04 | 350,438,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,503 | py | import os
import unittest
import json
from flask_sqlalchemy import SQLAlchemy
from flaskr import create_app
from models import setup_db, Question, Category
class TriviaTestCase(unittest.TestCase):
"""This class represents the trivia test case"""
def setUp(self):
"""Define test variables and initiali... | [
"yifan.zhou@aptiv.com"
] | yifan.zhou@aptiv.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.