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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
30232aaafb908dc8c053eeb85976b9724e225dcf | df8220610a79ffddf26d81d6b9f64e09ea65ef17 | /kdsg_sac/o1SAC.py | b0f4137a3a9343bdc860702b004030b9e347a344 | [
"MIT"
] | permissive | fenildf/anki_addons-1 | c43f40f488674ad0050cbd2c2ec5aec4f470b74c | 352f5230cb52f07aaabd2bbc76d583f585deffb7 | refs/heads/master | 2020-05-22T05:47:07.183625 | 2018-03-14T13:04:32 | 2018-03-14T13:04:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,102 | py | # -*- coding: utf-8 -*-
# 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 License, or
# (at your option) any later version.
#
# This program is distributed in the hope that... | [
"aardodd@users.noreply.github.com"
] | aardodd@users.noreply.github.com |
4e0fd38b831e207c672c8e5a4a06d116ca4d223e | 3dcd5c3d18b9b37d6ab93349f91a60aacd3c3de6 | /service/app.py | 99f903621efb133f982e6afb25936a1b57121bb7 | [
"MIT"
] | permissive | jonnybazookatone/citation_helper_service | 2f614e6f525e228ee90cbe2c7c75faf40b24b60e | dd9db7cfb5740429df3fe2f173c2b9ed71793e71 | refs/heads/master | 2021-01-17T18:04:15.765790 | 2015-11-10T16:41:59 | 2015-11-10T16:41:59 | 45,925,360 | 0 | 0 | null | 2015-11-10T16:38:10 | 2015-11-10T16:38:10 | null | UTF-8 | Python | false | false | 1,379 | py | from flask import Flask
from views import CitationHelper
from flask.ext.restful import Api
from flask.ext.discoverer import Discoverer
from flask.ext.consulate import Consul, ConsulConnectionError
import logging.config
def create_app():
"""
Create the application and return it to the user
:return: flask.F... | [
"ehenneken@cfa.harvard.edu"
] | ehenneken@cfa.harvard.edu |
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 |
ff3f2fe7c0ff1a24311692a70eb60866a57560e6 | 4607c3869cfcef24518e817a6e31d29b01eb4fee | /project/users/migrations/0001_initial.py | ef0de3a8007ea75c3d2fd331f41ae77c76017c42 | [] | no_license | fa8chai/ClickTime | 916902336d552498d2fedf41df08fc6304a82e81 | 18992f858a2354cdce6f6f38fccd7cfc9db0d912 | refs/heads/master | 2023-06-03T22:53:34.009319 | 2021-06-11T23:46:52 | 2021-06-11T23:46:52 | 280,895,226 | 0 | 0 | null | 2020-07-22T14:27:34 | 2020-07-19T15:33:03 | Python | UTF-8 | Python | false | false | 2,448 | py | # Generated by Django 3.0.5 on 2020-05-26 15:07
from django.db import migrations, models
import django.utils.timezone
import users.models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissions'),
]
operations = [
migrations.Cr... | [
"anne.wi.sw@gmail.com"
] | anne.wi.sw@gmail.com |
a2397630ed41926dd03f160daaf34fd7b95a8670 | 45ab4c22d918dc4390572f53c267cf60de0d68fb | /src/Analysis/Engine/Impl/Typeshed/third_party/2and3/werkzeug/_compat.pyi | 74981331c7de5221f3fe7114e32b5f8d3c300296 | [
"MIT",
"Apache-2.0"
] | permissive | sourcegraph/python-language-server | 580a24fd15fe9d4abeb95e9333d61db1c11a2670 | 64eae156f14aa14642afcac0e7edaf5d7c6d1a1c | refs/heads/master | 2023-04-09T21:17:07.555979 | 2018-12-06T23:25:05 | 2018-12-06T23:25:05 | 155,174,256 | 2 | 2 | Apache-2.0 | 2018-10-29T08:06:49 | 2018-10-29T08:06:49 | null | UTF-8 | Python | false | false | 1,280 | pyi | import sys
from typing import Any
if sys.version_info < (3,):
import StringIO as BytesIO
else:
from io import StringIO as BytesIO
PY2 = ... # type: Any
WIN = ... # type: Any
unichr = ... # type: Any
text_type = ... # type: Any
string_types = ... # type: Any
integer_types = ... # type: Any
iterkeys = ...... | [
"alsher@microsoft.com"
] | alsher@microsoft.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 |
0da77f014cb0ab5fa330e78eb0ad3805875541f6 | c65ea2fb10fc26d41d802d50e7d29b4d9f28dfe6 | /honshu/geoclaw/pacific/.svn/text-base/setplot.py.svn-base | c1309d2c0632c0fae2f5b66c46f0edac1030886c | [] | no_license | jsvarkovitzky/ccTsunami | a48b6b86ac67ffb8fa430b1e38f45adfe4afb66d | 47caa6f0c559f3060209d571d1d64a6186072deb | refs/heads/master | 2021-01-15T22:29:21.968088 | 2011-08-04T05:34:32 | 2011-08-04T05:34:32 | 2,067,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,135 |
"""
Set up the plot figures, axes, and items to be done for each frame.
This module is imported by the plotting routines and then the
function setplot is called to set the plot parameters.
"""
from pyclaw.geotools import topotools
from pyclaw.data import Data
import pylab
import glob
if 0:
dartdata = {}
... | [
"vark@uw.edu"
] | vark@uw.edu | |
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 |
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 |
a628c39bd53cea1ff8df84544f1156e18f04b8b5 | a58d398cf4702e0ca085acefab86eba5a8d39fdc | /keywordjournal/__init__.py | 3e64e4065ea223dcbc390405639d4c1309dfaaa1 | [] | no_license | dnlk/keywordjournal | ffe3197de6fb9af4a486cec51b5eb3283763b848 | 3ae3e38ceacfd78f4fe4c565b4c73f1098ca418d | refs/heads/master | 2020-05-20T09:02:39.807276 | 2017-10-07T02:27:11 | 2017-10-07T02:27:11 | 49,175,625 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | # Author: Daniel Kinney
# All rights reserved | [
"kinney.daniel.j@gmail.com"
] | kinney.daniel.j@gmail.com |
40b189e2c7cf87e2f9c04dc040bffae8b304ffa8 | 36908b333699e76e7ca065795bdb3fddabbee9a7 | /scribble_root/scribble/views.py | b79c90fad6d836cb2d2fbbcfcbbe16dc437dab18 | [] | no_license | caseymccullough/scribble | 606511fd38d25d2ab148690a3ff0d3b3e9dbb407 | 179277fe324b8cea3fa5b05896c027f2427a7c0f | refs/heads/main | 2023-04-03T01:59:20.628177 | 2021-04-20T12:56:20 | 2021-04-20T12:56:20 | 359,178,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,459 | py | from django.shortcuts import render, redirect
from .models import Post, Comment
from .forms import PostForm, CommentForm
# Index
# New
# Destroy
# Update
# Create
# Edit
# Show
#Index Posts
def post_list(request):
posts = Post.objects.all()
return render(request, 'scribble/post_list.html', {'posts': posts}) #... | [
"kcmccullough@gmail.com"
] | kcmccullough@gmail.com |
66132fd2622620008df1bf5da31fc56479c8812c | f12dd0b2214882cbfa477e216a939becee16f70e | /myEnvironments/djangoPy3Env/bin/pip3.6 | 2605ddfa2c52e8ea2a1146a0c116ad666c67bbe8 | [] | no_license | jupiterorbita/python_stack | b62e2ad9a0b893f6be855fb5b0c94a00ea54b23e | 554b2dbd1853fbae6864c3bd64b25a91d7cbebb0 | refs/heads/master | 2020-03-16T00:09:43.986289 | 2018-05-22T20:01:56 | 2018-05-22T20:01:56 | 132,409,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | 6 | #!/Users/jman/Desktop/CD/python_stack/myEnvironments/djangoPy3Env/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"john.williams@outlook.com"
] | john.williams@outlook.com |
d911b045663d565be92524dcbdeb0dee537c4ee8 | a72106acf426859b49be66ec7a1d209d8ffb59d1 | /importer/indico_importer/converter.py | f8b138c0a1ca528382992688f5347a4d08c1ba43 | [
"MIT"
] | permissive | indico/indico-plugins-attic | 12502c891805e092b936c42a779fa9c667ee23d6 | 64a6bffe4dc7e30e2874dd4d6aac9908038910f1 | refs/heads/master | 2021-06-23T03:51:21.500524 | 2021-03-17T10:35:24 | 2021-03-17T10:35:24 | 201,440,329 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,001 | py | # This file is part of the Indico plugins.
# Copyright (C) 2002 - 2020 CERN
#
# The Indico plugins are free software; you can redistribute
# them and/or modify them under the terms of the MIT License;
# see the LICENSE file for more details.
from __future__ import unicode_literals
APPEND = object()
class RecordCon... | [
"adrian.moennich@cern.ch"
] | adrian.moennich@cern.ch |
e140257cdc000876565032ee918fb13aca9affd4 | 26cedf237c596f38e9ca129151930c8ecae8898d | /visualise_music.py | 9c3bde4b7100b1a1b0eb473f23efef65129e9e0b | [] | no_license | PrajwalSood/Metal.AI | 707d019cec5398e67696c5d085527815254f0c71 | e5eb67430a561eaeaec3875a41bfee1bf9554310 | refs/heads/master | 2023-04-01T18:00:26.941536 | 2021-04-08T11:32:08 | 2021-04-08T11:32:08 | 355,123,910 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 6 14:51:32 2021
@author: prajw
"""
from music21 import converter
# Define data directory
data_dir = 'data/'
# Parse MIDI file and convert notes to chords
score = converter.parse(data_dir+"Black Sabbath - Bassically.mid").chordify()
# Display as sheet music - requires... | [
"prajwalsood@gmail.com"
] | prajwalsood@gmail.com |
f39c546e73926e4b6dde4a1c3d565c4484856f29 | dc308f01a03cc5acbf1acf93b05b306b36841648 | /myapp/models.py | 0528ad2cd82dfa505df99311a99bb1baa0642369 | [] | no_license | swamyanvitha/blog | bd978565f31830108efbfe04892bb8a17738bf2c | 0d6990ec67e5ee13292e7a5238c402b7fbdfcc5a | refs/heads/master | 2022-04-18T10:56:12.071669 | 2020-04-15T12:17:45 | 2020-04-15T12:17:45 | 255,903,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | from django.db import models
# Create your models here.
class Person(models.Model):
name = models.CharField(max_length = 30)
| [
"swamy.anvitha@vitap.ac.in"
] | swamy.anvitha@vitap.ac.in |
49be7f76c9ec89e45b8a74c10f33d65ad424437b | f3e816f6469f19b2d31adf396cbec30e78eef83f | /chapter15/15.24.py | c7ef2767540858393e75c136b4c6f6b5bb09d15e | [] | no_license | CUGshadow/Solution_to_Daniel_Liang_python_exercises | 976d267217cd09fde20549768aea0a4abf7bb1d9 | 6beaa3b143253a88660f8d54a2012762dd5f731b | refs/heads/master | 2023-03-23T02:11:33.226402 | 2019-02-22T05:32:51 | 2019-02-22T05:32:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | # (Number of files in a directory) Write a program that prompts the user to enter a
# directory and displays the number of files in the directory.
import os
def getNumberOfFiles(path):
count = 0
if not os.path.isfile(path):
lst = os.listdir(path)
for subdirectory in lst:
count += g... | [
"noreply@github.com"
] | CUGshadow.noreply@github.com |
938b8e7477a37f042c3b5d6c014c9bf48c7e6eea | d50205227e87eccd08e72db353fd62c4c9cf5549 | /่ถ
ๅฅฝ็จ็็ป็ซฏ/syos.py | ba865cc15a1dac1a1a8aef99e901c81be8e45e93 | [] | no_license | SanYuanAndy/python | d0e99553e447af885b219857eef84643ece1b70b | 34be4747b7d9283f90c8333b0c89795e22a549ee | refs/heads/master | 2021-01-12T07:31:39.526331 | 2018-10-24T02:48:02 | 2018-10-24T02:48:02 | 76,971,687 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,127 | py | #coding=utf8
import subprocess
import time
import threading
import sys
import Queue
from syutil import print_t
from syutil import print_n
class writeThread(threading.Thread):
def __init__(self, proc, target):
threading.Thread.__init__(self)
self.proc = proc
self.target = target
self... | [
"yuanmu zhao"
] | yuanmu zhao |
be1cb3e2ca6cfb578e3b4fa497d817263e0644a2 | 572236666850ab79611ed3b6da3aee3704f35afa | /leetcode/010/code01051.py | 394c5ebb0084e23bf20b16ffb8d2d984376a7870 | [] | no_license | denamyte/Python-misc | c9eee55232329299b7d12357579920c6517dbdd0 | 66fc2a9804868ad2408f1cfa3116b0901a950083 | refs/heads/main | 2023-08-18T12:33:40.256174 | 2021-10-23T21:54:28 | 2021-10-23T21:54:28 | 322,969,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | from typing import List
class Solution:
def heightChecker(self, heights: List[int]) -> int:
"""
https://leetcode.com/problems/height-checker/
"""
h = sorted(heights)
moved = 0
for i in range(len(heights)):
if heights[i] != h[i]:
moved += ... | [
"denamyte@gmail.com"
] | denamyte@gmail.com |
0161da69528b89021b5f9ac89a7e9680621fe545 | 40d6b88cdc8b2fea3010b0438e2cd52f9241510d | /userspermissions/managers.py | 503fe6105049285a17bfd35f5fa5115ed70c6314 | [] | no_license | TannyS26/Enterprise-Resource-Planning | 19e11d9375573fb9cffb1cbb19eb4eb8796a3d9b | 452d74b1a302cd11fe7852f15d47842cbcf5eb4f | refs/heads/master | 2022-07-19T02:59:36.026694 | 2020-05-16T08:14:05 | 2020-05-16T08:14:05 | 264,387,377 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | from django.contrib.auth.base_user import BaseUserManager
from django.utils.translation import ugettext_lazy as _
class CustomUserManager(BaseUserManager):
"""
Custom user model manager where email is the unique identifiers
for authentication instead of usernames.
"""
def create_user(self... | [
"noreply@github.com"
] | TannyS26.noreply@github.com |
62a430d7658748dc827ca7a1a71a21975277174b | 2e70b3ce93762c5b66fba57f8b9cba37aacf0702 | /new/account/migrations/0005_auto_20190528_1610.py | 184bec8ce2a97ea9516a3f76e5495f0cfbb17c49 | [] | no_license | mahidul-islam/jamah | 02be511fe119e8934ec7d5aa1eaa8e2b24fad246 | c8ddf9a8094d33e8b1d6cb834eab3d9f18b1a9ea | refs/heads/master | 2022-05-13T15:11:38.609550 | 2019-06-08T04:52:09 | 2019-06-08T04:52:09 | 184,331,276 | 2 | 0 | null | 2022-04-22T21:27:18 | 2019-04-30T21:04:06 | Python | UTF-8 | Python | false | false | 541 | py | # Generated by Django 2.2.1 on 2019-05-28 16:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('account', '0004_account_mother_account'),
]
operations = [
migrations.AlterField(
model_name='t... | [
"mizihan84@gmail.com"
] | mizihan84@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.