blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e312fb490ae757aa717461c6ed782f2015e967f6 | efa04e5831e6defadabf8dc8f506a415c54710f5 | /visitstat/migrations/0001_initial.py | 95e4fa3eb384fd44a5974ca48c978f06598def83 | [] | no_license | fomalhaut88/django-visitstat | c3e9e7b6b9643474342e87ba065624602bd742c9 | c642d6602e1e0bd4d786493a2a61cfa1dfa60b6c | refs/heads/master | 2021-05-04T13:15:02.949612 | 2020-07-29T16:05:19 | 2020-07-29T16:05:19 | 120,310,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2018-02-05 12:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Visit'... | [
"a.khlebushchev@cashoff.ru"
] | a.khlebushchev@cashoff.ru |
2cadfee2afa2e0b3e38f70d81d48f2c2bdfd4658 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5636311922769920_0/Python/Adipt/my_code4.py | 47e9f815cf1aa2439e447299359df6fe1901dd12 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | t = int(raw_input().strip())
i = 0
while t>0:
t-=1
i+=1
k, c, s = tuple(map(int, raw_input().strip().split()))
"""if c==1:
if k>s:
print "Case #%d:" %(i), "IMPOSSIBLE"
continue
else:
print "Case #%d:" %(i), ' '.join(map(str, range(1, k+1)))
... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
9aac6a17890049f6aa5499a52d28bd3164c3e9ff | fa6c05962e814b4d9cbb8f41ccf58229150ef9d6 | /controllers/webswarm/asb/behavior_module.py | ed74f4a4e1e54371736b2b70ded8bd2c48f92a2e | [] | no_license | mikaelbr/SwarmWebots | 86dc02ca6ee6403ed8ecd50e599e6f6fe4e7d017 | 7a66ff876a2fb338bf6b9cba11a8a3ddfe97a639 | refs/heads/master | 2023-08-30T04:58:13.102013 | 2012-04-20T11:24:50 | 2012-04-20T11:24:50 | 4,014,348 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | """
A module used by the behavior controller. This is the base
layer ment to be extended by different implementations.
All layers must implement their own do() method.
When either left or right wheel speed is set/altered,
the reacted flag will be set, and the controller know
that this layer ha... | [
"mikaelb@mikaelb.net"
] | mikaelb@mikaelb.net |
e0aa72c3a4ebf1441caee7340dc892d5993aa0f8 | 57acf349a3438613baa1754551ddc1469aed7692 | /Neural_network1_coursera/propagate.py | 615a0bc4b133ce9dc5e5cddafcda66356b908e2f | [] | no_license | girish010789/Deep_learning.ai | 4821df16bd982cb85fb05ac070b8509f34eccd3e | 0693c9feaf6fb9bab8835086f7b2581b4e6f0c8c | refs/heads/master | 2020-08-05T20:35:51.288073 | 2019-10-04T00:16:29 | 2019-10-04T00:16:29 | 212,700,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | import numpy as np
from dataset import load_dataset
from calc_sigmoid import sigmoid
def propagate(w, b, X, Y):
"""
Implement the cost function and its gradient for the propagation explained above
Arguments:
w -- weights, a numpy array of size (num_px * num_px * 3, 1)
b -- bias, a scalar
X -- ... | [
"gr959202@c02x1ab9jg5j.vpn.broadcom.net"
] | gr959202@c02x1ab9jg5j.vpn.broadcom.net |
a316eb324713181356194142ff00bc2577481b9e | df6c33d4c960b30e5965ceee1d6cf76d7ff7d7b4 | /general.py | db9b0cfa1a56c0b6bccf0cafe96d21de040e802d | [] | no_license | selinachua/dbn_xml_scraper | 6eef49f4b084206ce5f195141da3bb1a8d3ab7f2 | 28cee3c0a5595262a36b4fe35e23c7f5ff5ddc9c | refs/heads/master | 2020-05-09T17:40:46.019697 | 2019-04-14T14:19:02 | 2019-04-14T14:19:02 | 181,310,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | '''
# Created by:
# Selina Chua
# selina.a.chua@gmail.com
#
# This file contains the class declaration for a general service.
# It contains the information required for any general service.
'''
class GeneralService():
def __init__(self, name, cover, wait, limits, max_ben):
self.name = name
self.co... | [
"selina.a.chua@gmail.com"
] | selina.a.chua@gmail.com |
88357c0c8134c695dca8dadeb9dba7b97228a29a | 82762d776e2400948af54ca2e1bdf282885d922c | /914. 卡牌分组.py | 7b4635bd0aab03aa3ab0d89be36c4fbb70288ae4 | [] | no_license | dx19910707/LeetCode | f77bab78bcba2d4002c9662c122b82fc3c9caa46 | 624975f767f6efa1d7361cc077eaebc344d57210 | refs/heads/master | 2020-03-17T02:50:46.546878 | 2019-06-25T09:22:13 | 2019-06-25T09:22:13 | 133,208,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | class Solution(object):
def hasGroupsSizeX(self, deck):
"""
:type deck: List[int]
:rtype: bool
40ms, beats: 82.81%
"""
lens = len(deck)
if lens <= 1:
return False
d = {}
for i in deck:
if i in d:
d[i] += ... | [
"duxi@aircos.com"
] | duxi@aircos.com |
71d863a94ff6db89e2905cf7a8bdb64fe5ef4f22 | 316a46f8fc4969fe2bbe457107778bddff7dc224 | /Bookord/Bookord/urls.py | 3d567867c20845fcf50723610cf3e1d9af424311 | [
"MIT"
] | permissive | MahtaFetrat/Bookord | 18344eb91273bdfbeb148f93de6d0809ee1d6aae | 9f19d9caf777e3ba6a6aa587ddd65738671a9703 | refs/heads/main | 2023-07-04T15:54:19.492892 | 2021-08-06T17:11:28 | 2021-08-06T17:23:31 | 349,975,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | """Bookord URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
Class-based... | [
"77fetrat@gmail.com"
] | 77fetrat@gmail.com |
88b8c6b5252f23faf07d481d2c75f34d80c9e455 | 7f2511240539b1327a5a97060fa59f811bdc2889 | /django_functest/tests/test_utils.py | e8d876c67348a46b9591772a47dfbe9a8f346ac3 | [] | no_license | liushilive/django-functest | e1080c2e8b9031ba9b271bfd56029f0b77082e5a | 8cffd4ae01dd9a004acc0f37088a34ce5b5e0983 | refs/heads/master | 2021-01-20T14:16:23.133597 | 2018-03-30T07:06:22 | 2018-03-30T07:06:22 | 82,748,549 | 0 | 0 | null | 2018-03-30T07:06:23 | 2017-02-22T01:57:10 | Python | UTF-8 | Python | false | false | 4,299 | py | from __future__ import absolute_import, print_function, unicode_literals
import inspect
from unittest import TestCase
from django.contrib.auth import get_user_model
from django_functest import AdminLoginMixin, FuncBaseMixin, FuncSeleniumMixin, FuncWebTestMixin, ShortcutLoginMixin
from .base import ChromeBase, Firef... | [
"L.Plant.98@cantab.net"
] | L.Plant.98@cantab.net |
b0d34e5bfa233e736dd8f800f1f405ae4197c355 | b3f74be8c7456cc58969f0767022ff4036ad2594 | /movement.py | 57ce2fc98fea4c3eaa9c5a6a97639a7f95cca3b1 | [
"MIT"
] | permissive | deadrobots/Create-17 | 2cf2abafa7ed1f580a2a64df8c3e8f82b8fb47cd | c90c985c75f5994e17b6b9e5f1754e582b2d1310 | refs/heads/master | 2021-01-12T03:58:00.038999 | 2017-07-09T16:00:00 | 2017-07-09T16:00:00 | 81,684,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | py | from wallaby import *
from math import pi
def drive_timed(left, right, time):
create_drive_direct(-right, -left)
msleep(time)
create_drive_direct(0, 0)
def spin_cw(power, time):
create_drive_direct(power, -power)
msleep(time)
create_drive_direct(0, 0)
def spin_ccw(power, time):
create_... | [
"botball@deadrobots.com"
] | botball@deadrobots.com |
cde51ef8d77d7eea0628333be77b2fe4484394bf | ae0c46da3a3a741a1fdec4cfafe61be60c02708d | /utils/plot/general.py | 1b1576fdca3c8109708a9f0c4f54e280012800f1 | [
"MIT"
] | permissive | kvanderwijst/IAMDiagnostics | 9baae6dea403a74cf41d1e128c9e2d28e434dd56 | caf28a69c669e0aea2170827913ba56de163c7e2 | refs/heads/main | 2023-04-19T05:25:50.538539 | 2021-11-25T14:47:49 | 2021-11-25T14:47:49 | 345,969,617 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,512 | py | """
General utils
- add_legend_item: Adds Plotly legend item manually
"""
import numpy as np
import plotly.io as pio
pio.templates.default = "none"
try:
# Bugfix for Plotly default export size
pio.kaleido.scope.default_width = None
pio.kaleido.scope.default_height = None
except:
pass
GRIDCOLOR = ... | [
"k.i.vanderwijst@gmail.com"
] | k.i.vanderwijst@gmail.com |
b0c6a18cbd8dccdb343c2f23d8cb296436d7a3a7 | 1ff77c29479170c5fb09aa3bbf06f0026e8f5a13 | /W2D4/knn.py | a5d1639a8150a15bf9e69475d54c3cebe959b3dd | [] | no_license | nwoch/Artificial-Intelligence | 9eb5e74d63db662c886d3eae9fd2e397ca90930e | 1dca1d1b1f56803249f5c29e46a55095dea67f6c | refs/heads/master | 2020-04-08T01:39:47.896097 | 2018-11-24T06:07:44 | 2018-11-24T06:07:44 | 158,904,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,934 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 3 19:52:53 2018
@author: Nicole
"""
import numpy as np
import pandas as pd
from scipy.spatial import distance
class Knn:
def __init__(self):
self.x = None
self.y = None
def predict(self, k = 5):
df = pd.read_csv('https://archive... | [
"nwoch101@gmail.com"
] | nwoch101@gmail.com |
5b684616d65a8a1c6b38aac44c6267f16b24e5bd | 24fb4447def3fab6a64f8e44f21a0371179a248b | /for_smartphone/try_1003.py | ab43dd051cfb28a7062f4bb7706c7c133fd2cdb8 | [
"MIT"
] | permissive | TakenokoEmpire/mypj | 28f3c2d208e6ee139318a8e02c77d842c72eb38f | fcc56c1113c88d6611b60d0855d6c79df7add7fb | refs/heads/main | 2023-08-28T14:42:28.148268 | 2021-10-29T02:47:32 | 2021-10-29T02:47:32 | 407,075,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,325 | py | # coding: UTF-8
# このファイルは、run.pyと同じ階層に入れないとバグる
# import send_recieve
from send_recieve import SendReceive
import random
import math
import copy
"""
やること
【万一のバグに備える】
もし同じ数字でループするなら、「3回cond!=9の中でランダムに実行する」をやってみるといいかも?
なんかの手違いでhit=4になったら、blowlistの残りをぶち込むシステムを入れていいかも
【より強くする】
位置情報の強化:確定hitが発生したら、過去のデータを遡り、そのhitが該当してか... | [
"taka.satoh@keio.jp"
] | taka.satoh@keio.jp |
852dc9368213b72f365c73d8188cab2dfbe9cfbe | c65705dcc8b8fa5f033873da60dbd5ab85b8e394 | /compare_py_web_frameworks/web/migrations/0006_externalapicallmeasurement.py | 4f181926141de8ba344de8aba3374102d6400681 | [] | no_license | comparepywebframework/ComparePyWebFrameworks | 127f56b9afe6c4c6e210b886c05c89f8b3f74f19 | 41fbe5e4d639c97b2415c7871084747c72c87ec7 | refs/heads/master | 2021-06-23T16:54:48.839532 | 2019-07-15T06:27:10 | 2019-07-15T06:27:10 | 184,575,076 | 0 | 0 | null | 2021-06-10T21:25:19 | 2019-05-02T12:14:55 | HTML | UTF-8 | Python | false | false | 750 | py | # Generated by Django 2.1 on 2019-04-29 19:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('web', '0005_auto_20190426_1939'),
]
operations = [
migrations.CreateModel(
name='ExternalApiCallMeasurement',
fields=[... | [
"mariuszozdoba@e902ab1f.local"
] | mariuszozdoba@e902ab1f.local |
562b5276ac476e24cb34dba56014d146d59cfdc5 | 63f6f3f054e7135076f3f55dcccbcd076a960d49 | /main.py | 62fe8793957dda1d4d08db2faa5660209fd0fae0 | [] | no_license | MrMohammadY/FinancialManagement | 4691b458888c6db757a1ddb45412eec8603ba9e7 | 3b4c78f12612a9d701b4ba4ddf7c8f4ff33808e6 | refs/heads/master | 2023-01-07T21:55:19.306927 | 2020-11-01T10:02:49 | 2020-11-01T10:02:49 | 309,067,427 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,992 | py | import os
from create_files import create_folder_user, create_folder_product
from login import login
from Users import User
from Delete_Edit_User import DeleteUser, EditUser
from Delete_Edit_Product import DeleteProduct, EditProduct
from Show_Product_User import show_user, search_user, show_product, \
search_produc... | [
"m.yazdani000@gmail.com"
] | m.yazdani000@gmail.com |
de8b455b1a89a21b140b39faf0fcf2fd66da035c | 2c3ae2052fcf07f7dbe2bb1c1da221df61545b02 | /app/migrations/0023_merge_20180705_1402.py | eadfb92e95fd126663a560b18298550d94908cc7 | [] | no_license | ManuelBilbao/Prode | afd1e53c3e43b6fb6aabaddedc31eb2cf1d806c4 | 836565c4a272801c2028dcd301bf9567707d7ecb | refs/heads/master | 2020-03-21T23:37:09.622152 | 2018-07-06T22:13:01 | 2018-07-06T22:13:01 | 139,196,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # Generated by Django 2.0.6 on 2018-07-05 17:02
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0004_auto_20180705_1336'),
('app', '0022_auto_20180702_1825'),
]
operations = [
]
| [
"bilbaomanuel98@gmail.com"
] | bilbaomanuel98@gmail.com |
3e9d8ec048755bc1b7308f48bac5f252d8872da9 | 2581df170f614c1324b881f0462837ef09d66728 | /wsgi/openshift/comment/migrations/0003_auto__del_field_comment_submessage.py | 5cd6467385d0d3a25f1c28122063fee88b0cef46 | [] | no_license | neudesk/20thst | eeb43e2351dab06eec448273d8a137cd1efc7509 | 01c30230c2bd981befa9a7b1225df417b726cd1b | refs/heads/master | 2021-01-10T18:53:02.055952 | 2014-01-30T23:59:16 | 2014-01-30T23:59:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,221 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Comment.submessage'
db.delete_column(u'comment_comment'... | [
"neumerance@neudev.(none)"
] | neumerance@neudev.(none) |
cee97c47a3ba17ae565e2903c5d57423032c94ed | 5c9115e44fda400a669aca27333c7ef8de93d7b4 | /db_downgrade.py | fb699d4d5cb7e8bdb6b3c4538b0ee1006b8c47f6 | [] | no_license | weijiayun/blog | 26963cdd0dea87eb3300cc63d83c5062def0e12a | 2388545c3e06ca63a04e93b94fd9ce4f86d27cc2 | refs/heads/master | 2021-01-17T19:17:43.911255 | 2016-06-25T06:39:46 | 2016-06-25T06:39:46 | 59,274,249 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | #!/opt/Apps/local/Python/anaconda/bin/python2.7
from migrate.versioning import api
from config import SQLALCHEMY_DATABASE_URI
from config import SQLALCHEMY_MIGRATE_REPO
def dbdowngrade():
v = api.db_version(SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO)
api.downgrade(SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRA... | [
"jiayun.wei@foxmail.com"
] | jiayun.wei@foxmail.com |
9055c72993e785a6a3143bb062dd04af9f5dc404 | 56915113a742e8bc3d8b2260300311e0bb22afa0 | /django_blog/blog/migrations/0001_initial.py | fb0ab4c1c3f28084e6c102c4d8425b1a18da12e3 | [] | no_license | tenkeyvey/django_blog | 2bcdf33471ec0686fa3e619d43c9516ee35bd251 | 19ee26db0c852f0d9b2728ca81e845bae889fb6f | refs/heads/main | 2023-06-29T07:33:30.736142 | 2021-07-29T11:56:00 | 2021-07-29T11:56:00 | 390,700,427 | 0 | 1 | null | 2021-07-29T11:56:01 | 2021-07-29T11:25:12 | Python | UTF-8 | Python | false | false | 558 | py | # Generated by Django 3.2.4 on 2021-07-01 11:13
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', mode... | [
"noreply@github.com"
] | tenkeyvey.noreply@github.com |
a3075584a19f72349d8cd754df7b70208a2217cd | 6d3da15e989b8448d15ea0e47cf320d8051a2715 | /data/gvdb/conversion_scripts/convert_gvdb_to_json.py | 5c9457d9c80f476f43dfabc31e45f9b9cc3faf1f | [
"Apache-2.0"
] | permissive | pitrack/arglinking | 7881dee77ad883100d88f769253b22d65c207e2e | ebc84d15e9a46cd0a65a42ee391e9f249dfeda72 | refs/heads/master | 2023-02-16T18:02:54.591148 | 2022-08-06T18:07:45 | 2022-08-06T18:07:45 | 254,181,282 | 23 | 5 | Apache-2.0 | 2023-02-11T01:17:22 | 2020-04-08T19:27:52 | Jupyter Notebook | UTF-8 | Python | false | false | 5,991 | py | import csv
import sys
import json
def convert_gvdb_to_span(gvdb_dict, role):
if gvdb_dict['startIndex'] != -1:
# +2 is for the ". " added to separate title and body
return ((int(gvdb_dict['startIndex']) + 2,
int(gvdb_dict['endIndex']) + 2,
role,
gvdb_dict['value']))
e... | [
"paxia@jhu.edu"
] | paxia@jhu.edu |
58d9792ff4177d3aea632b38fd8d7443be137527 | 174ef43bc002b2fb31b4b301d97f59d9ff848a51 | /models/resnet.py | 384074293df4729ed6479c8363fc4dff3915b3af | [] | no_license | chandu-97/Invertible-GAN | d181eb465228c7c8e79cb6c049b4a83a1952a16a | 6afb14c5272d857bbf2f55fab78113eda003c36d | refs/heads/master | 2022-03-14T12:04:55.793902 | 2019-12-17T21:56:10 | 2019-12-17T21:56:10 | 222,968,114 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,107 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from models.residual_block import ResidualBlock
from utils import WNConv2d
class ResNet(nn.Module):
"""ResNet for scale and translate factors in Real NVP.
Args:
in_channels (int): Number of channels in the input.
mid_channels ... | [
"ee14btech11014@iith.ac.in"
] | ee14btech11014@iith.ac.in |
b888d97751c1a71fe356a509e5e43f5733362ec1 | 1362b977fd45dcdc773c836e9895701a20152bba | /multilayer/1d/rarefaction.py | d2f2f3e724001e4c8584ba01f63f71573d7c5e52 | [] | no_license | nthakkar/apps | 4cceacf85e5bdb505f7593fcb7e5c5f4bc5bc371 | f195821e4c8d153a93062af3ecb0c787ed51207f | refs/heads/master | 2021-01-18T11:59:18.972898 | 2013-08-13T00:28:33 | 2013-08-13T00:28:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,240 | py | #!/usr/bin/env python
# encoding: utf-8
r""" Run the suite of tests for the 1d two-layer equations"""
import sys
import clawpack.riemann as riemann
import clawpack.clawutil.runclaw as runclaw
from clawpack.pyclaw.plot import plot
import multilayer as ml
def rarefaction(num_cells,eigen_method,entropy_fix,**... | [
"kyle.mandli@gmail.com"
] | kyle.mandli@gmail.com |
50bb15ab47df9e53950a20c7fb3a9589dfa069c3 | 6197e65fffdd12dee288dc394d6c4a7b0a151172 | /train.py | a5a6fe07819e7250487fd223b6a3102e54aba52e | [] | no_license | yuntai/horse | 0fc7ab868c6e12ac209929bc7bc2753508513533 | b70f38c14c36331be2518300358f6ca8b802bdca | refs/heads/main | 2022-12-27T03:37:38.935003 | 2020-10-07T07:38:57 | 2020-10-07T07:38:57 | 301,961,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,447 | py | import torch
import settings
from torch.utils.data import TensorDataset, DataLoader
import argparse
from dataset import get_datasets
from graph_transformer import GraphTransformer
import numpy as np
import itertools
import torch.nn as nn
from torch import optim
import tqdm
parser = argparse.ArgumentParser(description=... | [
"yuntai.kyong@gmail.com"
] | yuntai.kyong@gmail.com |
03c3734ef7b7cc25a20cb6c977058b94d348cee0 | 228c54822400aaf033679fa49f2a7475e64b5a73 | /mriutils/models/modules/metrics.py | 36f0e7bc141f2b8ccf857090c565e5b3afd7c299 | [
"MIT"
] | permissive | kuangmeng/MRIUtils | 3111da0c212b8bd74b4b35bb6a5fbf641c4d28ff | 3a79e8104071deb0dc17c402ac878f94161d9b4a | refs/heads/master | 2023-06-01T14:51:24.547215 | 2021-06-23T07:22:15 | 2021-06-23T07:22:15 | 322,794,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,631 | py | #!/usr/bin/env python
from tensorflow.keras import metrics
from tensorflow.keras import backend as K
class Metric:
def __init__(self, metric = '', customization = None):
self.metric = metrics.categorical_accuracy
if 'dice' in metric:
self.metric = self.dice_score
elif 'iou' in ... | [
"kuangmeng@msn.com"
] | kuangmeng@msn.com |
069d23d123f3c38400dbad4b87ff53b3e7047772 | a5be588253399c19c6f65f42a3d00324aa38a0e3 | /HW5/Q4.py | e4df29d27002190b6f62ae267391f52da4012935 | [] | no_license | zahrahosseini99/computer-vision-course | b7e9e3869552e9395aa3e7ba2db2be2421b1bb0d | 0c98d95cfc703acf08cbb62f42506d915905f8b2 | refs/heads/main | 2023-07-15T04:26:55.527095 | 2021-08-26T08:47:12 | 2021-08-26T08:47:12 | 338,807,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | def get_45_edges(image):
'''
Returns the image which shows the 45-degree edges.
Parameters:
image (numpy.ndarray): The input image.
Returns:
edges_45 (numpy.ndarray): The 45-degree edges of input image.
'''
kernel = None
edges_45 = image.copy()
#Writer your... | [
"hosseini99.zahra@gmail.com"
] | hosseini99.zahra@gmail.com |
a4c6d9b46b276041c17bd2f1719a9186f8519449 | 35edf8f827bbb380e380c8cf1d0ce177754676e7 | /Tercero/ISSBC/Practica 5/rdflib/samples-tutorial-old/s6.py | c5d7524d77b795f57801dd068d143af4c8f79ad4 | [] | no_license | IronSenior/PracticasUNI | e25182aaee9ceaad07cf2546879836c3fcbaea24 | b5b2041e529923636eeba426a7efd32269ba6fc0 | refs/heads/master | 2021-07-11T01:48:18.915121 | 2020-06-07T00:07:38 | 2020-06-07T00:07:38 | 130,170,973 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 18 20:25:07 2015
@author: acalvo
"""
"""
SPARQL Update statements can be applied with :meth:`rdflib.graph.Graph.update`
"""
import rdflib
if __name__=='__main__':
g = rdflib.Graph()
g.load("foaf.rdf")
g.update('''
PREFIX foaf: <http://xmlns.com/foa... | [
"jose.marquez@atlantyasoftware.com"
] | jose.marquez@atlantyasoftware.com |
22c3ed54ea958655229e920bed61a6cd380cabb1 | 57cf9b9dca994e1df417b7484c464a2826357254 | /tipo_conjunto.py | 7ee392cfe1c48261978bf725b1f0e3cc71769324 | [] | no_license | academia-szycho/clases | f471d9e48bff90c5a09ef78ca1635cbcb8b2d904 | eac9117ec496ce35d1ed33631219e5b23a966fb3 | refs/heads/master | 2023-01-19T07:39:57.924852 | 2020-11-14T18:39:44 | 2020-11-14T18:39:44 | 293,975,311 | 1 | 2 | null | 2020-11-08T06:00:52 | 2020-09-09T02:00:08 | Python | UTF-8 | Python | false | false | 355 | py | lista = ["banana", "manzana", "naranja", "naranja"]
frutas_sin_repetir = set(lista)
'''
for fruta in lista:
if fruta not in frutas_sin_repetir:
frutas_sin_repetir.append(fruta)
'''
print(frutas_sin_repetir)
frutas_sin_repetir = {"naranja", "frutilla"}
print(frutas_sin_repetir)
frutas_sin_repetir.remove("... | [
"licefim254@acceptmail.net"
] | licefim254@acceptmail.net |
79d221d5ee82105be91e5eb4e356874dc967f295 | 5408da89e75c5a79f858eb2c7159c0e5c3c6f615 | /test.py | cd6d8f3812a756fed15afadd7c3a91836cf2df8e | [
"MIT"
] | permissive | Spanfile/Dijkstra | 848c65de580d494d643a073bd0049e7f54deba3b | ea4e7ba68b6b1a7feed29c09f6108db32c57fd17 | refs/heads/master | 2020-03-12T02:02:02.861489 | 2018-04-20T17:09:40 | 2018-04-20T17:09:40 | 130,391,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,060 | py | from random import randint
from time import perf_counter
from multiprocessing import Process, JoinableQueue, current_process
from progressbar import ProgressBar
from dijkstra import Graph, dijkstra
def generate_random_graph(nodes, edges_per_node, max_weight):
graph = Graph()
for node_index in range(1, nodes ... | [
"spansdev@gmail.com"
] | spansdev@gmail.com |
612580bde3a415ac4d0e860531c600f737b1f3fd | 1b03fa00961eff21a8b0dea12ae2a78de5275765 | /M5T1_COATS.py | 687a3f88e62c391f67a74f68f2b98b1f871c7bb5 | [] | no_license | coatsb9112/M2T1 | fd1c27c2a8a38e0820e069f2c489ea6f28a89a3a | 5f667f1ad6c8a8dcc9754a4032c18eb01cebae33 | refs/heads/master | 2021-01-20T11:39:28.172419 | 2017-12-09T19:53:18 | 2017-12-09T19:53:18 | 101,679,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Brandon Coats
# CTI 110
# 10/22/17
# M5T1
import turtle
turtle.shape("turtle")
turtle.forward(50)
turtle.left(90)
turtle.forward(50)
turtle.left(90)
turtle.forward(50)
turtle.left(90)
turtle.forward(50)
turtle.left(90)
turtle.forward(100)
turtle.left(175)
turtle.forward(100)
turtle.left(90)
... | [
"noreply@github.com"
] | coatsb9112.noreply@github.com |
69c2c00b0870c64fb7a2debb3e6aa6790c731a80 | bfa2796ba38793b88dce8515f01b4b315639d51e | /exercise_01/app.py | 974428428abd7c481ea092df4422115f0d2339b0 | [] | no_license | EniDev911/Flask | c2a4ef45e7eccc10ec924241143d44dcbdb9ecaf | 2d35af9b2ffe10803d0acdb3b46c27ecb7394fd4 | refs/heads/master | 2023-06-08T12:26:57.267470 | 2021-06-24T23:27:17 | 2021-06-24T23:27:17 | 309,044,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return '<h1>Hello World from view function!.</h1>'
@app.route('/user/<name>')
def user(name):
return '<h1>Hello %s welcome to Flask</h1>' % name
@app.route('/profile')
def profile():
return '<h2>Welcome to profile</h2>'
if __name__ == '_... | [
"enidev911@gmail.com"
] | enidev911@gmail.com |
7961fd11a9aeb2bf7b63127c7e250a4c4aa7994c | 155f59e3aa788cdb7d9256e685bfe5446fe6c623 | /FxStocks/Plot/DemoWithMatplotLib.py | 2c1c859bd5061dca5f60b697b56466af61cc0d72 | [] | no_license | fictor/FxFinance | 81eb2e15cb4d069ffc7b9e3a56edc1c598fa37a1 | b0ff6d698d707d47c99808568b5527c4461eddf9 | refs/heads/master | 2021-04-30T09:11:33.852312 | 2021-01-09T16:19:09 | 2021-01-09T16:19:09 | 121,302,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | import quandl
import matplotlib.pyplot as plt
import pandas as pd
auth_token = 'QTxeC7MJ_NMJoFhfmMjG'
def MatPlotLibDemo():
# Example Two:
with open('quandlkey.txt', 'r') as quandl_key_file:
auth_token = quandl_key_file.read()
perth_silver = quandl.get("PERTH/SLVR_USD_M", authtoken = auth_token)
... | [
"felix.clap@gmail.com"
] | felix.clap@gmail.com |
146aa11c9c3cb3f4bed5cca81a0563e4850a8408 | 45936e8150b52167fb03d8cae528f99b7d802371 | /compare/path.py | c66c563e407194f51d9779cc4540a9e5f8f35963 | [
"MIT"
] | permissive | reneschaub/opt_einsum | 527dbd78ef8a46529debdbb88b7c0238994bc71b | 8b4ba900eb6e216a9daae9f2d06791cec8049a1f | refs/heads/master | 2021-01-25T08:07:59.813777 | 2018-04-09T07:35:32 | 2018-04-09T07:35:32 | 93,721,957 | 0 | 0 | null | 2017-06-08T07:49:59 | 2017-06-08T07:49:59 | null | UTF-8 | Python | false | false | 2,545 | py | import numpy as np
import pandas as pd
import sys, traceback
import timeit
import time
import test_helper as th
from opt_einsum import contract
pd.set_option('display.width', 200)
import resource
rsrc = resource.RLIMIT_DATA
limit = int(1e10)
resource.setrlimit(rsrc, (limit, limit))
test_einsum = False
test_paths = T... | [
"malorian@me.com"
] | malorian@me.com |
327232060f0e15512e93eebf1f7d39b82e1718d7 | 926b3c52070f6e309567c8598248fd5c57095be9 | /src/mmdeploy/mmdeploy/codebase/mmdet/deploy/object_detection.py | ede6a08b4e991848bdcc9c02f7fbbeaa39d40a09 | [
"Apache-2.0"
] | permissive | fengbingchun/PyTorch_Test | 410f7cd2303707b0141d433fb9d144a961e1f4c8 | df5c2169f0b699bcd6e74adb4cb0e57f7dcd9348 | refs/heads/master | 2023-05-23T16:42:29.711338 | 2023-03-25T11:31:43 | 2023-03-25T11:31:43 | 167,339,907 | 15 | 4 | null | 2023-03-25T11:31:45 | 2019-01-24T09:24:59 | C++ | UTF-8 | Python | false | false | 12,325 | py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Any, Dict, Optional, Sequence, Tuple, Union
import mmcv
import numpy as np
import torch
from mmcv.parallel import DataContainer
from torch.utils.data import Dataset
from mmdeploy.utils import Task
from mmdeploy.utils.config_utils import get_input_shap... | [
"fengbingchun@163.com"
] | fengbingchun@163.com |
43ac288294f7307ef6b7397e48bc66fde0727010 | 5093e1a9ea2c8619965e5e071f3b4a70f3b7dfc0 | /src/infra/orm/entities/user.py | 42b82a3429fb7ab76100246bd4126bffde1b0db3 | [] | no_license | Genial-Ideias/poc_multi_tenant_sqlalchemy | 891df3ec48ee5cc2bfd85d8a24e2be25b5c0f8a1 | dc8b5c0f95107b2b2674c4509d8ad3123989c14c | refs/heads/main | 2023-06-03T18:05:25.153427 | 2021-06-14T21:31:26 | 2021-06-14T21:31:26 | 376,933,111 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | from sqlalchemy import Column, String, Integer, Boolean
from src.config.database import TenantBase
class User(TenantBase):
__tablename__ = 'users'
id = Column(Integer, primary_key=True, index=True)
email = Column(String, unique=True, index=True)
password = Column(String)
name = Column(String)
... | [
"leonardofreitasdev@gmail.com"
] | leonardofreitasdev@gmail.com |
dc8e0abea47e97f42d6101bb38afad1d85cc9a18 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_182/ch11_2019_03_01_14_42_49_680696.py | 986f9bb900d027d3760911518e83cb97aa2593fb | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | def celsius_para_fahrenheit(x):
y=(((9*x)/5)+32)
return y | [
"you@example.com"
] | you@example.com |
25c701924f1d7d293fb25a0f20ffcea9adec6f4e | 1d7c4b6ea4c761dffd432cc289ba4f8216543a30 | /bsc/auth/views.py | 21e81b4b1c547060041941f53f1bfab01aa33eda | [] | no_license | gitter-badger/bsc | 7f99a457b08d108f1c405df49e065fedf226301e | ccc3e1db1213d33407967be17da81ce2d8544b23 | refs/heads/master | 2021-01-21T15:43:00.908560 | 2010-10-08T09:50:54 | 2010-10-08T09:50:54 | 48,218,508 | 0 | 0 | null | 2015-12-18T06:28:18 | 2015-12-18T06:28:16 | CSS | UTF-8 | Python | false | false | 690 | py | from django.shortcuts import render_to_response, redirect
from django.template import RequestContext
from django.contrib.auth import authenticate, login
from django.contrib.auth.models import User
from django.contrib import messages
from bsc.auth.forms import AuthLoginForm
def auth_login(request):
if (request.POS... | [
"rutcreate@gmail.com"
] | rutcreate@gmail.com |
ac5ac60276052ded09478de66bf53d6a7da4485b | e81e949d4897370cec3c7307f7dbd2054e91087c | /main/serializers.py | 69d89d5c819f95e0288637ca799a4f697a5be8c8 | [] | no_license | Niteshks247/BookAppointment | c72e9520e334b999b60f933e277e152c64f4a806 | aeafe34ff682e19f9559d88bcd92692cc546e9bb | refs/heads/main | 2023-03-29T12:08:13.636633 | 2021-04-07T19:26:49 | 2021-04-07T19:26:49 | 355,494,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,605 | py | from django.contrib.auth.models import User
from rest_framework import serializers
from main.models import *
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ['email']
class patientSerializer(serializers.ModelSerializer):
email = serializers.StringRelatedFie... | [
"niteshks247@gmail.com"
] | niteshks247@gmail.com |
0f7084ce8ff2a815b81a9be6c27c5c103b3e645e | 7b9dbd6fadd79a6bf061e1879140ac6d8604c0a6 | /tests/relaymotortest.py | da54e0b4f6fc0abb8994fdfca7b7ed83a11804f1 | [] | no_license | diegorodriguezv/Dora | 8743482762a5d182a442e635132994298128ea89 | 209bd7de60d0fdfb7fbc5687db3325ac62fc701e | refs/heads/master | 2020-04-19T09:33:14.924662 | 2017-03-06T22:07:02 | 2017-03-06T22:07:02 | 67,390,700 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,198 | py | import unittest
import time
import logging
from dora.motor.relaymotor import RelayMotor
class TestRelayMotor(unittest.TestCase):
on = 0
off = 0
on_time = 0.0
off_time = 0.0
def setUp(self):
self.motor = RelayMotor(self.count_on, self.count_off, .03)
self.is_first = True
l... | [
"diegorodriguezv@gmail.com"
] | diegorodriguezv@gmail.com |
9117ba1df298fe098fa12d7edc7e6e0021796cb9 | a64b578a271af2491d3f0ca06ac569dd22246e27 | /Resource/bxAPI.py | 2d3f65f6a1f4933f713ba6ebb8f2ccea570ea089 | [] | no_license | fufu2193/chatb0t1234 | 15ca14d30fb42de1082c16916793a61c09203675 | 9dc57a5a26261b454f7ba799456ce02ae43ae0ba | refs/heads/master | 2022-12-21T22:10:05.184642 | 2019-09-15T11:19:38 | 2019-09-15T11:19:38 | 208,576,798 | 0 | 1 | null | 2022-12-08T14:55:27 | 2019-09-15T10:24:18 | Python | UTF-8 | Python | false | false | 1,038 | py | import requests #ต้อง pip install ก่อน
import pprint
## ดึงราคาจาก Bx.in.th
def GetBxPrice(Number_to_get = 5):
data = requests.get('https://bx.in.th/api/').json()
# pp = pprint.PrettyPrinter(indent=3)
# pp.pprint(data)
result = []
for key in list(data.keys())[0:Number_to_get]:
prim_name ... | [
"petchicclub@gmail.com"
] | petchicclub@gmail.com |
ee423771b495161e5671e232ae8dccc9f743ee72 | c0f328a2f595440c3f8674bbfef054009348e66a | /pset6/credit.py | 3f16f5848dbb48205762f651838229e9bb2ba9e1 | [] | no_license | wilcokuyper/cs50 | 3b314e8fbcbd011671d228298b9cedfe05d57333 | 21ef27fcb0d4b939930f5c746c445666b9a99d74 | refs/heads/master | 2021-08-30T11:18:19.014682 | 2017-12-17T17:35:51 | 2017-12-17T17:35:51 | 114,556,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,752 | py | def sumOfDigits(number):
sum = 0
length = len(number)
val = int(number)
# creditcard is only valid if it contains 13, 15 or 16 digits
if length == 13 or length == 15 or length == 16:
# calculate the sum of the digits by adding the individual numbers to each other, every other number should a... | [
"wilcokuyper@hotmail.com"
] | wilcokuyper@hotmail.com |
b20d5a6493549d6d865fea913a3776a70d7f3533 | 5b8c2e4a1382e495c279e9ff0c97a964d5f8940e | /component_testing/calcPWM_Motor.py | 34c6e78567937b9460cbee34bca9908dabf3b151 | [] | no_license | ImamMuis/TugasAkhir | 1f8f087b9e118d3cd02d66d343af6b13728866d2 | 585b7ffb14b498798c61caee9e9624ecc7f939ca | refs/heads/master | 2023-08-21T02:02:28.891325 | 2021-10-23T10:13:23 | 2021-10-23T10:13:23 | 398,738,079 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,683 | py | # Perhitungan konversi nilai PWM
V_in = 24 #V (Tegangan Maksimal untuk motor DC)
freq = 50 #Hz (Frekuensi PWM)
PWM_Res = 2 ** 16 - 1 #Lebar bit PWM
def motorCalc(value, selector):
valueError = 0
perioda = 1 / freq * 1000
if selector == "PWM":
PWM_Out = value
if PWM_Out > PWM_Res:
print("Input"... | [
"imuis373@gmail.com"
] | imuis373@gmail.com |
ddc567904f52522ee544a175b6283bc8884ff50b | 34d88082307281333ef4aeeec012a3ff5f8ec06e | /Work/removeDuplicatedresult.py | b4b1711dfa80276421755ae80c9ac27a03967b34 | [] | no_license | JKChang2015/Python | a6f8b56fa3f9943682470ae57e5ad3266feb47a7 | adf3173263418aee5d32f96b9ea3bf416c43cc7b | refs/heads/master | 2022-12-12T12:24:48.682712 | 2021-07-30T22:27:41 | 2021-07-30T22:27:41 | 80,747,432 | 1 | 8 | null | 2022-12-08T04:32:06 | 2017-02-02T17:05:19 | HTML | UTF-8 | Python | false | false | 1,663 | py | # removeDuplicatedresult
# Created by JKChang
# 07/11/2018, 12:07
# Tag:
# Description:
from Work.ontology.ontology_info import entity
def removeDuplicated(res_list):
priority = {'MTBLS': 0, 'NCBITAXON': 1, 'BTO': 2, 'EFO': 3, 'CHEBI': 4, 'CHMO': 5, 'NCIT': 6, 'PO': 7}
res = {}
for enti in res_list:
... | [
"jkchang2015@gmail.com"
] | jkchang2015@gmail.com |
abb3c656035e3dc6d0f7f69e10bc5862b7a67991 | f7d7d5f24e5c3f80ba21a36215a653da2a386d87 | /snaketest.py | 2b42190d44571e8e86c799cff51bc6eb7bfe8e96 | [] | no_license | lukeh3nderson/snake_game_python | 2a1ef5946768eb3b5c9ab0f0f0494e1acf4119ba | ceb322229aa77aaea2f04fde4aa6bd0be8583f83 | refs/heads/main | 2023-01-29T19:42:55.910440 | 2020-12-11T18:00:11 | 2020-12-11T18:00:11 | 313,690,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,967 | py | import turtle
import random
import time
delay = 0.1
#score
score = 0
high_score = 0
#Set up the screen
wn = turtle.Screen()
wn.title("Snake by Luke Henderson")
wn.bgcolor("Blue")
wn.setup(width=700, height=700)
wn.tracer(0)
#Snake head
head = turtle.Turtle()
head.speed(1)
head.shape("square")
head.color("Black... | [
"henderln@dukes.jmu.edu"
] | henderln@dukes.jmu.edu |
95365343ebd1d22bf9fdeb48fff8e8cbba2971f4 | 2ef867a1f6e823c5e36a0699c11f0f1214d096d8 | /scripts/train_classifier.py | 397a279f2c1c98a6e5a8a7645642fe8781bf4841 | [] | no_license | afcarl/deconvolution_cam | 55566e618244c7e07e9afb2448a7fe655f67a5da | cb41a420d4bdc58bad7acccb25001ebfe966f79f | refs/heads/master | 2020-03-18T16:40:20.805192 | 2017-10-27T16:44:10 | 2017-10-27T16:44:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,632 | py | import sys
import math
import time
import gzip
import glob
import pickle
import argparse
import datetime
import torch
import torchvision
import torch.nn as nn
import torch.optim as optim
from torch.autograd import Variable
import torch.backends.cudnn as cudnn
from models import VGGlike_vanilla, VGGlike_upsample
from ... | [
"f.muellerklein@gmail.com"
] | f.muellerklein@gmail.com |
054b5a380f5c808db9a55ee682fd68ce632c77b9 | 05be6f562f1ac2445c835e717649a70bd747b21a | /ScrapyForAndroidDashboard/ScrapyForAndroidDashboard/pipelines.py | b7405d29892f1479993edf9e088095c48c7d31f9 | [
"Apache-2.0"
] | permissive | Kyson/ScrapyForAndroidDashboard | a5be0e390203d992c52bbcd4c28c4919b0a55985 | a77a81564980fc0fde64b534d82991136e82e8ff | refs/heads/master | 2021-01-20T05:14:15.560308 | 2017-04-29T06:01:48 | 2017-04-29T06:01:48 | 89,765,230 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,522 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import json
# ---
# title: hello,hikyson
# tags: [Default]
# category: [Default]
# comments: true
# date: 2014-04-20 22:18:43
#... | [
"kysonchao@gmail.com"
] | kysonchao@gmail.com |
a425f5725507444a3e99b41db0e6814131a13d9e | cd2af363104e2f95f1fa25c7be1d24da9d7dfc74 | /flask-hello-world/env/bin/wheel | 8a0beb58ee6f2a04ef7f1ca48ae8d95e76ed3ea3 | [] | no_license | mnuman/real-python-2 | 27ebcd26bec3c292c4356898675888b68b8957ce | 84ca78ceb9172a1f65bdcfe5fdda98215b8ed2a5 | refs/heads/master | 2021-01-10T06:06:47.968160 | 2016-01-09T16:21:10 | 2016-01-09T16:21:10 | 48,548,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | #!/home/milco/real-python/real-python-2/flask-hello-world/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"milco.numan@gmail.com"
] | milco.numan@gmail.com | |
29dbd5c2e549839b8b31bd5f7b351b3c5fecf4f5 | ee60cd0d0a69555df79934af79cf6d9cb54a3294 | /dictionary.py | 10a041ab4de2d746ccf7300cc866fcb998731711 | [] | no_license | rlllzk/pydasar | 36a0e3312e8ee5e193c3f7efa1b50de00eb55031 | 5d257730e17b058aac75a2c067767427c2d78036 | refs/heads/master | 2021-08-03T00:15:43.038123 | 2021-07-20T15:11:21 | 2021-07-20T15:11:21 | 184,442,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | #dictionary
def main():
d = {'satu':10, 'dua':20, 'tiga':30}
#menampilkan nilai dictionary
print("d['satu']: ", d['satu'])
print("d['dua']: ", d['dua'])
print("d['tiga']: ", d['tiga'])
print("d['dua'] * d['tiga']: ", (d['dua'] * d['tiga']))
if __name__=="__main__":
main() | [
"rezkysy@gmail.com"
] | rezkysy@gmail.com |
14290c30bf5ee52588265a1f4cf3d29f5c862a38 | 7d188086e76d6eb58d3f66a8606b1c18ea228caf | /blog/models.py | b8a80a22cac911e177ab0924aee7eec61c49a47f | [] | no_license | gastonvera/Domus-2.0 | 069db70084cf7fbc0cac86e430ebee8f3d75c396 | b852df1184a1b54c8262663f39f74609d86fa488 | refs/heads/master | 2023-04-23T12:38:17.258479 | 2021-05-19T20:18:46 | 2021-05-19T20:18:46 | 365,814,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,802 | py | from django.contrib.auth.models import User
from django.db import models
TPO_CLIENTE = (
('CORPORATIVO', 'CORPORATIVO'),
('INDIVIDUO', 'INDIVIDUO'),
)
ESTADO_PAGO = (
('PAGADO', 'Pagado'),
('PENDIENTE', 'Pendiente'),
)
MEDIO_PAGO = (
('TRANSFERENCIA', 'Transferencia'),
('EFECTIVO', 'Efecti... | [
"vera.gastonn@gmail.com"
] | vera.gastonn@gmail.com |
ea2e0d118494909d212b7941c5f48b6e19e3df73 | 41c830ef97809c6b696c02948c99a6c0ef06ac1b | /week3/todo/auth_/models.py | 5d136d8784325d3264d29e4cb06cf5a81bd4403a | [] | no_license | sidakinaddd/BFDjango | b3523fec9d7ad0064848c9d4817c803e57d186e6 | 331f3e9df1af9927f9d6bc5d693619f256f28d24 | refs/heads/master | 2020-12-11T11:19:15.780295 | 2020-04-19T21:54:46 | 2020-04-19T21:54:46 | 233,829,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,585 | py | from django.contrib.auth.base_user import AbstractBaseUser
from django.contrib.auth.models import PermissionsMixin, UserManager, AbstractUser
from django.contrib.auth.validators import UnicodeUsernameValidator
from django.core.mail import send_mail
from django.db import models
from django.utils import timezone
from dja... | [
"sidakinaddd@gmail.com"
] | sidakinaddd@gmail.com |
be478a6cbfe4b853f6711255d424dbda052d3cf6 | a8b143284c5d887a8c808e3449ab734689a86247 | /10/day10.py | aa9f726066c2faa8604bb35d85f3120eea79b4b8 | [] | no_license | killmaster/adventofcode2016 | afd2556ae488aef70401d02ea46d5eb344b1d61a | 9ce4fe39cbf7479685be29433aa437a8168a8e13 | refs/heads/master | 2020-06-16T07:26:54.411904 | 2016-12-23T12:12:27 | 2016-12-23T12:12:27 | 75,234,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,203 | py | import re
import collections
rule1 = re.compile(r'value (\d+) goes to (\w+ \d+)')
rule2 = re.compile(r'(\w+ \d+) gives low to (\w+ \d+) and high to (\w+ \d+)')
lines = open('input.txt').readlines()
bots = collections.OrderedDict()
for line in lines:
if rule1.match(line):
botid = rule1.match(line).group(... | [
"carlosmartins8@gmail.com"
] | carlosmartins8@gmail.com |
9779357a90fccd1a63511b35172902fb31492148 | 788444066bdd20ccb7d3c743053eb7a5e6dcae09 | /topic_urls.py | a79370e0e059e6243cda81db005c843fd11be712 | [
"MIT"
] | permissive | mp314/waste.d | b7fb077069fd92db8c3e16cf9ab77442e582a112 | 77604e76467cecd061cc0dbf8d8a5fc141f9d5a3 | refs/heads/main | 2023-01-09T18:00:59.960433 | 2020-11-04T08:23:07 | 2020-11-04T08:23:07 | 309,759,883 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 187 | py |
from django.conf.urls.defaults import *
urlpatterns = patterns('',
(r'post/$','topic_views.post'),
#(r'(?P<topicid>.*)/$','topic_views.index'),
(r'','topic_views.index'),
)
| [
"pylkkanen@gmail.com"
] | pylkkanen@gmail.com |
eecbf583448148ec9571603ebdab287bf511a52f | 8a8b0267c4db8847a898ac73ccb6e78e1744e24c | /fundamentals/ppf-ex08/ppf-ex09/factorial.py | 1e76fec5709c74a5e1ba2e52da6db990e882f38d | [] | no_license | entirelymagic/Link_Academy | 41ba890df6793924d186ea94dc8d13b0636c6679 | 844c39ff1281fae8406cd1a0dc06afd357f0bef3 | refs/heads/master | 2023-06-07T03:17:00.527924 | 2021-07-03T09:59:25 | 2021-07-03T09:59:25 | 314,755,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | def factorial(n):
res = 1
for i in range(1,n+1):
res *= i
return res
while True:
n = int(input("Enter number: "))
print(factorial(n)) | [
"entirelymagic@gmail.com"
] | entirelymagic@gmail.com |
c60099d87e9bf3227dd1b3546e417e7e405aee6f | 6df24c8e7d80704574dfd21886d66b0930851999 | /MNIST/train_mnist.py | fb22e7ba1d12a08306e846e80532bc14dc555425 | [] | no_license | Seiya-Yamamoto/example_TensorFlow | e2e0a31f6432eccb4ab675d7837cd2eaca9438df | ad61cd8a82a166e564e597afd48676d0f058b378 | refs/heads/master | 2020-03-17T21:10:55.234397 | 2018-05-19T10:56:24 | 2018-05-19T10:56:24 | 133,947,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,264 | py | # -*- coding:utf-8 -*-
from tensorflow.examples.tutorials.mnist import input_data
import tensorflow as tf
def main():
# mnistデータを格納したオブジェクトを呼び出す
mnist = input_data.read_data_sets('data/', one_hot=True)
# 訓練用の入力データ、正解データをミニバッチ数を指定して取得
train_images, train_labels = mnist.train.next_batch(50)
# テスト用... | [
"linux.yamagen@gmail.com"
] | linux.yamagen@gmail.com |
61cc88976873bcfe9505f2d7b64690bb756da0ac | 060b64eda0f17f975e40d5b48f0e0111462f1670 | /백준저지/파이썬코드/8-2.py | 6549b1afc65f43f5c6e0356d392fcb78181b9e5b | [] | no_license | LEE-JAEHAK/Algorithm | 1fb4546e0ee134d13b43c53a4de6b23d313e9086 | 8df48259edf9ae96d56f5d9a24f86bac54bdc12b | refs/heads/master | 2023-05-24T10:37:43.218844 | 2021-06-25T10:17:10 | 2021-06-25T10:17:10 | 304,694,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | memo = [0] * 100
def fib(x):
if x == 1 or x == 2:
return 1
if memo[x] != 0:
return memo[x]
memo[x] = fib(x-1) + fib(x-2)
return memo[x]
print(fib(90)) | [
"wogkr101@gmail.com"
] | wogkr101@gmail.com |
16edaa87d2d0ab903b85c77d613befdb52240f7b | 3bee45ec4afdff252007beb9680f254854e61cfe | /Squeeze/squeeze.py | e963425c675797c8a9611abcbf80be32d40663dd | [] | no_license | adelevski/finance_dashboards | 9aef76c82cd561736ddc45438e5cd1e3257f584a | ab15462cf545ade37106c5b357ee3973bc6b9b90 | refs/heads/main | 2023-08-18T12:27:54.115696 | 2021-10-22T01:02:54 | 2021-10-22T01:02:54 | 337,586,586 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | import os
import yfinance as yf
import pandas as pd
import plotly.graph_objects as go
symbols = ['AAPL']
for filename in os.listdir("datasets/daily"):
symbol = filename.split(".")[0]
df = pd.read_csv(f'datasets/daily/{filename}')
if df.empty:
continue
df['20sma'] = df['Close'].rolling(window=... | [
"adelevski@gmail.com"
] | adelevski@gmail.com |
b29a4e91beb1a9edf20222c85bb6c9f11c3a5d6e | 14c26c5ed676f0df4b8e67a0d0ec48155686c7a4 | /setup.py | 34215ee5d9675681800c7ea16f126fabd36712b0 | [
"MIT"
] | permissive | mahi97/RCJRVision | b21f85f8ac6a60fda691d9e1a1ed53cabd4abc68 | 0f73d1a1f2ac2eca02bef47699f9c1afdc6c1617 | refs/heads/master | 2022-09-03T18:23:31.402983 | 2020-05-07T00:50:33 | 2020-05-07T00:50:33 | 267,239,947 | 0 | 0 | MIT | 2020-05-27T06:35:02 | 2020-05-27T06:33:54 | null | UTF-8 | Python | false | false | 1,474 | py | """Setup module."""
from setuptools import setup, find_packages
from os import path
def get_requires():
"""Read requirements.txt."""
requirements = open("requirements.txt", "r").read()
return list(filter(lambda x: x != "", requirements.split()))
here = path.abspath(path.dirname(__file__))
# Get the lo... | [
"mhmmdshirazi@gmail.com"
] | mhmmdshirazi@gmail.com |
a3a167d6317c1fda6c2a2f5360dd5acfe9c8076b | 6b2d3a5beaed0f1a52a978d6bba6ee19301f8468 | /src/pickyoptions/core/configuration/child.py | 7a0473d8259c90720d2d9eccb859c08904eb69b4 | [] | no_license | nickmflorin/pickyoptions | 4fb0e01845414d6a9419f94024672428cbaea1af | 68e07ac9d1d040cdab2f3e0eefb2fe884a17d875 | refs/heads/master | 2022-12-18T03:54:25.004279 | 2020-09-20T18:12:52 | 2020-09-20T18:12:52 | 292,388,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,911 | py | import logging
from pickyoptions import settings
from pickyoptions.lib.utils import extends_or_instance_of
from pickyoptions.core.base import Base, BaseMixin
from pickyoptions.core.decorators import raise_with_error
from pickyoptions.core.exceptions import (
PickyOptionsError,
ValueTypeError,
)
logger = log... | [
"nickmflorin@gmail.com"
] | nickmflorin@gmail.com |
bf85b4c2e99a6d2c06480e307f6e2aa43e16059b | 2d688097c44c37084a494f5b34efce64493c7ef7 | /update_stk_json.py | e92478255bc01d38c4b54e9474afe4d0ff80fedf | [] | no_license | lukasturcani/chem_tools | 98d302670abfae963936ded3caf5ffbd1c2191c1 | 75120e1112b920739248882e6d1060a260cae15c | refs/heads/master | 2021-06-04T02:26:00.323449 | 2019-08-04T00:46:26 | 2019-08-04T00:46:26 | 108,840,929 | 2 | 3 | null | 2020-08-28T12:57:21 | 2017-10-30T11:22:59 | Python | UTF-8 | Python | false | false | 2,635 | py | import json
import argparse
import multiprocessing as mp
import stk
import rdkit.Chem.AllChem as rdkit
def load_dict(filename):
with open(filename, 'r') as f:
content = json.load(f)
return content
def write_dict(d, filename):
with open(filename, 'w') as f:
json.dump(d, f, indent=4)
def... | [
"lukasturcani93@gmail.com"
] | lukasturcani93@gmail.com |
13a25905f5fd3ae343b1417b4c68ea593bf84b22 | ccd9f9b59074cc710a7bc94c86efc6ceffd5f56a | /poo/article/__init__.py | 71f5ac48edd1aa941ce4e02af7b8a2dc5dbacba4 | [] | no_license | krosf-university/oop-python | 8899d0c4e9e5c780999a59db5a6884f4006eb5b9 | 50cc88d074c67aa2c225d60cadd875d59040c32c | refs/heads/master | 2022-01-15T01:35:29.516182 | 2019-08-14T18:16:31 | 2019-08-14T18:16:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from .article import Article, EBook, Book, USB, PsycalArticle, ArticleException
from .author import Author
__all__ = [
"Article",
"EBook",
"Book",
"USB",
"PsycalArticle",
"Author",
"ArticleException",
]
| [
"rodrigosanabria22@gmail.com"
] | rodrigosanabria22@gmail.com |
04540cf1f86fd312a71a789d3edfb1386bd05bf3 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/CISCO-EPC-GATEWAY-MIB.py | ae6b7a3a41c6bc0948a86237d93017c15bfe3978 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 28,904 | py | #
# PySNMP MIB module CISCO-EPC-GATEWAY-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-EPC-GATEWAY-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:40:03 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (def... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
6c78a14b6f14f0a105896c9e9244dccdaf40733c | 9d011587623b1ca590c8c85db6b46b87a6d6e97d | /simulation/VFA_v2-2.py | 7081a54997de09cdb521f58ef793e4b396b8db4b | [] | no_license | haugerud/epsSensorNetwork | 2b26984ca754b0a195711e3fcd800ef48c0a6215 | e4bc81fe409366e073ab79275beac7e8e5010225 | refs/heads/master | 2020-04-10T04:43:47.035480 | 2018-12-07T10:55:13 | 2018-12-07T10:55:13 | 160,807,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,878 | py | #Rajouter une situation où certains nodes ne peuvent plus bouger (drône en panne)
#-> définir une nouvelle liste où l'on met les nodes statiques
#-> ou un paramètre booléen dans la class node pour indiquer si le noeud peut bouger ou non.
#Source for mathematique: https://fr.wikibooks.org/wiki/Math%C3%A9matiques_avec_... | [
"haugerud@hioa.no"
] | haugerud@hioa.no |
6d27efdd7d47cfcfddb3c0e52419afd2ec0433e5 | fba1de0664363c24ef7233c2a3dd423b80cbc61f | /download.py | f3355b17b1c0c51d088b01d6b8f202287e68a76a | [] | no_license | alex-993/web_scraper | ff37c005e9a6cfff4d35483f5addf83d4533f625 | 784351e5150d2863d3db694c288dbb8182d20e31 | refs/heads/master | 2022-04-05T06:47:53.022205 | 2020-01-30T16:00:47 | 2020-01-30T16:02:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | import urllib.request
from urllib.error import URLError, HTTPError, ContentTooShortError
def download(url, user_agent='wswp', num_retries=2, charset='utf-8'):
request = urllib.request.Request(url)
request.add_header('User-agent', user_agent)
try:
resp = urllib.request.urlopen(request)
cs = ... | [
"alex14.an@gmail.com"
] | alex14.an@gmail.com |
63cd814987f8153f78e5743152e0cc25c4c23c63 | 3c8bc614c9f09db5efce54af3cbcaf78e0f48b54 | /0x00-python-hello_world/8-concat_edges.py | f531e57e0ce482b0c1cb28ede6ce2094ad90bd11 | [] | no_license | davidknoppers/holbertonschool-higher_level_programming | 7848d301c4bf5c1fa285314392adfb577d6d082f | beaf6e5ece426c2086f34763e50c3ce0f56923ac | refs/heads/master | 2021-04-29T10:10:27.071278 | 2017-05-03T02:46:44 | 2017-05-03T02:46:44 | 77,847,936 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | #!/usr/bin/python3
str = "Python is an interpreted, interactive, object-oriented programming\
language that combines remarkable power with very clear syntax"
str = str[39:67]+str[107:112]+str[:6]
print(str)
| [
"david.knoppers@holbertonschool.com"
] | david.knoppers@holbertonschool.com |
fcc09a982519bbf5b31efdd28089428f5328ed9d | ba0cbdae81c171bd4be7b12c0594de72bd6d625a | /MyToontown/Panda3D-1.9.0/direct/leveleditor/LevelLoaderBase.py | f5c0b44ab0ad2f0f0900cdabd038db10f55e2cdf | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | sweep41/Toontown-2016 | 65985f198fa32a832e762fa9c59e59606d6a40a3 | 7732fb2c27001264e6dd652c057b3dc41f9c8a7d | refs/heads/master | 2021-01-23T16:04:45.264205 | 2017-06-04T02:47:34 | 2017-06-04T02:47:34 | 93,279,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | import imp
class LevelLoaderBase:
"""
Base calss for LevelLoader
which you will use to load level editor data in your game.
Refer LevelLoader.py for example.
"""
def __init__(self):
self.defaultPath = None # this should be set in your LevelLoader.py
self.initLoader()... | [
"sweep14@gmail.com"
] | sweep14@gmail.com |
5c78b2aead19ffa8b1950c6a1dc99dc58910c08e | c3d244c51e4c8a318f67872330b0166614fd22b5 | /Srp/venv/bin/cygdb | 1dcf69eb01f484725c1027922146feb3c3f87957 | [] | no_license | siva-28/Srp | cf8f38e3360d79a4efd471812b5e1d9ebd7f0001 | b7797448b883762aae4106ef2d31dafd2fec0ab3 | refs/heads/master | 2020-03-27T02:58:34.758865 | 2018-09-06T08:19:06 | 2018-09-06T08:19:06 | 145,830,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | #!/home/siva-m/PycharmProjects/Srp/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from Cython.Debugger.Cygdb import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"smartsiva939@gmail.com"
] | smartsiva939@gmail.com | |
704f013c130662ebe0573fac63f33843058e6de6 | c4c58279db858356c41e2a90074181fdf0dd6735 | /Django相关/auth_form/auth_demo/settings.py | b9bf9437ab29361b297bd833119f7ec31e7751a3 | [] | no_license | mowangmo/mini_apps | 3ae9e269cd6dcfbdc850113962ffac541b03ff8c | f5c2d71ea057b9dbdf554bed4d94f5aabab6b2c4 | refs/heads/master | 2021-09-07T16:20:32.298619 | 2018-02-26T01:53:04 | 2018-02-26T01:53:04 | 107,953,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,239 | py | """
Django settings for auth_demo project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"wangmo@syberos.com"
] | wangmo@syberos.com |
c21bb2097509c60695c3b4904a525faa92d6f888 | b65f7a26db907a5e24671d31bae491ac3b351959 | /word_pattern.py | c045e0c4a00c61f991e8e2225855237b5c6781a5 | [] | no_license | srivats0603/Algos_Practice | 3db7dadd910976cd4284a04a4de6e2b4b4ad9a8a | 1c0e9f579a2dc0bf2c0cac4510dc12c396302825 | refs/heads/master | 2020-12-13T14:25:14.976398 | 2020-06-07T13:13:10 | 2020-06-07T13:13:10 | 234,443,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py | class Solution_wordPattern:
def find_num_words(self,str_x,len_str_x):
num_words = 1
space_list = []
for i in range(0,len_str_x):
if str_x[i] == ' ':
space_list.append(i)
num_words = num_words+1
space_list.append(len_str_x+1)
return num_words,space_list
def wordPattern(se... | [
"shuklasr@utopusinsights.com"
] | shuklasr@utopusinsights.com |
a3da4fc993c60e6e717dd3a753c22ba7c5a1debb | 0e82ad56b79439520c656b45b068c8f6528b1796 | /Assignment5/GameMaster.py | 7320a2a8f7c59d224ff71f80ced5ec5c0d75c6e4 | [
"MIT"
] | permissive | vaibhavi-r/CSE-415 | a755dec25e836786ce726d14ddaf320ea8212194 | f5fc90e01aa5a2e1c338b5e9eeccb56c05e39a7c | refs/heads/master | 2021-08-28T04:19:14.913498 | 2017-12-11T06:54:22 | 2017-12-11T06:54:22 | 106,122,569 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,734 | py | '''GameMaster.py
based on code from RunKInARow.py
'''
USE_HTML = True
import Hobgoblin as player1
import Player as player2
from winTesterForK import winTesterForK
if USE_HTML: import gameToHTML
TTT_INITIAL_STATE = \
[[[' ',' ',' '],
[' ',' ',' '],
[' ','... | [
"vaibhavi.rangarajan@gmail.com"
] | vaibhavi.rangarajan@gmail.com |
21b16f6a2046047120d8a98f0d49823758acea53 | 7d12a2b57b5f72755029e6a71357b2ae749fcc0b | /StockInsightPython/predict/GetPredict.py | bc727042e9affb3a2c9dd13ee27f0cb7536f2733 | [] | no_license | DeveloperHailie/StockInsight | b06c911e7d9672f02bf167ca5d52fbc4eff3e9b1 | 23bc455fcde82d68991a136bc6b961ad2df29745 | refs/heads/main | 2023-06-02T06:03:07.245164 | 2021-06-19T05:39:17 | 2021-06-19T05:39:17 | 310,904,981 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,627 | py | import numpy as np
import cv2
from urllib.request import urlopen
import tensorflow as tf
import FinanceDataReader as fdr
from sklearn.preprocessing import MinMaxScaler
import pandas as pd
import csv
import os
import pymysql
import tkinter
from datetime import datetime
import time
import sys
from DBInfo import DB
# 장... | [
"20181011@sungshin.ac.kr"
] | 20181011@sungshin.ac.kr |
c1e495c692005ed98eeeddca13ac61b00102c9c9 | 7d946a2105a4f08f97df3c99d6348bbb216a3fc9 | /assignment2/cs231n/im2col.py | f400fef7928dfd517f41674b7f0e4385b075e231 | [] | no_license | srivatsa96/cs231n | c2628d1edd7a30b7e96ec3ecc443b9e8d705990a | 62ca2fef3e64c2ecee1e5aab34496a993f92d473 | refs/heads/master | 2021-07-12T19:31:10.437684 | 2017-10-13T09:26:24 | 2017-10-13T09:26:24 | 105,500,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,256 | py | from builtins import range
import numpy as np
def get_im2col_indices(x_shape, field_height, field_width, padding=1, stride=1):
# First figure out what the size of the output should be
N, C, H, W = x_shape
assert (H + 2 * padding - field_height) % stride == 0
assert (W + 2 * padding - field_width) % st... | [
"srivatsasinha@gmail.com"
] | srivatsasinha@gmail.com |
d9cfc49a82bc5c833bfc34078ccb8862441965ff | 665a0ec78f8b26972868dbc8ac5acbb29482527b | /venv/bin/f2py | a0f1f9ddf293011510ec9b3985ba6faa502bfcf6 | [] | no_license | tanjan-sj/Android-Malware-Analysis | 8f1fd95196b600d8649a9d51941bccf3dd7404da | 8cfe748d0e39ba6d3d8550f5dd7e0b06951cbaed | refs/heads/master | 2020-03-27T14:23:32.360290 | 2018-08-29T22:00:06 | 2018-08-29T22:00:06 | 146,659,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | #!/home/sj/PycharmProjects/irisMal/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from numpy.f2py.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"tanjan.sj@gmail.com"
] | tanjan.sj@gmail.com | |
4292ca66d299ecd2c72db2fabefb7a193e512295 | d1ec14b25b3489993079b36b7971dacb3bd09340 | /app/trace.py | 0d808beddb833a01d35ad4f1e5ac790575150058 | [
"Apache-2.0"
] | permissive | TinlokLee/Django-Celery | 9cb23fe902302eb5d6ed626dd7ed2a1403c04346 | 320b36ee2091aa876ecf92003af6b8e11b3041ed | refs/heads/master | 2020-04-12T11:11:32.115875 | 2018-12-20T13:01:07 | 2018-12-20T13:01:07 | 162,451,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,548 | py | # -*- coding: utf-8 -*-
"""Trace task execution.
This module defines how the task execution is traced:
errors are recorded, handlers are applied and so on.
"""
from __future__ import absolute_import, unicode_literals
import logging
import os
import sys
from collections import namedtuple
from warnings impo... | [
"noreply@github.com"
] | TinlokLee.noreply@github.com |
7e1ae2a09303d86c91821f6b1b682f862e1d061d | d42955505163519b01f8abdca398434921269f24 | /accounts/migrations/0003_auto_20170905_0746.py | 42905c0e43e4a7a0242d89c02a2ff9a87a7ee85e | [] | no_license | k-murata08/tweet_analysis_app | fde1b780b8177988875542288d8ee303cb47e637 | 3fd227779e6497e51541220d10e6fb534ad0600b | refs/heads/master | 2022-12-12T01:06:15.336412 | 2017-09-15T07:56:35 | 2017-09-15T07:56:35 | 102,452,623 | 1 | 0 | null | 2022-12-08T00:38:18 | 2017-09-05T08:04:25 | CSS | UTF-8 | Python | false | false | 389 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-05 07:46
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_oauthkey'),
]
operations = [
migrations.RenameModel(
o... | [
"murata.kazuma@donuts.ne.jp"
] | murata.kazuma@donuts.ne.jp |
20f6e72dddae300aa3184c98ab23b84680089df2 | 8fb5d9c56e10099d4f0a2c6032d241f30c3adc36 | /0x01-python-if_else_loops_functions/7-islower.py | 0172706a6aa9f95b25ad98201c9ceeee557debe0 | [] | no_license | kbetoacero/holbertonschool-higher_level_programming | c58a8dfd5cc8995333753f13feefb30ec6c938a7 | 7fc926a16b2a3cf8f9d46868eda73f92f4cafe51 | refs/heads/master | 2023-06-14T18:00:19.579279 | 2021-07-14T00:22:43 | 2021-07-14T00:22:43 | 291,780,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | #!/usr/bin/python3
def islower(c):
if ord(c) >= 97 and ord(c) <= 122:
return True
else:
return False
| [
"carlos.acero@holbertonschool.com"
] | carlos.acero@holbertonschool.com |
be5c87c45174526f8ada272a4e3a067a2cc9c0ff | fc2619a1ff0d829d6c5ceaf29658d2252d9a72f8 | /src/basics/args-order.py | a3aaf3022015fc0e0863422a1dcd24b31223faf7 | [] | no_license | IamManchanda/functional-python | c0cc2160e609aa2a2bd23dc8f213cc1c9eb88aa2 | af6c9f31e18adc22baddff27530fbb0099e2bf1f | refs/heads/master | 2020-05-24T20:58:41.129650 | 2019-07-08T08:49:43 | 2019-07-08T08:49:43 | 187,466,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | """ Python Functions """
def display_info(*args, instructor="Harry", **kwargs):
return [args, instructor, kwargs]
print( display_info(1, 2, 3, last_name="Manchanda", job="Engineer") )
| [
"harmanmanchanda182@gmail.com"
] | harmanmanchanda182@gmail.com |
db6ea7991721033afb5df26c7653df2e61182af7 | 0377c6a9b4d692845aa58e98537ff4861473af08 | /lambda.py | d920bcd90fcb1cf9c158030033a606ac46e8507c | [] | no_license | ferryvanmaurik/rekognition | 6dbd78d939817b438172b0438f8d0ad8cd649035 | f2e6719c19355f02e01d527d7aa69123c63ed148 | refs/heads/master | 2021-08-31T14:20:46.443586 | 2017-12-21T16:53:14 | 2017-12-21T16:53:14 | 114,996,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,064 | py | from __future__ import print_function
import boto3
from decimal import Decimal
import json
import urllib
print('Loading function')
rekognition = boto3.client('rekognition')
# --------------- Helper Functions to call Rekognition APIs ------------------
def detect_faces(bucket, key):
response = rekognition.det... | [
"ferry.van.maurik@nike.com"
] | ferry.van.maurik@nike.com |
8e9f34d3aeef20f60dcd9993fa14cb2d81573f58 | 800f0b03a69f965cc910ebcbb7ddfacf7be70182 | /dbase.py | db6e1a8b66712fee9184d1f43e03796a4e04e0f2 | [] | no_license | hellorobo/EBookOfTheDayAPI | db33bca8face40bb381f492d485413bc1703c653 | a43c1b1d8428718a2d6d5ec948455923ed9d8bd2 | refs/heads/master | 2020-03-08T06:22:02.657980 | 2018-06-20T21:39:25 | 2018-06-20T21:39:25 | 127,970,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | import pymongo
class Database():
def __init__(self, connection, database, collection):
self.dbcol = database+"/"+collection
self.connection = pymongo.MongoClient(connection)
self.db = self.connection[database]
self.col = self.db[collection]
print("opened new connection to "+... | [
"trebor.oknewokaj@gmail.com"
] | trebor.oknewokaj@gmail.com |
275dd07d0b26c066736a0b3493b3cbdb2251b1be | 5a5de156afd9e42cafdf17905a023a37b43b9191 | /hw session 4/ex1.py | 9e98e5f38c55552ee4e924470231cc50c6de7ff5 | [] | no_license | damvip12/duonganhminh-fundamentals-c4e23 | f240d81e3bbf86f888fcf367d2431c87b398e203 | 157b926b993a8a34c39b7aa81e56328befe59f40 | refs/heads/master | 2020-04-02T18:26:47.741271 | 2018-11-26T10:24:05 | 2018-11-26T10:24:05 | 154,700,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | flock = [5 , 7 , 300 , 90 , 24 , 50 , 75]
print("Hello , my name is Hiep and these are my sheep sizes :" )
print(*flock , sep =", ")
print("Now my biggest sheep has size :", max(flock) , "lets shear it")
s = 8
i = flock.index(max(flock))
flock[i] = s
print("After shearing , here is my flock :" )
print(*flock ... | [
"noreply@github.com"
] | damvip12.noreply@github.com |
fb8adb5e534ce40c5a72575a471c00cca53470c5 | 6ad044e7538c8b87f3992949ad0b0294863fca26 | /boardapp/views.py | e35f6db56cf5d163396ea2dbeae05791900386e7 | [] | no_license | kawaguchi1102/boardproject | 195db4b14b1baefd80c4df17111b83f0d5ae1871 | 879066806e7fc62576ba2fedae206606ecd187c9 | refs/heads/master | 2020-06-24T04:29:29.670770 | 2019-07-28T15:28:54 | 2019-07-28T15:28:54 | 198,849,580 | 0 | 0 | null | 2019-07-28T15:28:55 | 2019-07-25T14:44:16 | Python | UTF-8 | Python | false | false | 1,208 | py | from django.shortcuts import render, redirect
from django.contrib.auth import authenticate, login
from django.contrib.auth.models import User
def signupfunc(request):
if request.method == 'POST':
username_post = request.POST['username']
password_post = request.POST['password']
try:
... | [
"info@kawaguchi-design.com"
] | info@kawaguchi-design.com |
bf1a5d4fbc64933eaee40dc208a104c8b60186a8 | af6beab37b0b5f2de788e56c1738ecbb11d0f815 | /build/costmap_2d/cmake/costmap_2d-genmsg-context.py | e3c5ad180e2880c5b08917ca486b22b0ba12f41b | [] | no_license | ThanhTVBK61/ROS_Navigation | 37bfaf8fd5965c8f0c8612162ffd489d92cace81 | 66e9764058ac405caf370fa53558958f9d5ae445 | refs/heads/master | 2020-12-15T02:46:03.690907 | 2020-01-21T19:38:46 | 2020-01-21T19:38:46 | 234,965,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/tranthanh/cafebot_ws/src/costmap_2d/msg/VoxelGrid.msg"
services_str = ""
pkg_name = "costmap_2d"
dependencies_str = "std_msgs;geometry_msgs;map_msgs"
langs = "gencpp;geneus;genlisp;gennodejs;genpy"
dep_include_paths_str = "costmap_2d;/home/trant... | [
"thanh.tvbk61@gmail.com"
] | thanh.tvbk61@gmail.com |
af367f7a5eab4747919a59bbd0e0b2d6adf354b6 | 124a2f096adb7f9b0a67311ee55a1191c1b1c7eb | /trader/migrations/0037_auto_20210817_1535.py | a2daa564019c3bd76c81044505fa65a2ada1b383 | [] | no_license | webclinic017/bot-3 | 9913cc785fd5245638a4c811fec8ae0c2dc90a07 | 7c856d237d91e9fa8db8960be2e4d57faa5227bd | refs/heads/main | 2023-08-11T05:34:25.174756 | 2021-09-26T08:13:41 | 2021-09-26T08:13:41 | 426,765,932 | 1 | 0 | null | 2021-11-10T20:24:27 | 2021-11-10T20:24:27 | null | UTF-8 | Python | false | false | 577 | py | # Generated by Django 2.2.24 on 2021-08-17 12:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('trader', '0036_auto_20210817_1509'),
]
operations = [
migrations.RemoveField(
model_name='variants',
name='amount_p... | [
""
] | |
574923447ef569066205755da06eda7b200eb558 | 6b6e20004b46165595f35b5789e7426d5289ea48 | /config_app/config_util/config/TransientDirectoryProvider.py | 5ac6855924fc6b2dd302f1be9d0fe223bee02639 | [
"Apache-2.0"
] | permissive | anwarchk/quay | 2a83d0ab65aff6a1120fbf3a45dd72f42211633b | 23c5120790c619174e7d36784ca5aab7f4eece5c | refs/heads/master | 2020-09-12T18:53:21.093606 | 2019-11-15T19:29:02 | 2019-11-15T19:29:02 | 222,517,145 | 0 | 0 | Apache-2.0 | 2019-11-18T18:32:35 | 2019-11-18T18:32:35 | null | UTF-8 | Python | false | false | 2,233 | py | import os
from shutil import copytree
from backports.tempfile import TemporaryDirectory
from config_app.config_util.config.fileprovider import FileConfigProvider
OLD_CONFIG_SUBDIR = 'old/'
class TransientDirectoryProvider(FileConfigProvider):
""" Implementation of the config provider that reads and writes the dat... | [
"jimmy.zelinskie+git@gmail.com"
] | jimmy.zelinskie+git@gmail.com |
2a59d24c2f7b50a7d34d28be79e4088ca29e9dce | 3a2029810870989258ecd3394274f7ae978f2113 | /resnet-in-tensorflow/old/cifar10_train.py | b1f30379198cdc566d5fb6df3a7a75a6c48aa1ce | [] | no_license | JudyMRSD/Tensor_Flow_VLR | b11eb27ea1409e730a9297ac9302d23f6f4b4695 | 3f57e1437e2d38351feb316b10248b8f6a333145 | refs/heads/master | 2021-01-18T17:59:56.723685 | 2017-04-17T04:58:20 | 2017-04-17T04:58:20 | 86,833,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,360 | py | # Coder: Wenxin Xu
# Github: https://github.com/wenxinxu/resnet_in_tensorflow
# ==============================================================================
from resnet import *
from datetime import datetime
import time
from cifar10_input import *
import pandas as pd
class Train(object):
'''
This Object i... | [
"jinzhu@Jins-MBP.wv.cc.cmu.edu"
] | jinzhu@Jins-MBP.wv.cc.cmu.edu |
882133f97a36e02d9b2be5233fcf40003635be7b | ffef2fe37864ca154e0e31b9092df89d50d77f3b | /data/LR_dataset.py | 8db08de82c2d17ed7ad49e9d61d02e15ea3e2a26 | [
"MIT"
] | permissive | penguin1214/General_Framework_for_SR_Tasks | 66205b6c041c294c4c74191bb1c62ddc84d071fc | 4f18bc37d6cb7f1355770a1c321f20a58402e993 | refs/heads/master | 2020-03-21T03:08:45.343603 | 2018-08-15T20:41:34 | 2018-08-15T20:41:34 | 138,038,245 | 17 | 3 | null | 2018-07-04T09:22:11 | 2018-06-20T13:42:00 | Python | UTF-8 | Python | false | false | 1,312 | py | import os.path
import cv2
import numpy as np
import torch
import torch.utils.data as data
import data.common as util
class LRDataset(data.Dataset):
'''
Read LR images only in test phase.
'''
def name(self):
return 'LRDataset'
def __init__(self, opt):
super(LRDataset, self).__init... | [
"jinglei_yang@outlook.com"
] | jinglei_yang@outlook.com |
c97a02f2a96a5d905eb8a17e5ef60aa967f81f26 | ddf2e85b8e8fda8cbaf92fc79a53abdb962c8bde | /tests/violated/basic_routing_stripped/orig.py | d4a180eed5e2964cdb78944a50b2c83762b3ceb5 | [
"Apache-2.0"
] | permissive | p4gauntlet/toz3 | 359bd20bdc8fe2b7ccf3564a90988823d94df078 | 0fddd9e21ac7b80e4a0bf8a4e6b1bdcc01308724 | refs/heads/master | 2023-05-11T17:23:10.972917 | 2023-05-09T16:02:56 | 2023-05-09T16:02:56 | 329,900,719 | 4 | 0 | Apache-2.0 | 2023-02-22T23:28:49 | 2021-01-15T12:03:53 | Python | UTF-8 | Python | false | false | 24,983 | py | from p4z3 import *
def p4_program(prog_state):
prog_state.declare_global(
Enum( "error", ["NoError", "PacketTooShort", "NoMatch", "StackOutOfBounds", "HeaderTooShort", "ParserTimeout", "ParserInvalidArgument", ])
)
prog_state.declare_global(
P4Extern("packet_in", type_params=[], methods=[... | [
"noreply@github.com"
] | p4gauntlet.noreply@github.com |
57a53c43996ff1173b87517ec8a8c6faeff2f551 | da8f4c19d2b7c996623da126adef1153293e1881 | /code/stock_scrapper/gunicorn-config.py | 8b1beda80cec557f46aa91be7a96ad63fb689abc | [
"MIT"
] | permissive | erickfis/stock_scrapper | d7637dd195ba7cab8133121f444c7b76766b93b4 | 7480d7277c3f5530b51df42cb18b1c281521a9e1 | refs/heads/master | 2023-06-26T23:59:39.116985 | 2021-07-30T14:09:04 | 2021-07-30T14:09:04 | 388,815,754 | 2 | 1 | null | 2021-07-30T02:41:38 | 2021-07-23T13:45:56 | Python | UTF-8 | Python | false | false | 150 | py | """Configuration for gunicorn."""
import os
timeout = 20
bind = f":{os.environ.get('PORT', '8000')}"
worker_class = "uvicorn.workers.UvicornWorker"
| [
"erickfis@gmail.com"
] | erickfis@gmail.com |
2f9d4b19f169370ca5e35a8505672eb1b7b6d700 | e81d274d6a1bcabbe7771612edd43b42c0d48197 | /Django/day60(自定义管理器)/demo/02_webapp/booktest/models.py | a85c8a71d12b0947243429f766482df7fc35b17c | [
"MIT"
] | permissive | ChWeiking/PythonTutorial | 1259dc04c843382f2323d69f6678b9431d0b56fd | 1aa4b81cf26fba2fa2570dd8e1228fef4fd6ee61 | refs/heads/master | 2020-05-15T00:50:10.583105 | 2016-07-30T16:03:45 | 2016-07-30T16:03:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | from django.db import models
from django.db.models.manager import Manager
from datetime import *
"""
自定义管理器
"""
class BookInfo_Manager(Manager):
def get_queryset(self):
return super().get_queryset().filter(isdelete=0)
def create(self,btitle='xx',bpubdate=date.today(),bread=0,bcomment=0,isdelete=0):
... | [
"1025212779@qq.com"
] | 1025212779@qq.com |
9cba16904c3d6c84fa17c84c14a4c69a517dcf65 | c491494017eeecc83ebaaeb74a1f60a9031e3a39 | /tethysapp/hs_modflow/model.py | 349df073ba30738475ba481254495b4736e03bf1 | [] | no_license | c-krew/hs_modflow | 49f1900631c080a9c3254b277e5dbdcc849afd3b | a625ed113f9a4e498fd3712b3b904e67446f0207 | refs/heads/master | 2021-10-08T18:33:33.541728 | 2018-12-16T00:04:44 | 2018-12-16T00:04:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,382 | py | import json
import os
import flopy
from datetime import datetime as dt
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import *
from sqlalchemy.orm import sessionmaker
from django.http import JsonResponse, Http404, HttpResponse
from hs_restclient import HydroShare
from .app import HsModflow a... | [
"coreykrewson@gmail.com"
] | coreykrewson@gmail.com |
7fe7a2d3a65e3c80c48c513dbca332369b6f1feb | 8dcddd65561a5c0cca8e0727d4df260ac9a17062 | /pycat | 8b81ddf3eb89bf8a14f78703ed46f15babe3b056 | [] | no_license | lverweijen/pytools | edb08a462530b4275389a514a57ec88fd0228b3d | bad12f57ee1d5be6eaed23d047e9a9614da77284 | refs/heads/master | 2021-01-10T07:43:33.093956 | 2016-02-09T18:51:08 | 2016-02-09T18:51:08 | 47,980,400 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,369 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Utility to display part of a python.
Usage:
pycat <filename> <identifier>
Dependencies:
astunparse or meta
Unsupported:
astor, astmonkey, macropy
Bugs:
meta (v0.4.1) can't handle some assignments. Use astunparse instead.
"""
__author__ = __... | [
"lverweijen"
] | lverweijen | |
8135d4bbab19fd1ba6a3d4ba541a7fddfe935954 | 5a281cb78335e06c631181720546f6876005d4e5 | /swift-2.21.0/swift/container/replicator.py | ea18fbd962d46eb609540a60bd1167faf07b0d60 | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 16,737 | py | # Copyright (c) 2010-2012 OpenStack Foundation
#
# 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 agree... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
413330fcb08d0e45e153a765303e131cb0d38ace | 68bca3f840d11cb3e611e3b2227a857f170a5cf9 | /imio/dms/mail/browser/viewlets.py | edd484d647808c331e995d21bd34b2c4d154d09c | [] | no_license | gotcha/imio.dms.mail | 8e2e6e465313ef02e16dc890a7aaba03a55ed9aa | 4bde3665d67ebd8a6ebca31fd1a497806c64fce6 | refs/heads/master | 2021-01-17T18:08:26.411910 | 2016-06-01T11:39:29 | 2016-06-01T11:39:29 | 60,174,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,965 | py | # -*- coding: utf-8 -*-
from zope.component import getUtility
from zope.intid.interfaces import IIntIds
from zc.relation.interfaces import ICatalog
from plone.app.layout.viewlets import ViewletBase
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from collective.contact.widget.interfaces import I... | [
"s.geulette@imio.be"
] | s.geulette@imio.be |
dea57509913619d26d849ff19edfbe19e5a3a580 | 8e6530405b5bba192c5a2855eee9d0adb14574fa | /widget.py | e5b4fff1b74263952367bd0feeb88c939eaeb2bb | [] | no_license | kstep/ajenti-mpd | 3b07c1527a45b90ac980e5998b41971215f7f8d9 | 666676fe08d01a5c0e6fd478c7c496e4ee0ebd02 | refs/heads/master | 2023-08-18T01:55:15.321386 | 2014-09-03T17:10:30 | 2014-09-03T17:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | from ajenti.api import plugin
from ajenti.api.sensors import Sensor
from ajenti.plugins.dashboard.api import DashboardWidget
from ajenti.ui.binder import Binder
@plugin
class MpdWidget (DashboardWidget):
name = _('MPD Status')
icon = 'music'
def init(self):
self.append(self.ui.inflate('mpd:widget'... | [
"me@kstep.me"
] | me@kstep.me |
767c1e70373576b3d4094240c8a8600259f84576 | 26e91aead18d0fad6f5ce8fc4adf7d8e05a2f07f | /byceps/services/ticketing/barcode_service.py | 559b9b6769e392dfbe4934e9227ba03bcb05f85b | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | leathe/byceps | 40c1f8a1aab3521fcac45d88eab6364d448d4e67 | cd0c618af63fed1cd7006bb67da46eac0ddbb1c7 | refs/heads/master | 2020-12-02T09:02:51.087511 | 2019-12-14T17:00:22 | 2019-12-14T17:00:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,595 | py | """
byceps.services.ticketing.barcode_service
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Render Code 128 (set B) barcodes as SVG images.
This implementation only supports code set B.
:Copyright: 2006-2019 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from jinja2 import Template
# As see... | [
"homework@nwsnet.de"
] | homework@nwsnet.de |
0bc79cb00c697176464895afec40839910b3ffad | 8c85ec94d1d7cfd5c0df2053b46321ff8e006c9c | /cm.py | 89bd9ab07cf5223d2b182157acfb7afe2575023a | [] | no_license | onikazu/Doppel | c63ade484dd4aaec31a6147a0355412532907324 | 4eef6867f6aa94fec6a4f25f535179055e5ef110 | refs/heads/master | 2020-04-12T13:45:54.053763 | 2018-12-20T05:30:29 | 2018-12-20T05:30:29 | 162,531,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | import cv2
cap = cv2.VideoCapture(0) # 引数はカメラのデバイス番号
while True:
ret, frame = cap.read()
print(frame.shape)
| [
"kazuki.masumura@adminnoMacBook-puro-8.local"
] | kazuki.masumura@adminnoMacBook-puro-8.local |
14e4c8929a0590efb9cd81847f91e95ae862b8a5 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_110/ch4_2020_10_07_12_11_33_920910.py | a8fd249a14f02121d81fa5213aecbdbb654e4af1 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | def classifica_idade(idade):
if idade <= 11:
print ("crianca")
elif 12 <= idade and idade<= 17:
print ("adolescente")
else:
print("adulto") | [
"you@example.com"
] | you@example.com |
6db3e27cddc408c3fa4ad706ac9ab210f5fe9b00 | eb05fd62ad7085dbe37e93db1beeb423ccbd1dbe | /5.10-shellsort.py | 5fcfad8fd3bc286627ada9406a048413391e4234 | [] | no_license | hechty/datastructure | cb552099f329fa7c2a500b24b62380d279cdc90f | 32adfe893b384e7a004fc045b9c6dbf1870ba7a0 | refs/heads/master | 2021-01-20T09:41:43.998692 | 2017-06-03T03:45:12 | 2017-06-03T03:45:12 | 90,276,738 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | #! /usr/bin/env python3
from time import clock
from random import randint
def insertion_sort(alist):
orded_list = alist[:1]
for i in range(len(alist)-1):
new_data = alist[i+1]
orded_list = insertion(new_data, orded_list)
alist = orded_list
def insertion(new_data, orded_list):
p... | [
"hchw1230@qq.com"
] | hchw1230@qq.com |
06f183d8e03559a241d25b8ab307285ffe3613c2 | 19b701d35c1f566ac4e1823708603889924c91cb | /routes.py | fcf6bc61692426954d14232f4c4a3bc3c19b004d | [] | no_license | peterdorsi/made-with-angular | dae89649c824f949a3eaf54991f38399612e684d | 96981448bd05868b097a83a219ce1261855ee010 | refs/heads/master | 2021-01-22T19:13:45.849537 | 2017-09-05T01:15:47 | 2017-09-05T01:15:47 | 102,416,384 | 0 | 0 | null | 2017-09-05T00:59:47 | 2017-09-05T00:59:47 | null | UTF-8 | Python | false | false | 5,746 | py | from flask import Flask, render_template, request, redirect
import requests
# import requests_toolbelt.adapters.appengine
import json
from flask_sslify import SSLify
app = Flask(__name__)
sslify = SSLify(app)
# Use the App Engine Requests adapter. This makes sure that Requests uses
# URLFetch.
# requests_toolbelt.ad... | [
"lpolepeddi@gmail.com"
] | lpolepeddi@gmail.com |
454a94a13985924e0e27c3014dde5c053e7d4662 | ff5c2c9f390da92e083eff64e4ea12483d6bf1e9 | /mit601/ch4_hanoi_tower.py | 919261f044905ee7f2dc7e53a40cedefc33ebbcb | [] | no_license | MI-7/python | 5942a713c7dea355ac6a39df87e129c33ca0e262 | df0f1fac9bd6af27a49086026e31595ee7b3926e | refs/heads/master | 2021-01-12T09:50:11.963456 | 2017-01-17T13:38:05 | 2017-01-17T13:38:05 | 76,270,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # towers of hanoi
steps = 0
# n levels of tower, from pole A to pole B, using pole C
def move(n, A, B, C):
if n == 1:
print "move 1 from ", A, " to ", B
global steps
steps+=1
else:
move(n-1, A, C, B)
# move(n, A, B, C)
print "move ", n , " from ", A, " to ", B
... | [
"leonchan@chenliangdeiMac-2.local"
] | leonchan@chenliangdeiMac-2.local |
5a73c4dea7915f11e4b8c87c2ccec2c0b32b93f2 | 9aa0a487f5ec98b752b079a4cc283223ac1d9299 | /src/pathbuild.py | 8c4076e2b7f9a2e7d4ba0bbfa3b8645255b0a56d | [] | no_license | subsetOfInsanity/tourent-plans | 8e8e5430f6ef1de04caf01ed8308ee321da6601e | 3014d794b09b1eb56a249e8e8fd812bea13d1080 | refs/heads/master | 2020-12-24T12:52:26.334462 | 2012-10-27T16:40:43 | 2012-10-27T16:40:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | #!/usr/bin/env python
# encoding: utf-8
"""
pathbuild.py
creates paths around various places (TSP)
uses google maps api for distance measurement and
point-to-point route creation
Created by Benjamin Fields on 2012-01-28.
Copyright (c) 2012 . All rights reserved.
"""
import sys
import os
import unittest
import urlli... | [
"me@benfields.net"
] | me@benfields.net |
a70a5b7c8d235f92204efb35d6b0f4c4767e6633 | 7d192e7a63ce7f4e294ea0f2b6639aecddcc7167 | /models.py | 023e9609e2a722a04f26f325b5d90ac180b33803 | [] | no_license | WaterCountry/BottleBlog | 2a48149301733354d686caaf3fb438783d45d87f | 2cf19a1d63045cd6972d35cabebb1cf00474a37d | refs/heads/master | 2020-05-26T06:12:46.695588 | 2019-06-05T14:34:14 | 2019-06-05T14:34:14 | 188,132,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,352 | py | from pony.orm import *
from datetime import date,datetime
db=Database('sqlite', filename="blog.sqlite", create_db=True)
class User(db.Entity):
name=Required(str)
nick=Required(str)
password=Required(str)
email=Required(str,unique=True)
regdate=Required(date)
blogs=Set("Blog")
photos=Set("... | [
"33112897@qq.com"
] | 33112897@qq.com |
bcfc8ca641c899996b681c98278808626a82b869 | fc4bd93298961d886f59ac8f75cfe713b127eaa4 | /prog10.py | 90f953415a309cef9a631d20337c6ec2eb742925 | [] | no_license | Kamaljeetsingh02/pythonProject1 | 39f13c2226a80c6bff6795288b40efb29a4bc86d | e9fd64350c436a99d134ccf1b02008f84cdf10d1 | refs/heads/master | 2023-07-28T21:40:04.943198 | 2021-09-20T06:20:55 | 2021-09-20T06:20:55 | 408,332,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # def sum(*sum):
# # return result
# # for x in num:
# # result += (x)
# # sum(1,2)
opt=int(input("plz enter 1 for add,2 for subtract,3 for multiply and 4 for divide"))
a=[]
b=int(input("please en no"))
a.append(int(b))
while b:
b = input("please en no")
if b:
a.append(int(b))
p... | [
"kamalrai98765@gmail.com"
] | kamalrai98765@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.