blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
947c58bca87d9b8e0f6f80243c7d490482c710ea | a64bfd5ae344f52b9f72cb9fda26c651ff2219fa | /MainUI.py | 3cf6cecc9719666a52e4fd131389049651c11c4c | [] | no_license | fakebear/995 | 6b60fe5cf8c72decab5df8a74b36579de5de0dd9 | b57507aee0f7dd37de1fbde11e2a9346627640dc | refs/heads/master | 2016-08-11T06:36:48.343347 | 2015-12-05T05:40:02 | 2015-12-05T05:40:02 | 47,443,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | # -*- coding: utf-8 -*-
###########################################################################
## Python code generated with wxFormBuilder (version Jun 17 2015)
## http://www.wxformbuilder.org/
##
## PLEASE DO "NOT" EDIT THIS FILE!
###########################################################################
impo... | [
"wangrm1979@qq.com"
] | wangrm1979@qq.com |
462b8b65a2ae86358185254430ab2dc42161e2bd | 2883f29bb5caeb5f5db0aac635f1eb98a1211672 | /TeamsWebhook.py | 06e550d8e8588630b50bdfbf5ece026dad67c4e4 | [] | no_license | pennyman/teams | 48cfc9a4fbb0cb022ceec1ea8c5822a5a3840906 | 834ec6ace5da1aeaf90cfa2ac66745547607e2f2 | refs/heads/main | 2023-03-28T21:34:34.242037 | 2021-04-04T14:14:05 | 2021-04-04T14:14:05 | 353,103,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import boto3
import json
import logging
from base64 import b64decode
from urllib2 import Request, urlopen, URLError, HTTPError
TEAMS_CHANNEL = 'prod-aws' # Enter the Slack channel to send a message to
HOOK_URL = "https://outlook.office.com/webhook/xxxx... | [
"noreply@github.com"
] | noreply@github.com |
978396f764d0496521889a86c516fe5f658aeb0c | 4542bb0c9c382e97a5d68a5d076c3bb806a72dae | /Final Project/SP500_Composition/Main Code/PlotData.py | 62041ad1fa74a21ddfb70aa1a45a8d925c416125 | [] | no_license | bspeice/experimental-finance | 3878932bbd86e3a2bc896b332e178a2fc7f148a3 | 039e4e54a2b5a30bfbc4ae9322f837ea0bfc8ac5 | refs/heads/master | 2021-01-20T19:49:49.501277 | 2016-11-29T20:43:26 | 2016-11-29T20:44:16 | 67,712,860 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,040 | py | import pandas as pd
import numpy as np
import seaborn as sns
import sqlalchemy
from sqlalchemy import create_engine
import time
import matplotlib.pyplot as plt
from matplotlib.finance import candlestick_ohlc
from matplotlib.dates import date2num
from matplotlib.dates import DateFormatter,WeekdayLocator,DayLocator,MONDA... | [
"helgii91@gmail.com"
] | helgii91@gmail.com |
af2b7db466509c3e736b595cfc2613129def6abb | 9bd772823a5b116216b0a709da70072b2c461128 | /Locate_dir.py | 6c619ea0b7d743d0356e58850e227a8c8ee255b5 | [] | no_license | Hausdorff94/agglut-detect | 567f007f739547c6364353a97b451370e26fcec1 | 991acf0c0d37c578ff8dcf3764175b48dc2ba0bd | refs/heads/main | 2023-02-06T00:27:03.255863 | 2020-12-24T19:38:43 | 2020-12-24T19:38:43 | 302,480,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | import os
def location(rel_path):
script_dir = os.path.dirname(__file__)
abs_file_path = os.path.join(script_dir, rel_path)
return abs_file_path | [
"jhonyal58@gmail.com"
] | jhonyal58@gmail.com |
66d90542461e3006f9c9db1228402f8278e19773 | 6e187991aab67dee171a5b7af6c77af27d91faa5 | /app/bot/polling.py | 9dcd0909ec3f98c2266ab73d14ea428ba01d2cf6 | [] | no_license | Arwichok/tgbot | c341d2e81d820b354c4f7571a0fe0fd7285ae592 | 6b211b59c02d8b54ca8c5dcee4e0de418894c3d7 | refs/heads/main | 2023-03-31T16:41:34.589056 | 2021-04-04T10:35:48 | 2021-04-04T10:35:48 | 343,109,312 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | import asyncio
import logging
from aiogram import Dispatcher
from aiohttp.web import Application
from asyncpg.pool import Pool
from ..models.base import init_pool
from ..utils import config
from .base import init_dp, on_shutdown, on_startup
def run_polling():
dp: Dispatcher = init_dp()
loop = asyncio.get_ev... | [
"arwichok@gmail.com"
] | arwichok@gmail.com |
c44a9a3ff8e7b0a66bb7b4bb9c1e87f73f4e95a0 | 57509c5ce9f893c33f80c3748eb6698a772922e3 | /main/models.py | d00e77a05e072fbc74154258bf940bf507f36f84 | [] | no_license | seriouswill/django-todo-tutorial | 37c437ba0c1b732aab19b5adfc119c14ff1a247f | 85bbf6f341d2f8195e6f537ad19f80ced23bc998 | refs/heads/main | 2023-05-04T06:41:09.085374 | 2021-05-23T05:47:36 | 2021-05-23T05:47:36 | 369,843,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class ToDoList(models.Model):
name = models.CharField(max_length=200)
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name="todolist", null=True)
def __str__(self):
return ... | [
"noreply@github.com"
] | noreply@github.com |
1ca9c424e68b8e63a7782bfa946b23b61d59bc57 | 23f6dbacd9b98fdfd08a6f358b876d3d371fc8f6 | /rootfs/usr/lib/pymodules/python2.6/google/protobuf/reflection.py | d245c1d0ffaf580606c4ca02bdc02d99c6c9903c | [] | no_license | xinligg/trainmonitor | 07ed0fa99e54e2857b49ad3435546d13cc0eb17a | 938a8d8f56dc267fceeb65ef7b867f1cac343923 | refs/heads/master | 2021-09-24T15:52:43.195053 | 2018-10-11T07:12:25 | 2018-10-11T07:12:25 | 116,164,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | /usr/share/pyshared/google/protobuf/reflection.py | [
"root@xinli.xinli"
] | root@xinli.xinli |
2fc42d5172ce8f4ac54f3e9c75baff8dfbc1550d | ca3ad9cb9adea3b5e46c614cc151e7fc1de6d5a8 | /league-chongo.py | 821235ad0726080dec553f91ece8839c54cb43d4 | [
"MIT"
] | permissive | sedlak477/simple-league-helper | d8d7dd58a60edde7221d8bd88b5f9d1b09301e57 | b524c5daa807dc59fcfba95ee5849e0f84f6ebed | refs/heads/master | 2022-12-14T03:01:58.749244 | 2020-09-18T00:49:57 | 2020-09-18T00:49:57 | 296,472,702 | 0 | 0 | null | 2020-09-18T00:49:40 | 2020-09-18T00:28:52 | Python | UTF-8 | Python | false | false | 6,886 | py | import requests as r
import bs4 as bs
import socket
import time
import threading
import curses, curses.panel
SSL_CERT = "./riotgames.pem"
GAME_START_POLL_INTERVAL = 10 # In seconds
SKILL_OFFSET_LEFT = 5
SKILL_OFFSET_BOTTOM = 9
ITEM_OFFSET_MID = -6
ITEM_OFFSET_TOP = 5
NAME_OFFSET_TOP = 2
NAME_OFFSET_LEFT = 5
STATS_O... | [
"michi.sedlak@gmail.com"
] | michi.sedlak@gmail.com |
66cc2177835892ea8f53377a2c5bf020db3c444c | 7dd2b42f836684ae1e4b7990502425b661d4bb99 | /tasks/lisp.py | 76b23108f9a1d308fadd7a936911dc20bf0adfb1 | [
"MIT"
] | permissive | mromanelli9/python-programming-challenges | 0766238d996a089ede88e6a5b1682699e1915594 | db90c1f99c755dd8d3c0adc3498c5ca8be08b16d | refs/heads/master | 2020-07-30T08:11:42.184000 | 2019-09-23T09:09:06 | 2019-09-23T09:09:06 | 210,149,285 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | #!/usr/bin/env python
"""
Difficulty: 2
You are a developer that really loves Lisp (the programming language). Using only
notepad you have implemented a huge expression to try to find the faults and horizons in
a dataset. Given that you don't have a linter, you are not sure whether your
expression is valid. Therefor... | [
"marco@MacBook-Pro-di-Marco.local"
] | marco@MacBook-Pro-di-Marco.local |
cba0cc03fa2e9dde3df2866d4b6ad37c06e676c6 | e47a20e443772c5c27ff3c3f043fae0d5df41443 | /lib/tank/__init__.py | 668af85a644d45f09e8f9972046f9ab881cbd1a2 | [
"MIT"
] | permissive | russcollier/Tank | 00f2e0d19c09c0fd57a63cefed8ccebcc2425b0d | 78e03337dac1ada21344ff30c6dc5a653e40a70e | refs/heads/master | 2020-04-09T02:11:26.464441 | 2015-01-06T18:10:13 | 2015-01-06T18:10:13 | 15,642,509 | 1 | 1 | null | 2015-01-06T18:10:13 | 2014-01-05T00:30:02 | Python | UTF-8 | Python | false | false | 243 | py | __author__ = "Russ Collier"
__copyright__ = "Copyright 2014, Russ Collier"
__credits__ = ["Russ Collier"]
__license__ = "MIT"
__version__ = "1.0.0"
__maintainer__ = "Russ Collier"
__email__ = "russ.collier@gmail.com"
__status__ = "Development" | [
"russ.collier@gmail.com"
] | russ.collier@gmail.com |
0ee6643923af41b05e98008d433ca4e70ebe032b | 6f7be94706d838f5d14d10283a19baec8a73a5ef | /aReclambord_server/UserManagement/views.py | 8fee4956f5e003ed47da40589ff1a4057a0aac96 | [] | no_license | Ryandene/aReclambord_api | 27688d9e54c8cd69031415785898179dc6e4fa07 | 0c9fabb247fb5f7f2aa556e3551d3d15e704efe4 | refs/heads/master | 2023-04-24T18:51:58.297633 | 2021-05-18T20:04:18 | 2021-05-18T20:04:18 | 368,605,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | import traceback
from urllib.error import HTTPError
from django.http import HttpResponse, JsonResponse
from django.shortcuts import render
from rest_framework import status
from rest_framework.decorators import api_view
from rest_framework.generics import ListAPIView, RetrieveAPIView
from rest_framework.parsers import... | [
"sandaruwang.info@gmail.com"
] | sandaruwang.info@gmail.com |
df31bc43482d4455849b1ed736da22028f209df3 | ef31d9a1ccdf236d98d50e4240e07f409ca75f99 | /ENV/root/backend/services/blogservices/oldfiles/blogdata.py | a7dd45f08eae770833afe673f707e50235bff1a4 | [] | no_license | AcePro-Engineer/JBBlogsv2 | 0ab371f91e8430a3b903b6064cf8882ec29bf9be | c08131f1722f2f5b5054cadf6f632d2c18623ecf | refs/heads/master | 2021-08-17T23:09:16.564022 | 2020-03-27T20:58:07 | 2020-03-27T20:58:07 | 239,378,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,179 | py | """
Purpose: This script is used to perform all data related
operations for all blog heading model objects.
Date Created: 1/21/2020
"""
"""
# For rendering the stack trace
import sys
import traceback
from blog.models.blog import Heading
from services.utils.errors.exceptions import UserError
#region Headi... | [
"aceproengineer@gmail.com"
] | aceproengineer@gmail.com |
926b425c438ac0de4f516bf1407dd1051fb1d164 | f1ee253ad14b75c2afcbe01ee09c762f96bed8d3 | /django_mxonline/mxonline/apps/course/migrations/0013_auto_20190602_1801.py | 04c93d0b8639b5c332ff7de97453fe348b10b6cc | [] | no_license | MengGuoJian/mxonline | 326d0059eb8e1c09ffdaf7d32a7ecf012e28f6a3 | 2835e24e41ea350cef9e164e6aa818aee1a78da4 | refs/heads/master | 2022-11-30T19:25:39.220884 | 2019-06-28T16:52:25 | 2019-06-28T16:52:25 | 194,286,291 | 1 | 1 | null | 2022-11-22T01:22:36 | 2019-06-28T14:23:00 | Python | UTF-8 | Python | false | false | 867 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2019-06-02 18:01
from __future__ import unicode_literals
import DjangoUeditor.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('course', '0012_course_is_banner'),
]
operations = [
migr... | [
"1026006639@qq.com"
] | 1026006639@qq.com |
1dde3b27f442210a23ab27ff1d10cc45105d5427 | 1f27c4697ffd787eb709dc6560823e8d42196342 | /motorhome/migrations/0008_auto_20200306_0005.py | 6f741aa1b869a10fd130a09b4ea76b536b8c4393 | [
"MIT"
] | permissive | Forestriver/Motorhome | 965f387b32919efc57ba28bba292e9f444e8bb97 | 14e2998e06b3063897e4ff8d01eef6a129bec017 | refs/heads/master | 2022-11-14T20:12:03.147399 | 2020-07-09T20:30:34 | 2020-07-09T20:30:34 | 83,025,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | # Generated by Django 2.2.5 on 2020-03-05 22:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('motorhome', '0007_auto_20200305_2316'),
]
operations = [
migrations.AlterModelOptions(
name='profile',
options={'verbose_nam... | [
"vitaly.romas1@gmail.com"
] | vitaly.romas1@gmail.com |
7d3f3defa080793d84614139710f26c5c878c1eb | 6f4749e180a582bb3685bb10e09cde3e0ecbcd48 | /D10/twiitest.py | caa21b5ba110f5485e37c037815030ae4027dbcd | [] | no_license | stanford713/Python0714 | 2315793e7ee4cae3d7da4cdcf18f863600aa447d | d8120ac875ec22fb335fe9cee3028bf397796e1c | refs/heads/master | 2022-12-07T14:46:04.513198 | 2020-08-27T13:52:55 | 2020-08-27T13:52:55 | 279,600,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | import util.twii as t
#pe(本益比), dy(殖利率), pb(股價淨值比)
rows = t.analysys(10, 7, 1)
print(rows)
product=t.getproductbyname("鴻海")
print(product) | [
"stanford93713@gmail.com"
] | stanford93713@gmail.com |
a5f17fa61ab1f934ab6d365ca3a0960cec60205d | b289cc5016d394ff3137e85cf924d9c361c4d223 | /test/教育部.py | 6954aad2ac827a7ebc695677b8638c5839c06038 | [] | no_license | thundernova/spider | 0b409fccbe21998bb4179794dc46c887e2203608 | ebf5198e5bffa4c1c6282a88245fdf41ec37b86c | refs/heads/master | 2022-12-28T16:28:48.416976 | 2019-09-26T09:43:08 | 2019-09-26T09:43:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,683 | py | #encoding=utf-8
import requests,re,bs4,time,sys,hashlib,uuid,time,json,base64,rsa,platform,datetime,os,urllib
UserAgent = 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36'
def get_time(format_date,time_pull = None):
if time_pull:
return int(time... | [
"315909056@qq.com"
] | 315909056@qq.com |
57104cfb0381d460954e9ddf45d70e32730b17d2 | 6eec2948c0907b5377de51e61014a48dff3d5ce7 | /PyGtk/contador.py | a9a40298b8a018d143d8be31b01268c8090d5efd | [] | no_license | clcneogeek325/Script_python | 4da937cb2caee93a2e0eb945e77ccac8e88ec4bc | 87607c97fa738b3e64aefbe0e8c4425724ecff73 | refs/heads/master | 2021-01-17T07:44:07.124077 | 2016-06-04T03:26:44 | 2016-06-04T03:26:44 | 15,943,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | #!/usr/bin/env python
import threading
import gtk
import gobject
import time
def dibujar(numero, widget, event):
ctx = widget.window.cairo_create()
ctx.select_font_face('Arial Black')
ctx.set_font_size(60) # em-square height is 90 pixels
ctx.move_to(10, 90) # move to point (x, y) = (10, 90)
ctx.set... | [
"clcneogeek@gmail.com"
] | clcneogeek@gmail.com |
d3e24eb28a87675519bababad999493cc9de3c2b | d73990dd2fa86509b333d5aae551771491530626 | /store/migrations/versions/44df3a462448_.py | 433923981228d2ea6b51964f32501849a95f92d8 | [] | no_license | mistacker/store | 086369cdc9609ee2a5aaeec9e3ed4033884841f0 | 2dcf149ba34bea3a90c6ec87568eb6b7e67ad87f | refs/heads/master | 2021-09-26T17:56:45.844172 | 2018-11-01T05:18:22 | 2018-11-01T05:18:22 | 115,232,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | """empty message
Revision ID: 44df3a462448
Revises: e46011c750b2
Create Date: 2017-12-27 20:49:39.179473
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '44df3a462448'
down_revision = 'e46011c750b2'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"2596279105@qq.com"
] | 2596279105@qq.com |
c356dfbad640c7b0906d378c3fa3c7e2509aa9ef | efe290586253f0991be142844fae693c60e576ee | /ScraperScrapyApp/settings.py | 230cc4c01073ca0a8e37d68f8f4a5ff30f8b5389 | [] | no_license | resolritter/webscraper-news-portal | 0051eafbc84824df78771af20c471ed60dde9e0b | 26b1ea5a2d53d28420dd94d8855b2a45281abf75 | refs/heads/master | 2020-06-01T18:32:46.140155 | 2020-05-26T17:37:13 | 2020-05-26T17:37:13 | 190,884,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | # -*- coding: utf-8 -*-
BOT_NAME = "ScraperScrapyApp"
LOG_LEVEL = "ERROR"
SPIDER_MODULES = ["ScraperScrapyApp.spiders"]
NEWSPIDER_MODULE = "ScraperScrapyApp.spiders"
ROBOTSTXT_OBEY = True
ITEM_PIPELINES = {"ScraperScrapyApp.pipelines.NewsHeadingPipeline": 1}
| [
"joao.paulo.silvasouza@hotmail.com"
] | joao.paulo.silvasouza@hotmail.com |
647891d38b8543143db3758aea43580058963313 | 5b0fe6a7d20fff6176626fd9967a567efea1ddaa | /src/atcoder/ABC175/B.py | c87a3bf159e520a76a14dc31d7e61085c62c500e | [] | no_license | yk-amarly-20/atcoder_python | 10eb6ad73c0b9596f5ac58cb11dfb9b790dcc221 | 367bee26321a378f43868d44cb5a5faf7d6ed841 | refs/heads/main | 2023-03-05T14:04:27.101750 | 2021-02-22T12:53:48 | 2021-02-22T12:53:48 | 305,570,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | # 全探索
import sys
def main():
n = int(input())
l = list(map(int, input().split()))
ans = 0
if n <= 2:
print(0)
sys.exit()
for i in range(n - 2):
for j in range(i + 1, n - 1):
for k in range(j + 1, n):
if len(set([l[i], l[j], l[k]])) < 3:
... | [
"y.k.83600260@icloud.com"
] | y.k.83600260@icloud.com |
2ba259cedf0e77c24049fc5d8ff9d80c1862a0d8 | 4e7a7570381a344c7b156da9705e996ef1dccdbd | /CNN/textProcess3.py | 405559bf63ca978334d02c05303581fc059b3564 | [] | no_license | Hwlcoder/CNN_conflict_types | 7dadea6093a55abeae1938c6113c506d84d23568 | b049615de539fb3582f34cdda6d0fbf50722a30e | refs/heads/master | 2020-06-17T05:27:54.540574 | 2019-07-08T13:06:11 | 2019-07-08T13:06:11 | 195,811,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,881 | py | # coding: utf-8
# encoding: utf-8
import sys
import importlib
from cilin import CilinSimilarity
from jaccard import *
importlib.reload(sys)
# import jieba.analyse # 导入结巴jieba相关模块
import re
import numpy as np
from pylab import * # 添加这行和mpl.rcParams可以解决汉字显示的问题
# get_ipython().magic('matplotlib inline')
mpl.rcParams['... | [
"610983046@qq.com"
] | 610983046@qq.com |
648f916042c2ff4a62515f640032698820af28cf | d063684dd03293eb0f980568af088d26ab087dbe | /debadmin/migrations/0051_brand_status.py | 656abd90973f38e52e9e8fef2821470ca7c157fe | [] | no_license | abhaysantra/debscientific | ce88e5ef44da8d6771c3652ed0ad02900ccd8ed2 | 88ec65616fd24052bbdbba8b00beba85493f5aea | refs/heads/master | 2020-11-26T22:09:33.820247 | 2019-12-20T07:58:43 | 2019-12-20T07:58:43 | 229,213,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | # Generated by Django 2.2.6 on 2019-10-31 10:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('debadmin', '0050_auto_20191031_1538'),
]
operations = [
migrations.AddField(
model_name='brand',
name=... | [
"abhay.santra@gmail.com"
] | abhay.santra@gmail.com |
5598871d4f926669cda8cfb346f18064cb98f3d7 | f668eb955f64588dc070771014def903f02bf4cd | /tgym/envs/__init__.py | 6b870f2bdc97a855fc17fa210218735a0ff81463 | [
"MIT"
] | permissive | hongxin001/Trading-Gym | 64f105927447c7f1587df4ed8fbb21bc16ce9427 | cb3fe76576728b8a655c21194787a017bb43324b | refs/heads/master | 2022-01-07T22:04:58.726310 | 2019-06-20T12:08:11 | 2019-06-20T12:08:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | from tgym.envs.trading import SpreadTrading
| [
"w821881341@gmail.com"
] | w821881341@gmail.com |
f1ee98a9ca25e8674d982c255e0bd4fdbaedc941 | 6396345ad7acbbcc371f3cf213b8cc2fc5fe9f28 | /thursday code.py | bbfd73cf5dbbe52b2c2d34d53590523e64221a3b | [] | no_license | EmbeddedSystemTeam/thursday-code | 84ecf0f8d8131db1260cd45b7aea97de9e69bd88 | 86bb4965b27fe1465a7b4b4709f49ec32a3cfaa4 | refs/heads/master | 2022-11-26T21:25:08.020801 | 2020-07-31T02:07:38 | 2020-07-31T02:07:38 | 283,918,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | import board
import displayio
import digitalio
import time
from analogio import AnalogIn
import neopixel
from secrets import secrets
import adafruit_esp32spi.adafruit_esp32spi_socket as socket
from adafruit_esp32spi import adafruit_esp32spi
import adafruit_requests as requests
import busio
from digitalio import Digital... | [
"noreply@github.com"
] | noreply@github.com |
7ce6abde527baa843f7ca613eee3933ccd7373d4 | e06489334de897b3e242fb1c60eacf4de045479b | /server.py | 9c687136fd41149fc157a447253effb9b5f20ffc | [] | no_license | joelhaasnoot/otp-facade | f5780dd6146a26a4b4d15d9237102e296b645573 | 63736adccfbc32d43510892e75548b997345b9b8 | refs/heads/master | 2021-01-01T18:11:59.424735 | 2014-04-26T20:04:31 | 2014-04-26T20:04:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,839 | py | __author__ = 'Joel Haasnoot'
import urllib
import requests
import simplejson as json
try:
from config import *
except:
# ENDPOINT_URL = 'http://localhost:8080'
ENDPOINT_URL = 'http://api.navitia.io/v1/journeys'
COMMON_HEADERS = [('Content-Type', 'application/json'), ('Access-Control-Allow-Origin', '*'... | [
"joelhaasnoot@gmail.com"
] | joelhaasnoot@gmail.com |
a5e55b239f65726e46c60fa67da5cdc340e1fcea | 5c13f8bd3c0f3a81af97b9c80cc2b1ec52294ecb | /src/dcar/signature.py | c2f466a8aa49b4bf478190400eacfa2f3797d3a4 | [
"BSD-3-Clause"
] | permissive | andreas19/dcar | 6ea76300278371acd71715ed1f5c2257d069a42c | 31118ac5924b7cb01f8b7da5a84480824c046df2 | refs/heads/master | 2021-07-12T03:50:20.080507 | 2020-08-09T07:28:35 | 2020-08-09T07:28:35 | 189,934,105 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,519 | py | """D-Bus type signature."""
from collections import Counter
from . import marshal
from .const import MAX_SIGNATURE_LEN, MAX_NESTING_DEPTH
from .errors import SignatureError
__all__ = ['Signature']
class Signature:
"""A signature.
The signature string will be parsed into a list of complete types.
Each ... | [
"andreas19@posteo.eu"
] | andreas19@posteo.eu |
9579a177501274abf79b26be888dabac7b431170 | 04f8c7d9eb20745def8568fcbd2401392187ebf0 | /www/configuration/forms.py | e425010cfe27ac35416a512f5eaa6680fc9ff306 | [] | no_license | boogiiieee/Victoria | 5f01d8c01e92d78b756324ee8da2208ab9c63bc6 | c76996698bbbd88309ed35f47d19e09fec19eb94 | refs/heads/master | 2021-09-04T03:13:00.208173 | 2018-01-15T04:05:29 | 2018-01-15T04:05:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | # -*- coding: utf-8 -*-
from django import forms
from configuration.models import ConfigModel
class ConfigForm(forms.ModelForm):
class Meta:
model = ConfigModel | [
"shalyapinalexander@gmail.com"
] | shalyapinalexander@gmail.com |
25933d92e57b92068d42fc92f4e2060cf08492ba | 1e9c9f2a9639db7cdb032aae69cb4d99aef1d3a5 | /others/tech/rabbitMQ/python/2_workQueues/workQueues.py | ada53e124a282e94ebbcddc7f9b78bc4bee25945 | [
"MIT"
] | permissive | sagarnikam123/learnNPractice | f0da3f8acf653e56c591353ab342765a6831698c | 1b3b0cb2cff2f478006626a4c37a99102acbb628 | refs/heads/master | 2023-02-04T11:21:18.211654 | 2023-01-24T14:47:52 | 2023-01-24T14:47:52 | 61,184,927 | 2 | 1 | MIT | 2022-03-06T11:07:18 | 2016-06-15T06:57:19 | Python | UTF-8 | Python | false | false | 288 | py | # workQueues.py
# two consumers - C1 & C2
python3 worker.py
python3 worker.py
python3 new_task.py
python3 new_task.py First message.
python3 new_task.py Second message..
python3 new_task.py Third message...
python3 new_task.py Fourth message....
python3 new_task.py Fifth message.....
| [
"sagarnikam123@gmail.com"
] | sagarnikam123@gmail.com |
d93d1e213362cbec660a951347a7765064435342 | e9cb1359be110013a47a8c5bab4f7ecd86e0e092 | /actions.py | 4fae9a36c742665de32bc46b83f0f87bd1865c75 | [] | no_license | combateer3/RFID-Multitool | 152156d4d96e77270a5897f1f3fd5a8069f2750b | 44041b419ba8c8fc9590914ae861cab195d6e40b | refs/heads/master | 2023-02-12T22:20:43.970933 | 2021-01-09T05:00:24 | 2021-01-09T05:00:24 | 328,073,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | import mail
import socket
import json
def test_message():
print("This is a test!")
def rpi_ip_addr():
# fetch local IP address
hostname = socket.gethostname()
ip_addr = socket.gethostbyname(hostname + '.local')
with open('creds.json') as f:
creds = json.load(f)
to = creds['cell... | [
"scottcorbat@yahoo.com"
] | scottcorbat@yahoo.com |
49a79e42121b14197d31ef18ccd1ba06b1aecad2 | ebd6f68d47e192da7f81c528312358cfe8052c8d | /swig/Examples/python/multimap/runme.py | ad693b73a3ea62fa4bf798b1f8e6f8aad0c57500 | [
"LicenseRef-scancode-swig",
"GPL-3.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"GPL-3.0-only",
"Apache-2.0"
] | permissive | inishchith/DeepSpeech | 965ad34d69eb4d150ddf996d30d02a1b29c97d25 | dcb7c716bc794d7690d96ed40179ed1996968a41 | refs/heads/master | 2021-01-16T16:16:05.282278 | 2020-05-19T08:00:33 | 2020-05-19T08:00:33 | 243,180,319 | 1 | 0 | Apache-2.0 | 2020-02-26T05:54:51 | 2020-02-26T05:54:50 | null | UTF-8 | Python | false | false | 358 | py | # file: runme.py
import example
# Call our gcd() function
x = 42
y = 105
g = example.gcd(x, y)
print "The gcd of %d and %d is %d" % (x, y, g)
# Call the gcdmain() function
example.gcdmain(["gcdmain", "42", "105"])
# Call the count function
print example.count("Hello World", "l")
# Call the capitalize function
pr... | [
"inishchith@gmail.com"
] | inishchith@gmail.com |
eff707bca66288abdae3277852cc60db7fd2c668 | f08c86d613867e8718661f908832ef37a223e661 | /skynetMaster.py | bbaa99ab7ea575403ac9ef4f811f2d3eb10d8bb4 | [] | no_license | lubintan/TAELIUM-simAndTest | b0ed04fdc0cd22d6a04cfa0632da18fae813a0b4 | 779108e4c4bf41da8abb7863300604d0d5d740f8 | refs/heads/master | 2020-12-20T02:17:17.083773 | 2020-01-27T06:07:18 | 2020-01-27T06:07:18 | 235,929,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,342 | py | import os, time, random, sys, subprocess
import login_forge, login_unforge, login_sendTx
# Acct ID, password, forging
Accounts = [['VXVQ-APCC-UHDD-7A3ZX','password1', False,'Alpha-3'],
['PGDQ-XR6X-2EAS-9H2KM','password2', False,'Alpha-3'],
['D6PA-3TCG-AXGA-BVHW4','password3', False,'Alpha-4'],
... | [
"Lubin@Lubins-MacBook-Pro.local"
] | Lubin@Lubins-MacBook-Pro.local |
1550be623ed7d429775ac1003c7bb9d02429934d | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startPyquil359.py | 32cfc081fc66d60b254599f48e81e60a9fa712a0 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,477 | py | # qubit number=2
# total number=64
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=1
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
8fc2af3ecc3fecf76fec30d1f6ea565083605325 | 160827c128f005bd287b36d4dc2aee1f76989d6d | /30 Days of Code/Day 5 Loops.py | 15335467c37076e20c609ea7dd6787d5dfef225b | [] | no_license | shubhamvm/HackerRack-Solutions-SHUBHAM-VERMA | 2db60d9476c9100f18ce3ec76aacbb213a648801 | 9a929fb0ed08e76caf8ced5dc4ac857f7cca1834 | refs/heads/master | 2020-07-17T17:21:54.142694 | 2020-05-06T14:14:57 | 2020-05-06T14:14:57 | 206,061,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | #!/bin/python3
import math
import os
import random
import re
import sys
if __name__ == '__main__':
n = int(input())
for _ in range(1,11):
print(n,"x",_,"=",n*_)
| [
"noreply@github.com"
] | noreply@github.com |
99d434adce38a39b243cda51066ee04fa7dad5ba | 7e18c87961733e5187ab8be4340fa2080b5ec165 | /mimeapp/wsgi.py | 0c6f1bcb1c9f5b3e4aa06925cb1b2025e4333a6d | [] | no_license | KrishnKrPatel/django_mime_app | a2e1c8a37168edee1ae8a417fd8eae6fcdfbc957 | 1c2c5ad20178f37ed5702e17e618174b3e4f31ff | refs/heads/master | 2020-05-04T18:31:11.312030 | 2019-04-03T19:31:52 | 2019-04-03T19:31:52 | 179,356,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for mimeapp 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"patelkrishnk1213@gmail.com"
] | patelkrishnk1213@gmail.com |
f93eb80e22199a5d8654e271242f09651dd996b6 | e08df66b27c5a2330d1fc981af5cf45c9b5fab03 | /Modules.py | d39aeffa00e1b7d9f54dd09dc9b7e70bdfe35602 | [] | no_license | SHS666638/watch-telegram | b7da11c1585bd713a43816ff2dfde32455df0354 | 0d7e814156614b4e03dd2af8b4135c5e4f6b4a72 | refs/heads/main | 2023-08-17T08:02:36.013310 | 2021-09-27T06:56:15 | 2021-09-27T06:56:15 | 410,766,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | Modules = ["Add","Change","Remove"]
Issue = ["IssueAdd","RemoveIssue"]
| [
"noreply@github.com"
] | noreply@github.com |
8cb2db9e4fbb191140ead5935b7764d09bc25c1f | d1c12958b3fcaba9b4d018ade070c601904fb258 | /views.py | 25f1b1dbaec61bbad6f35b0d74f4b3d3f9215e8a | [] | no_license | cairesvs/techexhibition | ad0c66e6eddc6ecbda3a0f303ad07c9cfbb59123 | 11c2a03f439c7fdaecd4d0b9b2c56400b91605f1 | refs/heads/master | 2020-04-27T01:49:49.733427 | 2010-08-26T22:44:19 | 2010-08-26T22:44:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | from django.http import HttpResponse
import urllib,logging, random,re
from django.shortcuts import render_to_response
def agendatechhtml(request):
sock = urllib.urlopen("http://www.agendatech.com.br/")
agenda_html = sock.read()
sock.close()
return render_to_response("agenda.html", locals())
def index(request... | [
"cairesvs@gmail.com"
] | cairesvs@gmail.com |
02913e1f7cabcbcbfec2f0f02283ffde1afb094a | fc5ae3a0fc4380c7d04036c2bc320de132f7c06c | /Project1994/ScriptSearchSpotifyByYearDataFrame.py | 028148d3f1ecbc43d1fd3d442b22bfcc765eebaf | [] | no_license | noddables/Project1994 | e4588ba8ebb1ea867e8ccdf213987a2cf763f6bf | 841b292e89f3802d5772cfcc2e854057d46d8652 | refs/heads/main | 2023-07-10T02:20:19.071765 | 2021-08-19T21:45:22 | 2021-08-19T21:45:22 | 284,550,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,539 | py | '''
Created on Apr 17, 2021
@author: Charlie
'''
'''imports'''
import FunctionsSpotify as FS
import FunctionsPython
import Variables
import sys
import csv
from pandas import DataFrame
from pathlib import Path
import spotipy
from pandas import concat as Concat
'''variables'''
import Variables
consolepr... | [
"33813788+noddables@users.noreply.github.com"
] | 33813788+noddables@users.noreply.github.com |
145abdca9a6ac33294f07bbb01b391fd78802833 | 3bbc51ac3f124469eaa3a07c8a145ab530442152 | /trax/optimizers/rms_prop.py | d512e613edeb014da894b506d6219d6af2b8beed | [
"Apache-2.0"
] | permissive | mahmoudyusof/trax | 47d2436c620a20d20c3369bd1c319c873d5f8911 | e0b116682b5b2be724e825dbb922400e72ebaedf | refs/heads/master | 2022-11-06T06:10:47.659995 | 2020-06-26T14:47:53 | 2020-06-26T14:47:53 | 274,638,181 | 1 | 0 | Apache-2.0 | 2020-06-24T10:14:01 | 2020-06-24T10:14:00 | null | UTF-8 | Python | false | false | 1,679 | py | # coding=utf-8
# Copyright 2020 The Trax Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
66951d3e1a276763e728e318571272229b4255b5 | c05c00f5afb3c75be1bc6b4b98cba5bbe790f009 | /jurassic/formula.py | 8316a3524132b01767f8119ccdf50dbe9b561eb4 | [] | no_license | johncowie/fossil-free-pensions | d9815fe9fe18ea27544791dabaa3487c7120ec37 | 12bf140d028e71f00dfd3943bc9733156dae2ddd | refs/heads/master | 2021-06-03T13:48:49.363247 | 2020-11-11T20:24:45 | 2020-11-11T20:24:45 | 133,798,435 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,793 | py | def fossil_amount(row, verification_column, amount_column):
rowStr = str(row)
ver_cell = verification_column + rowStr
am_cell = amount_column + rowStr
return '=IF({0}="0",0,{1})'.format(ver_cell, am_cell)
def verification(row, oil_col, coal_col, name_col):
row_str = str(row)
oil_cell = oil_col+... | [
"john.a.cowie@gmail.com"
] | john.a.cowie@gmail.com |
b610280d2b747c37d31f155cbaae3e6f77306465 | 7848107497ddbc6fcbe0310b7232ad396aa0053a | /indexer0508.py | d7b9cce17047ee35b4edc8791ea502eba8d2a7aa | [] | no_license | aswaterspy/1004_draft | ff8babe814df3a4b5d81dca6f8933dfc57141060 | 429f1cf7b5eab13608991e8c91d2a9d34525a06c | refs/heads/master | 2020-05-19T09:52:58.569128 | 2019-05-18T10:05:07 | 2019-05-18T10:05:07 | 184,958,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# We need sys to get the command line arguments
import sys
# And pyspark.sql to get the spark session
from pyspark.sql import SparkSession
from pyspark.ml.feature import StringIndexer
from pyspark.ml import Pipeline
# TODO: you may need to add imports here
def main(sp... | [
"dz584@nyu.edu"
] | dz584@nyu.edu |
03edf0f426947684c73c567134cc308f9ce45c98 | f5eccc037a27393e8e6089ab6874a747ae7bac8d | /sub4sub.py | f040b4482e37d32a7989bf43ab7187754c9f51d4 | [] | no_license | etz/reddit-py | 0b1e0ac80789048344864aaf6d2c24edeae3d430 | 564c4cf147c061af4776245b19c474301433393a | refs/heads/master | 2020-04-27T10:49:11.571676 | 2019-03-07T04:19:55 | 2019-03-07T04:19:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | #!/usr/bin/python
import praw
import time
reddit = praw.Reddit('bot1')
title = 'Sub4Sub, Playlist4Playlist, Comment4Comment'
post = '#Subscribe to my channel here: [My Channel](http://href.li/?https://bit.ly/2XrbqQd). \n\n Go to any video, leave a comment, and then Subscribe. \n\nI also am willing to watch your playl... | [
"noreply@github.com"
] | noreply@github.com |
95ff37b4531a2c86139c939329b78fe467b45031 | 0773f0d4cb4b6e48ad93cc63612324bf34aacedf | /misc/set-debate-schedule.py | d74361d3cb5f39c1ba8c030a59dd99f566f34f0b | [
"LicenseRef-scancode-other-permissive",
"MIT"
] | permissive | andrewreece/gauging-debate | deee32e04dab79a01b6d7336710f8132f154d507 | adcbf6f6e40b8eafa92d81f1adcb68864cf0a226 | refs/heads/master | 2020-04-01T13:54:26.174535 | 2015-12-11T07:41:16 | 2015-12-11T07:41:16 | 45,829,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | import requests, json, re
from bs4 import BeautifulSoup as bs
from time import strptime
import numpy as np
path = "/home/dharmahound/analytics.andrewgarrettreece.com/data/"
url = "https://www.washingtonpost.com/graphics/politics/2016-election/debates/schedule/"
html = requests.get(url).text
soup = bs(html, "html.parse... | [
"reece@g.harvard.edu"
] | reece@g.harvard.edu |
9835869a7e76a91dcb0501aba74c04359ac415ba | 7b361fb51c83fb1988046b62d7a0af93b4bd8a30 | /fudge/__doc__.py | 442e770ca0f545558742091396540eb059f640b3 | [
"BSD-3-Clause"
] | permissive | paulromano/fudge | 162ab067bb1b1dd1329ca0923de944b5fcfb44a8 | 6348d506de8306138ca654aa66f4fb81b790e7da | refs/heads/master | 2020-04-10T14:57:42.138711 | 2016-05-13T02:07:05 | 2016-05-13T02:07:05 | 32,029,193 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,529 | py | # <<BEGIN-copyright>>
# Copyright (c) 2016, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
# Written by the LLNL Nuclear Data and Theory group
# (email: mattoon1@llnl.gov)
# LLNL-CODE-683960.
# All rights reserved.
#
# This file is part of the FUDGE package... | [
"paul.k.romano@gmail.com"
] | paul.k.romano@gmail.com |
fb8f49dbd29e5310bf2b77ca3cfeac9f02c762fb | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/compute/azure-mgmt-vmwarecloudsimple/generated_samples/get_virtual_machine_template.py | 26376519ca4d9d3dc1487e0032358173a7762aba | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,620 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
c0bac5a2e8b61047da3374fa5883d06bf2185a39 | 084159ecc7959a5d219c7873d483fe5aaf4129c9 | /civilian.py | 60aae57fdd700c9f90c26c585c84ec0c1812c51a | [] | no_license | uzo-o/bts-mafia | 5aa1dfd44f448781e1dae101797d91b665f93123 | 87f5f38d2b33d1d426bff63e1ac96aa4005d53ef | refs/heads/master | 2021-11-09T06:10:38.788008 | 2021-10-09T18:57:27 | 2021-10-09T18:57:27 | 203,500,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,629 | py | """
name: civilian.py
author: Uzo Ukekwe
version: python 3.8
purpose: play the outcome where the user is a civilian
"""
import random
import gameplay_utilities as gameplay
def play_game(username, town):
"""
Play Mafia as a civilian
:param username: name user sees when chatting with players
:param tow... | [
"ukekwe.uzo@gmail.com"
] | ukekwe.uzo@gmail.com |
eec5dce0c672d1f88ac2cf7611257d83b2396c88 | a4e3017008ac70fcfafa53c816cdc6e55adb2433 | /Week_01/66_plus-one.py | fd368d5672728ee2dcad7f7cc21d27c29b442b35 | [] | no_license | gaofubao/algorithm019 | e380975c90146e7878256e27ffc9ee74044b693b | bbd422f62d83aa7c9e6a0fcc760b265de0574594 | refs/heads/main | 2023-01-31T19:16:52.964967 | 2020-12-14T12:45:00 | 2020-12-14T12:45:00 | 311,036,130 | 0 | 0 | null | 2020-11-08T10:22:20 | 2020-11-08T10:22:20 | null | UTF-8 | Python | false | false | 746 | py | # 给定一个由 整数 组成的 非空 数组所表示的非负整数,在该数的基础上加一。
# 最高位数字存放在数组的首位, 数组中每个元素只存储单个数字。
# 你可以假设除了整数 0 之外,这个整数不会以零开头。
# https://leetcode-cn.com/problems/plus-one/
class Solution1:
def plusOne(self, digits):
for i in range(len(digits)-1, -1, -1):
digits[i] += 1
digits[i] %= 10
if digit... | [
"fubao_gao@163.com"
] | fubao_gao@163.com |
e688996d5b37746fe73243532e28f94b83ffb56f | db3bab9f34290b4a59258414fdc752ca81b1ccc5 | /ptvs_virtualenv_proxy.py | 20a02b17338cf1d49e8682bc0ef4f5ccd61fd4df | [] | no_license | wdstorer/eve-api01 | af5d7428efe4d4035840396368e5990b27d0cd69 | 78086f72a092c0495fd9eca23c0b905983f42ab1 | refs/heads/master | 2020-04-06T04:55:27.054771 | 2015-08-02T03:37:58 | 2015-08-02T03:37:58 | 39,300,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,038 | py | # ############################################################################
#
# Copyright (c) Microsoft Corporation.
#
# This source code is subject to terms and conditions of the Apache License, Version 2.0. A
# copy of the license can be found in the License.html file at the root of this distribution. If
... | [
"wdstorer@yahoo.com"
] | wdstorer@yahoo.com |
2c7f26845222711a56b70ea9e55bf9682877c304 | 9d5d85fc8864cf4b20a03b1b45b51fdc8bcd351d | /livecoding/2019-04-29/server.py | 74c3a19b101012442a2d91e2d445f0d4eefd2e61 | [] | no_license | IsaacCasDen/CS397_Coursework | 5fe04093050e71fe8eb835bfd5dc9fd812612ef0 | 8808abd0b64d9796bb8bbb21447534bc716b17ca | refs/heads/master | 2020-04-18T10:24:10.206389 | 2019-05-17T16:52:05 | 2019-05-17T16:52:05 | 167,466,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py |
import socket
import signal
from threading import Thread, ThreadError
def fx(signum, event):
print('sucker')
signal.signal(signal.SIGINT, fx)
signal.pause()
def run(args):
try:
s=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((args['host'], args['port']))
s.listen()
... | [
"isaac.denney@western.edu"
] | isaac.denney@western.edu |
937ccb77d8b56dd675a42befdd43c354d38f5f08 | 7fb87945b77d3adaedd8a155c981e97946734e41 | /firewall/server/config.py | f9b19329b108ff5b45e17823d0ab8b13deb90369 | [] | no_license | Tony910517/openstack | 916b36368ea9f17958e4eb04bd1f9daf3aba9213 | 4c1380a03c37e7950dcf2bba794e75b7e4a8dfd0 | refs/heads/master | 2020-05-20T01:05:22.499224 | 2019-05-07T01:11:05 | 2019-05-07T01:11:05 | 185,292,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,066 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2010-2012 Red Hat, Inc.
#
# Authors:
# Thomas Woerner <twoerner@redhat.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the Li... | [
"471123674@qq.com"
] | 471123674@qq.com |
168c64ecb02657fa94d2a717b20168899dce3a42 | 7ca45e9eacfda0db110609e7165d07a13877ab4a | /basic-service-invocation-py/microservices/svc/wallet/server.py | e23bd55630e0d872d16bb830010b123949759479 | [
"MIT"
] | permissive | pdettorre/examples | 49691e8cd67e27e131c8f67069792c36419a71dc | 7c9a8ccdc0eab7ecdcdabe06c1da6e387a6e61ee | refs/heads/main | 2023-07-17T21:01:35.931046 | 2021-09-07T15:00:59 | 2021-09-07T15:00:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | from grpclib.server import Server
from grpclib.utils import graceful_exit
from handler import WalletService
async def run(host: str = "0.0.0.0", port: int = 5050) -> None:
server = Server([WalletService()])
with graceful_exit([server]):
await server.start(host, port)
print(f"Serving on {host}... | [
"kzmake.i3a@gmail.com"
] | kzmake.i3a@gmail.com |
072f86504022a7dfd5e5e2e2c7fe470d4ca55300 | 2a1a40577d769f63ef183b5b153766d3a32bafe4 | /scripts/analysis_scripts/plot_latencyOrTraffic_change.py | b3aa3bf0b98124340bf46a412bf6a639a0a69186 | [] | no_license | gdu3/LowerTailLatencyStreamProcessing | 44ebe14638f6954efd324de92a8bffb700bfecee | 3e752d01e235d96ca5ab5abe815322c132ec7968 | refs/heads/master | 2021-01-21T14:01:13.223861 | 2016-04-21T21:21:23 | 2016-05-07T14:43:51 | 54,588,655 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,847 | py | #!/usr/bin/python
import matplotlib.pyplot as plt
import math
import sys
c_id = raw_input("exclaimid?")
c_id = "exclaim" + str(c_id)
t = raw_input("choose to see latency change or traffic (load) change, 1 for latency, 2 for traffic")
t = (int)(t)
#result = open("latency", "w")
#result = open("load", "w")
for j in ran... | [
"grandture1@gmail.com"
] | grandture1@gmail.com |
8b77f8c39bc985a20f1c5452dbeea24d51456732 | 169c55360c7f6c09185718b099deaaac597ca9aa | /samples/pose/pose.py | afc2194993a46141efc3f484ee4bf2cdb33a9957 | [
"MIT"
] | permissive | Sedyshev-Aleksandr/Mask_RCNN | e7f6a63e937638140c5c262483bf573ff5333445 | ae4a3c06584ffd880b76c359a2395242547928ee | refs/heads/master | 2020-08-03T16:21:03.524273 | 2019-09-30T09:07:11 | 2019-09-30T09:07:11 | 211,811,720 | 0 | 0 | NOASSERTION | 2019-09-30T08:24:02 | 2019-09-30T08:24:01 | null | UTF-8 | Python | false | false | 14,007 | py | """
Mask R-CNN
Train on the toy Pose dataset and implement color splash effect.
Copyright (c) 2018 Matterport, Inc.
Licensed under the MIT License (see LICENSE for details)
Written by Waleed Abdulla
------------------------------------------------------------
Usage: import the module (see Jupyter notebooks for examp... | [
"aleksandr.siedyshev@ren.oslo.kommune.no"
] | aleksandr.siedyshev@ren.oslo.kommune.no |
1b8be447f67bc42160efe5e5e1b630b21dbd2145 | 4a26c4236a0b6701394de7e6d4df140c9ece8d3f | /datasources/LyricsWikiaSource.py | ac14a712b2d0013ac6c9c9bfb53b64f1f99d0af3 | [] | no_license | yurifw/menestrel | 7bdef819427a1131769b745aa65139a9e9b47841 | 32cf702dd6ab4786ef6c4ba6efcdfc47df041497 | refs/heads/master | 2021-03-27T11:46:00.711556 | 2017-09-20T02:48:49 | 2017-09-20T02:48:49 | 96,278,837 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | from selenium import webdriver
from selenium.common import exceptions
import time
import urllib2
class LyricsWikiaSource():
def __init__(self):
self.crawler = webdriver.PhantomJS(executable_path='/var/www/html/neatcomics-scrapper/selenium-driver/phantomjs')
self.cache = []
def grabLyric(self,... | [
"yurifw@yurifw-pc.tijupa"
] | yurifw@yurifw-pc.tijupa |
8e5b8e6f322805d3e2e02a4d410048b8dafc9b13 | ace05ee09ed0e9f6ad785a3fc361d8cddf78511b | /lib/number_of_1_bits.py | 51522afa79abd2360305d0adff88c47b48cb7ed1 | [] | no_license | alex-xia/leetcode-python | b6b72f20d00c0875f93f76ce8d694512c82fa6b2 | 7c683df626a620ec6ba9fa3e172906e52b6656c3 | refs/heads/master | 2021-01-18T21:08:42.424277 | 2019-07-21T19:12:49 | 2019-07-21T19:12:49 | 49,799,063 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | __author__ = 'Qing'
'''
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight).
For example, the 32-bit integer ’11' has binary representation 00000000000000000000000000001011, so the function should return 3.
'''
class Solution(object):
def h... | [
"sharkchin@gmail.com"
] | sharkchin@gmail.com |
d0ce209e2eaf52f310523b64287e62dd0ad3d8e6 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/128/usersdata/245/33701/submittedfiles/al6.py | d94e8e45d348615846191bc3f3680ef520f6a876 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | # -*- coding: utf-8 -*-
n=int(input('Digite um número inteiro:'))
contador=0
i=2
while i<n:
if n%i==0:
contador=contador+1
i=i+1
if contador==0:
print('Primo')
else:
print(i)
print('Não Primo') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e774e069a7762765acbcaba77759604b8d69d1d3 | 738d6c5b8434db4dc77d53101bef6a44ca601e29 | /forms.py | 75f5e1af0a3240212f91f975839435f0986ebfb9 | [] | no_license | mfierro31/feedback_app | 0ad3c979b7a271bbf41f92f2384dbbbabbb90663 | 50344eea13e9c0d41fda7269cd127f10b75d52f4 | refs/heads/master | 2023-03-24T15:16:12.502829 | 2020-08-10T06:29:04 | 2020-08-10T06:29:04 | 285,100,002 | 0 | 0 | null | 2021-03-20T04:57:29 | 2020-08-04T21:07:04 | Python | UTF-8 | Python | false | false | 919 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, TextAreaField
from wtforms.fields.html5 import EmailField
from wtforms.validators import InputRequired, Length
class RegisterForm(FlaskForm):
username = StringField("Username", validators=[InputRequired()])
password = PasswordField... | [
"mfier@MacBook-Pro.local"
] | mfier@MacBook-Pro.local |
79a5a7be12abbb4e04e21b06879bc5bd7c331cc0 | 7e224a1141102327b33c81825f9fd87d611204b9 | /api/setup.py | 72b0fb253e8b3005587d3e2798798111f15c1984 | [
"MIT"
] | permissive | aaronlockhartdev/biparse | 5f96259e1f3774807238a104d1d2666a534988c7 | aeeddf50f3c1648fb9ab34cd502cea9ec02bd49b | refs/heads/master | 2020-05-28T09:19:59.884520 | 2019-06-11T04:14:44 | 2019-06-11T04:14:44 | 188,953,222 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | import data
import neural_net
def main():
data.set_train_data()
data.get_unique()
data.format_training_data()
neural_net.create_model()
if __name__ == '__main__':
main() | [
"aaronlockhartdev@gmail.com"
] | aaronlockhartdev@gmail.com |
f7ac3fcc5a1e2d2fbd18c764f09bfae43763facb | a3a4bb196c3a64ce95a4efb88edba4ba72be1431 | /binarysearch/baek1654.py | b6fcbaa37cb046fad9accaefcd10f43a82a6a42e | [] | no_license | jojojohhh/python-algorithm-study | 6e00e384ba214410df6bd813859c299efeb31eca | 1a5d645b0ad760c289379c5ef41daf0675e97b0d | refs/heads/master | 2023-06-01T14:29:46.395838 | 2021-06-22T04:07:15 | 2021-06-22T04:07:15 | 349,453,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | from sys import stdin
k, n = map(int, stdin.readline().split())
arr_k = [int(stdin.readline()) for _ in range(k)]
start, end = 1, max(arr_k)
while start <= end:
mid = (start + end) // 2
lines = 0
for i in arr_k:
lines += i // mid
if lines >= n:
start = mid + 1
else:
end = ... | [
"qwhtkdwp@gmail.com"
] | qwhtkdwp@gmail.com |
8150b1239acc5c233cf751d84d7ffb2c1ae9837f | 00d0cbfe7b1dc71b4365197aa7e20bedc633c458 | /clusters/algs.py | 4247c9971eb3c3bb1affc370f6a72e53fc740977 | [] | no_license | bendorr/Project2 | 2b306e7f4f97dab60f7ce1f6336503251402c0ca | 54561dba456b08d99159fac902994e83ccc8e7ca | refs/heads/main | 2023-03-12T13:04:41.250116 | 2021-02-20T05:50:27 | 2021-02-20T05:50:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,484 | py | import numpy as np
import random
class HierarchicalClustering():
def __init__(self):
pass
def cluster(self, ligands, distanceMatrix, numClusters, verbose = False):
"""
Clusters the given ligands into numClusters clusters using the average linkage hierarchical clustering algorithm. Treats each individual lig... | [
"noreply@github.com"
] | noreply@github.com |
06aa3958be405297e8f511d41e28a0281dd37cef | 4d02ff32c0d2da6d44d73a6f87a70b0533889be9 | /Detective.py | b0701231b2a44a6127c1981dba4bf1c9701ac923 | [] | no_license | Schloz7/Detective-game | 20c685703e6ea9e899ea60bad6be6f019fa236a6 | 48f55c1efff1665254646da8662a557bf472fa7c | refs/heads/main | 2023-08-21T12:58:20.025108 | 2021-09-22T17:20:03 | 2021-09-22T17:20:03 | 407,574,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,387 | py | import time
life = 3
new_life = 3
def Answers_script_2(life):
global new_life
if new_life >= 2:
new_life -= 1
print(new_life)
print("Try again")
second_choice()
else:
print("You lost and gotta captured by Scotland Yard , now you're going to live in the UK ,in ... | [
"noreply@github.com"
] | noreply@github.com |
b973959ac3d816fc76595d043dd3add61ae4eba6 | 0bbad3169cef226a318c2f759e10ffae82af5a04 | /cogs/Channel.py | 7eb62340fc248bc0e197eb87d0cb8b745ec872ae | [
"MIT"
] | permissive | ManGoYTB/botmod2 | a8f03fca5fc1d1f3ab12f031bd9597e61eb8e4a5 | 391ac3d8e8e197edce754dbd553acd1d056c5ca8 | refs/heads/master | 2021-10-02T21:16:58.070821 | 2018-11-30T22:39:30 | 2018-11-30T22:39:30 | 110,163,925 | 0 | 2 | MIT | 2017-12-16T01:23:12 | 2017-11-09T20:40:59 | Python | UTF-8 | Python | false | false | 6,323 | py | import discord
from discord.ext import commands
class Channel:
def __init__(self, bot):
self.bot = bot
print('Addon "{}" loaded'.format(self.__class__.__name__))
@commands.command(pass_context=True)
async def ytmango(self,ctx):
"""YouTube ManGoYT"""
embed = discord.Embed(
... | [
"mangoytbfr@gmail.com"
] | mangoytbfr@gmail.com |
3a9990f22d6b88566aaf3f7f72106e57ed92f045 | da83771f002d731600af9ab55d61e04822fbb551 | /src/app.py | ca99aa8361821362921b02f66ab9156f91d747b3 | [] | no_license | katherineranney/paws-data-pipeline | b457b80001a5a1d30ca5a6fc1f55c44a1e3d9ca7 | 474cb8ac7b0dbd2661965031f63ef750ed4034e3 | refs/heads/master | 2022-09-15T18:23:49.046991 | 2020-05-20T02:53:22 | 2020-05-20T02:53:22 | 268,402,540 | 1 | 0 | null | 2020-06-01T02:04:48 | 2020-06-01T02:04:47 | null | UTF-8 | Python | false | false | 534 | py | import os
from flask import Flask
app = Flask(__name__)
def create_app():
app.secret_key = '1u9L#*&I3Ntc'
app.config['MAX_CONTENT_LENGTH'] = 500 * 1024 * 1024 # 500 Megs
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 0
from server.api import admin_api
from server.api import common_api
app.regist... | [
"urirot.mail@gmail.com"
] | urirot.mail@gmail.com |
30c2059220345e5963dc1f73ad89ab2ad852d1cc | 75ea066045ca46d2ed8a694b3392ddb2d02410c7 | /Solutii/solutie_lab3/naive_bayes.py | 099a40f7065f7dbc7b76da9aae57068d474e68c5 | [] | no_license | AnaCiaciru/ML | 62e94c19d7fd5c646dd4ceb70556a7b78835203d | 54f47877e4fe73d0f26b2739a1595ca0bd3b9244 | refs/heads/master | 2022-06-04T12:10:42.354782 | 2020-05-02T20:31:16 | 2020-05-02T20:31:16 | 260,765,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,323 | py | import pdb
import numpy as np
import math
import pdb
from sklearn.naive_bayes import MultinomialNB
import matplotlib.pyplot as plt
# load data
train_images = np.loadtxt('data/train_images.txt')
train_labels = np.loadtxt('data/train_labels.txt', 'int')
test_images = np.loadtxt('data/test_images.txt'... | [
"45535529+password168@users.noreply.github.com"
] | 45535529+password168@users.noreply.github.com |
032b1060a03adb30aa5683cf24b8a2739731d6a0 | e59fe240f0359aa32c59b5e9f581db0bfdb315b8 | /galaxy-dist/eggs/bx_python-0.7.1_7b95ff194725-py2.7-linux-x86_64-ucs2.egg/EGG-INFO/scripts/wiggle_to_array_tree.py | a35dd2e8ee1fe122a3ce2f21581037c8b54df52c | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | subway/Galaxy-Distribution | dc269a0258471597d483687a0f1dd9e10bd47448 | d16d6f9b6a8b7f41a218c06539863c8ce4d5a73c | refs/heads/master | 2021-06-30T06:26:55.237251 | 2015-07-04T23:55:51 | 2015-07-04T23:55:51 | 15,899,275 | 1 | 2 | null | 2020-10-07T06:17:26 | 2014-01-14T10:47:28 | Groff | UTF-8 | Python | false | false | 845 | py | #!/afs/bx.psu.edu/project/pythons/linux-x86_64-ucs2/bin/python2.7
"""
Read data in UCSC wiggle format and write it to an "array tree" file.
usage: %prog array_length output.array_tree < input.wig
"""
from __future__ import division
import sys
from bx.arrays.array_tree import *
from bx.arrays.wiggle import WiggleRe... | [
"sabba_88@hotmail.com"
] | sabba_88@hotmail.com |
3fb00fc4722fcbe2be97918ae390255eacb8357a | 797e85fd53986dc1bb6473a190b5aea08d482dce | /src/manage.py | 589960de0f7f44614a0ce9d6ff27312fd8ad19bb | [] | no_license | Rybak-a87/practice_django-music_shop | 05798ac70b28f63d0e26bc048807b7e3c9e3aae4 | 647227be457113ebe60aac7b194a385fe6c55847 | refs/heads/master | 2023-07-16T21:25:20.219705 | 2021-08-29T16:05:06 | 2021-08-29T16:05:06 | 400,799,338 | 0 | 0 | null | 2021-08-29T16:05:06 | 2021-08-28T13:27:31 | Python | UTF-8 | Python | false | false | 670 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'musicshop.settings.base')
try:
from django.core.management import execute_from_command_line
exce... | [
"aleksandr.rybak@completecase.com"
] | aleksandr.rybak@completecase.com |
4546a7d4eac20de1f6ebd31249342795bcd6c383 | 24811aa22d65aefa84b8b9dfbe2a08f04dd794cd | /scrapy爬取伯乐在线9_完整版.py | b6bf71fa880414db138925981fba727dfcd6fe73 | [] | no_license | MrCat9/Python_Scrapy-Redis_elasticsearch_django | 00af0993aef378ac7817ebb9033f60a8a8b65473 | 5a40d59b8484c75753f54009ca142d1eaf2b694b | refs/heads/master | 2020-03-10T12:00:05.830659 | 2020-02-16T09:25:12 | 2020-02-16T09:25:12 | 129,367,602 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 25,938 | py | # main.py
# -*- coding: utf-8 -*-
from scrapy.cmdline import execute #调用这个函数可以执行scrapy的脚本
# import sys
# sys.path.append('F:\eclipse\···\···\test_jobbole') #设置工程的目录 #复制工程test_jobbole的路径
import sys
import os
# os.path.abspath(__file__) #获取当前文件的路径
# os.path.dirname(os.path.abspath(__file__)) #获取当前文件的文件夹的路径
print(... | [
"634467045@qq.com"
] | 634467045@qq.com |
c6ec72a0c4a49646a918b6c5dac036c3800f25dc | e9670a246e856c9f43b5f48e0c77ae39d038cfae | /collab_filter_features.py | 96015e9ca0ff9485cecd6ee687cc13b87a755f85 | [] | no_license | svnathan/cs221-project | 9b8cc5836268a31c9d3e783f860d726f8bfce7c9 | 96cc86b7479c710e8a7df2c745aaf246cb54f1da | refs/heads/master | 2021-01-11T03:16:33.898546 | 2016-12-17T01:07:26 | 2016-12-17T01:07:26 | 71,077,004 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,473 | py | import xml.etree.ElementTree as et
import random
import pickle
import math
import test
import operator
import collections
import string
import re
import word_pairs
import time
NUM_WORDS_IN_TUPLE = 2
PAIR_COUNT_THRESHOLD = 15
questionTagsDict = {}
user_tagsList_dict = {}
user_tagPairList_dict = {}
tagPair_count_dict =... | [
"mundada.aditya@gmail.com"
] | mundada.aditya@gmail.com |
ff6fa2bf2091948adc7e62e21dd94dd5c42dbf0f | 57448d2bc2777a5b3f7e9c243c44147942e51b12 | /lte/gateway/python/magma/pipelined/tests/test_redirect.py | c28c2377818284031370def9e632d0983cc11896 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | ekfuhrmann/magma-old | 3c3ac3d6ec82b86d221233e2916b14b53f8f05ab | 8b81337d250611b799a353f0ed6cff6aaea8674e | refs/heads/master | 2023-04-19T07:50:06.656779 | 2020-07-07T20:33:43 | 2020-07-07T20:33:43 | 278,103,227 | 0 | 0 | NOASSERTION | 2021-05-08T00:22:50 | 2020-07-08T13:54:56 | Go | UTF-8 | Python | false | false | 11,016 | py | """
Copyright (c) 2018-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.
"""
import unittest
from concur... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
2164f96ae2d0585b1924503a511f0733264d9c40 | ab1802bd7469639511d7ea07267a2cff0f1c5815 | /main_single.py | af1cb57300452e7c28e2397fae0fcf9e54cf9420 | [] | no_license | kfuka/MCMLSeg | 33727c2786721120a7e4b26a56c44da7dd9259c0 | 3f05458dc96a968de431795921d1c6315a39007a | refs/heads/master | 2023-03-01T19:06:37.969609 | 2021-02-12T05:18:04 | 2021-02-12T05:18:04 | 338,231,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,645 | py | import datetime
import glob
from collections import OrderedDict
import matplotlib.pyplot as plt
import numpy as np
import torch
import torch.backends.cudnn
import torch.nn as nn
import torch.nn.functional as F
from sklearn.model_selection import train_test_split
from torch.utils.data import DataLoader, Dataset
img_fo... | [
"xyohei@gmail.com"
] | xyohei@gmail.com |
5c99443acdbeaf1f61d74199a88d048c6d83e978 | 5f27bc1a0460a078f6fe33a544f494a5dff7f452 | /script/puzzle_test2/D_00_sh_test.py | dff2a48daaf26fda5d893e45e299c676976bafcc | [] | no_license | A-Why-not-fork-repositories-Good-Luck/arm_move | 3e381f0310265f47da14beaac136c358fb318f92 | e2e6182cfd93df1935bd3b8e9158134964dc44fa | refs/heads/master | 2023-03-15T18:37:17.337770 | 2020-11-18T06:46:06 | 2020-11-18T06:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,411 | py | #!/usr/bin/env python
GRID_SIZE = 0.01
G2P_SIZE = 100
import rospy
import numpy as np
import tf
import matplotlib.pyplot as plt
import copy
import time
import D_00_custom_function as CUF
import D_00_client_function as CLF
from D_20_1020_VFHplus_change_radius import influence
from D_00_envClass4altest import EnvInfo ... | [
"welovehun91@gmail.com"
] | welovehun91@gmail.com |
780f9a63b391c821c07adeb106fabc3cc2ee0b96 | 23cc9e5e299103a44135ef231fb1d57f4c30fbd1 | /annlib/lib/layer.py | bab319283197ea923a21333aa26cdf3b9d784ee6 | [] | no_license | kvalle/PyANN | c2b06568ca0d6f27e8fe29fd87b1ca297750a8fa | 412c7d9ae0c5ef3519c458815abe51976b78f8a1 | refs/heads/master | 2020-04-09T10:32:52.775183 | 2012-03-04T12:46:49 | 2012-03-04T12:46:49 | 3,617,480 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,886 | py | import math, yaml, config, utils
from node import *
class Layer:
def __init__(self, options = {}):
defaults = yaml.load(file(config.base_dir + 'scripts/defaults.yml', 'r'), Loader=yaml.Loader)['layer']
self.options = utils.parse_options(options, defaults)
self.nodes = []
self.lin... | [
"olav@bjorkoy.com"
] | olav@bjorkoy.com |
99cf74fe0fa86c20ee140ceacb802de20ec1a065 | 41348afdabd47bfed91984ad4d2917c0e9fce537 | /ex18.py | 334856c3282869b7df9e372a3ebbd279ec6a3ce5 | [] | no_license | nchlswtsn/Learn | dad6a7e2a91036ffdf7cfa5901b03076099a198b | 0486e49f3a706f2cdc787c42cc01f04a2ef5e5aa | refs/heads/master | 2020-03-31T10:05:10.818607 | 2015-04-29T15:16:43 | 2015-04-29T15:16:43 | 32,588,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | def print_two(*args):
arg1, arg2 = args
print "arg1: %r, arg2: %r" % (arg1, arg2)
def print_two_again(arg1, arg2):
print "arg1: %r, arg2: %r" % (arg1, arg2)
def print_one(arg1):
print "arg1: %r" % arg1
def print_none():
print "I got nothin'."
def john_goddard(john1, john2):
print "%r %r" % (john1, john2)
... | [
"nchlswtsn@gmail.com"
] | nchlswtsn@gmail.com |
ec3b03bdf24432b35bd30c2e2b5a7f72878e232f | d2b599e56d8852bbf0c940f61f47094eec4ae82f | /pynyzo/pynyzo/__init__.py | 547acdb4485315163159cbd045a2fcde9a0ea35e | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | iyomisc/pynyzo | 2f58e6323a8acad2e59fb20a477f0a6897a58074 | fb324a8fe7c91a4f2c0f155b7170eb005b1c88ca | refs/heads/master | 2022-07-05T20:16:02.661606 | 2020-05-17T17:43:42 | 2020-05-17T17:43:42 | 264,722,805 | 0 | 0 | MIT | 2020-05-17T17:41:51 | 2020-05-17T17:41:50 | null | UTF-8 | Python | false | false | 155 | py | # -*- coding: utf-8 -*-
"""Top-level package for Python Boilerplate."""
__author__ = """EggdraSyl"""
__email__ = 'dev@eggpool.net'
__version__ = '0.0.1'
| [
"dev@eggpool.net"
] | dev@eggpool.net |
0dae7337a32647723635b53ab343aaaa18191910 | ead6ec54c304046e8017289ecae2acb69f2e463d | /flotilla/test/compute/test_compute_predict.py | a0966a104a4f900680c03b0f4217996b39d7b6d0 | [] | permissive | YeoLab/flotilla | 93e3576002f1b51917bc8576897d399176e1fa3a | 31da64567e59003c2b9c03fc8f4eb27ee62e299c | refs/heads/master | 2023-04-28T04:23:30.408159 | 2017-04-19T07:03:03 | 2017-04-19T07:03:03 | 19,319,564 | 104 | 27 | BSD-3-Clause | 2023-04-15T19:16:52 | 2014-04-30T16:14:31 | Jupyter Notebook | UTF-8 | Python | false | false | 635 | py | from __future__ import (absolute_import, division,
print_function, unicode_literals)
# def test_default_predictor_scoring_fun():
# pass
#
#
# def test_default_score_cutoff_fun():
# pass
#
#
# def test_PredictorConfig():
# pass
#
#
# def test_PredictorConfigScalers():
# pass
#
#... | [
"alaindomissy@gmail.com"
] | alaindomissy@gmail.com |
ce8be278b86f5db9db4368a48b19d7849122ae55 | 7f20bf423448828d31dd9452e6adb49842d5519d | /datatable.py | 803715d9425846fa2059172c08dc515759dfc893 | [] | no_license | jason-huynh83/warzone_stats | 01ef5344d3121b4db4f0ce3809dd8e8273d315e0 | ce8da6a001f4988bdf69cf59f12253c990c0982a | refs/heads/master | 2023-04-10T08:40:57.365553 | 2021-04-22T21:47:04 | 2021-04-22T21:47:04 | 359,310,582 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 12 13:24:12 2021
@author: Jason
"""
import requests
import pandas as pd
import json
import matplotlib.pyplot as plt
import numpy as np
import time
import warnings
import plotly.graph_objects as go
import dash
import dash_core_components as dcc
import dash_html_components ... | [
"jason.huynh@ryerson.ca"
] | jason.huynh@ryerson.ca |
2f9da7304beaa6270fe6162d825473423cf21ce0 | 2e763afb48cd3ece9471cb58cb218b8b29c65f07 | /api/notd/model.py | e30e3324c283632920524c8563708f2d7e3470b6 | [] | no_license | Femi-Ogunkola/nftoftheday | 472c761c26c0dfe2403f71d728f3dae9d70ae837 | 4b542fc74ac789eab6e47315de873ce61496c406 | refs/heads/main | 2023-07-10T09:55:34.043971 | 2021-08-11T13:22:35 | 2021-08-11T13:22:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | import datetime
from typing import Dict
from typing import List
from typing import Optional
from pydantic import dataclasses
@dataclasses.dataclass
class TokenTransfer:
tokenTransferId: int
transactionHash: str
registryAddress: str
fromAddress: str
toAddress: str
tokenId: str
value: int
... | [
"noreply@github.com"
] | noreply@github.com |
c361d7f4bca1a4ab8b7fcfd6b6fddec57dec62ed | 5c16bc84baf250e5b0db6004024bee37a00a5278 | /spiders/urls.py | a13b6dc271ce45068971679b7d56f892249ac236 | [] | no_license | AdejokeOgunyinka/HyperlinksDjangoUI | a693f0eb9da52bc33fe9fa3954e6a5d850093111 | 28caf739968a0bdf4937d50c70a6f90f2e246ca2 | refs/heads/main | 2022-12-28T05:01:18.743181 | 2020-10-06T20:33:32 | 2020-10-06T20:33:32 | 302,283,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from django.urls import path
from .import views
urlpatterns = [
path('', views.index, name='index'),
path('page/', views.pages, name='page'),
] | [
"ogunyinkajoke@yahoo.com"
] | ogunyinkajoke@yahoo.com |
e83d9db572f87305b1b0096b3b8ae3adf05e7a89 | 8caff964f989c8ec00c60dea87a0cef3eb877e97 | /changeName.py | 661ca76b0d86b0091b5580ed8aaf5598c0fb6ecc | [] | no_license | github-luffy/BinaryClassification | a549bdc8666c3912f5d83921b9ebe29f56dc19dd | be9e2a5e27411228bbc6fac245e8fca06051ba16 | refs/heads/master | 2022-12-05T14:49:24.941128 | 2020-08-04T07:52:57 | 2020-08-04T07:52:57 | 284,900,250 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,831 | py | #-*- coding: utf-8 -*-
import os
import numpy as np
import cv2
import shutil
def main():
# root_dir = os.path.dirname(os.path.realpath(__file__))
# print(root_dir)
# image_file = '%s/data/test_data/list.txt' % root_dir
# dst_image_file = '%s/data/train_data/list.txt' % root_dir
# with ... | [
"xiuqiangye@163.com"
] | xiuqiangye@163.com |
0063fb345955b95abb5f38b6bcddd2fe990b3a53 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit2254.py | b42aa032118dd4738b27d1937fa0297f59adf0ee | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,978 | py | # qubit number=4
# total number=35
import cirq
import qiskit
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2
import numpy as np
import networkx as nx
def bitwise_... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
f5fbc0753d1f4c11c6cf976d4bbfd798777c896b | e87eb53e3d3d0332b4ac5fe643bff0aaaf6b983b | /backend-service/visits-service/app/app/db/base.py | f8e377ffb0162f52e576b57916f83871bf8474a5 | [
"MIT"
] | permissive | abhishek70/python-petclinic-microservices | 718dc2f9bf84260a23a7a9d756da295f5d3a1257 | e15a41a668958f35f1b962487cd2360c5c150f0b | refs/heads/main | 2023-05-08T21:54:12.761291 | 2021-06-01T07:03:14 | 2021-06-01T07:03:14 | 359,316,746 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | # Import all the models, so that Base has them before being
# imported by Alembic
from ..models.visit import Visit # noqa
from .base_class import Base # noqa
| [
"abhishek.desai70@gmail.com"
] | abhishek.desai70@gmail.com |
7f5338eb5a735e15180fbe10056cddff56f1841f | d0f11aa36b8c594a09aa06ff15080d508e2f294c | /leecode/1-500/101-200/119-杨辉三角Ⅱ.py | 899447e747110eb099a66ee141ed5fc00a6fcccf | [] | no_license | saycmily/vtk-and-python | 153c1fe9953fce685903f938e174d3719eada0f5 | 5045d7c44a5af5c16df5a3b72c157e9a2928a563 | refs/heads/master | 2023-01-28T14:02:59.970115 | 2021-04-28T09:03:32 | 2021-04-28T09:03:32 | 161,468,316 | 1 | 1 | null | 2023-01-12T05:59:39 | 2018-12-12T10:00:08 | Python | UTF-8 | Python | false | false | 474 | py | def getRow(self, rowIndex):
if rowIndex == 0:
return [1]
pre = [1, 1]
if rowIndex == 1:
return pre
for i in range(rowIndex-1):
num = [1]
for j in range(1, len(pre)):
num.append(pre[j]+pre[j-1])
num.append(1)
pre = num[:]
return pre
# te... | [
"1786386686@qq.com"
] | 1786386686@qq.com |
b7d91bec1ace8d40613c4c3fc0e817a628cc7656 | f4900dc70594e540fa38bdc92ca07b8b42d20c1b | /titulares/migrations/0001_initial.py | 11a44ebbcb5dd8d97f7f028371311109540a0af3 | [] | no_license | Garvillo/almond-way | 45d499690a5709d64c1febe738528302f08ae022 | 709f4a462d23f3073cf3c7267d11457c035e0b13 | refs/heads/master | 2021-08-03T18:17:36.500495 | 2021-07-28T11:30:16 | 2021-07-28T11:30:16 | 141,634,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | # Generated by Django 2.0.7 on 2019-07-02 20:39
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Titular',
fields=[
('id', models.AutoField(... | [
"garvillo@gmail.com"
] | garvillo@gmail.com |
622b641ed61b4497922baa31b9969d78ae3aed3a | 667f153e47aec4ea345ea87591bc4f5d305b10bf | /Solutions/Ch3Ex079.py | e785458d3ab002f62d58c7b3ef7cdbe598755155 | [] | no_license | Parshwa-P3/ThePythonWorkbook-Solutions | feb498783d05d0b4e5cbc6cd5961dd1e611f5f52 | 5694cb52e9e9eac2ab14b1a3dcb462cff8501393 | refs/heads/master | 2022-11-15T20:18:53.427665 | 2020-06-28T21:50:48 | 2020-06-28T21:50:48 | 275,670,813 | 1 | 0 | null | 2020-06-28T21:50:49 | 2020-06-28T21:26:01 | Python | UTF-8 | Python | false | false | 525 | py | # Ch3Ex079.py
# Author: Parshwa Patil
# ThePythonWorkbook Solutions
# Exercise No. 79
# Title: Maximum Integer
from random import randint
def main():
maximum = randint(1, 100)
print(maximum)
updateCount = 0
for i in range(100):
number = randint(1, 100)
print(number, end="")
if number > maxi... | [
"noreply@github.com"
] | noreply@github.com |
24aa4432f7ae3ddc3f4622f20aaf179745d3fbf2 | 11e55abdbf93bca42d5b7961ec63091ced5c4830 | /test_calculator.py | 8c54d4590bf1f1d86ebe057ff903ec8109665bf6 | [] | no_license | mawall/calculator | 9c3157d57f2729dc807ba0ab9b3222a3fbb82372 | 5954d8c5908ebb17c2718083072dc0f828a230a1 | refs/heads/master | 2023-03-23T07:20:45.021031 | 2021-03-15T15:14:53 | 2021-03-15T15:14:53 | 339,877,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,322 | py | import pytest
from calculator import calculate_prefix
from calculator import calculate_infix
non_string_input = [
12,
12.0,
1j,
[1, 2],
{'a': 1, 'b': 2},
False,
b"bytes",
]
class TestPrefixCalc:
def test_single_number(self):
assert calculate_prefi... | [
"marcus.wallbaum@gmail.com"
] | marcus.wallbaum@gmail.com |
fdeec56836193408b7a8b38312ebd829003c3d2d | dcfd3f9e06ed7ef52367219177d07f18a5d728a0 | /Wizualizacja_postaci_drgan.py | 49b63a9c26cffdbf46886f0bcb886bbe449fcd48 | [] | no_license | De4r/ModalEstimation | 91a5b9e8cb3c20717a197af7eef70fc209a11421 | b7d6da5c1bfb2b0e1fab40f16638fe87882cb500 | refs/heads/master | 2020-05-09T18:12:15.850499 | 2019-04-15T08:17:13 | 2019-04-15T08:17:13 | 181,332,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,324 | py | from funkcje import model
import numpy as np
'''
Skrypt wizualizacji postaci dragn
ustawić parametry na dole skryptu:
rzut= 0,1,2,3
f- czest
f_tol - tolerancja
'''
def mode_shape(f, f_tol, sila=1000, zapis='n', nazwazapisu='obiekt', rzut=0):
''' Poniewaz 1 -36 to wymuszenie na X to wyniki{i}y są dla wymuszenia X ... | [
"mkrupnik96@gmail.com"
] | mkrupnik96@gmail.com |
6e763e16ac2e29d7d80641e496069772f114cb59 | 1825283527f5a479204708feeaf55f4ab6d1290b | /leetcode/python/1138/sol.py | 37efea30c3a608a716269f1f938a5aa48182f29c | [] | no_license | frankieliu/problems | b82c61d3328ffcc1da2cbc95712563355f5d44b5 | 911c6622448a4be041834bcab25051dd0f9209b2 | refs/heads/master | 2023-01-06T14:41:58.044871 | 2019-11-24T03:47:22 | 2019-11-24T03:47:22 | 115,065,956 | 1 | 0 | null | 2023-01-04T07:25:52 | 2017-12-22T02:06:57 | HTML | UTF-8 | Python | false | false | 1,727 | py | In leetcode init
[TRACE] inited plugin: cookie.chrome
[TRACE] skipped plugin: lintcode
[TRACE] skipped plugin: leetcode.cn
[TRACE] inited plugin: retry
[TRACE] inited plugin: cache
[TRACE] inited plugin: company
[TRACE] inited plugin: solution.discuss
[DEBUG] cache hit: problems.json
[DEBUG] cache hit: 1138.alphabet-bo... | [
"frankie.y.liu@gmail.com"
] | frankie.y.liu@gmail.com |
8864d001473e3cfc6fa13f6d758af3c7f805423b | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/galex_j18165+4623/sdB_galex_j18165+4623_coadd.py | 39257440de04654ba8cafaacf913dda3f915fd73 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[274.147083,46.387794], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_galex_j18165+4623/sdB_galex_j18165+4623_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCU... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
18badaf0f90dd5fd270c3c65407d6069b50eccfa | caa8328cd164a4b9e4f88d8d3de2140b047346b7 | /client/devpi/push.py | 1b373c07dd31b7e6c2f82bf39f4ad1e7c634e46e | [] | no_license | zerotired/devpi | ed02b276422dc0b496c484204cf9d5b59a0173a1 | ab3b9aab83795c45c150cdefa26c9171827f61c6 | refs/heads/master | 2021-01-16T19:20:40.927221 | 2013-06-02T09:58:27 | 2013-06-02T10:04:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | import py
from devpi import log
from devpi.util import version as verlib
from devpi.util import pypirc
def main(hub, args):
pushrelease = hub.config.pushrelease
pypirc_path = args.pypirc
if pypirc_path is None:
pypirc_path = py.path.local._gethomedir().join(".pypirc")
else:
pypirc_path ... | [
"holger@merlinux.eu"
] | holger@merlinux.eu |
fa087a65218831e8e25bf42722524b34f0d9a788 | f82e67dd5f496d9e6d42b4fad4fb92b6bfb7bf3e | /scripts/client/gui/battle_control/vehicle_state_ctrl.py | e60cc8c17796d3b1207eb5dbf148c09207267eaf | [] | no_license | webiumsk/WOT0.10.0 | 4e4413ed4e7b00e22fb85d25fdae9400cbb4e76b | a84f536c73f86d9e8fab559e97f88f99f2ad7e95 | refs/heads/master | 2021-01-09T21:55:00.662437 | 2015-10-23T20:46:45 | 2015-10-23T20:46:45 | 44,835,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,061 | py | # Embedded file name: scripts/client/gui/battle_control/vehicle_state_ctrl.py
import BigWorld
import Event
import SoundGroups
from debug_utils import LOG_CURRENT_EXCEPTION, LOG_ERROR
from gui.battle_control import avatar_getter
from gui.battle_control.battle_constants import VEHICLE_VIEW_STATE, VEHICLE_WAINING_INTERVAL... | [
"info@webium.sk"
] | info@webium.sk |
64431ded49c19715fa691706db67e9dce8f4efd0 | c2f42e145c03feb891d83ea294cdda9f37cfc717 | /tests/data_access/test_wrapper.py | 94d84cbfe0ca9321d296d12859134f06fe293e3f | [] | no_license | FelixKleineBoesing/queuingSystem | 5b38c123f206d9c71014064404b2f50f0f4491a5 | 09ff583831aa7f8b604f01dc97cf0284ed342f77 | refs/heads/master | 2023-04-12T00:00:20.309232 | 2021-04-25T11:55:04 | 2021-04-25T11:55:04 | 361,413,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | import unittest
class PostgresTester(unittest.TestCase):
pass
class RedisTester(unittest.TestCase):
pass | [
"felix.boesing@t-online.de"
] | felix.boesing@t-online.de |
13d07d704e0486fc24b8ff9d71ab16d48b63c362 | 5c7c9157350dbd475d6b81dfafc935d0bd751405 | /src/controller.py | 694d72381fdbd73eb3d96c6d0780eb8566e6e336 | [] | no_license | testing-matheus/labeller | daf2362b99b9a01133929fff714d68c326ddd3f2 | 4c2b9126727188934585f0e88e71e0a2f61553fd | refs/heads/main | 2023-02-14T17:15:33.822378 | 2021-01-10T20:58:44 | 2021-01-10T20:58:44 | 326,397,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,141 | py | import os
from PyQt5.QtCore import QObject, pyqtSlot, pyqtSignal, QTimer
import src.utils as utils
from src.folderReader import FolderReader
from src.file_saver import FileSaver
from src.file_reader import FileReader
from src.trackerFactory import create_tracker
import cv2
class Controller(QObject):
change_col... | [
"mateu_695p@hotmail.com"
] | mateu_695p@hotmail.com |
5b30f53fa91195defc275fee279d8d3e27640433 | 60be9b44eab355f99fd362844e45ca5d0f1ed63f | /app/sites/index.py | 0e8fd7b694f5fac6653827e93f52cccf854ff87a | [
"Apache-2.0"
] | permissive | stanman71/Miranda | 7c8f4f5b714476cb5b0fb49e3db510ee9788c40b | f6c9a7f2c3a51f37b35f8930214fec7bbe9c0d9b | refs/heads/master | 2023-02-09T04:24:48.700539 | 2019-12-17T22:13:47 | 2019-12-17T22:13:47 | 170,350,778 | 0 | 0 | Apache-2.0 | 2023-01-23T22:21:43 | 2019-02-12T16:23:33 | Python | UTF-8 | Python | false | false | 4,103 | py | from flask import render_template, redirect, url_for, request
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField
from wtforms.validators import InputRequired, Email, Length
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import LoginM... | [
"stanlay@gmx.net"
] | stanlay@gmx.net |
d314838665db4cbeed7653d3e3aa30c1ab3afc99 | 491e5d8802eab189ad32d406d71fc8feee3d90ce | /models/resnet.py | 12c195927283598072f29019816fb1f00a399f00 | [
"Apache-2.0"
] | permissive | BiggerBinBin/e3d_handpose_x-master | 92fec36a1f0fc3944c3b645db4962236fb71036f | 20d091a8a019d85de26c81d02985868f79d5de84 | refs/heads/master | 2023-06-03T21:39:46.306285 | 2021-06-28T08:20:00 | 2021-06-28T08:20:00 | 380,925,987 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,920 | py | import torch
import torch.nn as nn
import math
import torch.utils.model_zoo as model_zoo
__all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101',
'resnet152']
model_urls = {
'resnet18': 'https://download.pytorch.org/models/resnet18-5c106cde.pth',
'resnet34': 'https://download.pytorch.... | [
"1091313282@qq.com"
] | 1091313282@qq.com |
3156336e42c160ebe0217adf54a71445275b8580 | 5942d789bbbc4b9f416ff8f29f5b79675b44a5e0 | /main.py | b52a95088b9e3ec6d55ec7f96859600f605362de | [] | no_license | kelvin0218/sentiment-analysis | 63f909d8f19bba01add3cd782a3690bf29cd6dcb | 7976563dd95ea0bf8cfd8a8be49c5dafb9a587e0 | refs/heads/master | 2021-01-18T17:55:31.099904 | 2017-03-30T17:32:08 | 2017-03-30T17:32:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | from calculator import get_document_score
from dict_parser import get_seeddict, parse_words
# parameters
positive_words_path = 'data/positive.txt'
negative_words_path = 'data/negative.txt'
documents = ['data/1155049829.txt', 'data/1155047854.txt', 'data/LAW_Yue_Hei.txt', 'data/Tse_Ching_Hin.txt']
documents_scores = di... | [
"johnny14687@gmail.com"
] | johnny14687@gmail.com |
a4e02c50f0f1c0abe848c0fdb95ff605b373cb41 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_RelativeDifference/trend_PolyTrend/cycle_12/ar_/test_artificial_128_RelativeDifference_PolyTrend_12__20.py | 9e2333143f576380e7be2ca9f066c64e849a8553 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 274 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 12, transform = "RelativeDifference", sigma = 0.0, exog_count = 20, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
81bb1e1f9c2972273b89457532534d9ba321654c | 951cacd5126333d2d79d1f982c910e6540e171b9 | /Sem2/Diccionario.py | a7b18f50d22ba0b36e4e603b4bd7250674a15a09 | [] | no_license | ArrobaAnderson/Ejer_Class | bcb458117d4f76435309855761137f9fe68a38cc | 7219f13115ebdc4f26fc1beea2b8269c48272067 | refs/heads/main | 2023-07-25T02:31:04.578390 | 2021-09-12T21:21:42 | 2021-09-12T21:21:42 | 381,526,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | class Sintaxis:
instancia=0
def __init__(self,dato="LLamando al constructor1"):
self.frase=dato
Sintaxis.instancia = Sintaxis.instancia+1
def usoVariables(self):
edad, _peso = 21, 70.5
nombres = "Leonardo Arroba"
dirDomiciliaria= "El Triunfo"
... | [
"noreply@github.com"
] | noreply@github.com |
8230d90958c4f5869861ca03f80fd035f00215c8 | bd6ee708eb52ba812fd6bbdaeaf306cfdc460871 | /two_input.py | bfc4b64e2af00e4477139ffb130cdef6ba528574 | [] | no_license | amitkcodes/Work_with_Python | 63d8c51cde1f4473713b93516da831839585bc00 | d344377517e93dd220e000ec9fa169c8d522f769 | refs/heads/master | 2022-12-05T11:52:31.961100 | 2020-08-28T13:54:38 | 2020-08-28T13:54:38 | 288,724,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | name=input("enter your name:")
age=input("enter ur age:")
name,age=input("enter your name and age").split(",")
print(name)
print(age) | [
"noreply@github.com"
] | noreply@github.com |
003d147d9cb28d4559f42582ffd787be9461f2fb | 7451f5689de3a59bb969386b08ccc97afe7060af | /venv/Scripts/pip3.7-script.py | d3b3e6b0f2715971555d9dee70d2431495314ae2 | [] | no_license | MAlj11/schoolNews | 3a7c75d18d9cb81e37acb50d5fa7da66a1d7c6e1 | 3462ea971139a673c19400782e88d115e2b57399 | refs/heads/master | 2020-05-15T16:33:17.782793 | 2019-04-20T10:21:32 | 2019-04-20T10:21:32 | 182,391,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | #!D:\data\pyCharmPro\schoolnews\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
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])
... | [
"malijun1114@outlook.com"
] | malijun1114@outlook.com |
5f855dfe6efe2d207b2cc5baf4d6f5215d2f6a31 | 4fb9150b08a128571ed4a84897c8c95afb76ccb6 | /healthy/migrations/0007_auto_20161129_1533.py | e63a458477a759da7263b9dbbebeb0e8afbbee49 | [] | no_license | eduarde/ChunkyMonkeys | 815feb7f3e6e2085babb61d12f2255ea2cb46ada | 34f30e6aaeef6af15aa12e6d599f55d67c6fb7d7 | refs/heads/master | 2021-07-09T21:30:49.084584 | 2016-12-05T10:42:04 | 2016-12-05T10:42:04 | 58,738,867 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2016-11-29 13:33
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('healthy', '0006_auto_20161129_1411'),
]
operations = [
migrations.RemoveField(
... | [
"eduard.erja@gmail.com"
] | eduard.erja@gmail.com |
a2d657554ee2f2749d08a9a999fa535e8aed9c8a | 95a6d926cfce240ef79e58c1a237413aa2ed6553 | /kmom04/modules/energy_calculation.py | ace5b8987679c963f56e2ab8387b3f6f580ba590 | [] | no_license | pamo18/dbwebb-python | 313a142c52eb1bf695c112ae02d28ad9ebc430dd | 992da9fe53fa8eceb1677dfbe5310f417f5709f4 | refs/heads/master | 2022-11-14T13:15:53.104136 | 2020-07-15T15:04:03 | 2020-07-15T15:04:03 | 279,899,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Functions"""
# energy_calculation.py
def calculate_energy(time_in_microwave, effect=800):
"""
Calculates the energy consumption i kWh
Returns the consumption
"""
energy = effect * time_in_microwave / 1000
return energy
def calculate_cost(energy... | [
"pauljm80@gmail.com"
] | pauljm80@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.