blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3cc0e4bf53df0668f30ac7ba6dff10ef21a8d6fe | 241cc30b91e910caf6a9a47a156813ccc495e069 | /oauth/admin.py | ec0e3c997b041390b5ebe6a8fdf6ec0aa0cdb55a | [
"MIT"
] | permissive | colinshin/DjangoBlog | 9f430ffb3faae32553b2ec17a2351aa7dec36ce7 | c6277d2c35b021806be0fa623f1451c201e9677d | refs/heads/master | 2022-11-20T09:58:17.937199 | 2022-10-28T03:36:18 | 2022-10-28T03:36:18 | 266,242,440 | 1 | 0 | MIT | 2020-05-23T01:42:35 | 2020-05-23T01:42:34 | null | UTF-8 | Python | false | false | 1,649 | py | import logging
from django.contrib import admin
# Register your models here.
from django.urls import reverse
from django.utils.html import format_html
logger = logging.getLogger(__name__)
class OAuthUserAdmin(admin.ModelAdmin):
search_fields = ('nikename', 'email')
list_per_page = 20
list_display = (
... | [
"liangliangyy@gmail.com"
] | liangliangyy@gmail.com |
5b3f2db8cc204bac6bf1646b7eecb502aef8925b | 606ce598a58ec7aced81bac65283c53090393742 | /old-version/train_mini_adam.py | 88a28ed3d0978c7e1687b786b0c6edc8309b7c08 | [] | no_license | 4knahs/MAML-Pytorch-Multi-GPUs | 67cbea09b4aa653cdccc418625f027b34599db2e | 909df4f26f9a8009111371a0fb4df31de7afb937 | refs/heads/master | 2023-01-22T14:47:40.273586 | 2020-12-04T10:22:47 | 2020-12-04T10:22:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,797 | py | import torch, os
import numpy as np
from MiniImagenet import MiniImagenet
import scipy.stats
from torch.utils.data import DataLoader
from torch.optim import lr_scheduler
import random, sys, pickle
import argparse
from meta import Meta
from torch import optim
import plot
import json
import t... | [
"noreply@github.com"
] | noreply@github.com |
be87e3e3527ab307193055be701682d413b1cc16 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/documentdb/v20160331/database_account_sql_container.py | 191b17f169c9af8d1dff8099523bd2e48926fa88 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,736 | 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"
] | noreply@github.com |
d1dbd07f48ee61b07f1e78d5558b8b346bf2a3be | 297d3bd029525467f97b6d2eb0145917fad24c7d | /src/environment.py | c135e48ebd4fdc9fca0cf34d0d7d389d7a4e7ae1 | [] | no_license | charleswilmot/intrinsic_motivations_box2d | a666fa88ba99bd9b3df2cbdb1f69f0d6c7a4f75e | 3ed1f3dcd4053f74ad5f72bfaba3f75e9285eb90 | refs/heads/master | 2021-07-24T06:52:32.071769 | 2019-05-22T14:08:08 | 2019-05-22T14:08:08 | 157,392,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,621 | py | import matplotlib.pyplot as plt
from matplotlib.patches import Polygon
import jsonpybox2d as json2d
import numpy as np
import tactile_map as tm
import pid
from PIL import Image, ImageDraw
import pickle
def discretize(arr, mini, maxi, n):
discrete = np.tile(np.linspace(mini, maxi, n), list(arr.shape) + [1])
di... | [
"charles.wilmot2@hotmail.fr"
] | charles.wilmot2@hotmail.fr |
5c3a60649eb2400e972b1840d8c7d287239ed90e | 7dcb8b52d2c7bd223a86fa93e40c0153b0959206 | /Scapy/scapy_arp.py | bde9a0f1fae8177babb542946b96ce398f81e413 | [] | no_license | gast04/CTF_ToolBox | 2e36f81f083a1f4518a817e5fcaf8dfaa44e0b31 | a1d74448a936e3b8ba1288edc099794776582fbd | refs/heads/master | 2021-10-25T18:50:03.154094 | 2021-10-24T13:08:39 | 2021-10-24T13:08:39 | 94,090,071 | 15 | 1 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | from scapy.all import *
from time import sleep
target_ip = "10.157.13.10"
#target_mac= "52:54:00:12:35:02"
target_mac= "08:00:06:99:52:31"
#target_ip = "10.157.13.33"
#target_mac= "F4:30:B9:59:BF:D4"
src_ip = "10.157.13.1"
mymac = "14:58:d0:08:e0:09"
while(True):
# create arp packet
arp_frame = ARP(
pdst... | [
"kurt.nistelberger@student.tugraz.at"
] | kurt.nistelberger@student.tugraz.at |
93cfba5d6f9b85fb7a5f99acd5f189d6d59f72da | 15e44b9b5724984dec0d101b6dc1f85d38b6267c | /e18_4_sum.py | aff1570a39a9de84463ad6f05efac8333257a848 | [] | no_license | thinkreed/python-algo | 66013e6929169ff633ed5b27bddfa8a958b0349c | 663942786a9d83f28934d5685600aa3672fde2ea | refs/heads/master | 2021-01-19T20:27:06.904571 | 2017-07-19T15:33:05 | 2017-07-19T15:33:05 | 83,753,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,950 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
__title__ = ''
__author__ = 'thinkreed'
__mtime__ = '2017/3/19'
idea from https://discuss.leetcode.com/topic/22705/python-140ms-beats-100-and-works-for-n-sum-n-2/4
"""
class Solution(object):
def fourSum(self, nums, target):
"""
:type nums: List[... | [
"thinkreed2017@outlook.com"
] | thinkreed2017@outlook.com |
f593ce8153239cc825b0b7f43cdb15c9dbe9f75c | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/esphome/test_dashboard.py | d8732ea0453f0b77d1f6fc912cdf09b767325fe9 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 7,076 | py | """Test ESPHome dashboard features."""
import asyncio
from unittest.mock import patch
from aioesphomeapi import DeviceInfo, InvalidAuthAPIError
from homeassistant.components.esphome import CONF_NOISE_PSK, dashboard
from homeassistant.config_entries import SOURCE_REAUTH, ConfigEntryState
from homeassistant.core import... | [
"noreply@github.com"
] | noreply@github.com |
719d39524a06e80933f3a7d562881d895cb36b2d | 19fd2ef63c181ff4b88ec10f425faa5666359fba | /elections/2008/primary/states/fl/reader.py | da32e94663a4ebae8f7d4b3adc21e32835c0df05 | [] | no_license | saravanarajan/gmaps-samples | 2a83240d8d75829d74902c6348e93d3a0c30eefd | beaf333c967d5d54b2e8a46aa7bf0ecc899b6ade | refs/heads/master | 2016-09-06T16:21:40.935416 | 2015-01-12T00:31:21 | 2015-01-12T00:31:21 | 35,718,303 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 8,941 | py | #!/usr/bin/env python
# reader.py - vote reader for SC primary
import private
import re
import urllib
import csv
candidates = {
'all': [],
'democrat': [
{ 'name': 'biden', 'lastName': 'Biden', 'fullName': 'Joe Biden', 'color': '#20FF1F' },
{ 'name': 'clinton', 'lastName': 'Clinton', 'fullName': 'Hillary Clinto... | [
"gearylabs@bd4feb60-9d29-0410-bcad-4118a2cb9d5c"
] | gearylabs@bd4feb60-9d29-0410-bcad-4118a2cb9d5c |
9fc8cce6cf2b2dac856ff02a8b6364aca1988115 | 24044835dd6d8cace11585fc56a2279b6df64664 | /script/RNAN_DN/code/model/nlranmask.py | c959a049a43e19915741542c8c3a9f46f7bcfa57 | [] | no_license | pkusc/ASC-SR | 0d565f282dd29bd41123c0a38e8eb6bd9d83954e | fc95a65e2e3e5496b0d5f85308675a064ce6567e | refs/heads/master | 2020-04-26T11:12:28.209207 | 2019-03-02T23:33:07 | 2019-03-02T23:33:07 | 173,509,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,811 | py | from model import common
import torch.nn as nn
def make_model(args, parent=False):
return NLRANMASK(args)
### NLRAN
### residual attention + downscale upscale + denoising
class _ResGroup(nn.Module):
def __init__(self, conv, n_feats, kernel_size, act, res_scale):
super(_ResGroup, self).__init__()
... | [
"yzs981130@126.com"
] | yzs981130@126.com |
ab5d23ec379049b4e3f8029c3f3f847ae82cbc18 | 84e63804aaeeff4f60c21a9ab8aa537a66666744 | /bloxby/urls.py | 15f3fb7212331ef6cca41397b67b53a46ddaaacb | [] | no_license | damey2011/django-bloxby | 5a680207df6a93f9554c589c497f1b66f3f86742 | ca5a03b8f79a225b7bccb389a67aa816e679f5e8 | refs/heads/master | 2023-03-15T18:32:14.376624 | 2021-01-01T17:31:22 | 2021-01-01T17:31:22 | 253,669,545 | 1 | 2 | null | 2023-03-04T19:35:39 | 2020-04-07T02:43:45 | Python | UTF-8 | Python | false | false | 434 | py | from django.urls import path
from bloxby import views
urlpatterns = [
path('ftp/receive/', views.ReceiveFTPItemsView.as_view(), name='receive'),
path('ftp/auth/', views.AuthFTPUserView.as_view(), name='auth'),
path('page/', views.PageRenderView.as_view(), name='render-page'),
path('import-site/', view... | [
"neefemee@gmail.com"
] | neefemee@gmail.com |
305a55b03bc6752fff93dd33556cc4ef27820993 | e519a3134e5242eff29a95a05b02f8ae0bfde232 | /services/control-tower/vendor/riffyn-sdk/swagger_client/models/add_member_to_team_body.py | f83124dfb5e3fd80c2af107a3217bfcee4bf2ca8 | [] | no_license | zoltuz/lab-automation-playground | ba7bc08f5d4687a6daa64de04c6d9b36ee71bd3e | 7a21f59b30af6922470ee2b20651918605914cfe | refs/heads/master | 2023-01-28T10:21:51.427650 | 2020-12-04T14:13:13 | 2020-12-05T03:27:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,192 | py | # coding: utf-8
"""
Riffyn REST API
### Vocabulary Before you begin, please familiarize yourself with our [Glossary of Terms](https://help.riffyn.com/hc/en-us/articles/360045503694). ### Getting Started If you'd like to play around with the API, there are several free GUI tools that will allow you to send req... | [
"jaceys.tan@gmail.com"
] | jaceys.tan@gmail.com |
27b3c2c3ef5f55646bb766bd7d37a9deab94da26 | 3ec8f5a39ac16676f0255b6f2c5cd4deac0923d1 | /drf_auth_demo/blogs/views.py | d7703f7d349a025226d5d57c4abcc507589ddabb | [] | no_license | DritiTannk/drf-auth-demo | c13b01ee1b864c2a828f77fb715c8bdcfd503ab8 | a7c40bfa61fd69c66496cf64e3a8faf3c5d7e43b | refs/heads/master | 2022-11-24T17:04:50.619172 | 2020-07-21T05:50:00 | 2020-07-21T05:50:00 | 281,294,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | from django.shortcuts import render
from rest_framework.permissions import IsAuthenticated
# Create your views here.
from rest_framework import viewsets, serializers
from .models import Blogs
from .serializers import BlogSerializer
class BlogsView(viewsets.ModelViewSet):
permission_classes = [IsAuthenticated]
... | [
"drititannk@gmail.com"
] | drititannk@gmail.com |
9c2167853b79c85cddfc9844c8551999b9967476 | a28965f63987f7be41c4a8fc064c701b7557be27 | /issc/wsgi.py | 78773898c64d70a9f4247b6b437afcf6b4eda71c | [] | no_license | snehalgupta/issc | 9ec5745fd351466f059c847e8fc52388c83fa8c4 | afab1c6467ebcde50d2a79ea3feeec98b3c0b393 | refs/heads/master | 2020-07-28T09:31:06.334870 | 2018-02-26T18:21:07 | 2018-02-26T18:21:07 | 73,415,023 | 0 | 2 | null | 2016-11-29T18:46:20 | 2016-11-10T19:39:36 | Python | UTF-8 | Python | false | false | 386 | py | """
WSGI config for issc project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTING... | [
"snehal16201@iiitd.ac.in"
] | snehal16201@iiitd.ac.in |
025aee0ee295580f2542f9a0012ab929504424b8 | 0a1f7759094bddda55365f256fb00455a57e0518 | /screen.py | 527d0e26d9c666f37242810f85be633694e6d59f | [
"MIT"
] | permissive | carl-andersson/graphbots | 909956d98fdb84aa5c4465114e1f3c1bb4a24c86 | 8b0805ea922e1b7edd3d409691b213e236e2e2a7 | refs/heads/master | 2021-05-26T23:38:41.145431 | 2013-09-21T16:59:12 | 2013-09-21T16:59:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,128 | py | import pygame
class Screen(object):
def __init__(self, width, height):
self.__surface = pygame.display.set_mode((width, height))
self.__width = width
self.__height = height
self.__window_min_x = None
self.__window_max_x = None
self.__window_min_y = None
sel... | [
"baskus@gmail.com"
] | baskus@gmail.com |
79c7142071c79b49850b8b8c4cdf0f242e1e18c4 | a234e07b21f9449da0877cbbc8134d371d5ccf32 | /python/函数.py | 4be78735756980c2f777606581d7d5726e9df69b | [] | no_license | imyk001/learn_jiekou0 | 0e19817bfcb28478f66ad813a2058f17d9d36db4 | 73606849f84dfadb7e156d9159fb9721dadf91a4 | refs/heads/master | 2020-12-08T14:35:58.025978 | 2020-01-20T10:03:46 | 2020-01-20T10:03:46 | 233,007,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | #!/usr/bin/env python
# enccoding: utf-8
'''
@author: Yankai
@project:设计一个计算器,输入两个数,自动实现加减乘除(进阶:根据用户输入的计算符号计算结果)
'''
#1:位置参数
# def sum(a,b):
# print(a+b)
# sum(1,2)
# #2:默认参数
# def sum1(a,b=1):
# print(a+b)
# sum1(1,2)
#可变参数
# def calc(*numbers):
# print(*numbers)
# print(numbers)
# sum = 0
# fo... | [
"yankai_hw@163.com"
] | yankai_hw@163.com |
80ef5d78c4377963cad4dc1268ce78d1c7fa2242 | f4252e2ce1dcd9b0ff8c3f9a828fe598e2807861 | /program_driver.py | e47256868e2cad54b5a4ab8a7924750918e3d43f | [] | no_license | stet-stet/books-for-narasem | 686b2ca3ef0d184a71ddee4838f9ebca009bd153 | 25bfcd681d237829a1c126623219a5f82ab77f6b | refs/heads/master | 2020-04-22T22:30:19.764194 | 2019-02-20T01:40:26 | 2019-02-20T01:40:26 | 170,710,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | import requests
def drive():
words=["통계","수학","베이지언","유의성","SPSS","전후비교","표본","tukey","군집","동질성"]
for i in words:
r = requests.get("http://127.0.0.1:8000/search/"+str(i)+"/")
print(r.content)
if __name__=="__main__":
drive() | [
"jayeonyi@snu.ac.kr"
] | jayeonyi@snu.ac.kr |
0c45a4e410214d74c311f150de46cbcb197e4aee | f5bd531c7b476fd8b8e6a9f8aeedf59f4b346b32 | /arrays/missingAndRepeating.py | 622527da66b1c656252ddba1d296a58b6ea8a3eb | [] | no_license | shanksms/python-algo-problems | f7eed1a47af9cf08f00bbef5611b8c8d8b52284e | ede488533dda4891192d849bfbcc87c33fae63d1 | refs/heads/master | 2020-04-08T05:34:14.205645 | 2019-01-27T05:07:44 | 2019-01-27T05:07:44 | 159,065,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | def missingAndRepeating():
tc = int(input())
for c in range(tc):
n = int(input())
#n,d = list(map(int,input().split()))
arr = sorted(list(map(int, input().split())))
d = dict()
missing = dup = None
for e in arr:
if e in d:
d[e] += 1
... | [
"sriv.srivastava@gmail.com"
] | sriv.srivastava@gmail.com |
15de6020feaa334b4bda30cdacc58d331a0fa346 | f1c5f8f0cb0d14546e16331dfc79c234bdeec8f9 | /assignment1/cs231n/classifiers/neural_net.py | 249aa727d2b93f81df479f40b10430a8a746363a | [] | no_license | ljrprocc/cs231_solution | be9898672de3ccb5608b56b27b69a8764b6ef520 | 6cc7d626744ab37314c643e70ef823a47a92749b | refs/heads/master | 2020-03-31T08:32:30.049527 | 2018-10-09T04:27:49 | 2018-10-09T04:27:49 | 152,061,746 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,734 | py | from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
class TwoLayerNet(object):
"""
A two-layer fully-connected neural network. The net has an input dimension of
N, a hidden layer dimension of H, and performs classification over C classes.
We train the network with a softma... | [
"3140102936@zju.edu.cn"
] | 3140102936@zju.edu.cn |
d7a0a5b464ebe48b0090e1673c86151bf0fd5e03 | a903fc8f24e4867a85dc85405421137360e360a1 | /PythonFiles/venv/Lib/site-packages/future/moves/tkinter/dnd.py | c4a8215c91aa6408767c6bf8154457ed4d1310de | [] | no_license | CiBit2G/CiBit | 8c486d2aad672a0ec5aec57a0717418f08e3a8e0 | cedd24bccb31346ae2831655953e2ef6f9c5afa6 | refs/heads/Develop | 2023-08-10T10:51:56.447517 | 2021-01-08T22:08:33 | 2021-01-08T22:08:33 | 261,506,824 | 0 | 1 | null | 2023-07-23T15:08:58 | 2020-05-05T15:14:35 | Python | UTF-8 | Python | false | false | 318 | py | from __future__ import absolute_import
from future.utils import PY3
if PY3:
from tkinter.dnd import *
else:
try:
from Tkdnd import *
except ImportError:
raise ImportError('The Tkdnd module is missing. Does your Py2 '
'installation include tkinter?')
| [
"45850800+guybos@users.noreply.github.com"
] | 45850800+guybos@users.noreply.github.com |
d833246fb20e8dc2f9be3cede6668c121ecaf310 | 1c5ba955114cc03a44b1a4a9a1839d33c697e906 | /perfiles/admin.py | 5d194bc4870cf591098e998a08d919f546b5ccd8 | [] | no_license | ismaelzoto/Sistema-tutor-inteligente | b254291ed2f1195a52e312a15b446d29a22921ca | db70e88d3b6e77fa5f9cc35483c9df6398d10448 | refs/heads/master | 2023-03-11T06:06:38.893634 | 2021-02-22T00:34:16 | 2021-02-22T00:34:16 | 331,760,524 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | from django.contrib import admin
# Register your models here.
from .models import Perfil
@admin.register(Perfil)
class PerfilAdmin(admin.ModelAdmin):
list_display = ('usuario', 'bio', 'web')
| [
"31456216+ismaelzoto@users.noreply.github.com"
] | 31456216+ismaelzoto@users.noreply.github.com |
991999f7a7e18e400a0fbd352e3489ff7228f16a | fe8de30b0b348076973c2fe21bf702858fb4369d | /trim2.py | 7ac1220c98f818699c79ee90c2eda4d897aa227e | [] | no_license | wl5/db_website | 7d6130465219e42804900bbd211658a74a96f80e | 91ebb55d5e484a307793a5e148b5be44bc3f08ff | refs/heads/master | 2020-04-08T06:35:34.792020 | 2018-12-27T02:51:44 | 2018-12-27T02:51:44 | 159,102,022 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | import csv
import pdb
import pandas as pd
all_nodes = []
with open('static/node.csv') as node_file:
node_reader = csv.reader(node_file, delimiter=',')
next(node_reader)
for node in node_reader:
all_nodes.append(node)
all_edges = []
with open('static/edge.csv') as edge_file:
edge_reader = csv.reader(edge_... | [
"yuanchu.dang@gmail.com"
] | yuanchu.dang@gmail.com |
5f4414b914f64cfb5cb22a64310b61e3131ceab6 | 517d461257edd1d6b239200b931c6c001b99f6da | /Circuit_Playground/CircuitPython/libraries/adafruit-circuitpython-bundle-7.x-mpy-20230406/examples/clue_spirit_level.py | 88ae9fb8f2589cfb05ad1511a8ab6fc4a62bb7f0 | [] | no_license | cmontalvo251/Microcontrollers | 7911e173badff93fc29e52fbdce287aab1314608 | 09ff976f2ee042b9182fb5a732978225561d151a | refs/heads/master | 2023-06-23T16:35:51.940859 | 2023-06-16T19:29:30 | 2023-06-16T19:29:30 | 229,314,291 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | # SPDX-FileCopyrightText: 2019 Kattni Rembor, written for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""CLUE Spirit Level Demo"""
import board
import displayio
from adafruit_display_shapes.circle import Circle
from adafruit_clue import clue
display = board.DISPLAY
clue_group = displayio.Group()
... | [
"cmontalvo251@gmail.com"
] | cmontalvo251@gmail.com |
f2c7ca09cac2df808eb625e1d063e7963382cdc4 | e42d424ba881086ef47431d4b511fd3971ec0eed | /app/fetch.py | bd94fe3e55db3aea32fb236506c7ec746f750725 | [] | no_license | WilliamStam/TradingBot | 0da8e3e0c9699e15ae0389131db7a375e311d5ec | e673035e26ad63f90b21a5b9630bd2b5e5802776 | refs/heads/master | 2023-03-23T22:52:16.058252 | 2021-03-17T15:45:55 | 2021-03-17T15:45:55 | 348,056,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py |
from system.cli.output import (
Line,
Item
)
from app import app
async def fetch( endpoint, **kwargs ):
response = await app.exchange.get(endpoint,**kwargs)
output = Line()
output.add(Item("FETCH", response.url), key="endpoint")
output.add(Item("STATUS", response.status), key="status")
for... | [
"william@munsoft.co.za"
] | william@munsoft.co.za |
1f9817604df40f0a36a0797435c1fe7ff481bab1 | bb42e21d032315860ae79b6c90e741946f5be544 | /学员作业/石崇/select_course/conf/settings.py | 10863a061e5b378871d06e21867fe8da136ed577 | [] | no_license | wuyongqiang2017/AllCode | 32a7a60ea5c24a681c1bdf9809c3091a1ff3f5fc | eee7d31a3ba2b29f6dec3a6d6c688d40cba7e513 | refs/heads/master | 2023-04-09T16:38:26.847963 | 2018-03-06T02:50:06 | 2018-03-06T02:50:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | #!/usr/bin/env python3
#-*- coding:utf-8 -*-
# write by congcong
import sys
import os
import logging
userinfo = r'D:\pycharm\Test1\Thrid_module\面向对象编程\select_course\db\userinfo'
teacher_obj = r'D:\pycharm\Test1\Thrid_module\面向对象编程\select_course\db\teacher_obj'
student_obj = r'D:\pycharm\Test1\Thrid_module\面向对象编程\sele... | [
"454381958@qq.com"
] | 454381958@qq.com |
c20c123e2286f949092a7398ba98a6a6bcddfa09 | c39f999cae8825afe2cdf1518d93ba31bd4c0e95 | /PYME/Acquire/eventLog.py | 7082748055b8f998f5ad09c0195537d6302e86e7 | [] | no_license | WilliamRo/CLipPYME | 0b69860136a9b2533f2f29fc29408d7471cb934d | 6596167034c727ad7dad0a741dd59e0e48f6852a | refs/heads/master | 2023-05-11T09:50:58.605989 | 2023-05-09T02:17:47 | 2023-05-09T02:17:47 | 60,789,741 | 3 | 1 | null | 2016-06-17T08:52:44 | 2016-06-09T16:30:14 | Python | UTF-8 | Python | false | false | 928 | py | #!/usr/bin/python
##################
# eventLog.py
#
# Copyright David Baddeley, 2009
# d.baddeley@auckland.ac.nz
#
# 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 3 of the Licen... | [
"willi4m@zju.edu.cn"
] | willi4m@zju.edu.cn |
0d617923634ae0a08281b7ed1e0060c92c4c1979 | 1da52e842f9d74bc9efcae6940c211788e99bf78 | /code/login/urls.py | b01f55578a39d78364c3859fd7160a07cd274e1a | [] | no_license | Demmonius/dev_dashboard | b3650f9a2f164311ae8e94df67979293d0e883f9 | 5ed38a1c8e7c431bc75f89890c1d51c1d156e92a | refs/heads/master | 2020-04-12T06:02:41.934615 | 2019-10-01T15:25:42 | 2019-10-01T15:25:42 | 162,340,776 | 0 | 0 | null | 2019-08-27T19:18:24 | 2018-12-18T20:17:03 | CSS | UTF-8 | Python | false | false | 438 | py | from django.contrib import admin
from django.urls import path, include
from django.contrib.auth import logout, login
from .views import SignUp, SignIn, logoutView
from dashboard import settings
urlpatterns = [
path('signup', SignUp.as_view(), name="signup"),
path('signin', SignIn.as_view(), name='signin'),
... | [
"hugo.martin@epitech.eu"
] | hugo.martin@epitech.eu |
e3a49a6bba7b2c757a45b6ac748461a4ded43206 | 26ebbb5cbd1adaf57244e42dd128dc5456400a8d | /signalProcessing/sindft.py | 354b1842850d781c88c5fc9804bec75ac10760f1 | [] | no_license | thiagorcdl/MIR | 13ea064e4e7fb7c82af27d594e0c9698ad41206d | 94fee077031c126f13f201ea3d345c11be35a66f | refs/heads/master | 2021-01-20T01:56:30.786623 | 2014-04-07T06:53:02 | 2014-04-07T06:53:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,519 | py | #!/usr/bin/python
#
# Generates sinusoids
# Computes DFT and compares with NumPy's FFT
#
# Author: Thiago Lima
#
import numpy as np
import matplotlib.pylab as plt
## arr[0][bin] = real
## arr[1][bin] = img
## arr[2][bin] = x for plotting
# Creates sinusoid
def sinus(frq,amp,pha,win,sr):
# frq == 1? 2pi/360 : frq*2... | [
"thiagorcdl@gmail.com"
] | thiagorcdl@gmail.com |
5d1263f85594230f832f627f63210f3312c831c1 | 0c2372f39335c5e694f354f21af12a37f93cc0c5 | /mp4cap.py | c5dcda4e5c681dff97f6e31fa5992722b2b0e33b | [] | no_license | junseok42/PNU-academy-Alot | 89e0ba511569af4cb11bebe6f60acf0ccdaff0fb | 4a906fb6e4e5ee84affd7be52aa45c0256e9905f | refs/heads/main | 2023-07-07T17:54:21.535290 | 2021-08-14T07:38:13 | 2021-08-14T07:38:13 | 395,926,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | import cv2
cap = cv2.VideoCapture("test_video.mp4")#0은 카메라
width = cap.get(3)
height = cap.get(4)
fps = cap.get(5)
print(width,height,fps)
while True:
ret, frame = cap.read()
if cap.get(cv2.CAP_PROP_POS_FRAMES) == cap.get(cv2.CAP_PROP_FRAME_COUNT):
cap.set(cv2.CAP_PROP_POS_FRAMES, 0)
... | [
"noreply@github.com"
] | noreply@github.com |
cf62e3df85fb6cf2897ea48dc5d7f5dc68e30fc1 | b6c10952da3e2cb036f8a1be9594489a7e7957b6 | /sqldb.py | 61616d057ec91dc853b0d1f62aaf05109caeb805 | [] | no_license | sevengram/wechat-util | eed0de8d51a6c8db5d4cd41aa83698fca6e91994 | d482b1e889d2ce52196efe25ea79f7e0b96c8996 | refs/heads/master | 2021-01-17T10:08:15.046977 | 2016-06-27T05:39:48 | 2016-06-27T05:39:48 | 43,784,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,781 | py | # -*- coding: utf-8 -*-
import pymysql
from util.dtools import not_empty
class Sqldb(object):
def __init__(self, db_name, db_host, db_user, db_pwd):
self.db_usr = db_user
self.db_pwd = db_pwd
self.db_name = db_name
self.db_host = db_host
self.connect()
def connect(se... | [
"sevengram1991@gmail.com"
] | sevengram1991@gmail.com |
22fe03c0fc638c74930fa68b42d86d763a348e90 | 9511ae1a91eb197637b338173bbe434b464817c1 | /src/dataclay/util/management/classmgr/AccessedImplementation.py | 462af2fac85322747157d4ceb3407162d15d7625 | [
"BSD-3-Clause"
] | permissive | kpavel/pyclay | f5d656e8ae8e37123cab84a2cd170eb7468903a0 | a6e23728ff4af2ca36c51bc4ec703f6c3acb33f5 | refs/heads/master | 2022-06-14T02:02:06.915037 | 2020-03-17T13:58:30 | 2020-03-17T13:58:30 | 261,738,141 | 0 | 0 | BSD-3-Clause | 2020-05-06T11:28:16 | 2020-05-06T11:28:15 | null | UTF-8 | Python | false | false | 390 | py |
""" Class description goes here. """
from dataclay.util.MgrObject import ManagementObject
class AccessedImplementation(ManagementObject):
_fields = ["id", # sql id, internals
"namespace",
"className",
"opSignature",
"implPosition",
]
... | [
"alex@betarho.net"
] | alex@betarho.net |
343a530829e91eb77813b7dd05226224cceae3af | adbc4147107ebae8d187061733dceb88cca7e564 | /test_ai.py | 9dd67a1c1c94a5185eb20f3cc79f5810b39a5666 | [] | no_license | Wojonatior/Connect4MonteCarlo | ee5add40504745fb47fe57dc40969e701203176c | 23288100775769996114cbd4c5e19164a705ba02 | refs/heads/master | 2021-01-12T02:12:43.491159 | 2017-06-19T19:39:54 | 2017-06-19T19:39:54 | 78,487,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,221 | py | import pytest, giveMeAMove
base_input = ['../myAI/giveMeAMove.py', '-b', '[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]]', '-p', 'player-one', '-t', '15000']
def test_makes_a_move():
with pytest.raises(SystemExit):
giveMeAMove.main(base_input)
def test_f... | [
"jarekwojo@gmail.com"
] | jarekwojo@gmail.com |
d663e41343542b09d92b4c03160b3626aeaa3d1b | 38aa730f59c937ce3e2183413bb0195798ee3370 | /learning_templates/learning_templates/settings.py | e59eb4cac2ebce120926f2ffea3db23d5cc702ee | [] | no_license | surbhivar/Repo-for-Django-Deployement | 0da7fce3cd636ce2cbe5215827fbac57c40d5768 | da74f213f015fe4b53d9232c617a167b92ad82c4 | refs/heads/master | 2022-12-06T17:24:50.844931 | 2020-07-28T13:53:16 | 2020-07-28T13:53:16 | 271,946,558 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,204 | py | """
Django settings for learning_templates project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
i... | [
"varshneysurbhi@gmail.com"
] | varshneysurbhi@gmail.com |
67817aaf90faa1bed5bf9992b1991adc7df3ef9f | 439a67cb856cf5877e640911dfaedf2e515f0f3e | /events/migrations/0005_connection.py | 9b9c819385eb3addd162eb3df38fe6c878f69b6c | [] | no_license | Msk6/django_event_planner | 04fc052844860ef13c6bbf211209abd853210ffc | 5d615fe4f64e8bef4ba18a656fd7bedab3cbc10b | refs/heads/master | 2022-12-19T09:08:19.626645 | 2020-09-24T07:22:16 | 2020-09-24T07:22:16 | 297,287,874 | 0 | 0 | null | 2020-09-21T09:13:55 | 2020-09-21T09:13:54 | null | UTF-8 | Python | false | false | 879 | py | # Generated by Django 2.2.5 on 2020-09-23 19:34
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('events', '0004_comment')... | [
"Maha.s.kh@hotmail.com"
] | Maha.s.kh@hotmail.com |
5d669d8879c8ab4a86d1defefaa20365e264f849 | ecf6bf03f4610b27a93cb28e2d140c61ceb1cdee | /src/bb_schema/vignette.py | e147c775992d50ed08562f12ca54abc680379032 | [] | no_license | cBioCenter/bioblocks-server | 6eb0a7d0fe13aecc7ee400fecc96e2025ce4b8b2 | 6436d7fa48edd5cab1e72b93b381da5a24d5b41a | refs/heads/master | 2021-06-08T02:25:05.217731 | 2020-03-04T18:25:19 | 2020-03-04T18:25:19 | 170,573,913 | 0 | 1 | null | 2021-05-06T19:33:00 | 2019-02-13T20:22:20 | Python | UTF-8 | Python | false | false | 1,104 | py | schema = {
'_id': {'type': 'uuid'},
'authors': {
'required': True,
'type': 'list',
'schema': {
'type': 'string',
'maxlength': 32,
'minlength': 1,
}
},
'dataset': {
'required': True,
'type': 'uuid',
'data_relation... | [
"MercifulCode@gmail.com"
] | MercifulCode@gmail.com |
1f8181ff8b6b0cc9db401baf5e6f748baea49eaf | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/legacy_test/test_is_tensor.py | aad03fb75a1d28ea22f37a7da67cae983fdf35df | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 1,805 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | noreply@github.com |
bfdcefbcc111a9168ba2ae06649c02f27a7e9e6f | a52e2513233e3eca143eae78f07af1c7e647d599 | /build/lib/pyvislc/select_variable_candidates.py | 41a382bab6544dcdd361cac871931f8b2cf3e815 | [] | no_license | johnh2o2/pyvislc | 1cffa63c09f82cc5f37cf2206589bbac55ac841b | 73d7afb6b694575d480ac4f8d8b289299b0035ae | refs/heads/master | 2020-03-30T09:07:29.097769 | 2015-10-02T15:22:14 | 2015-10-02T15:22:14 | 38,265,416 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,212 | py | import pandas as pd
from math import *
import numpy as np
import matplotlib.pyplot as plt
import os,sys
import readhatlc as rhlc
from utils import *
# Steps:
# 1) select a subset of the full dataset
# 2) calculate outlier-subtracted rms for magnitude bins
# 3) determine which sources have high RMS
# 4) print list of ... | [
"jah5@princeton.edu"
] | jah5@princeton.edu |
58d8db7022196f8f598af508ee606d169904b554 | f5055b8d69238c4eff75395c7549897b9117b52e | /2_SimpleRectangle.py | 412fa0de80a2e04c8c905dbede6dcc85b207ce4c | [] | no_license | JushBJJ/Pygame-Examples | 83be5118cd27827f758b3c32397c81a3f0b9672f | d2e70a820b6e7388657912912d16c917d8ef020a | refs/heads/master | 2023-02-05T21:11:16.344146 | 2021-01-02T23:59:18 | 2021-01-02T23:59:18 | 322,153,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,710 | py | """Simple Pygame Template with Rectangles."""
import pygame
# Objects
class Sprite(pygame.sprite.Sprite):
"""Sprites Folder."""
Sprites = pygame.sprite.Group()
def __init__(self, x, y, width, height, color, name):
"""Creation of Sprite."""
pygame.sprite.Sprite.__init__(self)
Spr... | [
"JushPacis@gmail.com"
] | JushPacis@gmail.com |
e85c99cb5dd38ca3fe8dae13a0bfca57bb331d21 | e4a30c9f491fe7d118f817cf57cf541c845fabe4 | /app/lpd/gui/metadata_writer.py | e0ad2ea0e08c36b791630b82976d72db6ee8b5cc | [
"Apache-2.0"
] | permissive | stfc-aeg/lpd-detector | 900c4c4042048db3c851bf53411d8a9bff1759da | 7bc0d9700a3d3992a4541f05e1434aba0d056dcc | refs/heads/master | 2022-07-06T15:31:15.633558 | 2020-05-18T13:10:39 | 2020-05-18T13:10:39 | 171,300,938 | 0 | 0 | Apache-2.0 | 2022-06-22T01:51:55 | 2019-02-18T14:41:01 | Python | UTF-8 | Python | false | false | 1,675 | py | '''
Created on 16 Oct 2018
@author: xfu59478
'''
import h5py
from datetime import datetime
class MetadataWriter(object):
''' This class writes metadata to open HDF files
'''
def __init__(self, cached_params):
self.cached_params = cached_params
def write_metadata(self, metadata_group):
... | [
"matthew.richards@stfc.ac.uk"
] | matthew.richards@stfc.ac.uk |
5b12b1bd49fc0354724fe8042ed1ea08c9fdf445 | 48cf62ee3f02e5a75ba8ee1636bc1638c6aa280e | /bookstore_app/api/admin.py | 558407e4dbd17070c07db3776dc60a4aff0a6a43 | [] | no_license | laver0ck/django-rest-api | 5f1aadd1b698da0a65101e93d47f3b03322e7f7d | c36cebe803e00468696c628a8d7fa5a83dcb4ee8 | refs/heads/master | 2022-05-27T14:45:52.919468 | 2022-03-30T16:08:24 | 2022-03-30T16:08:24 | 247,084,772 | 0 | 0 | null | 2022-03-30T16:08:25 | 2020-03-13T14:02:30 | Python | UTF-8 | Python | false | false | 150 | py | from django.contrib import admin
from .models import Author, Book
# Register your models here.
admin.site.register(Author)
admin.site.register(Book)
| [
"they.all.alike@gmail.com"
] | they.all.alike@gmail.com |
b892b451c4daa026deee8a8be6f8c49e7776ee1c | 27e57e395cf30339ee96a91a751eba49de068ec9 | /deprecated/cauer_even_attempt3.py | 08be9031aa148b20b12e3b6c11f43c397f177da2 | [] | no_license | frankih9/Saal-Ulbrich | f839689a379544b4ad5162e9f6b0047cbf2ab85a | 342af6c15d31981c81777e307702f6d1c6445919 | refs/heads/master | 2020-06-24T13:33:00.020562 | 2019-07-26T08:46:41 | 2019-07-26T08:46:41 | 198,975,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,588 | py | import numpy as np
import scipy.special as ss
import matplotlib.pyplot as plt
#The example of elliptical lowpass prototype synthesis procedure
#from Saal and Ulbricht(SU) is realized in this script
n=4 #number of section
p=0.2 #reflection coefficient of filter
#p=0.333333
theta_deg = 46
#w_s=2.79042... | [
"noreply@github.com"
] | noreply@github.com |
dab3aceadd82540d7c1285e224b42617455cbf15 | d1c225f35abd7f7bd8c2d8210b49a52d12ebabd0 | /setup.py | 02d3378cbbc0762a2624de210e827b1e972fae55 | [
"MIT"
] | permissive | koivunen/utu-vm-site | 1abdbcbfe69d1328726b9325d836b876bb0c66dc | 3f805597cdb1c4d4a5564c0f0a9d54b1b9c65581 | refs/heads/master | 2020-12-19T01:15:00.480370 | 2020-01-21T22:27:14 | 2020-01-21T22:27:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,137 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Turku University (2020) Department of Future Technologies
# Course Virtualization / Website
# Flask Application setup
#
# setup.py - Jani Tammi <jasata@utu.fi>
#
# 0.1.0 2020-01-01 Initial version
# 0.2.0 2020-01-02 Import do_or_die() from old scripts
# 0.... | [
"jasata@utu.fi"
] | jasata@utu.fi |
cad5c7d18370b15612b9808ea639f40b7457f823 | ca63a7b8411abf53e8da663c5e24d6089bfa12d7 | /GetFPS_webGL/FPSDriver.py | ea5209562e3b348636735cc192ad920c1cdb5169 | [] | no_license | seyeon625/ztt | 015b7fdcd70f73eb1a5134d06a728ee7d242f4cc | ed5192d2680dc308d49930cf47e8e32259ea087c | refs/heads/master | 2022-11-24T13:01:49.965537 | 2020-07-30T05:47:23 | 2020-07-30T05:47:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
'''
Example:
fps_driver = FPSDriver("./chromedriver")
aquarium_url = "https://webglsamples.org/aquarium/aquarium.html"
fps_driver.open_page(aquarium_url)
while True:
fps = fps_driver.get_fps()
print("FPS: " + fps)
time.sleep(1)
'... | [
"noreply@github.com"
] | noreply@github.com |
c89b1f3c10a9e8a8eb859e12812096ef775d66df | 6c8b3ef3b6a3e77ee9a3cc56898217654b043154 | /typings/rdkit/Chem/SaltRemover.pyi | e5afac75779c3dc7002294ea49a0025615d73634 | [
"MIT"
] | permissive | Andy-Wilkinson/ChemMLToolkit | 8a1eb24ab317c470bc89efa206e38734cb83a7d2 | 83efc7ea66d2def860a3e04ccd70d77fb689fddc | refs/heads/main | 2021-12-26T04:44:05.566942 | 2021-12-13T21:59:57 | 2021-12-13T21:59:57 | 171,165,863 | 2 | 2 | MIT | 2021-12-13T17:18:30 | 2019-02-17T20:00:01 | Python | UTF-8 | Python | false | false | 3,733 | pyi | """
This type stub file was generated by pyright.
"""
class InputFormat:
SMARTS = ...
MOL = ...
SMILES = ...
class SaltRemover:
defnFilename = ...
def __init__(self, defnFilename=..., defnData=..., defnFormat=...) -> None:
...
def StripMol(self, mol, dontRemoveEverything=...):
... | [
"Andy-Wilkinson@users.noreply.github.com"
] | Andy-Wilkinson@users.noreply.github.com |
c56f5d4da0b5718d1b01b561b37be3ed9d594705 | 1461c17eaa42d18be3d017d6941ede83290d95c8 | /src/average_degree.py | 91aaa7c6c7437dbf6add878df83d0d5d02ceaf80 | [] | no_license | Sticksword/coding-challenge | 19c10f96999fd0300fcc20809e4bffc84404feb3 | 568f7927450a409307cf7094103679223b3e4a83 | refs/heads/master | 2021-01-18T01:37:05.152814 | 2016-04-08T07:09:27 | 2016-04-08T07:09:27 | 55,464,890 | 1 | 0 | null | 2016-04-05T03:31:05 | 2016-04-05T03:31:05 | null | UTF-8 | Python | false | false | 3,415 | py | import json
import sys
import itertools
from datetime import datetime, timedelta
import heapq
import math
months = {
'Jan': 1,
'Feb': 2,
'Mar': 3,
'Apr': 4,
'May': 5,
'Jun': 6,
'Jul': 7,
'Aug': 8,
'Sep': 9,
'Oct': 10,
'Nov': 11,
'Dec': 12
}
class Tweet:
def __init__(self, text):
tweet_di... | [
"mzc2fd@virginia.edu"
] | mzc2fd@virginia.edu |
bb9a9c638397f5fc46dcdc0a0d247ff692061ef8 | 7ee2992aceeebc532fc817e40e02ac17ff41aaf3 | /graphics.py | 28ae92d197f458318dc21215549a014db4c28988 | [] | no_license | jensenak/examples | be8d8cae719998077ad429640fb74bb3862d0a2b | 63156a5beb933a3afb1ebf3e5177b3fd7670ca40 | refs/heads/master | 2021-01-10T09:03:53.805569 | 2016-11-18T01:23:22 | 2016-11-18T01:23:22 | 49,591,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,219 | py | import pygame
import time
import random
class Player():
def __init__(self, name, color, vectors):
self.name = name
self.color = color
self.score = 0
self.reset(False)
self.vectors = vectors
def reset(self, win):
if win:
self.score += 1
self.x... | [
"jensen.ak@gmail.com"
] | jensen.ak@gmail.com |
4fa55b1c133d7ad30eeb6c021414c1dd88d71b94 | 359e768df0aa85a7fc8a119d1a304d93f2e04452 | /mana/tutorial04/tutorial04.py | d27784c66e0dae14436f7184f299299185c76a6e | [] | no_license | tmu-nlp/NLPtutorial2020 | 5694650d365b836ceefc822a4ee33fae8ec7d72b | 51c84c7a7280b62fa11c5893987eeba7d7fad3d6 | refs/heads/master | 2021-05-19T11:40:05.325180 | 2020-08-12T04:55:41 | 2020-08-12T04:55:41 | 251,679,127 | 0 | 1 | null | 2020-08-12T04:55:00 | 2020-03-31T17:26:14 | Python | UTF-8 | Python | false | false | 5,699 | py | from collections import defaultdict
from math import log2
def load_model(model_file):
with open(model_file, "r") as model_file:
model_file = model_file.readlines()
transition = defaultdict(bool)
emission = defaultdict(bool)
possible_tags = {}
for line in model_file:
line = line.str... | [
"10suism.ashida@gmail.com"
] | 10suism.ashida@gmail.com |
d69e4cc66c274e8bdde993378ca52369550af2e3 | a1fb05afb1cda8ca4bafab110e595f823e63f9a6 | /Database.py | 6e99a6b1ecf56f8bc85e393b5dde1666649fd04e | [] | no_license | tareksat/sever | 4ac189d11899591e3740056dda974a3228fada13 | 6e1bc77cb7b6ca93ff607cad8c53ad41f975e155 | refs/heads/master | 2020-04-24T02:33:25.458570 | 2019-02-20T12:31:38 | 2019-02-20T12:31:38 | 171,641,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | import pymongo
class Database(object):
URL = "mongodb://127.0.0.1:27017"
DATABASE = None
@staticmethod
def initialize():
client = pymongo.MongoClient(Database.URL)
Database.DATABASE = client['controller']
@staticmethod
def load(collection):
return [x for x in Databas... | [
"tarek.morshid@gmail.com"
] | tarek.morshid@gmail.com |
21aaa76a48168896b5d85b89b8736f28c7c12434 | 6189e28aaa6b7e98f48499370bd724ecc46f8894 | /0x0F-python-object_relational_mapping/1-filter_states.py | f3280d04efa54ca042161afcc72a8a6f949e16be | [] | no_license | AntonioEstela/holbertonschool-higher_level_programming | 8bb8df61cbd4aa2eafb2ccbde16b7ac30e409831 | 020a5a7c3fb9b817b3d399f5c2a15b1498827df0 | refs/heads/master | 2022-12-17T19:30:26.051914 | 2020-09-24T22:56:45 | 2020-09-24T22:56:45 | 259,216,485 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | #!/usr/bin/python3
""" script that lists all states from the database hbtn_0e_0_usa: """
import MySQLdb
import sys
if __name__ == '__main__':
username = sys.argv[1]
password = sys.argv[2]
database_name = sys.argv[3]
database = MySQLdb.connect('localhost', username, password, database_name)
curs... | [
"antonioestela73@gmail.com"
] | antonioestela73@gmail.com |
352ffb992b2119725d0a44f5d79d02d503938cf1 | 9441b5339471c3ae8a31ac3e8733c03cd294f14f | /superlists/superlists/settings.py | 09246fb222e0476d1e12d4736f78c42185a141dc | [] | no_license | evansjr2000/mytdd | 2a72a47b623845c50d8d63afa845969d132f6976 | 29577dcbd708ba68ca50bf31f904477187eb504d | refs/heads/main | 2023-04-04T11:06:26.112380 | 2021-04-15T14:37:40 | 2021-04-15T14:37:40 | 357,670,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,249 | py | """
Django settings for superlists project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathli... | [
"John.Evans97@gmail.com"
] | John.Evans97@gmail.com |
876d6254bd313782532fc4c19b8b8d969ee2f749 | ae42f6eb5f45a86c23cfb4fd5cd771003569dea5 | /profiles_api/migrations/0001_initial.py | 222d7156b13c3378fe89ab9f1323d95ace9d7907 | [
"MIT"
] | permissive | ljsharp/profiles_rest_api | f4c574f7a8119127e51de9ea041bfa81feeac244 | b840409a3a88c737c76b47831291f90770f2e66e | refs/heads/master | 2022-12-21T22:22:56.192237 | 2020-09-27T10:33:07 | 2020-09-27T10:33:07 | 298,745,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | # Generated by Django 3.1.1 on 2020-09-26 08:12
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations = [
migrations.CreateModel(
name='UserProfile'... | [
"leslie.kojo.okyere@outlook.com"
] | leslie.kojo.okyere@outlook.com |
95785b069ffa9ace6e9f2e383c63f4641aa068f1 | 1ca8bf6cc0219e4e8fc30240c46b41452fcb92b7 | /findash/polls/models.py | efec47206cb0b6c9300d57e8c18fec9f0ef75d5e | [
"MIT"
] | permissive | ohduran-attempts/poll-app | 18aab5fe4aaf807b66c01e173de592dd2204d4fb | 524ae10baf2cc8437694d1dcd7173df87f32474b | refs/heads/master | 2021-04-12T03:59:59.578556 | 2018-03-18T19:44:42 | 2018-03-18T19:44:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | """Model suite."""
from django.db import models
from django.utils import timezone
import datetime
class Question(models.Model):
"""Question Model"""
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __str__(self):
"""print Question."""
... | [
"alvaro.duranb@gmail.com"
] | alvaro.duranb@gmail.com |
03377ac2f053d55df49a43deba4423ce04d8ccdd | 484a348682d9fa515666b94a5cd3a13b1b725a9e | /Leetcode/[146]LRU.py | 34890a397f70e7dc7bccf0122d44cb5d6c5af989 | [] | no_license | joseph-mutu/Codes-of-Algorithms-and-Data-Structure | 1a73772825c3895419d86d6f1f506d58617f3ff0 | d62591683d0e2a14c72cdc64ae1a36532c3b33db | refs/heads/master | 2020-12-29T17:01:55.097518 | 2020-04-15T19:25:43 | 2020-04-15T19:25:43 | 238,677,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,925 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2020-03-26 08:36:33
# @Author : mutudeh (josephmathone@gmail.com)
# @Link : ${link}
# @Version : $Id$
import os
class ListNode(object):
def __init__(self,key,val):
self.val = val
self.key = key
self.left = None
self.rig... | [
"josephmathone@gmail.com"
] | josephmathone@gmail.com |
c20f9164e48b6f2fd334f4feca455aae798e98a4 | 65f3ada144f45bd5dbaf3d37ca9366ff54796f0c | /month12-21/colorBorder.py | 1b7cd2db2921fb446d3b00f5512f997d989c8051 | [] | no_license | BruceHi/leetcode | 43977db045d9b78bef3062b16d04ae3999fe9ba7 | 0324d247a5567745cc1a48b215066d4aa796abd8 | refs/heads/master | 2022-09-22T14:18:41.022161 | 2022-09-11T23:45:21 | 2022-09-11T23:45:21 | 248,240,171 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,964 | py | # 1034. 边界着色
from typing import List
class Solution:
# 没理解题意
# def colorBorder(self, grid: List[List[int]], row: int, col: int, color: int) -> List[List[int]]:
# m, n = len(grid), len(grid[0])
# record = grid[row][col]
# if record == color:
# return grid
#
# def... | [
"BruceHi@users.github.com"
] | BruceHi@users.github.com |
62cfac80ffb4fbbbf9b09a2738f91eb2c3d5a8aa | 36f6269a3db86171766ff8883e3593a08aaeb081 | /Backoffice/Router.py | 05350face38c0a455c5f36703f9218dd6315b86b | [] | no_license | yashhotline/HermEsb | c753a9c902c6cc30ce9d0d68790dcffecff3487f | 8c85e1a517dcf97a2745ef530546cb235e860def | refs/heads/master | 2021-05-30T14:10:57.989691 | 2014-10-30T11:11:02 | 2014-10-30T11:11:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,020 | py | from flask import Flask, render_template, jsonify, request
from ServiceStatistics import StatisticsView
from Environments import Environments
from Errores import ErroresRepository, ErroresView
from ServiceInfo import ServiceInfoView
app = Flask(__name__)
@app.route('/')
def Index():
currentEnvironment = request.c... | [
"sbermudezlozano@gmail.com"
] | sbermudezlozano@gmail.com |
08aa522f036c0453f4f5e12f220ecd134150d7e1 | f93fd3696e759f24363399976e3025b815b24d06 | /saraswati/mooncal/migrations/0004_event.py | 1c1a9ea566ed151f994039774704a9f502d6d038 | [
"MIT"
] | permissive | tony-mikhailov/mooncal | 389ac4f5d733ffa27ec6d65469254846dff949a9 | 9f0a1a215a2d5fd2ec1f98803f666ea10106f25e | refs/heads/master | 2021-08-07T12:21:43.088530 | 2020-03-29T14:03:53 | 2020-03-29T14:03:58 | 240,694,873 | 0 | 0 | MIT | 2021-07-13T07:18:56 | 2020-02-15T11:18:17 | CSS | UTF-8 | Python | false | false | 917 | py | # Generated by Django 3.0 on 2020-02-24 12:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('mooncal', '0003_auto_20200223_1627'),
]
operations = [
migrations.CreateModel(
name='Event',
... | [
"anton@mikhailov.center"
] | anton@mikhailov.center |
de5ee39a0ccec24ef8a1aaf8515f32228d28b47d | 25e481ef7fba79285f4c8a7fa2e81c8b2b7f9cce | /saleor/order/__init__.py | a6ccde9d5752e9a9a58c3c2c655b7a1addcd816f | [
"BSD-2-Clause"
] | permissive | arslanahmd/Ghar-Tameer | 59e60def48a14f9452dfefe2edf30e362878191d | 72401b2fc0079e6d52e844afd8fcf57122ad319f | refs/heads/master | 2023-01-31T04:08:26.288332 | 2018-06-07T18:02:01 | 2018-06-07T18:02:01 | 136,231,127 | 0 | 0 | NOASSERTION | 2023-01-11T22:21:42 | 2018-06-05T20:28:11 | Python | UTF-8 | Python | false | false | 535 | py | from django.utils.translation import pgettext_lazy
class OrderStatus:
OPEN = 'open'
CLOSED = 'closed'
CHOICES = [
(OPEN, pgettext_lazy('order status', 'Open')),
(CLOSED, pgettext_lazy('order status', 'Closed'))]
class GroupStatus:
NEW = 'new'
CANCELLED = 'cancelled'
SHIPPED ... | [
"arslanahmad085@gmail.com"
] | arslanahmad085@gmail.com |
5ca7eef1dbf52983187494de72bad81fae5b016d | 5f4f7e0070eeb028dabb1b3983558fb08a165234 | /formacion/migrations/0037_revisioninterventoriadocentesoporte_revisioninterventoriaescuelaticsoporte.py | 7f446235f691f90bbd5b077d63f0900e8067d59e | [] | no_license | Dandresfsoto/Andes | cc0e2dbfce9c5ab3f84af5fb769c0be3ebec1205 | 03f8764d531e269fcb3ed41fec4fa2e191852386 | refs/heads/master | 2021-06-01T07:00:10.104609 | 2016-05-23T14:31:45 | 2016-05-23T14:31:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,659 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('region', '0011_auto_20150904_1547'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"dandresfs_04@hotmail.com"
] | dandresfs_04@hotmail.com |
1e6341c90e6b88a4578f63aa809301a49127fbe2 | f311a3a1af39b6bbbbad1bbf6f6ecd4ac32f189b | /magnet_spider/__init__.py | 5d8323ba02dc72d5d9eb791e0043a85dc7f4e8e3 | [] | no_license | qq431169079/spider-1 | c7c5fad312752f2f00d41d84d087e2620afa131c | f1f12b4c1675feeee7122a5580c56acf379fec55 | refs/heads/master | 2020-04-25T11:36:28.202860 | 2018-03-27T06:11:20 | 2018-03-27T06:11:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | # -*- coding: utf-8 -*-
"""
获得磁力链接的资源,然后将资源保存到本地的数据库里面
以后需要什么资源直接从数据库里拿就行了
""" | [
"ye.ju@qianka.com"
] | ye.ju@qianka.com |
3fac5b7bcf5bafc3f2caa9d78b4f933fdcf8643c | 5f377df89d290b1132dd08fec1cc79d1f4d9eb39 | /HandsSVG/autobahn_client.py | 2e9ce910aa010a43d84c9dc41ccbea5528509b53 | [] | no_license | witpaulchen/hand-gesture-recognition | 317fcf815f7b506f4a9546c3d87652fd272465a6 | 73ae0552a0174a9b36c5074e2d82c3b60f948287 | refs/heads/master | 2021-01-17T10:59:10.053210 | 2012-06-11T04:33:22 | 2012-06-11T04:33:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,258 | py | #! /usr/bin/env python
import sys, re
import win32api, win32con
from twisted.internet import reactor
from autobahn.websocket import WebSocketClientFactory, \
WebSocketClientProtocol, \
connectWS
def move(x, y): win32api.SetCursorPos((x, y))
def up(... | [
"arunganesan123@gmail.com"
] | arunganesan123@gmail.com |
7f746c23b6c3dd6e6b161719d376f5ada4b760d6 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_017/ch5_2020_09_03_00_38_11_572440.py | 9d0a21888a98c0f85d7bd3236bd439d3530a3bf4 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | def libras_para_kg(x):
y= 0,453592 * x
return y
x=10
a = libras_para_kg(x)
print(a)
| [
"you@example.com"
] | you@example.com |
991104c7d93df461d55ff17e86ea77fb8816e9f6 | bbc484d83b266cecd9f4b3c2241fb9d8f0dbd87a | /Python/cake3.py | a053d763ac3a8e5b893b4c940988e2165371241b | [] | no_license | abdirahmanfarah/Practice-Code-Reviews | 1ad7e2140a23e9ce8100d6e000ff0adf9ff3163d | 69f58255a1a695e41994729a486c032658498091 | refs/heads/master | 2023-01-01T06:36:28.185842 | 2020-10-25T17:43:56 | 2020-10-25T17:43:56 | 268,928,158 | 0 | 0 | null | 2020-07-16T22:46:01 | 2020-06-02T23:15:45 | JavaScript | UTF-8 | Python | false | false | 1,467 | py | def contains_cycle(first_node):
# Check if the linked list contains a cycle
# Hash table to keep track which values we have visited
# First node is head node which is our curr node
# if we have a first node, we add its value to our hash
# While we have a next on our current node,
# keep iterati... | [
"abdirahman.z.farah@gmail.com"
] | abdirahman.z.farah@gmail.com |
301d2bded8c8a4ceaea02cf1633ec8d372d716d3 | 21e254f45813db78755a512061dd4a0f30db0077 | /assignment1/7.py | 7ee157a11f55f7ed756ed4f4036e0441aae13f3e | [] | no_license | panipinaka/PYTHON-BASIC- | 95bf78fa3565f06f4c4bfa24a9b58585a97cdcf4 | 28daa2662d986f0b091288de57e58b55ba9c5893 | refs/heads/master | 2020-07-21T11:00:48.731333 | 2019-10-05T05:13:36 | 2019-10-05T05:13:36 | 206,841,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | a=int(input("enter the value"))
x=[]
for i in range(2,a+1):
if a%i==0:
x.append(i)
print(1);print(x[0])
| [
"noreply@github.com"
] | noreply@github.com |
8655f972ab0da8e69914f12c2e22e70df3ffe1c2 | b89b52cadbfadebb1638c6c36814a4883faf9c88 | /linear_algorithm/logistic_regression.py | e1d54c3001c327051eb1087d56f90cb11b800437 | [] | no_license | jamemamjame/ml_scratch | 0d2a0ff380a3bde42fff9e30e14655ec1f3d5c8c | 98ce5ee33defc4699adc6f566db7446857f90c30 | refs/heads/master | 2021-07-19T11:54:44.165601 | 2017-10-27T22:05:36 | 2017-10-27T22:05:36 | 108,300,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,759 | py | '''
Logistic Regression:
A key difference from linear regression is that the output value being modeled is a binary value (0 or 1) rather than a numeric value.
yhat = ________ 1.0 ___________
−(b0+b1×x1)
1.0 + e
@author: jame phankosol
'''
# Importi... | [
"jamemamjame@gmail.com"
] | jamemamjame@gmail.com |
b7ac31d6c9b58ecbf80a5330a307b8ffd483c00b | daee54824cb107f9b5749e3c12e7f09f544bac0e | /modules/vtk_basic/vtkRectangularButtonSource.py | abe323630898764daa3efdb8b9dec834163d4039 | [] | no_license | JoonVan/devide | 8fa556d2b42c5ad70c3595303253f2a171de0312 | 586225d68b079e2a96007bd33784113b3a19a538 | refs/heads/master | 2020-12-26T06:25:01.744966 | 2017-01-22T19:47:50 | 2017-01-22T19:47:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | # class generated by DeVIDE::createDeVIDEModuleFromVTKObject
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase
import vtk
class vtkRectangularButtonSource(SimpleVTKClassModuleBase):
def __init__(self, module_manager):
SimpleVTKClassModuleBase.__init__(
self, module_manager,
... | [
"cpbotha@users.noreply.github.com"
] | cpbotha@users.noreply.github.com |
512c95dd15280d5a94338f6ccb0cc7776fcd1843 | 250b3b832a503908b153813b1fc79d2c8121dd23 | /tic-tac-toe/2computertrain_Ofirst.py | 26f0fa020ae7aa6a82c956ae54215055fc4af193 | [] | no_license | Lucaz0619/tic-tac-toe-reinenforcement | 654b21a699c8a21937b0cb4265679fe616f0cc77 | 5b7b3a529bbda00840050c4cf31096288a650c29 | refs/heads/master | 2022-10-24T14:55:01.606670 | 2020-06-19T11:31:17 | 2020-06-19T11:31:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,788 | py | import random
import pickle
import numpy as np
import matplotlib.pyplot as plt
episodes = 2000000
lr = 0.4
gamma = 0.99
exp = 0.4
win_reward = 1
lose_reward = -1
tie_reward = 0.5
states2value_cross = {}
states2value_circle = {}
win_history = np.zeros(episodes, dtype='int')
def get_hash(state):
return str(state.re... | [
"noreply@github.com"
] | noreply@github.com |
344be0ef3d76c0b251ffc42c4bcc2d4a2e16a864 | 51e77e985d9b6c6bb0972ccee14b867e289aae61 | /fundamentalsOfComputing/algorithmicThinking/hw4.py | a4ba03e7740eb086c9c4e05741f6d9867a9e5846 | [] | no_license | ErhardMenker/MOOC_Stuff | 7c397059f62ba39f21a877c7fcf71a97751dda4b | 7cdd581e9f9dcdd0b0c27dbbb9216bc76df8fff5 | refs/heads/master | 2021-01-17T10:38:06.805197 | 2017-03-29T23:50:18 | 2017-03-29T23:50:18 | 84,018,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,508 | py | '''
Project 4: Dynamic Programming
'''
### Matrix Functions ###
def build_scoring_matrix(alphabet, diag_score, off_diag_score, dash_score):
'''
builds a matrix given the scoring criteria for all possible alignments
'''
scoring_matrix = dict()
alphabet = alphabet.union(set(["-"]))
# traverse th... | [
"ejmenker@gmail.com"
] | ejmenker@gmail.com |
c79ed32c3ca183386b0737fa3767a548da028733 | 1a856152b3ab65a8a0cc5cbedf0492d1c3716d27 | /bar.py | 56d70fffd57797f276a596d025770792cdf7cdbe | [] | no_license | stablum/thesis | 272f7f23ad1ad454c9310775b969bb54c84c9ea0 | 5c06d78322ddd6e1b8c214261ea6e4464a094bad | refs/heads/master | 2021-07-23T04:29:28.438657 | 2018-08-18T18:59:11 | 2018-08-18T18:59:11 | 60,299,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | #!/usr/bin/env python
import pandas as pd
import numpy as np
def main():
df_whole = pd.read_excel('a2.xls').fillna(0)
df_m = df_whole.icol(range(10)).irow(range(20))
m = df_m.as_matrix()
u = []
uv = []
tf = []
for i in range(2):
xls_i = 13 + i
curr = df_whole.icol( xls_i ).... | [
"stablum@gmail.com"
] | stablum@gmail.com |
f8726e89cce340e6929af19c8547ecdcb02cbdea | 5fe6613dfe1eb6c94b277255bb0a7bded1a53525 | /add_digits.py | 4b5e41ae32db96de0f6e1233772bb730dd204de7 | [
"Apache-2.0"
] | permissive | mekyas/ProjectEuler | 54bec92e1c99a985c3285cd4e25ff6ec6bc0a60c | ddb80b3d34dec15ff7b95bff2a1f8e1abd2970a7 | refs/heads/master | 2022-05-04T17:06:52.027565 | 2022-03-14T12:54:26 | 2022-03-14T12:54:26 | 151,731,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | from functools import reduce
def addDigits(num: int) -> int:
if num<10:
return num
else:
return addDigits(reduce((lambda x, y: x+y), map((lambda x: int(x)), str(num))))
print(addDigits(38)) | [
"mek.yas.91@gmail.com"
] | mek.yas.91@gmail.com |
b1298f3c8985d0a83cdd80557c7cf36c6e96af97 | c48519a22a428090656d98d6dfed5ad41c7839f6 | /leap year.py | acaaf6b85a118c5647d90bb85b7df1b9dbf196fe | [] | no_license | malfridur18/python | 25ae831e3365c45df12e8ff8632fae5b60b82a4a | 7ae374fa6308506569b712fe7f8592419333cec6 | refs/heads/master | 2020-07-20T05:44:38.994576 | 2019-09-05T14:34:02 | 2019-09-05T14:34:02 | 206,583,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | year = int(input("Input a year: ")) # Do not change this line
if year%4==0:
if year%100==0:
if year%400==0:
print(True)
else:
print(False)
else:
print(True)
else:
print(False)
# Fill in the missing code below
#1. If the year is evenly d... | [
"malfridur18@ru.is"
] | malfridur18@ru.is |
fb1e2c959eeee6236b739fe51f938f96d3d55c0b | 5d95b7bddb828407efdfd58f9cc25e9ae2d8f5b2 | /problem051.py | e59c70aabfb6089d513e38900288acf2c9ef9d90 | [] | no_license | Carl-Aslund/project-euler | 3ec0ce9db1b91e3248c1f4eb4425a5f0de8ce975 | c36dc4e967707e141043f4a5cabd37ccafde49ce | refs/heads/master | 2021-09-13T07:41:34.359409 | 2018-04-26T17:29:09 | 2018-04-26T17:29:09 | 115,889,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,500 | py | from primeGen import getPrimes
patterns = [ # All possible six-digit patterns: 1's are unique, 0's repeat
[1,1,0,0,0,1],
[1,0,1,0,0,1],
[1,0,0,1,0,1],
[1,0,0,0,1,1],
[0,1,1,0,0,1],
[0,1,0,1,0,1],
[0,1,0,0,1,1],
[0,0,1,1,0,1],
[0,0,1,0,1,1],
[0,0,0,1,1,1]]
def fillPattern(patter... | [
"caslund@g.hmc.edu"
] | caslund@g.hmc.edu |
237064d71d34d66d145a5e68a9505990ef401800 | ed8ea7e892c11caa82fefbe38cdd5b417ac24694 | /playtest_working.py | f46c3694da64d085a97f034c176f50ef456840b7 | [] | no_license | TonyCanning/MPR121 | 4263572e495a58f55cad1b368a21627a181b1d79 | 63cd876e755c18b1e74f82e05c7ece8f880b9110 | refs/heads/master | 2020-04-29T06:03:22.955406 | 2019-03-15T23:30:40 | 2019-03-15T23:30:40 | 175,903,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,652 | py | # Copyright (c) 2014 Adafruit Industries
# Author: Tony DiCola
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, m... | [
"noreply@github.com"
] | noreply@github.com |
ee47351591b57b6dadf83f56f063681c55883f10 | 31d0021585170f5c608bd05a33e4d5f5cc1a460b | /jiden_py/light01on.py | 36f184e85b170deb2a2c0db3bced6785c1cbb4c9 | [] | no_license | Noitamin/Jiden | a6058f362cfca686951c867f164f3fbe89fc6762 | 44b418d23ee223ad0f023be2f23fadd3493daddb | refs/heads/master | 2021-01-12T09:37:45.342132 | 2017-06-18T22:38:51 | 2017-06-18T22:38:51 | 76,205,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | #!/usr/bin/python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
# init list with pin numbers
pinList = [9, 10, 22, 27, 17, 4, 3, 2]
# loop through pins and set mode and state to 'low'
for i in pinList:
GPIO.setup(i, GPIO.OUT)
GPIO.output(i, GPIO.HIGH)
# time to sleep between operations in th... | [
"genesis-ii@hotmail.com"
] | genesis-ii@hotmail.com |
6393b66f12e8711b0e78f5afb9a0baf9225ecd9f | 3029fbe683ca173d712d0f49254bdd5a8f5e8883 | /OPO_Python/rindmgoplln.py | 779b2315c2923334e70a6b804edeaaa88f22b119 | [] | no_license | alfredos84/NONLINEAR_OPTICS | b2202cd4aabafdcf40089712bc7d3bd435a0966f | aceea094d6862e5db24e62fe9cd6e444909b6e4b | refs/heads/master | 2023-05-14T05:32:42.263326 | 2023-05-04T12:07:06 | 2023-05-04T12:07:06 | 158,390,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,344 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 16 14:40:11 2021
@author: alfredo
"""
import numpy as np
import matplotlib.pyplot as plt
# Constants
c = 299792458*1e6/1e12 # speed of light in vac. [μm/ps]
pi = np.pi
def n(L,T):
""" This function returns the MgO:PPLN extr... | [
"noreply@github.com"
] | noreply@github.com |
435a2cea57b7546d34da2a21743ecb71106767eb | 14e593a4f69abf5a374ee65b0fb9b20d4a5d4ba9 | /article/admin.py | a85dfc428fc6cba90e0f75d00e1dee15e6f6b599 | [] | no_license | leisure21/blog_django | ea535b744c26cbee09dbef9c6d5052351f26aa97 | c4ee297271ac8ca55d04f5e8f18e285b07fce7e9 | refs/heads/master | 2020-05-30T11:54:15.837357 | 2016-05-23T06:16:01 | 2016-05-23T06:16:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from django.contrib import admin
from article.models import Article
# Register your models here.
class ArticleAdmin(admin.ModelAdmin):
# fields = ['title', 'content']
class Media:
js = ['/js/tinymce/tinymce.min.js', '/js/tinymce/textareas.js']
admin.site.register(Article, ArticleAdmin)
| [
"674078303@qq.com"
] | 674078303@qq.com |
6becc6b90dd27d0dc7307902ed7398c75e74642a | 08e2faa238730c34ffd7a94d4578daba1d658c0b | /api.py | cba2d0294a4f763eba7e58b38f549445ed807fe8 | [] | no_license | Tech-Sultan/API | db70665dbffc250df2cdf7c66ccdf7b0fd3413c1 | d4269bd2991d3b6a8c72662016bcfd813d1a9b63 | refs/heads/main | 2023-03-19T23:11:47.013312 | 2021-03-06T19:42:33 | 2021-03-06T19:42:33 | 345,180,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | import requests
api = 'https://api.openweathermap.org/data/2.5/weather?appid=0c42f7f6b53b244c78a418f4f181282a&q='
city = input('Enter your city: ')
url = api + city
jason_data = requests.get(url).json()
formatted_data = jason_data['weather'][0]['description']
print(formatted_data)
| [
"noreply@github.com"
] | noreply@github.com |
52171e43cd709790e0c40d5788d673a5c8f7dffb | affcaa4ec1e69bf96d1432ce0d6788d72a90561c | /Main_Form.py | 840d352577b0fb2799d872a5a6ca34688432c97a | [] | no_license | YYN87/Testing_Repository | 61176e81346d81483f9872d334c94837e77b2186 | 5895720110ffdd57f9ac23802f22bd536a7fb823 | refs/heads/master | 2020-04-21T23:39:59.580999 | 2019-02-10T09:00:55 | 2019-02-10T09:00:55 | 169,953,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,254 | py | # Copyrights Yasas Y Nonis
import turtle
import math
import random
import winsound
import tkMessageBox
import keyboard
# region Screen Settings. Testing Comment
wn = turtle.Screen()
wn.title("Monkey Hunting V 1.0")
wn.bgcolor("green")
wn.bgpic("C:\Users\yasas\Desktop\Python\Space_Invaders_with_Classes\spaceImage.gif"... | [
"gc1179@wayne.edu"
] | gc1179@wayne.edu |
e71a2a66462e4da023ba76d3f8925e11e736f6fc | f48df6bee569e4d47c6a1a451520c89665b1b3dd | /venv/Scripts/easy_install-script.py | d906cc80361e838ffbe9b994ca50f35db310332a | [] | no_license | artume99/logic-huji | 98bf97010d6fe3fc7fdf5fb70a4cb48209a98e04 | 61c152c545b18f75993f3469350aa476bad4d98f | refs/heads/master | 2023-02-21T17:46:49.251657 | 2021-01-15T16:09:35 | 2021-01-15T16:09:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | #!C:\Users\artum\PycharmProjects\ex0_logic\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__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\.pyw?|... | [
"artume.pichersky@mail.huji.ac.il"
] | artume.pichersky@mail.huji.ac.il |
3b6209eca6e3f5c413d537974973e7ec2d154c13 | 8a1d6bbad50a7d5532849a2bf75a536b911701c7 | /PROJETO_OPE/Cliente/migrations/0003_auto_20191024_0900.py | d82985b5c8e8c5d091a0e9b520eee16a10b7241a | [
"Apache-2.0"
] | permissive | RonaldHuan/OPE_HEROKU | 1a8fab60d77f5c584fb90c6c6d3440f184f3fe75 | 306a987fbbd068d613301b9118ec22f028bf7b22 | refs/heads/develop | 2022-12-13T13:24:30.636111 | 2019-11-01T13:47:00 | 2019-11-01T13:47:00 | 216,797,954 | 0 | 0 | null | 2022-12-08T06:15:01 | 2019-10-22T11:33:29 | CSS | UTF-8 | Python | false | false | 478 | py | # Generated by Django 2.2.3 on 2019-10-24 12:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Cliente', '0002_auto_20191020_2050'),
]
operations = [
migrations.RenameField(
model_name='cliente',
old_name='cidade',
... | [
"ronaldhuna@outlook.com"
] | ronaldhuna@outlook.com |
725071459bdfe0b035de8164a562b80990a293b4 | 1b2fd519e97a9cd97404163ce45f967bd2a8ac35 | /leaf/corelib/__init__.py | 3d8a954c99d6c47d7c2ff3266ded4e67f4db4d7c | [] | no_license | herove/leaftime | 4e976d01087266af95933402e1e391ef5544caf2 | 760e26a3452909c0af7b38640b64c7f15c07893d | refs/heads/master | 2020-04-06T06:52:26.273115 | 2013-04-26T19:07:05 | 2013-04-26T19:07:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | # -*- coding: utf-8 -*-
def format_textarea(content):
return content.replace(' ',' ').replace('\r','<br/>')
| [
"huangxinms@gmail.com"
] | huangxinms@gmail.com |
cdf05ba3867e5405175fa9f46a48dad48d5d036f | 1054e39961509cf64c4d04c5361cbb302555cb07 | /tranco/tranco.py | 763e30a3816e05c6528bf9573cc09e79a3fc56b5 | [
"MIT"
] | permissive | IDSdarg/tranco-python-package | 4ea43c86da1e3b4792fa3072989a2ca865e2c3ce | afdd4b813a6d95c6de1da1b0f48cb9cb27d3a9df | refs/heads/master | 2020-04-25T11:11:25.080035 | 2019-02-22T09:43:11 | 2019-02-22T09:43:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,624 | py | import zipfile
from io import BytesIO
import requests
import os
from datetime import datetime, timedelta
class TrancoList():
def __init__(self, date, list_id, lst):
self.date = date
self.list_id = list_id
self.list_page = "https://tranco-list.eu/list/{}/1000000".format(list_id)
se... | [
"Victor.LePochat@cs.kuleuven.be"
] | Victor.LePochat@cs.kuleuven.be |
706e699fe46434c4135c596bf39f3cec23cdd72d | 970779d9ecbcd34ae807eb9753ab071b6d7cca8f | /starter/ArrayInitListener.py | 74880e144bd1c488d5a835cf410642b3e33a1349 | [] | no_license | bahelms/antlr_reference | 8a0d0e60a64df374ac08c5fff2de0917529480af | 764ab5ce1cb485d1c8f9ae9ba7aa2a1f1bbbb36b | refs/heads/master | 2021-01-11T20:24:41.448056 | 2017-01-16T11:28:10 | 2017-01-16T11:28:10 | 79,111,982 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | # Generated from ArrayInit.g4 by ANTLR 4.6
from antlr4 import *
if __name__ is not None and "." in __name__:
from .ArrayInitParser import ArrayInitParser
else:
from ArrayInitParser import ArrayInitParser
# This class defines a complete listener for a parse tree produced by ArrayInitParser.
class ArrayInitListe... | [
"jimbonkgit@gmail.com"
] | jimbonkgit@gmail.com |
7f410f1c099a7934b640d4e4373f1409be582257 | 0e7c0a6a3526e7314db0586b7955549e3a1bf318 | /classes/DNA.py | bb981dde3d2b484c7a84a27d426ca709a871c5c7 | [] | no_license | felipecaon/biogenetics | 6fbfd88596fb72066e31dffc822704abe107ec12 | 9aa47039c23d7ba97a50d87507718dc55a7ad75e | refs/heads/main | 2023-02-17T01:53:22.151539 | 2021-01-15T01:46:58 | 2021-01-15T01:46:58 | 328,849,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | from structures import *
class DNA:
def __init__(self, sequence: str):
self.sequence = sequence
def is_valid(self) -> str:
dna = self.sequence.upper()
for nucleotide in dna:
if nucleotide not in NUCLETIODES:
return "No"
return "Yes"
def nucleoti... | [
"felipecaon@gmail.com"
] | felipecaon@gmail.com |
92d14350e8edce39b8445a6f227bf2d122f516c3 | 6052b1d422ebcbfc0f169ec613b1f71da976bdb8 | /Users/forms.py | e8f56bb343326601bffc973c2867c2d61f87a558 | [] | no_license | NickJacksonDev/DnD-Manager | e777951268ca5f7a9a62dd9410446c5ee092158c | 36f416e56770a2a8c60e93652c084e32f96f86fa | refs/heads/master | 2020-04-21T04:14:34.279087 | 2019-04-08T16:45:44 | 2019-04-08T16:45:44 | 169,307,667 | 1 | 0 | null | 2019-04-08T16:45:45 | 2019-02-05T20:28:12 | Python | UTF-8 | Python | false | false | 539 | py | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from .models import Profile
class UserRegistrationForm(UserCreationForm):
email = forms.EmailField()
class Meta:
model = User
fields = ['username', 'email', 'password1', 'password2']
clas... | [
"rhinerb@yahoo.com"
] | rhinerb@yahoo.com |
4ae38bf37f087171ec3c5696178bac6ec29af31a | e909cc38162f5112d332c45dea90925a2c766f49 | /0x0A-python-inheritance/1-my_list.py | cd6dde881a9ff80be8428d8698a76c52971a3ddf | [] | no_license | Edw10/holbertonschool-higher_level_programming | 839f621faaf33d7d7e9b1205df3bd33e731751aa | 3ad573499ab747fc99562ea17c38085fc74f0af4 | refs/heads/master | 2020-09-29T08:02:46.776556 | 2020-05-15T06:34:10 | 2020-05-15T06:34:10 | 226,993,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | #!/usr/bin/python3
"""
this module define the mylist class
"""
class MyList(list):
""" this class define a list """
def print_sorted(self):
a = self.copy()
a.sort()
print(a)
| [
"edward-1094@hotmail.com"
] | edward-1094@hotmail.com |
ba4dc9a3e0310e33e72f058bdeecd81c7f112874 | 21e7753732296bfdfb6dd9a9b58c7c6b8d90a1e5 | /Moderate/computeArithmetic/compute_test.py | 5068d68d073034d66486c3bcc8fa9b242a962da7 | [] | no_license | rongfeng-china/python-algorithms-and-data-structures | eb8514b44d7ff97dd7c4deda2d8ea888a5aa8d04 | a69241bb7b684bc7d00acdd46c2fc214f7b61887 | refs/heads/master | 2020-03-13T09:08:13.375870 | 2015-12-11T07:37:30 | 2015-12-11T07:37:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | from compute import compute
import pytest
def test_compute():
sequence = '3+6*2'
result = 15
assert(compute(sequence) == result)
sequence = '2*3+5/6*3+15'
result = 23.5
assert(compute(sequence) == result)
| [
"prathamt@outlook.com"
] | prathamt@outlook.com |
ca185726daf9925bb0f9621307ca35643bdeff27 | f8f72ee88ce1e74ea9c89e6c2d730588e5b72581 | /day/manage.py | 202fa80900dfd8c68ab04cfab8bd897bd4967836 | [] | no_license | mahima2001/Weekday | a330eef85eaac6bd0e102474316fcb9e4568c618 | dc6f7703cb86bd4c6e1a2db5c1073ba7759d7181 | refs/heads/master | 2023-03-21T12:27:20.644797 | 2021-03-18T11:38:17 | 2021-03-18T11:38:17 | 349,049,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'day.settings')
try:
from django.core.management import execute_from_command_line
except ImportEr... | [
"43854083+mahima2001@users.noreply.github.com"
] | 43854083+mahima2001@users.noreply.github.com |
1ee025f1a635ca592a6c94b9968cb4f692e785a8 | 9512f329d9326ed0b9436202947de9eee0c6c387 | /Cap18_Tkinter/08_listbox.py | 8dfc43f4ae5efd2df391ab9fa9cfb1b326142bb0 | [] | no_license | frclasso/CodeGurus_Python_mod1-turma1_2019 | 9fffd76547256ac480db41536223682a5b152944 | e34d60498ee45566dbf1182551d91250a9aab272 | refs/heads/master | 2020-04-30T02:01:50.757611 | 2019-06-10T15:38:58 | 2019-06-10T15:38:58 | 176,546,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from tkinter import *
root = Tk()
Lb1 = Listbox(root)
Lb1.insert(1, 'Python')
Lb1.insert(2, 'Django')
Lb1.insert(3, 'C#')
Lb1.insert(4, 'Kivy')
Lb1.insert(5, 'PHP')
Lb1.insert(6, 'C++')
Lb1.insert(7, 'JavScript')
Lb1.insert(8, 'Go')
Lb1.pack()
root.mainloop() | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
40e74dc702e56a77ea4d018c352ad9c7ab4564e1 | b97b92ebbf316b8fc93e1b85ae4f682d30d352b0 | /sensehatBot/TelegramSensehatFunctions.py | 2762ed45b967ad44008bdeef6340645266e05dc6 | [] | no_license | joeczar/TelegramBot | e10453886228d16d535cc20cb514d90ddf15c6c6 | 2869542f51d01d96beb59ce2827936196ab8a7a1 | refs/heads/master | 2020-12-24T00:43:29.993888 | 2020-07-20T19:49:44 | 2020-07-20T19:49:44 | 237,325,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,638 | py | from sense_hat import SenseHat
from random import random
sense = SenseHat()
sense.clear()
sense.rotation = 180
def listToString(list):
listToStr = ' '.join(map(str, list))
return listToStr
def scrollIt(command):
command.pop(0)
msg = listToString(command)
sense.clear()
sense.show_message(msg... | [
"joe.czar@outlook.com"
] | joe.czar@outlook.com |
371d37a2f133021412ac966e7e6bd23d4ef9c322 | 25d0662513250a47d9bad804272fcd1d3745b401 | /utils/samples_selection.py | bf17bcba3f503b9b53e16bbb953b8a172c803019 | [] | no_license | KamauLaud/DyIntVM | 20260a078dd3671dc7c7b2b60ed21175cde52f29 | 6bfb324ad83a156cbcee752de93cd7c3d07db68f | refs/heads/main | 2023-04-30T10:51:23.720945 | 2021-05-13T02:55:24 | 2021-05-13T02:55:24 | 361,433,324 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,846 | py | from typing import Tuple
from utils.criteria import least_confidence, entropy, margin_sampling
import numpy as np
def get_high_confidence_samples(pred_prob: np.ndarray,
delta: float) -> Tuple[np.ndarray, np.ndarray]:
"""
Select high confidence samples from `D^U` whose entropy ... | [
"juvekaradheesh@gmail.com"
] | juvekaradheesh@gmail.com |
d815039b9e06aea27a8c4be83b8cfe0f8ff56847 | 93a1ea0e5fc706e8521bbd063622f9946407b78a | /Python_Programming/Basics and use/Str_Fun_Examples.py | 4847f743f5ad6bc2d358a1fabdebd05bbd15d913 | [] | no_license | BZukerman/StepikRepo | 4167b14418f6b42ad47bfa23f21b47bb320d1073 | 44a8d4bd97d688ab9708f71c8d7bc0ead2f0bb0b | refs/heads/master | 2021-09-18T15:12:05.711599 | 2021-08-04T10:30:42 | 2021-08-04T10:30:42 | 228,837,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,190 | py | A = "abc"
B = "abcba"
C = "abce"
D = "aec"
print(A in B) # True
print(C in B) # False
print("cabcd".find("abc")) # 1
print("cabcd".find("aec")) # -1
#
print("cabcd"[1:].find("abc")) # 0
#
s = "The man in black fled across the desert, and the gunslinger followed"
print(s.startswith("The man in black")) # True
#
s = "... | [
"BZukerman@mail.ru"
] | BZukerman@mail.ru |
650541336a1d5b903261326b5ad94503620cc6f8 | 73eea555bac3beab116343b582de45edcfd98600 | /src/devtools/tools.py | 401c060f7f38bae3df3100a20644e436d2822d71 | [
"Apache-2.0"
] | permissive | trein/mac-dev-env | b0fc56eaa9142c7fdecfe2495569e9393933c316 | c85492ce0142412700364622cf4a347c3bef0eaf | refs/heads/master | 2020-12-01T11:42:48.797840 | 2015-07-06T02:51:01 | 2015-07-06T02:51:01 | 37,767,264 | 0 | 0 | null | 2015-06-20T11:13:54 | 2015-06-20T11:13:54 | null | UTF-8 | Python | false | false | 2,221 | py | from src.core import BaseModule
class Module(BaseModule):
NAME = 'devtools_tools'
def install(self):
# xcode dev tools
self.manager.info('Installing xcode dev tools...')
self.manager.exec_cmd('xcode-select --install')
# Oh my zsh installation
self.manager.info('Instal... | [
"guitrein@yahoo.com.br"
] | guitrein@yahoo.com.br |
aa902e4cdd286166f1a962b4230320da2febf6ae | 03bab7d67b8050838c47f9823f90e795d27b9217 | /calcu.py | f1e64a24126f5f5563ab9bd95e9b46ec576efd2e | [] | no_license | sabin890/pytho-class | fe511d7a13081c3f15ac51b18bcd77a18ed87d08 | 0465ae62acafc5860c51ed46967d4844c87c2449 | refs/heads/master | 2023-03-28T15:59:12.258929 | 2021-04-08T12:12:30 | 2021-04-08T12:12:30 | 355,885,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | def calcu(num_1,num_2,aa):
if(aa=="add"):
return num_1+num_2
elif(aa=="diff"):
return num_1-num_2
else:
return num_1-num_2
result=calcu(10,5,"diff")
print(result)
| [
"sabinkc9823@gmail.com"
] | sabinkc9823@gmail.com |
c73a4cb204fc6ebc11036b6ffac20b6100b459a5 | bd1108df81530b9797719506bf9f75fe918cc401 | /tests/test_tasks.py | 6365f1811f164cff38889aff4d921d6ade31eec2 | [
"Apache-2.0"
] | permissive | New123456horizon/pysqes | 46659c7fbeef775c9d7d9addab93cbd8ee3fbe80 | 37a9b2ef1a2f9eb6543f390443c04652058ee7c1 | refs/heads/master | 2021-01-12T16:25:13.555199 | 2014-04-18T23:09:50 | 2014-04-18T23:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | import unittest
from pysqes.task import Task
from .utils import add_func
class TestTask(unittest.TestCase):
def setUp(self):
pass
def test_serialize(self):
task = Task(add_func, [1, 2])
task_data = task.serialize()
self.assertTrue('[1, 2]' in task_data and "tests.utils.add_... | [
"saumotions@gmail.com"
] | saumotions@gmail.com |
6e6c198e5984e8807f34b1a4d676bb577304f095 | 58023de0289f4e5dc62b3e91a798e03423ac1b8e | /app/dngadmin_bulkdemo.py | e08e9393d46e85abe8a47d33a78e3c11b97b66b1 | [] | no_license | BeLinKang/DngAdmin | 5b1466cb7c24292200ae860be3689b43478d5160 | f78d90b93ab509f83018cc5bbe922568ab2b1fd7 | refs/heads/master | 2023-07-15T05:56:47.665627 | 2021-08-27T12:54:23 | 2021-08-27T12:54:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,994 | py |
# Create your views here.
from django.shortcuts import render #视图渲染模块
from django.http import HttpResponse #请求模块
from . import models #数据库操作模块
from django.db.models import Q #数据库逻辑模块
from django.db.models import Avg,Max,Min,Sum #数据库聚合计算模块
from datetime import datetime,timedelta #Cookie 模块
from django.http import Htt... | [
"455873983@qq.com"
] | 455873983@qq.com |
09550ce26a2345b8a92024076a1fdb708ba60fb5 | 972c2c04faa52e2bcba5bf87f350851d5ab1082f | /medium/flatten_a_multilevel_doubly_linked_list.py | a4ac3e25510042d60eefec5d605536a093526693 | [] | no_license | billangli/LeetCode | 5418b901b4bdc4dee44709d677da363e2650a612 | 0b20c07ce334180695be64b26af8a6fe6390ffea | refs/heads/master | 2021-05-14T17:00:08.597201 | 2021-04-11T01:18:57 | 2021-04-11T01:18:57 | 116,036,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | """
# Definition for a Node.
class Node:
def __init__(self, val, prev, next, child):
self.val = val
self.prev = prev
self.next = next
self.child = child
"""
class Solution:
def flatten(self, head: 'Node') -> 'Node':
prehead = Node(0, None, None, None)
curr = preh... | [
"bill.ang.li@hotmail.com"
] | bill.ang.li@hotmail.com |
5af457fe62e3892b3b3f4020666637d9ae340fac | c65874c22c733f69822b82dd29a654bcc9fe366d | /cnode-test/test_data.py | cf2addb8b879915c4a92353fa9a764cd4b415071 | [
"MIT"
] | permissive | YANGYANTEST/python-study | 5e5654153439b9c7f3e4fb3d862d5a37568a321c | 376203126f465f91eade98eaefca4ea2c123730b | refs/heads/master | 2021-09-04T22:04:33.783081 | 2018-01-22T14:55:04 | 2018-01-22T14:55:04 | 112,285,424 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py |
import time
from selenium import webdriver
test_data=[
['xiaoming','123456','123456','xm@1234.com'],
['','123456','123456','xm@1234.com'],
['xiaoming','','123456','xm@1234.com'],
['xiaoming','123456','','xm@1234.com']
]
test1_data=['xiaoming','123456','123456','xm@1234.com']
#思路:循坏嵌套,先循环拿出每一行的数据,再... | [
"15221629532@163/com"
] | 15221629532@163/com |
96060cc5899cda9db1ad7e0fa17923d892794442 | 3a6e0a22a1c737fc62899899b2f62711109f2971 | /book2/TU_mom_hypothesisTest.py | b3655509e2f21f64f3f71cac638ebc15a892d009 | [
"Apache-2.0"
] | permissive | jingmouren/epchanbooks | 2ad7635caaf3f976611c9d4697a56dc24579cb09 | 6b3aa7f4b2656489149e557519997d14e962d75f | refs/heads/main | 2023-04-03T20:19:47.856575 | 2021-04-18T04:18:52 | 2021-04-18T04:18:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,148 | py | # Hypothesis Testing on a Futures Momentum Strategy
import numpy as np
import pandas as pd
# from scipy.stats import describe
from scipy.stats import pearson3
df = pd.read_csv('TU.csv')
df['Time'] = pd.to_datetime(df['Time']).dt.date # remove HH:MM:SS
df.set_index('Time', inplace=True)
lookback = 250
holddays = 25
... | [
"if05041@gmail.com"
] | if05041@gmail.com |
40ba8ffe43795acb937bf0b35bbee97397d53d7d | a861e73dab48c21546d5c6f56427aa175292f2a2 | /web/Tracing_sys/myApp/views.py | db63d209395e09246491145dca97c1453da3815c | [] | no_license | MarsTuxz/ITR | 34376e2f49edec3ffc9b249754e55c7de650708a | 6fae4640ec6231c18b38704285c92d1b32ba394e | refs/heads/master | 2020-04-26T01:42:09.204875 | 2019-05-19T09:16:13 | 2019-05-19T09:16:13 | 173,211,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,634 | py | from collections import Counter
from django.shortcuts import render
from PIL import Image
import pytesseract
import scipy.misc as misc
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
# Create your views here.
from django.http import HttpResponse
def index(request):
return HttpRespo... | [
"18270880901@163.com"
] | 18270880901@163.com |
bd4ed80a388980e211ad2551e3365d99a7590a69 | 01ac02f87cf30b584f1c59879928cc847554f7b8 | /leetcode/011-container-with-most-water.py | aa00e392fa989821421c4722742f10db46a0c461 | [] | no_license | waithope/leetcode-jianzhioffer | aee0a670a3b1c0df2e5828b30fa3ee962837f50f | 06ba01e808f184c385e721003e357019d81b1ee7 | refs/heads/master | 2020-03-11T19:46:16.468055 | 2019-09-07T02:50:16 | 2019-09-07T02:50:16 | 130,217,391 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | # Description
# Given n non-negative integers a1, a2, ..., an , where each represents a point
# at coordinate (i, ai). n vertical lines are drawn such that the two endpoints
# of line i is at (i, ai) and (i, 0). Find two lines,
# which together with x-axis forms a container,
# such that the container contains the most ... | [
"yunqiang.gan@gmail.com"
] | yunqiang.gan@gmail.com |
513317ff9778c30a629c7e6d7f78607439b019c1 | 79509917662cdbe889a7aec43e1c710fe6145d78 | /hive/queen/migrations/0001_initial.py | 9ba1e8379a5c81be21646b524ca8742ab16ba289 | [] | no_license | ddaitest/PushCollector | 8aceb00b807520bb9bafb9e579a3368bf63c5c26 | 0ebcaf7f5bc78597939cbef2da364e8600810697 | refs/heads/master | 2021-01-19T12:38:52.093122 | 2017-11-30T04:06:14 | 2017-11-30T04:06:14 | 88,042,082 | 4 | 0 | null | 2017-04-12T11:51:59 | 2017-04-12T10:59:23 | null | UTF-8 | Python | false | false | 2,020 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-04-18 09:08
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Create... | [
"ddai_android@126.com"
] | ddai_android@126.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.