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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e9ab407ab62a078acf59f7b0df91d74002198a3b | 76800454958c36c26d828ee989f181990813955f | /tutorial/HungyiLee/rnn/preprocess.py | 327adbf18ae8258660063e2fe4c3dfa221fd5d67 | [] | no_license | JuneXia/proml | 374b27b1d1c2d983aae4fed3141a2864a7196a1b | fbe86564013e7556c30d98c702c1ba6251f21851 | refs/heads/master | 2022-12-27T23:38:16.838639 | 2020-10-11T10:05:32 | 2020-10-11T10:05:32 | 267,207,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,405 | py | # preprocess.py
# 這個 block 用來做 data 的預處理
import torch
from torch import nn
from gensim.models import Word2Vec
class Preprocess():
def __init__(self, sentences, sen_len, w2v_path="./w2v.model"):
self.w2v_path = w2v_path
self.sentences = sentences
self.sen_len = sen_len
self.idx2word ... | [
"junxstudio@sina.com"
] | junxstudio@sina.com |
c5383493a1f9677eb1111b85946e9ad9e14fe2b8 | fab14fae2b494068aa793901d76464afb965df7e | /benchmarks/f3_wrong_hints/scaling_nonlinear_software/10-19_35.py | 6ae8d393dc099f7aac05202aa5a431adcbaf9881 | [
"MIT"
] | permissive | teodorov/F3 | 673f6f9ccc25acdfdecbfc180f439253474ba250 | c863215c318d7d5f258eb9be38c6962cf6863b52 | refs/heads/master | 2023-08-04T17:37:38.771863 | 2021-09-16T07:38:28 | 2021-09-16T07:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,238 | py | from typing import FrozenSet, Tuple
import pysmt.typing as types
from pysmt.environment import Environment as PysmtEnv
from pysmt.fnode import FNode
from utils import symb_to_next
from hint import Hint, Location
def transition_system(env: PysmtEnv) -> Tuple[FrozenSet[FNode], FNode, FNode,
... | [
"en.magnago@gmail.com"
] | en.magnago@gmail.com |
6f0f34aa3e31abbdeaa527ee8fb27e3bbeb4413c | f895c34f33177c2e04b62e681306afad8a592f24 | /panelserverextension.py | d08de75978b2ccc3c701a60e1f9cc12bf538b71b | [] | no_license | MUSA-620-Spring-2019/final-project-lin-wang-yuan | 26b68ae81cbdeea931fa6376950d690c8f70cd6a | 7d25a1183dce2f14034ea77cc31a9590adf7a87c | refs/heads/master | 2020-05-22T07:22:02.430688 | 2019-05-14T04:13:29 | 2019-05-14T04:13:29 | 186,264,090 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from subprocess import Popen
def load_jupyter_server_extension(nbapp):
"""serve the final.ipynb directory with bokeh server"""
Popen(["panel", "serve", "final.ipynb", "--allow-websocket-origin=*"])
| [
"wzxuan@design.upenn.edu"
] | wzxuan@design.upenn.edu |
19d8702f27201b881c7c37deb7143f02c71d576b | 14d8875790599d32e19a31584b74468e95a0bd20 | /sac/replay_buffers/__init__.py | e1a42d7a4a60fbf5158923be9be1c97fc4baa754 | [
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | maridia/sac | 1b48c4e9815d6fe08024b7b0f4f22e2e0f3010ba | 8258e33633c7e37833cc39315891e77adfbe14b2 | refs/heads/master | 2021-02-26T23:16:33.383093 | 2018-12-21T11:23:02 | 2018-12-21T11:23:02 | 245,558,400 | 1 | 0 | NOASSERTION | 2020-03-07T03:04:07 | 2020-03-07T03:04:06 | null | UTF-8 | Python | false | false | 52 | py | from .simple_replay_buffer import SimpleReplayBuffer | [
"haarnoja@berkeley.edu"
] | haarnoja@berkeley.edu |
a49d02e632c44efcef0f8bdc5e1b7ac6b41e7f33 | 52b828d0233656686daafa39545b8ed09078b1e0 | /modesclient.py | ed27ea9990fac387558217608965599bab080d5e | [] | no_license | tpainter/compare1090 | 8054dafe377dc01ab2ec532f04853d4d7ba86af4 | 253850a3c552ceeaf4368f05dcfe4b602accaa2e | refs/heads/master | 2020-04-06T04:47:55.012865 | 2015-07-12T21:14:41 | 2015-07-12T21:14:41 | 36,904,902 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,229 | py | from twisted.internet import reactor
from history import receiveData
import math
#TODO Need to properly run through all of received data for multiple messages.
def parseBeastMessage(name, msg):
#For reference: http://wiki.modesbeast.com/Mode-S_Beast:Data_Output_Formats :
#<esc> "1" : 6 byte MLAT, 1 b... | [
"travis.painter@gmail.com"
] | travis.painter@gmail.com |
61fb07e10cf5a1cecae06ab6ffa88739ee8c460e | b389b7f2f38f370cfc8cb92d49fe7d8a4f76c767 | /venv/lib/python2.7/sre.py | 556d294535ed7ffa77f94be23b20cd2009094211 | [] | no_license | medision/dtwa_bbgky_fermions | 3cba385124e1a1ca7941f82ab00fa3ec025db788 | 75454ce5f94a43ec9a82181c89126dea370060bd | refs/heads/main | 2023-03-18T23:30:42.647050 | 2020-12-08T10:36:22 | 2020-12-08T10:36:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | /run/host/usr/lib/python2.7/sre.py | [
"hariseldon99"
] | hariseldon99 |
a2bca6b635915f6963f09d2abd3b9b7c83003ac6 | 75f070c899094e65d4af14fab4ab79fcfb08e17f | /txtcrawler/txtcrawler/items.py | 1f472bd3f9d5714e6838bfcb8aa7852201e3a9dd | [] | no_license | fx0883/python | fa1a4a66c5f8ae3c33b3422cd369a85133e49a69 | 66cebe0e986265c6d7e21ee090a892bcec937d8e | refs/heads/master | 2020-03-22T06:45:21.369928 | 2019-04-01T02:24:31 | 2019-04-01T02:24:31 | 139,655,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
from scrapy import Item, Field
class BookItem(Item):
id = Field()
title = Field()
author = Field()
type = Field()
description = Field()
url = ... | [
"fx0883@qq.com"
] | fx0883@qq.com |
9649970d62f951be36ba3cde0f8017e23aa5c6c1 | 7db6c1865cf9102808824ff06cda747b6e572a21 | /Python/Test/Locust/Test/wsh_loadtest.py | 53219d5e5215e6e3cee8591f2b5756445323a944 | [] | no_license | hyteer/testing | 1f6cabc1d2b67faa4533e6ad7eb5be8c13d542c9 | 1d8b47b3bbb2daf00e4f15b5d18e86111ea4e113 | refs/heads/master | 2020-05-21T16:19:08.243676 | 2017-01-03T01:25:17 | 2017-01-03T01:25:17 | 60,914,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | from locust import HttpLocust, TaskSet, task
import json
counter = 0
class UserBehavior(TaskSet):
#global counter
def on_start(self):
""" on_start is called when a Locust start before any task is scheduled """
self.login()
def login(self):
res = self.client.post("/login/login-ajax... | [
"hyteer@qq.com"
] | hyteer@qq.com |
b93c406e8051835fb7d299ccdc6e57d5b526fe64 | 2b5f4528071440b3a539b041d82b66d11b329bda | /accounts/migrations/0003_user_owner.py | 4b2eb5878202fec0e349d455dca0f740d76c22be | [] | no_license | Alighier/Mobile_app | 3d2033ca40d260b068fee23949de6aca528e6662 | 8ed6fd73199dd3cf69a590e0df490790039a32d3 | refs/heads/master | 2022-09-26T04:55:18.326036 | 2020-06-04T05:33:25 | 2020-06-04T05:33:25 | 268,996,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.25 on 2019-11-18 17:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_user_prouser'),
]
operations = [
migrations.AddField(
... | [
"noreply@github.com"
] | Alighier.noreply@github.com |
aaef040f57542efbf767c69d734449770a943986 | 8cdc63b549f5a7f1aca7b476a5a918e5c05e38c5 | /app/adm/tests/test_view_permission.py | ff2d71f4af8b26e48e27a3ff79c8e1c2b6854ac7 | [
"MIT"
] | permissive | rogeriopaulos/gep | 984e3bcd8bd4569031577e1d28a8c47c6aace91f | e56fd0450bdb8f572e2e35cc59a74ab0f0b372e2 | refs/heads/main | 2023-08-14T08:41:19.558899 | 2021-09-15T02:51:46 | 2021-09-15T02:51:46 | 402,270,601 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,575 | py |
from account.tests.factories import ProfileFactory
from adm.tests.factories import AdministrativoFactory
from adm.tests.utils import SetUpTestViewAtoData
from core.permissions import GRUPO_ADMINISTRATIVO
from django.contrib.auth.models import Group
from django.test import TestCase
from django.urls import reverse
from ... | [
"rogeriopaulos@gmail.com"
] | rogeriopaulos@gmail.com |
5f903c3ea2e8f69148704c4c8fcf9269fefec101 | 370bc81221cc62d805a9c30440729defee1cb014 | /typeform_feedback/decorators.py | 2e4274439ad0e9b019d749e9406e6d6d6d0c99be | [
"MIT"
] | permissive | exolever/django-typeform-feedback | a4883986bfbaa18b25aa3722b6380e66f70abdc7 | 5784523b880e4890172b9f61d848187f5c24237e | refs/heads/master | 2020-04-30T15:58:39.576503 | 2019-12-13T08:17:08 | 2019-12-13T08:17:08 | 176,935,243 | 0 | 0 | MIT | 2019-12-13T08:17:09 | 2019-03-21T11:57:23 | Python | UTF-8 | Python | false | false | 558 | py | from functools import wraps
import logging
from django.http import HttpResponse
from .helpers import _ensure_request
logger = logging.getLogger('typeform')
def ensure_request(view_func):
"""
Decorator that ensure request from typeform.
"""
@wraps(view_func)
def _wrapped_view_func(request, *args... | [
"javier.sujar@gmail.com"
] | javier.sujar@gmail.com |
229f2f1c895fae3aeb107eb6d9c4e1b041a9ce02 | 8584bf1700a5eec3630b8f164117c40658bd417e | /plivo/apis/urls.py | 58430c33c067fa5faa1a10ff068d1f051dc9525c | [] | no_license | afaq-alam/plivo-repo-assign | c0be6de9a471f310e8757cfad87169443cf0c378 | bdc4b33b24c70d70047e0c13e7c875ba1a016cbd | refs/heads/master | 2020-03-22T01:59:42.786700 | 2018-07-01T16:32:47 | 2018-07-01T16:32:47 | 139,343,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^inbound/sms/$', views.inbound),
url(r'^outbound/sms/$', views.outbound),
]
| [
"ubuntu@ip-172-31-16-77.us-west-2.compute.internal"
] | ubuntu@ip-172-31-16-77.us-west-2.compute.internal |
17c928e3cafbcf5f45ca353e1f379ba1e9e04da5 | 01c3ff1d74e754e0d4ce0fb7f8a8b329ec3766e1 | /python_exercises/19others/fun4.py | 6f9ac6e1fda53a3f6312dd5622e67ea3388ae8c9 | [] | no_license | vineel2014/Pythonfiles | 5ad0a2b824b5fd18289d21aa8306099aea22c202 | 0d653cb9659fe750cf676a70035ab67176179905 | refs/heads/master | 2020-04-28T03:56:22.713558 | 2019-03-11T08:38:54 | 2019-03-11T08:38:54 | 123,681,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | def product(numbers):
sum_so_far=1
for number in numbers:
sum_so_far*=number
return sum_so_far
print(product([1,2,3]))
print(product([7,-4,1,6,0]))
print(product([]))
| [
"vineel2006@gmail.com"
] | vineel2006@gmail.com |
c1eb40d58f93dda4f77e098fae3b395b3913f435 | f98d0346bde9238d509991866d7ce6a742cf56e7 | /setup.py | 945994c548f33195ad21ce70b87e47b09dfb44eb | [] | no_license | oalfonso-o/reconciliation | 339ceb2eaf889e7461eacb8150b825b897933d9e | 90613cf7869ef42e37147fd7319d56c18c508493 | refs/heads/master | 2020-05-24T23:43:48.304141 | 2019-05-25T01:27:58 | 2019-05-25T01:27:58 | 187,519,713 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | from setuptools import setup
from setuptools import find_packages
__version__ = '0.0.1'
setup(
name='oalfonso-reconciliation',
version=__version__,
long_description='Importing and reconciling from CSV + API View',
packages=find_packages(),
include_package_data=True,
install_requires=[
... | [
"oriolalfonso@calidae.com"
] | oriolalfonso@calidae.com |
273f367f664f0e97ceb58ca442bc1b953f8b7d5e | 60befb106bf9d29c8f2564b355b180078cfe5402 | /Lab 8/multipart - 3.py | 803ca7612c3f9e51656523cd044dafcf8ff3e0b2 | [] | no_license | nasrin-nahar/Python-Programming-in-GIS-Labs | a56dd872775daffad3843e9a35ab14fe853df82c | 5948c82fd0be2269196b6c0165fcfaad05ba7b16 | refs/heads/main | 2023-02-05T02:26:50.678924 | 2020-12-18T04:14:44 | 2020-12-18T04:14:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | #Name: Nasrin Nahar
#Date: 10.21.20
#This code prints prints the part number, followed by pairs of x,y coordinates of the vertices of Hawaii feature class
import arcpy
from arcpy import env
env.workspace = "D:\BU Masters\Fall 2020\Programming in GIS\Programming in GIS Lab data\Programming in GIS Lab data\Exercise08"
fc... | [
"76158393+nasrin-nahar@users.noreply.github.com"
] | 76158393+nasrin-nahar@users.noreply.github.com |
7e01cd1e5d23c227a33f05ee6f72fa1473f25a89 | 4a9f1eb970b8bba9639cf19d2bbd46d81e9cf128 | /getHousePriceData/filer.py | 7ac55999dbc0eee0072aa9f07b4f662757e2d019 | [
"MIT"
] | permissive | neptune1997/HousePriceAnalysis | c863146308308497f8c8524ce4d8bf7cff780d03 | 0ac5fc892dac0cc09d46cafa68834edfe2fbc58c | refs/heads/master | 2021-09-13T00:55:12.074683 | 2018-04-23T13:37:00 | 2018-04-23T13:37:00 | 116,219,407 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,002 | py | #conding:utf-8
#!usr/bin/python3
import re
import sqlite3
cities = ['dl','bj','cd','cq','cs','gz','hz','jn','nj','qd','sz','wh','xm','xa','zz','km','sy','hui','hf','ty']##
Chinesename=['大连','北京','成都','重庆','长沙','广州','杭州','济南','南京','青岛','深圳','武汉','厦门','西安','郑州','昆明','沈阳','惠州','合肥','太原']
def processdata(file,cur):
text =... | [
"18340852925@163.com"
] | 18340852925@163.com |
68405a06c4eccbbe48e38775fb9e720e1b5db42d | 2d3bdc32bfa245d4aaf5ddebcb006ef84e754a42 | /pbpstats/data_loader/stats_nba/summary/web.py | 5248ae88f7ef7ceef153112a13323e199a4c080f | [
"MIT"
] | permissive | dblackrun/pbpstats | b29872de13fe81ffab9bd5f08403339a20c90d88 | 38d5d75be50a478dbe718700c880e48020ffa123 | refs/heads/main | 2023-03-01T17:13:29.102549 | 2023-02-09T19:26:04 | 2023-02-09T19:26:04 | 215,173,748 | 73 | 18 | MIT | 2023-06-08T05:27:08 | 2019-10-15T00:56:56 | Python | UTF-8 | Python | false | false | 1,545 | py | import json
import os
from pbpstats import G_LEAGUE_STRING, NBA_STRING
from pbpstats.data_loader.stats_nba.web_loader import StatsNbaWebLoader
class StatsNbaSummaryWebLoader(StatsNbaWebLoader):
"""
A ``StatsNbaSummaryWebLoader`` object should be instantiated and passed into ``StatsNbaSummaryLoader`` when loa... | [
"darryl.blackport@gmail.com"
] | darryl.blackport@gmail.com |
c28c8112bad289cf4ef730cc6135669764c0b111 | 7e3e1c15ba9c249eb25fa6851c7fd98dcab25f48 | /setup.py | b8ae7b605651176ffa947957d1f780ff6b4f446f | [] | no_license | mattjmorrison/SimplePythonExtensionExample | 49603d980b38ec36826c4fcff1250c2780736462 | 7a58fbf1a5aa2d616bec47dbe24a1ffe77953352 | refs/heads/master | 2021-01-13T01:31:21.266489 | 2011-06-19T01:21:20 | 2011-06-19T01:21:20 | 1,917,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from distutils.core import setup, Extension
module1 = Extension('spam', sources=['spammodule.c'])
setup(name='PackageName',
version='1.0',
description='This is a demo package',
ext_modules=[module1]) | [
"matthewmorrison@matthew-morrisons-macbook.local"
] | matthewmorrison@matthew-morrisons-macbook.local |
839fceccecbbd4b46b6c93de655ca6dc94e9bf89 | 3935927379f7f06a3aaeffef3e32c6261e93a4f4 | /CNN_variant2/retrain.py | 40b1a989ed855979d1f07a37d15baf02102621d4 | [] | no_license | Tanmoy-Bipro/BSL-alphabet-recognition | 7be07a45149bb07d0666c7d847720cb50d6cbc33 | 7c7717e1a8f7f274d0db0fead6ef269f8cc017dc | refs/heads/master | 2020-09-27T07:48:37.705809 | 2019-12-27T15:14:20 | 2019-12-27T15:14:20 | 226,467,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,860 | py |
# pylint: disable=line-too-long
r"""Simple transfer learning with image modules
This example shows how to train an image classifier based on any
TensorFlow Hub module that computes image feature vectors. By default,
it uses the feature vectors computed by Inception V3 trained on ImageNet.
See https://github.com/ten... | [
"noreply@github.com"
] | Tanmoy-Bipro.noreply@github.com |
8f7c3ea6181d63f315d52637d0325555d2fff827 | d5006c3b2b104c01458e0593a2754f10642e8b1a | /pd-diplom/orders/backend/admin.py | 3f0377db971d377694b32533d6395042d25762e2 | [] | no_license | johnny-Azimov/Python-developer-profession_Diplom | 786c02431e21acea24cb85a5bac03a98df4be515 | 5571dd4f5c7a0be1845acd9eceabc9d335a577f6 | refs/heads/master | 2022-12-16T13:33:10.712152 | 2020-09-16T05:45:32 | 2020-09-16T05:45:32 | 289,902,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,831 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.utils.translation import ugettext_lazy as _
from backend.models import User, Shop, Category, Product, ProductInfo, Parameter, ProductParameter, Order, OrderItem, \
Contact, ConfirmEmailToken
class ContactInline(admin.Tab... | [
"temikasus@gmail.com"
] | temikasus@gmail.com |
386bc309457cc278c4259e18c22af6263811a1f1 | 3fb586112254467f3b6857462f2979430bea36bc | /fsmPythonPatterns/stateMachine2/Condition.py | 50f059a7d60cca3d2a227521b5612d1e7baaede0 | [] | no_license | jaquinonesg/SMA_exp | 3c15199db9233711ab9663406032f54f4d6c0a9e | a491584a97e9a959df94c0397f60317423fcf84e | refs/heads/master | 2019-04-28T16:10:16.700345 | 2018-03-11T18:36:07 | 2018-03-11T18:36:07 | 94,044,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | #Condition function object for state Machine
class Condition:
def condition(self, input):
assert 0, "condition() not implemented" | [
"jaquinonesg@unal.edu.co"
] | jaquinonesg@unal.edu.co |
1913f94db48508d534a35b09a05eec732f312e5f | 2be43fdc9f328895b949c92ec4e7602fbbbf2ca3 | /tests/test_feeds.py | 20932f520aba76a42d6876c404625f2a4259e97f | [] | no_license | gjxlu/feedhq | 418a75ef68de759e7f85cf8b14f827b3fd5e5f27 | 3027b192e2c6f35ebb7f821c6d64e8eca49e4c44 | refs/heads/master | 2020-12-25T02:01:24.035251 | 2013-07-16T21:20:01 | 2013-07-16T21:36:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,214 | py | # -*- coding: utf-8 -*-
import feedparser
import json
from datetime import timedelta
from django.core.cache import cache
from django.core.urlresolvers import reverse
from django.utils import timezone
from django_push.subscriber.signals import updated
from django_webtest import WebTest
from httplib2 import Response
fr... | [
"buburno@gmail.com"
] | buburno@gmail.com |
d17446b7cbc5da35ed0702d79f7c66229e02e23d | c3f0e3d944da04ef25df7bc6dd2ffe6056690828 | /tugas2.py | 3ad0b79869a0bce8b552569b0a94d315d48ae4ab | [] | no_license | Yanda29/Tugas-Algo_Yanda-Puspita-Sari | 20530a534f1bb1f56ef4301bf4b0d027839fc812 | 4bdeba0fe83151d838360ebdf5da7f098c70f2aa | refs/heads/main | 2023-08-19T06:10:46.584330 | 2021-10-15T16:06:26 | 2021-10-15T16:06:26 | 414,557,149 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | aku=1500
while aku ==1500:
import sys
elo= {"jb","lw","lw"}
print("jb-Jabodetabek\ndw-Pulau Jawa\nlw-Luar Jawa")
destinasi= input("Tujuan Barang(q-quit)= ")
if destinasi=="q":
sys.exit(0)
if destinasi == "jb":
price= 10000
elif destinasi == "... | [
"noreply@github.com"
] | Yanda29.noreply@github.com |
9c274e38721462ba65c0451562ea56ea312a53be | a062f6c85a9314ff991628d9271607db6ea1a122 | /src/hiding_adversarial_attacks/train_classifier.py | 549a981f955f4782f4dded45aef3ce526603153d | [
"MIT"
] | permissive | inovex/hiding-adversarial-attacks | aedca82a718bd15a6a14ef4f29a46e515a6432ff | 539b3ed76f97c121c4a5848fd1195c36d25833ef | refs/heads/master | 2023-08-23T19:57:54.522607 | 2021-05-17T08:56:54 | 2021-05-17T08:56:54 | 350,724,383 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,212 | py | import logging
import os
import hydra
from omegaconf import OmegaConf
from pytorch_lightning import Trainer
from pytorch_lightning.loggers import NeptuneLogger
from torchvision.transforms import transforms
from hiding_adversarial_attacks._neptune.utils import get_neptune_logger
from hiding_adversarial_attacks.callbac... | [
"s.stoppel@gmx.de"
] | s.stoppel@gmx.de |
d4d95744592b24613ab6bfde2b48befb4f83d4c9 | 2e6309c8f2126a6196adf9288c31162e6a949c1d | /backend/djabgoBlog-master/blog/subscribe/forms.py | 90898d74a085347109f8f89fa6ee3117df4562b4 | [] | no_license | triest/codeExample2 | 7ff87908caed3c4f58ff1609187a5af78ce11663 | 6d8a20fdd710d1560a3dbc2dfb4455fcc4d862b1 | refs/heads/master | 2020-04-02T03:12:21.027401 | 2018-10-21T11:22:14 | 2018-10-21T11:22:14 | 153,951,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from inspect import getmembers
from pprint import pprint
from django.forms import modelform_factory
from django import forms
from django.contrib.auth.models import User;
from . import models
#from blog.articles.models import S... | [
"you@example.com"
] | you@example.com |
d48659bb33626e99fbc50a883c7522f761f29b37 | f56d473881b83425cd875474ddbadca0215b89df | /demo/charts.py | 74c739e30ef0c4abe2b6afe0e81b1ad4ae4f56d7 | [] | no_license | kevindudeja/Space-VT_gsoc18 | fbbb518b1126e718e2c86e1855f91fcf4837d87e | 771a12ca852d77bf6c2fb01fd374c76f9cec0da5 | refs/heads/master | 2020-03-06T14:43:00.186345 | 2018-03-27T08:05:06 | 2018-03-27T08:05:06 | 126,940,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | import pygal
from .models import dst_2013
class decLineChart():
def __init__(self, **kwargs):
self.chart = pygal.Line(**kwargs)
self.chart.title = 'DST INDEX OF DECEMBER 2013'
def get_data(self):
dataInt = []
d = dst_2013.objects.get(pk=1)
comma = ","
seq = (d.d1,d.d2,d.d3,d.d4,d.d5,d.d6... | [
"noreply@github.com"
] | kevindudeja.noreply@github.com |
884b687ae12296554a2ae41f29b26bf4382a86c2 | e2230f57dd5bb508b5c0f7bf4df6af8ae7b36f83 | /sympycore/matrices/__init__.py | 95ab7a348b3211d44be60bb7007659916c36a1b0 | [
"Apache-2.0"
] | permissive | wenyifdu/pymaclab | 2fd40192d9dff4fda488f3f9a61e584c1adafd49 | e5100ad4201bdf59c01dd600ac7e8865664075c3 | refs/heads/master | 2021-09-16T11:16:00.680933 | 2018-06-20T07:29:29 | 2018-06-20T07:29:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | """ Provides matrix support.
"""
__docformat__ = "restructuredtext"
from .algebra import Matrix, MatrixBase
from .functions import eye, concatenate, jacobian
from .polyhedra import Polyhedron
| [
"emscheffel@gmail.com"
] | emscheffel@gmail.com |
9871aa8cf7cea05f91771fb8f993e9ec542cad76 | 4c248b4ebb33cd1a9c9049bc73c4fcaad83787a4 | /final_proj_tests.py | ffa705b75c2d0d62ebf70e6f42f956516f3af6d0 | [] | no_license | vgcox/HarvardArtVisuals | 146faa8a540f8d0e999ac8f5a0f97e79d5ef2dd8 | 512eeddafbcbe05bfa54c1533635188be64efbdc | refs/heads/master | 2020-04-09T20:53:19.413265 | 2019-01-07T21:44:50 | 2019-01-07T21:44:50 | 160,587,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,314 | py | import unittest
from final_proj import *
class TestDatabase(unittest.TestCase):
def test_cultures_table(self):
conn = sqlite3.connect(DBNAME)
cur = conn.cursor()
sql1 = 'SELECT Name FROM Cultures'
results1 = cur.execute(sql1)
results1_list = cur.fetchall()
self.ass... | [
"vgcox@umich.edu"
] | vgcox@umich.edu |
4736d3d27f335021cd1e03e673a1959e4f328c21 | 693f4f147fdde00b2d728318332a8d4e0748b91f | /ch9/restaurant.py | cd9e8a5f223d210f370ecccafe86f188ddcebbf9 | [] | no_license | kbcmdba/pcc | 792f426ac096798971ba45d67359d46599cae54d | 4008703ada445fc9c8944ce83740fc65573bdbce | refs/heads/master | 2022-02-07T23:07:23.717442 | 2019-08-11T22:05:37 | 2019-08-11T22:05:37 | 198,295,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py |
class Restaurant():
"""A simple restaurant model"""
def __init__(self, restaurant_name, cuisine_type):
"""Initialize restaurant_name and cuisine_type attributes"""
self.restaurant_name = restaurant_name
self.cuisine_type = cuisine_type
self.number_served = 0
def describe... | [
"kbenton@activecampaign.com"
] | kbenton@activecampaign.com |
5858d254c64f170a7aa2c7f8983b0b8e80ff27de | 3a3943aedcf75ca16d55367e2bdde6d1fbd090aa | /rucio_opint_backend/apps/users/serializers.py | 6fcfadeec8a73ca889920dc55f8f4004f296e630 | [] | no_license | operationalintelligence/rucio-opint-backend | b0907af3c2978e9254ee267e481c75528ae6b0f7 | b4b26b80b950cb4a2c21a6855c9cd1e431a03e5c | refs/heads/master | 2020-06-18T17:42:00.737987 | 2019-11-28T09:50:49 | 2019-11-28T09:50:49 | 196,385,827 | 1 | 5 | null | 2019-11-21T15:02:36 | 2019-07-11T12:00:15 | Python | UTF-8 | Python | false | false | 1,064 | py | from rest_framework import serializers
from rest_framework_jwt.settings import api_settings
from django.contrib.auth.models import User
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('username',)
# Signup class
class UserSerializerWithToken(serializers.Mod... | [
"panos.paparrigopoulos@cern.ch"
] | panos.paparrigopoulos@cern.ch |
0917731883652024c9415f8c9f5afa6867666808 | cd9f32701a924508dc9a8e31d6a5efe4027aa8a2 | /iterator/dinermergeri.py | 7fdddfc021ad325488cd39c283e3d50c081d12ed | [] | no_license | somedayiamold/head-first-design-patterns | 9641bfd67aec056a622b206f2a527016a68b40cb | f92977c579d73f3142c3df2fdee878b21f97f383 | refs/heads/main | 2023-08-10T15:33:34.706546 | 2021-10-14T12:56:41 | 2021-10-14T12:56:41 | 396,800,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,340 | py | from abc import ABCMeta, abstractmethod
from collections.abc import Iterable
from typing import List
class MenuItem:
def __init__(self, name: str, description: str, vegetarian: bool, price: float) -> None:
self.name: str = name
self.description: str = description
self.vegetarian: bool = ve... | [
"luoyou.louis@bytedance.com"
] | luoyou.louis@bytedance.com |
854d50100ce45aef6d69f163a46a0fc3b8619b8c | b65d3777372d25402f11814288d992e6cb29c0a5 | /tools/Ui_couput.py | 986eea054ca7ed3f9226970215929d3410e40c05 | [] | no_license | JoeChen999/tools | 082ee56982650b0fee9e26aea9baa7c762a0ceed | 090215568c41beabd6f1fa6b2d0cf253a29ba913 | refs/heads/master | 2020-05-25T14:58:51.564658 | 2016-09-22T06:31:30 | 2016-09-22T06:31:30 | 68,891,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/Users/chenbiao/Documents/workspaces/tools/couput.ui'
#
# Created: Thu Sep 5 15:37:23 2013
# by: PyQt4 UI code generator 4.10.2
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUt... | [
"chenbiao@elex-tech.com"
] | chenbiao@elex-tech.com |
ae6c6bcd4da1dee8307b6e621fefff0fb6a85b8e | 2e7a725a6efc15e2110112058c2ade07cb9e94a7 | /Python_Practise_Files/Basics/function_one.py | 32779928c49e86f2b54971da8a70cb007065d97e | [] | no_license | PalRanvir/Python_Project_2019 | 17781b909f20dbc5b0f46b195e179f81331512b6 | 4ad74070518226479060dbbde3fc6b502edbdb19 | refs/heads/master | 2020-09-02T15:30:06.228606 | 2019-11-03T05:24:25 | 2019-11-03T05:24:25 | 219,249,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | # functions and methods are more or less the same thing
# def Ranvir():
# "function docString"
# print("I want to learn Python")
# print("I am doing it")
# return
#Ranvir()
def greetings(name):
print("Hello", name)
return
userName = input("Enter your name:")
greetings(userName) | [
"ranvirece09@gmail.com"
] | ranvirece09@gmail.com |
17234e1c5a76db7c9f9cfca2240823228ceeac65 | a6a1caa94878b145b9be3f8a704889470b73635d | /03_data_processing/all_mixed.py | ce25892f4640a02a1c6640768a138bb9e68d6cba | [] | no_license | JPeer264/datamining | a5c1d65158eaa539a1496e02da347141a85006d9 | 8db728b49dcd1c9d9275f63c8ca156bb755d2f6c | refs/heads/master | 2021-05-05T12:42:15.768178 | 2018-01-21T18:42:05 | 2018-01-21T18:42:05 | 118,258,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,203 | py | from glob import glob
import csv
import numpy as np
from sklearn.preprocessing import normalize
import json
import os
import os.path
import scipy.sparse
from Artist import Artist
from Tracks import Tracks
class Process:
def __init__(self):
self.DATA = './data/'
self.USERS_TOP_TRACKS = self.DATA +... | [
"jan.oster94@gmail.com"
] | jan.oster94@gmail.com |
b932061bc8c381fca98759b6a5ad097bb59a5183 | 965c9640d32435142da2dce9de9a8203920909e8 | /titanic_stuff/np.array_to_sklearn_db.py | a25f97969aa4b0bb7e85d1705a547a9b0fc83481 | [] | no_license | mmenhart/DataMining | c2581614db0bdc1ab78ff6133e978d0017eeb49e | 30646126bb3435bb0cacaddbc924bb5cae2b745f | refs/heads/master | 2020-03-09T12:42:01.833509 | 2018-05-17T18:42:37 | 2018-05-17T18:42:37 | 128,792,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | ###############
# practice to make a sklearn database
import sklearn.datasets
skdb = sklearn.datasets.base.Bunch(data=X_train, target=y_train)
# this allows you to name your data for easier visualization
skdb.target_names = np.array(['Died', 'Survived'])
skdb.feature_names = np.array(['Pclass', 'Sex', 'Embarked'])
... | [
"noreply@github.com"
] | mmenhart.noreply@github.com |
e8af84177d49e47d7a86e89827b256e8fda8f1e3 | 13a6ec7f301bf5f0239ad46256f17252ad74fd07 | /lambda/GetTodo.py | 79de54e9dd77db051c2241359ffe304fcee7223e | [
"MIT"
] | permissive | Attersson/todoMvcFrontend | e78f0cd46ce252035ef2433c0b3300d5ba4684b2 | 1eb24d9d5ace2eb091ada29405913ac43ca549e4 | refs/heads/master | 2022-04-09T12:23:53.618704 | 2020-03-05T02:25:17 | 2020-03-05T02:25:17 | 245,033,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | import json
import boto3
import logging
dynamodb = boto3.client('dynamodb')
logger = logging.getLogger()
logger.setLevel(logging.INFO)
def get_todo(id):
try:
res = dynamodb.get_item(
TableName='todos',
Key={'id': {
'N': str(id),
}},
AttributesToGet=['id', 'descriptio... | [
"ermanno@attardo.it"
] | ermanno@attardo.it |
7dcfbef1b95e0347eb5f74d6d3e1a7a16e80092f | 1d73d1f72b518b438345d33f0bce02fe36f02ba1 | /src/rotest/management/migrations/0017_auto_20181202_0752.py | 4c944e8020bf17869c7fd9f18b6b9c4a078909f7 | [
"MIT"
] | permissive | gregoil/rotest | 48eb7666bb170688b689c07ad37a2de3a89a8223 | c443bc1b99e02f047adfcab9943966f0023f652c | refs/heads/master | 2023-01-10T17:50:06.554799 | 2020-09-17T08:43:18 | 2020-09-17T08:43:18 | 94,022,519 | 26 | 11 | MIT | 2022-12-27T15:37:58 | 2017-06-11T18:03:06 | Python | UTF-8 | Python | false | false | 434 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('management', '0016_demoresourcedata_validation_result'),
]
operations = [
migrations.AlterField(
model_name='dem... | [
"elkissdan@gmail.com"
] | elkissdan@gmail.com |
8fc2feeb2b72bca17fa97a0fcc5a647a1191e5ac | b99093398c4e44b9f7232647f3897b74f7110cae | /ga1_draft.py | 2ebacbec29ed091828a42a2c54266494d3c33759 | [
"BSD-2-Clause"
] | permissive | mp-interns/eratosthenes | 7d5e51c407c870f23642b8d273a6f6a01211a9bf | e4a7597d658140cd2d943ff1186214c640ba2355 | refs/heads/master | 2016-09-06T12:16:57.697187 | 2015-08-10T22:13:05 | 2015-08-10T22:13:05 | 37,886,098 | 0 | 2 | null | 2015-08-10T19:57:05 | 2015-06-22T23:32:53 | Python | UTF-8 | Python | false | false | 1,105 | py | from __future__ import division
import numpy as np
import matplotlib.pyplot as plt
from pymatgen import MPRester
# import/truncate raw data (volume, density, energies, etc)
m = MPRester("ID")
data = m.query(criteria={"elasticity": {"$exists": True}},
properties=["pretty_formula", "volume... | [
"henrygeerlings@gmail.com"
] | henrygeerlings@gmail.com |
0c6d995cbd523c31f3c9518b70319974afb09481 | 8c2a5ee34dd6dc08144a8ae45b4ef206e8873b4d | /bst.py | d0c513a401bba9b0c8a50b103d3d05726fa03740 | [
"MIT"
] | permissive | ultranaut/pystructs | 205ccdb1f59ef773a7b5bbecb8b14865cef1c1c3 | f8b46a9dc0265005b1bb32a62fe17585234e2b7a | refs/heads/master | 2021-01-13T02:09:06.121723 | 2015-02-06T03:26:11 | 2015-02-06T03:26:11 | 24,217,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,955 | py | #!/usr/bin/env python
"""Implements a binary search tree."""
class Node:
"""A tree node."""
def __init__(self, key, data=None):
"""Creates a node item."""
self.key = key
self.data = data
self.parent = None
self.left = None
self.right = None
class BinarySearchTre... | [
"john@ultranaut.com"
] | john@ultranaut.com |
ef600745226bfef1ada150f835f834c33210968e | 08b09387a4b6a363234bb72468283d85be9f0b4d | /src/B01.py | 90fc10333c74c9e7aeecb6b5c8e0556cdaa10a2e | [] | no_license | raffizulvian/willi-wangky | e78118ba2121aad47b55195a92ed05d591e7bbde | 0e5f563fda3ff5722846df46dc2126b3ba228239 | refs/heads/master | 2022-10-04T02:06:28.050703 | 2020-06-06T15:34:12 | 2020-06-06T15:34:12 | 270,014,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | import hashlib
import uuid
# Menggunakan metode hashing SHA256 dengan memanfaatkan built-in module hashlib dan uuid
# Informasi didapatkan dari pythoncentral.io
# Fungsi untuk merubah password user dalam bentuk hash saat signup
def hash(password):
# Membuat susunan kata acak yang akan ditambahkan ke pas... | [
"noreply@github.com"
] | raffizulvian.noreply@github.com |
2a4dbacb6063ef13147e6f2af6e1592c83b90d5d | e3647e31172db5b7ee2aa6379cad8badc31ce390 | /tpc1/script.py | 9fdad1cc21ecec9c8e55ffa39d1addfad94f868e | [] | no_license | sir-onze/PRC | fbeb0a4fe7e83d47e208e1278acc9b48dea0b8fb | 0a23eea263c306385c8956a87437c20b45ac41f1 | refs/heads/master | 2023-01-13T13:35:28.418313 | 2020-05-18T16:31:58 | 2020-05-18T16:31:58 | 238,004,464 | 0 | 0 | null | 2023-01-05T20:23:08 | 2020-02-03T16:01:51 | CSS | UTF-8 | Python | false | false | 2,113 | py | import csv
with open('saladeaulainf.ttl', 'a') as new:
with open('alunos.csv', mode='r') as infile:
reader = csv.reader(infile)
header = next(reader)
for rows in reader:
new.write("<http://www.semanticweb.org/macz/ontologies/2020/salaAula#"+rows[0]+">"+" rdf:type owl:NamedIndividual ,"+"\... | [
"tiago96baptista@sapo.pt"
] | tiago96baptista@sapo.pt |
20c80bd801a815a348f93512423abbf0ad984c81 | 82228ee4e8941d67bb71020a2917706ba6962989 | /tests/utils/test_constants.py | aa54516e4bb5f8c500795b241090fda9839c7b05 | [
"MIT"
] | permissive | haoziyeung/puzzle | 2daccf618347e29980daf4ef7fd25ca431d86ca5 | 9476f05b416d3a5135d25492cb31411fdf831c58 | refs/heads/master | 2021-06-17T13:07:27.916154 | 2017-05-17T13:03:10 | 2017-05-17T13:03:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | from puzzle.utils.constants import HGNC_TO_OMIM, SEVERITY_DICT
def test_HGNC_TO_OMIM():
assert HGNC_TO_OMIM['CACNA1F'].get('mim_nr') == 300110
assert HGNC_TO_OMIM['ADK'].get('mim_nr') == 102750
def test_SEVERITY_DICT():
assert SEVERITY_DICT['transcript_ablation'] == 0
assert SEVERITY_DICT['start_lost'... | [
"robin.andeer@gmail.com"
] | robin.andeer@gmail.com |
ce3e2364895549fc66e40e75f4c087e18eb97c6f | 6c317276dd7f43f43b2df836e3705098ccdcd605 | /tutorials/translation/decoder.py | e05338bf4adcb4411fe0409ace043b9f6663cf9e | [] | no_license | dharakyu/Machine-Translation | 29304969248b245ba696f568029aec2bfc806386 | 721d27938426b28001c9d495d14e63fcb2cda8cb | refs/heads/master | 2022-11-06T11:04:49.376756 | 2020-06-27T00:00:32 | 2020-06-27T00:00:32 | 242,810,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,636 | py | import torch
import torch.nn as nn
from torch import optim
import torch.nn.functional as F
# need to read the attention decoder paper lol
class AttnDecoderRNN(nn.Module):
def __init__(self, hidden_size, output_size, dropout_p=0.1, max_length=MAX_LENGTH):
super(AttnDecoderRNN, self).__init__()
self.... | [
"dharakyu@stanford.edu"
] | dharakyu@stanford.edu |
eadedcde4df22859ad8c16691b3326f3f31295d1 | da11d4d8519c50527842620e485d1eee1acff258 | /train_utils/__init__.py | c7ab895582a383771b9a3d511d2bb51dd13a453f | [] | no_license | GF1447571253/faster-rcnn | 9c51fe9c4e0c582b6914aaed42859733396401a8 | 883a2d716d66e1de0b75421d5cf4457c2b970976 | refs/heads/master | 2023-06-06T22:06:02.860023 | 2021-06-30T13:17:20 | 2021-06-30T13:17:20 | 381,706,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | from .group_by_aspect_ratio import GroupedBatchSampler, create_aspect_ratio_groups
from .distributed_utils import init_distributed_mode, save_on_master, mkdir
from .coco_utils import get_coco_api_from_dataset
from .coco_eval import CocoEvaluator
# just a test for github | [
"1447571253@qq.com"
] | 1447571253@qq.com |
dca2cc77e0c137fade6eb25b22c08ee78ac064b3 | ba87af72c0d2532aa25ff6ff97659e36dfc8bc9f | /src/geometrics/three_sphere_intersection.py | 87de643db3c38c9a248f4725fbb96b47f3992364 | [
"Apache-2.0"
] | permissive | Idontker/OptiMates | bceb1315f921b768452d340ef224e0be5d5e0e9a | 80d2e43343e28b3a49f9b40c9e4c34853c83da34 | refs/heads/main | 2023-07-07T10:05:24.805643 | 2021-08-12T22:59:17 | 2021-08-12T22:59:17 | 360,880,976 | 0 | 0 | Apache-2.0 | 2021-08-08T10:28:50 | 2021-04-23T12:43:12 | Python | UTF-8 | Python | false | false | 9,552 | py | """
modified Code based on
https://github.com/vvhitedog/three_sphere_intersection
and
https://stackoverflow.com/a/1407395/177931
Implements an analytic solution based on what is documented in above answer.
"""
import numpy as np
def find_aequidist_points_on_sphere(p1, p2, r, deg: bool = True, R=1):
"""
... | [
"idontker@users.noreply.github.com"
] | idontker@users.noreply.github.com |
5267ef629b697a6f0f4684057928eb7df6bedada | 1c4de938e068c8967288ae06e15d1ea148d92ace | /Python_parallel/lu_mpi.py | 8701770bf65cd8e545e449987031ca7b2c78b8e4 | [
"MIT"
] | permissive | 610yilingliu/LU_Decomposition_MPIVersion | 3d5ddd578dc703ea830c35a421aab89d9ae614d2 | 0bd8af0e86b5fcc36970bea7bb045c129fdd2238 | refs/heads/master | 2023-01-07T22:25:57.883027 | 2020-10-16T08:28:27 | 2020-10-16T08:28:27 | 297,609,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | import mpy4py
import random
def generate(sz, rg, sl):
"""
:type int sz: size of square matrix(sz * sz)
:type int rg, int sl: range and scale of data. For example if the value field will be [-0.2, 0.2], than
rg = 2, sl = 10
:rtype: (matrix List[List[float]], vector List[float]), float in Python equa... | [
"yilingliu1994@gmail.com"
] | yilingliu1994@gmail.com |
15089b26ad691d83e34b107c54ee22b60a9232e2 | 169b3b1bcc3180f67caad264ca8ddf9101396630 | /2021-2-24-biology-co.py | a432b297c3a8240556453f93f7e47494e47c5064 | [] | no_license | linxiao-zhang/json_project | 0288f50798b0df3f1888a3d2e33c8f49cbf64200 | 9e4b041fdc2380d3334b8f9f8477df2c020fde81 | refs/heads/master | 2023-03-14T11:14:53.498145 | 2021-02-26T02:24:05 | 2021-02-26T02:24:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,484 | py | # 关键词词共现
# -*- coding: utf-8 -*-
"""
@File : text_library_mysql2mongo.py
@Author : Yuka
@Time : 2021/1/7 14:53
@Version : 1.0.0
@Description:
"""
import json
import xlsxwriter
import mysql.connector.pooling
import pymongo
def sort_dict_by_value(d, reverse=True):
return dict(sorted(d.items(), k... | [
"1456597572@qq.com"
] | 1456597572@qq.com |
d46adbab3887be0e56be8907bee2a62fada99cca | 60e4b3aa8b29cf4149476353593326795728605d | /save.py | 549ae6ed6c5a4d2700e0824727d96de24fe676cb | [] | no_license | matheusfsa/transformaTabela | 7942eacfcd78aa31a82793fe9995954c2cd0eb61 | f7342ba84adc66a785e1070f760dd718671ccd00 | refs/heads/master | 2020-03-23T18:45:32.367696 | 2018-07-27T13:27:48 | 2018-07-27T13:27:48 | 141,930,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,734 | py | from collections import defaultdict, Counter
import itertools
import math
import random
class BayesNet(object):
"Bayesian network: a graph of variables connected by parent links."
def __init__(self):
self.variables = [] # List of variables, in parent-first topological sort order
self.lookup ... | [
"tetofsa15@gmail.com"
] | tetofsa15@gmail.com |
aaa9f8b3175b1e0caf2ee5dc6ca621c06071ca79 | 6113f024b0a7d448a1e427cd43241baf1ad055b1 | /Python-4.py | 902d78c1191b241c5b4a6adea09497ae2d4c501c | [] | no_license | AishwaryaRaut18/python | f1db2e66f2e074c8ecf3317e44a9c2653d8af778 | d5c11a080091e930616e9ea22963d61a980b8492 | refs/heads/master | 2023-07-04T19:47:52.651211 | 2021-07-31T19:24:24 | 2021-07-31T19:24:24 | 391,445,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | cities=[]
location=[]
n=int(input("enter list size"))
for x in range(0, n):
c=str(input("enter city name"))
cities.append(c)
l=str(input("enter location"))
location.append(l)
zipped=zip(cities,location)
print(list(zipped))
| [
"aisssh1997@gmail.com"
] | aisssh1997@gmail.com |
575ec327e95c2629f45c3db7e8fda2d7be087d53 | 051a1d200a99419ba2c24942159caa0dae77989d | /Educational_Institute/courses/migrations/0003_auto_20210311_2010.py | 0766e5ef53fed4739b489a35bf597d1d206f84f0 | [] | no_license | Karnav611/Course-Management | b9ffa0471bbf3d28231c4d78f249b30228b12b52 | 11e7292ad4e6fb17921752fcbdeed95699ac4bdb | refs/heads/master | 2023-03-31T10:12:35.731462 | 2021-04-01T16:48:17 | 2021-04-01T16:48:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # Generated by Django 3.1.6 on 2021-03-11 14:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0002_learning_prerequisite_tag'),
]
operations = [
migrations.AlterField(
model_name='course',
name='leng... | [
"kairavgamit611@gmail.com"
] | kairavgamit611@gmail.com |
87e51d92d16a0d5ff47d81e28b47fcf0d8385a0a | 5d00040c9fe8310b50c0106bdaa48123fb28cbe3 | /Pattern/npattern.py | 244fbf56ddff4bd1d15be83c3046df14a7c329ec | [] | no_license | HarshPonia/Python_Programs | efe0ba728a5f4e0b9f9d188388137cbab00e3940 | 729546a5c92edd66a564931ad9e4d4d24f9ccfe7 | refs/heads/main | 2023-08-04T12:51:21.926261 | 2021-09-21T10:10:50 | 2021-09-21T10:10:50 | 408,770,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | n = int(input("Enter the number"))
for i in range(0,n):
for j in range(0,i+1):
if j == 0:
print("#",end = " ")
else:
print(" ", end = " ")
for j in range(i,n+1):
if j==n or j==i:
print("@", end = " ")
else:
print(" ", end =" ")
... | [
"harshponia9@gmail.com"
] | harshponia9@gmail.com |
fcee4b2c3bc47f16f234812549b50ed13cc6175d | 69f2bdb61b62a18ee54f586905ee86e32f0725f2 | /airflow/providers/amazon/aws/hooks/logs.py | 05e49f1f9f1816e36042d2144c34fb8744fcc213 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | itayB/airflow | 0b9b9285fb503bef108ebbeb2943d22bbeb3a557 | 30c3d023b37f351bcba7fc412fff191b072f9c6e | refs/heads/main | 2023-03-16T03:27:23.408685 | 2022-01-21T10:23:58 | 2022-01-21T10:23:58 | 251,654,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,614 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | itayB.noreply@github.com |
15103f4f50726d1fd97bafd2e4ff74185986cecf | c6ea767d0fe75b6cbd04854ff4b00521ec74aeb2 | /ControlScripts/modules/builder/_skeleton_.py | 2994d30601bc5de0786705b5fdd6c9ef0ed8db53 | [] | no_license | schaap/p2p-testframework | e21b4edfb3d5275d9d13c2fc1c8662e73ce04d2d | 221426f6120a4caa2b2d7e26d89cc487cb8673e2 | refs/heads/master | 2021-01-09T22:39:41.723916 | 2012-08-01T12:53:07 | 2012-08-01T12:53:07 | 2,649,857 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,263 | py | from core.builder import builder
# You can define anything you like in the scope of your own module: the only thing that will be imported from it
# is the actual object you're creating, which, incidentally, must be named equal to the module it is in. For example:
# suppose you copy this file to modules/builder/make.py... | [
"thomas@ch.tudelft.nl"
] | thomas@ch.tudelft.nl |
999644e397b32cffa2e52edc374bbe9efd5e6866 | bc8ebbdb5d67658387be1d65a9f00a927664ac1c | /backend/new_18912/settings.py | 6eaf60be047de7422162e25b7eda34eaa1b9676d | [] | no_license | crowdbotics-apps/new-18912 | 3b499157a967673dc12ad7e5c9ee4a7b8bfb9ddc | b9aa5b270bbc72718b98ccc68257ef17448359c9 | refs/heads/master | 2022-11-18T00:47:55.053181 | 2020-07-15T04:00:56 | 2020-07-15T04:00:56 | 279,758,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,722 | py | """
Django settings for new_18912 project.
Generated by 'django-admin startproject' using Django 1.11.16.
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... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
eb8db45b1a1e61e5b537a9c9931516551bae99e2 | cd59e776394e8b9588804dc4bf077fb941f3f145 | /api/migrations/0002_vacancy_company.py | e930752570a1954902561c5daf27b14c5ed8ea52 | [] | no_license | EldanaIbraimova/WebLab9 | bb545b0dcf5c998859c4663139e613c185127635 | 36b763d8e1c196c3d98191a47bb14dbef1434878 | refs/heads/master | 2021-05-21T17:15:58.310026 | 2020-04-03T12:54:06 | 2020-04-03T12:54:06 | 252,731,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | # Generated by Django 2.2 on 2020-04-03 10:37
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='vacancy',
na... | [
"khunsong888@gmail.com"
] | khunsong888@gmail.com |
a5f6742c12cf07e7da1ddb853b3d5d7941b009d4 | ba5c374ae48f9e2bdca0fbea0e6edd6c8f9f848c | /ai_src/Player/Resource.py | b5780ecf7af7a1edaf73d98b78b8420c0abaae7b | [] | no_license | arthurteisseire-epitech/PSU_zappy_2018 | b890bb5522c42224efd66ffbd1e69b6d513714db | c5d429ccd7f3ed1c9faf6dbf00e2c125a5452ebc | refs/heads/main | 2023-03-24T15:32:39.375950 | 2021-03-13T10:57:06 | 2021-03-13T10:57:06 | 347,320,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | from enum import Enum
class Resource(Enum):
FOOD = "food"
LINEMATE = "linemate"
DERAUMERE = "deraumere"
SIBUR = "sibur"
MENDIANE = "mendiane"
PHIRAS = "phiras"
THYSTAME = "thystame"
| [
"abel.vinuela-hamoudi@epitech.eu"
] | abel.vinuela-hamoudi@epitech.eu |
884f694a3ff927399cff34e14147b490cebff1e3 | c52aab6622b6a642e262d4ba6d1b20230036d9d1 | /office/summer/zone/plot.py | f7909bfd1b7c9b791a04fc99b725724ef4fbf1ea | [] | no_license | SenHuang19/ROM | 5602b0da3af121c0888c1848233f388c6f2a4327 | 8f1bd71dd8d61e1656a84e756ad640c2b856fb5a | refs/heads/master | 2021-06-25T11:28:39.939156 | 2018-06-21T04:52:46 | 2018-06-21T04:52:46 | 135,602,995 | 0 | 3 | null | 2019-05-22T22:35:25 | 2018-05-31T15:34:43 | Python | UTF-8 | Python | false | false | 887 | py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import math
import json
import math
def rmse(x,y):
sum=0
for i in range(len(x)):
sum=sum+(x.iloc[i]-y.iloc[i])*(x[i]-y[i])
return math.sqrt(sum/len(x))
filename='zone5'
tab2=pd.read_csv(filename+'validation_result.... | [
"wang759@pnnl.gov"
] | wang759@pnnl.gov |
987f92a7554c420a41bb61e75372a9b7d318c61d | a7ed4da896faab105ff08259a82ae822548d1c2c | /6/6_1.py | 7ed377a9d8fe394412cc185b039795c97bc0a055 | [] | no_license | nemesmarci/Advent-of-Code-2019 | e8e59d89be8ed43ce046fd7854b1c9b779a8930e | 251dc4dc62777a7c0daf7a74d832c0be3d75140e | refs/heads/master | 2021-12-31T10:53:35.924253 | 2019-12-27T17:17:06 | 2021-12-29T19:17:13 | 225,252,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | from space import read_data
objects = read_data()
root = objects['COM']
def traverse(current, level=1):
n = len(current.orbiters) * level
for child in current.orbiters:
n += traverse(child, level + 1)
return n
print(traverse(root))
| [
"nemes@sch.bme.hu"
] | nemes@sch.bme.hu |
55d046dd1d43409f967db43d069619a1b9a92d5f | d8b5aba2a1f53fbf3fcfc388c26e547afa76b13f | /modules/app_email/lib/delphi.py | d6e8461d29ca1decad1b18441f6a42b08596eed7 | [
"Apache-2.0"
] | permissive | dfrc-korea/carpe | e88b4e3bcb536355e2a64d00e807bccd631f8c93 | f9299b8ad0cb2a6bbbd5e65f01d2ba06406c70ac | refs/heads/master | 2023-04-28T01:12:49.138443 | 2023-04-18T07:37:39 | 2023-04-18T07:37:39 | 169,518,336 | 75 | 38 | Apache-2.0 | 2023-02-08T00:42:41 | 2019-02-07T04:21:23 | Python | UTF-8 | Python | false | false | 1,235 | py | #
# delphi.py, 200611
#
import os
import errno
def CreateDir(dir):
try:
if not os.path.isdir(dir):
os.makedirs(os.path.join(dir))
return True
except OSError as e:
if e.errno != errno.EEXIST: raise
return False
def DirectoryExists(dir):
return os.path.isdir(dir)
... | [
"jbc0729@gmail.com"
] | jbc0729@gmail.com |
4d2bd9a8cef8321d578738595e232f4f292f6873 | bf4e36be8829db33db7cb2a4122c7d22957d69a4 | /admiral/envs/predator_prey/predator_prey.py | 834d28c5a594f178d84497c8614c7fb1d7ce1afb | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | hybug/Admiral | fc4afe6c619a035a0c018ce03d2b013645f4d99c | 1635ea773fa2c1f96d82aaf58b232c42cf3f5626 | refs/heads/main | 2023-02-10T23:54:36.609831 | 2020-12-14T23:42:55 | 2020-12-14T23:42:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,264 | py |
from abc import ABC, abstractmethod
from gym.spaces import Box, Discrete, Dict
import numpy as np
from admiral.envs import Agent
from admiral.envs import AgentBasedSimulation
class PredatorPreyAgent(Agent, ABC):
"""
In addition to their own agent-type-specific parameters, every Agent in the
Predator Pre... | [
"rusu1@llnl.gov"
] | rusu1@llnl.gov |
48c447f2f216c015e483bfe9f33435d788261743 | 4407e6eff1a32b3df8632cba1c1143922e3b0139 | /manipulacao_arquivos/desafio_csv_web.py | 6073b6886b6dc357fabce35d69e8d4fb30a153f4 | [] | no_license | rodrigocode4/estudo-python | 3cc69bba6261a5821398dc9010b5ab2748c5a94c | 01128e5e1a1d39d2835df51dfe8bbaf4a270aa51 | refs/heads/master | 2022-12-11T01:32:20.920048 | 2020-05-08T00:03:05 | 2020-05-08T00:03:05 | 209,614,844 | 1 | 0 | null | 2022-12-08T06:48:15 | 2019-09-19T17:47:07 | Python | UTF-8 | Python | false | false | 432 | py | #!/usr/bin/python3
import csv
from urllib import request
def read(url):
with request.urlopen(url) as entrada:
print('Baixando CSV...')
dados = entrada.read().decode('latin1')
print('Download completo...')
for cidade in csv.reader(dados.splitlines()):
print(f'{cidade[8]}... | [
"rodrigocode4@gmail.com"
] | rodrigocode4@gmail.com |
6db39aefe0474c81e6a6a24d7b3c79f3ab7553e7 | 456ca4570118e2944eb46c439b9d8090750af1b1 | /Lab8/smtp_master.py | 2fdf64fc00e0f49fd1a6ecce04ec52e53ab84898 | [] | no_license | goreckinj/Network-Protocols-Labs | e34bb5c7b44d5dc43e5580c09830ec891740ca36 | 9c5e2185e6a298a6eca3c01b3ae1d69d529ca869 | refs/heads/master | 2020-04-25T05:26:54.197232 | 2019-02-25T16:38:45 | 2019-02-25T16:38:45 | 172,543,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,136 | py | """
- CS2911 - 0NN
- Fall 2017
- Lab N
- Names:
- Jason Gao
- Nick Gorecki
- Alex
A simple email sending program.
Thanks to Trip Horbinski from the Fall 2015 class for providing the password-entering functionality.
"""
# GUI library for password entry
import tkinter as tk
# Socket library
import socket
# SSL... | [
"="
] | = |
41daa0df82552a753799f21b9f6a92d5332edc43 | 9d8948ba3c48ad50db0b33e4db69722516ff2451 | /kubernetes_asyncio/test/test_apiextensions_v1_api.py | b67d159624fcc20bd0076930672fa1df89203f21 | [
"Apache-2.0"
] | permissive | tomplus/kubernetes_asyncio | f8d38b4f4546868499a19f5e2338f0c0cff0c68a | 9a41443088b999c00b6fbc7a88dcfbb86bf5c1c5 | refs/heads/master | 2023-08-31T07:45:33.728246 | 2023-08-21T11:58:21 | 2023-08-21T11:58:21 | 128,578,499 | 296 | 64 | Apache-2.0 | 2023-09-05T06:10:05 | 2018-04-07T23:55:49 | Python | UTF-8 | Python | false | false | 2,380 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.25.11
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unitt... | [
"noreply@github.com"
] | tomplus.noreply@github.com |
8ba102ebdd7f92dc9a0e9dc574bebbf7da51e6a9 | 058ed13ab33e8af7f5c7f6cfb985edcc1f0075b8 | /.history/application/controllers/sinhvien_20201006230934.py | c35efabcab728dece922a76da4e6ab65c34212a1 | [] | no_license | thinhpayer123/learning-python-vinacomi | e89a0b5302fbc42d1998aea82bba8ebea594eee6 | f4d11998911360e25f68c2c6c0336d32a8c25c65 | refs/heads/master | 2023-03-27T08:57:48.600710 | 2020-12-13T15:43:53 | 2020-12-13T15:43:53 | 353,254,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,765 | py | from application.extensions import apimanager
from application.models.model import QRUser, User, UserWallet
from application.extensions import auth
from application.database import db
from gatco.exceptions import ServerError
from sqlalchemy import create_engine
import os
import random
import string
import aiofiles
im... | [
"cuongnd@upstart.vn"
] | cuongnd@upstart.vn |
1ee4f8822cc864f39fec3eae1aa6b4bdaa91f2e6 | 5fa3bf3af2304fb16fb1ee7b8502027f753c8c34 | /stock_analysis(vincent tatan's).py | 547796dae796ab2474a60ff1570cc7c6eac4aeae | [] | no_license | avitabayan/12-minutes-stock-prediction-analysis | 763e485813056faa579483982bbbcaabf20e1e0e | 00dc1ffd50d4cc4ee81956ae62fc8867b200422f | refs/heads/master | 2021-01-16T04:07:22.596140 | 2020-02-25T10:30:29 | 2020-02-25T10:30:29 | 242,972,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,088 | py | #From Vincent Tatan's In 12 minutes:Stocks Analysis with Pandas and Scikit-Learn
#Homework2 for Siraj ML class - none of this code is mine, only modified and stock pick changed
import datetime
from pandas_datareader import data as pdr
import yfinance as yf
#pick stock, VTI
VTI = yf.Ticker("VTI")
#import data... | [
"noreply@github.com"
] | avitabayan.noreply@github.com |
fc3ef945c17fc0a2cc07ebc2bd0847622a35d8e1 | 778a420262c8d1547cbcbbe3143cd73a94d9cff6 | /test/test_common.py | bea1a3d8c600fa0d2718f9889976a7f6782f3467 | [
"Apache-2.0"
] | permissive | ddierkes/bdbag | a59ef7c4a7207dd9a90374a021c682b0b4642c54 | bc35ddcb544f7fa923d4649835ad99a15a778bce | refs/heads/master | 2020-03-17T22:06:22.942490 | 2018-05-03T11:05:57 | 2018-05-03T11:05:57 | 133,989,136 | 0 | 0 | null | 2018-05-18T18:14:03 | 2018-05-18T18:14:03 | null | UTF-8 | Python | false | false | 4,281 | py | import os
import gc
import sys
import shutil
import tempfile
import unittest
class BaseTest(unittest.TestCase):
def setUp(self):
if sys.version_info < (3,):
self.assertRaisesRegex = self.assertRaisesRegexp
self.tmpdir = tempfile.mkdtemp(prefix="bdbag_test_")
shutil.copytree(... | [
"mikedarcy@users.noreply.github.com"
] | mikedarcy@users.noreply.github.com |
4ada936d4800fcfa135a6a46c0347504ab72926e | b698f74dd3b90b110b8acf2474b743da4c6b01e5 | /count-recursively.py | a7e8b2dabfe4e51be585dc1b9bc5dcca0f260740 | [] | no_license | emilycheera/coding-challenges | 162f06a7b21677831cb689b400670bc340991ce9 | b7cf8e2b3931adc1362cfff42d10c5b4b4910494 | refs/heads/master | 2021-03-13T16:19:19.255060 | 2020-06-08T18:34:21 | 2020-06-08T18:35:00 | 246,694,751 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | def count_recursively(lst):
"""Return number of items in a list, using recursion."""
if not lst:
return 0
return 1 + count_recursively(lst[1:])
print("test [1, 2, 3] -> 3")
print(count_recursively([1, 2, 3])) | [
"emilycheera@gmail.com"
] | emilycheera@gmail.com |
8d8872b3116faa51b32de5035dc16fd6fc755f64 | 02cb5674a3b90ce13a9c617f88f6d47c2a27d396 | /simple_server.py | 4e1c79d6cfac732240071ad6824845f61549b88a | [] | no_license | tch1001/First-GCI-Task | f9de1997c5fb6f5ee222fa7a4448ef3a997d1e1c | 9a2572bef769d13f2f56f958f55663bf8051290a | refs/heads/master | 2021-05-14T16:13:40.568117 | 2018-01-02T13:06:42 | 2018-01-02T13:06:42 | 116,015,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,700 | py | from http.server import HTTPServer, BaseHTTPRequestHandler
import json
import sqlite3
import string
import random
# response_dict = {
# "business": "Pizza Hut",
# "founded": 2010, # Bogus date
# "locations": [
# "Pasir Ris",
# "Tampines",
# "Bishan",
# "Toa Payoh",
# "Orchard" # ...and everywhere else
# ]
# }... | [
"tanchienhao@gmail.com"
] | tanchienhao@gmail.com |
0ad05c0dfd6e48742b121e8c44fddf8a92224af1 | dd770e697daddab20e09fbf8ce199c97ee540c37 | /bigtop-packages/src/charm/spark/layer-spark/tests/10-test-ha.py | 99c604f9ffd781c069a3d253e4eb43d243ba046e | [
"Apache-2.0",
"FreeBSD-DOC",
"MIT",
"DOC"
] | permissive | PKConsul/bigtop | 0e7b5133be17a2093c0d5279b000c60b67072a16 | 2f8311b184bf0c5d25756b098895e43b1dbc3c2e | refs/heads/master | 2021-01-20T02:08:29.012667 | 2017-04-22T17:44:30 | 2017-04-23T06:27:13 | 89,379,381 | 1 | 0 | null | 2017-04-25T15:53:29 | 2017-04-25T15:53:29 | null | UTF-8 | Python | false | false | 3,718 | py | #!/usr/bin/python3
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License... | [
"kevin.monroe@canonical.com"
] | kevin.monroe@canonical.com |
36d4304a5261ebf8b4b7e77022b6b2938ec205e7 | 0426a74c4778bacbe6a5e2ba0f515813e3126590 | /apps/companies/migrations/0004_auto_20170212_2042.py | 60aee18534d5a7a05a56fd58625cd69af02de61a | [] | no_license | shinxyi/ConsumerAffairsAPI | 4dee2b0e7f8ccd5be705ca01c96c499a89347355 | b51fab4c6921b9115c8b585b54ca60e71701fe66 | refs/heads/master | 2021-01-22T04:10:33.963197 | 2017-02-13T17:24:33 | 2017-02-13T17:24:33 | 81,508,855 | 0 | 0 | null | 2017-02-12T20:19:25 | 2017-02-10T00:27:39 | Python | UTF-8 | Python | false | false | 523 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-12 20:42
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('companies', '0003_auto_20170212_2033'),
]
operations = [
mi... | [
"shinxyi.tan@gmail.com"
] | shinxyi.tan@gmail.com |
6ad635c7c78f425b27b69715dd2d48e1a0c105ed | 2d87d46441ec22a44181acab68b4f08a18644ccc | /accounts/models.py | 68b317c28f64631f7374b0ffbeb227dab19bfda9 | [] | no_license | omarBnZaky/social-django | 67e6a6b1cf304bb50c1bc39af27010b735549436 | e45a83b360e37f3970cbe4ccfa3984637c3821f6 | refs/heads/master | 2020-09-22T03:30:18.744069 | 2019-12-02T10:58:41 | 2019-12-02T10:58:41 | 225,032,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from django.db import models
from django.contrib import auth
# Create your models here.
class User(auth.models.User,auth.models.PermissionsMixin):
def __str__(self):
return "@{}".format(self.username)
| [
"omarbnzaky@gmail.com"
] | omarbnzaky@gmail.com |
cbd4bd9d77b8dd112549263d8b7c1515026424c4 | 8b12f1d36b88dcc230f98b797176bd448fe7ac96 | /lesson3/hw03_hard.py | 8ff989c12847b0fb647afd5692cb22a68b65bebf | [] | no_license | bxready/python | e25bfec3ffb0c8090cd9dea36b212d15d5986d1c | 36882ee6c11147abab9576807d63d8d1b9ee9133 | refs/heads/master | 2020-03-31T01:14:07.990582 | 2018-11-06T18:54:14 | 2018-11-06T18:54:14 | 151,772,477 | 0 | 0 | null | 2018-11-06T18:54:15 | 2018-10-05T20:07:57 | Python | UTF-8 | Python | false | false | 7,718 | py | # -*- coding: utf-8 -*-
__author__ = 'Алексей Коваленко'
import fractions
import random
import re
import os
# Задание-1:
# Написать программу, выполняющую операции (сложение и вычитание) с простыми дробями.
# Дроби вводятся и выводятся в формате:
# n x/y ,где n - целая часть, x - числитель, у - знаменатель.
# Дроби ... | [
"kova@kuznica74.ru"
] | kova@kuznica74.ru |
e209a95d690abfd4189adb9be07986331f77a9b4 | f889bc01147869459c0a516382e7b95221295a7b | /test/test_customer_data_customer_search_results_interface.py | edf62d3b5d9ee180f4386a1c633555c9f563ed2b | [] | no_license | wildatheart/magento2-api-client | 249a86f5c0289743f8df5b0324ccabd76f326512 | e6a707f85b37c6c3e4ef3ff78507a7deb8f71427 | refs/heads/master | 2021-07-14T16:01:17.644472 | 2017-10-18T13:33:08 | 2017-10-18T13:33:08 | 107,412,121 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | # coding: utf-8
"""
Magento Community
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sy... | [
"sander@wildatheart.eu"
] | sander@wildatheart.eu |
a9bdc6370afce4392ddb6dbf4ed0060b72a82fdb | a974bbcbe9398887c99b92e8b5df63e029fe7769 | /code/normal_map_EXEC.py | 027c0ee7a0a3470d9bf5a71762566cb34ada1945 | [
"BSD-3-Clause"
] | permissive | eckerr/python_image_manipulation | 9c21f8d57879b288f7e9f7ad34fb926e1ba8a86b | a0aacf7311e1ee7435df154962e634f061311209 | refs/heads/master | 2022-07-14T01:24:34.198184 | 2020-03-01T03:49:43 | 2020-03-01T03:49:43 | 167,699,657 | 0 | 0 | null | 2022-06-21T22:05:46 | 2019-01-26T14:46:05 | Python | UTF-8 | Python | false | false | 3,315 | py | """
Threaded version
Created by Ed on 2/20/2019
"""
import sys
import sqlite3
from time import sleep
from pprint import pprint
from my_opencv import MyCVImage, MyCVHist
# from file_open_dialog import Ui_Dialog
from PyQt5 import QtSql
from PyQt5 import QtCore, QtWidgets
from PyQt5.QtCore import pyqtSignal, QThread
... | [
"edkerr@comcast.net"
] | edkerr@comcast.net |
0a81406e21568458bfa72da56fa163c5beb986f7 | e275515948c89be5aa0b25f554bcf0a2dcaece8a | /scripts/old-scripts/cmr.py | c1f0e3f430ec702f56a3144287b9371292faf698 | [] | no_license | zlm200/DF_Linemod_ROS | 58f1fe8183bb0fd827bb702e7058ea5c154ff88e | 9e4f8c2a5a0fb7e04ab8e18c1272f93276d28b96 | refs/heads/master | 2023-03-15T16:01:04.723378 | 2020-12-03T01:24:37 | 2020-12-03T01:24:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,456 | py | #%%
import os
import numpy as np
import random as rand
from PIL import Image
import chainer
import chainer_mask_rcnn as cmr
from chainercv import utils
from utils.vis_bbox import vis_bbox
from utils.bn_utils import bn_to_affine
import matplotlib.pyplot as plt
# specify which gpu to use
os.environ["CUDA_DEVICE_ORDE... | [
"ashesh.vasalya@aist.go.jp"
] | ashesh.vasalya@aist.go.jp |
73cf3c5dd2f5930911a1ecc59bef4a8326f4dc85 | 89486783eb8b8f2474896407d948d159dec05f86 | /deflation_shell/process_data/data_paint.py | ff4e3a7ee0adcc702619262669951c703afcd184 | [] | no_license | Cuiyus/Experiment-Scripts | f2c5ec24b088a4b9a4354495f7197ffedb42c379 | bb09b3d64d33648741aa24ed2c9a642812c37fa1 | refs/heads/master | 2020-09-06T23:51:59.298887 | 2019-12-03T14:48:21 | 2019-12-03T14:48:21 | 220,594,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,731 | py | import xlrd
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.pyplot import MultipleLocator
print("输出redis -c 为30的图表")
for i in range(1,4):
data_solo = xlrd.open_workbook("C:\\Users\\12093\\Desktop\\Deflation\\2\\solo_redis\\solo_redis_30_%d.xls" % i)
data_colo = xlrd.open_workbook("C:\\Users\\... | [
"1209322594@qq.com"
] | 1209322594@qq.com |
d02b5cece1e22ad4c0e30550c5b6be1109c96b75 | ad921d190cba89b9ad3d169941727cfb497192e2 | /core/translation.py | 6c1e0ca8f9efd0245c6c108e300ba22dc0cab659 | [] | no_license | Rahmet97/3d-models.uz | c8f955d7e0af8ca6ff00f147bd5ef6c9133226e4 | 17fb9545475a416607c18e00388f8605ad623f5f | refs/heads/master | 2023-07-07T19:11:04.621195 | 2021-07-29T10:49:38 | 2021-07-29T10:49:38 | 361,868,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | from modeltranslation.translator import register, TranslationOptions
from .models import AboutUs, PortFolio, VideoModel
@register(AboutUs)
class AboutUsTranslationOptions(TranslationOptions):
fields = ('title', 'description')
@register(PortFolio)
class PortFolioTranslationOptions(TranslationOptions):
fields... | [
"ruslanovrahmet@gmail.com"
] | ruslanovrahmet@gmail.com |
d2e2318909c62901249fe649c24e5abf4b22430b | 9ddbc44b456a37d3e36be7a0f80bf097a7930909 | /amanturcolor.py | 3f787f77bead57f93411e68d983b26ea3909974c | [
"MIT"
] | permissive | Amankumar10/Aman | ae3d789c88fe1af3ac01869e6a994cd92687ce26 | e75f3ff16ecfe5c3320c7f5be9c02bb8787d2b34 | refs/heads/main | 2023-06-28T14:05:33.152958 | 2021-07-23T16:53:20 | 2021-07-23T16:53:20 | 388,868,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | import turtle
colors=["red","blue","green","black","brown"]
my_turtle = turtle.Turtle()
my_turtle.speed(70)
for i in range(276):
my_turtle.pencolor(colors[i%5])
my_turtle.left(70) #(a)
my_turtle.forward(100) #(a)
my_turtle.left(55) #(a)
my_turtle.backward(100) #(a)
my_turtl... | [
"amankumar02740@gmail.com"
] | amankumar02740@gmail.com |
26a913ad3667d31c973daeb7828df81b0f4ab511 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/134.py | 085bae10457bf1468888eded9f5f112884ecf5f6 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | import numpy as np
def mainFunc(S, K):
ret = 0
for i in range(len(S)-K+1):
if S[i]=="-":
ret+=1
for j in range(K):
if S[i+j]=='-': S[i+j]='+'
else: S[i+j]='-'
for i in range(K):
if S[len(S)-1-i]=='-': return "IMPOSSIBLE"
return str(ret)
T = int(raw_input())
for t in range(T):
P = raw_input().... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2dbd39a7be367e0af9174da5b1b0cbfe9ed4b588 | 8d30f2d627eb15bf0a3ff541812af3a289fffcfc | /backend/yfkyfkfu_1352/settings.py | bed71fd8664c0a8b11e6d92e1c95522d7680c020 | [] | no_license | crowdbotics-apps/yfkyfkfu-1352 | 2eda6d948adf2fd9fcace7997d606ff057168e03 | fd53b7f60397737ad99e7cae6e81c1b91c4ae22c | refs/heads/master | 2022-12-15T03:23:19.526405 | 2019-03-13T18:48:22 | 2019-03-13T18:48:22 | 175,480,158 | 0 | 0 | null | 2022-12-06T15:10:19 | 2019-03-13T18:48:19 | JavaScript | UTF-8 | Python | false | false | 4,746 | py | """
Django settings for yfkyfkfu_1352 project.
Generated by 'django-admin startproject' using Django 1.11.16.
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/
"""
im... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
00e1e467d9dad44b21c2c6db5640d597ab6ad8f2 | 4f45359b3b6826b98d17e62dcba260f91daa09d1 | /eventor/examples/run_types.py | 2097d5379f72695d467ada85eadffe8ace620cd9 | [
"MIT",
"BSD-2-Clause"
] | permissive | Acrisel/eventor | 55ccd84a379259aea53c295c267732ca765f316b | 8e27e8c5b8e605b055e9e7ead5854850785f8597 | refs/heads/master | 2020-06-22T07:22:31.293697 | 2018-02-18T18:49:34 | 2018-02-18T18:49:34 | 74,599,685 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,803 | py | '''
Created on Sep 8, 2017
@author: arnon
'''
import collections
from acrilib import Mediator
from acris import virtual_resource_pool as rp
import os
import logging
class StepResource(rp.Resource): pass
class Container(object):
class IterGen(object):
def __init__(self, level):
self.level ... | [
"arnon@acrisel.com"
] | arnon@acrisel.com |
e0222454928efa8bc1dbb30a24c6055737fc0f20 | 9a7550dc49afa11b1bb900b8e22752cfb9e941ed | /oauth/urls.py | 92ffdbb5ec9cbb586ee9683ea9d549b451ee25c1 | [] | no_license | SunmoonSan/MapleBlog | 862c4e3631a07ab4e6edb1fd934a4f4768ddd1f3 | bc61d42f3927016f7e9e7fb86534639c70cb6479 | refs/heads/master | 2020-03-22T08:46:52.563003 | 2018-07-05T03:29:48 | 2018-07-05T03:29:48 | 139,790,441 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | """sunmoon URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/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... | [
"18814184179@163.com"
] | 18814184179@163.com |
444a22a79ea2834fc4b7b25e5a0a38e4505be7a7 | 8fb749ccfb4c53cc897cea17a13f7164ce4d4310 | /tests/test_ward_night.py | 9e4d35b283813d3c0e3a4d7a3cca2015eb9781bc | [
"MIT",
"BSD-3-Clause"
] | permissive | bergren2/documenters-aggregator | 2d60bde5cf487ff930525a5c7dacfcf149706b43 | ae4e68988e17857a0c70ab7ae8594c7716c2e3bb | refs/heads/master | 2021-01-15T17:15:10.910946 | 2017-11-23T02:45:15 | 2017-11-23T02:45:15 | 99,740,513 | 0 | 0 | null | 2017-08-08T22:13:12 | 2017-08-08T22:13:12 | null | UTF-8 | Python | false | false | 4,711 | py | import pytest
from datetime import date
from tests.utils import file_response
from documenters_aggregator.spiders.ward_night import WardNightSpider, Calendar
from textwrap import dedent
test_response = file_response('files/ward_night.json')
spider = WardNightSpider(start_date=date(2017, 11, 1))
parsed_items = [item f... | [
"jim@autonomousmachine.com"
] | jim@autonomousmachine.com |
ed4064c3c203bfed3f1990bc58f5c661e2c41d3c | 5bf856f28e037262b1ed6ed86cb25be393ed6c56 | /django_video_frame/core.py | ffc70646589bf7d41e7dc033971450adae715204 | [] | no_license | jakt/django_video_frame | c35b0baf32a403f5bc962b8a7fdbb65ae218762c | c89d8d9ad253edc4ec71655a8428fe4f78a1ad53 | refs/heads/master | 2021-01-12T13:56:32.182241 | 2016-09-22T14:06:31 | 2016-09-22T14:06:31 | 68,926,789 | 2 | 1 | null | 2016-09-22T14:06:31 | 2016-09-22T14:00:18 | null | UTF-8 | Python | false | false | 1,671 | py | import os
import uuid
from moviepy.editor import VideoFileClip
from django.core.files import File
class FrameCreator():
"""video_field - django file field with video file
"""
def __init__(self, video_field):
self.video_field = video_field
def get_frame(self, video_frame_time='00:00:00'):
... | [
"vladimir.gosha.mail@gmail.com"
] | vladimir.gosha.mail@gmail.com |
cd4d183ad4e4c95ed4724893de2871e7b5527640 | f26ea24cebb60b8b6176ee4d3ecbec477be9b7c6 | /native_tags/contrib/mapreduce.py | 50346ee6e3655e78113e5d8117322daf7447de1a | [
"BSD-3-Clause"
] | permissive | lukaszb/django-native-tags | 994fcc0e382ebfd8dfed868a4caeeb33aa78aee5 | e1987497b652b1939d152cbc6bc281daf727b34c | refs/heads/master | 2021-01-09T06:13:18.485447 | 2010-05-04T20:08:15 | 2010-05-04T20:09:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,172 | py | from native_tags.decorators import function
def get_func(func_name, op=True):
import operator
from native_tags.registry import register
try:
return register['function'][func_name]
except KeyError:
pass
if func_name in __builtins__:
return __builtins__[func_name]
elif has... | [
"justquick@gmail.com"
] | justquick@gmail.com |
f9923bc3c5cc59cf94f88a72612fd73c7c3f4963 | 0cd9245e531389be7b9bcd0513af8f0c920a4455 | /9.6.py | 072222820395e3cef8472afdc024a1b220246c2c | [] | no_license | lzyrapx/Think-Python | 34abde3026011529cbec32bb2f7a6a7aa75eaa59 | b395d62c3116f4bba479287d22ef1964dab70c6f | refs/heads/master | 2021-08-23T07:28:04.973879 | 2017-12-04T04:29:43 | 2017-12-04T04:29:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | #coding:utf-8
"""
写一个名字叫is_abecedarian的函数,如果单词中所有字母都是按照字母表顺序出现就返回真
(重叠字母也是允许的)。有多少这样的单词?
"""
def is_abecedarian(word):
index = 0
Length = len(word)-1
for i in range(Length):
if ord(word[index]) <= ord(word[index+1]):
index += 1
else:
return False
... | [
"noreply@github.com"
] | lzyrapx.noreply@github.com |
f7ad37c473eb788222d0d0e5934e021dc5afeffc | 238e46a903cf7fac4f83fa8681094bf3c417d22d | /VTK/vtk_7.1.1_x64_Release/lib/python2.7/site-packages/twisted/lore/_version.py | c81adaac2b5e3ff5d0fc8545fdf68c50dfda705d | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSD-3-Clause"
] | permissive | baojunli/FastCAE | da1277f90e584084d461590a3699b941d8c4030b | a3f99f6402da564df87fcef30674ce5f44379962 | refs/heads/master | 2023-02-25T20:25:31.815729 | 2021-02-01T03:17:33 | 2021-02-01T03:17:33 | 268,390,180 | 1 | 0 | BSD-3-Clause | 2020-06-01T00:39:31 | 2020-06-01T00:39:31 | null | UTF-8 | Python | false | false | 271 | py | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
# This is an auto-generated file. Do not edit it.
"""
Provides Twisted version information.
"""
from twisted.python import versions
version = versions.Version('twisted.lore', 14, 0, 0)
| [
"l”ibaojunqd@foxmail.com“"
] | l”ibaojunqd@foxmail.com“ |
566b4cf0a9f132484571e22ebd61a17b564f150a | a263ed3297c1e547ec94aa94300b068b2552868b | /hw1/test_parallel_loader_normal.py | b8070241167595fdcb9529747f2ca2ddda9b0692 | [] | no_license | zawecha1/MLDS2017 | fb30e5b826c6730db1a95b7f12b583ad2d050670 | 5c04f2a009e0d7cfa72b655e4c05a83c766e3515 | refs/heads/master | 2020-04-28T02:54:57.366197 | 2017-06-15T15:52:18 | 2017-06-15T15:52:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,147 | py | import json
import time
import random
import numpy as np
import tensorflow as tf
import word2vec
from parallel_loader import ParallelLoader
sentences = json.load(open('./data/data.json'))
subset = word2vec.load_indexed_model('./data/subset.bin')
SENTENCE_LEN = 5
BATCH_SIZE = 10
def loader_func():
ss = random.sam... | [
"patrickchen1994@gmail.com"
] | patrickchen1994@gmail.com |
e085cb3c3cb21879704390f4e24c6657f2288de0 | 8a66133e57eb1217a666229d04d0c4965847e657 | /CARTtree.py | bef4f2e3ad44e6569c8580beca2a9586bb87bacd | [] | no_license | jackhe0912/ML-practice | 2dbe22ba0c667676a6cbe852e7da4144e220c684 | 66f716b67003dd2dc25254552874411965766089 | refs/heads/master | 2020-04-04T13:53:05.615653 | 2018-11-03T12:10:57 | 2018-11-03T12:10:57 | 155,978,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,109 | py | """CARTS算法代码实现
20180911
jackhe"""
from numpy import *
import numpy as np
import matplotlib.pyplot as plt
"""读取数据函数"""
def loadDataSet(filename):
dataMat=[]
fr=open(filename).readlines()
for line in fr:
curline=line.strip().split('\t')
fltline=list(map(float,curline))
... | [
"noreply@github.com"
] | jackhe0912.noreply@github.com |
8dbdb812badb9cbca4f2a3443f3d51e69aa253ef | 70b82cf7cb8ca912cb809c5f8e9fff9e80bdc50c | /Homework.py | 7e9aefaa82395c2a738c3993ce677201bced781a | [] | no_license | SergeyKot987/python_basic_course | d585c7069c93bffb012acb5c42fdc0a9ba61ab59 | a27727d470dd352706df23d2d08bf52cfba8409d | refs/heads/master | 2021-04-15T16:25:53.550550 | 2018-04-24T15:33:47 | 2018-04-24T15:33:47 | 126,369,457 | 0 | 0 | null | 2018-04-24T15:33:48 | 2018-03-22T17:09:27 | Python | UTF-8 | Python | false | false | 74 | py | age = 22
year = 2018 - 22
print(f"What year were tou born?\n {year}" ) | [
"noreply@github.com"
] | SergeyKot987.noreply@github.com |
f3234921e0a1cd9eaf4c40340a44f85a9b4c646b | 74c8f10bfc82e762d83db424e5d4f4b3681ffba0 | /venv/Lib/site-packages/winrt/windows/security/cryptography/certificates/__init__.py | df6f418b8fd0c94949f27c7b4d23e5ac4cb7a211 | [] | no_license | meghnaraswan/HEARTLabHapticSleeveProject | 1e7bd0710c26dad6588f73f6b1f0741c8e31334d | 6c2c9a227aaacf34b2205bcb1a856cc70ceccd55 | refs/heads/main | 2023-07-04T01:51:01.462007 | 2021-08-17T13:34:43 | 2021-08-17T13:34:43 | 390,823,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,949 | py | # WARNING: Please don't edit this file. It was generated by Python/WinRT v0.9.210202.1
import typing, winrt
import enum
_ns_module = winrt._import_ns_module("Windows.Security.Cryptography.Certificates")
try:
import winrt.windows.foundation
except:
pass
try:
import winrt.windows.foundation.collections
ex... | [
"raswan@chapman.edu"
] | raswan@chapman.edu |
3c92228e0ccb19dd99d8f02f5c1d0b4f4605312b | 745e25309d7f0ec93e1a7a94ebf3573247dc21d5 | /app_eagle_customize/__manifest__.py | d594d1ba0d5647fbadc5e74c24d64054a3cc21b8 | [] | no_license | dionisiotorres/customs | e7c00bc9cd92e9e8662c24918a0a9731ea1b749b | 320ee8a57838d0c1e7b7d63b5664a9ae7ba306a5 | refs/heads/master | 2022-12-01T21:32:53.041422 | 2020-04-03T14:31:53 | 2020-04-03T14:31:53 | 288,824,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,471 | py | # -*- coding: utf-8 -*-
# Created on 2018-11-26
# author: 广州尚鹏,https://www.sunpop.cn
# email: 300883@qq.com
# resource of Sunpop
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
# Eagle12在线用户手册(长期更新)
# https://www.sunpop.cn/documentation/user/12.0/en/index.html
# Eagle12在线开发者手册(长期更新)
# https://www.sun... | [
"dmashraf@gmail.com"
] | dmashraf@gmail.com |
69c10516b76febdff600c3fb916e1eb234a9137e | 969df8dfe85c2efa619ffe56e3f7fc1d786c9e87 | /mysite/urls.py | 640ac7f3c10a896c9d316e20d1d3b11fcadb4306 | [] | no_license | neelkalwar/Text-Manipulation | f228973a144f0463c83f0d6117d8d17ec56505f4 | 6e2d7eb359970f2c62b70fb023b665036235492a | refs/heads/master | 2023-07-12T19:04:43.371677 | 2021-08-25T12:19:36 | 2021-08-25T12:19:36 | 399,800,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path('admin/', admin.site.urls),
path('', views.index ,name='index'),
path('analyze', views.analyze ,name='analyze')
]
| [
"kalwarn8@gmail.com"
] | kalwarn8@gmail.com |
a108c73292745efbb8c63a7021a928c423ba5f28 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/3242.py | f20b77deb7902b6a054756552bf203772edf07d0 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | #!/usr/bin/python
def solve_n(case, C, F, X):
t = 0.0 # Time stamp
cc = 0.0 # Number of cookies
cookie_rate = 2.0
solved = False
while not solved:
time_to_next_event = C / cookie_rate
## Will I solve in this round
time_to_solve = t + (X - cc) / cookie_rate
if cc + co... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
7e44debbb15267ca368c195c909880609a255521 | 6141527b03c7e1bd8d9bee08e2d8e9aec2fb546b | /bot.py | 0d1d59f9b88ce0970c4bc26ff8951155f4ae716a | [] | no_license | stevemclaugh/defineplz | f110a9d71b852de174dc99fc579977e20a200ac5 | 2e6c21937772835cd129d611764ae5dd2723c5b5 | refs/heads/master | 2021-01-15T16:09:59.657832 | 2017-08-10T00:26:34 | 2017-08-10T00:26:34 | 99,708,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,952 | py | from twython import Twython
from textblob import TextBlob
import urllib.request
import time
import datetime
import random
import string
import os
from pprint import pprint
APP_KEY = "yYX1PmePymDUOleMXDkO0G6qt"
APP_SECRET = ""
OAUTH_TOKEN = "894946933449555968-h2hTsuaqlGUigG8n47QOTcK2YsVwhwa"
OAUTH_TOKEN_SECRET = ""
t... | [
"stephen.mclaughlin@utexas.edu"
] | stephen.mclaughlin@utexas.edu |
63a6bbe59c77994bb404b62295889f7269ee3032 | dad751d6b5a9822fb276c3cc40e48f2f42246974 | /analysis/old_pklplot.py | f21186ee5f9f60b217b858919a40d548bd9ca34a | [] | no_license | jrhaberstroh/gromacs-scripts | ac7be85492d59a243bae5f9ee44e29df166747a6 | f077c25ec34b08b57074012c969793dcfc585734 | refs/heads/master | 2021-05-28T05:56:26.035787 | 2014-07-15T17:57:47 | 2014-07-15T17:57:47 | 9,708,331 | 14 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | #!/usr/bin/env python2.7
import argparse
import cPickle
import pylab as plt
import numpy as np
def plotCt(yplot, args):
plt.xlabel(args.xlabel)
plt.ylabel(args.ylabel)
plt.title(args.title)
xaxis=[]
yaxis=[]
try:
xaxis= np.array(xrange(0, args.tf)) * args.xrescale
yaxis= yplot[0:args.tf]
except:
xaxis= ... | [
"jhaberstroh@berkeley.edu"
] | jhaberstroh@berkeley.edu |
9b32ca83be3ff0001699e986eb494e64aa5b12d3 | e365d3eef46e4db8fc3e9a08d96eecf6be79fbfa | /CellFabric/Cell_Fabric_FinFET__Mock/gen_lef.py | 7ee690db7c657bbd1171d20f1ad2a4b1ea69c029 | [
"BSD-3-Clause"
] | permissive | tonmoydhar/ALIGN-public | c1d624148ade27c793f93b5529f0556b88f1a28f | 3ff9a64fad48927945ad1aa6a554929147d53833 | refs/heads/master | 2020-07-19T14:27:08.468815 | 2019-09-03T22:21:37 | 2019-09-03T22:21:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,728 | py | import json
from collections import OrderedDict
def json_lef(input_json,out_lef,cell_pin):
macro_name = out_lef + '.lef'
def s( x):
return "%.4f" % (x/10000.0)
#### Start: This part converting all negative coordinates into positive
with open( input_json, "rt") as fp:
j = json.load(fp, object_pairs_ho... | [
"aksharma@umn.edu"
] | aksharma@umn.edu |
92d4c4a7b0af2d27c109eea4c7c10b509cf8602a | 81860df5b2705eec5d704bcf257f1eb4a2c350c5 | /InterviewPrep/Isomorphic.py | 8d2b0385086617dc53dc59a8de6ed9df6a7d6e2a | [] | no_license | cquinone/Practice | 07f90b874572aab8cf1d0ad4a0c58fc3b02de6b8 | 5c1c230778788eed7beb80c9b416484fe1c76473 | refs/heads/master | 2021-06-23T18:36:34.745930 | 2017-09-07T21:59:49 | 2017-09-07T21:59:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | from collections import defaultdict
"""
http://www.programcreek.com/2014/05/leetcode-isomorphic-strings-java/
"""
def isomorphic(str1,str2):
visited = [False]*256
log = defaultdict(str)
if (len(str1)!=len(str2)):
return False
for i in range(0,len(str1)):
if (visited[ord(str1[i])] == Fal... | [
"noreply@github.com"
] | cquinone.noreply@github.com |
b270e0997d1a0890099ab916b7ac8762bc7f9c20 | 3fa27b3ad1c1ca90f2bcf311d89fe8c2ca241cb4 | /Stores/migrations/0002_auto_20201004_2348.py | 9df9d2685983fb78f3531d6d90e5557aaf8fa728 | [] | no_license | emperorDuke/django-backend-for-ecommerce | 717e15d7be899abcd5a4b7a7d2203c612f001aeb | 83c1ca4d016d876a5c8711ac5cdc448d5a4a533d | refs/heads/master | 2023-02-10T08:57:17.852721 | 2021-01-02T15:49:07 | 2021-01-02T15:49:07 | 271,039,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | # Generated by Django 2.2.7 on 2020-10-04 22:48
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('Users', '0001_initial'),
('Stores', '0001_initial'),
mi... | [
"effiomduke@gmail.com"
] | effiomduke@gmail.com |
a40f198db43f3d074882ddcc0a948778b54b510c | a5c7e51fd50f9239f5d37f9018793bb9949e3e28 | /DL_assignment_3/deeplearning_library_v1/superlearn_setup.py | 4d35331b3fdfbab35b808862df20356917b489f2 | [] | no_license | adai2017/dlhomework | 2da897427cb1538ff280672cbb86c01819272673 | 312e89fc3b38f4d8d2d7f5a07fff9e3dcefb746d | refs/heads/master | 2021-09-10T06:45:29.373481 | 2018-03-21T19:45:48 | 2018-03-21T19:45:48 | 118,677,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,982 | py | import autograd.numpy as np
from . import optimizers
from . import cost_functions
from . import normalizers
from . import multilayer_perceptron
from . import history_plotters
class Setup:
def __init__(self,x,y,**kwargs):
# link in data
self.x = x
self.y = y
# make containe... | [
"AndrewDai2017@u.northwestern.edu"
] | AndrewDai2017@u.northwestern.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.