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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
57a7975749775a7b7ebf56afc6c8a8f39f7abcc6 | 4fd86f15b85f03102975d508944ac331e26e1d07 | /first/settings.py | 409b98e7205f8e589a0be4889e9801f4ef19d7de | [] | no_license | doha22/user-profile-API- | 096e25b066646f090c8a14bfba197b79ba694496 | 364f3faaa86722efe536340dcfb0a77ac5d31dad | refs/heads/master | 2020-06-12T19:24:59.306578 | 2019-09-08T21:17:26 | 2019-09-08T21:17:26 | 194,401,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,379 | py | """
Django settings for first project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
im... | [
"noreply@github.com"
] | doha22.noreply@github.com |
bce61880051656c6001a8447aca35b0b1e98cdcc | dc52081d4b06729731d048f7ede069950dbc00ed | /common_words.py | 282cb4345619e05a1406fa41da737d760b578659 | [] | no_license | gigimic/topic_modeling | a868975fabfaba7194e72da051faffda8d4c5bb7 | 96c83b690890d1c4c91b1b004ec4f48fcb142bf1 | refs/heads/master | 2023-07-25T21:02:35.898534 | 2021-09-06T06:38:30 | 2021-09-06T06:38:30 | 286,437,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | import pandas as pd
from collections import Counter
def most_common_words(data_dtm):
data_dtm = data_dtm.transpose()
top_dict = {}
for c in data_dtm.columns:
top = data_dtm[c].sort_values(ascending=False).head(20)
top_dict[c]= list(zip(top.index, top.values))
# print('printing top ... | [
"gigimic@gmail.com"
] | gigimic@gmail.com |
7fd8f206504c97cba0f8df0e0556a9906a09a3ca | 1aada0d009d1c30e44d94ea37844ed38b9036fb2 | /core/migrations/0002_tournamentsite_zip.py | 3a415fcc55556d18f9b89df9ee1b1f85ed078234 | [
"MIT"
] | permissive | grapesmoker/qtour | 2c3c5aaaffa6da32826ba94604041fe6e7234973 | dbb02613475362d9a4c7f86d047ddc012e4d8351 | refs/heads/master | 2021-01-20T05:57:09.027596 | 2017-05-28T01:13:34 | 2017-05-28T01:13:34 | 89,826,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-30 03:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.AddField(
m... | [
"grapesmoker@gmail.com"
] | grapesmoker@gmail.com |
af2e9492dc28f8de8f275110fb743e9b78dbf797 | 3ef70fe63acaa665e2b163f30f1abd0a592231c1 | /stackoverflow/venv/lib/python3.6/site-packages/pip-19.0.3-py3.6.egg/pip/_internal/vcs/__init__.py | 9cba76464ca1a26eb69d5c9dbf37f46eb9dc78f4 | [
"MIT"
] | permissive | wistbean/learn_python3_spider | 14914b63691ac032955ba1adc29ad64976d80e15 | 40861791ec4ed3bbd14b07875af25cc740f76920 | refs/heads/master | 2023-08-16T05:42:27.208302 | 2023-03-30T17:03:58 | 2023-03-30T17:03:58 | 179,152,420 | 14,403 | 3,556 | MIT | 2022-05-20T14:08:34 | 2019-04-02T20:19:54 | Python | UTF-8 | Python | false | false | 17,278 | py | """Handles all VCS (version control) support"""
from __future__ import absolute_import
import errno
import logging
import os
import shutil
import sys
from pip._vendor.six.moves.urllib import parse as urllib_parse
from pip._internal.exceptions import BadCommand
from pip._internal.utils.misc import (
display_path,... | [
"354142480@qq.com"
] | 354142480@qq.com |
7f80c2fc21926cef97f59322600076deab21b4ed | 41b9fb1a3d50da08b2b9cf5b2e48161c07f7227a | /utils.py | 5239c0c84c0da90df507db0cd80827042e0259b1 | [] | no_license | Jasmina991/Image-recognition---beautif.ai | a9356390c462d7efe4606b05b24ff2606ec9fe3a | a2ba3708f288224deecc03d7c45c9d696594d8e5 | refs/heads/main | 2023-04-27T09:13:56.477229 | 2021-05-04T17:16:29 | 2021-05-04T17:16:29 | 354,949,699 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,827 | py | # Import libraries
from google.colab import drive
import os
import pickle
import numpy as np
import pandas as pd
from scipy import interp
from itertools import cycle
import math
import cv2
import matplotlib.pyplot as plt
import seaborn as sns
import time
import urllib.request
def concat_dataset(path,... | [
"noreply@github.com"
] | Jasmina991.noreply@github.com |
a2a7ac956af02e266ad5286d8ce10398186260cf | acaa2ed02339db8bf628c02a29146d2d9f699f3b | /W17B-Git_Revue/src/error.py | aa3a68aacf88e66490708e4ecfa4fd7c718b60af | [] | no_license | jiaqizhu22/COMP1531 | 5c87411ba7ab9d3af597e6db852fc7d4a73109f9 | 29984ba66ad10a621519850537c2908d9d840384 | refs/heads/master | 2023-01-12T20:43:43.652844 | 2020-11-20T19:46:27 | 2020-11-20T19:46:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | #pylint: disable = missing-docstring
from werkzeug.exceptions import HTTPException
class AccessError(HTTPException):
code = 400
message = 'No message specified'
class InputError(HTTPException):
code = 400
message = 'No message specified'
| [
"noreply@github.com"
] | jiaqizhu22.noreply@github.com |
2ba31e7a90badb5fed8c2e13245185b77c8e19da | 91bd3f2e5d318bbfb69994fb0018d6be20be1e13 | /load_replay.py | bb9e31a88b12f08f686955c63aa1f918516d0612 | [] | no_license | jesterswilde/dlgo | 9aebd87a49de5c750284f8e58eb824421c4f3a98 | a67a8c4674ec56058f7a7f48bcf5cda8a711606c | refs/heads/master | 2020-09-12T06:43:02.414401 | 2019-11-27T00:41:55 | 2019-11-27T00:41:55 | 222,344,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | from dlgo.gosgf import Sgf_game
from dlgo.goboard import GameState, Move
from dlgo.gotypes import Point
from dlgo.utils import print_board
from time import sleep
sgf_example = "(;GM[1]FF[4]SZ[9];W[ef];B[ff];W[df];B[fe];W[fc];B[ec];W[gd];B[fb])"
sgf_game = Sgf_game.from_string(sgf_example)
game_state = GameState.new... | [
"jesterswilde@gmail.com"
] | jesterswilde@gmail.com |
e283ce5088a7510584c25bdf3ab120ce9c5c0d0d | bf75b5c5d1c984dec08052d40a6dc524294767c8 | /bookms/settings.py | 763ccfef3acd9bc723f045a743aaf2b757298cea | [] | no_license | kqjhuang/bookms | 5a40cf37fb4045526824c71672436731286d38d8 | f33f0695e628a4e7b44eba5f41bb8dbdc97ad363 | refs/heads/master | 2021-01-10T07:59:40.446030 | 2015-11-07T10:27:03 | 2015-11-07T10:27:03 | 45,731,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,813 | py | """
Django settings for bookms project.
Generated by 'django-admin startproject' using Django 1.8.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths... | [
"252331757@qq.com"
] | 252331757@qq.com |
9b52f8728284f014f32195d6f50595415bcec9bb | cf54adda6874a4256401e9e4eb28f353b28ae74b | /python-modules/python_call_django_view.py | f56832338684b861081db955189ae868d9eae874 | [] | no_license | oraant/study | c0ea4f1a7a8c3558c0eac4b4108bc681a54e8ebf | 7bce20f2ea191d904b4e932c8d0abe1b70a54f7e | refs/heads/master | 2020-09-23T02:08:07.279705 | 2016-11-21T06:30:26 | 2016-11-21T06:30:26 | 66,995,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | # coding:utf-8
# # tree /home/oraant/test/django_celery/|grep -v .pyc
# /home/oraant/test/django_celery/
# ├── django_celery
# │ ├── __init__.py
# │ ├── settings.py
# │ ├── urls.py
# │ ├── wsgi.py
# ├── manage.py
# └── myapp
# ├── admin.py
# ├── apps.py
# ├── __init__.py
# ├── migrations
# ... | [
"oraant777@gmail.com"
] | oraant777@gmail.com |
5faf40bbcb2caaa7edd850c568952b71d9a6de70 | 05c22017cde07bb9fdff2c7f03f2602b1cd15323 | /src/textual/widget.py | e43372e6a165b2ec0153e5c91c32e700bf39cf10 | [
"MIT"
] | permissive | ramiro/textual | 00b0a7fc6fea95d327455c8328248cd926f3eaff | a6a912ab2713b0e1cb668224f7a38f31b1c9939c | refs/heads/main | 2023-06-14T01:22:40.975706 | 2021-07-05T14:06:16 | 2021-07-05T14:06:16 | 383,201,815 | 0 | 0 | MIT | 2021-07-05T16:25:54 | 2021-07-05T16:25:53 | null | UTF-8 | Python | false | false | 6,353 | py | from __future__ import annotations
from logging import getLogger
from typing import (
Callable,
cast,
ClassVar,
Generic,
Iterable,
NewType,
TypeVar,
TYPE_CHECKING,
)
from rich.align import Align
from rich.console import Console, RenderableType
from rich.pretty import Pretty
from rich.... | [
"willmcgugan@gmail.com"
] | willmcgugan@gmail.com |
a5ae296b4881fee18f5d49e648859f792efa4b90 | 44eab5a177b580df2c4d71df8bbf106b9d9cdb6d | /project/Q-sigma-lambda/main_gridworld_2.py | 14864a0044b294103c5943e239ce9d44d7284df8 | [] | no_license | abnan/TD-error-as-a-Q-learning-heuristic | 9ebca47b5dba4da7db163a0569b84ab86cb20872 | e905c00f8e6d1a112105505ac820a155c9b1144f | refs/heads/master | 2020-11-28T12:35:36.038480 | 2020-01-04T19:31:35 | 2020-01-04T19:31:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,721 | py | #Exponential decay
import numpy as np
import random
from windy_gridworld2 import WindyGridworldEnv, StochasticWindyGridworldEnv
import itertools
import matplotlib.pyplot as plt
import csv
np.random.seed(198)
env = StochasticWindyGridworldEnv()
episodes = 100
num_run = 10000
# epsilon = 0.1
lr = 0.8
gamma = 1
lmbda ... | [
"abhisheknan1993@gmail.com"
] | abhisheknan1993@gmail.com |
2adb8260f01517312ffc1b26f404f21fed669e76 | 9df0d99e15ef01bf310e310e383594e817030a50 | /mainapp/admin.py | 38e40daa2d4457adc8f9614033b3274df613ce34 | [] | no_license | lalinaloginoval/geekshop-server | 255a0fe22b97d71f210f1c6dee73527eab2e85d0 | fb12b3ec5fb8edcd246a1c5ffdd2895399d08b08 | refs/heads/master | 2023-06-21T04:08:54.956510 | 2021-07-20T15:56:31 | 2021-07-20T15:56:31 | 359,889,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | from django.contrib import admin
from mainapp.models import ProductCategory, Product
admin.site.register(ProductCategory)
@admin.register(Product)
class ProductAdmin(admin.ModelAdmin):
list_display = ('name', 'price', 'quantity',)
fields = ('name', 'image', 'description', 'price', 'quantity', 'category')
... | [
"alina.login30@gmail.com"
] | alina.login30@gmail.com |
1e655ce6a6ae00b4bf3508a48cb7d6afd4ed5643 | c2d461873c891869e6a082fa4f8f4a5855af89b9 | /worldmeter.py | 42629910133754d6982acae2046c77423ccb665f | [] | no_license | aimclee/vn-corona-server | b28b58a652debf4b577d4c94b4195af60fe2a525 | d7aacbd0e1d88c151581d642f7b328a2c3aad8c7 | refs/heads/master | 2021-04-23T17:28:23.978053 | 2021-03-24T14:30:15 | 2021-03-24T14:30:15 | 249,946,930 | 1 | 0 | null | 2020-03-25T10:19:17 | 2020-03-25T10:19:17 | null | UTF-8 | Python | false | false | 1,412 | py | from bs4 import BeautifulSoup
import requests
def coronaParsing():
url = 'https://www.worldometers.info/coronavirus/'
response = requests.get(url)
data = response.text
soup = BeautifulSoup(data, 'html.parser')
url_corona = soup.find_all('div', {'class': 'maincounter-number'})
###
title =... | [
"equuse3144@gmail.com"
] | equuse3144@gmail.com |
8fb3fd4c442c10f7729994c9eb4b72ccd3b904b4 | c4e08dea65628a880920b3289d41e06ee80532f6 | /HW3_submission/63_submission/hw3.py | 44ff40311375d9f285681ede88eefe92a370eb2c | [] | no_license | AlexTuisov/HW3 | e9c53a80c07f316d4d467089a44b9059d29a8ca6 | 2f660cbcb5110c8b7aa1eccafb77b62b29979e48 | refs/heads/master | 2023-03-25T10:04:15.691570 | 2021-03-02T16:06:10 | 2021-03-02T16:06:10 | 326,445,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,961 | py | import random
from copy import deepcopy
import operator
ids = ['318483906', '316051903']
class Agent:
def __init__(self, initial_state, zone_of_control, order):
self.zoc = zone_of_control
self.state = initial_state
self.order = order
self.out_of_zone = self.outer_zone(self.zoc)
... | [
"queldelan@gmail.com"
] | queldelan@gmail.com |
df4bc3c52cb2cc13ff6155431b8a111077115ef7 | da6d44b06f631387739d04471920037e8541d6c0 | /problems/014.py | 8753c9f24c8c00abf2eddba5325e948652a085c7 | [
"MIT"
] | permissive | JoshKarpel/euler-python | f6d5d5551a0d77565c852e3eb1e89522675824ec | 9c4a89cfe4b0114d84a82e2b2894c7b8af815e93 | refs/heads/master | 2021-09-01T09:07:46.378352 | 2017-12-26T05:39:35 | 2017-12-26T05:39:35 | 64,712,642 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | from problems import mymath, utils
@utils.memoize
def collatz_length(n):
if n == 1:
return 1
if n % 2 == 0:
return 1 + collatz_length(n / 2)
else:
return 1 + collatz_length((3 * n) + 1)
def solve():
collatz_lengths = {x: collatz_length(x) for x in range(1, 1000001)}
ret... | [
"josh.karpel@gmail.com"
] | josh.karpel@gmail.com |
33a26a9eff1d85003c886ec1259d2874765ba03b | a2b6bc9bdd2bdbe5871edb613065dd2397175cb3 | /中等/旋转图像.py | 239a028395365d7e1f8543fcf746f87fc6437301 | [] | no_license | Asunqingwen/LeetCode | ed8d2043a31f86e9e256123439388d7d223269be | b7c59c826bcd17cb1333571eb9f13f5c2b89b4ee | refs/heads/master | 2022-09-26T01:46:59.790316 | 2022-09-01T08:20:37 | 2022-09-01T08:20:37 | 95,668,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | '''
给定一个 n × n 的二维矩阵表示一个图像。
将图像顺时针旋转 90 度。
说明:
你必须在原地旋转图像,这意味着你需要直接修改输入的二维矩阵。请不要使用另一个矩阵来旋转图像。
示例 1:
给定 matrix =
[
[1,2,3],
[4,5,6],
[7,8,9]
],
原地旋转输入矩阵,使其变为:
[
[7,4,1],
[8,5,2],
[9,6,3]
]
示例 2:
给定 matrix =
[
[ 5, 1, 9,11],
[ 2, 4, 8,10],
[13, 3, 6, 7],
[15,14,12,16]
],
原地旋转输入矩阵,使其变为:
[
[15... | [
"sqw123az@sina.com"
] | sqw123az@sina.com |
e130f466ce72a531a6005ed0b98ff6f888c5fdee | f52f778295b037017d957535d51784d76ccaa3ac | /applications/tensorflow/cnns/training/Models/squeezenet.py | b1b129c2b5ef9aa592f766d1b803f58b3567ee77 | [
"MIT"
] | permissive | dkuo123/examples | 7cbf79bc93727cb3bf6971389b7867930bfdbdf6 | 51cda4c15641ee2b4b035a2c0dcfd7ddbf2eb7ff | refs/heads/master | 2022-12-27T14:18:49.863747 | 2020-10-16T17:57:14 | 2020-10-16T17:57:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,353 | py | # Copyright 2019 Graphcore Ltd.
"""
SqueezeNet
A Convolutional Neural Network with relatively few parameters (~1.25M) but equivalent
accuracy to AlexNet.
Architecture originally described in Caffe. Implemented here in TensorFlow for the IPU.
SQUEEZENET: ALEXNET-LEVEL ACCURACY WITH
50X FEWER PARAMETERS AND <0.5MB MO... | [
"dave.lacey@graphcore.ai"
] | dave.lacey@graphcore.ai |
d1494b6c3b9f0dd61bac4207e1580625cf158dac | ed8de41b5bd5c9b630047b2b558e5ed447561812 | /mbm/test_app/migrations/0021_emailrequest.py | c657d411673ed50adbf7d51426cd6229d0e8f133 | [] | no_license | rreubenreyes/mbm-photo | 0ce6b490444655ac325ae6d689911f638091cc83 | 508a8b18ec96977bbd06f35faea398da1ff91d10 | refs/heads/master | 2021-06-21T10:32:22.712387 | 2017-07-21T02:44:42 | 2017-07-21T02:44:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-07-17 01:45
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('test_app', '0020_auto_20170717_0036'),
]
operations = [
migrations.CreateMo... | [
"reuben.a.reyes@gmail.com"
] | reuben.a.reyes@gmail.com |
5567298ebb7978b48d392a67d3eb54b950aaa0f8 | 1f93f6540452af25ebe1e3a4fd4d1b1fc2151c18 | /personal/urls.py | b2e1836fd943775fcc90887ab6b7c19c023bced7 | [] | no_license | UdAyPaLRedDy/mysite1 | 51e80b3838e9e8aaa6f8e046aa6bf7ec5ad6fbc0 | 4c04caf715dbff0e6df91a8e9f7e099dce2dcd92 | refs/heads/master | 2021-01-19T12:00:24.745090 | 2017-04-12T05:42:36 | 2017-04-12T05:42:36 | 85,436,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | from django.conf.urls import url, include
from . import views
urlpatterns = [
url(r'^$', views.index, name= 'index'),
url(r'^contact/$', views.contact, name= 'contact'),
]
| [
"udayreddy993@gmail.com"
] | udayreddy993@gmail.com |
c68040c95d47cb1dbdc67e5ffca73df49529010b | dec108426231384227c39fd83adbd196f9149329 | /forge/ethyr/io/__init__.py | 53417336b1d41cf6bd2eb3f817ada3db9621aa51 | [
"MIT"
] | permissive | Justin-Yuan/neural-mmo | 591495d32e20142f8156e09aa725dd124285fd9e | cde2c666225d1382abb33243735f60e37113a267 | refs/heads/master | 2020-09-06T19:55:26.249578 | 2019-11-09T17:49:18 | 2019-11-09T17:49:18 | 220,532,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | from .stimulus import Stimulus
from .action import Action
from .serial import Serial
from .io import IO
| [
"sealsuarez@gmail.com"
] | sealsuarez@gmail.com |
c84672dce8dcc55f0b56317afaca39ca97c9f8e9 | 5caea19ef73c546b7c53b87fe701129dc98f8327 | /interaction_analysis/main_text_scenario1/main_figures.py | 5142dc7b518ebcc15eeac29ed74eefa2d6678379 | [] | no_license | ShotaSHIBASAKI/Switching_Environment | 8fa9a8007f49022e821eaf6741abe1e744cc0576 | 004ac7cf02b97bc997706ac1eb037c13e5e48f9a | refs/heads/master | 2023-08-10T16:21:32.163682 | 2021-09-21T08:02:58 | 2021-09-21T08:02:58 | 290,143,823 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,647 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Aug 25 11:54:38 2020
Plot Figs.2 and 3 in the main text
"""
import os
import numpy as np
import matplotlib.pyplot as plt
import scipy as sp
from scipy import stats
import pymc3 as pm
from scipy.stats import dirichlet
def SmaplingDIr(obs, index):
"... | [
"noreply@github.com"
] | ShotaSHIBASAKI.noreply@github.com |
f42ee53ee830d9587b5a82912dbf2299d14c6e20 | ceef7327e18aebb652179d7799c509d598bdaee7 | /alt/muenzelwuerfezehnmal.py | 44a97b9b988297330c93d4a7bb27570e2f03d777 | [] | no_license | cnrgrl/PYTHON-1 | 71d8e9baa5a24c14901909171aeb5b8ac3fbb1bc | 63b1ee2667cb7f3d446541625e89b7e23ff966a0 | refs/heads/master | 2022-11-26T19:37:28.936978 | 2020-08-03T20:24:39 | 2020-08-03T20:24:39 | 279,966,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | import random
einsatz = 5
gewinn = 25
fail = 0
flip_n = 0
tage = 0
gewin_tage = 0
for i in range(1, 10001):
while fail < einsatz < gewinn:
wurfen = random.choice([True, False])
if wurfen == False:
einsatz -= 1
else:
einsatz += 1
flip_n +=1
hintereina... | [
"ugrl.cnr@gmail.com"
] | ugrl.cnr@gmail.com |
2d503aba7195bc7d6af601fb19d8e21dd724b07c | d82cd565ce0aaec97716a624d9ede0a27e34b660 | /run.py | 253d8fa51219e8dfa7ed2c10499663f6383fa9a8 | [] | no_license | NanyiJiang/glados | d19fcf2a6010c8aedc04b226b54dd6cb78a6fc41 | 04fcbbe0c7c50bdf8585280b86427661bbf26035 | refs/heads/master | 2020-12-31T06:22:01.639747 | 2016-04-19T05:43:45 | 2016-04-19T05:43:45 | 55,537,640 | 0 | 0 | null | 2016-04-05T19:06:04 | 2016-04-05T19:06:04 | null | UTF-8 | Python | false | false | 691 | py | #!/usr/bin/env python
import sys
from client import GladosClient
def main():
try:
token_file = open('.slack-token')
token = token_file.read().strip()
except FileNotFoundError:
print('Could not find slack token file .slack-token')
sys.exit(1)
debug = False
if len(sys.... | [
"patrickwhite.256@gmail.com"
] | patrickwhite.256@gmail.com |
8a7fcd602ce6c36bfe796131b87836fae4d82507 | 04ebcbce9e6ba1329a080f6a970c92fa38bfd3ad | /wxVTKRenderWindowInteractor.py | b082593f5eab958cc247a4efb72b0cbd38ccb342 | [] | no_license | Garyfallidis/trn | a9400dfa6cf38887e8ba33a03bfdbc65222a82f6 | 558086a2c0c360dba9c204be35e9e206750fda5d | refs/heads/master | 2020-03-26T17:03:38.476085 | 2013-02-01T03:19:34 | 2013-02-01T03:19:34 | 2,917,853 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,333 | py | """
A VTK RenderWindowInteractor widget for wxPython.
Find wxPython info at http://wxPython.org
Created by Prabhu Ramachandran, April 2002
Based on wxVTKRenderWindow.py
Fixes and updates by Charl P. Botha 2003-2008
Updated to new wx namespace and some cleaning up by Andrea Gavana,
December 2006
"""
"""
Please see... | [
"garyfallidis@gmail.com"
] | garyfallidis@gmail.com |
f08e7a8b8c0afb4f06cd501c4310cd9d053f667b | 67667742f5bd8f1dc9340aae26493cb78b88d8e1 | /traderrl/env/state_over_time.py | edb15d88c3adbe463d244b8663e443ad112b9461 | [] | no_license | q-learning-trader/trader-rl | ae6e4ed51a0c5e769b3dcf01d0d147b95d909df5 | f070f7fe29af828c258530721f2ac484d9ccb0ac | refs/heads/master | 2021-04-23T22:17:21.269099 | 2019-08-26T05:12:41 | 2019-08-26T05:12:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,678 | py | import numpy as np
def candle_maker(self, state):
new_state = []
highs = []
lows = []
new_state.append(state[-1][0])
for i in range(len(state)):
highs.append(state[i][1])
for i in range(len(state)):
lows.append(state[i][2])
new_state.app... | [
"willie@adaptation.io"
] | willie@adaptation.io |
5fa942cb659bf118cc2641d8efd9e84d123cea48 | ceb7e3c876484200569e934c90b18d059f465657 | /tools.py | 53df081df42e0ae9e3f5619fe807fc84a14d4554 | [] | no_license | jason91403/bot_DC | 20e93927f76b094989b5715c6590025e93ba19d2 | 15cd5e98539960f7bbab40659b1b9e272c133ee1 | refs/heads/master | 2021-01-25T06:56:48.710785 | 2017-10-05T14:51:22 | 2017-10-05T14:51:22 | 93,633,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,178 | py | import collections
import math
class Tools(object):
def __init__(self):
pass
@staticmethod
def get_distance(x_position, y_position):
return math.sqrt(math.pow((x_position[0] - y_position[0]), 2) + math.pow((x_position[1] - y_position[1]), 2))
@staticmethod
def record_map_to_loca... | [
"j91403@gmail.com"
] | j91403@gmail.com |
74fdcfd69840950e1b3e336b45fef12d98d7d355 | 91ff6fdf7b2ccc58869d6ad41842f230644952c1 | /requirements/venky_task/String/7.py | 4f1a8999bfbb7bfa6d11aac952ba9d77b5cfcd61 | [] | no_license | KONASANI-0143/Dev | dd4564f54117f54ccfa003d1fcec4220e6cbe1f9 | 23d31fbeddcd303a7dc90ac9cfbe2c762d61c61e | refs/heads/master | 2023-08-14T15:59:59.012414 | 2021-10-13T14:54:49 | 2021-10-13T15:10:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | def venky(s):
n=s.find("not")
m=s.find("poor")
for i in s.split():
if i=="not":
c=s.replace(i,"poor")
print(s[n:]+str(c))
n=input("enter a string :")
venky(n)
| [
"harinadhareddypython@gmail.com"
] | harinadhareddypython@gmail.com |
1f8c10416376d98fd9647224d5f6e4826a12517b | cd0cf1c75c715a67502ff7f164bb070da78956de | /calculation/migrations/0046_auto_20160310_0927.py | 2a0fc34d174875b0400e1f1c7e5a69becb00158e | [] | no_license | nustarnuclear/orient_linux | 9792fb4319007708861d619dac081fa32206d3f6 | 95082ea56a0dfc248024f9bf54897a017985ccdf | refs/heads/master | 2020-03-28T03:17:02.629719 | 2017-01-04T08:38:16 | 2017-01-04T08:38:16 | 43,117,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import calculation.models
class Migration(migrations.Migration):
dependencies = [
('calculation', '0045_server_queue'),
]
operations = [
migrations.RemoveField(
model_nam... | [
"hengzhang@nustarnuclear.com"
] | hengzhang@nustarnuclear.com |
fc0dfd542cb1fc87198d882b23f32e2a923cb059 | 8822149855c27522b54b05f796e292c1c63dbdf6 | /mnist.py | 105022e5d79ea5317478d7612e35b04793373105 | [] | no_license | jaythaceo/TensorFlow-Tutorial | 3c33844b473e67c63bfa9992c124e22ac2a394c3 | b4eca4f3f25eeedd868ee2a0645eb617c1b3208a | refs/heads/master | 2021-06-27T01:38:49.942255 | 2017-02-04T23:09:51 | 2017-02-04T23:09:51 | 59,586,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,675 | py | # Copyright 2016 Jason "jaythaceo" Brooks. 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 appli... | [
"jaythaceo@gmail.com"
] | jaythaceo@gmail.com |
66466494386c8a107ff4f40e407535ade7080eb0 | e171f26598e7c134f7384b63e8bfbb3f51be6478 | /migrations/versions/2feafb94b028_.py | c0cbdd7c157b139faf3c182a7fddf9b49ac6af65 | [
"Apache-2.0"
] | permissive | matteobaldelli/tesi-api | de5811f611b65bfdd24fcc24e8da5a88d07be6fc | 0b1caacec4ce7e633a69aaf4d6666c08f18248ca | refs/heads/master | 2020-03-30T23:10:55.493190 | 2018-12-19T14:40:20 | 2018-12-19T14:40:20 | 151,692,881 | 0 | 0 | null | 2018-12-07T16:56:00 | 2018-10-05T08:36:52 | Python | UTF-8 | Python | false | false | 648 | py | """empty message
Revision ID: 2feafb94b028
Revises: 528a88a08c26
Create Date: 2018-10-15 10:59:54.796906
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '2feafb94b028'
down_revision = '528a88a08c26'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"baldelli.matteo2@gmail.com"
] | baldelli.matteo2@gmail.com |
2adb5dfa09418d7c569c7c8a6bebcfa114e65261 | 4652840c8fa0d701aaca8de426bf64c340a5e831 | /third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer.py | 3649c2d42293998faef2f42ce2b30daf3f057f7c | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft"
] | permissive | remzert/BraveBrowser | de5ab71293832a5396fa3e35690ebd37e8bb3113 | aef440e3d759cb825815ae12bd42f33d71227865 | refs/heads/master | 2022-11-07T03:06:32.579337 | 2017-02-28T23:02:29 | 2017-02-28T23:02:29 | 84,563,445 | 1 | 5 | BSD-3-Clause | 2022-10-26T06:28:58 | 2017-03-10T13:38:48 | null | UTF-8 | Python | false | false | 20,758 | py | # Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above
# copyright notice, this list of con... | [
"serg.zhukovsky@gmail.com"
] | serg.zhukovsky@gmail.com |
3a31fa232550234e8b13ac86c47c014b0d9286a5 | 41b4e362819e38239afa1cd79692e587c351bd6e | /gym_qiskit-game/envs/qiskit-game_env.py | d33842d336d2955a5675f2518a6b599f407f7bfd | [
"MIT"
] | permissive | PabloAMC/gym-qiskit-game | 4e52e4066aa353b3717a2502c20e9eff682da3be | e7723db11f4286a74814220aa9d5ade018f371aa | refs/heads/master | 2020-09-05T04:14:56.432331 | 2019-12-04T17:20:38 | 2019-12-04T17:20:38 | 219,979,801 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,745 | py | import gym
from qiskit import *
%matplotlib inline
from gym import error, spaces, utils . #Probably my own space
from gym.utils import seeding
import numpy as np
import math
from qiskit import(
QuantumCircuit,
execute,
Aer)
class QiskitGameEnv(gym.Env):
'''
The game starts in state |+>|->|+>|->|+>|-> ... | [
"noreply@github.com"
] | PabloAMC.noreply@github.com |
dfad275dde294c663c5a57d8a8191d0dd9174ac4 | 9b7ff4be461a619bd7fe4e02d285c4375a0df297 | /src/create_config.py | bf8c01829f7dfa11afaf33f7aadac8cdb8b19f7c | [
"Apache-2.0"
] | permissive | PTA84/google_assistant_vietnamese_speaking | 1f59bbf33f359e919f649022f78fb31ae3ceef12 | 938376c3bb80a78d8b8c3c714363550f3c9ea7b6 | refs/heads/main | 2023-06-26T12:59:31.796526 | 2021-07-15T06:01:56 | 2021-07-15T06:01:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,642 | py | import json
data = {}
data['mic'] = []
data['mic'].append({
'type': 'None Respeaker Mic',
'is_active': True
})
data['mic'].append({
'type': 'ReSpeaker 2/4-Mics Pi HAT',
'is_active': False
})
data['mic'].append({
'type': 'ReSpeaker Mic Array v2.0',
'is_active': False
})
d... | [
"noreply@github.com"
] | PTA84.noreply@github.com |
61a317af4960d6afc294524a644e313c38ba24ec | fadae8c730ada52c05a5e081f686b7619b7c8675 | /job/urls.py | 30d99d1ba83ef5304f88963822e6b3c268e5508f | [] | no_license | amar-jondhalekar/online-job-portal2019-20 | b609361166f2721a31384f008920f1cabba45689 | 41495bf54cfbfe22a76b1e9025741bccdf2d2ed0 | refs/heads/master | 2022-12-24T10:42:26.925801 | 2020-10-05T13:19:19 | 2020-10-05T13:19:19 | 301,413,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,943 | py | """unicareer URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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-bas... | [
"amarjondhalekar221297@gmail.com"
] | amarjondhalekar221297@gmail.com |
e4857470aea4908288af4a85deb4bb7996268d41 | ab8a40b20c2330a514121f85a4fbd4400cb8136e | /Yj3b.py | f4bcba134e4e92d687d0a1c16a8856f5107ef2fd | [] | no_license | transit2019x/techgym_python | 331fd7f725f21ca32d30409d0c4366cfb9af1547 | 42d0819bb20de0730c95b4dade9a69fa9b9d1fe7 | refs/heads/master | 2020-06-03T21:35:19.274144 | 2019-06-11T17:05:28 | 2019-06-11T17:05:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | import random
class Player:
def __init__(self, name, coin):
self.name = name
self.coin = coin
def info(self):
print(self.name + ':' + str(self.coin))
def set_bet_coin(self, bet_coin):
self.bet_coin = bet_coin
self.coin -= bet_coin
class Human(Player):
def __init__(self, name, coin):
... | [
"noreply@github.com"
] | transit2019x.noreply@github.com |
829abf4b2c1d0666fc4e2e737564e685026f32d5 | 52d734065cc158d45989077217e918d5515fecb6 | /hyperglass_bird/configuration.py | d7687b7fcd6fa757f61c61605eb4884e8d55dc3f | [
"BSD-3-Clause-Clear"
] | permissive | thatmattlove/hyperglass-bird | 1d2281c1e999fcb67b415f148b7328190d73942a | 21c6ea911c475eb3d2bf985d6466939c5beb67e3 | refs/heads/master | 2022-11-16T05:38:36.037403 | 2020-07-06T17:07:13 | 2020-07-06T17:07:13 | 193,296,332 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,895 | py | """
Exports constructed commands and API variables from configuration file based \
on input query
"""
# Standard Imports
import os
import re
import logging
# Module Imports
import toml
import logzero
from logzero import logger
# Project Directories
this_directory = os.path.dirname(os.path.abspath(__file__))
# TOML I... | [
"mtt.lov@gmail.com"
] | mtt.lov@gmail.com |
ad8df248427f7098d6463b39e0c10612baf026cc | 807305b8aefbd7aac4f44c67deed06c059ca02d9 | /src/stk/molecular/topology_graphs/polymer/linear/vertices.py | 95e4ae66c4c80eab25400a4a05c7c5504fb3b81f | [
"MIT"
] | permissive | supramolecular-toolkit/stk | c40103b4820c67d110cbddc7be30d9b58d85f7af | 46f70cd000890ca7c2312cc0fdbab306565f1400 | refs/heads/master | 2022-11-27T18:22:25.187588 | 2022-11-16T13:23:11 | 2022-11-16T13:23:11 | 129,884,045 | 22 | 5 | MIT | 2019-08-19T18:16:41 | 2018-04-17T09:58:28 | Python | UTF-8 | Python | false | false | 6,060 | py | """
Linear Polymer Vertices
=======================
"""
import logging
from ...topology_graph import Vertex
logger = logging.getLogger(__name__)
class LinearVertex(Vertex):
"""
Represents a vertex in the middle of a linear polymer chain.
"""
def __init__(self, id, position, flip):
"""
... | [
"noreply@github.com"
] | supramolecular-toolkit.noreply@github.com |
cb73ffe58893ed5b0a38623bfbfb1ef7cfc50f50 | eac0a13fea8acd3ee5d8c6bd72b97f39102c6337 | /Math/209poll_2019/functions.py | a382915f3c2973ddad0a4505997f8e3d8ab1ed16 | [] | no_license | Jean-MichelGRONDIN/EPITECH_Tek2_Projects | ddb022cc6dafd9c3d8d1e8b17bad8de108a0cd2c | eb4621bb747b1f2cca3edfe993fefef4b564835f | refs/heads/master | 2023-01-04T13:12:21.670186 | 2020-10-23T06:16:50 | 2020-10-23T06:16:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | ##
## EPITECH PROJECT, 2020
## 209poll_2019
## File description:
## functions
##
from math import sqrt
def displayGivenVals(pSize, sSize, p):
print("Population size: {}".format(pSize))
print("Sample size: {}".format(sSize))
print("Voting intentions: {:.2f}%".format(p))
def displ... | [
"jean-michel@pop-os.localdomain"
] | jean-michel@pop-os.localdomain |
ac33b3bfb3be04e7d29210ae214a11952f05eb26 | 54852674f052f0cb8347ea9b67fd6d33d53cc367 | /mmdet/models/dense_heads/atss_rank_head.py | 7c84b466f1ff8482a3439b015031fb3746f12cf7 | [
"Apache-2.0"
] | permissive | ap-cv-research/mmdetection | 8c62888960ad8fff49eccc2783467a00fae83c62 | 6116474edce9efdb32987ebcd8003f9ce2b47b24 | refs/heads/master | 2023-02-22T16:57:40.102771 | 2021-01-25T19:40:41 | 2021-01-25T19:40:41 | 324,004,383 | 0 | 0 | Apache-2.0 | 2021-01-25T19:40:42 | 2020-12-23T21:23:54 | Python | UTF-8 | Python | false | false | 12,317 | py | from mmcv.runner import force_fp32
from mmdet.core import (multi_apply, reduce_mean, build_assigner, build_sampler)
import torch
from .atss_head import ATSSHead
from ..builder import HEADS, build_loss
EPS = 1e-12
@HEADS.register_module()
class ATSSRankHead(ATSSHead):
_n_anchors: int
def __init__(self,
... | [
"aponamarev@artisight.com"
] | aponamarev@artisight.com |
1d803ef9b328061175dc929664d4498660153ef4 | ac2f43c8e0d9649a7f063c59b3dffdfed9fd7ed7 | /tools/verified-boot/signing/gen-op-cert.py | 44f970940d9dbbd127253a9616fb4ac0335aa2bd | [] | no_license | facebook/openbmc | bef10604ced226288600f55248b7f1be9945aea4 | 32777c66a8410d767eae15baabf71c61a0bef13c | refs/heads/helium | 2023-08-17T03:13:54.729494 | 2023-08-16T23:24:18 | 2023-08-16T23:24:18 | 31,917,712 | 684 | 331 | null | 2023-07-25T21:19:08 | 2015-03-09T19:18:35 | C | UTF-8 | Python | false | false | 8,662 | py | #!/usr/bin/env python3
# Copyright (c) 2023-present, META, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
5e247276b561d0ca5b33c8a67c740600b365f044 | 812ec66111f3f71acbc6ca98a557edee419e3e76 | /utils/functions.py | 0c9a24313c848469ac5b9405b260740ee33e620f | [
"MIT"
] | permissive | AlanSavio25/AVSR-Dataset-Pipeline | 7a35d922607901f0fa70593d1e34b89f3276e993 | 6e6d44eca6133c2e0223e9be8d011be0b68c73d1 | refs/heads/main | 2023-07-07T00:01:28.025308 | 2021-08-11T16:47:27 | 2021-08-11T16:47:27 | 389,610,550 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,003 | py | import torch
import numpy as np
import time, glob, shutil, datetime
import xml.etree.ElementTree as ET
from facetrack import *
from syncnet import *
import logging
logging.basicConfig(format='[%(levelname)s] %(message)s', level=logging.INFO)
def cut_into_utterances(filename, output_dir, genre, xmldir, source_dir=None... | [
"s1768177@hessdalen.inf.ed.ac.uk"
] | s1768177@hessdalen.inf.ed.ac.uk |
36d27674e1d2c014c27a9c2cc9a551fe8e52cd19 | e336f863debdc81e6fd9a847790f292c54ee8370 | /code/remote_pkg/scripts/listener.py | e1993d2569ec58829cba8ce2198ffc77bbba2fe8 | [] | no_license | xdnian/Self-positioning-Remote-Control-Car | f81e0342f361219d41186212a854e531aed2b0a9 | 1e05d9b6bbc1b6fbe359a908e06620b799462b9f | refs/heads/master | 2020-04-06T10:35:57.282121 | 2018-11-13T13:47:02 | 2018-11-13T13:47:02 | 157,385,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,405 | py | #!/usr/bin/env python
# Software License Agreement (BSD License)
#
# Copyright (c) 2008, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code... | [
"xiaodong0601@qq.com"
] | xiaodong0601@qq.com |
70bc0f58d1a7260e8aa0c009c423467c33acd8a0 | e6611443e946d1129985a95bc2dd2afc610f8292 | /CMS/apps/task_status/migrations/0003_taskstatus_category.py | 53b4aaa95708f0d4641fb077232356c169f2ceb3 | [] | no_license | Indus-Action/Campaign-Management-System | a761dd9bbc7967f8302bb3283230f87ccc2bd2a6 | 9c6f1193ff897b8cc53f2a1c3bca8d70a890e70f | refs/heads/master | 2020-03-12T19:49:19.329764 | 2018-05-15T06:37:41 | 2018-05-15T06:37:41 | 130,792,314 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-09-28 06:19
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('task_status_categories', '0001_initial'),
('task_sta... | [
"madhav.malhotra3089@gmail.com"
] | madhav.malhotra3089@gmail.com |
5f52fdc03f0db7fb339060a70be115388bb1d11a | ed2d96ead522dd4dbd1dfdf4a6a776617f7dbcaf | /tutorial/settings.py | 2ab243e3f117195473def28fa8017680ee721604 | [] | no_license | Alexmhack/django_rest_quickstart | ff83f435b09f6e279d17c87ea53ad5719276d1f9 | b44be0cb8fd07d00ac8715934b1fe480e833e344 | refs/heads/master | 2020-04-01T06:45:04.591779 | 2018-10-14T12:22:00 | 2018-10-14T12:22:00 | 152,962,441 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,417 | py | """
Django settings for tutorial project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
fr... | [
"alexmohack@gmail.com"
] | alexmohack@gmail.com |
9433a497451577e9a7e9d2d285c3dcda6726b8e9 | 6bedc9b6041525679bb3605df94c7e7d726ab220 | /priv/jun_pandas.py | 16c76c4f57986101130849f79e4d58fa3b6eb566 | [
"MIT"
] | permissive | zgbjgg/jun | ff2f189763c541eec9db208e45128ff3db22dcb5 | 8a877d4a9c56efb6c9a2e13d25109e9da8dde5de | refs/heads/master | 2021-06-21T22:05:30.692476 | 2020-10-01T03:51:08 | 2020-10-01T03:51:08 | 97,057,283 | 24 | 5 | MIT | 2020-10-01T03:51:09 | 2017-07-12T22:32:04 | Erlang | UTF-8 | Python | false | false | 14,227 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import scipy as sp
import numpy as np
import matplotlib as mpl
import pandas as pd
import sklearn as skl
import operator as opt
import pyodbc as pyodbc
from io import StringIO
from dateutil.parser import parse
mpl.use('Agg')
opers = {'<': opt.lt,
'>': o... | [
"zgbjgg@gmail.com"
] | zgbjgg@gmail.com |
70520ae32fa7fe2286ee988660ac8f214d4d19a0 | 0d65cd7eaaeacd8ccbb2f6cf4a451857387b5648 | /app/config.py | 7a1a3234dfd71fc42c42293a32efd59c2083fb18 | [
"MIT"
] | permissive | Ndarko1/family_device_inventory | 561827c78353ef285fdcff95e536077493bbb277 | 031caaef6ef5c44164de8dc7587f774beb4c2aff | refs/heads/main | 2023-07-21T10:19:18.224726 | 2021-09-05T21:51:16 | 2021-09-05T21:51:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | """
This file holds configuration options.
The Development config is default and spins up the application inside
a Docker container. Production config allows the app to be run on Heroku.
"""
import os
class Config:
"""
Base Configuration
"""
USER = os.environ.get('POSTGRES_USER')
PASSWORD = os.env... | [
"fiifi.krampah@gmail.com"
] | fiifi.krampah@gmail.com |
9afca773cc3e575a5e99270fc96821846e41becd | 1eb7fa8b1745d4e51cefb4eceb44621862516aa6 | /Company Interview/FB/BiggestKValuesInBST.py | fd6ddc0d98fe0ee5e2f7a5090dd8918d9e3db922 | [] | no_license | geniousisme/CodingInterview | bd93961d728f1fe266ad5edf91adc5d024e5ca48 | a64bca9c07a7be8d4060c4b96e89d8d429a7f1a3 | refs/heads/master | 2021-01-10T11:15:31.305787 | 2017-03-06T00:03:13 | 2017-03-06T00:03:13 | 43,990,453 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution1(object):
def biggestKthValues(self, root):
res = []; stack = []
while root or stack:
if root:
stack.append(root)
roo... | [
"chia-hao.hsu@aiesec.net"
] | chia-hao.hsu@aiesec.net |
8870db0404c7f85534265c7cf642790aa62039d2 | c006f2d7f523bdc9407dd9d203b1967ba8bb0bfd | /State_wise_data_csv.py | fd6b762e250e0d3d9e7c53872160c6b3594ee972 | [] | no_license | sagarRawatUK/coronaUpdate-Python-Deprecated | ccaf737bfbfa6a6407558e6208bd6d130a5c016e | dbd06c8b12046354ce16596bc77bdc6ab9553201 | refs/heads/master | 2023-01-31T08:45:01.058110 | 2020-12-18T13:12:21 | 2020-12-18T13:12:21 | 273,838,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | import requests;
import csv;
from bs4 import BeautifulSoup;
fields = ['Sr.no.','State', 'Total Cases', 'Cured ','Deaths','COnfirmed Cases'];
filename = "State_corona_update.csv";
def get_html_data(url):
data = requests.get(url);
return data;
def get_corona_detail():
details = [];
url = "https://www.... | [
"sagarrawatuk@gmail.com"
] | sagarrawatuk@gmail.com |
34b3c726d80e09b43b8cb2178f207b8d3560ac42 | e9685436ce494cf80fca4d1fd0cb7bc5185c8b30 | /evolution_analysis/code/HGT_analysis/HGT_from_non_fungi/code/s5_alien_index.py | f49c42f6e15c0eef2e7045a801684c3df38d84d5 | [
"MIT"
] | permissive | BoWangXJTU/Multi_scale_evolution | 335573bfb09ef69ff70250f2371ac27be731acf6 | b5f28ead733872519bc0758df034a076224c4253 | refs/heads/master | 2023-03-10T10:51:30.812635 | 2021-02-28T12:56:46 | 2021-02-28T12:56:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Step3: calculating the alien index score to predict HGT events.
import math
e_minus = 1e-200
alienindex_min = math.log(7e-48+e_minus, math.e)-math.log(4e-95+e_minus, math.e)
alienindex_max = math.log(1+e_minus, math.e)-math.log(0+e_minus, math.e)
alienindex2 = math.... | [
"55198637+le-yuan@users.noreply.github.com"
] | 55198637+le-yuan@users.noreply.github.com |
5f66a0c463969362e29987067f027b785455f16f | 6ef428137a089bade01b8f0397f3ab01f2204cab | /Python_basics/31-40/36.py | 400c357e209ce127b4acf96790f7fa33b5aba855 | [] | no_license | epangar/python-w3.exercises | 0db4415b916c41489e6d56b057a12cb54de8e2f1 | 479c27f39aa0df0a9df7d4a92c66f6d6e7c535fb | refs/heads/master | 2023-01-24T10:14:59.654738 | 2020-12-08T23:37:48 | 2020-12-08T23:37:48 | 272,045,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | """
36. Write a Python program to add two objects if both objects are an integer type.
"""
def sum(a, b):
if isinstance(a, int) and isinstance(b, int):
return a + b
| [
"e.pan.gar@gmail.com"
] | e.pan.gar@gmail.com |
f38ec7a4034c85010ec09729cea5e0713e174bab | 97cd48c71d5a08ec5e2d61689a077b55e543e4f0 | /projecteuler/012_highly_divisible_triangular_number.py | 3e779b22304b99a27b249bb6a622639426a30c50 | [
"MIT"
] | permissive | vikasmunshi/euler | 001eb1c5b35ff873a0c2f526a4bb2d439152fb04 | da4a7916b24e2d2b902ffdd1094991416eb74034 | refs/heads/master | 2020-09-05T09:41:28.306357 | 2020-04-13T08:26:33 | 2020-04-13T08:26:33 | 220,060,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,215 | py | #!/usr/bin/env python3.8
# -*- coding: utf-8 -*-
"""
https://projecteuler.net/problem=12
The sequence of triangle numbers is generated by adding the natural numbers.
So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be:
1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...
Let us list t... | [
"vikas.munshi@ing.com"
] | vikas.munshi@ing.com |
fb0b97eafee884d5d07ed6dd977d8d9483163db6 | f0122dda64598ea437490645187cc680da915d58 | /pages/urls.py | a54d0b5b960ec8310b2fd6062a795997aa6753b8 | [] | no_license | DarkoTrpevski/DjangoBostonRealEstate | f95ab9c789fa541245be55495b2d8595ad4c6a99 | 2b87bd352301765e310361d0b059c42103fc6916 | refs/heads/master | 2022-04-18T11:16:45.410641 | 2020-04-20T19:37:11 | 2020-04-20T19:37:11 | 257,258,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | from django.urls import path
from . import views
# First parameter is the URL Path.
# Second parameter is the method we want to connect this to the view
# Third parameter is the name
# What ( path('') ) means, is that we don't want anything in the URL Path(meaning this will be our home page)
urlpatterns = [
path(... | [
"darko_trpevski@yahoo.com"
] | darko_trpevski@yahoo.com |
bc63b92a278bd74e73e798b1ee3820187c9ed3e1 | bedafa1ac84be4c2a31ac21d4e9f43cbf0e33c84 | /WORK I/ex3 Variables.py | 6fb17a838755b76280a22ee57583ecc575d9e623 | [] | no_license | armsiwadol69/Python_ss2 | abf9b9478fe7108b46e5cbef11fd5db28b239a68 | 563fa63f5506a9ad99274edfd4e1f8cef55d6051 | refs/heads/master | 2022-12-19T03:06:54.651746 | 2020-09-28T10:30:28 | 2020-09-28T10:30:28 | 281,633,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | x = 100
y = str(112)
z = "Gitano"
print(type(x))
print(type(y))
print(type(z))
| [
"armsiwadol2543@gmail.com"
] | armsiwadol2543@gmail.com |
111acd50db497fe5df938c6ec57e4343c713232a | b31689675d059f216161d74cd83331b77b475384 | /archive/day_13/databindingeditor.py | aed41fd25c8612433e5871ead9964603fff9b640 | [
"MIT"
] | permissive | tazjel/MicroScada | 0e513aa993f7c63d4211c1ab0e6c6ded70c8ca1f | c4022d22ba02d19a973b64aeef63a9508068269c | refs/heads/master | 2021-01-21T18:05:57.622724 | 2014-05-15T21:04:17 | 2014-05-15T21:04:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,695 | py | from kivy.uix.dropdown import DropDown
from kivy.uix.button import Button
from kivy.uix.label import Label
from kivy.uix.floatlayout import FloatLayout
from kivy.uix.textinput import TextInput
from datamgr import variables
class DataBindingEditor(FloatLayout):
def __init__(self, widget, **kwargs):
super(DataBin... | [
"victor-rene.dev@outlook.com"
] | victor-rene.dev@outlook.com |
79bc5ae5c5a43defded6e9e852d8f2299777611c | ac4f675fbd6c98651707bac27db43dcf592564fc | /kalkulator.py | 4c1774ad1408b82b6065d08e6215bea7ff5025de | [] | no_license | IzabelaR20/kalkulator_zaoczni2019 | 705e1aab51475c58cf464c5717760bb983adcda3 | 160e8dc434006050c9f6b5c86b54ed0e16a0d5ca | refs/heads/master | 2020-05-30T12:03:17.562454 | 2019-06-05T17:48:17 | 2019-06-05T17:48:17 | 189,722,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | #https://www.programiz.com/python-programming/examples/calculator?fbclid=IwAR0ezxxAzOk5aM1Q32dqj3QdPZtbP4-4D_ZaRAq05d_mgstDLCoE3NBZwZY
# Program make a simple calculator that can add, subtract, multiply and divide using functions
# This function adds two numbers
def add(x, y):
return x + y
# This function subtra... | [
"email@gmail.com"
] | email@gmail.com |
c422911d66d3c472a423daa9aae44836f52b2fba | 7add1f8fc31b09bb79efd2b25cc15e23666c1d1d | /tfx/orchestration/portable/tfx_runner.py | c431cf3f36a66e468fcc48190bbaac4331fed4f7 | [
"Apache-2.0"
] | permissive | twitter-forks/tfx | b867e9fee9533029ca799c4a4c5d1c5430ba05fe | cb3561224c54a5dad4d5679165d5b3bafc8b451b | refs/heads/master | 2021-11-19T18:45:09.157744 | 2021-10-19T00:02:34 | 2021-10-19T00:02:34 | 205,426,993 | 2 | 1 | Apache-2.0 | 2021-10-18T21:03:50 | 2019-08-30T17:21:03 | Python | UTF-8 | Python | false | false | 1,333 | py | # Copyright 2020 Google LLC. 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 applicable law or a... | [
"tensorflow-extended-nonhuman@googlegroups.com"
] | tensorflow-extended-nonhuman@googlegroups.com |
0fe19b24e222e8c4a1415ff3ce8417790c631ad4 | 33614ce5ac1850d7ac3f8a5d156506dd560fee66 | /TFIDF_Keywords_2_JH_forLIRA.py | 9d56d910eea011e8bf136dbe23c18083a9cdb7c0 | [
"Unlicense"
] | permissive | william-letton/ASSIST | 80917299e6fc168ca489056532ea403ebe97975c | b1b998de257a38f02206bccc8a1465bbd908b4f3 | refs/heads/master | 2022-09-02T10:46:29.157563 | 2020-05-20T07:54:52 | 2020-05-20T07:54:52 | 265,490,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,303 | py | import time
import csv
import math
from Screening.models import Article,Project
from Screening.ScreeningCeleryTasks import ReconcileTidyAsynch
## Define a character list of the punctuations to be removed during processing.
punctuations = "•™©!£$€/\%^&*+±=()≥[]|0123456789'=.,:;?%<>ÿòñ~#@-—–{}úøîæ÷ó¬... | [
"noreply@github.com"
] | william-letton.noreply@github.com |
5a258fdbb9f2361d11447550c4970b8641a49990 | a9adcb5efb4492094ecd9e45741b409afca56f53 | /democratizing_weather_data/streaming/sample_code/seatgeek_query.py | 9887303e6f4c8842dde2e27ce4c4ffdc162341c4 | [] | no_license | LeoSalemann/democratizing_weather_data | 0792a4419a67799f8f5b60585a6ec32aab72c4c6 | 55d84e8bc3748b0df166d5f2c999bd7906cff1f5 | refs/heads/master | 2021-05-05T10:03:39.234295 | 2017-09-19T01:58:41 | 2017-09-19T01:58:41 | 104,013,673 | 0 | 0 | null | 2017-09-19T02:05:05 | 2017-09-19T02:05:05 | null | UTF-8 | Python | false | false | 931 | py | import os # can probably ignore/comment this out.
import datetime # can probably ignore/comment this out.
import json
import urllib
import pandas as pd
from pandas.io.json import json_normalize
def seatgeek_query(key, secret, argument_dict={}):
argument_dict.update({'client_id': key, 'client_secret': sec... | [
"leo.salemann@me.com"
] | leo.salemann@me.com |
1c43a180f86552189722c30e4df73d91a444fad5 | 27ba8f995043efe169cefe2d21e2f1ebdd30def4 | /game_stats.py | 3907be469f8adf39439004d0491ff9f445ca46df | [] | no_license | haojunnan/pygame_hit_aliens | 94ef13f39fdc63f983e5359b5a90c084a6cb0c95 | b025e5499ec033f67fe180917ac7041453b40e03 | refs/heads/master | 2021-09-07T21:24:22.313189 | 2018-03-01T09:44:57 | 2018-03-01T09:44:57 | null | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 426 | py | #coding:gb2312
class GameStats():
"""跟踪游戏的统计信息"""
def __init__(self,al_settings):
"""初始化统计信息"""
self.al_settings = al_settings
self.reset_stats()
self.game_active = False
self.high_score = 0
def reset_stats(self):
"""初始化在游戏运行期间可能变化的统计信息"""
self.flys_left = self.al_settings.fly_limit
self... | [
"noreply@github.com"
] | haojunnan.noreply@github.com |
f180ab018656525fd2a3a2e6f419270586db4dd0 | 947e71b34d21f3c9f5c0a197d91a880f346afa6c | /ambari-server/src/test/python/stacks/2.0.6/HDFS/test_alert_datanode_unmounted_data_dir.py | 3bdec79c1f636e892ef6b9ed0a639903073d5fc8 | [
"MIT",
"Apache-2.0",
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"OFL-1.1",
"MS-PL",
"AFL-2.1",
"GPL-2.0-only",
"Python-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | liuwenru/Apache-Ambari-ZH | 4bc432d4ea7087bb353a6dd97ffda0a85cb0fef0 | 7879810067f1981209b658ceb675ac76e951b07b | refs/heads/master | 2023-01-14T14:43:06.639598 | 2020-07-28T12:06:25 | 2020-07-28T12:06:25 | 223,551,095 | 38 | 44 | Apache-2.0 | 2023-01-02T21:55:10 | 2019-11-23T07:43:49 | Java | UTF-8 | Python | false | false | 10,468 | py | #!/usr/bin/env python
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License")... | [
"ijarvis@sina.com"
] | ijarvis@sina.com |
fcdc3c6425304d12927eedb5366284da5f8f22cc | 67b04bf2bdfdfc8de4189a52fe431aa482c375ac | /example/app.py | 531fdcb75688c64a06ec95e82a0c65b0fe75b7d9 | [
"MIT"
] | permissive | d0ugal/aioauth-client | 2de6eeb25fd6582a34c8b144fff066d817b011db | 6fce61642c974ede8d800e476a4a5661778a180d | refs/heads/develop | 2023-04-10T03:59:04.766587 | 2020-01-22T19:46:26 | 2020-01-22T19:46:26 | 235,654,658 | 1 | 0 | MIT | 2023-04-04T01:21:32 | 2020-01-22T19:55:56 | Python | UTF-8 | Python | false | false | 5,114 | py | """ Aioauth-client example. """
import asyncio
from aiohttp import web
import html
from pprint import pformat
from aioauth_client import (
BitbucketClient,
FacebookClient,
GithubClient,
GoogleClient,
OAuth1Client,
TwitterClient,
YandexClient,
)
app = web.Application()
clients = {
'tw... | [
"horneds@gmail.com"
] | horneds@gmail.com |
677694b3b52605164f56c811d4e8e9a603820803 | d314a17646924dbb58b717ad23e0c2e5fb9e1b65 | /DummyPlayer/const.py | 7ee89b7afa93b868a9abf0d5818c7ad818317daf | [
"MIT"
] | permissive | waps101/PiSquare | 072671bce6067ad478daed411ffeb5edd10c4b54 | ee1bff51c7ee86fd80c9d805502525a63e548396 | refs/heads/master | 2021-01-10T01:37:05.222051 | 2015-11-26T15:04:23 | 2015-11-26T15:04:23 | 46,272,133 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | UNCAPTURED = 0
UNPLAYED = 0
PLAYED = 1
PLAYER1 = 1
PLAYER2 = 2
############################################################
##
## Constants used for the client/server functionalities
##
############################################################
# Constant containing the IP address of the server
GAME_SERV... | [
"william.smith@york.ac.uk"
] | william.smith@york.ac.uk |
c288e58b3545412b2843d13e32d82e5f94b23a6f | f4aa2101b67950e311e7be786aea332699227cd1 | /shop/migrations/0008_auto_20190712_1958.py | 6210c6b50d489f60336baf1f5ae3100bd218e09b | [] | no_license | PuneetPilania/LazzizCart | 36382cc86053778b2fbbe70c14f6f0ad9060bca2 | 2c15eb5a767127540f87162eb41ddb8bbcd6f49b | refs/heads/master | 2022-01-05T19:16:01.030686 | 2019-07-22T07:15:53 | 2019-07-22T07:15:53 | 196,684,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Generated by Django 2.2.3 on 2019-07-12 14:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0007_orders_amount'),
]
operations = [
migrations.AlterField(
model_name='orders',
name='amount',
... | [
"puneetpilania13@gmail.com"
] | puneetpilania13@gmail.com |
67ef1fdd93e25e5a03aaa5b79601c167d78b9795 | 6ccbb74a59880aaee47e20861e6ac08ef31180ab | /mysecp.py | bcca6ddb33c946311e1622acf76ef3149160cf7c | [] | no_license | msebilly/cmp_ecdsa_mpc_poc | f56c288e258461dcf69f199c0105a8ef6565ea6e | d3528f6bf8763495306c6ee7a317de5549d83544 | refs/heads/master | 2023-09-02T03:43:18.349591 | 2021-11-21T19:03:15 | 2021-11-21T19:03:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | from ecpy.curves import Curve,Point
ec = Curve.get_curve('secp256k1')
def __repr__(self):
return self.__str__()
setattr(Point, '__repr__', __repr__)
def point(x,y):
return Point(x,y,ec)
gen = ec.generator | [
"udi0peled@gmail.com"
] | udi0peled@gmail.com |
dafc4576de9519d696cffadfb845b9e7b1470503 | 3134533e7bb1312ad7554e8ad4a4e59b58bdbfcf | /Webserver/apps.py | c034d2672f77b63b14f1dc3e206ecd75ad3a4e3d | [] | no_license | lingxitai/interface_web | be9e45d5c2fe53cc15af666845c9bd03be844d35 | 5a2c8b64745ba7a8048a910a8c27f230ff5e0be0 | refs/heads/master | 2020-06-25T00:52:17.747655 | 2019-08-06T10:21:12 | 2019-08-06T10:21:12 | 199,145,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class WebserverConfig(AppConfig):
name = 'Webserver'
| [
"512654175@qq.com"
] | 512654175@qq.com |
5c10902d7fce6fbab404b621f1c96d3526e596b1 | 76a2567b8de17bca7879ed8dc4485a9234b09cb2 | /academy_manager.py | 1f52dad9c1e0ce12f64d486397f1b740ad785e26 | [] | no_license | Iron-Cow/Python02_Inheritance | 86369082dae9acb8b556e1c246b6fede5aab7ca7 | 352c14da8a5fe8db8cd853b55f82828d1aeda245 | refs/heads/master | 2022-12-27T12:39:18.684066 | 2020-09-28T18:59:29 | 2020-09-28T18:59:29 | 299,404,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | from models import *
class AcademyManager(object):
def test_academy(self):
person = Person(16, 'Yura')
print(person)
print(person.get_name())
print(person.get_age())
student1 = Student(17, 'Ivan', 'Python666')
print(student1)
print(student1.get_group())
... | [
"rudyk.iurii@gmail.com"
] | rudyk.iurii@gmail.com |
86435a579cbe8e4726de5777274b1aa271d93341 | 1a72fbe5f21b72f35697af6e37e5adc6073da7ec | /data/combine_data_softIrIMU.py | f3d6363b3e33a24a06cb8a52df6e97a204ab1d68 | [
"MIT"
] | permissive | DARYL-GWZ/SmartWalker | c50790460b431a96adf84b90387e584e27a4d9f0 | f810d5f60e619362beacab026b897847c895112f | refs/heads/master | 2023-07-16T20:03:02.721898 | 2021-08-25T11:06:00 | 2021-08-25T11:06:00 | 401,217,746 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,861 | py | import sys, os
# import time
import numpy as np
import math
import matplotlib.pyplot as pyplot
import cv2 as cv
pwd = os.path.abspath(os.path.abspath(__file__))
father_path = os.path.abspath(os.path.dirname(pwd))
# sys.path.append(father_path)
# print(father_path)
def get_data(direction):
# 原始信息获取
file = open... | [
"522653608@qq.com"
] | 522653608@qq.com |
1386a4e032f23d5569411ff1b79271220d0c1c9f | 1d2d8048709ee1574b88e2255fed0700573d6365 | /newblog/blog/migrations/0001_initial.py | a6a9da2f9b653c122743abee28d66df84608814d | [] | no_license | Misengkang/mysite | 0973a147f17a70636ae1adc949913d431784926a | c0fb9c9a31752fd92b997d02b8c17c05fa25ca75 | refs/heads/master | 2022-12-11T16:57:54.627319 | 2018-03-24T12:14:24 | 2018-03-24T12:14:24 | 102,927,018 | 0 | 0 | null | 2022-12-08T00:36:16 | 2017-09-09T04:33:29 | CSS | UTF-8 | Python | false | false | 1,880 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-08 03:07
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"hkk4641908@163.com"
] | hkk4641908@163.com |
1dc0356232f83b9f82596add14362a858c4e3774 | 1678abd4c1efb74993745b55bf5a5536c2205417 | /forum/migrations/0010_auto_20200414_2322.py | 59d3916c979c2e05ef688ccf22bdbfbb16dbbdc9 | [] | no_license | samosky123/Django-Forum | 7b8868338d09d4a02b61717454adb2297cafc44e | c1ee3c9261479ebf8039c3a6fc9a3aba06d2c870 | refs/heads/master | 2023-07-29T09:45:19.810265 | 2020-11-13T16:05:42 | 2020-11-13T16:05:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | # Generated by Django 2.2 on 2020-04-14 17:22
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('forum', '0009_auto_20200414_2313'),
]
operations = [
migrations.RenameField(
model_name='answer',
old_name='downvote',
... | [
"shout.mahmud@gmail.com"
] | shout.mahmud@gmail.com |
2e3544a7e767373aceccc7c0435e2ee8b5cb0722 | d0671fb7738ff53d16ea28174eddc8252a0519e6 | /PulseGenerator.py | 60cfc854edd41a7a8e2d58fdf8ffbe6456332ae9 | [
"BSD-2-Clause"
] | permissive | clavigne/feedback-control-retinal | cb0ca8bca3bbbd26a3b860cb9e90d4164349551c | 5b2349961ae5fe09a21ddfb35e64ee958bc0a7aa | refs/heads/master | 2022-11-11T22:39:51.763030 | 2020-06-19T20:21:32 | 2020-06-19T20:21:32 | 273,573,324 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,401 | py | import scipy.special as sps
import scipy.linalg as spl
import numpy as np
from scipy.interpolate import interp1d
def e2t(N,dE):
return 2 * np.pi * np.fft.fftfreq(N,dE)
def gaussian_fun(fwhm):
prefac = np.sqrt(2 * np.sqrt(np.log(2))/(np.sqrt(np.pi) * fwhm))
alpha = 4.0 * np.log(2)/fwhm**2.0
def g(x):
... | [
"cyrille.lavigne@mail.utoronto.ca"
] | cyrille.lavigne@mail.utoronto.ca |
184dfa8d4c01be21a8ef6511122086221083f101 | f541ffba346178741c65738035be6299f85059f9 | /problem/abc148/a/main.py | 41bb9b5a16c7a13713f046fd407bad6ed87cbf69 | [] | no_license | TaigoKuriyama/atcoder | ccf1014615003744170626fac98c903e80538319 | 16e4f911db46d92186ddd99992c63baa324286de | refs/heads/master | 2021-07-19T07:24:23.964803 | 2020-07-05T23:13:19 | 2020-07-05T23:13:19 | 189,786,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | #!/usr/bin/env python3
a = int(input())
b = int(input())
print(6 - a - b)
| [
"t.lorinza@gmail.com"
] | t.lorinza@gmail.com |
2a303dc18d18c13f63090a76aa45171b4d873903 | a8e33ba2d2c4140a3d7601ca9aba195308539167 | /Day_033/ISSOverheadNotifier/smtpHandler.py | 5d920668198a6917e354f7abd42cb541b4c81398 | [] | no_license | N-bred/100-days-of-code | 815d3a8773a864eda2d4d3fc30e7df1903d3e79d | 47ae3f9c0a040ec175b6e042a43fada647bbe96a | refs/heads/main | 2023-04-02T20:00:09.469129 | 2021-04-08T22:06:04 | 2021-04-08T22:06:04 | 336,051,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | import smtplib
class SmtpHandler:
def __init__(self, host, port, user, password):
self.host = host
self.port = port
self.user = user
self.password = password
self.connection = None
def start_connection(self):
self.connection = smtplib.SMTP(self.host, self.port)... | [
"thehardyboiz1@gmail.com"
] | thehardyboiz1@gmail.com |
682e6e9bf096cd8bc9cecd1f5476499372f6c040 | 61dcd9b485bc5e6d07c4adf14f138eabaa9a23b5 | /Own practice/2.2-2.10/2.8.py | a4281af24752c551736fa11d1a5726365e91a315 | [] | no_license | bong1915016/Introduction-to-Programming-Using-Python | d442d2252d13b731f6cd9c6356032e8b90aba9a1 | f23e19963183aba83d96d9d8a9af5690771b62c2 | refs/heads/master | 2020-09-25T03:09:34.384693 | 2019-11-28T17:33:28 | 2019-11-28T17:33:28 | 225,904,132 | 1 | 0 | null | 2019-12-04T15:56:55 | 2019-12-04T15:56:54 | null | UTF-8 | Python | false | false | 872 | py | """
程式設計練習題 2.2-2.10 2.8 計算能量.
請撰寫一程式,計算從起始溫度到最後溫度時熱水所需的能量。程式提示使用者數入多少公斤的水、起始溫度
及最後溫度。計算能量的公式如下:
Q = M * (finalTemperature - initialTemperature) * 4184
此處的M逝水的公斤數,溫度是攝氏溫度,而Q是以焦耳(joules)來衡量的能量。
以下是範例輸出的樣本:
```
Enter the amount of water in kilograms: 55.5
Enter the initial temperature: 3.5
Enter the final Temperature... | [
"38396747+timmy61109@users.noreply.github.com"
] | 38396747+timmy61109@users.noreply.github.com |
c7d662afa44ad261f39eeb6758f41d4ae94730e7 | 9d4abe0bf6944f57302cbf0af89ab9f069a13d2d | /venv/lib/python2.7/sre.py | 2d8e8ede2eda383dcb75c81f10f541f8d627442f | [] | no_license | calbooth/pycbc | de622ad45ef21af1ce7c9e8a855b8f565f97f38f | 9f642fe732460a4863f488c7f8714b1bd17f44af | refs/heads/master | 2021-01-22T09:10:06.089093 | 2017-02-14T12:20:12 | 2017-02-14T12:20:12 | 81,934,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /software/physics/ligo/spack/000/linux-redhat6-x86_64/gcc-5.4.0/ldg/pickxdy/lib/python2.7/sre.py | [
"c1320229@raven14.bullx"
] | c1320229@raven14.bullx |
c205c5dc6573dba6cae2e742aa251ec672e6a4d4 | 1b5234024f6b3df18d1fef18ca1ce8419d12396a | /toDoTasks/models.py | ffead0228614f297b80b7bab398e2a72002d4de8 | [] | no_license | RubiRS29/To-Do-List | cb8a34c66ad3d356612f1801a6251b288a8a2339 | 660115f3887ceb755f6ae74ac1005dd303d6c71a | refs/heads/main | 2023-06-14T11:05:01.601959 | 2021-07-01T05:22:14 | 2021-07-01T05:22:14 | 376,641,334 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | from django.db import models
from user.models import User
from formLists.models import List
class Task(models.Model):
user = models.ForeignKey(User , on_delete=models.CASCADE)
title = models.CharField( max_length=150 )
date = models.DateField()
listAdd = models.ForeignKey(List , verbose_name=("Lists")... | [
"ramirezsantiagorubi@gmail.com"
] | ramirezsantiagorubi@gmail.com |
722f6cccafabb3e43a45d23835ec7dc65f373228 | f54e2067a0eb04540a925b4a22db1c341a964dac | /src/pyiem/nws/gini.py | 4bdc3f0357741772a951ee1a8f5f6c92de1a3761 | [
"MIT"
] | permissive | xoxo143/pyIEM | 4b4000acadce17720ccbe4ecf9cd8c54e0775b8d | 0dcf8ee65ac4b1acc11d7be61c62df815e3854f0 | refs/heads/master | 2023-01-24T11:17:32.450242 | 2020-12-02T04:06:09 | 2020-12-02T04:06:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,239 | py | """
Processing of GINI formatted data found on NOAAPORT
"""
import struct
import math
import zlib
from datetime import timezone, datetime
import os
import pyproj
import numpy as np
from pyiem.util import LOG
DATADIR = os.sep.join([os.path.dirname(__file__), "../data"])
M_PI_2 = 1.57079632679489661923
M_PI = 3.1415926... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
ac8aa5968bcb2e2e1e965bf0ae23a8924c315724 | 4cb0b3c4acf4e30dda0f814fab8232bf13617422 | /Python/Django/loginregistration/apps/log_reg/views.py | f5c5678e5092853e7e606b60f4ced6e339fbc84e | [] | no_license | h0oper/DojoAssignments | d60336b3e67021be0e6a43c1f3693193f83b22d9 | 28472e7907a18725d702fc9617f27619fcc4fcfc | refs/heads/master | 2020-05-09T23:38:27.916674 | 2018-10-06T20:46:02 | 2018-10-06T20:46:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,790 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, redirect
from .models import *
from django.contrib import messages
# Create your views here.
def index(request):
return render(request, 'log_reg/index.html')
def register(request):
if request.method == 'POST':
p... | [
"ccasil@ucsc.edu"
] | ccasil@ucsc.edu |
11c92abeadba8a8d0063c99a18afbfba898fcbc3 | 94a0457c7266ab7748b7d2eeddca63c359771653 | /Goldtimes5/var_data/TRMMsize_3hr_data.py | b2b306813439a93271838533fd5076f9a5aacee3 | [] | no_license | HuangJin-De/cldenv_2020 | 30ea687ec801509827ca25f18b70f47e0b0357b7 | a376b964493dfec8fe0eeb3e382f813e325272a8 | refs/heads/master | 2022-11-05T04:28:38.919641 | 2020-06-19T16:53:44 | 2020-06-19T16:53:44 | 273,133,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | import csv
import numpy as np
from netCDF4 import Dataset
import pickle
import matplotlib.pyplot as plt
years= np.arange(2006,2016)
TRMM_path= '/data/dadm1/obs/TRMM/TRMM3B42size/' #TRMMsize_3hrs_2001.nc
# lon: 0-360, lat: -49-49
#=== load lat lon TRMM
TRMM_temp= '/data/dadm1/obs/TRMM/TRMM3B42/3B42.2004.3hr.nc'
with D... | [
"r07229001@ntu.edu.tw"
] | r07229001@ntu.edu.tw |
183b750342285cfeea308e6f5d22a4cbe7bdc70d | c5acde6af3cfd1b14c73469d26de53171edb9547 | /sunsoong/MachineLearining/Chap4.NaiveBayes/NaiveBys.py | bc7c461fc0d1d779842bc1bb42acd02217ef3eb6 | [] | no_license | SunSoong/learnMachine | 180dcfa60058e3fe12a7be268308385e53fa2f93 | fcea3e6671955cb7e6472d7dae58ece04e815c23 | refs/heads/master | 2020-08-02T17:45:10.786108 | 2019-10-14T05:59:31 | 2019-10-14T05:59:31 | 211,451,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,602 | py | """
总结:
一般来说,如果样本特征的分布大部分是连续性,使用GaussianNB
如果样本也正的分布大部分是多元离散值,使用MultinomialNB
如果是二元离散值或者很稀疏的多元离散值,使用BernoulliNB
手写GaussianNB对鸢尾花数据集进行分类
"""
# 1.导入数据集
import numpy as np
import pandas as pd
import random
dataSet = pd.read_csv("iris.txt", header=None)
# print(dataSet.head())
# 2.切分训练集和测试集
def randSp... | [
"sunsoong@qq.com"
] | sunsoong@qq.com |
ebe477ad1740c02577cba55d514dba42d82725d7 | 20a692f84090c097c89d7f4da090c8fbe7a4a29a | /tests/test_null.py | 22db265aa22a5c42c216520afccec4f93fdda067 | [
"BSD-3-Clause"
] | permissive | bcaller/python-fastjsonschema | be18feb66f857e509ecdb35ee351f10de4e8b12e | 5a26a8a4631a80949b1b3fd35bcabbab1cf390b9 | refs/heads/master | 2020-04-02T22:38:54.635757 | 2018-10-22T13:15:14 | 2018-10-22T13:15:14 | 154,839,989 | 1 | 0 | BSD-3-Clause | 2018-10-26T13:36:43 | 2018-10-26T13:36:43 | null | UTF-8 | Python | false | false | 348 | py |
import pytest
from fastjsonschema import JsonSchemaException
exc = JsonSchemaException('data must be null')
@pytest.mark.parametrize('value, expected', [
(0, exc),
(None, None),
(True, exc),
('abc', exc),
([], exc),
({}, exc),
])
def test_null(asserter, value, expected):
asserter({'type'... | [
"michal.horejsek@firma.seznam.cz"
] | michal.horejsek@firma.seznam.cz |
dafa619dcaebac6988f802cb91ebce751697a7cc | 8d6423ebb8933b9d92ffef4feb5ece20cf80dae4 | /client.py | bcaa68add2239266b7ae93a25657d1bb8ebe3be7 | [
"MIT"
] | permissive | G33kDude/dpirc | 6059d422ee1e2d4a6444178c0b80a86168d886c7 | 7ae3f9a9117fa6d658f39d12d469a2bd16efcffc | refs/heads/master | 2021-01-10T17:31:10.459109 | 2016-03-21T03:57:34 | 2016-03-21T03:57:34 | 54,342,040 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,359 | py | #! /usr/bin/env python3
import json
import re
import socket
import sys
import threading
import time
import tkinter as tk
from datetime import datetime
IRCRE = ('^(?::(\S+?)(?:!(\S+?))?(?:@(\S+?))? )?' # Nick!User@Host
+ '(\S+)(?: (?!:)(.+?))?(?: :(.+))?$') # CMD Params Params :Message
class IRC(object):
def conne... | [
"GeekDudeAHK@Gmail.com"
] | GeekDudeAHK@Gmail.com |
abfc8df4fc11d1e5b3a60d1ced77a125a34ecf59 | cc5931ce51063e1ed34e3b6ae8965ffd88c8691d | /accounts/models.py | 7a29ae7ebbabbd4472f9bf4b2b421c73c0d2b73d | [] | no_license | Chetan45s/Django-Custom-User-Boilerplate | c94368bbf76bc0600152aeda9eb7659c41899e80 | ad332f35826d47075f9d20e332975d2dbbf3713d | refs/heads/main | 2023-07-13T22:55:48.219369 | 2021-08-16T10:24:15 | 2021-08-16T10:24:15 | 385,047,445 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,628 | py | from django.db import models
from django.contrib.auth.models import ( BaseUserManager, AbstractBaseUser)
from django.contrib.auth.models import UserManager
class UserManager(BaseUserManager):
def create_user(self, email, password=None):
"""
Creates and saves a User with the given email and password... | [
"chetansalmotra45@gmail.com"
] | chetansalmotra45@gmail.com |
90df94c5e229fdd296228d82f72d8224423d82ae | a024eb30d51fd73d1366def184b91f2b4159f3d1 | /python/TQC+/707.py | ee9afb3c51eba427016428518f5fcc65fe411f44 | [] | no_license | ooxx2500/python-sql-for-test | e4e084719374157cc8bd87e0f62fb2f5d71eb397 | 66f6ce9f500d2a5eeac162bfc5de321b305c0114 | refs/heads/master | 2023-02-19T08:19:10.541402 | 2021-01-18T17:04:16 | 2021-01-18T17:04:16 | 266,665,158 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,659 | py | # -*- coding: utf-8 -*-
"""
Created on Thu May 28 20:44:29 2020
@author: 莫再提
"""
'''
設計說明:
請撰寫一程式,輸入X組和Y組各自的科目至集合中,以字串"end"作為結束點(集合中不包含字串"end")。請依序分行顯示(1) X組和Y組的所有科目、(2)X組和Y組的共同科目、(3)Y組有但X組沒有的科目,以及(4) X組和Y組彼此沒有的科目(不包含相同科目)。
提示:科目須參考範例輸出樣本,依字母由小至大進行排序。
3. 輸入輸出:
輸入說明
輸入X組和Y組各自的科目至集合,直至end結束輸入
輸出說明
X組和Y組的所有科目
X... | [
"ooxx2500@gmail.com"
] | ooxx2500@gmail.com |
dd09e236278b87057704fa1510b85af4e1dbf687 | fde242cc818c93ef23bcc7fddcdeab5505405185 | /requests_/xpath.py | 33b805475ef173a969fbb6bc3b15578aefd3b567 | [] | no_license | sonchenone/login_OPPEIN | d565c7226f93a37c57c52cff305af4f2e7b5209a | 2ee235bac917138f47a06f4dc090d850416550d7 | refs/heads/master | 2022-11-15T00:29:26.358261 | 2020-07-10T16:39:44 | 2020-07-10T16:39:44 | 276,142,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223,292 | py | from scrapy import Selector
html="""
<html><head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<title>【上海,python招聘,求职】-前程无忧</title>
<meta name="description"... | [
"852060542@qq.com"
] | 852060542@qq.com |
cfb60fa0a36ee354fb1d53624d1c999265bd40ad | cd93fdfe7a1594cfa1880074edd71200d5471a11 | /core/config.py | 9936725e7faa08282e1a15a8a6e003c119610ddd | [
"MIT"
] | permissive | earthmanET/SecretHunter | 78d026d444e3ee37814ad8f27e2595325f173740 | 46561960851594e7d1f97c42c05b3b762ceaa826 | refs/heads/main | 2023-07-13T08:11:42.680848 | 2021-08-21T12:34:47 | 2021-08-21T12:34:47 | 398,521,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | import yaml
class Config:
def __init__(self,yaml_path):
self.yaml_path=yaml_path
self.config=self.init_config()
def init_config(self):
yaml_path=self.yaml_path
config_file = open(yaml_path,'r',encoding='utf-8')
cont = config_file.read()
config = yaml.load(cont,L... | [
"jsdsj13@yeah.net"
] | jsdsj13@yeah.net |
632e9c11e7738adbf13a23ce1089a58665d06d0a | 6f83d9e8be5bc31c271497ac6c6423afdb0209a3 | /script/static-checks/utils.py | 548b64eaa8eaf4061d403a79c3c47324b3b422b0 | [
"BSD-3-Clause",
"BSD-2-Clause-Views"
] | permissive | suihkulokki/tf-m-ci-scripts | 5a59e32af997ad169dbc05da7e5a88ef0e18329c | 4c72bd89c54db913ae27eaf6c4857ccc23e64292 | refs/heads/main | 2023-05-13T01:48:27.545258 | 2021-06-02T09:04:31 | 2021-06-02T09:04:46 | 373,103,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,707 | py | #!/usr/bin/env python3
#
# Copyright (c) 2019-2020, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
import os
import subprocess
import sys
import textwrap
def dir_is_ignored(relative_path, ignored_folders):
'''Checks if a directory is on the ignore list or inside one of the ignored
... | [
"karl.zhang@arm.com"
] | karl.zhang@arm.com |
0dc2a7265e351ceb503d8a6530d0a973c1c43a8f | 4d56bd81412f762527064cdcdfeedceddfaa81c2 | /venv/Scripts/django-admin.py | 0eae46c8d41ff97a7107d41815e332da6b45ea5b | [] | no_license | sharonmalio/agencyperfomance | e23ed91d44a3d834587d1fee6b846f2deda4a830 | abd74dc39b3937e751f251c503e661d2e856d6f6 | refs/heads/master | 2023-04-30T02:27:18.286695 | 2019-08-22T05:33:55 | 2019-08-22T05:33:55 | 203,717,423 | 0 | 1 | null | 2023-04-21T20:35:59 | 2019-08-22T04:58:36 | Python | UTF-8 | Python | false | false | 188 | py | #!C:\Users\sharon.malio\PycharmProjects\agencyperformance\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"kaninimalio@gmail.com"
] | kaninimalio@gmail.com |
6de8613a89c8db45ba9ad5e574921df00b84f51e | 0de3304ae3c6bd0a410fe0e9a392312918e8affd | /py_eyetracker_v1.0/utils/histogram/lsh_equalization.py | 600c0d7bc640973e302c24ab6e88867b0337c3d7 | [
"MIT"
] | permissive | michele-mada/cv-eyetracking-project-2017 | 66b5e5814480b49090dd9330c1902994d42498e7 | 605cff57307e7c9abdd7fe0a40a710fdd4bca0ad | refs/heads/master | 2021-01-11T16:40:29.028013 | 2017-09-13T18:49:24 | 2017-09-13T18:49:24 | 80,136,774 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 382 | py |
from utils.histogram.lsh import locality_sensitive_histogram_cl as locality_sensitive_histogram
from utils.histogram.iif import illumination_invariant_features_cl as illumination_invariant_features
def lsh_equalization(picture_float):
histogram = locality_sensitive_histogram(picture_float)
iif = illuminatio... | [
"michele.mm1234@gmail.com"
] | michele.mm1234@gmail.com |
8744dbe0208ec7873af18b980f3728650adca7b0 | 10690bb92fdfca4607aa211568d288910028ffee | /py/travis-ci/u_boot_boardenv_evb-ast2500_qemu.py | f4b6b2728b319e1f246df1ebcb995958d9554c3e | [] | no_license | swarren/uboot-test-hooks | c792c8c55dcc635de958952a90e976e5d77ec37d | cf979fcf372c2483fb972fcc6486b8dfcf47dece | refs/heads/master | 2021-04-15T12:23:24.659131 | 2020-09-22T18:27:34 | 2020-09-22T18:31:36 | 47,702,435 | 8 | 19 | null | 2020-08-12T22:24:08 | 2015-12-09T16:07:07 | Python | UTF-8 | Python | false | false | 133 | py | import travis_tftp
env__spl_skipped = True
env__net_dhcp_server = True
env__net_tftp_readable_file = travis_tftp.file2env('u-boot')
| [
"swarren@nvidia.com"
] | swarren@nvidia.com |
ec63b954fd448cd482cec2bfb15b88afbea89cc4 | c3ff891e0e23c5f9488508d30349259cc6b64b4d | /python练习/基础代码/Demo33.py | 20ad574ee408810bd6658c854a8dd2e8ce4e4a44 | [] | no_license | JacksonMike/python_exercise | 2af2b8913ec8aded8a17a98aaa0fc9c6ccd7ba53 | 7698f8ce260439abb3cbdf478586fa1888791a61 | refs/heads/master | 2020-07-14T18:16:39.265372 | 2019-08-30T11:56:29 | 2019-08-30T11:56:29 | 205,370,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | infor = {"name":"Jim"}
infor["age"] = 19#添加
infor["QQ"] = 10086
infor["QQ"] = 10085#修改
del infor["QQ"] #删除
print(infor.get("name"))#查询
a = {} | [
"2101706902@qq.com"
] | 2101706902@qq.com |
4b4722dc364c71697c33815091831aec2badb373 | 0115cfe0ca89264d3e25616943c3437d24ac0497 | /pyx/finance/finance.py | 56f41561431419e6dbb05819a4c64021703e836c | [] | no_license | shakfu/polylab | 9024918681fe4807b4e5e2da4bba04453566bae1 | 9dce4d30120981e34bbbbc6f2caaff6e16a6cfbd | refs/heads/master | 2023-08-18T05:41:01.786936 | 2023-07-30T22:36:52 | 2023-07-30T22:36:52 | 62,841,098 | 3 | 0 | null | 2022-04-21T22:25:43 | 2016-07-07T22:08:47 | C | UTF-8 | Python | false | false | 4,309 | py | #!/usr/bin/env python
'''
A set of functions for quick financial analysis of an investment
opportunity and a series of projected cashflows.
For further details and pros/cons of each function please refer
to the respective wikipedia page:
payback_period
http://en.wikipedia.org/wiki/Payback_period
... | [
"shakeeb.alireza@rezayat.net"
] | shakeeb.alireza@rezayat.net |
3baa5490caeaee6f4b3444ff8bdbe2023f78f045 | 8dcd3ee098b4f5b80879c37a62292f42f6b2ae17 | /venv/Lib/site-packages/pandas/core/internals/blocks.py | 8cd8524762a8f465d7b25de9b5374adb5fbcf3d3 | [] | no_license | GregVargas1999/InfinityAreaInfo | 53fdfefc11c4af8f5d2b8f511f7461d11a3f7533 | 2e4a7c6a2424514ca0ec58c9153eb08dc8e09a4a | refs/heads/master | 2022-12-01T20:26:05.388878 | 2020-08-11T18:37:05 | 2020-08-11T18:37:05 | 286,821,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104,426 | py | import functools
import inspect
import re
import warnings
from datetime import datetime, timedelta
from typing import Any, List
import numpy as np
import pandas._libs.internals as libinternals
import pandas.core.algorithms as algos
import pandas.core.common as com
import pandas.core.missing as missing
from pandas._lib... | [
"44142880+GregVargas1999@users.noreply.github.com"
] | 44142880+GregVargas1999@users.noreply.github.com |
6281867ba787ea99bcdeed4afa68a182f5835bc6 | 6da7b3a425718c3eb6b980a67d50553115ce1bcb | /core/paginations.py | 16e51a1f9504e27416401d9dee58556cc29fa7ad | [] | no_license | robertoggarcia/school_vanilla | 9b267467813442b07dbb424a1976e73367ade686 | a0f83ef8832c9ee3b7906493d0219b11ca48d09c | refs/heads/master | 2022-12-02T13:56:00.899094 | 2020-08-21T01:58:25 | 2020-08-21T01:58:25 | 287,159,829 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | from rest_framework.pagination import PageNumberPagination
class LargeResultsSetPagination(PageNumberPagination):
page_size = 50
page_size_query_param = 'page_size'
max_page_size = 100
class SmallResultsSetPagination(PageNumberPagination):
page_size = 10
page_size_query_param = 'page_size'
m... | [
"robertojesusgarcia@gmail.com"
] | robertojesusgarcia@gmail.com |
2493121819f4293cfba205ebc383c3a318856a5b | 28f17a8860e878c0d5dc0f8079c7bd4275c9570a | /scripts/GetOrfs.py | 842e80593c80a149518e2a1e4245d14dacc9015c | [] | no_license | ymx0723/TRACR_RNA | fb35e834d59eb6ee9ddfa572f456b166014ea2b6 | 249ec97f3d50c20e46758923caaaab78ef151b3b | refs/heads/master | 2023-04-26T16:09:53.902993 | 2021-06-02T20:44:53 | 2021-06-02T20:44:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,224 | py | #Cock et al 2009. Biopython: freely available Python tools for computational
#molecular biology and bioinformatics. Bioinformatics 25(11) 1422-3.
import sys
import re
try:
from Bio.Alphabet import generic_dna
from Bio.Seq import Seq, reverse_complement, translate
from Bio.SeqRecord import SeqRecord
from Bio.SeqFeat... | [
"dooley@iastate.edu"
] | dooley@iastate.edu |
4d42d8db4679452819492958ff7feb7d0d4d412d | 27a34f86c149ef4116c98d56c6827d7b643ffb07 | /embed.py | c66019be46b47764493b3cf73e6e222fe93be703 | [] | no_license | Zaltofairo1/embed | bbe6bc20f952e1e9c70070cbfb98f5ba9de4af58 | ea3383160c88becee5b617ed4e114f1b7e258056 | refs/heads/master | 2023-06-03T04:35:36.892610 | 2021-06-21T17:22:04 | 2021-06-21T17:22:04 | 376,920,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | from re import search
import re
import aiohttp
from attr import dataclass
import discord
from discord import channel
from discord import message
from discord.flags import Intents
from dotenv import load_dotenv
import os
import os.path
import random as rnd
from discord.ext import commands
from yarl import URL
bot = com... | [
"paragithubtesla@gmail.com"
] | paragithubtesla@gmail.com |
08281919e1db3db834e6f24964ad38bf0bd73d30 | 8c3b05b508007a44c2e7e141ad52dd573b318976 | /log.py | 5303edc8541fe04f8ed7f9a70d3bc0f2a72b45c7 | [] | no_license | wang-ironman/SSA-and-VRG-for-pedestrian-detection | f282d3eedcffc442d0613752952dbeec7b0d4433 | 66b9b308392f8dc91b024593b8282c9fa884b4b1 | refs/heads/master | 2023-03-02T20:02:28.941903 | 2021-02-13T14:42:33 | 2021-02-13T14:42:33 | 232,329,239 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | import logging
import time,os,sys
from utils.mkdir import mkdir
if sys.version_info.major==3:
import configparser as cfg
else:
import ConfigParser as cfg
class log(object):
# root logger setting
mkdir("/home/neuiva2/wangironman/SSD-change/pytorch-ssd-ad/experments/1_141_640_480_512baseline/logs/")
... | [
"noreply@github.com"
] | wang-ironman.noreply@github.com |
2406803ffeac1ba5f649de2438c85c6177e2f414 | a461925cccddab803593377f4b558f671d43d432 | /Rooms/migrations/0031_remove_deepclean_date.py | 6cd5cb3fddab2d3674681f434ef3b0d565143139 | [] | no_license | fenilpatel1710/Housekeeping | 82a7f69d02b91f4ecb38dbce9319b0b6922873ff | f6dce8b98633ea3a01c2942ff0a84c512d9dffe1 | refs/heads/master | 2022-12-03T10:49:36.036539 | 2020-08-20T04:45:29 | 2020-08-20T04:45:29 | 288,914,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | # Generated by Django 3.0.5 on 2020-07-31 02:22
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Rooms', '0030_deepclean_date'),
]
operations = [
migrations.RemoveField(
model_name='deepclean',
name='date',
),
... | [
"fenilpatel1710@gmail.com"
] | fenilpatel1710@gmail.com |
7f0c40889719ed4363271fcadbb617d93f84cd8a | 96a0184da0699b7f6188722245784696190fc7e9 | /fennel/logging.py | d51cc59c70d8e87e0a74fee8a95798acf733bf0a | [
"MIT"
] | permissive | mjwestcott/fennel | a600bb1d1636c5138c7f748c1f0a5d8d94d04b61 | f196ca8c43a1c6e319b413627d9771b957638e01 | refs/heads/master | 2022-12-09T07:44:24.939650 | 2020-08-20T22:35:52 | 2020-08-20T22:35:52 | 212,467,048 | 36 | 3 | MIT | 2022-12-08T10:54:38 | 2019-10-03T00:20:41 | Python | UTF-8 | Python | false | false | 3,577 | py | import datetime
import logging
import logging.config
import os
from io import StringIO
from typing import Any, Dict
import colorama
import structlog
def init_logging(level="debug", format="console"):
level = level.upper()
logging.config.dictConfig({
"version": 1,
"disable_existing_loggers": ... | [
"m.westcott@gmail.com"
] | m.westcott@gmail.com |
b221c3c9d0e06b9ff21be85f36bd5ec1b7182e06 | d912ad85ecc9b444e7ae60640664b2af22693bcf | /characters/character.py | ae91f5da20767a85aedadf5dd968b2e7558b526a | [] | no_license | rockerway/godfink | ded01b80b2a1af39a5862a28b90ee31eb89584ed | e8c41d367ba7234998b01dd86950dd97fd8b07c2 | refs/heads/master | 2020-03-25T10:12:54.512114 | 2018-09-20T05:13:36 | 2018-09-20T05:13:36 | 143,687,392 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,724 | py | import tkinter
import configparser
from entities.displacement import Displacement
from actions.actable import Actable
config = configparser.ConfigParser()
config.read('config.ini')
width = int(config['window']['width'])
height = int(config['window']['height'])
class Character(Actable):
def __init__(self, charact... | [
"tod.shen@todshen.local"
] | tod.shen@todshen.local |
7119c5b74f8e158542ca3c1bef363c1492989457 | 2e376c1e945cd1e8afb211d3f57d6773c33f9988 | /create_symbol_file.py | beb6c06ff08bbfb8fb140ac04fe0f4c78aa653cf | [] | no_license | kjmeagher/nitrile | 203c3d20ea116d737948593b51f605a3f35867bc | 4667e0bd3eaf3e865cdd78be2693066fb8ace009 | refs/heads/master | 2016-08-10T10:02:51.864159 | 2015-12-27T18:37:13 | 2015-12-27T18:37:13 | 48,655,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,060 | py | #import ParseLatex
import string
from nitrile.latex.latex2e.latex2e import latex2e
from nitrile.latex.latex2e.package_defs import Symbol
whitespace = string.whitespace+u'\xa0'+u"\N{THIN SPACE}"+ u"\N{soft hyphen}"
f=open("symbols.tex",'w')
f.write(r"\documentclass{article}"+"\n"+
r"\begin{document}"+"\n" +
... | [
"kmeagher@ulb.ac.be"
] | kmeagher@ulb.ac.be |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.