blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
67a7dffac9b09ccf1b48ad50fcbdc6d4a116e329 | a0568cddfdd59f85117455557ca9f46b63db85bc | /ClassDemo/yieldDemo.py | f1f80d6f390d9386e452bc598fe8155f21365e45 | [] | no_license | wuud/python_demo | ef5e27de9850b7e95f77625667266e327f3fd8c2 | 9fced6907b38c736f65288de7c2006ff8615fab0 | refs/heads/master | 2020-07-28T05:53:31.644819 | 2019-09-18T14:32:29 | 2019-09-18T14:32:29 | 209,329,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | '''
一个函数中一旦有yield,这个函数就成了一个Generator,
所以函数在调用的时候并不会立即执行,只有调用.__next__()或
.send()方法时函数才会执行到yield对应的地方,每调用一次
next函数就执行到下一个yield所在地。
'''
def f():
print("my demo")
m=yield 1#yield后面的值赋给了n.__next__(),而此时m是None,send()方法才是给m赋值的
print(m)
print("t")
n=yield 2
n=f()
n.__next__()
n.__next__()
#n.send("run")
... | [
"wuu_dd@qq.com"
] | wuu_dd@qq.com |
4a44f533cf74b906f0764a0071db7ed995fe230f | 8677fcc71a14b53eee1853e477f0821efaa7bda2 | /2017/day03/tests.py | ef8fa3e4acb6e164db910f7d987c910307bc0f6c | [] | no_license | corentingi/adventofcode | 0c30099175c1de0d84ce48d0dc47935fa2aea7d5 | 193a591a2f5313e602751d2051c6004794ab0882 | refs/heads/master | 2022-03-18T20:20:28.710395 | 2019-12-03T09:37:41 | 2019-12-03T09:37:41 | 112,927,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | #!/usr/bin/env python3
# coding: utf8
import unittest
from script import manhattan_steps_part1, manhattan_steps_part2
cases_part1 = [
(1, 0),
(12, 3),
(23, 2),
(1024, 31),
]
class TestScript(unittest.TestCase):
def test_manhattan_steps_part1(self):
for input_value, expected in cases_par... | [
"corentin.gitton@gmail.com"
] | corentin.gitton@gmail.com |
d266cb49ad369541c1fbda4f0182851a05f6e423 | 2e75e1a935461c0fa80b59c496c1553f44c4cf49 | /venv/Scripts/pip3-script.py | 5f20486dcba63eacf2d976d8d3fffe41e54e2443 | [] | no_license | zzz36617004/bigdata-test2 | 8e65a23023eb206000c72e41658641117fa2b958 | 142c89b532ac50f5c6eca41bdc9fe910af081085 | refs/heads/master | 2020-03-18T21:15:08.677554 | 2018-05-29T09:03:27 | 2018-05-29T09:03:27 | 135,269,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | #!D:\javaStudy\pycharmproject\python-fb\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])... | [
"zzz36617004@naver.com"
] | zzz36617004@naver.com |
3adcd6a7bfde73ec5edccbb99921595eded1c389 | 87ed923199e8c49f32510fcf73f3b72a382ed183 | /plastron-plate/platron-stub.py | 1ee3d0556dcf022d728c787269ee6f488d632d25 | [] | no_license | semicontinuity/hardware | 775306cbef12d26b27b96712e869536a8d521954 | 74a57f1199e6cf2c9dc0387007fa57cfde9c6751 | refs/heads/master | 2023-08-08T12:24:09.049435 | 2023-07-29T08:59:40 | 2023-07-29T08:59:40 | 4,886,190 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | from gcode import *
WIDTH=249.6
HEIGHT=47.6
THICK=8
RM=1.5
def milling_program(gcode):
return gcode.program(
gcode.with_spindle(
'E',
gcode.deep_line(-WIDTH/2 - RM, -HEIGHT/2 - RM, -WIDTH/2 - RM, +HEIGHT/2 + RM),
'W',
gcode.deep_line(+WIDTH/2 + RM, -HEIGHT/2... | [
"igor.a.karpov@gmail.com"
] | igor.a.karpov@gmail.com |
72a0666b7f3a7b98999287ded2a6278c901c35f1 | c0465b63b853d062fda02bbcce5415e73a58219e | /bin/NMF/find_best_RFparams.py | 8a8faf5d1647df9676b4eb062091a1574b61912d | [
"MIT"
] | permissive | hustlc/PipeOne | 14c0163a90a7cffc810d8ac7a3d2d8a617976cb8 | 4a91a16303818b60e88c3a7defee2155ec329800 | refs/heads/master | 2023-03-31T02:37:28.922321 | 2021-03-26T02:11:41 | 2021-03-26T02:11:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,259 | py | from feature_selection_utils import *
from joblib import Parallel, delayed
import fire
def find_best_params(X, y, params_grid, record_fi):
if os.path.exists(record_fi):
os.remove(record_fi)
acc_record = pd.DataFrame(columns=["tree_num","max_depth","min_samples_split","acc"] )
with open(record_fi,... | [
"523135753@qq.com"
] | 523135753@qq.com |
41ae5d87df532d2ee47b6a435c5e70a35ee8c637 | f8295c4b18d76d2c4467de8351802c2c741f06d9 | /example_project/example_project/urls.py | f8969c615b427f40f3029ac2d2ff64d5671751db | [] | no_license | stefanw/django-wikidata | 993b95ea7060c22a1c7ba4cdb46f3fbeb9338aca | 41b41650a1f5b893a7aa7855864a9a05e8e5d372 | refs/heads/master | 2020-04-24T20:25:31.897429 | 2019-02-24T09:38:52 | 2019-02-24T09:38:52 | 172,243,029 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | """example_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cla... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
0b026b7588cfd52cc92d6fd76b2985618ef2f533 | 60ca69e2a4c6b05e6df44007fd9e4a4ed4425f14 | /beginner_contest/175/C.py | 430190fbe6f342eff4aae54d28abe6bb704ad2fd | [
"MIT"
] | permissive | FGtatsuro/myatcoder | 12a9daafc88efbb60fc0cd8840e594500fc3ee55 | 25a3123be6a6311e7d1c25394987de3e35575ff4 | refs/heads/master | 2021-06-13T15:24:07.906742 | 2021-05-16T11:47:09 | 2021-05-16T11:47:09 | 195,441,531 | 0 | 0 | MIT | 2021-05-16T11:47:10 | 2019-07-05T16:47:58 | Python | UTF-8 | Python | false | false | 331 | py | import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)
x, k, d = map(int, input().split())
x = abs(x)
if x - (k * d) >= 0:
print(x - (k * d))
sys.exit(0)
else:
remain = k - (x // d)
p_min = x % d
n_min = abs(p_min -d)
if remain % 2 == 0:
print(p_min)
else:
pr... | [
"204491+FGtatsuro@users.noreply.github.com"
] | 204491+FGtatsuro@users.noreply.github.com |
1b4deeac8b436d185cefcdc653d410ec5470ab1a | 468c568be3969a0a1dfec0a7505d682a693d5b87 | /rollback-to-deadline.py | 793d2e91bc0e75291cf38a2c98ec4624b74fbc38 | [
"MIT"
] | permissive | apanangadan/autograde-github-classroom | 0ffc4e3c21e430e3ce06758930dba5e6453ed7ba | 04a64beb2c1a376fd3f5a6006d1ec5a750bf8fea | refs/heads/master | 2020-03-20T00:17:46.255411 | 2018-06-14T18:14:34 | 2018-06-14T18:14:34 | 137,038,837 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | #! /usr/bin/env python3
#Acknowledgment: https://github.com/Sirusblk
import os, shutil, subprocess
from argparse import ArgumentParser
DATE_STRING = '2018-02-18 01:00 PST'
#DATE_STRING = '2018-04-30 01:00 PST'
def rollback_one_submission(subdirectory):
print(subdirectory)
os.chdir(subdirectory)
# rollba... | [
"apanangadan@fullerton.edu"
] | apanangadan@fullerton.edu |
a4c07538ad3e73932b9952ec586b4714886d058d | de9547189c01a0c33c4c4305e0f53c407ab84f40 | /base/controller.py | 18a70479b55b221abf470dded09fe6c28313f568 | [] | no_license | Uskrai/alpro-tubes | 15e43cea9fb666b124ae75b0afc830e2727cad36 | 26a3a087f3914d142994f88a808a3c8baba128c9 | refs/heads/master | 2023-02-16T15:03:43.569348 | 2021-01-14T03:55:10 | 2021-01-14T04:06:28 | 320,435,843 | 0 | 6 | null | 2021-01-13T06:43:14 | 2020-12-11T01:37:29 | Python | UTF-8 | Python | false | false | 185 | py | import abc
class ControllerBase( metaclass=abc.ABCMeta ):
@abc.abstractclassmethod
def __init__( cls ):
pass
def start(self, modul : dict ):
pass
| [
"30656271+Uskrai@users.noreply.github.com"
] | 30656271+Uskrai@users.noreply.github.com |
e6b1fde633b8fe653ad8fd98a145071363df9d07 | 8c946bf0b3d28fb5c37423afded462d971ffaf4a | /testcases/multi_instrument_strategy_test.py | 1a746f810231a2e3b8bef378b643ceaa2942ee5a | [
"Apache-2.0"
] | permissive | AdaJass/pyalgotrade3 | 080bf6ee55120c9bd28cd3be1a9395419e68d3f8 | 5481c214891b7bd8ca76fee4e3f5cfcbb9f9de4e | refs/heads/master | 2020-12-31T00:17:20.816028 | 2017-03-29T10:38:36 | 2017-03-29T10:38:36 | 86,557,369 | 25 | 12 | null | 2017-03-29T10:15:23 | 2017-03-29T08:31:03 | Python | UTF-8 | Python | false | false | 3,814 | py | # PyAlgoTrade
#
# Copyright 2011-2015 Gabriel Martin Becedillas Ruiz
#
# 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 ap... | [
"Jass Ada"
] | Jass Ada |
84c2d1b9d4d9b14db0bd5e93aeac841a4e9ea9b0 | ddd3b6663fbcc5b64fe9a96a3da87dd1460e1ab4 | /src/routes/user.py | 8908f3e57f79e7b83ad52961a8451953a51f62fe | [] | no_license | ranihorev/scihive-backend | 3d72e35829d97368a331bc85c362c7af29b63eb9 | d246a8ed07b0fd793a1a9c3497c976cbd4957b3d | refs/heads/master | 2022-06-17T17:32:35.834425 | 2021-04-02T14:40:07 | 2021-04-02T14:40:07 | 184,781,038 | 13 | 4 | null | 2022-05-25T03:51:56 | 2019-05-03T15:41:16 | Python | UTF-8 | Python | false | false | 5,862 | py | import os
from flask import Blueprint, jsonify
import logging
from flask_jwt_extended.view_decorators import jwt_optional
from flask_restful import Api, Resource, abort, reqparse, marshal_with, fields
from flask_jwt_extended import (create_access_token, jwt_required, jwt_refresh_token_required,
... | [
"ranihorev@gmail.com"
] | ranihorev@gmail.com |
b405ec95a0255c9881fb8fb9f7e040f3fbe5d43f | 77f18fee771336a4d86aac6043004df8c4856e58 | /Projects/bal.py | dd726de8c4b645716d44bcba615b25d16bcd30ae | [
"MIT"
] | permissive | AamodJ/manim | 40540d93bf6d736ae35e62ddc0a5cd02396500bd | 0fc62317ff7ecccb09dbed4011dbe221ba869ea6 | refs/heads/master | 2022-12-17T21:03:47.871005 | 2020-09-15T18:18:05 | 2020-09-15T18:18:05 | 197,820,247 | 0 | 0 | NOASSERTION | 2019-07-19T18:00:30 | 2019-07-19T18:00:29 | null | UTF-8 | Python | false | false | 2,373 | py | # from big_ol_pile_of_manim_imports import *
"""
Update the code for newer version of manim
"""
from manimlib.imports import *
class Ball(Circle):
CONFIG = {
"radius": 0.4,
"fill_color": BLUE,
"fill_opacity": 1,
"color": BLUE
}
def __init__(self, ** kwargs):
Circle... | [
"aamodj23@gmail.com"
] | aamodj23@gmail.com |
c97b9a9eb8da39d90c6f7da18b80bbdae55369b5 | b3cebd6c0eb8573a076e50281e49d9ac7953c003 | /PigLatin.py | 273d37bed6cb7a3381fc731a08d61a14e53ac29a | [] | no_license | Savvasun/PigLatin | 9264fcd1ce24e8fc0428696a31ed25917b61e420 | cb91b837800837eab515f507d49219d9cbc61329 | refs/heads/master | 2022-10-21T21:54:28.513976 | 2020-06-03T17:58:55 | 2020-06-03T17:58:55 | 256,293,614 | 1 | 0 | null | 2020-06-03T17:12:15 | 2020-04-16T18:12:01 | Python | UTF-8 | Python | false | false | 1,769 | py | #This prompts you to enter your message in English.
#It also declares some variables.
text = input("Type your message in english: ")
words = text.split()
print(words)
mode = input("Do you want simple Pig Latin (simple), custom Pig Latin (custom), or classic Pig Latin? (classic): ")
vowels = "aeiou"
vows = list(vowels)
... | [
"savvazhukov2008@gmail.com"
] | savvazhukov2008@gmail.com |
30a9eba4e06419640b6d697d0f49f48aa0214e5b | 4b772fc943e19d1418b49bc179b2e2e307ba81b5 | /cigen/root_page_parser.py | 5ea1e738681c0449b607d4c239a5b11df31c0cdd | [] | no_license | mingming1248/kit | da0adb356ccb76a4b4e6a1faaa5b59faf38339f1 | 9af35fc9fdcf58bd0133a6f22d095c4e998a2643 | refs/heads/master | 2022-11-07T22:00:37.867470 | 2020-06-25T16:08:29 | 2020-06-25T16:08:29 | 274,893,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,451 | py | import requests
from bs4 import BeautifulSoup
import fake_useragent
import json
import os
#注意有个con的词根在windows上无法创建,因为windows不能用con作为文件名
#参考http://iknow.lenovo.com.cn/detail/dc_154023.html
def page_parser(root,link,left_for_download):
root_page=requests.get(link,headers={"User-Agent": fake_userag... | [
"humm5@mail2.sysu.edu.cn"
] | humm5@mail2.sysu.edu.cn |
73797439d36e04dea271e61b61aa8620a1227750 | f3b233e5053e28fa95c549017bd75a30456eb50c | /CDK2_input/L26/26-1S_wat_20Abox/set_1.py | 36b3bd309b7e3c60deb656a873098ec88d7a6bb5 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | import os
dir = '/mnt/scratch/songlin3/run/CDK2/L26/wat_20Abox/ti_one-step/26_1S/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_1.in'
temp_pbs = filesdir + 'temp_1.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lambd... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
25dbb752fd770ca7129476e4ebc8d3a1657c5c7c | 5654998d8a024b2613fc6bbf709875e428914f81 | /src/utils/python/arc/control/AccountingDBSQLite.py | 3d2ba71d5e59ea83704439a5260a63ea98efb14e | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | davidgcameron/arc | 96f4188017e8b6ce71c099fb348a09ba037c1dbb | 9813ef5f45e5089507953239de8fa2248f5ad32c | refs/heads/master | 2021-10-23T22:04:24.290988 | 2019-03-20T07:16:50 | 2019-03-20T07:16:50 | 176,705,313 | 0 | 0 | Apache-2.0 | 2019-03-20T10:03:27 | 2019-03-20T10:03:27 | null | UTF-8 | Python | false | false | 11,201 | py | import sys
import logging
import datetime
import sqlite3
from arc.paths import *
class AccountingDBSQLite(object):
"""SQLite implementation of ARC accounting archive database"""
__dbinit_sql_script = ARC_DATA_DIR + '/accounting_sqlite_db_init.sql'
def __init__(self, db_file):
self.logger = loggin... | [
"manf@grid.org.ua"
] | manf@grid.org.ua |
0a933a99c1a2dafa99ec736f772b3f1e4bfbdf36 | 02cf6e548d88d36d57a719dea6cb4dde2e82bac1 | /test_zensar/views.py | 0094e0cfaed8500e21c3d148970984d2488dc98b | [] | no_license | smurf-U/assignment_zensar | 49942d40306a3825787050346cab0f325706dc29 | d3c9254e6623f7a1fad5a55958cf286cd5a82124 | refs/heads/master | 2022-11-10T15:35:04.481569 | 2020-06-27T13:17:28 | 2020-06-27T13:17:28 | 275,371,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,634 | py |
import json
from django.http import JsonResponse
from django.shortcuts import render, get_object_or_404, redirect
from django.views.generic import ListView, DetailView
from rest_framework import viewsets
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.urls import reverse_lazy
f... | [
"kbprajapati@live.com"
] | kbprajapati@live.com |
5af6b7fe044a6e854da42d9b35f8adab2005fab2 | 8e138461e9ed8e36245965e215685ce978742535 | /qiskit/transpiler/passes/utils/gate_direction.py | 90e66821a268e9c5a5fce4ec630584ef532d26a3 | [
"Apache-2.0"
] | permissive | faraimazh/qiskit-terra | 15d8c378114ee109f7b757a7d3795b4c9079c0a8 | 11c2e3ed89452cb6487db784c17c68a8a6284a57 | refs/heads/master | 2023-03-16T11:31:27.071954 | 2022-09-27T00:33:02 | 2022-09-27T00:33:02 | 220,650,207 | 0 | 0 | Apache-2.0 | 2023-03-06T18:13:26 | 2019-11-09T13:59:40 | Python | UTF-8 | Python | false | false | 8,988 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | [
"noreply@github.com"
] | faraimazh.noreply@github.com |
bba4df0d747d31dec7d8f7945862c9049f93d47e | 58963c1f56c4828e56e53deece68fca3a83db921 | /products/migrations/0003_auto_20190524_1335.py | e4cabc68dbb725038c5c31da469c5458f29b1278 | [
"MIT"
] | permissive | vitali-r/students-lab | 5157b6c66213a4275adfd7b507c0f4ee1c8013a0 | 574ad0249ee40b799a2e8faaced3661915bee756 | refs/heads/master | 2022-05-11T17:22:30.876609 | 2019-06-13T10:19:37 | 2019-06-13T10:19:37 | 187,835,718 | 0 | 0 | MIT | 2022-04-22T21:16:56 | 2019-05-21T12:46:27 | CSS | UTF-8 | Python | false | false | 503 | py | # Generated by Django 2.2.1 on 2019-05-24 10:35
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('products', '0002_auto_20190524_1316'),
]
operations = [
migrations.AlterField(
model_name='prod... | [
"Viachaslau.Pasedzka@itechart-group.com"
] | Viachaslau.Pasedzka@itechart-group.com |
5f2b6b22643e3f0908eee107a65b989b1f00b1fd | 1709d783e50c72fe3e0c9937fbb8a2f794d4934a | /polls/migrations/0011_auto_20200326_2137.py | ba76d08e2dbb676ab511b03a8cc8a0650c57309d | [] | no_license | Mateusz1kar/BillTeam | 8887b467d37baec1be75e646ac1ec72f7a643be6 | f0738272365326728e3fb30f96d378576797c727 | refs/heads/master | 2021-04-05T13:58:07.272291 | 2020-03-26T21:32:50 | 2020-03-26T21:32:50 | 248,563,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # Generated by Django 3.0.4 on 2020-03-26 20:37
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('polls', '0010_auto_20200326_2137'),
]
operations = [
migrations.RemoveField(
model_name='notification',
name='date_end',
... | [
"kar.mateusz@wp.pl"
] | kar.mateusz@wp.pl |
b51a35e2727816f5a9ed2e9f5efa29b51e6e40db | b14abc368251925fe5afe51fafb88d99d0814f87 | /w.py | 8e7c6ee984eb857f524fcd0ea9f2a2895eb48930 | [] | no_license | altoenergy/sledge | 737e90a9847f9df9a7dea102c739a5f62e7e7503 | 2dc872739dadf0fb1d93b80032bf42b93e6fc28e | refs/heads/master | 2021-01-16T00:17:46.952381 | 2013-07-30T12:39:38 | 2013-07-30T12:39:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,736 | py | import math
import numpy as np
import portfolio as ptf
def init_f(size):
initF_ = np.empty(size)
initF_.fill(1.0 / size)
return initF_
def eval_w(prevF_, x__, w__, wParams):
iMax = np.size(prevF_)
f_ = np.empty(iMax)
wEval = wParams['eval']
if (wEval == 'exp'):
for i in range(iMax)... | [
"paul.varnish@altoenergy.com"
] | paul.varnish@altoenergy.com |
2fb8ff929f56898137184d40c8835d32b18fa869 | 9b67fa4378ed821a2a9f052ef14209a6b01b7c99 | /server/server/app/views.py | b02f37680c3c10afe1390448bd267d4f648d0f62 | [] | no_license | lifei-cn/demo_oauth2 | 5de52b6bffef2a83be60b59f073354e115793a34 | b988022ff8158f933250f7247bbd0a15c8a1c123 | refs/heads/master | 2021-06-22T19:57:44.326400 | 2019-08-19T09:24:34 | 2019-08-19T09:24:34 | 202,697,039 | 2 | 0 | null | 2021-03-19T22:37:12 | 2019-08-16T09:13:43 | Python | UTF-8 | Python | false | false | 534 | py | from django.shortcuts import render
from oauth2_provider.decorators import protected_resource
from django.http import HttpResponse
import json
@protected_resource(scopes=['read'])
def profile(request):
return HttpResponse(json.dumps({
"id": request.resource_owner.id,
"username": request.resource_o... | [
"lifei@lifeis-MacBook-Pro.local"
] | lifei@lifeis-MacBook-Pro.local |
57bd10633782fc7bc3c7aa326762932cdf3dc8dc | fa699b7dc0cb1236dfa956ec0c9220c5b8f83b44 | /magichue/__init__.py | c34a7b89c7384bf81c3865aaa4958f274dc6ff60 | [
"MIT"
] | permissive | lexxai/python-magichue | b3703ccda4a568ec84d053a541f5bc40fcf91d25 | 1507bea6844ae420185c25266a870cec69af5de0 | refs/heads/master | 2022-12-26T08:40:41.919257 | 2020-09-18T19:04:33 | 2020-09-18T19:04:33 | 296,468,794 | 1 | 0 | MIT | 2020-09-18T00:01:55 | 2020-09-18T00:01:54 | null | UTF-8 | Python | false | false | 155 | py | from .magichue import Light
from .modes import *
from .discover import discover_bulbs
__author__ = 'namacha'
__version__ = '0.2.9.1'
__license__ = 'MIT'
| [
"mac.ayu15@gmail.com"
] | mac.ayu15@gmail.com |
a63b0abfeeda03300295f742666770391b977866 | b7f6302fb73b28eb6830277feb8b5d6eda5f9db1 | /python/curl.py | c0def548737d34c449227c13f5a902a91f661c9e | [] | no_license | chengongliang/Linux | 47a0b4d6d6b205b8b240146d91659dc4829aa9a9 | 61dcde713984c33c1ac68fc47bbd058a2735361b | refs/heads/master | 2020-04-06T06:03:12.658382 | 2019-07-10T03:39:20 | 2019-07-10T03:39:20 | 47,671,838 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,105 | py | #!/usr/bin/env python
#coding:utf8
import os
import sys
import pycurl
def main(url):
c = pycurl.Curl()
c.setopt(pycurl.URL, url)
c.setopt(pycurl.CONNECTTIMEOUT, 5)
c.setopt(pycurl.TIMEOUT, 5)
c.setopt(pycurl.NOPROGRESS, 1)
c.setopt(pycurl.FORBID_REUSE, 1)
c.setopt(pycurl.MAXREDIRS, 1)
... | [
"noreply@github.com"
] | chengongliang.noreply@github.com |
d1f375720e2a80d9662c995e7e56fc921b74c78a | bdcbbf3730586631a67ba2ad397379c43370c718 | /test_sample_functions.py | d9210c3ba8825dbfb727f775fde6c413cfd7d602 | [] | no_license | bklingen-calpoly/python_unittests | 49ac73d9019e9392dec8a301685e5c3c98f57aff | 6361cb272d034c423aff0a3f96abc0d87d390fc1 | refs/heads/main | 2023-08-29T01:53:17.260219 | 2021-11-09T18:35:08 | 2021-11-09T18:35:08 | 329,997,126 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | import pytest
import sample_functions
def test_sum():
num1 = 5
num2 = 10
assert sample_functions.sum(num1, num2) == 15
def test_contains_numbers():
input_str = "el12lk3j5mnfadf"
assert sample_functions.contains_numbers(input_str) == True
def test_does_not_contain_numbers():
input_str = "l... | [
"bklingen@calpoly.edu"
] | bklingen@calpoly.edu |
96f934eb181676ae4dd477fc987b8771ea85bc01 | eb3fb1997a8e5028f35dabce69ca4f7664bd1629 | /section06-SSH-Pexpect/pexpect-show-ver-telnet-v2.py | 6f7e589a2872e3b391de174144041223cad33254 | [] | no_license | bit-git/docker_devcor | ccefcd2d25dd17cfdee97f8cdf4167db726f2592 | b98c825001da97abb0b7eed00f20dab692a1688d | refs/heads/main | 2023-01-29T04:46:32.586649 | 2020-12-11T22:58:01 | 2020-12-11T22:58:01 | 320,686,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,732 | py | #!/usr/bin/python
import re
import pexpect
#-----------------------------------------------------------------------
def get_devices_list():
devices_list = []
file = open('devices', 'r')
for line in file:
devices_list.append( line.rstrip() )
file.close()
print('Devices list:', devices_l... | [
"omer.chohan@bt.com"
] | omer.chohan@bt.com |
6c3af71fda06f5c2cb5ea1d4adafaa681165074d | 85193841489787aafe55783e3a866b6a128ae3b6 | /Cau02.py | ac950da2d25a56eb2ac78aa4f6933bd315ae9065 | [] | no_license | tungrg/KTDL-1 | 8126934b82a662986e0be738c3c55f9475ca125b | 72b4779d69202d2141c6e6a2b88163212639ffe7 | refs/heads/main | 2023-03-02T04:04:49.980565 | 2021-02-01T14:20:36 | 2021-02-01T14:20:36 | 334,970,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | def cau02(listRow):
count=0
#Duyệt từng dòng
for row in listRow:
#xét từng giá trị của cột trong dòng đó
for key in listRow[0].keys():
if row[key] == '':
count += 1
break
#In ra số dòng bị thiếu dữ liệu
print(count)
return co... | [
"noreply@github.com"
] | tungrg.noreply@github.com |
cf188fc220a015f1d76281283d7c13e5b1599703 | d248e44954328edd4fa009a21ec4cf5ae9513c8c | /Exercise_1.py | 7ed6c6adb1273eddccd699200f457c4acc363040 | [] | no_license | Rakshitha94/PreCourse_1 | 0009c2b382c49066c73c66a3bbb78c64351e9d5d | b760179bbdc857f952c421146bbc7c061a6bb7ce | refs/heads/master | 2020-06-25T17:06:42.974708 | 2019-07-29T05:46:26 | 2019-07-29T05:46:26 | 199,373,499 | 0 | 0 | null | 2019-07-29T03:43:52 | 2019-07-29T03:43:52 | null | UTF-8 | Python | false | false | 832 | py |
def createStack():
stack=[]
return stack
def isEmpty(stack):
return len(stack)==0
def push(stack,item):
stack.append(item)
print(item + " pushed")
def pop(stack):
if(isEmpty(stack)):
return -1
return stack.pop()
def peek(stack):
if isEmpty(stack):
return - 1
retu... | [
"lalitharr@gmail.com"
] | lalitharr@gmail.com |
689e2c12f0bb10f410e74b1445b159f59430d7c5 | 926ad7a188910991ee6a66dc7237af9332128aa4 | /GAT/models/base_gattn.py | 222a8e29727e0c7546fdd306d117e5867ac99af9 | [
"MIT"
] | permissive | YunseobShin/wiki_GAT | 26c54f810e1f0e5391ab0692b094796376d0a10c | ff403bc365d93977277836e9998100b8a5a5a742 | refs/heads/master | 2020-04-21T11:22:21.757302 | 2019-02-19T00:08:00 | 2019-02-19T00:08:00 | 169,522,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,492 | py |
import tensorflow as tf
class BaseGAttN:
def loss(logits, labels, nb_classes, class_weights):
sample_wts = tf.reduce_sum(tf.multiply(tf.one_hot(labels, nb_classes), class_weights), axis=-1)
xentropy = tf.multiply(tf.nn.sparse_softmax_cross_entropy_with_logits(
labels=labels, logits... | [
"yss@115.145.170.73"
] | yss@115.145.170.73 |
1d26faee52aebb1a4aeb52fc612b72efa2b1732a | 91e91cd6cbca801065480e4e11178a30294cb2a2 | /plan/migrations/0002_auto_20171026_1636.py | 62978a6834035d759bc30be943f6c111206b0804 | [] | no_license | Slavvok/conference-app | 3a501b03da853fd4b21802939a5bda9434f22894 | cd20a338ee33222453fadec4e3a9ce800d6e2662 | refs/heads/master | 2021-08-14T14:30:27.653684 | 2017-11-16T01:14:02 | 2017-11-16T01:14:02 | 110,745,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-26 13:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('plan', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
... | [
"slavvok@gmail.com"
] | slavvok@gmail.com |
49b4e0b91d57155a69ce4080265a0ee06dd8bf3c | 159d4ae61f4ca91d94e29e769697ff46d11ae4a4 | /venv/lib/python3.9/site-packages/webdriver_manager/archive.py | f827dc3151deda496a84de6fc9aa5809d377ab0e | [
"MIT"
] | permissive | davidycliao/bisCrawler | 729db002afe10ae405306b9eed45b782e68eace8 | f42281f35b866b52e5860b6a062790ae8147a4a4 | refs/heads/main | 2023-05-24T00:41:50.224279 | 2023-01-22T23:17:51 | 2023-01-22T23:17:51 | 411,470,732 | 8 | 0 | MIT | 2023-02-09T16:28:24 | 2021-09-28T23:48:13 | Python | UTF-8 | Python | false | false | 1,045 | py | import tarfile
import zipfile
class Archive(object):
def __init__(self, path: str):
self.file_path = path
def unpack(self, directory):
if self.file_path.endswith(".zip"):
return self.__extract_zip(directory)
elif self.file_path.endswith(".tar.gz"):
return self... | [
"davidycliao@gmail.com"
] | davidycliao@gmail.com |
765d28fd3c7162aa08d4563b8ce9836633e54eb7 | f9299e3d8510d701e2323effd50eb45550318195 | /watcher.py | 37d1110085604950e8ebe0940aee33e304bb0447 | [] | no_license | nomad1072/openwhisk-image-manipulation | a742a4246fdf5955c3be77cdb599b29da72b683f | 720951a58f4fb9392c6eb30e55f9f198fb826d65 | refs/heads/master | 2022-12-27T06:28:43.877723 | 2020-03-26T04:39:34 | 2020-03-26T04:39:34 | 243,813,835 | 0 | 0 | null | 2022-12-10T22:59:31 | 2020-02-28T17:05:15 | JavaScript | UTF-8 | Python | false | false | 2,118 | py | import sys
import time
import logging
import requests
import base64
import json
from PIL import Image
from watchdog.observers import Observer
from watchdog.events import LoggingEventHandler, FileSystemEventHandler
class Event(FileSystemEventHandler):
def on_created(self, event):
print('Foobar')
... | [
"siddharthlanka@gmail.com"
] | siddharthlanka@gmail.com |
57bed8874c41622396c68ed6ce94e7487cf30571 | 1777f5e6f3129e5e2df75161f669eb0531355a0b | /myweb/mysite/mysite/settings.py | 7006d090af6b3805289d063a436b8c28abe3339e | [] | no_license | HakimdarC/CRUD-project-Django-Django | ca52b3420a3e25fcebea7f855102a9e306dcbb19 | 4fe51989e1be7940331ddb89ccc7992a6a49559a | refs/heads/master | 2022-10-08T04:01:41.530990 | 2019-07-26T12:04:02 | 2019-07-26T12:04:02 | 195,555,184 | 0 | 1 | null | 2022-10-03T14:09:50 | 2019-07-06T15:33:10 | Python | UTF-8 | Python | false | false | 3,250 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# ... | [
"moseshakim23@gmail.com"
] | moseshakim23@gmail.com |
e3f55c63e9336019e278147e60049af38ee6af12 | 10cfa8981dfe98492a057e072be853fb046f8fe2 | /DS-Unit-3-Sprint-1-Software-Engineering-master/SC/acme_report.py | 69f709148d540e8d6f2d4b77524cc89eb07a678b | [
"MIT"
] | permissive | nvisagan/DE_LDS3 | 88c52a56ede9dbc2d8f94a08688d32134a8584e0 | 823f4834fb6fa70ed0be30680d7ca809b7045bb9 | refs/heads/master | 2022-12-13T03:40:54.892079 | 2019-11-18T04:25:22 | 2019-11-18T04:25:22 | 222,361,335 | 0 | 0 | MIT | 2021-04-30T21:45:20 | 2019-11-18T04:08:25 | Python | UTF-8 | Python | false | false | 1,621 | py | from random import randint, sample, uniform
from acme import Product
# For random sample to generate names
ADJECTIVES = ['Awesome', 'Shiny', 'Impressive', 'Portable', 'Improved']
NOUNS = ['Anvil', 'Catapult', 'Disguise', 'Mousetrap', '???']
def generate_products(num_products=30):
""" Generate Acme Products """
... | [
"noreply@github.com"
] | nvisagan.noreply@github.com |
4777634a7108cdcae453309b391c4f10c3645123 | 0348c7aac6a373a8565c017be0c0e1df1b50514d | /inventory_plugins/yaml_groups.py | 4cdeb27bfd740046e65c8b9a533e344907a8f4c0 | [
"MIT"
] | permissive | igorbelitei/ansible-inventory-yaml-groups | 35034fd47e706ebafc6dcaceda77ccd582f88b65 | 3060b7140039c6dc8f43ecb5fa34e52d3f7e038c | refs/heads/master | 2021-09-13T05:55:48.516353 | 2018-04-25T18:53:28 | 2018-04-25T18:53:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,046 | py | from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = '''
inventory: yaml_groups
short_description: Uses a specifically YAML file as inventory source.
description:
- Alternative YAML formatted inventory for Ansible.
- Allows you to to assign... | [
"andrew.phillips2@canada.ca"
] | andrew.phillips2@canada.ca |
ff5c3508ad4fd0c5674db769a295de3fe147d1f5 | c5b155ff1df6ea9e038e101767cf0133e348994e | /zuriproject/urls.py | ad4962196d1e8f61b988bdb3c23646e588a835ae | [] | no_license | Tashy009/Zuri-training | 1c482660c5100ce32ca1ed88a1558c6e083086c0 | 5308fea0ee0c41b4bfcb0ca0f111f8aa74edd23d | refs/heads/master | 2023-04-19T06:45:32.408971 | 2021-04-20T14:00:38 | 2021-04-20T14:00:38 | 358,369,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | """zuriproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"shittutaofeek009@gmail.com"
] | shittutaofeek009@gmail.com |
4ce24f32d7afe68264e338a9c35878ac99da8a38 | fa852eb0102e38b43c1053c31c75570f9bb0445b | /problems/minimumDominoRotation.py | 24bb5809515e52adb401f75b9aa2c31846ebef52 | [] | no_license | wenyaowu/leetcode-js | 2380d37dab9a103ba994230e1930d42d2e97bce3 | 377143875d8a0fce924dddcf7167a4312e80070d | refs/heads/master | 2020-08-07T05:15:14.745363 | 2020-04-06T20:12:15 | 2020-04-06T20:12:15 | 213,312,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | """
In a row of dominoes, A[i] and B[i] represent the top and bottom halves of the i-th domino.
(A domino is a tile with two numbers from 1 to 6 - one on each half of the tile.)
We may rotate the i-th domino, so that A[i] and B[i] swap values.
Return the minimum number of rotations so that all the values in A are t... | [
"wen-yao.wu@cigna.com"
] | wen-yao.wu@cigna.com |
3fc799fe13345e1eae8b48fa05b126090829b332 | 5a96112e11834d400a59b76caee33fd63831e273 | /python3_API_framework_V2/TestCases/test_api_v2.py | 60c0bfcfe591a2359e2ea5d8e3fd20024415a63f | [] | no_license | zhaozongzhao/interface_test | d3f93c8220cb5fab5f063ce7e315e54b2f623ce6 | f63f7e188639b34a8b80c9ce57591d9cabe3f4f8 | refs/heads/master | 2020-05-02T03:21:51.633352 | 2019-04-10T15:32:12 | 2019-04-10T15:32:12 | 177,726,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,456 | py | import unittest
from Common.DoExcel import DoExcel
import os
from Common import myRequest
import ddt
from Common import dir_config
from Common import myLogger2
import logging
import re
#实例 化日志对象
#logger = MyLogger()
# 获取所有的测试数据
excelfile = dir_config.testcase_dir + "/api_info_1.xlsx"
de = DoExcel(excelfi... | [
"2206321864@qq.com"
] | 2206321864@qq.com |
4b9394fcf22a80069c7b0fa99773765f13fc7a07 | 7d2f933ed3c54e128ecaec3a771817c4260a8458 | /venv/Lib/site-packages/mpl_toolkits/mplot3d/art3d.py | 2d28a808af66a5141266c6950f5966ee40a2a899 | [] | no_license | danielmoreira12/BAProject | c61dfb1d0521eb5a28eef9531a00e744bfb0e26a | 859f588305d826a35cc8f7d64c432f54a0a2e031 | refs/heads/master | 2021-01-02T07:17:39.267278 | 2020-02-25T22:27:43 | 2020-02-25T22:27:43 | 239,541,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,020 | py | # art3d.py, original mplot3d version by John Porter
# Parts rewritten by Reinier Heeres <reinier@heeres.eu>
# Minor additions by Ben Axelrod <baxelrod@coroware.com>
"""
Module containing 3D artist code and functions to convert 2D
artists into 3D versions which can be added to an Axes3D.
"""
import math
import numpy a... | [
"danielmoreira12@github.com"
] | danielmoreira12@github.com |
d3929dc97598aab6a7af1debfbe632157c441bb5 | 0b01cb61a4ae4ae236a354cbfa23064e9057e434 | /alipay/aop/api/request/AlipayOpenMiniVersionListQueryRequest.py | ad88c60fc343c2034182b816202dcf7724a44190 | [
"Apache-2.0"
] | permissive | hipacloud/alipay-sdk-python-all | e4aec2869bf1ea6f7c6fb97ac7cc724be44ecd13 | bdbffbc6d5c7a0a3dd9db69c99443f98aecf907d | refs/heads/master | 2022-11-14T11:12:24.441822 | 2020-07-14T03:12:15 | 2020-07-14T03:12:15 | 277,970,730 | 0 | 0 | Apache-2.0 | 2020-07-08T02:33:15 | 2020-07-08T02:33:14 | null | UTF-8 | Python | false | false | 3,184 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
class AlipayOpenMiniVersionListQueryRequest(object):
def __init__(self, biz_model=None):
self._biz_model = biz_model
self._version = "1.0"... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
870ca82694c972d8e5693ffb3e26f5f15fed31dc | 5986fa4765eeb352bf7cfa2c9782a22d0e6d7f86 | /Servlet/Database/__init__.py | dbdc8312de517f6f615303f88de3dfda25457ea2 | [] | no_license | themerius/nox-obscura.eu | b81649201a7fa050202b547ffe155bf1346afc81 | 821da08e6d4bf6083921b9dce00d897ae975a364 | refs/heads/master | 2020-05-20T09:20:33.691837 | 2015-02-12T16:58:36 | 2015-02-12T16:58:36 | 30,710,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,291 | py | # -*- coding: utf-8 -*-
# Nox Obscura Guildpage
# ---------------------
import couchdb # minimal Version 0.8.
from Servlet import site_cfg as cfg
viewDict = {
# User Views:
'users-1': 'dev/getCharList', # username, charList
'users-2': 'dev/points', # points, {'username':, 'charList':}
'users-3': 'dev/email', # em... | [
"sven.hodapp@gmail.com"
] | sven.hodapp@gmail.com |
d9aecb93dc9206914cef8b2032e80586cb4021f3 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/eqptcapacity/l3totalusagecap1w.py | 8a9e840a82e552ac433c1581e5975f775e7ff967 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,132 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
9f51db102043827d93a8268e6c2d8b224866b62b | 486bfe036b871551bb40f4a035d4137231198513 | /src/7.demo_picture.py | aeee9d83dfa48b96f34bcd560708e77dc4352eaf | [] | no_license | sinnergarden/Just_An_Assignment | a9bdd5d19af899e342749a9c5711e21d0e602de5 | 46660896690b41075e6666fa038b4ca380917f87 | refs/heads/master | 2021-04-12T08:49:56.581110 | 2018-03-21T09:05:41 | 2018-03-21T09:05:41 | 126,139,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,658 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 20 18:51:13 2018
@author: liuming
"""
from darkflow.net.build import TFNet
import cv2
import numpy as np
import glob
options = {"model": "cfg/yolo-fashion.cfg",
"load": -1, #"ckpt/yolo-fashion-1562.meta",
"threshold": 0.03, 'gpu':1.0}
tfnet = TFN... | [
"mingliu@xrvision.com"
] | mingliu@xrvision.com |
83ea250f5a82814fa9f77f670e7ff821055f4ca8 | baa9a0a546c1a77ddc0077b34a433e49649ad918 | /venv/bin/pip | 1b43856e583093aa25ac2fd8dd1fe4cb721f6889 | [] | no_license | shubhampachori12110095/VehicleRouting | 9fb2ae535808fcd168216930d9bc5fb91ee21fa6 | c2b5c3490ff6b7b163ef2f4c50933c583c2f80c6 | refs/heads/master | 2022-12-21T23:20:17.019637 | 2020-10-06T15:19:34 | 2020-10-06T15:19:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | #!/Users/alohnerpiazza/Desktop/EnviaFlores/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"alohnerpiazza@gmail.com"
] | alohnerpiazza@gmail.com | |
e1bbce8655b1596bb2a77c6db900e7a854d70cf5 | 2c16e24486ac92bbd37f5c6d0d00ec4ba4d48e56 | /ex/ex1.py | 0d5193b36e4107bb3f5edf45a87b64307424927a | [] | no_license | alagram/lpthw | 386b6cf7534e2f7dba2e5832d6975107f27ceb9b | 656e7526006de80354917da881cbcbb3dbe8523a | refs/heads/master | 2021-01-10T20:55:35.461722 | 2014-09-16T18:33:50 | 2014-09-16T18:33:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | # print "Hello World!"
# print "Hello Again"
# print "I like tying this."
# print "This is fun."
# print "Yay! Printing."
# print "I'd much rather you 'not'."
# print 'I "said" do not tocuh this.'
print "I am still printing..."
| [
"albert.agram@gmail.com"
] | albert.agram@gmail.com |
4952991a1d640a087562cf54e0c0e68b505e879f | 8f0d1699307a057fb73579863c36eec428fed8f4 | /MapColoringProblem.py | a73bebbaa72099c79c80d6fc60628ee101541db3 | [] | no_license | EitanVilker/AI4 | b9718f0a5e539d9a5e54ad329a423c6433f4c691 | 9e1e57beb466939d70b84e09dd607d0cb5cba0f7 | refs/heads/main | 2023-08-25T19:15:25.254543 | 2021-10-24T04:25:18 | 2021-10-24T04:25:18 | 416,148,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py | from ConstraintSatisfactionProblem import ConstraintSatisfactionProblem
class MapColoringProblem(ConstraintSatisfactionProblem):
def __init__(self, variables, domains, constraints):
self.variables = variables
self.domains = domains
self.constraints = constraints
self.variable_inde... | [
"eitan.e.vilker.21@dartmouth.edu"
] | eitan.e.vilker.21@dartmouth.edu |
8fc5feebc189aeacbee5c7a951d963f6cdd0dec0 | c7580ef245b8e82a3f29afa0de0258d96b42dd9b | /apps/webshop/__init__.py | 94de1e730f6974c3bb08d597f996b2bf77649e03 | [
"MIT"
] | permissive | Jorrre/onlineweb4 | 083ff1ae2ba8cf457a124d4de9d3b7412dbb1e5a | 8b7eda112c18accf02fb42542a1d20b67d1a515d | refs/heads/main | 2023-07-09T13:41:57.167319 | 2021-06-07T14:47:53 | 2021-06-07T14:47:53 | 279,148,142 | 0 | 0 | MIT | 2020-07-12T21:07:06 | 2020-07-12T21:07:06 | null | UTF-8 | Python | false | false | 60 | py | default_app_config = "apps.webshop.appconfig.WebshopConfig"
| [
"henrik@horluck.no"
] | henrik@horluck.no |
c0a156b2bc9c5366ce1dcb8d8ac7f4eb4cf6ca0f | d28a9d0b1df11f87842fdece6f26ff8bb76dafc5 | /stock_analyse_system/python/jq/get_international_indice.py | d636e7eef67863c7e1a354c41c87d4536207e4ee | [] | no_license | clouderzheng/stock_analyse_system | 9949e6080a2cd9546e610d419a9d235ca343bd49 | 61973eaee973153cd230aa977a6c9c420c99e659 | refs/heads/master | 2022-11-14T22:52:07.256520 | 2020-07-08T00:42:41 | 2020-07-08T00:42:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,852 | py | import jqdatasdk as jq
from jqdatasdk import finance
from python.jq import login
import datetime
"""获取国际化指标"""
class InternationalIndice(object):
"""初始化登陆聚宽"""
def __init__(self):
login.login()
# """获取纳克达斯指数"""
# def get_Nasdaq_Composite_Index(self,count = 100 ):
# return self.get_In... | [
"zhengjingyun@unionbigdata.com"
] | zhengjingyun@unionbigdata.com |
46efd06e7181e3095d182fdcacca6baea3973712 | 8d375652e44b67d73102fee7abc1abaab4cb4329 | /mcompiler/kernel/makeref.py | 9dfdeb93aea606402be14eef4fbc0d4790b57a87 | [
"MIT"
] | permissive | paulscottrobson/old-m-versions | 6d2061e36f2a5aaef388a4786406f876f0a06e0b | c2edb4200d32e066223ace4fd05837a485302645 | refs/heads/master | 2020-04-04T03:09:25.399283 | 2018-11-01T12:14:57 | 2018-11-01T12:14:57 | 155,709,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | # ***********************************************************************************************
# ***********************************************************************************************
#
# Name : makeref.py
# Purpose : make reference file.
# Author : Paul Robson (paul@robsons.org.uk)
# Created : 17th... | [
"paul@robsons.org.uk"
] | paul@robsons.org.uk |
7382cf4ae940afcc100eb670337e2eca1f2ea8f5 | a98e008946a5a89bfec7c8e0a2968ddef65e2e80 | /extensions.py | 9338da5da06b613b7f9db615c110b9e11bc08aca | [] | no_license | Jyue0812/blog-flask | a978c19b1cf386258779e78a9e630fd73546c975 | e3f309c5d4597cd44b73ae540eab6fdfa9f09df3 | refs/heads/master | 2020-03-22T09:29:36.212113 | 2018-07-05T11:40:14 | 2018-07-05T11:40:14 | 139,841,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | from flask_bootstrap import Bootstrap
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_mail import Mail
from flask_moment import Moment
from flask_login import LoginManager
db = SQLAlchemy()
boot = Bootstrap()
migrate = Migrate(db=db)
mail = Mail()
moment = Moment()
login_manager =... | [
"yueyuezhu@msn.com"
] | yueyuezhu@msn.com |
2a976186b04e2414a02608208b9b889bdc4db0de | 1b8fba01309da37f8d0ff408765c1d545fc588d6 | /tests/data/test_d2go_datasets.py | 8f5c1514bfeff7ecb756ed09dba2c86dcd1c1ecd | [
"Apache-2.0"
] | permissive | supriyar/d2go | 9bd54bcb2704c91d7bf0d5fceab2ac4f23d59346 | 9dc1600b05ecf60fab556599b4c0bc6c32837449 | refs/heads/main | 2023-08-11T16:19:50.578547 | 2021-10-01T17:43:32 | 2021-10-01T17:44:49 | 413,646,825 | 0 | 0 | Apache-2.0 | 2021-10-05T02:20:59 | 2021-10-05T02:20:58 | null | UTF-8 | Python | false | false | 10,262 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import copy
import json
import os
import unittest
import d2go.data.extended_coco as extended_coco
from d2go.data.keypoint_metadata_registry import (
KEYPOINT_METADATA_REGISTRY,
KeypointMetadata,
get_keypoint_meta... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
aa12413bce14f2f5aa38cac2b5f3eb2d9bc9aa3c | 7632459a329d2899dfb37d871e5e0d9570b2ea6d | /AI Homework.py | fce99319a90634f65c80e1cc52d329f98869196f | [] | no_license | chun1102/data-type | b7ad8f1bec76ebcd6fb1e7e9218ce0962ef2cede | 7c8d9739f3538aa5de3ec87edf32158b11fdc4bc | refs/heads/master | 2020-04-24T13:53:58.766193 | 2019-04-24T02:51:10 | 2019-04-24T02:51:10 | 172,003,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | # month = input('請輸入要請假的月:')
# day = input('請輸入要請假的日:')
# int_month = int(month)
# int_day = int(day)
# monthday = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
# sum_month = sum(monthday[0:int_month-1])
# sum_day = sum_month + int_day
# week = (sum_day) % 7 +1
# print('星期', week)
# -------------------------------... | [
"chun1123581321@hotmail.com"
] | chun1123581321@hotmail.com |
0d2ea1c5f31a044d68ce7bb06f65aaa2ee8a1422 | 327981aeef801fec08305d70270deab6f08bc122 | /13.tkinter与银行系统实战/thinker/18.Combobox下拉控件.py | 0dc0692ce37fde2328c063bb484b27127a142176 | [] | no_license | AWangHe/Python-basis | 2872db82187b169226271c509778c0798b151f50 | 2e3e9eb6da268f765c7ba04f1aefc644d50c0a29 | refs/heads/master | 2020-03-20T12:15:44.491323 | 2018-06-15T08:24:19 | 2018-06-15T08:24:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | # -*- coding: utf-8 -*-
import tkinter
from tkinter import ttk
#创建主窗口
win = tkinter.Tk()
#设置标题
win.title("魔兽世界")
#设置大小和位置 大小400x400 距离左侧400,距离上侧100
win.geometry("400x400+400+100")
#绑定变量
cv = tkinter.StringVar()
com = ttk.Combobox(win, textvariable = cv)
com.pack()
#设置下拉数据
com["value"] = ("济南", "青岛", "济宁")
#设置默认值
... | [
"huanji2209747841@foxmail.com"
] | huanji2209747841@foxmail.com |
4fa8122715a8ceb6252aed6bc2fae2ba520cd07a | e8c2881e13557f4cfdefae3a11970cb71d956922 | /tests/test_predictive_search.py | 3918d55add7abe62a36d49d558de81481e519ea7 | [
"BSD-3-Clause"
] | permissive | oguna/pymigemo | a89dfbf8536d99769a187a0ebc4a7fec14531788 | 3168601b3f282dab67184d174418ae88e2f512da | refs/heads/master | 2022-10-15T17:03:43.214804 | 2022-09-25T10:28:07 | 2022-09-25T10:28:07 | 255,638,701 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | from unittest import TestCase
import unittest
import migemo.romajiconverter
class TestPredictiveSearch(TestCase):
def test_convert_romaji_to_hiragana(self):
self.assertEqual('あ', migemo.romajiconverter.convert_romaji_to_hiragana('a'))
self.assertEqual('z', migemo.romajiconverter.convert_romaji_to_... | [
"nao.lk.118@gmail.com"
] | nao.lk.118@gmail.com |
c3272a6d17e416f40214a15000daead4cb89569e | 7b9257e9fd5832323feb1cd4a2c8552edc937cf8 | /ctw-baseline-master/ssd/caffe/examples/ssd_demo_patch_crop.py | 2007c2e8ee9ed4fdd0a7417524979772e4f1435e | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"MIT",
"Apache-2.0"
] | permissive | dodgaga/Keywords_CTW | 4df027f80a3dd1aa72afd1e8b1faba3f6bafdff9 | 8e5c1f344606410c81e23bae1034ddb812fe849e | refs/heads/master | 2020-03-11T07:45:13.850667 | 2018-04-18T02:59:30 | 2018-04-18T02:59:30 | 129,865,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,754 | py | import numpy as np
import matplotlib.pyplot as plt
import PIL.Image as Image
import cv2
#matplotlib inline
plt.rcParams['figure.figsize'] = (10, 10)
plt.rcParams['image.interpolation'] = 'nearest'
plt.rcParams['image.cmap'] = 'gray'
# Make sure that caffe is on the python path:
caffe_root = '/home/wudao/ctw/ctw-basel... | [
"757480639@qq.com"
] | 757480639@qq.com |
c6e6e1ef088631e80462884b26b6f3bdfea593fb | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res/scripts/client/messenger/proto/bw_chat2/find_criteria.py | ea24304c044114f780246fdbce4279659cbd77a3 | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,701 | py | # 2016.02.14 12:42:53 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/messenger/proto/bw_chat2/find_criteria.py
from constants import PREBATTLE_TYPE
from messenger.ext import channel_num_gen
from messenger.m_constants import BATTLE_CHANNEL, PROTO_TYPE
from messenger.proto.interfaces import IEntityFindCr... | [
"info@webium.sk"
] | info@webium.sk |
2e59aa5d004b542b01704a4d2225100f236ee117 | d808d22998d4498638414f924af490c2e60acbba | /collections/src/Collections-pt1/aula2.1.py | dde742f2b12edfa39f8df886adc86faaf382f96d | [] | no_license | Mathtzt/Python | faeb36ba63e3fc623bc39cb2d3fd3548bcb50ad8 | 04232c99396f9768137e8a0527dda37c8b769ae9 | refs/heads/master | 2023-02-09T17:07:58.951086 | 2021-01-03T00:45:35 | 2021-01-03T00:45:35 | 289,573,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,557 | py | ##Esse arquivo foi criado para o estudo das Coleções no python em especial as listas e tuplas.
class ContaCorrente:
def __init__(self, codigo):
self.codigo = codigo
self.saldo = 0
def deposita(self, valor):
self.saldo += valor
def __str__(self):
return "[>>Cod... | [
"matheus.cn10@gmail.com"
] | matheus.cn10@gmail.com |
2e78637ce106bd6df1734f47548f91b1b8172d72 | f4fbfe6ba6baaa12ff3fd79507e8397068d5c0b4 | /blog/urls.py | 44a9a15151dad2e98c4c5d59633eaee3263856a8 | [] | no_license | jam2a/my-first-blog | 69516410701b5815052e8ebf58385d252f79aea9 | 70ce27a8d02f71132900aa7ac40bc30b40c8d8c6 | refs/heads/master | 2020-03-28T20:30:02.978761 | 2018-09-17T13:36:13 | 2018-09-17T13:36:13 | 149,076,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.post_list, name='post_list'),
path('post/<int:pk>/', views.post_detail, name='post_detail'),
path('post/new', views.post_new, name='post_new'),
path('post/<int:pk>/edit/', views.post_edit, name='post_edit'),
]
| [
"jam2@jmail.plala.or.jp"
] | jam2@jmail.plala.or.jp |
2ab777a490e53a46f4e5f312be43543a21489dc7 | 0cf29e73d907911d13ffb75d97777052e19facd7 | /examples/model_compress/pruning/v2/activation_pruning_torch.py | 4e79bd5102da4e256d9fd92767607b1f8208aad8 | [
"MIT"
] | permissive | ultmaster/nni | e2a3db9ac794ffc0ee37bc6aec44fbee417b2040 | 68ca6f21ee0d163fa17c5e303f470da84c0c4c97 | refs/heads/master | 2023-07-06T01:39:28.068554 | 2022-03-07T08:22:50 | 2022-03-07T08:22:50 | 200,209,376 | 0 | 0 | MIT | 2022-07-20T02:44:26 | 2019-08-02T09:43:28 | Python | UTF-8 | Python | false | false | 6,198 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
'''
NNI example for supported ActivationAPoZRank and ActivationMeanRank pruning algorithms.
In this example, we show the end-to-end pruning process: pre-training -> pruning -> fine-tuning.
Note that pruners use masks to simulate the real pruning.... | [
"noreply@github.com"
] | ultmaster.noreply@github.com |
637f8a88898e01790740bce96fe0dfbce3ff45a5 | e9946dc85edf828d0b40eb09eec1d834f5d07890 | /print_test.py | cedb51604cc597958c89e3b6806dbf1cadf40c06 | [] | no_license | sillyer/learn-python-the-hard-way | 07bc1386e316285402b4994395009b5bd5f47363 | 5d35130622e5ad87b1fcb4bbf46f5f31d60f05f2 | refs/heads/master | 2021-05-06T02:56:24.192844 | 2018-01-25T09:41:41 | 2018-01-25T09:41:41 | 114,712,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | print """
test
test
test
"""
| [
"achen586@gmail.com"
] | achen586@gmail.com |
7309a10797c007334b7e4bcc6ecd7e2f83890ade | 01c2a07a1c87ca3883cfe981a8abff7e5251b100 | /game.py | 924d1779b2dd5b7ccea225718c14388d0c41a7ab | [] | no_license | Dayron124/Pictionary-Python | f741c75b7a2444c3f02bc7c700961a543f8f7c6b | 4a79e963c3be324c4b514223962bd490e214066c | refs/heads/main | 2023-08-20T23:22:39.790066 | 2021-10-27T09:19:58 | 2021-10-27T09:19:58 | 419,214,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | """
Handles operations related to game and connections between, player, board, chat and round
"""
from .player import Player
from .board import Board
from .round import Round
class Game(object):
def __init__(self, id, players):
self.id = id
self.players = players
self.words_used = []
... | [
"darrenkeithwhite123@gmail.com"
] | darrenkeithwhite123@gmail.com |
39d2163f110b8219db0deb50a4510ce04ca481a4 | ff4f3e8b39a136c92faffa2463cdf44d59665169 | /lib/counterfc.py | 3ca175a3ce1ed8b2fb951de31b0e966c4e4f343b | [] | no_license | nirmalya-broad/PatHCap_PL | 275d897fc153432d7b8f1e888bd6f242839bb6c1 | a790c9c9423ea4eaf43b9a71573137e370ae9269 | refs/heads/master | 2022-12-20T07:53:44.829036 | 2020-09-30T22:04:49 | 2020-09-30T22:04:49 | 256,802,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,910 | py | import re
from subprocess import call
from miscutils import get_pct
class CounterFC:
def __init__(self, cldict, sampd):
self.cldict = cldict
self.sampd = sampd
def get_reverse_dir(self, strand_dir):
reverse_dir = ''
if strand_dir == 'reverse':
reverse_dir = 'forw... | [
"nirmalya@broadinstitute.org"
] | nirmalya@broadinstitute.org |
d13f8bea4ddda9ccb02c2181021c14da9b3fb1d8 | f3c7ece759a1565256712e69ae6d1959f35a8b3a | /blog/models.py | eca982ccd765db0aa1ad2cebe47c979c5da5164f | [] | no_license | sashoki/starRest | b08e1aa64803834ffbfc407f6c4c80531a242544 | 7de726009d182f0e5aa9fa2dfd62247bdcf726bb | refs/heads/master | 2020-05-24T01:23:08.700483 | 2019-05-16T13:32:03 | 2019-05-16T13:32:03 | 187,033,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,090 | py | # -*- coding: utf-8 -*-
from django.db import models
from django.contrib.auth.models import User
from django.contrib.auth.base_user import AbstractBaseUser
import uuid
from django.utils.safestring import mark_safe
from django.utils import timezone
# Create your models here.
class UserProfile(models.Model):
c... | [
"ideauspeha@gmail.com"
] | ideauspeha@gmail.com |
8edf548db029dd530fa8bddd6f142a6ecd491f48 | 3dfb4ee39555b30e6e0c6fcdbef371864e69f694 | /google-cloud-sdk/lib/googlecloudsdk/api_lib/dns/transaction_util.py | e0444226d947ade648184a8d0f468d647f579eed | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | MD-Anderson-Bioinformatics/NG-CHM_Galaxy | 41d1566d5e60416e13e023182ca4351304381a51 | dcf4886d4ec06b13282143ef795c5f0ff20ffee3 | refs/heads/master | 2021-06-02T21:04:12.194964 | 2021-04-29T14:45:32 | 2021-04-29T14:45:32 | 130,249,632 | 0 | 1 | null | 2020-07-24T18:35:21 | 2018-04-19T17:25:33 | Python | UTF-8 | Python | false | false | 5,070 | py | # Copyright 2014 Google Inc. All Rights Reserved.
#
# 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... | [
"rbrown@insilico.us.com"
] | rbrown@insilico.us.com |
f50c03106b11172d042019389b17effbb2734fd1 | 5480f743915225b4e4b158b789f6f34e7226a61c | /face.py | 4c57dbb434c6b55f96595fb14476aca5183e2c95 | [] | no_license | istiakahmad/AI-based-online-exam | 6ed4b25f06e743b30639fc4bcd0d4c2fd706a4be | c74260028cae48a048a265eb995ab9e9d47d890e | refs/heads/master | 2020-06-10T17:20:46.040772 | 2019-06-25T11:00:40 | 2019-06-25T11:00:40 | 193,690,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,823 | py | from __future__ import print_function
import face_recognition
import os
import glob
import cv2
import time
def facerecognitionFunction(username):
def scan_known_people(known_people_folder):
known_names = []
known_face_encodings = []
for file in known_people_folder:
basename =... | [
"istiakahmad86@gmail.com"
] | istiakahmad86@gmail.com |
c0f033a974bd1edfd8566b7f3bfe0a207bcaa701 | 9f954f8f194610431af79caee31f405289a0400e | /MongoDb/import_file_mongo.py | f92ecb952c8686d7bb03c9361ba4c6e6cbf346ed | [] | no_license | sahilchilana/Innovaccer-elasticsearch- | c43f06e5a868ad531eb9758f2fab395bee390d8a | 3bdf20254e3ea3a590856d734e10a88eabd2f6f8 | refs/heads/master | 2020-05-26T00:42:30.156986 | 2019-05-24T08:56:10 | 2019-05-24T08:56:10 | 188,053,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | import json
import pymongo
myclient = pymongo.MongoClient("mongodb://localhost:27017/")
mydb = myclient["mydatabase"]
mycol = mydb["config_file"]
with open('config.json') as f:
file_data = json.load(f)
mycol.insert_one(file_data) | [
"noreply@github.com"
] | sahilchilana.noreply@github.com |
675216a738395696e32032cdaf76581e4a9e6f05 | 79de4db43dc6b1503b21927a6b019f44e6aec31e | /src/git_reports/analyser.py | 42248ec3dde4a121257e666d74ff8e6941970af3 | [
"MIT"
] | permissive | premchalmeti/git-reports | 608d7b00092dac643af4c13af4158140a4492c19 | ed73bf9b4586b990e9792991dbae537aa8d7ad5c | refs/heads/master | 2023-04-03T13:10:37.806117 | 2021-04-11T18:44:14 | 2021-04-11T18:44:14 | 356,949,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,820 | py | #!/usr/bin/python
"""
The analyser is the entrypoint for the analysis
>>> analyser = GitAnalyser('repos/django')
>>> analyser.analyse()
>>> analyser.output_html('django_analysis.html')
"""
import git
import datetime as dt
import argparse
import json
__version__ = '0.0.1'
class AnalysisEmptyError(E... | [
"premkumarchalmeti@gmail.com"
] | premkumarchalmeti@gmail.com |
a9973f9c03c4beed2ba9fd4aba1aa4f7f968f84e | a3934f43f3c1e0a332eba3c2dd648f5b02cf7be7 | /StockAlert.py | 04f58f777bb49c4d61ef3e6428a91e44ab3dd468 | [] | no_license | harpaulgill/stock-alert-app | 457777d9162dd5fec457b3cd28cc77765239a848 | 37ce470b051812c63b0a6b272d020251bb67c085 | refs/heads/master | 2020-03-26T21:09:51.368071 | 2018-08-20T05:53:53 | 2018-08-20T05:53:53 | 145,370,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,748 | py | from apiclient import discovery
from datetime import date
import httplib2
import requests
import schedule
import time
import Auth
import SendEmail
email = "Your email goes here"
apikey = 'Your API Key from Alpha Vantage goes here'
SCOPES = 'https://mail.google.com/'
# get a credentials.json file after making a new pro... | [
"harpaul_gill@hotmail.com"
] | harpaul_gill@hotmail.com |
58a5ffe0456fe028034da211b3db8c3daf7f4530 | 7642f70954b73aca0d56f03b3e3577ee5648c752 | /ppm/settings.py | 5bfa923c2b43f7b3d5b3ae1d8a2264a866af4505 | [] | no_license | alviandk/ppm | 8e5dfb2ca9a98b460c9b0a71be68b5310ed56d87 | eea4d37904f86b4ec9cded6091b89d18244b85a9 | refs/heads/master | 2021-01-10T21:05:22.931101 | 2014-11-13T09:24:36 | 2014-11-13T09:24:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,100 | py | """
Django settings for ppm project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import... | [
"alviandk@gmail.com"
] | alviandk@gmail.com |
6e612a774a20e51feed223e0a74a18ebcf53f4a2 | 76fa4bc242502bcd9dfe1053c964318b94acc6d8 | /matplotlib bar chart/df_barplot.py | fc8ef89725b545217214b8af713ce4b4e05eb56a | [] | no_license | phani-1995/Week3-python_libraries | 720156098ccab5301a58e39a4dd7af5a19a08008 | 1347b8dfd4980b37471a54ce991c967fdcb32e2b | refs/heads/master | 2021-04-01T17:42:54.855954 | 2020-03-23T06:50:18 | 2020-03-23T06:50:18 | 248,204,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
data=np.array([[2,4,6,8,10],[4,2,4,2,2],[8,3,7,6,4],[5,4,4,4,3],[6,6,8,6,2]])
dataFrame=pd.DataFrame(data,columns=['a','b','c','d','e'], index=["Delhi",'Mumbai','Hyderabad','Pune','Bengalur'])
dataFrame.plot(kind='bar')
plt.show() | [
"phanindrajallavaram@gmail.com"
] | phanindrajallavaram@gmail.com |
4ca7a7a20e0f8722c532d08c2f10d8e3d551d3de | 25743fdde4ffe3c09c2b38af42f6629018e2e024 | /06-ClassesAndObjects/zad12.py | e8f0d1a137800cecf05124530ed4950413494ad5 | [] | no_license | kacper26/pp1 | 4f257a97e64a1479e945ac23b89edd56e97fa270 | 9c21c181fba5085f9c6b5a06c113f4cf0664ec0d | refs/heads/master | 2020-09-14T02:03:02.944766 | 2020-01-31T22:49:24 | 2020-01-31T22:49:24 | 222,934,969 | 0 | 0 | null | 2019-11-20T12:42:23 | 2019-11-20T12:42:22 | null | UTF-8 | Python | false | false | 490 | py | class telewizory():
def __init__(self):
self.is_on = False
self.channel_no = 1
def set_channel
def on(self):
self.is_on = True
def off(self):
self.is_on = False
def show_status(self):
if self.is_on:
print(f'Telewizor jest załączony, kana... | [
"noreply@github.com"
] | kacper26.noreply@github.com |
d700bfe0470ed942dca42727b21481b2d69a4bcd | 5e324af46c554b88b97ee26886b05c88457ff0f5 | /franchises/models/franchise.py | 8d73000fdaadc7d85bb373e0c6cadd7335661a11 | [] | no_license | doubleclickdetroit/dindintonight | 1bda8851e49782d4dc16ca77d46e4b1f431c2b52 | 9769e1a96730b02511d25af8828b075dff5c35b5 | refs/heads/master | 2016-08-04T22:01:08.083566 | 2014-07-26T18:58:58 | 2014-07-26T18:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | from autoslug import AutoSlugField
from django.db import models
from django.db.models.signals import post_save
from core.models import BaseModel
class Franchise(BaseModel):
id = models.AutoField(primary_key=True)
owner = models.OneToOneField('users.User', related_name='franchise_owners')
slug = AutoSlugF... | [
"rgarrison3@gmail.com"
] | rgarrison3@gmail.com |
80de0af3010fdd6ae8448a8c6658966704466678 | 30a08a021d019d96734308cfffc7923c59817ceb | /CMPE 321 Introduction to Database Systems/project 3 - DBtfiy Song Management App/routes/artist_route.py | aabef05a33f77418e0adffd4ec7d1d02f8dbe5f0 | [] | no_license | UkcaGreen/boun-university-projects | 8b790b509f6e875e2418ebae4d2c29e505b22539 | 1d5fe0e514ed682bac7aff56524d362dc73da1f4 | refs/heads/master | 2023-01-06T01:39:58.067671 | 2020-11-09T19:40:35 | 2020-11-09T19:40:35 | 279,275,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | from flask import Blueprint, request, jsonify, redirect, url_for, session
from services.artist_service import ArtistService
artist_bp = Blueprint("artist_bp", __name__)
@artist_bp.route('/list', methods=["GET"])
def list():
return jsonify(ArtistService().list())
@artist_bp.route('/create', methods=["GET"])
def... | [
"emilcan.arican@boun.edu.tr"
] | emilcan.arican@boun.edu.tr |
3e99c5d34a018a27eeab7d2575cd258a0647714d | 96ead5ea87bd855a414244c74a9332377209615f | /app.py | 976508d1cab1a079e1c725f0c77dcde6bac6fa3f | [] | no_license | remi95/Http-Status | 84356e739f7bb4f2234d078a3deff3c825477874 | 93592b50e4c0e1177f05650d5f3e8e920166ad89 | refs/heads/master | 2020-03-09T07:27:44.394793 | 2018-04-14T20:54:48 | 2018-04-14T20:54:48 | 128,665,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,536 | py | #!/usr/bin/python3.5
# -*- coding:utf-8 -*-
from flask import Flask, flash, render_template, request, g, session, redirect, url_for
import mysql.connector, hashlib, urllib, datetime, time, os, telegram
from mysql.connector import Error
from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler.... | [
"remi.mafat@ynov.com"
] | remi.mafat@ynov.com |
6a1f5cbfcf97bde6ef77c7abcaba2e04ef4898b1 | d3c4a67dd0c4c6d715c6fbb594cfb18f3b2b9e16 | /mdds_project/utils/extract_features_from_pdf.py | 92eefefea41c9ff60fe1d7544699f44b65d64d30 | [] | no_license | wangyy010/mdds_project | 1570f8d9206d9499401c0b56764395dce2b0c400 | 0d8df14780a633e116823a88703064f4f362b61d | refs/heads/master | 2023-07-30T00:51:22.721334 | 2021-09-13T03:21:30 | 2021-09-13T03:21:30 | 405,816,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,691 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This is a simple file to extract features from pdfs,
and record them in a file
"""
import env
import mdds.detect_engines.pdf.lib.get_pdf_features as gpf
from mdds.lib.fileType import get_type
import os
import sys
import glob
import traceback
'''
def main(files, des):... | [
"915396549@qq.com"
] | 915396549@qq.com |
ba9fbe6b1b7b02c039189655a0a37f92ab7d2b20 | 74bb22915904542c6297a50ffac9b3e3902941bc | /MyPython/somePy/Mygrade.py | f2948741ceec568d582b09fab631cc4fabc0a142 | [] | no_license | ahathe/some-a-small-project | 405d2ec25c6524b5dcf7df65ab103dad301438b8 | fdf86c96a302703a0f90a1224374bbcd59524f63 | refs/heads/master | 2021-06-25T17:54:57.774366 | 2017-09-05T01:18:11 | 2017-09-05T01:18:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | #!usr/bin/ env python
'the is grade count,haha,lol!'
#score = int(raw_input("please,input you want to view score number!:"))
def View(number):
if number <= 100 and number >= 90:
print 'you score is good A!'
elif number <= 89 and number >= 80:
print 'you score is good B!'
elif number <= 79 and number >= 70:
... | [
"1136334598@qq.com"
] | 1136334598@qq.com |
a4dc197a980ff50aca387fdbd9c00f95a18b791e | b4ae43fc09d9cd6dfa415ecc5ed133b26e14f59f | /problems/975_Odd Even Jump.py | 7faac1e1e288b22c21df3897c49be13a88e925ae | [] | no_license | wallinslax/leetcode | aa1da5bfb256d50e6499666c3ede988abb3d911c | a0263e3f63505fc34d885be37afa0e5b375d811f | refs/heads/main | 2023-04-01T15:27:34.407028 | 2021-04-17T12:09:34 | 2021-04-17T12:09:34 | 358,838,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,425 | py | class Solution:
def jumpForward(self,arr,whereNowIdx,currentJumpIdx):
isNext = False
if currentJumpIdx%2 == 1: #Odd Jump: Find smallest bigger
#print('Odd Jump=',currentJumpIdx,'/whereNowIdx=',whereNowIdx)
minBigVal = max(arr[(whereNowIdx+1):])
minBigIdx = (whereN... | [
"wallinslax@gmail.com"
] | wallinslax@gmail.com |
e08245275924da51311b4f504a375d9583df3853 | 0473c6c0f5cd034757a7ec6bef5617a77db340b1 | /python/ccxt/xex.py | b421e17cb97c94ea740f7e713864b065139f269b | [
"MIT"
] | permissive | yufengwei/ccxt | be1800d921d4e751ec07f6760e9bae836f649783 | c50206354641a3752b1015c1247cc1d73614bba1 | refs/heads/master | 2021-10-08T00:26:55.661027 | 2018-12-06T06:41:13 | 2018-12-06T06:41:13 | 154,766,455 | 0 | 1 | null | 2018-10-26T02:35:03 | 2018-10-26T02:35:03 | null | UTF-8 | Python | false | false | 13,652 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
from ccxt.base.exchange import Exchange
from ccxt.base.errors import ExchangeError
class xex (Exchange):
def describe(self):
return self.deep_extend(super(xex, self).describe(), {
'id': 'xex',
... | [
"noreply@github.com"
] | yufengwei.noreply@github.com |
fc0b1a61451fe1c4b893d8ea586e3c6d8e04d357 | 7b2a3ea853dc44aea204f02abedaad6a2029f4ff | /inv_test.py | 46e208002c5331c95094449e682798e59a78e53a | [] | no_license | NoisyLeon/SW4Py | 7d45503282dc988b5f886c039706bd79fdd6b339 | 7029f18eb526bcb46b4aa244da1e088ca57a56aa | refs/heads/master | 2020-12-22T14:57:11.265397 | 2016-12-20T18:27:18 | 2016-12-20T18:27:18 | 56,792,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | # import obspy
#
# net=obspy.core.inventory.network.Network('SW4', ftanparams=[])
# inv=obspy.core.inventory.inventory.Inventory(networks=[net],source='CU')
# sta=obspy.core.inventory.ftanparam.Station('aa',13,132.4214,0.0)
| [
"lili.feng@colorado.edu"
] | lili.feng@colorado.edu |
bce61880051656c6001a8447aca35b0b1e98cdcc | dc52081d4b06729731d048f7ede069950dbc00ed | /common_words.py | 282cb4345619e05a1406fa41da737d760b578659 | [] | no_license | gigimic/topic_modeling | a868975fabfaba7194e72da051faffda8d4c5bb7 | 96c83b690890d1c4c91b1b004ec4f48fcb142bf1 | refs/heads/master | 2023-07-25T21:02:35.898534 | 2021-09-06T06:38:30 | 2021-09-06T06:38:30 | 286,437,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | import pandas as pd
from collections import Counter
def most_common_words(data_dtm):
data_dtm = data_dtm.transpose()
top_dict = {}
for c in data_dtm.columns:
top = data_dtm[c].sort_values(ascending=False).head(20)
top_dict[c]= list(zip(top.index, top.values))
# print('printing top ... | [
"gigimic@gmail.com"
] | gigimic@gmail.com |
d2f2f2dab7de0ca51232c4c3f8729a4cfc3ff734 | ad3b09848dcec84db8dbd16fa1b4d4838551d180 | /app.py | 680a6ffb78184b1ceb3729394f1e3276132e622e | [] | no_license | Vincentzyx/simple-video-website-backend | f00a7e85bf9cc55648a39302af5e2922400510ec | 4dc8e58f7345de58cece6f9e83ce7aa44c12cfdd | refs/heads/master | 2023-05-13T01:41:13.754072 | 2020-02-16T17:00:26 | 2020-02-16T17:00:26 | 240,929,744 | 1 | 0 | null | 2023-05-01T21:20:16 | 2020-02-16T16:59:31 | Python | UTF-8 | Python | false | false | 11,641 | py | import os
from flask import Flask, request, session, send_from_directory
from flask_cors import CORS
from functools import wraps
from werkzeug.utils import secure_filename
import json
from DatabaseAPI_User import UserAPI
from DatabaseAPI_Video import VideoAPI
from Exceptions import vException
import Utils
import Video... | [
"929403983@qq.com"
] | 929403983@qq.com |
57a7975749775a7b7ebf56afc6c8a8f39f7abcc6 | 4fd86f15b85f03102975d508944ac331e26e1d07 | /first/settings.py | 409b98e7205f8e589a0be4889e9801f4ef19d7de | [] | no_license | doha22/user-profile-API- | 096e25b066646f090c8a14bfba197b79ba694496 | 364f3faaa86722efe536340dcfb0a77ac5d31dad | refs/heads/master | 2020-06-12T19:24:59.306578 | 2019-09-08T21:17:26 | 2019-09-08T21:17:26 | 194,401,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,379 | py | """
Django settings for first project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
im... | [
"noreply@github.com"
] | doha22.noreply@github.com |
7f80c2fc21926cef97f59322600076deab21b4ed | 41b9fb1a3d50da08b2b9cf5b2e48161c07f7227a | /utils.py | 5239c0c84c0da90df507db0cd80827042e0259b1 | [] | no_license | Jasmina991/Image-recognition---beautif.ai | a9356390c462d7efe4606b05b24ff2606ec9fe3a | a2ba3708f288224deecc03d7c45c9d696594d8e5 | refs/heads/main | 2023-04-27T09:13:56.477229 | 2021-05-04T17:16:29 | 2021-05-04T17:16:29 | 354,949,699 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,827 | py | # Import libraries
from google.colab import drive
import os
import pickle
import numpy as np
import pandas as pd
from scipy import interp
from itertools import cycle
import math
import cv2
import matplotlib.pyplot as plt
import seaborn as sns
import time
import urllib.request
def concat_dataset(path,... | [
"noreply@github.com"
] | Jasmina991.noreply@github.com |
8f20b2c52795c107419860fdb30820f09b595d1f | c71e2628754d182f86d269f0a3dff72ef87ddf3a | /chat/urls.py | 2f418fe5da0ae0c84c858a73bb963faadbe94889 | [
"MIT"
] | permissive | xiaoqiao99/chat | 3d838683deab854eb131744033384c73a75d2e4f | ca65ed25fbc277828390b890a50ecadf4675cfb4 | refs/heads/master | 2022-12-16T06:37:18.945390 | 2019-02-28T14:52:10 | 2019-02-28T14:52:10 | 172,876,427 | 2 | 3 | MIT | 2022-12-08T01:03:01 | 2019-02-27T08:37:09 | Python | UTF-8 | Python | false | false | 181 | py | from django.urls import path, re_path
from . import views
urlpatterns = [
path("", views.index, name='index'),
re_path("(?P<room_name>[^/]+)/", views.room, name='room'),
] | [
"hui.qiao@fir.ai"
] | hui.qiao@fir.ai |
af2e9492dc28f8de8f275110fb743e9b78dbf797 | 3ef70fe63acaa665e2b163f30f1abd0a592231c1 | /stackoverflow/venv/lib/python3.6/site-packages/pip-19.0.3-py3.6.egg/pip/_internal/vcs/__init__.py | 9cba76464ca1a26eb69d5c9dbf37f46eb9dc78f4 | [
"MIT"
] | permissive | wistbean/learn_python3_spider | 14914b63691ac032955ba1adc29ad64976d80e15 | 40861791ec4ed3bbd14b07875af25cc740f76920 | refs/heads/master | 2023-08-16T05:42:27.208302 | 2023-03-30T17:03:58 | 2023-03-30T17:03:58 | 179,152,420 | 14,403 | 3,556 | MIT | 2022-05-20T14:08:34 | 2019-04-02T20:19:54 | Python | UTF-8 | Python | false | false | 17,278 | py | """Handles all VCS (version control) support"""
from __future__ import absolute_import
import errno
import logging
import os
import shutil
import sys
from pip._vendor.six.moves.urllib import parse as urllib_parse
from pip._internal.exceptions import BadCommand
from pip._internal.utils.misc import (
display_path,... | [
"354142480@qq.com"
] | 354142480@qq.com |
825ea6911f74ab95016446105c315c0b28ad6eac | f099583724a138138dfbdb1e1202075058fe280d | /Society/execution/migrations/0009_guest_special_key.py | 6c2df0c26b94e27d3a8e44ef7ee5329400035733 | [] | no_license | Dhruvanshu1775/Societyapp | 87c8b43a036b70099a1c00df37c818c394d7da29 | f1dea6cdcf5b1ef771afcb4e70f247a8a9357eeb | refs/heads/master | 2023-08-19T01:20:16.366069 | 2021-10-01T06:17:10 | 2021-10-01T06:17:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | # Generated by Django 3.2.7 on 2021-09-29 04:42
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('execution', '0008_auto_2... | [
"dhruvanshu1775@gmail.com"
] | dhruvanshu1775@gmail.com |
e283ce5088a7510584c25bdf3ab120ce9c5c0d0d | bf75b5c5d1c984dec08052d40a6dc524294767c8 | /bookms/settings.py | 763ccfef3acd9bc723f045a743aaf2b757298cea | [] | no_license | kqjhuang/bookms | 5a40cf37fb4045526824c71672436731286d38d8 | f33f0695e628a4e7b44eba5f41bb8dbdc97ad363 | refs/heads/master | 2021-01-10T07:59:40.446030 | 2015-11-07T10:27:03 | 2015-11-07T10:27:03 | 45,731,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,813 | py | """
Django settings for bookms project.
Generated by 'django-admin startproject' using Django 1.8.6.
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... | [
"252331757@qq.com"
] | 252331757@qq.com |
a2a7ac956af02e266ad5286d8ce10398186260cf | acaa2ed02339db8bf628c02a29146d2d9f699f3b | /W17B-Git_Revue/src/error.py | aa3a68aacf88e66490708e4ecfa4fd7c718b60af | [] | no_license | jiaqizhu22/COMP1531 | 5c87411ba7ab9d3af597e6db852fc7d4a73109f9 | 29984ba66ad10a621519850537c2908d9d840384 | refs/heads/master | 2023-01-12T20:43:43.652844 | 2020-11-20T19:46:27 | 2020-11-20T19:46:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | #pylint: disable = missing-docstring
from werkzeug.exceptions import HTTPException
class AccessError(HTTPException):
code = 400
message = 'No message specified'
class InputError(HTTPException):
code = 400
message = 'No message specified'
| [
"noreply@github.com"
] | jiaqizhu22.noreply@github.com |
291010734539e7ab20e1d491367b537ab8e2ee72 | 5ead730e69f1042de1f43ac64e767d6463ffe691 | /jarvis.py | dee14abefbba94a838d574ebb1cbbb1925540856 | [
"MIT"
] | permissive | ravi9607/basic-program-by-python | 84258d110cdb9f9f285e93ddac5eb411d60fae77 | 534fc4a4c316ba0b8391f72647c4f9c9d33bb8e6 | refs/heads/main | 2022-12-26T05:33:35.965400 | 2020-10-10T13:07:51 | 2020-10-10T13:07:51 | 301,167,757 | 0 | 0 | null | 2020-10-04T15:56:25 | 2020-10-04T15:56:24 | null | UTF-8 | Python | false | false | 1,610 | py | # Just A Rather Very Intelligent System(JARVIS)
import pyttsx3
import datetime
import speech_recognition as sr
#import pyaudio
import webbrowser
engine = pyttsx3.init('sapi5')
voices = engine.getProperty('voices')
#print(voices[0].id)
engine.setProperty('voice', voices[1].id)
def speak(audio):
engine.say(audio... | [
"noreply@github.com"
] | ravi9607.noreply@github.com |
9b52f8728284f014f32195d6f50595415bcec9bb | cf54adda6874a4256401e9e4eb28f353b28ae74b | /python-modules/python_call_django_view.py | f56832338684b861081db955189ae868d9eae874 | [] | no_license | oraant/study | c0ea4f1a7a8c3558c0eac4b4108bc681a54e8ebf | 7bce20f2ea191d904b4e932c8d0abe1b70a54f7e | refs/heads/master | 2020-09-23T02:08:07.279705 | 2016-11-21T06:30:26 | 2016-11-21T06:30:26 | 66,995,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | # coding:utf-8
# # tree /home/oraant/test/django_celery/|grep -v .pyc
# /home/oraant/test/django_celery/
# ├── django_celery
# │ ├── __init__.py
# │ ├── settings.py
# │ ├── urls.py
# │ ├── wsgi.py
# ├── manage.py
# └── myapp
# ├── admin.py
# ├── apps.py
# ├── __init__.py
# ├── migrations
# ... | [
"oraant777@gmail.com"
] | oraant777@gmail.com |
994f946068805b301a961f53fe581483cfb0ebe3 | cfcc212a8f9da735122167a8e8abca41dd56022a | /rqt_mypkg/rqt_example_py/resource/ParamTab.py | 2356ce0d0727a582990d0cbcc06926fdce03c652 | [] | no_license | zhexxian/SUTD-S03-DSO-Indoor-Drone | 3d5b8a126fedbf0eb24f626fb76786736fb634b0 | 6a56f357de24e9948b02f091fb63ad7481336cad | refs/heads/master | 2021-03-16T10:17:26.103007 | 2017-07-28T13:31:26 | 2017-07-28T13:31:26 | 77,600,900 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,839 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# || ____ _ __
# +------+ / __ )(_) /_______________ _____ ___
# | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \
# +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/
# || || /_____/_/\__/\___/_/ \__,_/ /___/\___/
#
# Copyright (C) 20... | [
"noreply@github.com"
] | zhexxian.noreply@github.com |
2ba31e7a90badb5fed8c2e13245185b77c8e19da | 91bd3f2e5d318bbfb69994fb0018d6be20be1e13 | /load_replay.py | bb9e31a88b12f08f686955c63aa1f918516d0612 | [] | no_license | jesterswilde/dlgo | 9aebd87a49de5c750284f8e58eb824421c4f3a98 | a67a8c4674ec56058f7a7f48bcf5cda8a711606c | refs/heads/master | 2020-09-12T06:43:02.414401 | 2019-11-27T00:41:55 | 2019-11-27T00:41:55 | 222,344,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | from dlgo.gosgf import Sgf_game
from dlgo.goboard import GameState, Move
from dlgo.gotypes import Point
from dlgo.utils import print_board
from time import sleep
sgf_example = "(;GM[1]FF[4]SZ[9];W[ef];B[ff];W[df];B[fe];W[fc];B[ec];W[gd];B[fb])"
sgf_game = Sgf_game.from_string(sgf_example)
game_state = GameState.new... | [
"jesterswilde@gmail.com"
] | jesterswilde@gmail.com |
7fd8f206504c97cba0f8df0e0556a9906a09a3ca | 1aada0d009d1c30e44d94ea37844ed38b9036fb2 | /core/migrations/0002_tournamentsite_zip.py | 3a415fcc55556d18f9b89df9ee1b1f85ed078234 | [
"MIT"
] | permissive | grapesmoker/qtour | 2c3c5aaaffa6da32826ba94604041fe6e7234973 | dbb02613475362d9a4c7f86d047ddc012e4d8351 | refs/heads/master | 2021-01-20T05:57:09.027596 | 2017-05-28T01:13:34 | 2017-05-28T01:13:34 | 89,826,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-30 03:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.AddField(
m... | [
"grapesmoker@gmail.com"
] | grapesmoker@gmail.com |
12bad314b0ee825c5876eba56bb48592163b37c8 | 83037ddfb0a73d538902a64998b922e6c4116a38 | /lib/config/default.py | d140fe3ffb3c4e1ec3c7553a90ab8d1702f23adb | [
"BSD-3-Clause",
"MIT"
] | permissive | TotalVariation/Flattenet | bbff8782a334c836b424d45b051ac73709a718f6 | 828d1f95f6f77dd0b681318f2a544e84cf4be834 | refs/heads/master | 2021-08-28T11:23:59.947746 | 2021-08-19T13:23:56 | 2021-08-19T13:23:56 | 237,473,882 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,575 | py |
# ------------------------------------------------------------------------------
# Copyright (c) Microsoft
# Licensed under the MIT License.
# Written by Ke Sun (sunk@mail.ustc.edu.cn)
# ------------------------------------------------------------------------------
from __future__ import absolute_import
from __future... | [
"511608332@qq.com"
] | 511608332@qq.com |
33a26a9eff1d85003c886ec1259d2874765ba03b | a2b6bc9bdd2bdbe5871edb613065dd2397175cb3 | /中等/旋转图像.py | 239a028395365d7e1f8543fcf746f87fc6437301 | [] | no_license | Asunqingwen/LeetCode | ed8d2043a31f86e9e256123439388d7d223269be | b7c59c826bcd17cb1333571eb9f13f5c2b89b4ee | refs/heads/master | 2022-09-26T01:46:59.790316 | 2022-09-01T08:20:37 | 2022-09-01T08:20:37 | 95,668,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | '''
给定一个 n × n 的二维矩阵表示一个图像。
将图像顺时针旋转 90 度。
说明:
你必须在原地旋转图像,这意味着你需要直接修改输入的二维矩阵。请不要使用另一个矩阵来旋转图像。
示例 1:
给定 matrix =
[
[1,2,3],
[4,5,6],
[7,8,9]
],
原地旋转输入矩阵,使其变为:
[
[7,4,1],
[8,5,2],
[9,6,3]
]
示例 2:
给定 matrix =
[
[ 5, 1, 9,11],
[ 2, 4, 8,10],
[13, 3, 6, 7],
[15,14,12,16]
],
原地旋转输入矩阵,使其变为:
[
[15... | [
"sqw123az@sina.com"
] | sqw123az@sina.com |
2adb8260f01517312ffc1b26f404f21fed669e76 | 9df0d99e15ef01bf310e310e383594e817030a50 | /mainapp/admin.py | 38e40daa2d4457adc8f9614033b3274df613ce34 | [] | no_license | lalinaloginoval/geekshop-server | 255a0fe22b97d71f210f1c6dee73527eab2e85d0 | fb12b3ec5fb8edcd246a1c5ffdd2895399d08b08 | refs/heads/master | 2023-06-21T04:08:54.956510 | 2021-07-20T15:56:31 | 2021-07-20T15:56:31 | 359,889,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | from django.contrib import admin
from mainapp.models import ProductCategory, Product
admin.site.register(ProductCategory)
@admin.register(Product)
class ProductAdmin(admin.ModelAdmin):
list_display = ('name', 'price', 'quantity',)
fields = ('name', 'image', 'description', 'price', 'quantity', 'category')
... | [
"alina.login30@gmail.com"
] | alina.login30@gmail.com |
a5ae296b4881fee18f5d49e648859f792efa4b90 | 44eab5a177b580df2c4d71df8bbf106b9d9cdb6d | /project/Q-sigma-lambda/main_gridworld_2.py | 14864a0044b294103c5943e239ce9d44d7284df8 | [] | no_license | abnan/TD-error-as-a-Q-learning-heuristic | 9ebca47b5dba4da7db163a0569b84ab86cb20872 | e905c00f8e6d1a112105505ac820a155c9b1144f | refs/heads/master | 2020-11-28T12:35:36.038480 | 2020-01-04T19:31:35 | 2020-01-04T19:31:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,721 | py | #Exponential decay
import numpy as np
import random
from windy_gridworld2 import WindyGridworldEnv, StochasticWindyGridworldEnv
import itertools
import matplotlib.pyplot as plt
import csv
np.random.seed(198)
env = StochasticWindyGridworldEnv()
episodes = 100
num_run = 10000
# epsilon = 0.1
lr = 0.8
gamma = 1
lmbda ... | [
"abhisheknan1993@gmail.com"
] | abhisheknan1993@gmail.com |
e130f466ce72a531a6005ed0b98ff6f888c5fdee | f52f778295b037017d957535d51784d76ccaa3ac | /applications/tensorflow/cnns/training/Models/squeezenet.py | b1b129c2b5ef9aa592f766d1b803f58b3567ee77 | [
"MIT"
] | permissive | dkuo123/examples | 7cbf79bc93727cb3bf6971389b7867930bfdbdf6 | 51cda4c15641ee2b4b035a2c0dcfd7ddbf2eb7ff | refs/heads/master | 2022-12-27T14:18:49.863747 | 2020-10-16T17:57:14 | 2020-10-16T17:57:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,353 | py | # Copyright 2019 Graphcore Ltd.
"""
SqueezeNet
A Convolutional Neural Network with relatively few parameters (~1.25M) but equivalent
accuracy to AlexNet.
Architecture originally described in Caffe. Implemented here in TensorFlow for the IPU.
SQUEEZENET: ALEXNET-LEVEL ACCURACY WITH
50X FEWER PARAMETERS AND <0.5MB MO... | [
"dave.lacey@graphcore.ai"
] | dave.lacey@graphcore.ai |
5567298ebb7978b48d392a67d3eb54b950aaa0f8 | 1f93f6540452af25ebe1e3a4fd4d1b1fc2151c18 | /personal/urls.py | b2e1836fd943775fcc90887ab6b7c19c023bced7 | [] | no_license | UdAyPaLRedDy/mysite1 | 51e80b3838e9e8aaa6f8e046aa6bf7ec5ad6fbc0 | 4c04caf715dbff0e6df91a8e9f7e099dce2dcd92 | refs/heads/master | 2021-01-19T12:00:24.745090 | 2017-04-12T05:42:36 | 2017-04-12T05:42:36 | 85,436,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | from django.conf.urls import url, include
from . import views
urlpatterns = [
url(r'^$', views.index, name= 'index'),
url(r'^contact/$', views.contact, name= 'contact'),
]
| [
"udayreddy993@gmail.com"
] | udayreddy993@gmail.com |
df4bc3c52cb2cc13ff6155431b8a111077115ef7 | da6d44b06f631387739d04471920037e8541d6c0 | /problems/014.py | 8753c9f24c8c00abf2eddba5325e948652a085c7 | [
"MIT"
] | permissive | JoshKarpel/euler-python | f6d5d5551a0d77565c852e3eb1e89522675824ec | 9c4a89cfe4b0114d84a82e2b2894c7b8af815e93 | refs/heads/master | 2021-09-01T09:07:46.378352 | 2017-12-26T05:39:35 | 2017-12-26T05:39:35 | 64,712,642 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | from problems import mymath, utils
@utils.memoize
def collatz_length(n):
if n == 1:
return 1
if n % 2 == 0:
return 1 + collatz_length(n / 2)
else:
return 1 + collatz_length((3 * n) + 1)
def solve():
collatz_lengths = {x: collatz_length(x) for x in range(1, 1000001)}
ret... | [
"josh.karpel@gmail.com"
] | josh.karpel@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.