blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fce765142eaf423639434d0ee0255320be03ebd1 | e0c8662a56d89730043146ddc340e9e0b9f7de72 | /plugin/11e23c18-1596.py | 3ca27f59f5378a6af4db567a8641f9832a2735e3 | [] | no_license | izj007/bugscan_poc | f2ef5903b30b15c230b292a1ff2dc6cea6836940 | 4490f3c36d4033bdef380577333722deed7bc758 | refs/heads/master | 2020-09-22T17:20:50.408078 | 2019-01-18T09:42:47 | 2019-01-18T09:42:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | #coding:utf-8
from lib.curl import *
# -*- coding: utf-8 -*-
import re
def assign(service, arg):
if service=='tipask':
return True,arg
def audit(arg):
code,head,res,errcode, _=curl.curl2(arg+'?dfferfdsfe')
if code == 404 and res:
m=re.search(r'file "(.*)" not found',res)
if m:
... | [
"yudekui@wsmtec.com"
] | yudekui@wsmtec.com |
e798e0a1a5751794e2951f5827195179ad1b0c26 | 0aacfdcef43037ec2fd35c35977822f82afadbc7 | /Python/python.py | cfd45304794b8d6cb3cad6db6ce5a5e2fedb7474 | [
"MIT"
] | permissive | Vitamin-111/py-web-hack | 65ccd0868c984d64229d99ff2f9fc0e474bd92e9 | 5d879dbaa736ca43903a6ad9c44e7de995a45195 | refs/heads/master | 2023-04-30T23:42:23.231459 | 2020-05-13T09:05:53 | 2020-05-13T09:05:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | string = str(input());
list1 = list(string);
rp = list(input().split());
list1[int(rp[0])]=rp[1];
string = ''.join(list1);
print(string) | [
"marshtomp.1999@hotmail.com"
] | marshtomp.1999@hotmail.com |
87f6bb8e3294c67d42060c1ff6433704601ead83 | eea29195508ee7997bbf75d78758152976b6aea8 | /day3.py | 2d568851d3b0dc77d7a1fe8410eb453d5d30df8f | [] | no_license | shouvikbj/Daily-Python-Challenges | 85e928d395ae818793acf6c6f6dabdffde72dc0d | 762a5bdce59af29970453798db93a2c85b6f8e13 | refs/heads/master | 2023-07-26T10:27:10.697511 | 2021-08-29T04:34:54 | 2021-08-29T04:34:54 | 400,948,170 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | bigCup = 500
smallCup = 300
requiredAmount = bigCup - smallCup
print(requiredAmount, "ml")
| [
"bajpayeeshouvik@gmail.com"
] | bajpayeeshouvik@gmail.com |
ec592a75128578c37fc8bfb643b4f514e23b4bc7 | 61d7fdd1cb6c1eec31ebf745e123cc938409005a | /ubuntu/voicetools/examples/raspi_assistant/assistant.py | 0faed9500e48c36cc0b06a38fa0a96bf2ce1e4bb | [
"Apache-2.0"
] | permissive | linjian128/hackster | a72d6973f6e738b9f3e98a4905fb8b3d4c1f0f28 | eec04b739d00aaedc60a7294aff92aec8471f9f2 | refs/heads/master | 2021-01-19T21:42:22.370585 | 2017-04-23T01:01:09 | 2017-04-23T01:01:09 | 88,693,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | # coding: utf-8
import os
import sys
import time
import RPi.GPIO as GPIO
HOME = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(HOME)
from raspi_assistant.settings import GPIOConfig
from raspi_assistant.utils import init_logging_handler
from raspi_assistant.handler import BaseHandler
log... | [
"linjian128@gmail.com"
] | linjian128@gmail.com |
cbea97b96fe9f77f64eaefc00148098bb31feed4 | 51d142709423c31bd4b733bc510ad018cb8b8877 | /venv/bin/django-admin | b72e2d917af622bf94694d82276174893623cdc5 | [] | no_license | m-dn/djangofirstapp | e5c9c196c6ba0da8d87f7bb5e7c6934c7d5a4362 | 892bf06d735cae3a2eb7cd2a6dfb17da67ec7d9d | refs/heads/master | 2022-11-08T12:44:11.120767 | 2020-06-19T07:18:56 | 2020-06-19T07:18:56 | 270,740,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | #!/home/damian/StockTrading/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"mazur_damian@wp.pl"
] | mazur_damian@wp.pl | |
280495db9a705ec23444c3d70b38ddb6c23049c6 | b3389ac9da5d2d72545c556ebc0c43b5517a06be | /pyMD/reporters/lammps_trajectory.py | 0401059e7953930aab3fcbdc1faaf25d0404e997 | [
"MIT"
] | permissive | king-michael/python_MD_engine | cefbcb95cd0b7e73547bc4b456501ea230fe6e84 | 4bbcb86722fc8eb071e7db9061d765f935f8990e | refs/heads/master | 2021-05-25T20:47:32.263264 | 2020-04-22T12:27:36 | 2020-04-22T12:27:36 | 253,913,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,352 | py | from ..misc.lammps_dump_custom import DumpFileWriter
from .base import Reporter
import numpy as np
class LammpsTrajectoryReporter(Reporter):
default_fields = ['id', 'x', 'y', 'z', 'vx', 'vy', 'vz']
map_dtype = {'%d': np.int64, '%g': np.float64, '%f': np.float64, '*': np.float64}
def __init__(self, filenam... | [
"michael.king@uni-konstanz.de"
] | michael.king@uni-konstanz.de |
12769f9a834726649374d31c469d956ec8091f46 | 5cb9dccbcccb8a2137368dd0615fe3e3c7761707 | /simulations/kinova/build/chomp_motion_planner/catkin_generated/pkg.develspace.context.pc.py | 3a3076474a22a84958b84ab31ec82194d9ffd63e | [] | no_license | Simon-Steinmann/sim2real-modular-RL-project | b2467a393014e106043f6128a026f5eac934a83d | 4027590ac94de2d5c914731c09efcf2f318b9ca3 | refs/heads/master | 2020-07-29T01:30:56.450919 | 2019-10-12T09:33:00 | 2019-10-12T09:33:00 | 209,605,548 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/acis/sim2real/simulations/kinova/src/moveit/moveit_planners/chomp/chomp_motion_planner/include".split(';') if "/home/acis/sim2real/simulations/kinova/src/moveit/moveit_planners/chomp/chomp_motion... | [
"simon.steinmann91@gmail.com"
] | simon.steinmann91@gmail.com |
81836a77393b703a7e69351661f816b5e0db1eb9 | 5f1c3a2930b20c3847496a249692dc8d98f87eee | /Pandas/Titanic_DataAnalysis/Question8.py | d6bea604e6b82e0b17af8e7a63fd757c6a04672e | [] | no_license | AmbyMbayi/CODE_py | c572e10673ba437d06ec0f2ae16022d7cbe21d1c | 5369abf21a8db1b54a5be6cbd49432c7d7775687 | refs/heads/master | 2020-04-24T05:01:46.277759 | 2019-02-22T08:26:04 | 2019-02-22T08:26:04 | 171,723,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | """write a pandas program tocreate a pivot table and count survival by gender,
categories wise age of various classes
"""
import pandas as pd
import numpy as np
df = pd.read_csv('titanic.csv')
age = pd.cut(df['age'], [0,10,30,60,80])
result = df.pivot_table('survived', index=['sex', age], columns='pclass', aggfunc='... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
84ec225f0c5aef65ff473b0bb720bc588a9e4252 | f2334b99855b301aada08f0b123d18a9f9314349 | /Hyunji/HW1_Fire/burn_matrix_display.py | 40eee61ba5e3ba6e59c44c263cb8bbceaa97a14b | [
"Apache-2.0"
] | permissive | omsktransmash/ScientificPythonTutorial | 034d54759ff3a2256cf15182c34ff1f935574a43 | 2d3cf8aacc9f0dd5cde499f0b30a23482835793a | refs/heads/master | 2021-01-06T20:36:58.334478 | 2014-08-30T10:14:19 | 2014-08-30T10:14:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | import random
class Tree:
grown = False
def grow(self):
self.grown = True
def burn(self, my_row, my_col, trees):
if self.grown == True:
self.grown = False
#Row Action
if my_row > 0:
left_tree = trees[my_row - 1... | [
"namjjong@business.kaist.ac.kr"
] | namjjong@business.kaist.ac.kr |
d7022a60e944960e9ba2fee6f503cc1b625f2fa1 | 8306ae322423fa28d7a23c9b0260596f09296547 | /node_count.py | 2dff5755c0fb85c1157223d599ea02162fc84daf | [
"Apache-2.0"
] | permissive | tjzxh/teamE | 219a5813426f31e990d3d6f4ddc2cb006d095191 | 57656c25be10dfe5670c222ae7bc7001c9489460 | refs/heads/master | 2021-07-07T11:20:36.962026 | 2017-10-06T03:52:51 | 2017-10-06T03:52:51 | 105,965,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,051 | py | import networkx as nx
import scipy.io as sio
import plotly.plotly as py
import plotly
from plotly.graph_objs import *
import xlrd
import numpy as np
import plotly.graph_objs as go
plotly.tools.set_credentials_file(username='tjzxh', api_key='r2F9Tbql2xiZLWzFLRJ6')
f = r'C:\Users\小卉\Desktop\teamE\DATAA.mat'
... | [
"noreply@github.com"
] | noreply@github.com |
b640454f01f429bdd0a6ee8b1de39fbd1042b179 | be3b265dfdde149dd52e83dbd37bd71dceddc6ac | /squirrel/migrations/0003_auto_20201021_1713.py | 08c57b9428ebc9a9c7e60bbeca6be5f813867fda | [] | no_license | shg2131/squirrel-tracker | 54221def4e9e6aadb2714f67fcba5548ca0dd145 | f27694ffde07ad1dd1320717c05e7e8fe93bf0d4 | refs/heads/master | 2023-01-04T01:03:52.303208 | 2020-10-22T19:15:40 | 2020-10-22T19:15:40 | 302,225,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | # Generated by Django 3.1.2 on 2020-10-21 17:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('squirrel', '0002_auto_20201020_0246'),
]
operations = [
migrations.AlterField(
model_name='squirrelsighting',
name='... | [
"shg2131@columbia.edu"
] | shg2131@columbia.edu |
6498b94b892d481deb5814470257a43b2908256b | 534b8abb351e224a3176e00779a5200639a6bd6f | /pyvision/image/modeBlur.py | 827ece775b07c0c065d44775c6c195fb570bdac2 | [] | no_license | rajivalbino/PyVision | 7c5dfaa844032599d3451061019609a9460bc28d | 13ab7a7847ccd4c8a65ef22fd9249c1d8f6135c2 | refs/heads/master | 2023-03-22T21:33:01.017929 | 2021-03-17T20:22:12 | 2021-03-17T20:22:12 | 288,546,751 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | import numpy as np
import cv2
from scipy import stats
def modeBlur(img, pad):
(h,w) = img.shape[:2]
ch = 1 if img.ndim == 2 else img.shape[2]
img = cv2.copyMakeBorder(img, pad, pad, pad, pad, cv2.BORDER_REPLICATE)
output = np.zeros((h,w,ch), dtype="uint8")
for k in np.arange(ch):
for j in ... | [
"rajivalbino@gmail.com"
] | rajivalbino@gmail.com |
8b00cb8d70c9d7a361ad920dddfbfdf75d237328 | e59e0bd3cdfc706105ee697cc6683554d3cdb371 | /utime/augmentation/elastic_deformation.py | 9c267b66b0bdb1de51ca1870c185892338355305 | [
"MIT"
] | permissive | jennynanap/U-Time | 02455307cd67abf975d659346d4a1f3acebd8eed | f7c8e3f1368f43226872a69b0fbb8c29990e4bd9 | refs/heads/master | 2023-07-10T16:26:23.648995 | 2021-08-24T12:09:30 | 2021-08-24T12:09:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,570 | py | import numpy as np
from mpunet.interpolation import RegularGridInterpolator
from scipy.ndimage.filters import gaussian_filter
def elastic_transform(signal, labels, alpha, sigma, bg_value=0.0):
"""
Elastic deformation for 1D signals, modified from:
[Simard2003] Simard, Steinkraus and Platt, "Best Practices... | [
"mathias@perslev.com"
] | mathias@perslev.com |
e943af6096d9e6b3f04e22117f41da5ad935d71c | 0f9affcf86de7af00fe99d7a2889bde7a5857130 | /bin/easy_install-2.7 | 1248ae80f02c090a241bf70fe506168b71614b50 | [] | no_license | MaianaB/servico-email | 2beee98e2e12ee83daea569cfff8c77261a6a185 | efbefa0f4b42d1e45ed9d68358e6cd13052497e5 | refs/heads/master | 2020-04-04T00:32:00.669588 | 2018-11-01T03:39:04 | 2018-11-01T03:39:04 | 155,653,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | 7 | #!/home/maiana/Documents/servico-email/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"dellyarruda@gmail.com"
] | dellyarruda@gmail.com |
4e4fd1bbf7961a31a03efbddac1f499cab543d11 | 0f25dc1797b7dbf42f02997b54d1b48036eaf365 | /Models/LenslessDataset.py | 600907c3b1cfcdcac1959c6154af3c525f6a2afe | [] | no_license | brod4910/LenslessCameraML | 83d0c80df4837eb18d8960013e84a846dba07e35 | 2f9ab4f74ae83673619f5b9c179a781fc9d77a8c | refs/heads/master | 2020-03-16T04:44:13.865097 | 2019-01-04T02:32:50 | 2019-01-04T02:32:50 | 132,518,181 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | from __future__ import print_function, division
import os
import torch
import pandas as pd
from skimage import io, transform
import numpy as np
from torch.utils.data import Dataset, DataLoader
from torchvision import transforms, utils
from PIL import Image
import random
'''
Dataset for the lensless images.
The... | [
"brod4910@gmail.com"
] | brod4910@gmail.com |
273a796eb3e0d568fc83cd05aff1e374c4393f21 | b1bc2e54f8cd35c9abb6fc4adb35b386c12fe6b4 | /toontown/src/coghq/Stomper.py | f579b1ff2fd2e11404c53d4ef459346b72bf19ad | [] | no_license | satire6/Anesidora | da3a44e2a49b85252b87b612b435fb4970469583 | 0e7bfc1fe29fd595df0b982e40f94c30befb1ec7 | refs/heads/master | 2022-12-16T20:05:13.167119 | 2020-09-11T16:58:04 | 2020-09-11T17:02:06 | 294,751,966 | 89 | 32 | null | null | null | null | UTF-8 | Python | false | false | 4,816 | py | """Stomper module: contains the Stomper class"""
from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from direct.distributed.ClockDelta import *
from direct.showbase.PythonUtil import lerp
from direct.fsm import StateData
import math
class Stomper(StateData.StateData, NodePath):
SerialN... | [
"66761962+satire6@users.noreply.github.com"
] | 66761962+satire6@users.noreply.github.com |
bee978bbe2b275523f751a62aa5ea9f7cb6db146 | 5e4114c21a0184c7d0d5ee0d208369f220e93001 | /DAO/FormularioDAO.py | 5b0f59e1c0f119178cc3ebec5d0f06d9a5fbd013 | [] | no_license | dev-ekleorf/BemPromotora_Desafio1 | 5543b7ede8d7776c93581e86b2b2431829e10a21 | bcc7d8594720e6988b044278a44326f8d6361aa7 | refs/heads/master | 2023-06-23T05:48:54.141053 | 2021-07-20T13:38:45 | 2021-07-20T13:38:45 | 387,803,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | import psycopg2
from Model.Formulario import Formulario
from Model.Pergunta import Pergunta
class FormularioDAO:
def __init__(self):
pass
def retornaFormulario(self):
conn = psycopg2.connect("dbname=db_BemPromotora user=postgres password=postgres")
cur = conn.cursor()
query =... | [
"ekleorf@gmail.com"
] | ekleorf@gmail.com |
5a6f86141e066fd4420973dca726befae40c1b0b | 487766fbd694ffd3a64392facbfd4dcfb6e35b64 | /hmmTrain.py | 0e972671a44908049a2201aa9ab5ed9d3258f1ac | [] | no_license | elitcenk/Comparative-Study-of-HMMs-and-LSTMs-on-Action-Classification-with-Limited-Training-Data | dd683798ca0ae72e832ca0cd1fa5dfa6fcaefcaa | 952d218451daa615d2e618b1ae9e0cf5c68221ea | refs/heads/master | 2020-04-28T06:01:35.056192 | 2019-07-22T08:26:40 | 2019-07-22T08:27:01 | 175,041,322 | 0 | 0 | null | 2019-05-25T06:57:51 | 2019-03-11T16:32:40 | null | UTF-8 | Python | false | false | 992 | py | __author__ = 'calp'
import argparse
import hmm_util
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Train human action with HMM')
parser.add_argument('-s', '--state-number', type=int, dest='state_number', default=5, help='Number of states in the model. (default: %(default)s)')
pa... | [
"calp@netas.com.tr"
] | calp@netas.com.tr |
f9ffd1755be21be67013a23f4ea316150f7b5cdb | d14095fa2ceabcb79c75d4361da7d32976d52cc5 | /CodeTalks/settings.py | 46ff9420d26a3b98a1580776367760e169cfc522 | [] | no_license | AlankarSaxena2712/CodeTalks | bffb0b4ab727cee0992902e53bff794578b0bf97 | 679046d070798198c37ddb34a7c370bf4c870109 | refs/heads/master | 2023-07-08T04:25:20.589324 | 2021-08-01T14:40:41 | 2021-08-01T14:40:41 | 391,394,661 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,809 | py | """
Django settings for CodeTalks project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathl... | [
"saxenaalankar42@gmail.com"
] | saxenaalankar42@gmail.com |
25bb15a445ae231f13aeec2062c7869184b312dc | 6c0a38da8f2ce9ce4f5c986395aa8cfcfb2d936a | /tests/scheduler.py | d294c19bf2ae49bf972c6a1ed8495b54a98660b4 | [
"BSD-2-Clause"
] | permissive | robertblackwell/buph | d97a8888a97d7edd77f4ed9f3a4cb1ddcfd285df | accb6b780a632dffd0089cf74dbd15eb52da901f | refs/heads/master | 2023-02-21T07:04:49.824917 | 2021-01-23T00:26:49 | 2021-01-23T00:26:49 | 331,658,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,276 | py | import typing
import sys
import subprocess
import pathlib
import os.path
from datetime import datetime
import math
import unittest
from enum import IntEnum
p = sys.path
sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
p = sys.path
from buph.config import Config
from buph.d... | [
"rob@whiteacorn.com"
] | rob@whiteacorn.com |
e2b1450177b08f725aefb02bcd0474340e128954 | 2fced350d1368476db8eb7a1577a8d737f716af3 | /src/tournament/migrations/0018_auto__add_field_tag_date_created__add_field_tag_date_modified__add_fie.py | 6543b88653865e4515d7264b636c525b0f992b57 | [] | no_license | demidov91/game-for-you | 48ac9c242fb9752f3c20cf43ea87fbaf943b9a08 | d9226244dd6bf8100f0aaa391ff0cf9a7343c7ef | refs/heads/master | 2021-01-19T09:02:03.807777 | 2016-09-19T14:18:45 | 2016-09-19T14:18:45 | 17,358,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,902 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Tag.date_created'
db.add_column('tournament_tag', 'date_c... | [
"demidov91@mail.ru"
] | demidov91@mail.ru |
020f32d9fd3bbb951d65cc6aa260a2e88d0ab373 | 0a386cf06045e74435b8a26907cfd0ca45882f46 | /awards/migrations/0002_rating.py | 458270985c24e23d27e5b510513f68373c7845ed | [
"MIT"
] | permissive | mykeck/Awwards | 639a486c05cedd8880c0697dcc585ef03b3ecc59 | 1cf3164e02ec6b989c25e080b48217770aca7b91 | refs/heads/master | 2023-01-11T00:03:48.001391 | 2020-10-27T12:52:18 | 2020-10-27T12:52:18 | 306,563,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py | # Generated by Django 3.1.2 on 2020-10-26 18:21
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"kiragumike@gmail.com"
] | kiragumike@gmail.com |
6c030f10dc6d73917ca0d74c424bffaec54b4b55 | 2b4ce69dfe4413d18c4f9b0617b6db36301e1956 | /app/mails.py | e3ea2be0c82b2cd8157781fe1a1937d912e960a3 | [] | no_license | javier-lopez/microblogging | d174f77f33a4d4210c2c4bc29500f853edd3d234 | 44db29ee805430754c4f9a575e8f907700d9d6e6 | refs/heads/master | 2021-05-03T21:20:20.599559 | 2018-02-06T00:55:53 | 2018-02-06T00:55:53 | 120,381,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | from flask import render_template
from flask_mail import Message
from app import app, mail
from app.decorators import async
@async
def send_async_email(app, msg):
with app.app_context():
mail.send(msg)
def send_email(subject, recipients, text_body, html_body):
msg = Message(subject, recipients=recipie... | [
"m@javier.io"
] | m@javier.io |
d8dfc7b0e48d899fa32241c8637c415ba586122d | 8caad7ace7ed931ed9cb961446c316a91ed37bcd | /file_preprocessing/file_preprocessing.py | d8fa362a70c9f5c2c095d1a6da075f6a08872be2 | [] | no_license | loginov-ra/HypernymyDetection | fe7d3060d757e9cd161c7824e11398f8aa3fcf0f | a0ca7bbf9bcb85140b7239ce250d01594ce7cc51 | refs/heads/master | 2021-04-02T19:16:32.379894 | 2020-05-07T08:03:36 | 2020-05-07T08:03:36 | 248,311,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,853 | py | import sys
sys.path.append("../")
import numpy as np
from deeppavlov import build_model, configs
from nltk import WordPunctTokenizer, MWETokenizer
from os import listdir
from os.path import join
from tqdm import tqdm_notebook as tqdm
import json
from thesaurus_parsing.thesaurus_parser import ThesaurusParser
from synta... | [
"logipamar@yandex.ru"
] | logipamar@yandex.ru |
fe8cff7611be6dd877bfc2f4eca09f5e38aecfcc | 78bbaf083b39cb72a35e23a4517a40a899f05ba0 | /cfn_lint/rules/assume_role_templates/has_condition_key.py | 49394bbb60daec7a874dace01d0941ae0ebc3b66 | [
"MIT-0"
] | permissive | esabitova/aws-digito-artifacts-gameday | c2babc284e68a00eca71d168a6a30bfdf293111c | 9aff43cc0551066ca78af06ad879556bcf04c5c6 | refs/heads/master | 2023-08-25T19:06:28.191717 | 2021-09-30T17:54:16 | 2021-09-30T17:54:16 | 406,305,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,171 | py | from cfnlint.rules import CloudFormationLintRule
from cfnlint.rules import RuleMatch
class HasConditionKey(CloudFormationLintRule):
""" Validate only one IAM Policy resource """
id = 'E9006'
shortdesc = 'Validate condition key for IAM actions'
description = 'Validate condition key for IAM actions'
... | [
"shrur@amazon.com"
] | shrur@amazon.com |
a10c7688c74553d976618af7cd0042decef6371c | e9b1f750b7b156566918089bbb0b2c9adcb75da1 | /Delete-list-elements.py | 15843969730807b708211555ecd89aef50f9d259 | [] | no_license | Jacobrodrigues/Introduction-to-python | df478002fce0d14ba44f9d9c6bd3659c274ac12f | 755fbe4198432365659317b63a849f0d81b62806 | refs/heads/main | 2023-03-31T19:10:58.667663 | 2021-04-07T02:34:47 | 2021-04-07T02:34:47 | 355,304,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | # Exercise Extend a list
''' Finally, you can also remove elements from your list. You can do this with the del statement:
x = ["a","b","c","d"]
del(x[1])
Pay attention here: as soon as you remove an element from a list, the indexes of the elements that come after the deleted element all cha... | [
"noreply@github.com"
] | noreply@github.com |
c7320cb197f0ac79fbfa8158270cba5ea0450a39 | 96d0d5d986f91b43f06d271429e8e9a326f11c3c | /GS/gaemsungapp/apps.py | 350217ae9ad2ead6f190d06af60adf7e87465edc | [] | no_license | kimsunkyung/gaemsung_server | 868a3cfb7ae076c4f218d6af4326b212a6ccbc7d | ca47197b6aceca0b923ddc0fb1a12f53c0122af0 | refs/heads/master | 2020-04-27T01:33:58.300776 | 2019-11-06T05:01:26 | 2019-11-06T05:01:26 | 173,969,395 | 0 | 0 | null | 2019-11-06T04:57:17 | 2019-03-05T15:12:32 | Python | UTF-8 | Python | false | false | 97 | py | from django.apps import AppConfig
class GaemsungappConfig(AppConfig):
name = 'gaemsungapp'
| [
"skk095@naver.com"
] | skk095@naver.com |
b88928350dfe6e3feb9d514a50d69480a1a84562 | cac712a21d8a56dafff2790870f3aabcfaf1679b | /test/test_device_capabilities.py | 355386f341b59b59caa689f5179af5bcd45a533f | [] | no_license | dunaev-dmitry/wlan-cloud-ucentralgw-openapi-python | ed68b5675718cb372cfb8786ad510216896d23bf | 04cffece1844e6f41ce2e2879537f53e508f85f6 | refs/heads/main | 2023-06-04T00:09:10.889079 | 2021-06-28T11:19:40 | 2021-06-28T11:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | """
uCentral gateway API
A process to manage configuration for devices. # noqa: E501
The version of the OpenAPI document: 0.0.8
Contact: ucentralsupport@arilia.com
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import openapi_client
from openapi_client.model.device... | [
"dmitry@opsfleet.com"
] | dmitry@opsfleet.com |
c185e28d4429e05ba8e955433fb14493a142433d | 792764c382d955f81debfb0f46d50b61c7726f82 | /unlocode/models.py | bfac48fc6e555c4c7a28dace2772750c960719da | [
"BSD-3-Clause"
] | permissive | chadgates/locmaster | ec4cf894838e6eea0919d01d14f5077b74508cae | 2a607341d3444996e24b048bfb5245174aedd45d | refs/heads/master | 2021-01-10T13:34:27.878869 | 2016-03-11T15:36:44 | 2016-03-11T15:36:44 | 50,512,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,293 | py | #from django.db import models
from django.contrib.gis.db import models
from django.core.urlresolvers import reverse
class TimeStampedModel(models.Model):
# Abstract base class model that provides self-updating created and modified fields
created = models.DateTimeField(auto_now_add=True)
modified = models.... | [
"wl@wassilios-lytrass-macbook-pro.local"
] | wl@wassilios-lytrass-macbook-pro.local |
22eb5b98e6832c8891007ba5ac1221910ff617f5 | 615edd170e047ddde944768c8e31e7163e9458cb | /models/network.py | cb0a298e518749dba62eadcda8269365b0905294 | [] | no_license | gnydick/orch | fa03471cb8d40088354a8877f492500e0283e75e | 8db830a52d2bba52302c84d9637e6db775b8d40c | refs/heads/master | 2022-03-06T05:16:38.483245 | 2019-11-26T01:04:01 | 2019-11-26T01:04:01 | 224,071,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | from sqlalchemy import *
from sqlalchemy.orm import relationship
from db import db
from sqlalchemy.dialects.postgresql.base import CIDR
import ipaddress as ip
class Network(db.Model):
__tablename__ = "network"
def __init__(self, **entries):
self.__dict__.update(entries)
id = Column(String, pri... | [
"gabe.nydick@automationanywhere.com"
] | gabe.nydick@automationanywhere.com |
e8197abbf04c8a1cfbab8b528f0670a222120aa9 | f002543b7f5b2c4b5361e7c7e5a7cb1db9be6d5e | /Messenger Application/MessengerServer.py | 0db0066efcf4bee6085ba8e029077a1f5b623478 | [] | no_license | NWilburn/Programming-Projects | 9705e5659e8d70e2234b5eafa16f8029fff56edd | f8193ef53f52fb8e44492bb61c01c6a591826b17 | refs/heads/main | 2023-08-12T08:51:00.834278 | 2021-09-28T16:34:44 | 2021-09-28T16:34:44 | 333,816,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,864 | py | import socket, os, pickle, threading
def message_handler(conn_socket, server_directory):
while True:
service = conn_socket.recv(1024).decode("utf-8")
if service.split("~~~")[0]=="send":
send_message(service, server_directory, conn_socket)
elif service.split("~~~")[0]=="... | [
"noreply@github.com"
] | noreply@github.com |
f2449d6e2e69fd27df778179a11afa5dca07369c | c38d2af82b2f35185412c079a166802292cde7fb | /boston-linear-regression.py | 3f8d3e430211277803ab7d2e16358d6e8f2f1649 | [
"MIT"
] | permissive | gniriki/ml-examples-from-blog | 9ed7a717f159e410b0995b13469f563a5bd3af7f | 2cc3e3b3bf45678b906f69c096e3d454b6be346a | refs/heads/master | 2020-03-17T17:44:34.908434 | 2018-05-17T15:47:13 | 2018-05-17T15:47:13 | 133,800,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | import sklearn.datasets as ds
import sklearn.model_selection as md
from sklearn.preprocessing import PolynomialFeatures
data = ds.load_boston();
data.data = PolynomialFeatures(degree=3).fit_transform(data.data)
X_train, X_test, y_train, y_test = md.train_test_split(
data.data, data.target, random_state=1)
from... | [
"gniriki@gmail.com"
] | gniriki@gmail.com |
79fb26341111220560faf3f0d2273ac9b63fb1ef | 1abfddf1c22def93a4dda8e2b37703cb4c38b831 | /test_frequency.py | 2ea7c1baaa442bf54c91d767da8efadf72a943af | [
"MIT"
] | permissive | chenqiguo/EECS395_PHS_dataAnalysis | eff29bfa2171a86b88b8245f86f833cf9d5b9867 | d3340ee8becf922e7afb1e9e785dbc6baba2e023 | refs/heads/master | 2020-04-07T18:48:42.203134 | 2018-11-22T01:19:56 | 2018-11-22T01:19:56 | 158,624,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | import csv
from timeDomain import timeDomain
from frequencyDomain import frequencyDomain
from DFA import dfa
from DFA import scalingExponent
from multiScaleEntropy import sampEn
#freqDomainFeats = frequencyDomain(rr)
#print(freqDomainFeats) | [
"noreply@github.com"
] | noreply@github.com |
5d62a797b4a3f519b43018eabad118569b972104 | b68f42f31a7590fc8115accf86a100e8b816b613 | /twitteruser/models.py | 3fc7a4a68cbd8ff2ea54da80a130fae7090b1cad | [] | no_license | Triston-Reeves/twitter | 4698502acb2f6a596262c76279e6f074759bb26e | 8b119d12094abb3ae9ca088f4d154ce2825a25c8 | refs/heads/master | 2022-12-13T12:06:38.667442 | 2020-09-04T18:01:44 | 2020-09-04T18:01:44 | 291,734,251 | 0 | 0 | null | 2020-09-08T15:57:39 | 2020-08-31T14:15:05 | Python | UTF-8 | Python | false | false | 223 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
class Twitter_user(AbstractUser):
follow = models.ManyToManyField("self", symmetrical=False)
def __str__(self):
return self.title
| [
"triston.reeves123@gmail.com"
] | triston.reeves123@gmail.com |
9e3ec0c9a8d48eea40b2b512233c9968d2799756 | 2ef87c0a5ea5f85fafdc28c917c2ed8c9fa1a407 | /test_collections/test_sort_and_search_list.py | f72ca0ca32beb744971058152fad117faaaece34 | [] | no_license | KLKln/Module7 | be5b014a0e948ca667900f1a4b42c5d00ab3abda | cc70596a88d758a25fa5eba45618dd98690852a1 | refs/heads/master | 2022-11-14T09:32:44.430696 | 2020-06-25T04:52:47 | 2020-06-25T04:52:47 | 273,605,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | import unittest
from unittest import mock
from unittest.mock import patch
from fun_with_collections import sort_and_search_list
user_list = [21, 31, 56, 78, 22, 4, 13, 42, 9]
class MyTestCase(unittest.TestCase):
def test_for_item_found(self):
with mock.patch('builtins.input', return_value="your number is... | [
"kmklein2@dmacc.edu"
] | kmklein2@dmacc.edu |
06f5f8d19ab54f5341d7aad56959427e5ab155c8 | 5a2c6681fcec8b1bfd6b302bc9b70d7686919a83 | /crontol/get_father_node.py | 56d5a3d483a055bcd5ccd608c7ed743071d5eec3 | [] | no_license | lingyunGH/shareCup | 48731b0164f7ae148ae3b488a713e7b57bee5ad4 | a481fb0916b935d6b065976f30fdc3c3a3f0eeb9 | refs/heads/master | 2021-01-19T12:15:31.095097 | 2017-03-10T12:51:06 | 2017-03-10T12:51:06 | 84,455,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | from mysql_model.mysql_model import Mysql
def get_father_node(query_father_node_sql):
mysql = Mysql()
found_res = mysql.find_data(query_father_node_sql)
# print(found_res)
# print(type(found_res))
# for item in found_res:
# print(item)
# print(type(item))
return found_res
if ... | [
"lingyunligl@gmail.com"
] | lingyunligl@gmail.com |
22fa6485d0a1af9f14e3e0e5565398513f2e2f5b | 638e02285ae60287bf32f562480756ae14836727 | /pytracer/integrator/surface/__init__.py | 95ae4b4273e4b6abc5efca23b5226bbd136316ba | [
"MIT"
] | permissive | zjiayao/pyTracer | c85c90d9320c910ccb1ca590df61555260f10d5d | c2b4ef299ecbdca1c519059488f7cd2438943ee4 | refs/heads/stable | 2023-07-27T09:13:45.455266 | 2020-05-04T05:44:29 | 2020-05-04T05:44:29 | 98,175,937 | 11 | 3 | MIT | 2023-07-06T21:15:54 | 2017-07-24T09:54:12 | Python | UTF-8 | Python | false | false | 481 | py | """
__init__.py
pytracer.integrator.surface package
Model surface integrators.
Created by Jiayao on Aug 9, 2017
"""
from __future__ import absolute_import
from pytracer.integrator.surface.surface import *
from pytracer.integrator.surface.direct import *
from pytracer.integrator.surface.whitted import *
from pytracer... | [
"zjohnson@connect.hku.hk"
] | zjohnson@connect.hku.hk |
88f954cd4c147c22b62406dd9e1848a41d7bfac9 | 675d1ad3ebb58d6bf177430568bb35a7319ce30b | /plotters/limits.py | 0eab4cdcf3c08d0721d27c24e9679c39f23d5596 | [] | no_license | kdlong/InitialStateAnalysis | 30a0382098014087982059908c2f74ccaff0c3d9 | 2a1f7275de6bcbcf53127ad2e949b20d2443e8bc | refs/heads/master | 2021-01-18T07:02:12.114624 | 2015-04-14T16:27:52 | 2015-04-14T16:27:52 | 30,890,597 | 0 | 0 | null | 2015-02-16T22:02:24 | 2015-02-16T22:02:23 | Python | UTF-8 | Python | false | false | 4,461 | py | '''
Class for plotting limits.
'''
import sys
import os
import errno
import numpy as np
import CMS_lumi, tdrstyle
from plotUtils import _3L_MASSES, _4L_MASSES, python_mkdir
sys.argv.append('-b')
import ROOT
sys.argv.pop()
ROOT.PyConfig.IgnoreCommandLineOptions = True
ROOT.gROOT.SetBatch(ROOT.kTRUE)
ROOT.gROOT.Proces... | [
"dntaylor@wisc.edu"
] | dntaylor@wisc.edu |
e573054d1029eb28a97feff41564064cbc94882e | b7f787608fd86ab9c4a4999db60b38be230742c9 | /protons/examples/calibrator_eval.py | a338ac661db642d20bff873e3bbc73490d916582 | [] | no_license | bas-rustenburg/constph-openmm | cb8511e53b71a596ee1916f4f52806af7e8b629f | 9e7cdbee66fd1ff6d2a5b6d64a326fce7ac2c228 | refs/heads/master | 2020-05-23T08:12:23.085602 | 2016-10-07T20:02:11 | 2016-10-07T20:02:11 | 69,598,785 | 0 | 0 | null | 2016-09-29T19:04:10 | 2016-09-29T19:04:10 | null | UTF-8 | Python | false | false | 1,393 | py | """Script to run the calibrator"""
from __future__ import print_function
from simtk import unit, openmm
from protons.calibration import CalibrationSystem
import logging
from protons import log
import numpy as np
log.setLevel(logging.INFO)
settings = dict()
settings["temperature"] = 300.0 * unit.kelvin
settings["times... | [
"bas.rustenburg@choderalab.org"
] | bas.rustenburg@choderalab.org |
15a2434b66ee9280cc1ad76e3c8ecbc1481abf0a | d08adfbc89d6c0faf400e4e6c21b8695595d82ea | /poisson-equation/main.py | 50db3c042c23e5eefad47fe62d26d8d31a932e06 | [] | no_license | sigorilla/computational-mathematics | c0c9973dbd4a004dab55e0b2f1c38c4f6f147589 | cb09773cbd2891455ce3a2da9f6c36ff50447d83 | refs/heads/master | 2021-01-21T00:47:34.902753 | 2015-05-15T11:37:38 | 2015-05-15T11:37:38 | 35,668,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,297 | py | from math import sqrt, fabs, ceil
import matplotlib.pyplot as plt
from matplotlib.ticker import MaxNLocator
import numpy as np
class PoissonEquation(object):
def __init__(self, step=0.1):
try:
self.step = float(step)
except Exception:
self.step = 0.1
self.eps = sel... | [
"sigorilla@gmail.com"
] | sigorilla@gmail.com |
cc512cae1ec2130c5d1c5eb1bbe7e7587dd83d92 | 853640f0000951c54075d7fc06eb8dd142baf488 | /Staff/JConley/Personal Tools/Scripts/ik_pv.py | 7f56f73a41dd1a22cf1c622e3ac05a1716f4ee46 | [] | no_license | creuter23/fs-tech-artist | fe666a61d7356bea45a23a27f9345733f696a2bc | ce3da679e3726baec7840156d6c6f6867b427383 | refs/heads/master | 2021-01-10T13:15:50.382194 | 2012-06-24T01:33:52 | 2012-06-24T01:33:52 | 45,221,516 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | """Ik Pv Plane Creation"""
"""
Author: Jennifer Conley
Date Modified: 9/10/11
Description: A script used to quickly create a plane for the correct placement
of ik pv icons from a joint chain selection.
How to run:
import ik_pv
reload (ik_pv)
"""
import maya.cmds as cmds
cmds.select(hierarchy=True)
sel = cmds.ls... | [
"mclavan@mclavan.local"
] | mclavan@mclavan.local |
7f431a3637a2068db014ea1a84f48931ba082857 | ed466ade400e68a66d74c7c413f2c598dfd2f5dd | /venv/Scripts/pip3-script.py | 772db26e8e8a99d8f6a6215dacb5701392aa908e | [] | no_license | yinghuan123456/kanfan | dfae84bf80df45528aaefc587e753080510bc082 | 76a60bb6d4268fad521074befb71032baa4e0808 | refs/heads/master | 2020-04-08T10:29:38.801093 | 2018-11-27T04:04:40 | 2018-11-27T04:04:40 | 159,271,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | #!G:\private\workspace\orugurin\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys... | [
"zhangyihao@yinghuan.com"
] | zhangyihao@yinghuan.com |
4cfb8d223ea9deac4dd277447dafc8b16e2134f6 | 6be7e704293126b781d9498eebabed776b416495 | /LicenseAnalysis/Customization/apps.py | 14cba8e31f941fd25610957edd5b3ca7153794a5 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | 13269252368/LicenseAnalysis | d6de83c27b216ed90f049d54fc719a39ee3d2c53 | c34e02378e294d4ac0e27ee06b2dc47687e281e0 | refs/heads/master | 2022-03-30T09:11:42.556625 | 2019-03-23T03:36:55 | 2019-03-23T03:36:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from django.apps import AppConfig
class CustomizationConfig(AppConfig):
name = 'Customization'
| [
"15051857858@qq.com"
] | 15051857858@qq.com |
02ac5f346a3f7422e35b736eb4df85708aa1c568 | 9850884cbb050d6e915e2fba25e8d3a114c21e8b | /server.py | e5ce10ecab4fffce7ffde857fc5a481b855a4aab | [] | no_license | Guyac001/background-generator | 412764fec6fa371a62650b24b4f944ca6b6edead | ed88e7cf05059b8034f5f9b7fa488b9b2481fb6a | refs/heads/main | 2023-04-07T16:58:06.398901 | 2021-04-20T12:02:06 | 2021-04-20T12:02:06 | 359,282,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,048 | py | #258. Building A Flask Server server.py
import os, csv
from flask import Flask, render_template, url_for, request, redirect
app = Flask(__name__)
@app.route('/')
def index_page():
return render_template('index4.html')
@app.route('/<string:page_name>')
def html_page(page_name):
return render_template(page_nam... | [
"guya_c@hotmail.com"
] | guya_c@hotmail.com |
2375f031e40a31c4eadc37b25c1a2e45e111c9bd | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj9-10_104054.47+112023.7/sdB_sdssj9-10_104054.47+112023.7_coadd.py | 4de1d11e6ffb1bc19dfcb19efea75a26b321efa2 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[160.226958,11.339917], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_sdssj9-10_104054.47+112023.7/sdB_sdssj9-10_104054.47+112023.7_movie_count.fits", cntcoaddfile="/data2/fleming/... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
92b76b752470a55ba7f78afbcc494adf7e7776a9 | 06b35d2a4c7903df9d2ea63c5e8893ba4cabeb33 | /youtube/settings.py | 53430f6438f874c77e5cf8f5256e823d76160027 | [] | no_license | vaishnavi-kulasekaran/frontend-task | 4f83c9160771ee6be874a2c942779d6a2224a49d | 1af77e52db107f554ee03e6138ed9e0d87b2a535 | refs/heads/main | 2023-03-23T17:47:59.213483 | 2021-03-24T16:39:12 | 2021-03-24T16:39:12 | 351,075,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,513 | py | """
Django settings for youtube project.
Generated by 'django-admin startproject' using Django 3.0.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
im... | [
"noreply@github.com"
] | noreply@github.com |
1248feae2aeeac044030a11966289d685ee439a5 | 88d4b59b30fd56e7103bd11435850bd1ba7d77d8 | /tasks/admin.py | 1b28ea6d29905a97a529959dcba917b6ef379934 | [] | no_license | Esther-Ogundipe/To-Do-Django-App | 4673bee71ba54ea1121dc2f89dcbffada082c845 | 3cd0f0cc69efbc7b00fcb25f801ad11db673ed27 | refs/heads/main | 2023-01-12T19:01:59.082567 | 2020-10-15T19:11:49 | 2020-10-15T19:11:49 | 304,424,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from django.contrib import admin
# Register your models here.
from .models import *
admin.site.register(Tasks)
| [
"mac@Esthers-MacBook-Pro.local"
] | mac@Esthers-MacBook-Pro.local |
e8bdca4538396f78b4584ef36014193d5ac8f739 | 94b3acf5dd4c9b75f6514c902b0a7a988cc6173f | /python2/sugon/Log_server/Log/lib/sam_common.py | 3818c0a4dae9752ce51864a8b23d4bce37ad5030 | [] | no_license | SamtechTianjin/python_projects | 96b007c22d6ef394bbcb33dc9fd194c680afb4c8 | 8774593e7322865f81e17ef58c3b9985a21360a0 | refs/heads/master | 2020-03-28T11:46:05.593352 | 2019-01-03T09:12:54 | 2019-01-03T09:12:54 | 148,245,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,197 | py | # -*- coding:utf-8 -*-
import re
import time
import datetime
import paramiko
import commands
def get_currnet_time(timestamp_format="%Y-%m-%d %H:%M:%S"):
# return time.strftime(timestamp_format, time.localtime())
return datetime.datetime.now().strftime(timestamp_format)
def get_time_interval(start, end, time... | [
"43158803+SamtechTianjin@users.noreply.github.com"
] | 43158803+SamtechTianjin@users.noreply.github.com |
c0c28a81cd864c47e81a5589f67dc159c3c4086b | 151dc9e2f00b202a5085189ac5e5df06eed1b77a | /bot/migrations/0002_food_ingredients.py | 6a59f2980a0f2a0dc788dbb431c459bb5c62c5f5 | [] | no_license | ochui/foodbot | 074d818308ee72c895857641333a71aebe6f36c0 | c4dcda9a94a270ca26a58383d3719ed312b06907 | refs/heads/master | 2023-08-25T10:06:22.793546 | 2021-11-02T23:22:03 | 2021-11-02T23:22:03 | 420,014,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Generated by Django 3.2.8 on 2021-10-22 09:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bot', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='food',
name='ingredients',
fiel... | [
"ochuiprincewill411@gmail.com"
] | ochuiprincewill411@gmail.com |
19b97e4a35978cd3dc86e762ddfb9c218ecbfced | 1c1be208a34ce7315d35ca3026d0256b5b2bee62 | /budjet/asgi.py | de31c3e9f4388b553ae67e22e3c468610fb3893b | [] | no_license | Jaice561/budjet | 1e7531c97b4fb4257e9a071dfb3fbda4234c6dc5 | bbed76f2ebec247c810cf834b04717dd0447ea21 | refs/heads/master | 2022-11-27T01:24:36.499827 | 2020-07-31T19:39:31 | 2020-07-31T19:39:31 | 278,495,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
ASGI config for budjet project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"Jameson_exil@yahoo.com"
] | Jameson_exil@yahoo.com |
b20cca2f789ab300cd9b934c10c63f35a53cfddb | af1dd15d144ad2d92890f6f881b420bfcc16b4b6 | /MachineLearningPractice/NN_number_recongnition.py | fa67838a090a4cc06f9f3741ea34c275cac785c8 | [] | no_license | bikongyouran/python_practice | 6cbc29609eacf7808f6a7fe1dca2245c5a4e14e5 | 85a79b726b20dd3b8b158435f507f6fceecc8e60 | refs/heads/master | 2021-01-19T02:59:52.207955 | 2017-09-18T11:59:28 | 2017-09-18T11:59:28 | 55,496,319 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | import numpy as np
from sklearn.datasets import load_digits
from sklearn.metrics import confusion_matrix, classification_report
from sklearn.preprocessing import LabelBinarizer
from NeuralNetwork import NeuralNetwork
from sklearn.cross_validation import train_test_split
digits = load_digits()
X = digits.data
y = digi... | [
"jasonlin16@gmail.com"
] | jasonlin16@gmail.com |
dcd89bcefe84e12972b0e3a8ca90b10f408cf5ff | eb8c4c9378fa3a74fe63d705aadcc66f64447a87 | /l10n_ar_retentions_basic/tests/test_account_payment_order.py | 72967a4a43f01d5602db290ba130ceda85c5083d | [] | no_license | eynes/l10n-argentina | 347f5cbbd79ef50a7f9a1df32c02d4a5137bd56b | 64bb51cb7ba32d77bae31fd98b6fcb8169182217 | refs/heads/12.0 | 2023-02-18T18:37:28.480589 | 2022-12-23T14:53:07 | 2022-12-23T14:53:07 | 67,529,928 | 2 | 19 | null | 2023-02-16T13:20:22 | 2016-09-06T17:13:28 | Python | UTF-8 | Python | false | false | 3,825 | py | import random
import string
class TestRetentionTaxLine:
def name_generator(self):
chars = string.ascii_uppercase + string.digits
return ''.join(random.choice(chars) for _ in range(6))
def _create_retention(self, env, tax_id, type, name=False,
type_tax_use=False, sta... | [
"ignaciogoiteac@gmail.com"
] | ignaciogoiteac@gmail.com |
822d8811b069aed67ce8cd1f23bbf59c6c4a9c45 | 0b25dc3f9b4ef736e739aadddec33b96dd65a0c8 | /huawei/21.py | 7302d8adf92d83dba6e7130102b2a602b4176164 | [] | no_license | ttp55/LearnPy | b123f44a74e4364771491c572705742c15eb33ff | 1530e158bde152e5c585f496dd1e5ffcffdb73bc | refs/heads/master | 2023-05-11T13:02:30.157285 | 2023-05-08T07:13:57 | 2023-05-08T07:13:57 | 196,953,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | # @Time : 2022/2/8 13:58
# @Author : WZG
# --coding:utf-8--
l = [1,2,3,4,5,5]
print(l[3:]+l[:3])
s = input()
while '{}' in s or '()' in s or '[]' in s:
s = s.replace('{}', '')
s = s.replace('[]', '')
s = s.replace('()', '')
print(not s)
| [
"1047697347@qq.com"
] | 1047697347@qq.com |
9c6789b6fac89f19c77ceca260c7686109f6b4ae | 05f01624b826952ddd26ae7c5b484842b87806ef | /INSTALL/twitter/generate.py | d69ec054e6b26a501f525a62653cc1dd8bc76ccb | [
"Apache-2.0"
] | permissive | Yikez978/rpot | 3f369b4a24f423b3bcf094c5e3925dc22aff900e | 8d370f042fc331e866677f77b9338a9ac1bbdd0e | refs/heads/master | 2021-09-01T15:42:01.132860 | 2017-12-27T19:10:04 | 2017-12-27T19:10:04 | 115,581,752 | 1 | 0 | null | 2017-12-28T03:38:48 | 2017-12-28T03:38:48 | null | UTF-8 | Python | false | false | 2,131 | py | from tweepy import *
import sys
if len(sys.argv) != 7:
print('%s <consumer_key> <consumer_secret> <oauth_token> <oauth_token_secret> <owner_screen_name> <list_name>' % sys.argv[0])
sys.exit(1)
consumer_key = sys.argv[1]
consumer_secret = sys.argv[2]
oauth_token = sys.argv[3]
oauth_token_secret = sys.argv[4]
... | [
"super.alice.002@gmail.com"
] | super.alice.002@gmail.com |
e9f37c3156efeb43bebdbf7855a383a24a824225 | 12f664c15956f35804f95b0731f1a6f3e2f50973 | /venv/bin/rst2man.py | cae7d6d54aaff2ba366594d7002646f62d0a746a | [] | no_license | gojeboy/test-package | e8b70a0bed52d7c2d4be6fb59d7ca0c54bb623ae | fb59e9a3cf81c6e46021046603d1401913b70162 | refs/heads/master | 2022-04-25T16:57:48.265583 | 2020-05-05T06:29:14 | 2020-05-05T06:29:14 | 261,378,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | #!/Users/njabulonsibande/code/python/test-package/venv/bin/python3.7
# Author:
# Contact: grubert@users.sf.net
# Copyright: This module has been placed in the public domain.
"""
man.py
======
This module provides a simple command line interface that uses the
man page writer to output from ReStructuredText source.
""... | [
"njabsoul@gmail.com"
] | njabsoul@gmail.com |
aea0b3b8d2b31773e38f6af83fe9186f463d5ac1 | 3ba3a0e970644fb9a8f55bf47900fcc8bd940c71 | /euler071.py | aac88ffdf57532a80251c4bb92903a1d9d4a79d9 | [] | no_license | jacekkubacki/projectEulerInPython | be6f3e9cf814a5513d682685fc28a816aa0b3890 | a372e2f48507f3741b504eea892de49d7d630c85 | refs/heads/master | 2021-01-17T13:08:20.648105 | 2020-07-19T20:25:11 | 2020-07-19T20:25:11 | 22,376,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,238 | py | #!/usr/bin/env python3
# Ordered fractions
# Problem 71
#
# Consider the fraction, n/d, where n and d are positive integers.
# If n<d and HCF(n,d)=1, it is called a reduced proper fraction.
#
# If we list the set of reduced proper fractions for d <= 8 in ascending order of size, we get:
#
# 1/8, 1/7, 1/6, 1/5, 1/4, 2/... | [
"jacekkubacki@users.noreply.github.com"
] | jacekkubacki@users.noreply.github.com |
0b7dabeb92c54e7be6261bffe7fb7ca7b2cb7082 | 3866a3653614e1ed65103fb154ce9dfe8a8e89e2 | /backendTest/backendTest/wsgi.py | 1527eae55337403b6f96274c915e810abb8161f5 | [] | no_license | danperfectboss/backend-test-cornershop | 6c1138a432da008b715ff20ad6208305486fb924 | afdeaa168e5dd6ed60e1b8f3e82f75a34d434875 | refs/heads/master | 2023-04-15T07:07:53.505832 | 2021-04-28T07:48:28 | 2021-04-28T07:48:28 | 361,611,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for backendTest project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"dapeme.boss@gmail.com"
] | dapeme.boss@gmail.com |
d3be52308fcd477a6f03f949b5520f23c26a4df5 | bf6d0c1403bc98b1a46dea3087197e7dd385e13b | /portabilidade/urls.py | 75aa7b6d5743731af72143a088386debc6e35750 | [] | no_license | eluizbr/portabilidade | 2abbf238d92e4f1b7a59b0fea75390e7e0133003 | 9ecefde18d9f9255a5df823cd4728136d84eaeec | refs/heads/master | 2021-01-19T10:12:22.898732 | 2015-08-08T14:51:42 | 2015-08-08T14:51:42 | 30,382,565 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,421 | py | """portabilidade URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cla... | [
"eluizbr@gmail.com"
] | eluizbr@gmail.com |
58301abc8978ec270e7071e0d3cad4c520da1427 | 4fd7fa2c4dca3994e9b68699ef9f4f1a2c67f682 | /sfa/util/sfatime.py | 743566739aaf530dcad2f6c477a5d693e1574040 | [] | no_license | loicbaron/myslicelib | 29923500297c1bdeb852029e5f3d1775781b4206 | 1dac8f03bde80891ed7c89438892a6444fce7bb4 | refs/heads/master | 2021-01-01T19:41:26.584195 | 2017-07-25T15:36:27 | 2017-07-25T15:36:27 | 98,651,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,495 | py | #----------------------------------------------------------------------
# Copyright (c) 2008 Board of Trustees, Princeton University
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and/or hardware specification (the "Work") to
# deal in the Work without restriction, i... | [
"quan.zhou@lip6.fr"
] | quan.zhou@lip6.fr |
5ef239b0126778ed8d7aeba3dc594138312d9df0 | 9f66941e73cad0c215601339512b8dd6729792da | /Show_Program_exe/predictModelUI/tensorflow/_api/v2/profiler/experimental/client/__init__.py | 6c373c04418802ba602b7d8a351fd76131351e7e | [] | no_license | NgaAdrain/TEAM_Enter_Text_Here | eb0e02c13959b90eecc0c69d2b24adb23a50150a | a7217438284360e06c93d37092dca1afcecb735a | refs/heads/master | 2023-07-20T11:42:50.353497 | 2021-05-28T08:30:53 | 2021-05-28T08:30:53 | 267,983,495 | 2 | 0 | null | 2023-07-06T22:00:36 | 2020-05-30T00:50:59 | Python | UTF-8 | Python | false | false | 419 | py | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Public API for tf.profiler.experimental.client namespace.
"""
from __future__ import print_function as _print_function
import sys as _sys
from tensorflow.python.profiler.profiler_clien... | [
"adrainnga@gmail.com"
] | adrainnga@gmail.com |
cc827a59a8376d853d13dc82c896378c171fca75 | d2deead5da9b4999eb8cee6235b43c897f468212 | /Week2/helloworld/helloworld/urls.py | 66b21bef9a31d85d169b6a5d7aa68503314edfbf | [] | no_license | mkeshilbaev/BFDjango | 39f829d6362f4acbd502f98198facf482f1fd392 | caa34eb8e456e20cacadaa5b4e20949fa32ff529 | refs/heads/master | 2023-05-02T22:39:25.023549 | 2020-04-25T14:16:22 | 2020-04-25T14:16:22 | 233,826,635 | 0 | 0 | null | 2023-04-21T20:48:01 | 2020-01-14T11:30:49 | Python | UTF-8 | Python | false | false | 802 | py | """helloworld 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-ba... | [
"m.keshilbaev@gmail.com"
] | m.keshilbaev@gmail.com |
b92042ce3f508fcbda40ab22e5c02ce9914c0b71 | 5e1a068ca2d6c38815a64f64b628ead1c2186e1b | /tele/env/lib/python3.8/site-packages/youtubesearchpython/__future__/internal/extras.py | ea1bd9adb455580010d7066d948f5f90f7798e3a | [] | no_license | kalyevb/beka | cb28d7fdf725a8f097c854e63fa71fe95084372d | ba32e2d698fdb5767e53136209ebd7d72e44e3a6 | refs/heads/master | 2023-04-17T14:03:38.944303 | 2021-05-03T18:13:11 | 2021-05-03T18:13:11 | 364,019,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,429 | py | from typing import Union, List
import json
import httpx
from youtubesearchpython.__future__.internal.constants import *
class VideoInternal:
videoId = None
videoComponent = None
def __init__(self, videoLink: str, componentMode: str):
self.videoLink = videoLink
self.componentMode = compone... | [
"kalyevbb@mail.com"
] | kalyevbb@mail.com |
f772f9f94521ad3e2773b9d9256426907462804b | c0502da3bc40e1ee49637beaf16239697e4b2c04 | /study_28-09_rw_files/venv/bin/pip3 | 585ef23694cd201ed5b2a72aab0d6e06f605ce11 | [] | no_license | lgcavalheiro/python_studies | f963bb428c1337ba42b29caa9e9a42d8bc90642b | 697c92e50043bf4495261aaa6bbb2580909bdd35 | refs/heads/master | 2020-07-31T19:28:57.205426 | 2020-03-01T01:49:44 | 2020-03-01T01:49:44 | 210,499,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | #!/home/user/PycharmProjects/python_studies/study_28-09_rw_files/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$... | [
"lg.cavalheiro@hotmail.com"
] | lg.cavalheiro@hotmail.com | |
beb04ce89791c370b3c3978bb033b8788a64d143 | 2d6730ddf90d64151dbfdda59c7d9ca906e9bccd | /backend/backend/settings.py | 91b9510561be9c4144ad6db2e20926d35ec4cfa8 | [] | no_license | ShengZhuangRocks/issueTracker | ed893e3e51669c23dd6b650518918e40c8a19ca9 | 48e5fa9e1947167cb33cc8791e780ed7ec642472 | refs/heads/master | 2022-03-22T01:01:14.891905 | 2019-12-05T23:31:54 | 2019-12-05T23:31:54 | 221,866,710 | 0 | 0 | null | 2022-02-10T12:37:21 | 2019-11-15T07:18:18 | JavaScript | UTF-8 | Python | false | false | 3,288 | py | """
Django settings for backend project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
#... | [
"shengzh9@gmail.com"
] | shengzh9@gmail.com |
1091c4b620571053f1140af4a53b06cd43371d4d | 560a0f9586fd5fc27c69a86a4b277fd3cfb17085 | /providers/a4kScrapers/en/torrent/btdb.py | 5752a5505277038429cf649ba692400912dcf426 | [
"MIT"
] | permissive | Cwoo0/a4kScrapers | b1ffe31bd9915c7381f9c4ed7d4a866c4c681ccd | 054a12b42838ccb7afcc6076b1eb61b51d734edb | refs/heads/master | 2020-12-10T12:30:56.794047 | 2019-12-20T06:40:56 | 2019-12-20T06:40:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | # -*- coding: utf-8 -*-
from providerModules.a4kScrapers import core
class sources(core.DefaultSources):
def __init__(self, *args, **kwargs):
super(sources, self).__init__(__name__, *args, **kwargs)
def _parse_seeds(self, row):
return core.safe_list_get(core.re.findall(r'style="color:green;">... | [
"47229722+newt-sc@users.noreply.github.com"
] | 47229722+newt-sc@users.noreply.github.com |
4bd54ecbde6b0eaaf45daf43276451087144bb63 | d82647b47d9720d46eff488b9e27582fbec14680 | /SWENGS_HW1/yamod/migrations/0001_initial.py | 5687274360831bc26b52478e331ad096e92d52a7 | [] | no_license | regulaja17/SWENGS_HW1 | 033487fa538907439075b69db0a5eb366dd97b07 | 0310ee7808e091d3e7505c43f7a6de3124786939 | refs/heads/master | 2022-11-15T14:13:09.653919 | 2019-11-05T16:49:34 | 2019-11-05T16:49:34 | 218,337,326 | 0 | 1 | null | 2022-10-30T12:21:51 | 2019-10-29T16:49:41 | Python | UTF-8 | Python | false | false | 739 | py | # Generated by Django 2.2.6 on 2019-10-29 17:11
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
('id', models.AutoField(... | [
"janik.regula@edu.fh-joanneum.at"
] | janik.regula@edu.fh-joanneum.at |
04ba26d95374cc9f8beb1e7b9eb48e8d9e9fd7cc | ce2a6330c807591f95210bdda005f875a76b98a8 | /model_lab/ml_models/titanic/scripts/train.py | 22de07daecff46eabb25b6cef569ac1b056d0c75 | [] | no_license | MartinThoma/model-lab | c1ca8d0950086cd4e332862d6a3b7a7ae7f10a2f | 3525cdd5271a1b7940f801d4245343b1592ffa67 | refs/heads/master | 2020-04-11T18:43:54.537892 | 2018-12-31T20:14:40 | 2018-12-31T20:17:02 | 162,009,569 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,893 | py | """Train a model for Titanic."""
import re
import math
import pickle
# 3rd party modules
import numpy as np
import pandas as pd
from sklearn.ensemble import ExtraTreesRegressor
def main():
"""Load, train, serialize, test."""
data = load_data()
analyze_features(data['full_features'])
model = train(da... | [
"info@martin-thoma.de"
] | info@martin-thoma.de |
74f3b2489f6ac67fde39384a5026e25b9b842c2f | f1c6dcb0f1bcd841a555886f8e7e43f360fecf43 | /arkstock/diversify/helper.py | 271f9a55acecfd1d20277b428571a2b8c7a89e3a | [
"MIT"
] | permissive | abhinavrk/arkstock | c12149d05eeab59760bf58b2c48ffcf4bbaedaff | 6cdda28c8534ec71ca3f19702b37764ad1256aa3 | refs/heads/master | 2021-01-17T18:43:37.908597 | 2016-12-11T01:46:16 | 2016-12-11T01:46:16 | 64,716,628 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,127 | py | '''
This module provides helper functions that extract information from stocks and diversify a portfolio
'''
from sklearn.decomposition import RandomizedPCA as PCA
from collections import namedtuple
from typing import List, Dict
import numpy as np
_ndarray = np.ndarray
'''type alias for improved code clarity'''
_neste... | [
"gkabhi2@gmail.com"
] | gkabhi2@gmail.com |
c25cff56589a1e1f2c62d2087dfec64c2a01db6a | f450d2c0b2428a36c70242fca2ccc6a29ccf62e4 | /2014/SecuInside/cry200/solve.py | 09f8542217aa2f6c845f8cd7361a357383a37184 | [
"MIT"
] | permissive | ShySec/CTFs | ac8184e41d094ec6a0e0f09d7f94dc4cc4b3b39c | 047ef09e765575301076a91aaabd6860fbedbee7 | refs/heads/master | 2016-09-06T14:10:50.013124 | 2014-12-16T02:24:52 | 2014-12-16T02:24:52 | 18,819,768 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,424 | py | import time
import socket
import struct
import sys
import binascii
from PKI import PKI, PubKey, PrivKey
import pillow_reader
g_guestkey = '\xe1\xe7\xac\xa9\x19\x63\x0c\xf0'
l = 901924255379731264845598773404614424050302179361201900551370492885404232269980949480552626564987145191771090315436870704972059963780906410481... | [
"github@shysecurity.com"
] | github@shysecurity.com |
e831e010f58a199ff2318babbd6c2b81b050c012 | 8f2199375c2860c42239de359e7f27ac0111c2ab | /Numbers/pi.py | 898d41b6838c44932607f11d87d3ec1b6ebe6887 | [
"MIT"
] | permissive | arushs/Projects | a8c37f0adda56866a83e3c39397fb4eb998d125b | cd1a9be6d6689215ab9846792b958d3779f791c2 | refs/heads/master | 2016-09-05T12:19:59.658844 | 2014-05-15T06:44:43 | 2014-05-15T06:44:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | import math
digit = raw_input('What digit to go to?')
digit = int(digit)
if digit < 40:
print(float(round(math.pi, digit)))
else:
print("Sorry, digit is too large")
| [
"arushshankar@gmail.com"
] | arushshankar@gmail.com |
cab5ec73309abc6f8c1a012ccccd0e4dc50f50b4 | 91f4078045a57eaaafe0b172909d7041e829941c | /arjuna-samples/arjex/test/pkg/gns_adv/check_gnsadv_07_waiters_default_wait.py | 21418e6c64e6736cfe53b4ca0f3d66b1a111ea50 | [
"Apache-2.0"
] | permissive | amiablea2/arjuna | 0d06d1dfb34309f4b6f39b17298f7acb6c3c48c9 | af74e0882216881ceca0a10f26442165ffc43287 | refs/heads/master | 2023-08-21T20:04:30.416303 | 2021-10-27T06:41:40 | 2021-10-27T06:41:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | # This file is a part of Arjuna
# Copyright 2015-2021 Rahul Verma
# Website: www.RahulVerma.net
# 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... | [
"rahulverma81@gmail.com"
] | rahulverma81@gmail.com |
047d255cb913eb1fc1bcac608765d94e5a1a7538 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17s_1_02/ipv6/route/link_local_static_route_nh/__init__.py | f409793989d66c90174629d2778ac54c0f5f5de6 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,384 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
2654ed68c4c589ef4e77b524ae3738acb71499ac | b9876c8fd27d56351fd0b861503fc861ae086236 | /resource_rc.py | e4221d30a8cb362f2770522e8a3c789a4f359dcb | [] | no_license | zmarsarc/jk_native | 7cdc7299756e896735aaca6e8a9cb628d4aa807a | 65d08168e893cd16a6512618112cad8c3f852fec | refs/heads/master | 2023-03-25T14:50:13.885114 | 2021-03-19T07:49:25 | 2021-03-19T07:49:25 | 344,725,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,951 | py | # Resource object code (Python 3)
# Created by: object code
# Created by: The Resource Compiler for Qt version 6.0.2
# WARNING! All changes made in this file will be lost!
from PySide6 import QtCore
qt_resource_data = b"\
\x00\x00\x01\x10\
\x89\
PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\
\x00\x00$\x00\x00\x00$\x08\... | [
"zeng.yu.1993@gmail.com"
] | zeng.yu.1993@gmail.com |
a46f5b9eedcb1195e2fc993c39f96762d17c98b0 | bad67fafaa475e8dc7035e8a21e80e77cd90f43a | /manage.py | 3282f2314889e472c8fea59e71c5d8aa2c01f038 | [] | no_license | Aitmatow/Djago_girlst_test | 66c4a59f00b2ef95bee905c99d9d15d85bee1878 | a436e1b561dc8d0e8d7e4a88053ead74301c8aaa | refs/heads/master | 2022-09-19T12:08:37.493160 | 2020-06-03T05:39:40 | 2020-06-03T05:39:40 | 268,985,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Pycharm.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Import... | [
"aitmarowd@gmail.com"
] | aitmarowd@gmail.com |
1659e77a9f834c52289989c0d18398077d405e47 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/308/usersdata/290/72816/submittedfiles/ex1.py | 9d833bfe06bccfb760241d32e0c22608bc1e9950 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | # -*- coding: utf-8 -*-
from __future__ import division
a = input('Digite a: ')
b = input('Digite b: ')
c = input('Digite c: ')
#COMECE A PARTIR DAQUI!
D=((b**2)-(4*a*c))
print(a) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
2690394c577796e63ca8242a797e503b406ccb1a | a665936ae4c630ae9ef4c8b106aef1d0dcb3309b | /pro57.py | d63d9a4c653a8a0a3d28728a19a171d8b6b580fc | [] | no_license | Hemavarsheni/codekata | bbbd54e0282c0a5724ef58f6abd215cb57fe0cd8 | 577c8347991784d1b9b1b4364045cde3257ee9db | refs/heads/master | 2020-06-13T23:50:44.237011 | 2019-08-16T12:11:29 | 2019-08-16T12:11:29 | 194,827,236 | 0 | 10 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | #Hemavarsheni
a,b=map(str,input().split())
lista=[]
listb=[]
for i in range(len(a)-1):
s=""
for j in range(i,i+2):
s=s+a[j]
lista.append(s)
for i in range(len(b)-1):
s=""
for j in range(i,i+2):
s=s+b[j]
listb.append(s)
for i in lista:
if i in listb:
print("yes")
... | [
"noreply@github.com"
] | noreply@github.com |
469233826fa76271f9d1c92d61ca030c6ebe3463 | ac191a3e973b0d66baa559fdd27af5e0012fe67b | /shipyard/utils.py | eab1698afc173b87779a9d3d0ce8a92c8445ae1d | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | monokrome/shipyard | fb2ab707643e52c3acfd20dfaf4d269a8b5dc195 | 3a37105466e4ac30b260a6b40a467e0412b4fc13 | refs/heads/master | 2022-01-17T23:31:26.186270 | 2013-10-23T06:29:21 | 2013-10-23T06:29:21 | 13,798,136 | 1 | 0 | null | 2022-01-06T22:53:10 | 2013-10-23T09:02:08 | Python | UTF-8 | Python | false | false | 2,347 | py | # Copyright 2013 Evan Hazlett and contributors.
#
# 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 agree... | [
"ejhazlett@gmail.com"
] | ejhazlett@gmail.com |
a1add44754eec4db72df64bfc3f294a01ec01a29 | e78433e847c5a5ff1ed583303c0240b0a93dc06a | /0x01-python-if_else_loops_functions/6-print_comb3.py | 2682ef8c4fae7eef14ca880d7b9148e40c1481e8 | [] | no_license | david-develop/holbertonschool-higher_level_programming | 75eaef38173361cc4ef9202f3e3f6c5a781239ed | 90f62136a7ddfb7d3921daccdc38d50a5376343b | refs/heads/master | 2020-07-22T23:27:35.494155 | 2020-03-26T17:34:36 | 2020-03-26T17:34:36 | 207,366,767 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | #!/usr/bin/python3
for num1 in range(0, 8):
for num2 in range(num1 + 1, 10):
print("{}{}".format(num1, num2), end=', ')
print("{}{}".format(num1 + 1, num2))
| [
"924@holbertonschool.com"
] | 924@holbertonschool.com |
9977d9b6d203d5561a3ff5869f62ce88026286be | 3c519a4879f6477d8dc13eeaab53bd2f591b25e5 | /3 Семестр/Компьютерная графика/EscapeFromLabyrinth/maps/4.py | a2e59ec7e5fc6412547f322acb017327b3a51bf2 | [] | no_license | Nellrun/VyatSU | 6a43e5a8de3e4a8bdfa9fe28da604246c654fc98 | 566529f9161298728197bccf1ce8a43a2c9eb7e8 | refs/heads/master | 2021-01-24T10:17:18.686655 | 2018-04-16T06:36:12 | 2018-04-16T06:36:12 | 69,678,763 | 3 | 1 | null | null | null | null | WINDOWS-1251 | Python | false | false | 499 | py | # Код python имеет блочную модель, т. е.
# Тело цикла имеет свой блок, тело функции свой и тд
# Блоки разделяются отступами
# Напрмер:
# for i in range(13):
# self.moveRight()
# self.moveUp()
# self.moveRight() выполнится в теле цикла, а
# self.moveUp() уже после цикла.
# Попробуйте при помощи цикла до... | [
"daniil.shchesnyak@gmail.com"
] | daniil.shchesnyak@gmail.com |
58ddb52efa9da6ef02550ed095e3baaea5d1b3d0 | f3cc5be06299f1f218bdb7681fd2675df33f06f8 | /queries/winrm_execution.py | 79855356869583e17850ba870324194c421fc3fc | [] | no_license | willylong275/log-ioc | e199a282cb53eaca81b4f5263c02be66349330f2 | fdd12f261f52a6e35e8ff44be150763adacc3d81 | refs/heads/master | 2020-06-23T15:49:07.468749 | 2017-11-08T03:24:07 | 2017-11-08T03:24:07 | 96,907,288 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | #!/usr/bin/env python
def main(df_hits, lock):
from logIoc import logIoc
import os
lio = logIoc()
query='winrm_execution'
print "executing windows powershell execution query"
lock.acquire()
lio.update_last_timestamp(query, df_hits.iloc[(len(df_hits)-1)]['@timestamp'])
#lio.update_last_timestamp('windows_account... | [
"wlong0313@gmail.com"
] | wlong0313@gmail.com |
d5fb8399a682459c5d9a9e2bc11259421834d0f7 | ae21ff4de2297893f9b2595e6bed52b5163c4819 | /__init__.py | 171bad4bc140f989562cb98948b046c34029d806 | [] | no_license | nielsruelens/webdust_product | 1db132d10b2ab025595f4a8d2fb2d37d55ddf7d0 | 05381ea841e3a55bd017675e10419d6b50ea11a0 | refs/heads/master | 2021-01-22T03:12:59.369621 | 2015-01-27T06:49:19 | 2015-01-27T06:49:19 | 17,409,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | import product
import property
import image
import supplierinfo
import wizard | [
"niels.ruelens@clubit.be"
] | niels.ruelens@clubit.be |
f3351eb253a2a7548073c80ee398e233e55ad1dc | a6916f004d2e5d71276ae4f64bbe118d08301a99 | /XES/staticXESSpectra_main.py | ae3969fe322f8a1465cd431c9014fcf71c3f3cf6 | [] | no_license | cliekhus/LCLS2015 | 154247a65ca9a72885f443ad6ccb30639c806bd6 | 584c804ede885f73fbf92d0e31ad96914edd8be4 | refs/heads/master | 2021-12-26T17:39:43.301205 | 2021-09-01T19:52:52 | 2021-09-01T19:52:52 | 204,533,468 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,457 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 7 11:03:44 2019
@author: chelsea
"""
import numpy as np
from loadData import loadData
import os
import pickle
import ProcessedDataClass as PDC
import matplotlib.pyplot as plt
from MakeRawBoot import MakeRawBootXES
import time
import datetime
folder = "D://LCLS_Data/LCL... | [
"chelsea738@gmail.com"
] | chelsea738@gmail.com |
d0853f8cb4f8c42a8eee4953747c003189c352be | d9228197cdf092e15eedcfbf267af9c1540b5f83 | /classes.py | f9f14b2ada31451a088646ce33be135621b5a059 | [] | no_license | sanyatkach/1repository | 1b5dd316e85d674b3b12cf7054fc5df5e3d9c6d3 | 2fb5268037ae34547d26d19c6b2b62723b6c23e2 | refs/heads/master | 2021-07-11T11:59:30.341307 | 2020-03-16T12:37:49 | 2020-03-16T12:37:49 | 242,331,553 | 0 | 0 | null | 2021-03-20T02:58:29 | 2020-02-22T11:42:18 | Python | UTF-8 | Python | false | false | 1,081 | py | import random
import itertools
class Card:
def __init__(self, rank, suit):
self.rank = rank
self.suit = suit
def __str__(self):
return f'{self.suit} of {self.rank}'
class Deck:
def __init__(self):
self.cards = []
ranks = (2, 3, 4, 5, 6, 7, 8, 9, 10, 'J', 'Q', 'K... | [
"sanya767670@gmail.com"
] | sanya767670@gmail.com |
220acf2053b36953db69197b5b7cd45c5040bc57 | 48b9d828acf80792bc4385febaa734a2e96ad465 | /test-openmps/Examples/05_Fermions_LongRange.py | fd886085ce8c20f16a78e8dadbd894ef399ac75e | [
"MIT"
] | permissive | OminiaVincit/qphase-trans | dd4ab2e0cacc449ead3bef318a65eb05aed45621 | 40e0c078dcd74282e8d8f44690433bf670bff8cb | refs/heads/master | 2023-05-06T12:14:30.368375 | 2021-05-28T05:11:58 | 2021-05-28T05:11:58 | 235,478,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,316 | py | import MPSPyLib as mps
import numpy as np
import sys
import os.path
def main(PostProcess=False):
"""
Introductory example for openMPS to simulate a fermionic system with
long-range interactions. Two modes are available when running the
example from command line:
* ``python LongRangeTunneling.py --... | [
"k09tranhoan@gmail.com"
] | k09tranhoan@gmail.com |
f401995a7e9c5bdf3ff929b82ee7c85fe056ff79 | 92cae28d7ac300cf3bd250a7452f128e90cc80d9 | /test/unit/m3d/hadoop/algorithm/test_algorithm_fixed_length_string_extractor.py | 1d9e1952d02d8d12dc4b3945893935bed03bab01 | [
"Apache-2.0"
] | permissive | sbakiu/m3d-api | 92faed271329e6962564ea9a0beb0cfd5e32ed9e | 82522fbc6ba303fe099c86d4709b708dfadd48d7 | refs/heads/master | 2020-08-02T11:46:30.434072 | 2019-09-27T10:52:25 | 2019-09-27T10:52:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,245 | py | import pytest
from mock import patch
from m3d.exceptions.m3d_exceptions import M3DIllegalArgumentException
from m3d.hadoop.algorithm.algorithm_configuration_hadoop import AlgorithmConfigurationHadoop
from m3d.hadoop.algorithm.algorithm_fixed_length_string_extractor import AlgorithmFixedLengthStringExtractor
from m3d.h... | [
"bernhard.mueller@adidas.com"
] | bernhard.mueller@adidas.com |
bf44fa6faca572aaf434cd4e3aebb67fab7f9eca | 472226be9c4422e7d84aab95330b20513ab61277 | /deepobs/tensorflow/testproblems/mnist_logreg.py | f8b9125d437de46a01114438768e0616c182d1c2 | [
"MIT"
] | permissive | fsschneider/DeepOBS | a601a6dd2548107e7e1fbae7d8b5357c79bf17d6 | b41aafe8896223ba8dc8e61449656e82d42be1d8 | refs/heads/master | 2023-04-14T15:52:07.937617 | 2022-01-31T12:26:36 | 2022-01-31T12:26:36 | 150,460,781 | 105 | 34 | MIT | 2023-03-24T22:45:25 | 2018-09-26T16:58:47 | Python | UTF-8 | Python | false | false | 2,726 | py | # -*- coding: utf-8 -*-
"""Multinomial logistic regression on MNIST."""
import tensorflow as tf
from ._logreg import _logreg
from ..datasets.mnist import mnist
from .testproblem import TestProblem
class mnist_logreg(TestProblem):
"""DeepOBS test problem class for multinomial logistic regression on MNIST.
No ... | [
"frank.stefan.schneider@gmail.com"
] | frank.stefan.schneider@gmail.com |
031df58d82f852a76e48a56f5ff5e7c67e2740f1 | 348acc624966eeda7ce79594292ee91f6423c9c6 | /scrapy-env/demo_project/demo_project/spiders/goodread.py | 7d016d39a4833f05ecb9d9afe6aefcc6b76ca0e8 | [] | no_license | verifitim/scrapy-demo | 37f3d079f941bede88c1ce7b84c89543a33d8e3e | 56c807729195490594d1af47926027943248ec92 | refs/heads/master | 2020-07-04T08:11:24.654593 | 2019-08-13T20:17:57 | 2019-08-13T20:17:57 | 202,217,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | import scrapy
class GoodReadsSpider(scrapy.Spider):
#identity
name = 'goodreads'
#requests
def start_requests(self):
urls = [
'https://www.goodreads.com/quotes?page=1',
'https://www.goodreads.com/quotes?page=2',
'https://www.goodreads.com/quotes?page=3',
... | [
"verifitim@gmail.com"
] | verifitim@gmail.com |
5581c0cdeff7f381b60d22f9b283aeee08211312 | a6b559f9c9fa15b47d39ee0d156ddac6b3e562a3 | /aula20.py | dc1446d63c4095b5ff46a570798ae8235917db34 | [] | no_license | Pauloa90/Python | c06daae3ef63539084fd5ae35c13354ccd6bd39c | 3f349792734730190c2f9b3a301093359f76a36f | refs/heads/master | 2020-12-29T17:09:57.579006 | 2020-02-17T15:48:24 | 2020-02-17T15:48:24 | 238,679,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | frase = "Curso em VIdeo Python"
print(frase[9:21:2])
print(frase[15:])
print(frase[9::3])
print(len(frase))
print(frase.count('o', 0, 13))
print(frase.find('deo'))
print(frase.find('ola'))
print('Curso' in frase)
print(frase.replace('Python', 'Andoide'))
#frase.upper
print(frase.upper())
print(frase.lower())
... | [
"paulo.a90@hotmail.com"
] | paulo.a90@hotmail.com |
8683417d4c29b225e242d6807ac29aea02815bd6 | 7ed9b4eb16cc76a8e8b5f17c3d0a1adb6db99eb6 | /todos/tests.py | cddf7288e2d46f980a305cfc56758adc297e952a | [] | no_license | ManuelAlejandrG/Django-App2 | 748b211abf0637e9a3bada06fbc265e21c2f551a | 7a86722cb63065f80c0090e22db5d73fce43b3e9 | refs/heads/master | 2020-12-19T23:55:03.050076 | 2020-01-23T22:43:34 | 2020-01-23T22:43:34 | 235,890,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | from django.test import TestCase
# Create your tests here.
from .models import Todo
class TodoModelTest(TestCase):
@classmethod
def setUpTestData(cls):
Todo.objects.create(title="Jugar", description='jugar una vez a la semana')
def test_title_label(self):
title = Todo.objects.get(id=1)
field_label = titl... | [
"manuelgoyo10@gmail.com"
] | manuelgoyo10@gmail.com |
2f3c49a04db5b832cc20257ba168a07f5eb6ccc2 | 51e21b5430dc5615f5743451359af3cde75da91b | /pittgrub/notifier.py | 2d29d0ae050fb629ffc5a3b854bdc2dbe0a1b331 | [
"MIT"
] | permissive | admtlab/PittGrubServer | 705c7fd89a141ea50c99522c7abbba257c22e1eb | 25f6c0f119576338a33cd9b42aa39e6fb4802fec | refs/heads/master | 2022-08-12T19:54:58.267582 | 2020-05-21T11:59:38 | 2020-05-21T11:59:38 | 90,174,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,241 | py | """
Send notifications to users
Author: Mark Silvis
"""
from typing import Any, Dict, Tuple, Union
from exponent_server_sdk import (
PushClient, PushMessage, PushServerError, PushResponseError,
)
class InvalidExpoToken(Exception):
def __init__(self):
self.message = "Invalid expo token"
super... | [
"marksilvis@pitt.edu"
] | marksilvis@pitt.edu |
49151e90add1e32edddc7c4b8da32a865c8b2e36 | c472c59b0c12f80bcdb92f2923f987aa2975d18e | /PdfEdit.py | 10c472844b0aaeabf2faebae572141c0b57468df | [] | no_license | heping101/pdfedit | f0faa5e4d7c290d7889e142d7d7ce80d2934ba64 | 2d33bfb334a68488a51094958d3918b5d21b9172 | refs/heads/master | 2022-01-22T22:29:28.828431 | 2019-06-13T13:35:08 | 2019-06-13T13:35:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,101 | py | # -*- coding: utf-8 -*-
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5.QtPrintSupport import QPrinter,QPrintDialog
import sys
import os
import os.path
import shutil
import fitz
import six
import win32api
import win32print
from Ui_MainWindow import Ui_MainWindow # 主... | [
"tzous@126.com"
] | tzous@126.com |
f730ff5bb0395da60902ab76911fb669ba9b8768 | 3471e7f40f3b465752bc5a08a726c6b6ebdf9124 | /python-libraries-assignment/ques5_random_array.py | a0f494c11e682764b01d68bc229f65f2a5ff89eb | [
"MIT"
] | permissive | Roshni-Sahoo/LeanIn-ML-Circle | 42bd185750dd3eec99bda02c5b834d0306d9125a | 65443306e7f57922dc8f6d805906e39d2da92aa2 | refs/heads/main | 2023-04-07T06:20:41.328714 | 2021-04-16T17:56:41 | 2021-04-16T17:56:41 | 336,463,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | import numpy as np
x=np.random.rand(10,4)
print(x)
y=x[:5,:]
print(y) | [
"roshni.sahoo19@gmail.com"
] | roshni.sahoo19@gmail.com |
64c1f70e329c85405d3ab1ac2f692dfbe8516499 | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/2/matrix_squaring_20200423020640.py | 59367a0a4ab8703f9cda9c70a66fc9fe3cec0b6e | [] | no_license | jearistiz/Statistical-Physics-Projects | 276a86407b32ded4e06b32efb2fadbd8eff8daed | d9c5b16a50856e148dc8604d92b6de3ea21fc552 | refs/heads/master | 2022-11-05T03:41:23.623050 | 2020-06-28T06:36:05 | 2020-06-28T06:36:05 | 254,909,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,579 | py | # -*- coding: utf-8 -*-
from __future__ import division
import os
import numpy as np
import matplotlib.pyplot as plt
from time import time
import pandas as pd
# Author: Juan Esteban Aristizabal-Zuluaga
# date: 20200414
def rho_free(x,xp,beta):
"""Uso: devuelve elemento de matriz dsnsidad para el caso de una p... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
2f2cd57dbef2ed47ee37071aaaf24f574a198924 | a17c0e08c2bb78e2a442b0edc80ac331b192b8fb | /Data Analysis and Modeling Techniques/q2a.py | bac4a9496ae4e1f86398095e21be2904a157da34 | [] | no_license | snehachitre/MS-Projects | 6bb914800dcb04aa8c868ef793d07065744a3887 | e36a78088b53ac4b20b519acd4c2cb0f7e8c7217 | refs/heads/master | 2021-01-01T04:23:23.666165 | 2017-07-13T23:52:45 | 2017-07-13T23:52:45 | 95,832,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py |
import random
def GenerateRandomNumber():
a=random.random() #store a uniformly generated number between 0.0 and 1.0 in a
x=46/((1-a)**(1/1.45))
print 'packet size is ', x
return x
if __name__=='__main__':
GenerateRandomNumber()
| [
"noreply@github.com"
] | noreply@github.com |
2dbcf6cd6a69ccfb2076b0a58ac6ee1bc93b5b58 | f1dcd88883bdcc242c7838cd0ca97f505db43629 | /app/objects/ball.py | ae668ed33aa33e8cfa54a4d4fac6fe026d78f4b2 | [] | no_license | asoffer/revert | a635262e2ebb3dcbd541db066c5fa8a6dc85d11e | 8623df49e9656b5823d577f143d64b39b6555f7f | refs/heads/master | 2016-09-05T09:55:41.413521 | 2012-07-10T21:59:50 | 2012-07-10T21:59:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from pandac.PandaModules import Point3
from ..lib.physical import Physical
from panda3d.ode import OdeSphereGeom, OdeMass
class Ball(Physical):
def __init__(self, world, loc = Point3()):
"""
the location is the bottom-left corner of the platform
"""
mass = OdeMass()
mass.se... | [
"andy@s231-225.resnet.ucla.edu"
] | andy@s231-225.resnet.ucla.edu |
8bf038aad9b9c12f38ac8e0060c8756339eb988a | fed141f1730db5afa9acbe0fb5c745ee93bd5a90 | /yablonya.py | be5aa0b4dcccfce29c5f90d69d4bf999b1f9eb7e | [] | no_license | BaneOfSlaves300/taskP | 13c0dbf41b311d889a4b7028b2a56dddd4bf54e0 | 7b1a7e856a859fbec05d24a75ff92d3e0570c462 | refs/heads/main | 2023-08-04T12:06:26.629696 | 2021-09-22T11:50:56 | 2021-09-22T11:50:56 | 407,632,726 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | n = int(input())
li = list(map(int, input().split()))
for i in range(len(li)):
li[i] -= 1
A = [0 for i in range(n)]
A[0] = 1
for i in range(n - 1):
A[i + 1] = A[li[i]] + 1
A.sort()
ans = 0
cur = 1
len = 0
for i in A:
if i == cur:
len += 1
else:
ans += le... | [
"noreply@github.com"
] | noreply@github.com |
00c9486b4f864e47050b452a39d72200ad35c57f | 53fcd2f29edc0b677498659bc6df8eae79404f52 | /test2.py | 9e4bf5152d049515f36c3cd644df77a1aab1fda7 | [
"MIT"
] | permissive | Esukhia/bospell-old | 3c96d43efd1fa2aac87448826f4c23a76f36ca4e | ae11cdeaeebe82ad7a56a8bcc440f615b57c07f6 | refs/heads/master | 2023-05-11T21:45:58.937660 | 2019-03-11T16:19:07 | 2019-03-11T16:19:07 | 126,886,943 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,649 | py | from bospell import SpellCheck, CheckFile
text = '''[བསྟོད་ཚོགས། ཀ 61b.6]{D001_བསྟོད།_ཀ_༠༠༠༧}༄༅།།ཆོས་ཀྱི་སྐུ་ལ་གནས་པའི་ཡོན་ཏན་ཐུན་མོང་མ་ཡིན་པ་ལ་བསྟོད་པ།#༄༅༅།།ཆོས་ཀྱི་སྐུ་ལ་གནས་པའི་ཡོན་ཏན་ཐུན་མོང་མ་ཡིན་པ་ལ་བསྟོད་པ། དེ་བཞིན་གཤེགས་པ་ཐམས་
[61b.7]ཅད་ལ་ཕྱག་འཚལ་ལོ། །སེམས་ཅན་རྣམས་ལ་ཐུགས་བརྩེ་བ། །ཕྲད་དང་བྲལ་བར་དགོངས་པ་ཅན། །མི་... | [
"hhdrupchen@gmail.com"
] | hhdrupchen@gmail.com |
21d731df849e297716c68f2ae4a7a7a0777d9eed | 2d9a3ce2a04190d0032e8a298829022260b1d76b | /indra/preassembler/refinement.py | 25da61e0baae4308ffbcc5076b86d3d1879d0344 | [
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | sorgerlab/indra | f127a0f9bdd2d3f48df14575883fd31e2f4de4bf | 6d6ca1174792b6c5a05cbf3afcb9f138fabcec6a | refs/heads/master | 2023-08-21T13:25:54.654995 | 2023-06-11T16:46:41 | 2023-06-11T16:46:41 | 22,848,436 | 158 | 61 | BSD-2-Clause | 2023-08-30T21:47:59 | 2014-08-11T17:44:05 | Python | UTF-8 | Python | false | false | 17,262 | py | """This module implements classes and functions that are used for
finding refinements between INDRA Statements as part of the
knowledge-assembly process. These are imported by the preassembler
module."""
__all__ = ['get_agent_key', 'get_relevant_keys', 'RefinementFilter',
'RefinementConfirmationFilter', 'Ont... | [
"ben.gyori@gmail.com"
] | ben.gyori@gmail.com |
cac67109814bf5ba931412ccdd408bb3fe7007b7 | 7b871438e5aba92f8a2184cb58ae839cd78da653 | /final_blog/tab_codee/tab_codee/settings.py | 046df1798e36a93af531f5cb048e1e7590994947 | [] | no_license | MohdTabish008/Tab_Coders_Community | 949d84eb90b60bf3d5590783aa799dbf06d001eb | 16f14ee3635ecb27514bab20e0f9f6b573d34456 | refs/heads/main | 2023-02-13T05:47:30.894689 | 2021-01-10T14:14:04 | 2021-01-10T14:14:04 | 327,924,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,360 | py | """
Django settings for tab_codee project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathl... | [
"tabishsid01@gmail.com"
] | tabishsid01@gmail.com |
d3bbf082b06c6084b0ced9d203a0938eb64e858b | 8c4dda85b853facaf400108c88366e598d8a6fc2 | /Regression Simple Linear/BetaCaclulation.py | 4e9d207d58829eed366226e85a45f178b691d480 | [
"Apache-2.0"
] | permissive | csitedexperts/DSML_MadeEasy | b78d911c775ffbfb19140fa8ee55e2cbf1f48eb5 | 9af03a00fb026930c19737790f603a0b0ae40b7e | refs/heads/master | 2020-08-29T02:42:16.351266 | 2019-10-27T18:50:23 | 2019-10-27T18:50:23 | 217,898,768 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py |
"""
"""
import numpy as np
X = [[180, 150], [150, 175], [170, 165]]
y = [[110], [140], [180]]
X_Transpose =np.transpose(X)
X_Transpose__X = np.matrix(X_Transpose)* np.matrix(X)
X_Transpose__X__Inv = np.linalg.inv(X_Transpose__X)
X_Transpose__X__Inv__X_Transpose = np.matrix(X_Transpose__X__Inv) * np.matrix(X_T... | [
"csitedexperts@gmail.com"
] | csitedexperts@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.