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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
64c2c471974ea13afac4cdef5cd02c11de405ea3 | b49df6b6ed1ef168f7cf69d60da58b06d0b69853 | /dowhileloop.py | 2838b65ef0a93109fbe0f14a86a0350bb720b647 | [] | no_license | justus-migosi/do-while-loop | cefd6cd5c4baa75a5158cfc382c31f2d7385ecaf | 097c5f4201c4ec676eda5e1c17a0d96dbd1e7ae3 | refs/heads/main | 2023-03-23T14:37:01.878627 | 2021-03-07T14:55:47 | 2021-03-07T14:55:47 | 345,373,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | x=1
while True:
print(x)
x=x+1
if(x>10):
break | [
"noreply@github.com"
] | justus-migosi.noreply@github.com |
c55f365e169d1106b279c90b35267dee292c835b | acd749424ec557eb2c0aed20333131eeb738b27a | /pyart/io/nexrad_cdm.py | 2df276d06cb14dcb08a6247e4e97c50c44c7cd4b | [
"BSD-3-Clause"
] | permissive | zxdawn/pyart | c5b8cc505e4eea0db01af40bdd3a796ff11020b2 | fc51a68dfb488392217b2093ed593f07016e793b | refs/heads/CNRAD | 2020-03-17T23:14:30.526023 | 2019-05-19T13:39:00 | 2019-05-19T13:39:00 | 134,036,631 | 9 | 0 | null | 2018-05-22T14:07:30 | 2018-05-19T06:34:09 | Python | UTF-8 | Python | false | false | 13,609 | py | """
pyart.io.nexrad_cdm
===================
Functions for accessing Common Data Model (CDM) NEXRAD Level 2 files.
.. autosummary::
:toctree: generated/
read_nexrad_cdm
_scan_info
_populate_scan_dic
_get_moment_data
"""
import os
from datetime import datetime, timedelta
import netCDF4
import nu... | [
"jjhelmus@gmail.com"
] | jjhelmus@gmail.com |
95dda09cdcc2204cf56cce764f5d795178e6963d | d2f3de8bd68260f4e333be3b812a627f7f2ec10a | /course-65389-DL2020advanced/lesson-08-step-02-pytorch-autograd.py | e98504e22899d5c0e48d9b2e93dffe2f3c206c3e | [] | no_license | sidorkinandrew/stepik | 2b915e1a959d98fd338372ba88d231323a905da5 | 3513846036df036d3ffdea15ad0d7a856a3ec77f | refs/heads/master | 2021-11-23T02:09:18.265495 | 2021-11-20T23:24:36 | 2021-11-20T23:24:36 | 245,150,396 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | from matplotlib import pyplot as plt
import numpy as np
from sklearn import datasets
from sklearn.model_selection import train_test_split
import torch
def find_x_derivative(x, y):
x = torch.tensor([x], dtype=float, requires_grad=True)
y = torch.tensor([y], dtype=float)
z = torch.sin(torch.tan(x)*(x*x/y) + ... | [
"sidorkina.oksana.19@gmail.com"
] | sidorkina.oksana.19@gmail.com |
fe7ef14c8f1f1bd5d70ed77e431a9ed651889e4c | dbc5e86162d0fc97a2c40f91c181762f4c904cde | /photologue/admin.py | 4bb65371d920b247f783e12a1661857367ce650d | [
"BSD-3-Clause"
] | permissive | iberben/django-photologue | 7739df7c6bb2401a5c89587b803dbfef2e673cb4 | cf546ce05172240068aa7d01b41cecf75c3e03e9 | refs/heads/master | 2021-01-19T05:49:14.504577 | 2010-11-12T14:48:21 | 2010-11-12T14:48:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,595 | py | """ Newforms Admin configuration for Photologue
"""
from django.contrib import admin
from models import *
class SetAdmin(admin.ModelAdmin):
list_display = ('name', 'date_added', 'is_public')
list_filter = ('date_added', 'is_public')
date_hierarchy = 'date_added'
prepopulated_fields = {'slug': ('name',... | [
"ingo.berben@city-live.be"
] | ingo.berben@city-live.be |
24d3f7246c7d2d37f6a7c022003cc680690ab32e | f0b5d51f23c6bab2e01e353141ea89d1f07f8b82 | /catkin_ws/build/rosserial/rosserial_msgs/cmake/rosserial_msgs-genmsg-context.py | c0023794e87a9060bb15a6573580190b0274e95a | [] | no_license | rignitc/semi_humanoid_robot | 84a3a540707392149c380d751838b7ec0a98735d | d6e04258ae57e7627bfd56952bc717e4b069ad1f | refs/heads/master | 2020-08-07T08:26:28.988420 | 2019-10-07T12:01:10 | 2019-10-07T12:01:10 | 213,360,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/nvidia/rigguv2/catkin_ws/src/rosserial/rosserial_msgs/msg/Log.msg;/home/nvidia/rigguv2/catkin_ws/src/rosserial/rosserial_msgs/msg/TopicInfo.msg"
services_str = "/home/nvidia/rigguv2/catkin_ws/src/rosserial/rosserial_msgs/srv/RequestMessageInfo.s... | [
"rig@nitc.ac.in"
] | rig@nitc.ac.in |
19fff9aea639d7c8ef19c6c6ba38178f7a3e5a7a | 0e6c8439bfbe6bb55638e2c50de516146729a8a3 | /website/addons/dataverse/tests/test_provider.py | cef5164276c62e550e11ddaa98492b40a5e9bbc0 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | sf2ne/Playground | 5385e2cb0aa5172e1037ec99eaf36c5239707ff4 | 95b2d222d7ac43baca0249acbfc34e043d6a95b3 | refs/heads/testWebFlowers | 2022-12-15T07:44:08.371300 | 2016-03-11T16:32:06 | 2016-03-11T16:32:06 | 53,675,768 | 0 | 0 | Apache-2.0 | 2022-11-22T00:27:34 | 2016-03-11T15:17:39 | Python | UTF-8 | Python | false | false | 1,545 | py | import httplib as http
from nose.tools import * # noqa
import mock
from framework.exceptions import HTTPError
from website.addons.dataverse.tests.utils import (
create_mock_connection, DataverseAddonTestCase, create_external_account,
)
from website.addons.dataverse.provider import DataverseProvider
class TestD... | [
"rliebz@gmail.com"
] | rliebz@gmail.com |
7ae123aa82822cebe97dbca6eea26e9c58d5e5fd | 016ea541673c9cd795b7270e1793e76482478134 | /1Basics/3IfStatements/3-07.py | a4fae230281f4d98b9f88b1f3cc814c75636ddac | [] | no_license | zako16/heinold_exercises | 5e77983fc715aa7dc7367561b2a4dae420db2b35 | 5551161e2d16d740df2e9ee7c2a53b235d627046 | refs/heads/master | 2021-06-10T23:34:33.516166 | 2017-02-06T07:24:57 | 2017-02-06T07:24:57 | 70,688,144 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | """
Write a program that asks the user for two numbers and prints !Close! if the numbers are
within .001 of each other and !Not close! otherwise.
"""
numberOne = eval(input("Enter 1 number:"))
numberTwo = eval(input("Enter 2 number:"))
if abs(numberOne - numberTwo) <= .001:
print("Close")
elif abs(numberOne - numbe... | [
"pojiratelnica@gmail.com"
] | pojiratelnica@gmail.com |
566ddef51d09647542ab85a39035216d08bc0846 | 7b2e267d7f7dccce8d57c37dba772d778923d05d | /pendant_injection.py | f7e1e2bc9ee08a3cab52ee99b1ce6d1bdcd7d7ca | [] | no_license | Posfay/Zero-Forcing | 88ebe7706104b513ccc7064bfcab71c586226fbd | b18e1c97e13c46e70d4379c74d1e5933d8f4cf5a | refs/heads/master | 2023-04-17T04:21:06.437817 | 2021-04-17T16:11:13 | 2021-04-17T16:11:13 | 286,028,300 | 1 | 1 | null | 2020-10-07T21:34:49 | 2020-08-08T11:14:53 | Python | UTF-8 | Python | false | false | 6,588 | py | import os
import datetime
import networkx as nx
import graph_utils
import zero_forcing_process as zf
def inject_pendant_to_edge(edge_list, edge):
"""
Creating a new graph by injecting a pendant to edge
:param edge_list:list(list())
:param edge: list(int) (node1, node2)
:return: Graph
"""
... | [
"benedek@posfay.com"
] | benedek@posfay.com |
bce74c6a733e3a6ec747ca11da5381c33c922752 | 7125244993e00d1663b3752622fbed7ad2b6e5c0 | /locustFiles_basics/MultipleTask.py | 82728d91bcf5fc5f0e56f7bb41ea2aa014875b9f | [] | no_license | dipanjanmt/LocustProject_2 | c0ecd8c1faeca6e88012d0b641eec18c6c6295da | 6c9205636ce0a38e305fcfee0e20669ae9234ece | refs/heads/master | 2023-05-13T06:46:39.761001 | 2021-06-08T18:41:02 | 2021-06-08T18:41:02 | 375,044,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | from locust import User, between, task, SequentialTaskSet
class SearchProduct(SequentialTaskSet):
@task
def search_men_products(self):
print("Searching men products")
@task
def search_kids_products(self):
print("Searching kids products")
@task
def exit_task_execution(self):
... | [
"dipanjankundu@Dipanjant-Kundu.local"
] | dipanjankundu@Dipanjant-Kundu.local |
aaf7c07df0a3a79d0aa83017aa4a3142f7911d98 | dec5c1416279178c23e81794789ed27e7e806faf | /profiles_api/models.py | 921345fafbd8fe1b8cb4afa2e7952b8838987617 | [
"MIT"
] | permissive | amitarvindpatil/profiles-rest-api | 44c7555888e654a2a64362d21834f5a67aeab07a | c2092bdc13c77e2f1f3cd4940740f752cc2b180f | refs/heads/master | 2022-09-15T06:53:40.777169 | 2020-05-31T09:01:43 | 2020-05-31T09:01:43 | 260,257,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,032 | py | from django.db import models
from django.contrib.auth.models import AbstractBaseUser
from django.contrib.auth.models import PermissionsMixin
from django.contrib.auth.models import BaseUserManager
from django.conf import settings
# Create your models here.
class UserProfileManager(BaseUserManager):
"""Manager For U... | [
"amitpatil04041993@gmail.com"
] | amitpatil04041993@gmail.com |
8d06459eaeb52a36c67f79167e259238fa29ad11 | 2b2464cd7a9c83bc1dd2c3bef144a8421fcd8659 | /61a-su20-practice-mt/question_3/tests/question_3.py | b80bc4fc23584abbd11add72b2b6c742f45848f8 | [] | no_license | royh02/Past-Exams | 6f63853a44341187a0fce2cd7cda9b73e812df91 | 3884fbe45b210cba85427e6005054d1dbf96f8a7 | refs/heads/master | 2022-11-20T19:30:18.356589 | 2020-07-16T03:48:50 | 2020-07-16T03:48:50 | 277,603,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | test = {
'name': 'question_3',
'points': 6,
'suites': [
{
'cases': [
{
'code': r"""
>>> close(123)
123
>>> close(153)
153
>>> close(1523)
153
>>> close(15123)
1123
... | [
"65890703+xroid-x@users.noreply.github.com"
] | 65890703+xroid-x@users.noreply.github.com |
ef1eee54f8116f47fc4c4fbdd3d54647d86bdf18 | 097157f85655ae0c847d7fa4caa7fe404c2bbac4 | /run.py | fe3e795fed34d8c80d3877b9178717d1f9980031 | [] | no_license | XiaoFJU/enlightened_flask | d0556a29906fe74c1b7eb76deebe8585bbea2ea6 | 5071b8a2ff7a9098e42fdc7ea408ab4b80900006 | refs/heads/master | 2020-03-27T08:20:59.800394 | 2018-08-27T04:23:46 | 2018-08-27T04:23:46 | 146,246,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | from application import create_application
if __name__ == '__main__':
app = create_application()
app.run(host="0.0.0.0", port=80)
| [
"403262631@gapp.fju.edu.tw"
] | 403262631@gapp.fju.edu.tw |
7228fe09f21e47607f8b4d813784fbe298fefdb7 | 1080cd26378ef9070c61360211dc113b428216f6 | /.venv/lib/python3.7/bisect.py | 7ed693cbdb8fa88e018a5e0d72e6a3588aba86ce | [
"Apache-2.0"
] | permissive | ricklon/circleciplatformio | b616ba829a1de179830b7979c9864dff17e9a54d | 3b832e3705e0a0b627adb8afd8a4b687c833d0be | refs/heads/master | 2022-12-09T13:03:46.716842 | 2019-08-17T22:56:33 | 2019-08-17T22:56:33 | 202,931,258 | 0 | 0 | Apache-2.0 | 2022-12-08T06:02:49 | 2019-08-17T21:04:38 | Python | UTF-8 | Python | false | false | 58 | py | /home/gitpod/.pyenv/versions/3.7.2/lib/python3.7/bisect.py | [
"rick.rickanderson@gmail.com"
] | rick.rickanderson@gmail.com |
792b61efe2adbe81bfa8e2d488a1dbf4bd884444 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-das/huaweicloudsdkdas/v3/model/export_top_sql_templates_details_response.py | 1286a8c3db19b4ec0f54ea95567708a585fd8a62 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,619 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ExportTopSqlTemplatesDetailsResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
96ecd307f055f3b68969e8d57c8d8d5d0247f15a | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/4/i5u.py | ddabd582980b6c53e4d7b8520dbd5e019a933eac | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
233f449c43dd3969ed4906d7bec5daaf2246e1ff | 3d5ad10941251a01afa660de95286e2d56ccef98 | /bot.py | 9d0777ba68625a32390d2645809c10accacd8a9b | [] | no_license | brunoss18/BOTcommentator | fa32def336684afccc87d028ea99b89803c70f0c | 58054ab9a54a2b5578ad71adc5121600af1b0a6a | refs/heads/main | 2023-07-02T05:59:30.997079 | 2021-08-03T05:49:55 | 2021-08-03T05:49:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,809 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
import random
class InstagramBot:
def __init__(self, username, password):
self.username = username
self.password = password
firefoxProfile = webdriver.FirefoxProfile()
firefoxProfile.set_pref... | [
"noreply@github.com"
] | brunoss18.noreply@github.com |
adc05494fa63bf6c34d7e85ba4b3674a26b19617 | a5e9150f12fe0de60fe8851e1ed9f7b45ca01a00 | /keras_cifar10.py | dc386e3cff981333990ceaead537f870e2d54d02 | [] | no_license | dain5832/DL4CV | d73b9b8cd1807d01b6d3e56b75ce536c56078cc8 | 2af85f03e9bf87e6f9ff27554f7ec02c95d40f03 | refs/heads/master | 2022-11-14T15:23:58.049282 | 2020-07-06T07:15:51 | 2020-07-06T07:15:51 | 277,467,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,588 | py | # import the necessary packages
from sklearn.preprocessing import LabelBinarizer
from sklearn.metrics import classification_report
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
from tensorflow.keras.optimizers import SGD
from tensorflow.keras.datasets import cifar10
imp... | [
"noreply@github.com"
] | dain5832.noreply@github.com |
8740e21ca2700f49a46ae97ee6a65222d9aaedd6 | 5494c7990e07e9ff465dd78c642e939abcb2f3ba | /lab/lab07/lab07.py | c84914c7b7645b8ad0e759e7f724519fbca39ee9 | [] | no_license | minleminzui/ucb_cs61a_21summer | cd816dc1874f308f723914aea2874d9bee72d4e8 | 0269ef7f7b3c6180e4c56862bc6c8e8a60743ed5 | refs/heads/main | 2023-08-15T14:40:10.002607 | 2021-10-06T13:57:12 | 2021-10-06T13:57:12 | 414,231,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | def naturals():
"""A generator function that yields the infinite sequence of natural
numbers, starting at 1.
>>> m = naturals()
>>> type(m)
<class 'generator'>
>>> [next(m) for _ in range(10)]
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
"""
i = 1
while True:
yield i
i += 1
... | [
"2969413251@qq.com"
] | 2969413251@qq.com |
6277d8e8a2d1b27b8540502c24b2e0c1977f2425 | d4b80f29bbfa914159c9bddd6615a625abdecff7 | /PFChargedHadronAnalyzer/python/CfiFile_cfi.py | 064661e1be2b7b70e8b7ac153c209625c4d57764 | [] | no_license | bkansal/PFCalibration | 36153346f8048642be07c26b3c4398829b161a2e | 12a301266ba0031cb82cdfbbf8797b12d6caef7b | refs/heads/master | 2023-05-11T20:09:47.363140 | 2016-11-29T09:28:40 | 2016-11-29T09:28:40 | 124,348,268 | 0 | 4 | null | 2018-03-08T06:36:58 | 2018-03-08T06:36:58 | null | UTF-8 | Python | false | false | 92 | py | import FWCore.ParameterSet.Config as cms
demo = cms.EDAnalyzer('PFChargedHadronAnalyzer'
)
| [
"shubham.pandey@cern.ch"
] | shubham.pandey@cern.ch |
77ede1b1575ce944244f3616ca02e2c565b653b0 | 9dfebb5d0eaee7fea3d3dede8c4f2c6401be8d1d | /sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py | b3f9eda310279157d9d48bc14b03d353bf822620 | [
"Apache-2.0"
] | permissive | kulado/kulado-kubernetes | b129f1051c6baf28928393af516c27d9896acaac | ecb72f9b25f6dbbae41f00c82388b1ca32329cc7 | refs/heads/master | 2020-06-24T21:23:25.852741 | 2019-07-27T00:13:22 | 2019-07-27T00:13:22 | 199,093,978 | 0 | 1 | Apache-2.0 | 2019-08-20T22:57:47 | 2019-07-26T23:58:50 | TypeScript | UTF-8 | Python | false | false | 2,024 | py | # *** WARNING: this file was generated by the Kulado Kubernetes codegen tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import kulado
import kulado.runtime
import warnings
from ... import tables, version
class LeaseList(kulado.CustomResource):
"""
LeaseList is a li... | [
"eric@kulado.com"
] | eric@kulado.com |
d994f4b20a182b9c9b4b26dea314bed2f83d5097 | da52951c32b37aa75765b718707ce08c0a6208d1 | /ReinforcementLearning/PolicyGradient/PPO/tf2/main.py | b3a0d38e4986d6a9da18c87322ee6faa32643f1d | [] | no_license | philtabor/Youtube-Code-Repository | 08c1a0210f80976df50b01a91f1936a7d5c7b302 | eb3aa9733158a4f7c4ba1fefaa812b27ffd889b6 | refs/heads/master | 2023-08-08T05:28:11.712470 | 2023-03-27T16:07:29 | 2023-03-27T16:07:29 | 144,081,173 | 811 | 568 | null | 2023-07-24T20:00:37 | 2018-08-09T00:21:29 | Python | UTF-8 | Python | false | false | 1,575 | py | import gym
import numpy as np
from agent import Agent
from utils import plot_learning_curve
if __name__ == '__main__':
env = gym.make('CartPole-v0')
N = 20
batch_size = 5
n_epochs = 4
alpha = 0.0003
agent = Agent(n_actions=env.action_space.n, batch_size=batch_size,
alpha=alpha... | [
"ptabor@gmail.com"
] | ptabor@gmail.com |
9bfef8ea5ee76a8076e4ae4927c5af7803deeabb | dc5675b4e32cac0807ea07f70ff75d53497d903e | /causal/convert_to_npy.py | 95245c92657dc0b18ded4d24ed9332b9228f1c2e | [] | no_license | jeff-da/cracking-the-commonsense-code | 7ea8d17fb56541c19f860d498be22d8641c38d22 | 8a54f01888959245f066da8c7c921d949adce93e | refs/heads/master | 2020-10-01T15:40:32.213604 | 2019-12-12T09:31:10 | 2019-12-12T09:31:10 | 227,568,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | """
Convert the GloVe co-occurrence data to a numpy matrix.
"""
from argparse import ArgumentParser
import struct
import numpy as np
from scipy.sparse import coo_matrix, lil_matrix
from tqdm import trange
p = ArgumentParser()
p.add_argument("--vocab_file", required=True)
p.add_argument("--cooccur_file", required=Tr... | [
"jexeld@gmail.com"
] | jexeld@gmail.com |
bcf00fd1fcede042853180e550443fed81814591 | 4e86bcea2789d983207561889f902efdae99a4a7 | /3.WebDev/django/mysite/main/views.py | ac68f8e3557ed6128c80c33345220109909987f9 | [] | no_license | bloedlink/python | 6a6204222745730eeb010a11f1fc0588208aaf8d | a3be0ddbf5e65d986e3b039cf2059348225f0a0f | refs/heads/master | 2023-08-03T23:28:11.684917 | 2021-03-12T19:59:36 | 2021-03-12T19:59:36 | 254,076,131 | 1 | 0 | null | 2023-07-23T11:18:27 | 2020-04-08T12:04:20 | HTML | UTF-8 | Python | false | false | 313 | py | from django.shortcuts import render
# Create your views here.
def home(request):
return render(request,'index.html')
def master(request):
return render(request,'master.html')
def carpool(request):
return render(request,'carpool.html')
def test(request):
return render(request,'test.html') | [
"nielsjanssen.1990@gmail.com"
] | nielsjanssen.1990@gmail.com |
cfd8efd73f8b8c8ecd63146360d4fa65c54c9af8 | 842ff0f54a6635ca0daefc00fe45ed8d9fc2bd99 | /SPLC.py | 6be8e495757eee2acd448bd96ed8a496db08cddc | [] | no_license | Munanna/Rosalind-solutions | c8420357ac8301abdd0c0d4ebbed69e586b84bf0 | d364412a5e55436d1901f2b1d61490a729db4156 | refs/heads/master | 2020-06-02T17:04:56.113141 | 2018-02-26T10:24:01 | 2018-02-26T10:24:01 | 94,099,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Aug 12 00:51:51 2017
@author: OMNISLO
"""
f = open('rosalind_splc.txt', 'r')
seqs = []
l = ''
counter=0
for line in f.readlines():
if line[0] != '>':
l += line.strip('\n')
else:
seqs.append(l)
l = ''
counter +=1
seqs.append(l)
f.close(... | [
"nat15alo@student.lu.se"
] | nat15alo@student.lu.se |
5af4b4a8df574aaa5ac607d9afdff9e1919791bb | 69528c8872d4b67fd5a3ee4206a48deae7a6113c | /HaploManager/find_misassemblies.py | 0f05d1814aa0e9f53d5fbc50f294286fa8159774 | [] | no_license | Firefly007-2018/scripts | 60692ad7dfc450a79edf18f0947d13519595764c | 686a3148169cfd2ef47ffe87709d93e2db6d73d5 | refs/heads/master | 2020-12-04T08:18:54.078319 | 2018-06-19T10:03:25 | 2018-06-19T10:03:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,156 | py | #!/usr/bin/python3 -u
import os
import sys
import pathlib
import argparse
import re
import string
import sqlite3 as sql
from pprint import pprint
from Bio import SeqIO
from collections import defaultdict, namedtuple
from operator import itemgetter
from termcolor import colored
Gap = namedtuple('Gap', 'scaffold start ... | [
"johnomics@gmail.com"
] | johnomics@gmail.com |
f8ec33f3874cbc2a02a7e9af12d1ccae1936b34e | 22ce20964370770564d10d9b96c253511ad4a591 | /Spiders/Spider_xixizhan.py | 205ae6919d24f4b3a1ad69b1ecc882902c4d0bc4 | [] | no_license | rainlow/AwsomeSpider | 46683f265eab62bf36dd36eef34f96cead36b079 | 4665fa20cdade144432f2491f096b37997d47cf7 | refs/heads/master | 2023-05-05T01:45:27.467248 | 2019-10-23T01:59:43 | 2019-10-23T01:59:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,547 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2017-10-14 00:11:29
# @Author : kangvcar (kangvcar@126.com)
# @Link : http://www.github.com/kangvcar/
# @Version : $Id$
import re
import urllib2
from bs4 import BeautifulSoup
import MySQLdb
import time
class xixiItem(object):
''' 定义xixiItem类'''
mtype = ... | [
"kangvcar@126.com"
] | kangvcar@126.com |
351cca2054fb8641c34017b3bc190680a699b824 | 4b44a299bafbd4ca408ce1c89c9fe4a449632783 | /python3/10_Modules/Parallel_Processing/a_get_cpu_count.py | 0a0464db866ec3a6c8aa2be9e3d728d2be413a38 | [] | no_license | umunusb1/PythonMaterial | ecd33d32b2de664eaaae5192be7c3f6d6bef1d67 | 1e0785c55ccb8f5b9df1978e1773365a29479ce0 | refs/heads/master | 2023-01-23T23:39:35.797800 | 2020-12-02T19:29:00 | 2020-12-02T19:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | import multiprocessing as mp
result = '''There are {} processors, in number, in this \
computer'''.format(mp.cpu_count())
print(result)
print(dir(mp))
print(mp.current_process())
| [
"uday3prakash@gmail.com"
] | uday3prakash@gmail.com |
954328033e830e24754e6bdfd16070c83a6e687a | f11be78c01892f7c9dc44178ceeaacc0283f582f | /jsonschema_marshmallow/codegen/__init__.py | e031ea4e64bb66032fcc999588b2c073ec93bcfd | [
"MIT"
] | permissive | gijzelaerr/jsonschema-marshmallow | c6c8e5097f57e609832df30f02513b5d3e4737d0 | e73e523cd32f2235525a9c61e731c741268e4164 | refs/heads/main | 2023-06-24T00:43:45.410868 | 2021-07-20T11:57:54 | 2021-07-20T11:57:54 | 387,666,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | from jsonschema_marshmallow.codegen.cli import codegen
| [
"gijs@pythonic.nl"
] | gijs@pythonic.nl |
c1207cd99cf050f5920e60b5acdcba64e82686ab | 34dab2e882e304f1b371c7e1dabcc6eacbc67dc9 | /contrib/bitrpc/bitrpc.py | e3b01c117726add9397660c62e7553c5664a2ecf | [
"MIT"
] | permissive | worldgold/test | 6ac526c4e80b94e27fd0751b48b0bddb6134c6da | 9645229c1d2e30e215e9e0424a52121606fefec9 | refs/heads/master | 2021-01-19T18:39:55.932086 | 2017-08-23T09:48:59 | 2017-08-23T09:48:59 | 101,150,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,838 | py | from jsonrpc import ServiceProxy
import sys
import string
# ===== BEGIN USER SETTINGS =====
# if you do not set these you will be prompted for a password for every command
rpcuser = ""
rpcpass = ""
# ====== END USER SETTINGS ======
if rpcpass == "":
access = ServiceProxy("http://127.0.0.1:10332")
else:
access = Se... | [
"inder@system.(none)"
] | inder@system.(none) |
7ab40d2eabfadbc816c5944cc521cefd12a0cfe9 | 3b19ca40d0dac17891600a99a4377b489f28e84c | /lib/nginx_log_parser.py | 0d5dd9ef784c53a25210a38e06a19c5dfd8ad2d7 | [] | no_license | danshipt/xddos | f65859e949ea098ff7a4562542f33161b925a18c | c61dac6114862fb53935413765d87e27573d4412 | refs/heads/master | 2021-10-08T15:20:24.348491 | 2017-03-22T14:31:08 | 2017-03-22T14:31:08 | 43,751,055 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py | from __future__ import unicode_literals
import re
class AccessLogRecord(object):
def __init__(self):
self.date = ''
self.domain = ''
self.ip = ''
self.http_code = ''
self.request_uri = ''
class NginxLogParser(object):
pattern = re.compile(r''
... | [
"bxtgroup@gmail.com"
] | bxtgroup@gmail.com |
6a90b6ebc4229778b978fc7673384247a2d2f335 | d60951deacf824b7cd34fef618d42336d8e0d6d3 | /src/laser_slam/src/DataAssociator.py | e4e82d132713a78db6847d695a15db0757ba2dce | [] | no_license | kevinatorchen/Husky | 4ad3663ae4f94d961b6b9091c40d8988f01a75e5 | c76710bb06b0d3ad4b89b2d5626d79b156cad2f2 | refs/heads/master | 2021-05-02T09:30:04.785522 | 2018-04-23T12:01:44 | 2018-04-23T12:01:44 | 120,824,581 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,600 | py | import numpy as np
MAX_MULTI_DIST = 0.4
JOINT_PENALITY = 100
MAX_INDIV_DIST = 4
MAX_RANGE = 10
MIN_RANGE = 0
class DataAssociator:
def __init__(self, laserSLAM):
self.slamInstance = laserSLAM
@staticmethod
def joint_compat_score(hypothesis, Z, X, d_z, d_x):
"""
compute the join... | [
"thibaut@homiwoo.com"
] | thibaut@homiwoo.com |
7befb3c8b70e9b0355a8ee12802fd32712ce8bce | 668b98e9a4c2c8cc86135a620ead342b4195ecbe | /generate | 102b97c8b233ad329f9de3164d1192eab2460a85 | [] | no_license | treeman/why_cryptocurrencies | 0b4851ad8791ec35a0e5a8d8fa2d7ce2395242f4 | 9b9b771c7a89f4263aa9bcb11d3fc2210c747f33 | refs/heads/master | 2023-06-21T12:47:49.646774 | 2023-06-09T07:14:16 | 2023-06-09T07:14:16 | 179,041,862 | 45 | 11 | null | 2023-02-23T08:31:06 | 2019-04-02T09:17:18 | Perl | UTF-8 | Python | false | false | 2,289 | #!/usr/bin/python3
import glob
import subprocess
import os.path
import shutil
import errno
# Can upload with rsync -a -v _site/ <dest>/
# Could extend this with using a cache of sha256 output files
# to see if we should regenerate or not,
# but just cleaning _site/ is easier before build
# and using raco to update d... | [
"mail@jonashietala.se"
] | mail@jonashietala.se | |
3b53916e8912c613bc14b8d7042442b25b0154cd | 3c2e1395b0af0f0cbde14628f92d0ca075a1f089 | /loop.py | 112932b422e970b4866ef8ee67c65fb388763173 | [] | no_license | tylerweis14/SeniorDesignIIProject | e69ec54c0116305c243e32603fcc66179dd27663 | 0a55b66686e805c405585e35623c04c2c8bffb28 | refs/heads/master | 2022-06-15T03:30:55.908037 | 2020-05-06T15:21:08 | 2020-05-06T15:21:08 | 258,570,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,135 | py | import numpy as np
from scipy.interpolate import interp1d
from scipy.integrate import ode
from scipy.integrate import odeint
from scipy.integrate import solve_ivp
import matplotlib.pyplot as plt
def dydt(t,y, params):
x, y, z_f, z_c=y
alpha,lamb,beta,c_pf,c_pc,m_f,m_c,W_ce,T_cine,a_f,n_e,alpha_f,alpha... | [
"noreply@github.com"
] | tylerweis14.noreply@github.com |
523f716dc6a787ce7d6eb918648030f3ec9e97be | 203f8465075e098f69912a6bbfa3498c36ce2a60 | /sandbox/person_follower/src/follower/msg/_WaitActionGoal.py | 518c8b03a5d36551ca3d0537d1a0fbd58db54de3 | [] | no_license | robcn/personalrobots-pkg | a4899ff2db9aef00a99274d70cb60644124713c9 | 4dcf3ca1142d3c3cb85f6d42f7afa33c59e2240a | refs/heads/master | 2021-06-20T16:28:29.549716 | 2009-09-04T23:56:10 | 2009-09-04T23:56:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,433 | py | # autogenerated by genmsg_py from WaitActionGoal.msg. Do not edit.
import roslib.message
import struct
## \htmlinclude WaitActionGoal.msg.html
class WaitActionGoal(roslib.message.Message):
_md5sum = "54f5dc6d242ed96aa3e20c82006143e4"
_type = "follower/WaitActionGoal"
_has_header = False #flag to mark the presen... | [
"ethandreyfuss@f5854215-dd47-0410-b2c4-cdd35faa7885"
] | ethandreyfuss@f5854215-dd47-0410-b2c4-cdd35faa7885 |
fb85a52144a9c86363881b3524450dd3278eed03 | 64054ffdbde22ac17d2caff30cd53752c29e7bf4 | /courses/migrations/0003_auto_20180225_2023.py | c5d7affdffe11313a0b80a866e33744e8103b25d | [] | no_license | fernandovbs/simplemooc | 76fac35133d9b5acf5ae7b47fa8449a6842206e5 | ca68fbb503fc2cb7c58dd6ec718c8ecf153e957b | refs/heads/master | 2021-04-30T00:08:36.157836 | 2018-03-30T21:57:02 | 2018-03-30T21:57:02 | 121,570,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | # Generated by Django 2.0.1 on 2018-02-25 20:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0002_auto_20180214_2338'),
]
operations = [
migrations.AlterModelOptions(
name='course',
options={'verbos... | [
"fernandostorm1@gmail.com"
] | fernandostorm1@gmail.com |
40fc3a0276b1fc14e4cbde317b29b1d2aaf23308 | c3cc02f10e8e6e892da1c033d8f9f20efc01213a | /upload-login-registration-django/AuthProject/templates/EPIC/Joining/views.py | b6fd731b2fbebcffcd0697b079d2dc0e2d3764e3 | [] | no_license | benchmarketdev/Python-Django | 43d2b28a8538a8c43aad9b37e23488c325ed9f1b | 20e6ac34c3f010a0ab36fd2d6bf8114a20d158f7 | refs/heads/master | 2020-04-01T04:32:42.320898 | 2018-10-13T18:35:28 | 2018-10-13T18:35:28 | 152,867,922 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py | from django.shortcuts import render, redirect
from models import *
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from datetime import datetime
import datetime, decimal
from Employee.models import *
from Library.emailer import *
from Users.models import *
from djan... | [
"eagle@gmail.com"
] | eagle@gmail.com |
6a2420036fa088bc0c7d614f108b8106288d4953 | f6a9b4b571d58078fc15e65ec1f50828b64f3b09 | /pulp-client/handlers/user.py | 9e5d40643c0e32bf8f75c05f3f51efff9f196e78 | [] | no_license | AyushGupta-Code/pulp-client | f36451fa320f27da83d63defcb3e497ccfa1565c | dc25ad8d87d7bc542955bdb5a54d4294d3dcc034 | refs/heads/master | 2023-04-09T14:41:56.062154 | 2021-04-18T16:11:59 | 2021-04-18T16:11:59 | 350,825,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,050 | py | from db.user import User
from flask_login import login_required
from flask import Flask, redirect, request, url_for, Blueprint
from flask_login import current_user
import requests
import json
#creates a page
userpage = Blueprint('userpage', __name__, template_folder='templates')
# userid is a variable and "users" is... | [
"ayushgupta20011@gmail.com"
] | ayushgupta20011@gmail.com |
eebf0e423107f15c0c1e58dc38ee919714391509 | 82287f24760966e5d5d99fcd3c4d96bbc4a0eb81 | /First Test.py | 9968a6eacd1a5549d317d38d9ebf082bed005982 | [] | no_license | JHarzenetter/Planetensimulation | 766f42d22e12cd822d2b5c7a99c09286f1beaa31 | 61a591179dcea7485d6d9dc0392a963932bff3ba | refs/heads/master | 2020-04-05T03:15:16.682453 | 2018-11-07T08:08:30 | 2018-11-07T08:08:30 | 156,507,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | import math
print("hallo")
def calc(number):
return number**2
print(str(calc(8)))
print(str(math.sqrt(calc(6))))
| [
"johannes.harzenetter@gmail.com"
] | johannes.harzenetter@gmail.com |
08aea1c4cf86277a51c4d590dbf843a9e116acea | 3ccd609f68016aad24829b8dd3cdbb535fb0ff6d | /python/bpy/types/FILEBROWSER_UL_dir.py | d242f98ab9b1a289208ea3db9e875d5ed1fb5d58 | [] | no_license | katharostech/blender_externs | 79b2eed064fd927e3555aced3e2eb8a45840508e | fdf7f019a460de0fe7e62375c1c94f7ab0e9f68d | refs/heads/master | 2020-04-11T14:00:29.393478 | 2018-10-01T00:40:51 | 2018-10-01T00:40:51 | 161,838,212 | 1 | 1 | null | 2018-12-14T20:41:32 | 2018-12-14T20:41:32 | null | UTF-8 | Python | false | false | 140 | py | class FILEBROWSER_UL_dir:
def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
pass
| [
"troyedwardsjr@gmail.com"
] | troyedwardsjr@gmail.com |
91129a536dccabd4d97cb50c44fef92adc6b28fc | e8204c87247729a4dd7c302e6949daeb371a9996 | /main.py | 84772714c518e4615e508acbd607fb2162e06f25 | [] | no_license | umarshabir/Turtle-crossing-game-Frogger- | 0080adef09b29cda64bfd50874dda6f677117541 | 720c9a6c1ebdb542d14e8a5fcde509e40a5c89fe | refs/heads/main | 2023-03-18T12:50:06.694265 | 2021-03-11T14:59:09 | 2021-03-11T14:59:09 | 346,738,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | import time
from turtle import Screen
from player import Player
from car_manager import CarManager
from scoreboard import Scoreboard
player = Player()
car_manager = CarManager()
scoreboard = Scoreboard()
screen = Screen()
screen.setup(width=600, height=600)
screen.tracer(0)
screen.listen()
screen.onkey(player.move, "... | [
"noreply@github.com"
] | umarshabir.noreply@github.com |
7b835c930ee026e800a8f2c827ca7cc2dd2b6951 | b4ec04d6a2a4ba57d11b577326086c14d9b9408b | /freshontheboattests/testUserRegistration.py | 48a96a3d9990ad9a29a052739e0cbb4104299f60 | [] | no_license | petergzli/FreshOnTheBoat | 91268d43f91c85da0bacafa268b42e2f1e3dfe6c | 6320bcd798ad23d6ed936fddeb51a040a28853b2 | refs/heads/master | 2021-01-20T10:06:13.318571 | 2015-11-25T18:52:36 | 2015-11-25T18:52:36 | 41,778,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | #The Following Script is a sample POST tester, to see if your entry was successfully added to database.
import requests
url = 'http://127.0.0.1:5000/users/new/'
params = {"firstname": "Carly", "lastname": "Jepsen", "username": "callbaby", "encrypted_password": "baby"}
HTTPresponse = requests.post(url, data = params)
p... | [
"petergzli@gmail.com"
] | petergzli@gmail.com |
10ef64737d16248a9f71ed4a09aa9ea77ca86f54 | c109c11c93a628086e1181d16906304070c396b6 | /Test04_散点图.py | 6af7672e98029cb137f1729f3e15fc253b7c5a55 | [] | no_license | Monkey-D-Luffy-star/Py_DataAnalyse01 | 24e3aea4fac2b079f7823d2abf164c24a9714bb1 | 3fba96133d675294d61b067d03fbe7932ff098ae | refs/heads/master | 2022-11-30T03:10:51.376333 | 2020-08-08T01:41:03 | 2020-08-08T01:45:02 | 285,835,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | from matplotlib import pyplot as plt
from matplotlib import font_manager
y_3 = [11, 17, 16, 11, 12, 11, 12, 6, 6, 7, 8, 9, 12, 15, 14, 17, 18, 21, 16, 17, 20, 14, 15, 15, 15, 19, 21, 22, 22,
22, 23]
y_10 = [26, 26, 28, 19, 21, 17, 16, 19, 18, 20, 20, 19, 22, 23, 17, 20, 21, 20, 22, 15, 11, 15, 5, 13, 17, 10, 11... | [
"1451955616@qq.com"
] | 1451955616@qq.com |
8bb474e67284156e8874fe976147f794bece629e | 9d767c7df630aa7782264cc51073065e1f5d4c5d | /mlia-examples/src/book/itemsets/fpgrowth.py | 63673ca3cc752ccdb6d86d30bef3666a042b1e84 | [] | no_license | GomesNayagam/workspace | 497e6eaad2785875a02f870cd384516b72501110 | d23e806cbbe0decc8a34bcd61636468a46f439a4 | refs/heads/master | 2016-09-06T17:45:52.800243 | 2014-09-25T13:51:20 | 2014-09-25T13:51:20 | 24,454,554 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,319 | py | from __future__ import division
from numpy import *
class TreeNode:
def __init__(self, nameValue, numOccur, parentNode):
self.name = nameValue
self.count = numOccur
self.nodeLink = None
self.parent = parentNode
self.children = {}
def inc(self, numOccur):
self.count += numOccur
def disp(... | [
"gomes.uma@gmail.com"
] | gomes.uma@gmail.com |
b316ac46f5b5539ea3578aae0e065e9d9d12f5d0 | c7145148ad0d68b2ae6a94c5295a5e2e8189388b | /solutions/1-introduction/starred/11799.py | 8ab72169f18bb00acb4bd46cd027972fb3159a84 | [] | no_license | Ochirgarid/uhunt | 63a94d6ff3474110e596ccb9153e52f96f6a9c09 | 45d9de7c8bb8fe73958fe132e483ae6d52bcd0f7 | refs/heads/master | 2023-02-06T01:07:40.379692 | 2020-12-31T14:52:34 | 2020-12-31T14:52:34 | 324,241,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | if __name__ == "__main__":
t = int(input())
for c in range(t):
h = list(map(int, input().split()[1:]))
print("Case {}: {}".format(c+1, max(h))) | [
"ochir.garid@gmail.com"
] | ochir.garid@gmail.com |
a3d375e158820a56402b5129f60972b9f1c6a911 | 5dde747548ef6e78e073e8a14d2c4a3ccbab0d39 | /Experiments with pywhatkit/pywhatkit.py | 5ae68a0a685d178ed49a09647523c9583cd73646 | [] | no_license | nandinichhajed/Python-Projects | 9ba9ecae0717791e98a4ff4440be7a0bf2cc99e7 | 07dfa4b99c5cebf3abfd2089f23506debf2e0a8c | refs/heads/main | 2023-08-18T08:34:27.135830 | 2021-10-06T11:23:37 | 2021-10-06T11:23:37 | 382,581,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | import pywhatkit as kit
# Sending whatsApp message
kit.sendwhatmsg_instantly("+919406655668", "Hiiiii")
kit.sendwhatmsg_to_group("group name", "Hiiiii", 22,33)
kit.sendwhats_image("+91**********", img_path="path", caption="caption")
# To search something on web browser
kit.search("python")
# To find information
kit.... | [
"nandinichhajed08@gmail.com"
] | nandinichhajed08@gmail.com |
cb3c52836c92de725f4b0b5bc037f530ce63d13a | 656b431bf7ac23d5593ddf4fb69c29c251d744cb | /zen/layer/base/node.py | 91c5f8a19f460b42f4d3cf942d8f853c60c39140 | [] | no_license | knighton/zen-0.14 | 2c8e4f0aa2e6c862d4022eb346a619268250273e | 7936e43a115d00888bf6c523525bf9f3e7a49256 | refs/heads/master | 2021-01-21T05:33:01.494392 | 2018-05-17T15:01:30 | 2018-05-17T15:01:30 | 101,927,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,619 | py | from copy import deepcopy
from ..arch.vee import Vee
class Node(Vee):
"""
A node of a neural network.
They consist of input and non-input nodes (Inputs and LayerNodes).
"""
def __init__(self):
self._out_shape = None
self._out_dtype = None
self._out_data = None
se... | [
"iamknighton@gmail.com"
] | iamknighton@gmail.com |
52a5a034b32eedf99db0c7b0b8e8069b46531061 | a54dc0d9ea54cb568f66f2ff24f1971f77eac19c | /code/message/start_face_recognition_message.py | 8bf6faa09233eb803189942dc734e303ef52a4be | [
"MIT"
] | permissive | ITE-5th/skill-image-caption | 25a42b90e9058eb40959fd01c96ee8f0d73616dc | 1a77d27b4fbadd89a6390e8707d4a7975b1edb8d | refs/heads/master | 2020-03-16T23:29:31.414857 | 2018-07-27T18:06:38 | 2018-07-27T18:06:38 | 133,079,676 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | from .message import Message
class StartFaceRecognitionMessage(Message):
pass
| [
"m.zaher.airout@gmail.com"
] | m.zaher.airout@gmail.com |
1d6c708e713687a606bcec30490c9970a32b2031 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/94/usersdata/203/55258/submittedfiles/mediaLista.py | 9f8eabcc98947ef4aefb6758c5a6a0a6eab90482 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | # -*- coding: utf-8 -*-
n=int(input('tamanho da lista: '))
l=[]
soma=0
for i in range (1,n+1,1):
l.append(input('elemento da lista: '))
for i in range (0,n-1,1):
soma=soma+l[i]
media=soma/n
print ('%.2f' %l[0])
print ('%.2f' %l[n-1])
print ('%.2f' %media)
print ('%.2f' %l) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
97067240f3603e9eccc91bbf918e2013e744e8ff | 077edc89068e3024904db9973214ab0d7dd14eac | /airflow/plugins/operators/load_fact.py | 1abea7288a489cf3dc9bbb5455102e9b94c07060 | [] | no_license | eflemist/airflowdatapipelines | 2b2aedd996f2ceef31b1d52a04171a37528730f9 | cc675028341f18fa94959ea899c251d5b70f8aa6 | refs/heads/master | 2023-03-27T12:48:18.587203 | 2021-03-25T19:36:55 | 2021-03-25T19:36:55 | 351,539,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | from airflow.hooks.postgres_hook import PostgresHook
from airflow.models import BaseOperator
from airflow.utils.decorators import apply_defaults
class LoadFactOperator(BaseOperator):
ui_color = '#F98866'
insert_sql = """
INSERT INTO {}
{}
"""
@apply_defaults
def __init__(sel... | [
"eflemist@gmail.com"
] | eflemist@gmail.com |
7e17abc002edaf1847bf7df750090433bf144d0b | f0bf7911733f0f2af23a49ac8c0da156b62add23 | /Postinstall/ubuntu-13.10-postinstall.py | 09f194a5385fcbf5a64bfed35651cc33840bcb91 | [] | no_license | MicoFive/System | 6b61b93dbf010b55fe81ca997bc2f98017ade771 | 88dee781042b39926f57090d354849195f9b5e2b | refs/heads/master | 2020-05-17T04:49:27.920818 | 2014-03-07T12:34:34 | 2014-03-07T12:34:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,702 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Mon script de post installation Ubuntu 13.10
#
# Syntax: # sudo ./ubuntupostinstall-13.10.sh
#
# Nicolargo (aka) Nicolas Hennion
# http://www.nicolargo.com
# Distributed under the GPL version 3 license
#
"""
Post installation script for Ubuntu 13.10
"""
import os
impo... | [
"merigo4@gmail.com"
] | merigo4@gmail.com |
81b8a4f9af2aa380377c9d6d5cced5d7971abdd4 | ead4170bcd27518252592faad66be2e1febf6133 | /prg19.py | aef99b960f5161874142cd1fc3f7c2ce95c0eaea | [] | no_license | peazybabz/Python-Tutorials-for-beginners | 657b562dc3e8ef4e5026ed15adc3ae11b0d4f3e9 | 5df118b2ff99f8b678ce5ebce695896387a40fe4 | refs/heads/master | 2020-04-01T11:12:16.217665 | 2018-10-17T18:24:34 | 2018-10-17T18:24:34 | 153,151,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | #19. Python Program to Check Armstrong Number
# take input from the user
num = int(input("Enter a number: "))
# initialize sum
sum = 0
# find the sum of the cube of each digit
temp = num
while temp > 0:
digit = temp % 10
sum += digit ** 3
temp //= 10
# display the result
if num == sum:
print(num,"is an ... | [
"npeace81@yahoo.com"
] | npeace81@yahoo.com |
93fdc72b73f69d9440a0a0c7fba0adaaf73f0d90 | e92ef35f88c743597cfabe1a9e584ed659695c4a | /fr_util.py | b07ebf42256fe56194849637e319e54d98b09dff | [] | no_license | yshenkai/face_decetion_rec | 2c1f3d8e06b164d59fdccbcc9eb5e0f438e50f00 | 0cd66665e781e05625c21588e17d60d13202e43b | refs/heads/master | 2020-08-08T11:27:35.655213 | 2019-10-09T04:36:29 | 2019-10-09T04:36:29 | 213,821,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,203 | py | import tensorflow as tf
import numpy as np
import os
from numpy import genfromtxt
from keras.models import Model
from keras.layers import Input,Conv2D,Dense,MaxPooling2D,AveragePooling2D,BatchNormalization,Activation,ZeroPadding2D,concatenate,Flatten,Lambda
import h5py
import matplotlib.pyplot as plt
import cv2
from ke... | [
"mlshenkai@163.com"
] | mlshenkai@163.com |
982f09e06da9b91e11bebb4ecf8d383bc704f702 | a5cf1d2fc478d490df05eb198d1a0fb77fcb0bc9 | /flask_oauthlib/contrib/client/__init__.py | 4b777b4430dcbd3daf2326ea063c4e02dca552ae | [
"BSD-3-Clause"
] | permissive | ageis/flask-oauthlib | 516df1a661441cc46c26ab5e9b07fa328066a5f4 | 9414e002505354e8b5b3aa5f54a0889c836aa732 | refs/heads/master | 2021-01-05T05:11:59.090723 | 2020-04-19T07:20:23 | 2020-04-19T07:20:23 | 240,891,932 | 1 | 0 | BSD-3-Clause | 2020-04-19T07:20:24 | 2020-02-16T12:58:27 | null | UTF-8 | Python | false | false | 3,277 | py | import copy
from flask import current_app
from werkzeug.local import LocalProxy
from .application import OAuth1Application, OAuth2Application
__all__ = ['OAuth', 'OAuth1Application', 'OAuth2Application']
class OAuth(object):
"""The extension to integrate OAuth 1.0a/2.0 to Flask applications.
oauth = ... | [
"me@lepture.com"
] | me@lepture.com |
ce9aee9d33bc3e4d2e66296e526a530465aed07b | 1b4162fe830f2612d701efaddc62b591fec9c8c6 | /Single_Number.py | 515a51fc0b62e03b7d2b22e9f5df2ed92ba80550 | [] | no_license | Tammon23/30-Day-LeetCoding-Challenge-April-2020 | 018e2bd5f8afeafa561c24dd8e9b134d0c82892a | a34ebc1bee64b9f56aa35f1898a86210816e05dd | refs/heads/master | 2021-05-25T19:47:57.803140 | 2020-04-14T17:16:44 | 2020-04-14T17:16:44 | 253,896,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | class Solution:
def singleNumber(self, nums: List[int]) -> int:
x = 0
for num in nums:
x ^= num
return x
| [
"noreply@github.com"
] | Tammon23.noreply@github.com |
7368f03dd1696be11ed81d20842c9e5a92573891 | 28605e3a678d7b18284842998652df5581f46f90 | /rooms/FluchtVorDemCode.py | 97c0e93a952bb04003c421c6abe0d58b04111ab2 | [] | no_license | TimPaet/EscapeRoom | 4d111c7af7ec4adfc0480415aed523484f592bc7 | 1d324a3d00996df179d1c5c0dc72d1023e9b6f9f | refs/heads/main | 2022-12-30T21:30:54.635582 | 2020-10-21T07:23:55 | 2020-10-21T07:23:55 | 305,713,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,406 | py | from EscapeRoom import EscapeRoom
class FluchtVorDemCode(EscapeRoom):
def __init__(self):
super().__init__()
self.set_metadata("Tim", __name__)
self.add_level(self.create_level1())
self.add_level(self.create_level2())
self.add_level(self.create_level3())
... | [
"noreply@github.com"
] | TimPaet.noreply@github.com |
3e6a874a64e7d69cc870d2a47199ffe654c59f9b | 904e75e2ceff81c18a432fe1b951b683e859cbed | /views/console/voucher.py | 809b9bed03144310d4c914e793626e5bbf9acd22 | [] | no_license | PUYUP/plutoborn | a42c65fa360de41a1236af00b5718948dc1b9940 | e6b47b7f183fcff60fa803329e11c2e87de560ef | refs/heads/master | 2022-12-05T17:06:10.049472 | 2020-08-19T09:12:45 | 2020-08-19T09:12:45 | 254,116,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,675 | py | from django.conf import settings
from django.views import View
from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.db.models.functions impor... | [
"hellopuyup@gmail.com"
] | hellopuyup@gmail.com |
cc45df1680460ba8ad0cf37c8e58af522b26b94e | 87b11aedcce596b47775eabc34e4c3c7d1e4c6a7 | /venv/Scripts/easy_install-3.7-script.py | d80ab360d01bbf3cd015cdaa955a421eef6213eb | [] | no_license | EstebanLauKoo/testPython | fa9dc29878fedaa4cafce086b62276cb5cad542f | d9d54b6ab6980f434904ee4a8606199b49b13bc8 | refs/heads/master | 2020-05-09T15:48:19.930899 | 2019-10-17T03:14:55 | 2019-10-17T03:14:55 | 181,246,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | #!C:\Users\esteb\PycharmProjects\testPython\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.... | [
"4801459559Ee"
] | 4801459559Ee |
b53d51e90634a68addf27b8fb44bc961f55f096a | e5e2b7da41fda915cb849f031a0223e2ac354066 | /sdk/python/pulumi_azure_native/web/v20190801/web_app_diagnostic_logs_configuration.py | b955573f291c7fb008c4a782dcab13d6ce640e51 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | johnbirdau/pulumi-azure-native | b7d3bdddeb7c4b319a7e43a892ddc6e25e3bfb25 | d676cc331caa0694d8be99cb90b93fa231e3c705 | refs/heads/master | 2023-05-06T06:48:05.040357 | 2021-06-01T20:42:38 | 2021-06-01T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,078 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | johnbirdau.noreply@github.com |
53e8ec09614013b9b3ef59d207b098d21fc40046 | cacae0bef45a3716c64463709cb29804a47a7a36 | /crypto/backtest/multicoinbacktester/HistDataManager.py | 144566d8416be6948e47f3d8e6255be5adbd732d | [] | no_license | prometuse/myquant | d2c89612b41294bb128210469330f083a5c098d0 | 2ff0fa845bc7aa719546c3826d5a01cbd054a203 | refs/heads/master | 2023-07-08T10:39:51.760310 | 2021-08-12T08:12:10 | 2021-08-12T08:12:10 | 383,455,610 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | """
对历史的净值、年化、回撤信息进行快照记录
每个周期都有个instance
"""
class HistDataManager(object):
def __init__(self, init_cash, start_time):
self.net_array = [init_cash]
self.end_times = [start_time]
self.btc_pct_array = [1.0]
self.btc_price_array = []
self.pct_array = [1.0]
self.... | [
"kebi@xiaohongshu.com"
] | kebi@xiaohongshu.com |
f597975a435f3e4d97e6bbccfe4d07f900f11b58 | c36edf21f868315e1a1f63cf8a88398c926b3a8b | /jianzhioffer2/35_复杂链表的复制.py | bcae997330612f3f1daef99281f28dc6d597b8a6 | [] | no_license | kcmao/leetcode_exercise | 85037de7b148b7dc162c52c672510d260dfe3574 | e52e0e18b7cef923a5f0eb000968f4234199978f | refs/heads/master | 2020-04-11T01:57:50.254666 | 2019-08-04T13:02:28 | 2019-08-04T13:02:28 | 161,431,354 | 1 | 0 | null | 2019-05-27T14:35:49 | 2018-12-12T04:10:37 | Python | UTF-8 | Python | false | false | 1,874 | py | # -*- coding: utf-8 -*-
class ComplexNode(object):
def __init__(self, value, next=None, sibling=None):
self.value = value
self.next = next
self.sibling = sibling
def clone_complex_link(head):
insert_next(head)
connect_sibling_nodes(head)
return reconnect_node(head)
#链表后面添加节点
d... | [
"kc_mao@qq.com"
] | kc_mao@qq.com |
45c367e2b6e55ebf0655d04ec1a4b52b8f687ab5 | ed79aa13b08d737bdb464867d3014429b536f20b | /Principles of Computing/week7/poc_wrangler_gui.py | 54b0accc8089efa6040e23debf05dc492933736b | [] | no_license | mykhailo-dmytriakha/python | d04a7fdbe5e4aa537f0b1a89fdccf3a959e58759 | 6edffd14164cdb659a64f104dd4c683d33db332c | refs/heads/master | 2023-04-07T08:43:50.055850 | 2015-11-02T09:00:49 | 2015-11-02T09:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,593 | py | """
Word Wrangler GUI
"""
import SimpleGUICS2Pygame.simpleguics2pygame as simplegui
# Global constants
FONT_SIZE = 20
OFFSET = 4
ROW_HEIGHT = FONT_SIZE + OFFSET
COLUMN_WIDTH = 80
GRID_SIZE = [25, 4]
CANVAS_WIDTH = COLUMN_WIDTH * GRID_SIZE[1]
CANVAS_HEIGHT = ROW_HEIGHT * GRID_SIZE[0]
def draw_word(canvas, word, pos... | [
"mdmytiaha@playtika.com.ua"
] | mdmytiaha@playtika.com.ua |
563b81ef58b37b716b6b4764e3162f6d22c8d652 | 864713da7d1f08836df68c97605fa5a006973661 | /syncer.py | dfa86b38cfa6ace20786f593ca946d2b5ba6476b | [] | no_license | svl7/mao-orchestrator | dab7151c2663aff228b41c38c9760ef88bce5a78 | 74c07e532a0edc33b19fd99bd9f693e3f0e936e1 | refs/heads/master | 2022-11-09T19:57:28.685028 | 2020-06-18T13:04:26 | 2020-06-18T13:04:26 | 273,239,229 | 0 | 0 | null | 2020-06-18T13:00:01 | 2020-06-18T13:00:00 | null | UTF-8 | Python | false | false | 5,057 | py | import git
import datetime
import configparser
import requests
import json
import schedule
import shutil
import base64
import glob
from datetime import datetime
import audit
import logging
from etcd_client import write, get
logging.basicConfig(level=logging.DEBUG)
config = configparser.ConfigParser()
config.read('conf... | [
"pang@zhaw.ch"
] | pang@zhaw.ch |
8113e61753b63a1adf848618b5af0bff3890f601 | eecbf2f570b46e5a890847288144f2df8097d988 | /awlsim/core/instructions/insn_zr.py | f279e701766a8124bf9e436cb8dc38b157639018 | [] | no_license | ITI/PLCNet | 8ebb34dc57862abfc3a635fb3cee197601cade71 | 7f2c1a9d3a8a0ca8d8ab9a8027c65bc0ff0db64c | refs/heads/master | 2020-06-10T00:19:14.916423 | 2016-10-01T06:53:38 | 2016-10-01T06:53:38 | 193,533,866 | 2 | 0 | null | 2019-06-24T15:42:51 | 2019-06-24T15:42:50 | null | UTF-8 | Python | false | false | 1,490 | py | # -*- coding: utf-8 -*-
#
# AWL simulator - instructions
#
# Copyright 2012-2014 Michael Buesch <m@bues.ch>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
... | [
"vig2208@gmail.com"
] | vig2208@gmail.com |
5e959bda895dddc623e59dd72adc9c4788f1414b | 59adbf277a13f3a2ba3983827765f5fd390e76de | /Keras_CNN_PPO_StarCraft/ppo.py | 4d81b733f7820dc50266f61004ac78bf8bea082f | [] | no_license | oppa3109/Reinforcement-Learning-2 | dde58b783bbaa7a2780c37b2aa8565eb4e34493c | 2eead1fe012c23b1cf774ffa45cd96e4e8fd321c | refs/heads/master | 2020-04-01T16:40:32.413900 | 2018-10-17T03:31:32 | 2018-10-17T03:31:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,452 | py | import numpy as np
import copy
from keras.layers import Dense, Flatten, Input
from keras.layers.convolutional import Conv2D
from keras import backend as K
from keras.optimizers import Adam
from keras.models import Model
class PPOIQN:
def __init__(self):
self.state_size = (16,16,2)
self.action_size ... | [
"jangikim@JaeYoons-MacBook-Pro.local"
] | jangikim@JaeYoons-MacBook-Pro.local |
2f33946708e96988142b72cc588f156227951dad | 82aef51947f319caaae43f963139c5c73c80ad3c | /venv/bin/pip | eaf2a486ba5d3ba7b3148524cbdfcbe3888a7809 | [] | no_license | 15PFIEV-Mobile/Back_End | fe61c0fec2da03c2e986200dfa7a27661cad9030 | b6079d835c2ade86af4451c25693607cad01f70a | refs/heads/master | 2020-09-03T09:32:18.265657 | 2019-11-04T07:21:01 | 2019-11-04T07:21:01 | 219,436,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | #!/mnt/c/Work/MobileProgramProject/Back_End/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"tranhuuminhdung97@gmail.com"
] | tranhuuminhdung97@gmail.com | |
f45bd2b725edf19a4c9f528650707dc5900d8683 | 83959c80527cd727042bc3467b6e537fca8bef1a | /kbengine_stone_assets/scripts/common/tornado/platform/windows.py | b1d701de4fcc5ac181dde0a8d77764622db74e77 | [] | no_license | shanlihou/ttxiaoyouxi | 696697807cbf9d1fe41fb10fe64f8f29d5bd8864 | bca20863c4e1b5d6f3f835fee17c700292918a6c | refs/heads/master | 2020-04-26T13:12:13.153761 | 2019-03-03T12:36:04 | 2019-03-03T12:36:04 | 173,572,763 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | # NOTE: win32 support is currently experimental, and not recommended
# for production use.
#from __future__ import absolute_import, division, print_function, with_statement
#import ctypes # type: ignore
#import ctypes.wintypes # type: ignore
# See: http://msdn.microsoft.com/en-us/library/ms724935(VS.85).aspx
#SetH... | [
"shanlihou@gmail.com"
] | shanlihou@gmail.com |
8196628ce9f57044a85ddc3d821f773a8f4e9e87 | 1df91806ccab863df60c4f386fdfcae3654b5488 | /main.py | 31436318f06f60078d477d6ca797bf99452fcc48 | [] | no_license | Anurag-gg/discord-gateway | 51350e8a0f7a052ed59a6fe62b526c734eedc755 | fd8960502dd23a1bb8ebb064993a4645dd6abcfc | refs/heads/master | 2023-08-25T19:50:45.661426 | 2021-09-24T11:42:16 | 2021-09-24T11:42:16 | 408,313,939 | 2 | 0 | null | 2021-09-24T11:42:17 | 2021-09-20T04:50:38 | Python | UTF-8 | Python | false | false | 3,388 | py | import asyncio
import websockets
import json
from config import BOT_TOKEN
class Connect:
def __init__(self, token):
self.sequence = "null"
self.token = token
self.heartbeat_received = True
self.status = 'identity'
asyncio.run(self.main())
async def send_json(self, ws, ... | [
"dsanurag520@gmail,com"
] | dsanurag520@gmail,com |
943ac7709e5f4f17286ef6b651f71be631533082 | ad8566dace0e4ab4b419b1bb5bc055b095adce72 | /ics/migrations/0092_remove_processtype_description.py | acb8d0bee88038f50cc34248f7adb737cbad17e4 | [] | no_license | mayanb/wafflecone | 6c844c4c908f7c9b8e41d0d42faeefbfa8b9573e | fcd45a3b745232e52af3bdffa3fab25f13c7464d | refs/heads/staging | 2022-12-14T03:34:14.618001 | 2018-09-26T21:35:52 | 2018-09-26T21:35:52 | 74,408,398 | 1 | 0 | null | 2022-12-08T00:46:05 | 2016-11-21T21:40:59 | Python | UTF-8 | Python | false | false | 397 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-04-10 19:41
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ics', '0091_auto_20180406_1749'),
]
operations = [
migrations.RemoveField(
... | [
"steven@usepolymer.com"
] | steven@usepolymer.com |
ddc3a481f63796292ef24894d2303cc7aa6bb7c0 | de996400d54cc2073671e2bab976534e8263bacb | /molecule-design/moldesign/sample/__init__.py | 6a4baed4f892c46a1a9b987c82b38d3e5e6e5344 | [] | no_license | tskluzac/colmena | c865e233d0f4cea20f2d3e14ef73425aee5bf78f | 042ce37e5acc8a240845b8cce11effe832c1c913 | refs/heads/master | 2022-11-28T17:52:19.819967 | 2020-08-06T19:41:49 | 2020-08-06T19:41:49 | 285,658,744 | 0 | 0 | null | 2020-08-06T19:52:04 | 2020-08-06T19:52:03 | null | UTF-8 | Python | false | false | 42 | py | """Functions for sampling new molecules""" | [
"ward.logan.t@gmail.com"
] | ward.logan.t@gmail.com |
f16c623f2284f4fcc342ceffbc101ff396686148 | 59b3dce3c770e70b2406cc1dd623a2b1f68b8394 | /python_1/lessons/calculations.py | 9fc441721ed85e47fac26d241c4db2cfd87301c8 | [] | no_license | patrickbeeson/python-classes | 04ed7b54fc4e1152a191eeb35d42adc214b08e39 | b5041e71badd1ca2c013828e3b2910fb02e9728f | refs/heads/master | 2020-05-20T07:17:36.693960 | 2015-01-23T14:41:46 | 2015-01-23T14:41:46 | 29,736,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | print("""---------------
Some Calculations
---------------""")
print(314159e-5)
print(10**6, 1j**2)
print(3 + 2 * 4, 1 / 3)
print("-" * 20)
print((3.14159 * 16) ** 2)
print(3.14159 * 16 ** 2)
print(20 * "-")
print("------------------\nEnd of Calculations\n--------------") | [
"patrickbeeson@gmail.com"
] | patrickbeeson@gmail.com |
0e296f08acd7ff148357f120355d83bb5f2da93e | 655cf8b34ba341b884efe016b475d9f3c9afa0fb | /AWS_deployment/predict.py | 0859de47b7f55cba1f7952235a1ac4ae2598d752 | [] | no_license | ruizhang84/Udacity_Deep_Learning | 9d9f845e9cb05eea3f36370397f4659615a6f4eb | 6768cbd742302869eadf30e155b4f7ffef41c3f0 | refs/heads/main | 2023-02-25T19:53:38.795753 | 2021-01-30T05:02:17 | 2021-01-30T05:02:17 | 333,578,955 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,168 | py | import argparse
import json
import os
import pickle
import sys
import sagemaker_containers
import pandas as pd
import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
import torch.utils.data
from model import LSTMClassifier
from utils import review_to_words, convert_and_pad
def model_fn(mod... | [
"ruizhang84.mail@gmail.com"
] | ruizhang84.mail@gmail.com |
28f96418834a90cd0b5b509bc776c9f3b0b639c5 | c49193f4ceca8d3a98ceda70549beed3ad23c87e | /dir.py | 3ac16b286eadcf03d898e7091b50677f787c2d1a | [] | no_license | myousefnezhad/easyfmri-old | bec95d2879513f55d663d9afe0bf73fe4c832c46 | 1ef75d84e57649797faad13b9f2a2770a33ac120 | refs/heads/master | 2022-05-28T08:09:17.542375 | 2018-04-10T10:09:53 | 2018-04-10T10:09:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | import os
def getDIR():
return os.path.dirname(os.path.abspath(__file__)) | [
"myousefnezhad@outlook.com"
] | myousefnezhad@outlook.com |
100085c9ff8dfe960f7623aef842be6bb33faecb | b816109a8d8fc9c14613096179ece4e39caca26c | /demo/mysql.py | 80ccd0d77b8681e9d476676f0a4fca695e956b97 | [] | no_license | yuyiqiushui/WaiStar | 0ef16bd804ec6677c71713a876502283cfda8742 | cefa0fd706526f3785c387c10e343dc16c3d4001 | refs/heads/master | 2020-03-23T21:47:04.488667 | 2018-08-25T06:55:10 | 2018-08-25T06:55:10 | 142,132,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | import pymysql
# 打开数据库连接
db = pymysql.connect("localhost", "root", "", "cyl")
# 使用cursor()方法获取操作游标
cursor = db.cursor()
# SQL 插入语句
sql = "SELECT * FROM EMPLOYEE \
WHERE INCOME > '%d'" % (1000)
try:
# 执行SQL语句
cursor.execute(sql)
# 获取所有记录列表
results = cursor.fetchall()
print(results)
for ... | [
"yu_qiushui@163.com"
] | yu_qiushui@163.com |
f7d45287bca0ec55ea32d9ed5da25480ec9a3285 | e608c9525e88ba3589cb4a2fd47f6a2e0442bfb2 | /pycorrector/seq2seq/corrector_model.py | 02bd512d259867d51f01a8b89dbf7780a9222e09 | [
"Apache-2.0"
] | permissive | YC-wind/pycorrector | 9f5c14d2cc0cf6f53ff253c6035cf816e1f334d8 | c68ea194a95949f6d6ffb7cb33dfc6679e1bbc9e | refs/heads/master | 2020-03-16T21:56:53.394037 | 2018-05-02T04:05:17 | 2018-05-02T04:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,328 | py | # -*- coding: utf-8 -*-
# Author: XuMing <xuming624@qq.com>
# Brief:
import random
import numpy as np
import tensorflow as tf
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import embedding_ops
from tensorflow.python.ops import math_ops
from tensorflow.python.ops import nn_ops
import seq2seq
... | [
"507153809@qq.com"
] | 507153809@qq.com |
a4c56e977fcf8aa0aa8b1d5700eac711f0e99616 | e1ffebca6a0f185663c779462e3ca27866f557b8 | /GROUP_project/project/api/migrations/0002_auto_20191204_0429.py | 9dcf91bc2afb5abac10e0bf7a31e18ff8156c88e | [] | no_license | asselyer/Backend2019 | d8d85d7850261880fe4aeef9092b0a8c7b1b6767 | ec5931e2bd22ec62e68592a4199c00184f4dacc3 | refs/heads/master | 2020-07-24T13:38:21.246351 | 2019-12-04T03:16:27 | 2019-12-04T03:16:27 | 207,944,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,680 | py | # Generated by Django 2.2.3 on 2019-12-03 22:29
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('api'... | [
"asel.yer98@gmail.com"
] | asel.yer98@gmail.com |
d50db3f0895bfcfe6b6a9eb5f62c99302983871e | a29c6e83ae4f9010941d15c8fd4cfc67680bb054 | /pandas/pandas_sample.py | 11ec8f3f3066928a773948c21c7d305883c6a906 | [] | no_license | ym0179/bit_seoul | f1ff5faf4ae20fbc8c0e2ed10a005f8bd4b2c2b8 | 14d1fb2752312790c39898fc53a45c1cf427a4d1 | refs/heads/master | 2023-02-27T19:52:23.577540 | 2021-02-08T00:30:16 | 2021-02-08T00:30:16 | 311,265,926 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,632 | py | #Day9
#2020-11-19
import pandas as pd
import numpy as np
from numpy.random import randn
np.random.seed(100)
data = randn(5,4) #5행 4열
print(data)
df = pd.DataFrame(data, index='A B C D E'.split(),
columns='가 나 다 라'.split())
print(df)
data2 = [[1,2,3,4,], [5,6,7,8], [9,10,11,12],
[13,14,15,16... | [
"ym4766@gmail.com"
] | ym4766@gmail.com |
282003de7549f1fec022667910ea65020374ae23 | 26706446b4d2b0b61fa3caf4b49b121605d22dc7 | /amazon book scraping/content/amazon_scraping/amazon_scraping/items.py | e5452cfbfec12f946210d8967d10939dec33ade4 | [] | no_license | shreenathchavan/amazon_books_scraping | 368ebecf5eea07137198bdb30e089900e99f0815 | 09c07aa846a2dace0396a87030cfcd033114c410 | refs/heads/master | 2020-08-26T11:19:06.715865 | 2019-10-23T08:24:59 | 2019-10-23T08:24:59 | 217,004,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class AmazonScrapingItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
product_name = scrapy.Field()
... | [
"noreply@github.com"
] | shreenathchavan.noreply@github.com |
86762ac129647cb737b6d6c2cca219b9978b9803 | 57845f9780811164e16917345063485db9c2f601 | /Opinionated/Opinionated/urls.py | d61889940a3ef4e14e2b8f782895ec7c64b59bbf | [] | no_license | popsonebz/Django_Projects | 19e2f710c0d6160cff3c441f8e0f502b9a368e52 | e87b4a09d6f759a6108c96cad8e8f83dc9479e3f | refs/heads/main | 2023-06-13T03:08:41.730901 | 2021-06-27T19:26:35 | 2021-06-27T19:26:35 | 382,118,013 | 0 | 0 | null | 2021-07-01T18:06:35 | 2021-07-01T18:06:34 | null | UTF-8 | Python | false | false | 1,074 | py | """Opinionated 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-b... | [
"odedereoluwapelumi13@gmail.com"
] | odedereoluwapelumi13@gmail.com |
8f001741a050048888b40125820ca38f28f4b9c6 | bf470bcf0910b2d3713d898677e91af1da5a2664 | /release.py | 7c8abaa7ddd3cecad54a91e01d47d19d522aac12 | [] | no_license | JRepoInd/repository.boogie.dist | a8e18ef3b01601ccb4072d48c1e674fc7d9d4266 | c9df894edda98c4786c40a9c3eb02b758117b536 | refs/heads/master | 2021-06-12T04:17:27.213095 | 2015-08-22T22:07:03 | 2015-08-22T22:07:03 | 41,871,615 | 0 | 0 | null | 2021-06-02T15:45:21 | 2015-09-03T16:47:18 | Python | UTF-8 | Python | false | false | 6,187 | py | # -*- coding: utf-8 -*-
import sys
import os
import shutil,stat
import urllib2
import urllib
import md5
import datetime
import time
import re
from distutils.version import StrictVersion, LooseVersion
from xml.dom import minidom
import shlex
from subprocess import Popen, PIPE
def runcmd(cmd,cwd):
args = shlex.split(c... | [
"huseyinbiyik@hotmail.com"
] | huseyinbiyik@hotmail.com |
787c24412b397526436422830135624073c3a5f3 | 6c6b8b967bf1690d815ba8223a15abf3f8862fd7 | /Generation/GAN/DCGAN/Predictor.py | 37067cf92a23c6b09ca365927a39597f0b4d9ce3 | [] | no_license | ihatasi/Learning | 82450c1d05493e83409265bd28ab881dbc035222 | 89c03dcce586d403aee1e0f7c36fadbce1c8c881 | refs/heads/master | 2020-04-29T22:54:23.803216 | 2019-11-27T10:25:40 | 2019-11-27T10:25:40 | 176,462,219 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | #!/usr/bin/python3
import chainer, argparse, os
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
from chainer import Variable
parser = argparse.ArgumentParser(description="DCGAN")
parser.add_argument("--n_dimz", "-z", type=int, default=100)
parser.add_argument("--dataset", "-ds", type=str, def... | [
"ihatasi@gmail.com"
] | ihatasi@gmail.com |
1bc9d03fd65b59a18d155611ec479ee53115593a | dca7588fbabca0d0e52dd4e5a29d5720aa8253a7 | /app_users/views.py | a2ee2e5dd3396feed65bdf85a5197f119b90033f | [] | no_license | raiatul14/cms | 00c93b02774f30ba6d7725527ee83608c9c2d996 | 5597ebac7bdf478865bae5351f8e47df67ed934e | refs/heads/master | 2022-12-19T19:16:17.960711 | 2020-10-13T04:32:52 | 2020-10-13T04:32:52 | 303,295,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from django.shortcuts import render
# Create your views here.
from .views import * | [
"atul.rai@routemobile.com"
] | atul.rai@routemobile.com |
98cd32da38e634d818253e5c656b496ead30b1f9 | 9fa1e85560401833143ce6e6f5867964e96cf070 | /fastapi_websocket/main.py | 0135ce530487b61eb699425ff410068cec8c2c60 | [] | no_license | red-fox-yj/Clock-In-Server | 50c11e6737d7fd0974e4fd39ec0c3556a801cc4d | 80dc82e6d3f85d3d98f34047ae3544866aa2dab1 | refs/heads/master | 2023-03-05T15:00:56.811226 | 2021-02-21T03:18:14 | 2021-02-21T03:18:14 | 334,340,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,388 | py | from fastapi import FastAPI, WebSocket
from fastapi.responses import HTMLResponse
import uvicorn
import ast
from distribution import _search, _modify, _read
app = FastAPI()
html = """
<!DOCTYPE html>
<html>
<head>
<title>Chat</title>
</head>
<body>
<h1>WebSocket Chat</h1>
... | [
"redfox@chancefocus.com"
] | redfox@chancefocus.com |
2539ab608f51a1b8084f54a8df8cc8edca59a28f | d684ac6e0adfd85851c05bb9dac484bfb4d50eb9 | /lab9/DNS_AdrianArdizza_2006524896_C_lab9__/AdrianArdizza_C_fantasi_terakhir.py | cb0c8182697c1bb2668d332007778f25bedb8b67 | [] | no_license | Meta502/lab-ddp-1 | 743dc8f8f72ae52a505788c80fe91d28c74c681d | fc04cfc1a7e85b32eee36f1158d94fce9c9a0251 | refs/heads/master | 2023-02-08T13:23:33.128796 | 2020-12-30T19:03:10 | 2020-12-30T19:03:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,999 | py | class Hero():
def __init__(self, name, hp, attack):
"""
Constructor untuk class Hero, akan dipanggil saat inisiasi objek dan saat dipanggil dengan super().__init__
"""
self.__name = name
self.__attack = int(attack)
self.__hp = int(hp)
# Getter
def get_name(se... | [
"adrian.ardizza@gmail.com"
] | adrian.ardizza@gmail.com |
bf56ed2037a8d92ae1cd83b1ca14a15536c85df2 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2385/60677/251112.py | a199b651fd4db5634ac382da13966aee61e6f9bc | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | times=int(input())
for i in range(times):
n=int(input())
k=1
answer=1
while n-2*k+2>0:
answer+=n-2*k+2
k+=1
if n==4:
answer=8
print((answer)%(10**9+7)) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
2e67dafe7fac1cbbc5927705e346ad37a6ed6c89 | fcde32709c62b8ee86da459bb7c8eee52c848118 | /爬虫1903/day09/Baidu/Baidu/settings.py | 6b94193878c3f25ccff9e68ecba1f7857d9f4e73 | [] | no_license | klaus2015/py_base | 6b92d362c3d7dc0e09205a037f4d580381dac94d | ec32c731c1c2f6a0dab87f1d167397e4fa86b8de | refs/heads/master | 2022-07-28T15:49:30.383648 | 2020-05-11T15:31:43 | 2020-05-11T15:31:43 | 261,777,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,181 | py | # -*- coding: utf-8 -*-
# Scrapy settings for Baidu project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topics/... | [
"598467866@qq.com"
] | 598467866@qq.com |
b344b015fd8b1fc9a5d0dde7daab89f194665ebf | bb828b46527bf15011315b7d67d8b20b05f8858c | /innovate/migrations/0003_auto_20210211_0122.py | 4ceb135c5353ec0162fc90772b8faacbc2a0c8d4 | [] | no_license | Rushilwiz/launchx | 7b334da60eab38ade5db8a9868caf62f68e207f5 | 85821a6fcd91c09c1579787f31a388119ae237c3 | refs/heads/master | 2023-03-08T19:55:15.080057 | 2021-02-21T01:27:25 | 2021-02-21T01:27:25 | 334,251,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # Generated by Django 3.1.6 on 2021-02-11 01:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('innovate', '0002_auto_20210208_1549'),
]
operations = [
migrations.AddField(
model_name='competitor',
name='county',... | [
"rushilwiz@gmail.com"
] | rushilwiz@gmail.com |
8b515c6c433d4a5d55c450239b53ce47683b707d | 31c8e8cd5e36c62f22ae39a26bc9cf73d22f62ea | /tasks/tasks/webapp/models.py | 4cb1f81a7dfea6dd6e5e2510ff3c0dfc619dd269 | [] | no_license | kadyrkulove/lab_work39 | 52ee57529dedc12e116312cbc2693df4dae3c108 | 1ca9a4217f3f68a79021b7287512d7e61890faae | refs/heads/master | 2020-04-10T17:18:43.235739 | 2018-12-10T13:08:09 | 2018-12-10T13:08:09 | 161,170,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | from django.db import models
# Create your models here.
class Task(models.Model):
title = models.CharField(max_length=50, null=False, blank=False, verbose_name='Задача')
description = models.TextField(max_length=1000, null=True, blank=True, verbose_name='Описание')
status = models.CharField(max_length=20,... | [
"kadyrkulove@gmail.com"
] | kadyrkulove@gmail.com |
289b20a0b72d988bd1e32bbce7bf486152eca97b | b62bd0e4c83ce06ee0fbe1e99131fdaf79908cec | /test/integration/ggrc/models/mixins/test_with_action.py | d5b7ecd0556678d5992cb460340bf0d0d8820893 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ch-t/ggrc-core | 8cbacf674ed4a319da7f370f5d40bbfdb70791cd | c1ff8c0319dc3bad59f35525227e2b4c9a505841 | refs/heads/dev | 2021-01-19T17:05:31.961848 | 2017-08-22T05:28:39 | 2017-08-22T05:28:39 | 101,045,324 | 0 | 0 | null | 2017-08-22T09:23:09 | 2017-08-22T09:23:09 | null | UTF-8 | Python | false | false | 19,989 | py | # Copyright (C) 2017 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""Integration test for WithAction mixin"""
import copy
from ggrc.models import all_models
from integration.ggrc import api_helper
from integration.ggrc import TestCase
from integration.ggrc.generator im... | [
"alena.sheshko@gmail.com"
] | alena.sheshko@gmail.com |
af3d099f71d75651e8da95d4362fc5e824ea06bf | 1886065d10342822b10063cd908a690fccf03d8b | /appengine/findit/waterfall/analyze_build_failure_pipeline.py | df1014f2a3c07efd6b1e1306d39bff06edb9fa1f | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/chromium-infra_A6Y5 | 26af0dee12f89595ebc6a040210c9f62d8ded763 | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | refs/heads/master | 2023-03-16T15:33:31.015840 | 2017-01-31T19:55:59 | 2017-01-31T20:06:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,205 | py | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from common import appengine_util
from common.pipeline_wrapper import BasePipeline
from common.pipeline_wrapper import pipeline
from libs import time_util
fr... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
727bfe5706d30425d6dc1953d30b21f36aeb2901 | 74eafe55252eff97fd9a2e1e6564ecf243f7c058 | /oop/squares_gen.py | ab286f9884b1857157fe12a048b69b5aa72e1f91 | [] | no_license | srikanthpragada/demo_24_june_2019 | c5ddef71eb721367d656924d312e9ca7ac80c34a | fa7aca273d1ffe6ded34795a639910ab91ce66a0 | refs/heads/master | 2020-06-11T10:19:22.384096 | 2019-08-01T15:28:26 | 2019-08-01T15:28:26 | 193,929,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | def squares(num):
for i in range(1, num + 1):
yield i * i
for n in squares(5):
print(n)
| [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
96156b6d36634e172c1e69fe6a700c58280d6896 | 311b5a3603fa3e321b2a0dd0d1dbf99922cf1fcd | /src/GUI/main.py | a9c2397ecccb5209c85de8946073792baf7d4f28 | [] | no_license | grmahs/sphero-project | 012215b45d757e5ef3d61734ba4624339e9ac1ba | 2779ff8d8452093b04e8914f62cff7b37f32350c | refs/heads/master | 2020-06-01T13:20:00.720139 | 2019-07-16T21:01:49 | 2019-07-16T21:01:49 | 190,792,447 | 0 | 0 | null | 2019-06-07T18:39:14 | 2019-06-07T18:39:14 | null | UTF-8 | Python | false | false | 1,372 | py | import contextlib
with contextlib.redirect_stdout(None):
import pygame
import r2d2
import server
import sys
pygame.init()
serv = server.Server(None)
serv.start()
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
GREEN = (0, 255, 0)
RED = (255, 0, 0)
PURPLE = (255, 0, 255)
size = s_w, s_h = (500, 500)
screen = pygame.di... | [
"josephcappadona27@gmail.com"
] | josephcappadona27@gmail.com |
16db3ba118bc263f264b8f33598c0d0ecd59ba1a | b2805a484e5af57aaee093be1c22895621cefcce | /appsrv/xchgb/aes.py | a14400c549450725e5d23aee856e16e7eeb79d51 | [
"Unlicense"
] | permissive | jzvelc/xchgb | 2cb30a9dd9eb09f34e3ec1781af417e0bf0bac94 | 5a2e7ef7ef7686c4ba06127fa8022beb9fb54a34 | refs/heads/master | 2021-05-26T18:10:00.159785 | 2011-09-22T07:05:20 | 2011-09-22T07:05:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | import base64, random, string
from django.conf import settings
from Crypto.Cipher import AES
# the block size for the cipher object; must be 16, 24, or 32 for AES
BLOCK_SIZE = 32
# the character used for padding--with a block cipher such as AES, the value
# you encrypt must be a multiple of BLOCK_SIZE in length. Thi... | [
"greg@ghughes.com"
] | greg@ghughes.com |
350dcd30a907105662e6bda717ac24f31ad8370f | 2136701f48ad131084b331039d864f85988cf451 | /spider/.svn/pristine/35/350dcd30a907105662e6bda717ac24f31ad8370f.svn-base | c6842a58e1a64674b74afbe2cc40404b328236bd | [] | no_license | cuiyulin77/other | 9d374a47d482f1c3f9ef0f3ac4429487643b04b9 | c00cafaf7607452966fa523c4d0b04edb7f153e6 | refs/heads/master | 2020-05-18T04:24:26.095929 | 2019-04-30T06:37:53 | 2019-04-30T06:37:53 | 184,169,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
from pymysql import *
import re
class WbUserPipeline(object):
def process_item(self, item, spider):
return item
... | [
"494658565@qq.com"
] | 494658565@qq.com | |
91079f8f88ab0a1167f775522a0138301831fe3b | 7ee7c0c67ffbae807005ed6b9f20f3f829125ae7 | /bg.py | 8c6caa1044d80a10e670364654faec627ffb78d3 | [] | no_license | bradenrupp/background | 86998c435e9702ea4fec72016ea01131aa2d878d | cbf7b3b8f88089aa215d8296742824033a2ba8bf | refs/heads/master | 2020-09-27T03:56:33.269880 | 2019-12-06T23:41:47 | 2019-12-06T23:41:47 | 226,423,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | #!/usr/bin/env python3
import ctypes
import os
import time
def change_bg():
pathToBmp = os.path.normpath("C:/Users/Public/.bg.bmp")
SPI_SETDESKTOPWALLPAPER = 20
ctypes.windll.user32.SystemParametersInfoW(
SPI_SETDESKTOPWALLPAPER, 0, pathToBmp, 0)
if __name__ == '__main__':
while True:
... | [
"Rupp.Braden@principal.com"
] | Rupp.Braden@principal.com |
ac684f0dba65c38917b56bb8e3c8b63747f120b8 | d5588bc2feccee17ed8f40d524acd66f47bdf228 | /src/Problem/Selectors/value_selector.py | 811f08df2a98b6890744d66270d54f33bd2b1788 | [] | no_license | AltiTorie/CSP | cb477edbb755686095bf72af357889cadf193fa7 | c2ad8086c1f77e66a1c85b30bb448e5647386620 | refs/heads/master | 2023-03-28T21:33:29.255717 | 2021-04-19T22:00:48 | 2021-04-19T22:00:48 | 357,532,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,687 | py | from abc import ABC, abstractmethod
from src.Problem.problem import Problem
class ValueSelector(ABC):
def __init__(self, csp: Problem):
self.csp = csp
@abstractmethod
def select_values_order(self, assignment, variable, domains=None):
...
class TakeOriginalValueSelector(ValueSelector):
... | [
"Arek.ste99@wp.pl"
] | Arek.ste99@wp.pl |
93320c27e48d82cb9a176e9aed8825a5e95f31a2 | cee3e57aaae9eaeb16f696e3cdad5f32c3af6861 | /evennia/server/portal/mssp.py | 5ff0a7b319a0e8139ee16b4a057e3b81c4e8bf0c | [
"BSD-3-Clause"
] | permissive | Sa1tC/evennia | 8ef7fae9cbeb2d46bd6cdf5c5482331f9e0846ff | 1248428d132fde1b975678b53e22c1ca68a73a43 | refs/heads/master | 2021-01-23T12:32:03.594263 | 2017-05-22T06:21:25 | 2017-05-22T06:21:25 | 93,164,000 | 0 | 1 | null | 2017-06-02T12:36:55 | 2017-06-02T12:36:55 | null | UTF-8 | Python | false | false | 6,861 | py | """
MSSP - Mud Server Status Protocol
This implements the MSSP telnet protocol as per
http://tintin.sourceforge.net/mssp/. MSSP allows web portals and
listings to have their crawlers find the mud and automatically
extract relevant information about it, such as genre, how many
active players and so on.
"""
from bui... | [
"griatch@gmail.com"
] | griatch@gmail.com |
aef3c3624058a9104e4a84e3fdb7e33668a84b8c | 90d4b790f9a7198760fdbcfad6abd2da851f2f4e | /0x0F-python-object_relational_mapping/3-my_safe_filter_states.py | b2b27fdbdcc3fbb2c02bd4aa205bc8225158b438 | [] | no_license | Murega14/holbertonschool-higher_level_programming | 2817a532d7d6739ed046e350903e394ed1bae0a3 | f29a4c4e74c01798cb51bfe5160432569a1ca833 | refs/heads/master | 2023-03-15T08:22:06.926537 | 2018-09-09T20:46:33 | 2018-09-09T20:46:33 | 572,548,803 | 1 | 0 | null | 2022-11-30T14:11:06 | 2022-11-30T14:10:32 | null | UTF-8 | Python | false | false | 643 | py | #!/usr/bin/python3
# gets all states via python yee boi with your own state SAFE
def main(args):
# gets all state stuff SAFELY
if len(args) != 5:
raise Exception("need 4 arguments!")
db = MySQLdb.connect(host='localhost',
user=args[1],
passwd=args[... | [
"Dkazemian@gmail.com"
] | Dkazemian@gmail.com |
7d28b9591a02b80200b7b5c4108b1294bb6c007c | 273eab596c6c92e23b41b85b358e8e6deb463511 | /lambda_function.py | 824e62f6ff2502b04c351a0f1d25c741970611dd | [] | no_license | khanarbaj/openCV-app | 5f516b6124d6c3a98ad7caa0699e64f8a3af0075 | 9a85419d1e5e3374a679eaf33554e25eae30679c | refs/heads/master | 2022-12-13T00:45:40.491607 | 2020-09-12T19:02:02 | 2020-09-12T19:02:02 | 295,004,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | from tkinter import *
window = Tk()
window.geometry("500x500")
window.resizable(0, 0)
# Making lambda fuctions
def show1(e): return window.configure(background="red")
def show2(e): return window.configure(background="green")
def show3(e): return window.configure(background="blue")
bt1 = Button(window, text="... | [
"khanarbaj@gmail.com"
] | khanarbaj@gmail.com |
12cf3bfd6a7899ebfae769750b1a5a17ec2edcfe | 1b9fb0b96327d155b7d076daaae749000b9a12b0 | /cs214/django/mysite/west/views.py | c969fb0097c738485fc518b28576626fa514ac09 | [] | no_license | wangjiezhe/shiyanlou | c929d7ae81ccec4d019e7eaee9cc33b42632c84e | 55f1665814c8a7ce34811fd61126811a9f91e057 | refs/heads/master | 2020-04-15T19:54:02.864363 | 2016-04-27T03:03:05 | 2016-05-10T12:11:49 | 39,290,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | # -*- coding: utf-8 -*-
from django.shortcuts import render
from django.http import HttpResponse
from west.models import Character
from django.core.context_processors import csrf
from django import forms
# Create your views here.
class CharacterForm(forms.Form):
name = forms.CharField(max_length = 200)
def first... | [
"wangjiezhe@gmail.com"
] | wangjiezhe@gmail.com |
60a0fbaf539bce85c0bf31da706243dab58d5230 | ea5ff0005d6409872dd42981cf22eb601e2f827c | /histogram.py | d295fd4c0c7eaa4ef21fc0b124ee79330e1ba2d7 | [] | no_license | muhamuttaqien/corn-soil-identifier | ccd0ed9cc91a935155287e26687d82a02e5409d4 | a235d96811bcc560dc1d7c4cb267ce5d2b2b5b70 | refs/heads/master | 2021-09-02T22:56:18.019044 | 2018-01-04T01:17:27 | 2018-01-04T01:17:27 | 115,904,668 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | #!/usr/bin/env python
import cv2
import math
import numpy as np
from matplotlib import pyplot as plt
def analyze_histogram(img):
"""
find and analyze histogram
"""
hist = cv2.calcHist([img],[0],None,[256],[0,256])
return hist
def plot_histogram(img):
"""
plot and analyze histogram for ... | [
"angga.muttaqien@ruma.co.id"
] | angga.muttaqien@ruma.co.id |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.