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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4cfe5c35d095a0387a818af195f0f973ece86fa5 | 54ccb160983bd7bd4c03d7ac77355cd7bf82f122 | /plotter/plotter.py | 2d3d0e8bc97d846842c277af062ade453d6611c7 | [] | no_license | diamondIPP/StripTelescopeHelperScripts | 7a0abb5822b5ff23ff5e2d13f95f2fff5bbedf17 | fe6f11fa24ec71c24e713016e3f8770a5be0157a | refs/heads/master | 2020-05-22T04:39:08.137796 | 2019-08-29T15:29:50 | 2019-08-29T15:29:50 | 50,036,509 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,799 | py | #! /usr/bin/python
import ROOT
import sys
import os
import ConfigParser
from rd42Style import rd42Style
import helper
import roundNumbers as rn
import numpy as np
class plotter(object) :
def __init__(self, config_file, path, output_path, run_no, position, histo_type, run_config_file = '', event_number = 0) :
self... | [
"lukas.baeni@phys.ethz.ch"
] | lukas.baeni@phys.ethz.ch |
c52b1414ece8cff5b085be89ddedd7f09bbaaaf3 | 0ef96229af99e8da388e949ac825c51251780ab3 | /myprojects-Python_3/myprojects-Python_2 to python_3/Tic-tac-toe.py | e3dfb1e2146d76a84e8cb05112a13cd773f047ca | [] | no_license | lyaqing/programs | 6608512e7b27356aceb3934616e89cbe631e4e03 | 985fc33b9f4c04779e7ab1f452315e588af46c8f | refs/heads/master | 2023-06-14T20:01:39.212214 | 2021-07-10T10:32:02 | 2021-07-10T10:32:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,949 | py |
def outputprint(l):
for index in range(9):
print(l[index], end=' ')
if ((index+1) % 3) == 0:
print('')
def changeinput1(l,step):
while True:
try:
change1 = int(input("Enter a proper place number to print 'X':"))
if (change1-1)in range(9) a... | [
"noreply@github.com"
] | noreply@github.com |
c12cfd531fc38b1abc19ed3a456f56321bd7e414 | 1c4d2dfb57664fa535a50e695ac341de328322ed | /Testing/scenario_runner-0.9.8 - Version 1.0/srunner/scenarios/control_loss.py | ba62f78323da2769bb0ccc470eeb80470b7a6678 | [
"MIT"
] | permissive | aditya3434/BTP-Project | 9383b72b5a7f09b0a1b060e9b364ab5a6fb21256 | db430a8bccf36b08c2bd1f525a3cb6d2a1d3f9ea | refs/heads/main | 2023-06-12T12:17:29.006291 | 2021-07-07T16:33:41 | 2021-07-07T16:33:41 | 383,858,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,510 | py | #!/usr/bin/env python
#
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
"""
Control Loss Vehicle scenario:
The scenario realizes that the vehicle looses control due to
bad road conditions, etc. and checks to see if the vehicle
regains control and c... | [
"aditya390402@gmail.com"
] | aditya390402@gmail.com |
b213d28d5f1daaa7f61f92523b61a7873a16b742 | e0b29443af681aff4d1e69cdff67bd006417b954 | /deepq/neural_nets.py | ab2d01d04ff9141cfc928cafd20d8a94de40d29f | [
"MIT"
] | permissive | antoinecollas/Deep_Q_learning | 1420c952c716d858e06e219f0761d1958a50d4f1 | 58686a3ba18d5965676a1281bbe5d72aca427055 | refs/heads/master | 2020-04-04T21:05:05.025827 | 2019-03-04T19:13:33 | 2019-03-04T19:13:33 | 156,272,818 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,817 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class CNN(nn.Module):
def __init__(self, agent_history_length, nb_actions):
super(CNN, self).__init__()
self.conv = nn.Sequential(
nn.Conv2d(in_channels=agent_history_length, out_channels=32, kernel_size=8, stride=4),
... | [
"antoine.collas@etu.utc.fr"
] | antoine.collas@etu.utc.fr |
5057e6765a041435496160341451e5b6b791f29c | ec343e7bdf18a8d109fef4c674eecbc1a93111e6 | /Chapter2/Programming Challenges/9. Celsius to Fahrenheit Temperature Converter.py | 99b311025fce9125f1c0325627dcd720c575d6d5 | [] | no_license | Tcrumy/Startin-Out-with-Python-2nd-Edition-by-Tony-Gaddis | 42c7218e4193529ded61e6c086456792c6e2470d | cb7b49ea844e25da7181856f33999ee536f8eb07 | refs/heads/master | 2021-06-19T12:42:16.615534 | 2021-01-05T17:49:54 | 2021-01-05T17:49:54 | 156,280,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | # Write a program that converts Celsius temperatures to Fahrenheit temperatures.
# The formula is as follows:
# F = 1.8C + 32
# The program should ask the user to enter a temperature in Celsius, and then
# display the temperature converted to Fahrenheit.
# Prompt user for temperature in celcius
temp_in_celcius ... | [
"noreply@github.com"
] | noreply@github.com |
4497ba8e6d57aa19bd863f6a8b0546d9e141497c | 8d93479e9972c40ddbe6393d0469c40a517256bb | /my_progs/range.py | f81c60774244d64bf2253fcda79e0eef87d14086 | [] | no_license | Lennysky/Python | 0fa055490dc93db9f01c3dc4cf6979d7a199d2d2 | f9458110a9c1226de6567d6f2af467d668638a56 | refs/heads/master | 2023-07-03T00:33:16.589874 | 2021-08-07T13:00:20 | 2021-08-07T13:00:20 | 393,684,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | for i in range (5):
print(i)
arr = ['Hi!', 'World', 'We', 'Are', 'Here!', 'Hello', 'Again!']
for j in range (len(arr)):
print(arr[j])
for k in range (10, 20):
print(k)
for t in range (-10, -5):
print(t)
for y in range (10, 50, 5):
print(y) | [
"e.ekhin@sslog.ru"
] | e.ekhin@sslog.ru |
8a28993f200f0563ff46c65a57a5c20ad4bde366 | e62be7fc0f0fb002bece24ceec0709b3965f3861 | /Flowers/Flowers/wsgi.py | 6fad13cc20960ca140695f37c78c9d4d4922b448 | [] | no_license | Darlyyuhui/java_python | 01bf1c4a098a48a19920b29764d59853fd2d4bbb | 2fe5806a06051bc4debc8d659bc3266022d00fdb | refs/heads/master | 2021-01-12T12:49:51.709140 | 2016-09-28T08:17:37 | 2016-09-28T08:17:37 | 68,999,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for Flowers project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"darlyyuhui@hotmail.com"
] | darlyyuhui@hotmail.com |
dc1085c731a4b4565c487da922840a4b6853e290 | 0ec1bf33c2685276f730f41343e179a6680b7bf5 | /iedcweb/web/migrations/0006_auto_20210510_1536.py | b9546cc0d1b6074f2d2a02a63a8ab78ab92325e0 | [] | no_license | Ajinkj/IEDC_Web | f244d53011c6e585291f8d335c7c62a0bb2625c7 | f7d5a92e0b117cdb43469c3e79d7e5ec6e11d238 | refs/heads/master | 2023-09-03T03:15:27.972248 | 2021-11-20T16:57:17 | 2021-11-20T16:57:17 | 430,157,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # Generated by Django 3.0.3 on 2021-05-10 10:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('web', '0005_auto_20210510_1527'),
]
operations = [
migrations.DeleteModel(
name='photos',
),
migrations.AlterFie... | [
"ajinkj532@gmail.com"
] | ajinkj532@gmail.com |
000216a08ead43652bcfd7d2b99dda3b995d9667 | d4d9adbcb3ac8520b93071284e2a77dd2d64ba63 | /markdown/files/cs1111_19fa/email_grabber.py | 55229e1e191876b3ac7514a9bcaafc8a82103586 | [] | no_license | natebrunelle/cs1110f18 | 2658acc79e3acfcd6f2900083cba89ad994d2da4 | dd92b8d748562a1560cca4592afd855c7667a8f0 | refs/heads/master | 2020-03-26T22:02:57.713242 | 2020-01-25T00:07:59 | 2020-01-25T00:07:59 | 145,427,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | import re
import urllib.request
url = "https://engineering.virginia.edu/departments/computer-science/faculty"
email_pattern = r"([a-z0-9]+)@[a-z\.]+\.(com|edu|org)"
req = urllib.request.urlopen(url)
text = req.read().decode("UTF-8")
regex = re.compile(email_pattern)
for i in regex.finditer(text):
print(i.group(0... | [
"pm8fc@virginia.edu"
] | pm8fc@virginia.edu |
568c5432138cee6f75df9c088a146d4db6745ac7 | 3c33ad3db1ba7cb076621ca0be4553f5f72903e4 | /utils/utils.py | 37f72aad804ad377dcdaf8e5e2f1851e18934a49 | [] | no_license | jamesdi1993/baxter-generative-model-moveit | af4961d672fa551e1e1f16dab1bc52861717b3d8 | c1aea898ca1c0320fc0f4a464b513c2ebdcbe62c | refs/heads/master | 2020-04-21T10:28:30.724615 | 2020-02-14T05:57:55 | 2020-02-14T05:57:55 | 169,487,386 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,226 | py | from moveit_msgs.msg import RobotState
from sensor_msgs.msg import JointState
from ompl import base as ob
import numpy as np
import time
JOINT_NAMES = ['_s0', '_s1', '_e0', '_e1', '_w0', '_w1', '_w2']
LIMB_NAMES = ['left', 'right']
JOINT_LIMITS = {
's0': (-1.7016, 1.7016),
's1': (-2.147, 1.047),
'e0': (-3... | [
"jamesyubai.di@gmail.com"
] | jamesyubai.di@gmail.com |
d87d2fd7a1df348093b2c383f2a073227f39de42 | 4e691a59c67915d5e2cc5a367137dfb02894f4cc | /main/migrations/0005_auto_20191118_1131.py | f8539f0214cc916cee8f0cc19c14e6206fb9725e | [] | no_license | antocaroca/clase-4 | fd7395e25debfa807fde2c5823b968747c5d9222 | b88b78b022102156ba01cd4804307fafd3c6966b | refs/heads/master | 2022-04-30T14:48:03.361465 | 2019-11-23T13:22:33 | 2019-11-23T13:22:33 | 223,596,303 | 0 | 0 | null | 2022-04-22T22:53:32 | 2019-11-23T13:51:00 | Python | UTF-8 | Python | false | false | 406 | py | # Generated by Django 2.2.7 on 2019-11-18 14:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0004_activemanager'),
]
operations = [
migrations.AlterField(
model_name='productag',
name='products',
... | [
"antonella.caroca@cci-entel.cl"
] | antonella.caroca@cci-entel.cl |
fbb5e3df1a6c2d927e0c0cf6770629217992981d | de55a84066235811e4309c62a86d1fa6bdf55965 | /Summarization-notebook.py | 7d7ef84fcdb3d90445c810221f7249f14c5ebe47 | [] | no_license | vasantivmahajan/DataWrangling_AnomalyDetection_Tableau_Visualization_EDGAR_Log_Data | f019d1d7481e5c814aef5d209ef1e3bbc69a3539 | 6f200fda19559bece2f4071910d01c3a74f44652 | refs/heads/data_cleaning | 2021-01-19T04:25:47.453889 | 2017-03-06T22:53:57 | 2017-03-06T22:53:57 | 83,180,787 | 0 | 1 | null | 2017-02-28T04:58:46 | 2017-02-26T03:44:50 | Jupyter Notebook | UTF-8 | Python | false | false | 4,321 | py |
# coding: utf-8
# In[4]:
#log20030401
import pandas as pd
combined_df = pd.read_csv("2003/2003.csv") # pass your 12 month combined csv here
# group by cik and date and get count of ciks for a date
temp_df=combined_df.groupby(['cik','date'])['cik'].count()
temp_df.head()
# In[5]:
# convert group by result in... | [
"Nehal Bhanushali"
] | Nehal Bhanushali |
198249df94fd2d1c5201ee7976a72ecf1c476d6e | d4b28b9739e3e579ce4054532d35b410ba10138f | /HelloWorldPublisher.py | 69f33a3ed527156d4c429085ec8f6b7c2492e197 | [] | no_license | smanurung/irc | f1fa7383d072cba2d9d6880db7fbd78a2ba3d409 | 8d9db0166f77be6b2678b513582d0a7e57c829d0 | refs/heads/master | 2021-05-30T02:23:12.340443 | 2013-10-10T00:04:21 | 2013-10-10T00:04:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | #!/usr/bin/env python
import pika #gunakan pika rabbitmq client
import logging #logging handler
#set logging level
logging.getLogger('pika').setLevel(logging.DEBUG)
connection = pika.BlockingConnection(pika.ConnectionParameters('localhost'))
channel = connection.channel()
channel.queue_declare(queue='hello')
chan... | [
"sonnythehottest@hotmail.com"
] | sonnythehottest@hotmail.com |
9ae7c9e2808db81080760bc6527f1700b89baa69 | 23b29b36d36d643589f67c5274c148d12d71714a | /2020/day-19/part-2.py | e7d569b3d4d21d9c4ec43e6cf08cf81a85689d96 | [] | no_license | esusalla/advent-of-code | e458f2340deb3b71c374696ea318ed3d42e1e70a | aea4ee12c33e95af6bb543d2daaaaaeae2c1b59e | refs/heads/main | 2023-03-21T21:02:04.848899 | 2021-03-17T16:11:23 | 2021-03-17T16:11:23 | 324,854,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,561 | py | # Day 19, Part 2: Monster Messages
import re
def parse_rule(rule, parsed_rules):
key = rule[0][:-1]
if key not in parsed_rules:
if rule[-1] == '"a"' or rule[-1] == '"b"':
parsed_rules[key] = rule[-1][1]
else:
parsed = []
for other in rule[1:]:
... | [
"esusalla@protonmail.com"
] | esusalla@protonmail.com |
8e4d18744240770d9da4204ef4dd563d7e1c11a8 | 57bb3adc41ef9b08b0f3ca57a88e469c0a10c8dc | /evgquest3/env/lib/python3.6/site-packages/sqlalchemy/pool/__init__.py | d2c6f5ab504555a8ba3efd2dfe5f7773439d5bea | [] | no_license | DW-dealings/dw | 8ab5f39000fa2dd7d8869e738c5b71360be1cf83 | 20f2f77817f5a95223b86ec5d7c482a0450a5749 | refs/heads/master | 2022-12-10T00:36:37.022513 | 2020-09-17T20:42:59 | 2020-09-17T20:42:59 | 294,950,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | # sqlalchemy/pool/app.py
# Copyright (C) 2005-2020 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Connection pooling for DB-API connections.
Provides a number of connecti... | [
"ainzquang@gmail.com"
] | ainzquang@gmail.com |
ae73e0dc89431270b219000625cc70deabd2742e | d87f94edcb806b6e9388ff6ccefb92927a8c3fee | /testgit.py | dfa1f28d39d9fd72baa2492c83b5b279dd8b189d | [] | no_license | whubug/test_ansible | aaf37d021452f0c76647f19ec4beffb64c456a89 | 9fcad7ec63cdfb78366a6fcc5b087d2ae07ef59b | refs/heads/master | 2021-01-24T10:38:12.110790 | 2018-02-27T02:11:24 | 2018-02-27T02:11:24 | 123,056,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | # first git
print ("test git!") | [
"peiyp2005@gmail.com"
] | peiyp2005@gmail.com |
0deacfd451d753f312ba6404016a2cb5ba02ec9c | 6b7d4456574d0f63e51b3890fd1b69804a17496c | /src/gitwatcher/urls.py | ea619b0f1657cfd392015107849510ac58f18751 | [] | no_license | kookmin-sw/2018-cap1-6 | c5eadd692a66a9080dcff6c369ff1d2de50c5506 | 95b73d6c40165adc1bfaf04e613b9db5db740a09 | refs/heads/master | 2021-01-24T11:37:27.270042 | 2018-05-31T11:58:43 | 2018-05-31T11:58:43 | 123,095,107 | 3 | 3 | null | 2018-05-31T11:58:46 | 2018-02-27T08:09:50 | Python | UTF-8 | Python | false | false | 430 | py | from . import views
from django.conf.urls import url
#서버에 요청이 들어오면 어떻게 처리할지
urlpatterns = [
url(r'^$', views.index),
url(r'^clonegit$',views.clonegit),
url(r'^clonegit/(?P<address>[\/\w_\.-]+)/result$', views.gitwatch1),
url(r'^storedData$',views.storedData),
url(r'^storedData/(?P<address>[\/\w_\.-]+)$',views.res... | [
"ryunhoo123@kookmin.ac.kr"
] | ryunhoo123@kookmin.ac.kr |
ee912e4cffffee0781c744461002eba138ced516 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj9-10_233719.19+062504.0/sdB_sdssj9-10_233719.19+062504.0_lc.py | 0f09a4e3130e72011e6fee900f36b7ea6ab8c394 | [] | 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 | 378 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[354.329958,6.417778], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_sdssj9-10_233719.19+062504.0/sdB_sdssj9-10_233719.19+062504.0_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
c2e5754077a9804d87bf5956c11b5cf5db7d553c | 4bb21e84e1de39a7b15ad000f47f10bd34a7f165 | /Modules_in_Python/randomgame.py | 6a84a29eedd30867775dece81bdd33467f11911a | [] | no_license | manishawsdevops/pythonmaster | a32d91e24b04250cd102b9acada367c385d12976 | e2459536f2ea091be8aba7c9307373802a04a332 | refs/heads/main | 2023-06-12T23:59:26.991154 | 2021-07-09T11:19:11 | 2021-07-09T11:19:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | from random import randint
import sys
answer = randint(int(sys.argv[1]), int(sys.argv[2]))
# print(answer)
while True:
try:
guess = int(input('Please enter a number from 1 - 10: '))
if 0 < guess < 11:
if int(guess) == answer:
print('Hey you are a genius')
... | [
"manishawsfreelancer@gmail.com"
] | manishawsfreelancer@gmail.com |
65ff0f5de4954990489f87411f9beba2d5cbd5c7 | b9ccd92a4a9cb56c75d6bb5cd79b330551b1b0f3 | /lib/models/external/build_dcn.py | 70b34c45fa01e64723defbfb40a0ed29c7a2b4ec | [
"MIT"
] | permissive | lloo099/CoDeNet | 61e7b9da00920df98da4a4456bcb504fc8867f42 | 5f5cb78859a691db532c8318a38c1b124adfb104 | refs/heads/main | 2023-03-21T10:44:36.506434 | 2021-03-17T10:49:40 | 2021-03-17T10:49:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
from subprocess import call
setup(
name='dcn_deform_conv',
ext_modules=[
CUDAExtension('dcn_deform_conv_cuda', [
'src/dcn_deform_conv_cuda.cpp',
'src/dcn_deform_conv_cuda_kernel.cu',... | [
"zhendong@berkeley.edu"
] | zhendong@berkeley.edu |
86550fb12d249da7e19769464f8dd19eee7951c5 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_sharpening.py | 511f6993ea47ed80907f9f44fb3fcbe24158ade6 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py |
#calss header
class _SHARPENING():
def __init__(self,):
self.name = "SHARPENING"
self.definitions = sharpen
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['sharpen']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
880d0dabd65d48c9ab7140cf7942a975a4dc87e3 | f5e7882e9fa8dca9b49d74819918063963eaf515 | /FILES/prob2.py | 09b48eba87e8bfcd175f537d161d9ee3a423e5a3 | [] | no_license | marri88/python-base | 66ede5e3da3bce92e2661fabf8a2119644dd5ab3 | 00002724412f4081ee6d1b91c22cb1ccb5ed92fe | refs/heads/master | 2023-06-09T16:13:08.921614 | 2021-07-02T09:16:38 | 2021-07-02T09:16:38 | 382,293,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # -week_2:Работа С файлами-
#####################################################################################
# first picture: prob №2
# Создайте файл users.txt.
# Напишите программу которая спрашивает у пользователя его Логин и Пароль и записывает в файл users.txt.
r = open('/home/aimira/python/python3/week2... | [
"aymira.narzhigitova@gmail.com"
] | aymira.narzhigitova@gmail.com |
50f43501c76b64f8b2b3c7919c41784bca9f49d9 | 0e741541a66e529150a121e117023e1c621ea204 | /cfs_converter/relay_setting_reader.py | 687fe742bb60d8cc17eca87653730b930172cbea | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kbiesiadecki141/roscfe | a16012f29b1b52917a796823a9f9522222dcc672 | f16c5966c0ade342d6fea8c20fe4d705ee0d9630 | refs/heads/master | 2022-12-22T03:24:59.016013 | 2020-09-28T18:53:45 | 2020-09-28T18:53:45 | 299,395,126 | 0 | 0 | Apache-2.0 | 2020-09-28T18:19:05 | 2020-09-28T18:19:04 | null | UTF-8 | Python | false | false | 3,929 | py | """
Copyright (c) 2020 Japan Aerospace Exploration Agency.
All Rights Reserved.
This file is covered by the LICENSE.txt in the root of this project.
"""
# import topic_manager
import xml.etree.ElementTree as ET
class CfeSetting:
"""Cfe setting."""
ip_addr = ""
port = 0
port_recv = 0
port_se... | [
"yuyuqq@gmail.com"
] | yuyuqq@gmail.com |
a2fabace65fb5492360d68cd93f837d60e67e292 | 032c9e40f0df2bc85386ffc2f60dadc8e3d5c731 | /code/q6.py | 8cc01c8b801dec5598ff046398db560ca2f62c47 | [] | no_license | Bagotia16/IIT-Bombay-student-data-analysis | 418bf7670896f2666952c84caf08ecfbd07bc2b1 | 1a970f45a7528b2a541b379c00c7cd93e70ed825 | refs/heads/master | 2023-01-11T16:14:47.568591 | 2020-11-11T20:36:06 | 2020-11-11T20:36:06 | 268,134,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | import pandas as pd
import numpy as np
import matplotlib as mpl
# mpl.style.use('ggplot')
from matplotlib import pyplot
import matplotlib.pyplot as plt
import csv
df = pd.read_csv("Graduate Admissions.csv")
df = df[['GRE Score', 'TOEFL Score', 'SOP', 'LOR ', 'CGPA', 'Chance of Admit ']]
df = df.loc[df['Chance of Adm... | [
"noreply@github.com"
] | noreply@github.com |
38b3cfd6f2bac9bca72f1b1a81f348801111e789 | 00cb405170a6a9572bef0ec8f373813eada08c03 | /Game Structure/geometry/version5/mypainter.py | ce5e1b632d327bbb6cd9614946dd573bfe5136dd | [] | no_license | MarcPartensky/Python-Games | c0ad2857be5832d6029642bb0a96bc8e403a12e3 | ebfcaaf4a028eddb36bbc99184eb3f7a86eb24ed | refs/heads/master | 2022-09-03T00:04:16.402288 | 2022-08-12T17:10:22 | 2022-08-12T17:10:22 | 166,606,022 | 2 | 1 | null | 2021-03-07T16:20:15 | 2019-01-19T23:56:04 | Python | UTF-8 | Python | false | false | 7,413 | py | from mycase import Case
from myabstract import Point, Form
import mycolors
import numpy as np
import shelve
from pygame.locals import *
class Painter:
def __init__(self, *args, **kwargs):
"""Create a painter."""
self.paints = [Board(), Paint(*args, **kwargs)]
self.paint_brush = PaintBrus... | [
"marc.partensky@gmail.com"
] | marc.partensky@gmail.com |
a715fbf63f7649d806c5d3fabc06da2a4ecab666 | cc44edfa1edbedea3ad044805be7548e0ccba70d | /0x01-python-if_else_loops_functions/4-print_hexa.py | 6306e03ac91e63adc4b344e653568933bf78f701 | [] | no_license | set808/holbertonschool-higher_level_programming | 421f0da1f91cd56eb2daa4e07a51b4a505d53edc | eb276a4e68e5cc43498459eec78fc05f72e2cd48 | refs/heads/master | 2020-03-09T13:07:43.824914 | 2018-09-08T00:26:46 | 2018-09-08T00:26:46 | 128,802,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | #!/usr/bin/python3
for i in range(0, 99):
print('{:d} = {:#02x}'.format(i, i))
| [
"spencertaylor808@gmail.com"
] | spencertaylor808@gmail.com |
da4d0d18c8dafe890d85d416fa23c5e11961cd2d | 2869aba7994c312dafc76e411440cdaac765b2c9 | /src/loss.py | f1e2fdb2ab4ce768eceb039dd2ec34250563850b | [
"MIT"
] | permissive | fishbotics/fishbotics-learning-toolkit | eb8396cc90cf0491d0077c55521d294f706de28f | 7a30bd1c2e60e38d91fff36c1eea9afd0c855b2d | refs/heads/main | 2023-03-19T11:49:12.393388 | 2021-03-04T19:24:54 | 2021-03-04T19:24:54 | 314,465,767 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | # This one is deprecated but waiting to remove
def loss_batch(model, loss_func, x_batch, y_batch, opt=None):
y_hat = model(**x_batch)
loss = loss_func(y_hat, y_batch)
if opt is not None:
loss.backward()
opt.step()
opt.zero_grad()
return loss.item(), len(next(iter(x_batch.values(... | [
"afishman@cs.washington.edu"
] | afishman@cs.washington.edu |
a80735ec7f52b234160ac9dd80761a2486bd9a4c | fbdf1062446109646290aa0999987c27e294b6ea | /drchrono_webapp/migrations/0001_initial.py | 1abb206f39510c1af0b1e9bfea8bf47eab399d2e | [] | no_license | yjzhang3/DrChrono | 549d16883230045e8a0654a096ed32817ce7a0c5 | 8f862e08f4e585b81d4812cdd3a80a1490bf009b | refs/heads/main | 2023-02-18T04:59:59.132133 | 2021-01-20T00:30:18 | 2021-01-20T00:30:18 | 326,537,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | # Generated by Django 3.1.5 on 2021-01-05 21:34
from django.db import migrations, models
import jsonfield.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='DoctorInformation',
fields=[
... | [
"jasonini@bu.edu"
] | jasonini@bu.edu |
05fcfd48e9afb92c4dc7f3b2133df977ab27e074 | 967131f924c7fe26116f3af71bc92fe5ad015421 | /rest_api_vehicules_windows/migrations/versions/75afc3f1c248_vehicules_table.py | 8e9327879ab945756ad75b957ef588e133f268f4 | [] | no_license | matthieuRioual/Projet-majeur | 29af0d87c71165aeebd8ab19e1f3214150d51837 | 29a006fe1cfe6d70a9468545cae91e79732c6222 | refs/heads/master | 2022-11-28T04:27:53.342066 | 2020-06-09T14:01:53 | 2020-06-09T14:01:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,524 | py | """Vehicules table
Revision ID: 75afc3f1c248
Revises:
Create Date: 2020-06-03 14:10:56.429305
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '75afc3f1c248'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto ge... | [
"cyprien.galland@cpe.fr"
] | cyprien.galland@cpe.fr |
1c6f272ebd1ff04f050865ce0bd785f5e92cc25c | af9268e1ead8cdb491868c14a2240d9e44fb3b56 | /last-minute-env/lib/python2.7/site-packages/django/db/migrations/executor.py | a19af992f2af78ad965ede2ad59e5a039ef25855 | [] | no_license | frosqh/Cousinade2017 | d5154c24c93ca8089eeba26b53c594e92cb6bd82 | c34d5707af02402bf2bb7405eddc91297da399ff | refs/heads/master | 2021-01-20T07:57:34.586476 | 2017-10-22T18:42:45 | 2017-10-22T18:42:45 | 90,074,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,835 | py | from __future__ import unicode_literals
from django.apps.registry import apps as global_apps
from django.db import migrations, router
from .exceptions import InvalidMigrationPlan
from .loader import MigrationLoader
from .recorder import MigrationRecorder
from .state import ProjectState
class MigrationExe... | [
"frosqh@gmail.com"
] | frosqh@gmail.com |
3d4a9d8593553e43461522b4f38e4009058c4b7f | 46355bd117d38191f2ebd23e9250ab121bf839fc | /Airbnb/roundPrice.py | dfa2edbe6aa3ad782e2593c4a64dd5308c29feb7 | [] | no_license | Jason003/Interview_Code_Python | f1e1a59e87cfada78a931be6a27a51898442aca4 | 75dbc8d3906bd00c8129c8ed0b584794c8b41d6b | refs/heads/master | 2020-08-12T20:11:56.454848 | 2019-11-12T01:36:52 | 2019-11-12T01:36:52 | 214,835,963 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | import math
def roundPrice(A):
# attention: in python3, round(1.5) = 1 !!!
def round(x):
fac = x - math.floor(x)
return math.ceil(x) if fac >= 0.5 else math.floor(x)
if not A:
return A
roundSum = sum(map(round, A))
sumRound = round(sum(A))
print(roundSum)
print(sumRo... | [
"792576519@qq.com"
] | 792576519@qq.com |
73418a4efc33f77e2110c61b4fae9a8d028f2537 | 14a26103e97b1669ca6f1f44996c4ad65b9f0179 | /bim1/week4/16.6.5.py | 714f4bcd5a24a3f05a9b49443eec7b91589b1e9e | [] | no_license | igorbragaia/CES-22 | 6ea0fc3da7ba2274080954071f0070ba78a7f1f4 | 7c09bdec315421e57f2cd44d50f919f3965144ac | refs/heads/master | 2021-09-17T14:40:31.426602 | 2018-07-02T18:54:40 | 2018-07-02T18:54:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | import sys
def test(did_pass):
"""
Prints test result
:param did_pass: test result
:return:
"""
linenum = sys._getframe(1).f_lineno # Get the caller's line number.
if did_pass:
msg = "Test at line {0} ok.".format(linenum)
else:
msg = ("Test at line {0} FAILED.".format(... | [
"igor.bragaia@gmail.com"
] | igor.bragaia@gmail.com |
fcdd99c9979d6859c7ada344befd9e8851a26787 | 5fd1727ea99973b111e7a7183e8a6258cfbfa36e | /candid/settings.py | c645198cc79b7d4d39690d29d3656df46dc34aa9 | [] | no_license | thierryramond/candid | f163dca3fc5bf918bf3061113ec781f90fc51105 | ac22b9ae50fb6e00a5460ca569620a3506d7b185 | refs/heads/master | 2020-12-11T22:18:10.025515 | 2015-05-25T08:27:57 | 2015-05-25T08:27:57 | 36,219,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,747 | py | """
Django settings for candid project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths i... | [
"thierry.ramond@math.u-psud.fr"
] | thierry.ramond@math.u-psud.fr |
e38b81ecb5dcb797e6cabf948bf96fed37fc0bb9 | 22bf086e3e7d43b72f0d05aaa3359b766a688a79 | /scripts/extract_clues_info.py | 5b22dcb47717b771f546fc7cd1ccda68132dab69 | [] | no_license | kaspermunch/humanXsweeps | aa7a4e6a175be276713f17f79d7179a5dd644ff5 | 3a2c4aa496aaffa837eb15dd3d382f7712266f38 | refs/heads/master | 2023-04-07T13:36:11.619973 | 2023-03-18T08:05:18 | 2023-03-18T08:05:18 | 161,376,285 | 1 | 0 | null | 2023-01-11T14:12:39 | 2018-12-11T18:25:53 | Jupyter Notebook | UTF-8 | Python | false | false | 886 | py |
import sys
import re
import os
import pandas as pd
import h5py
_, output_file_name, steps_dir, *clues_file_names = sys.argv # pylint: disable=unbalanced-tuple-unpacking
# open output file:
output_file = open(output_file_name, 'w')
# loop over base names of
for clues_file_name in clues_file_names:
# 98000000_995... | [
"kaspermunch@birc.au.dk"
] | kaspermunch@birc.au.dk |
24746603ece9b6dfeeeb35c2e02cb6abcf61de34 | 16347e052c4704c891be04b74a39d75e8a9ccc35 | /26.py | 4f7f3e795bf87d1f4a7e7c85d2b00a20bd84f7a3 | [] | no_license | vpontis/euler | 073316d45266ef2b93e78de822449952ff2982a0 | 3320f81a38e276384aad9e391edca2eeba09185d | refs/heads/master | 2021-01-10T01:35:47.717283 | 2015-11-25T09:49:31 | 2015-11-25T09:49:31 | 46,852,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | from decimal import *
import re
getcontext().prec = 5000
def smallest_cycle_length(seq):
for i in xrange(1, len(seq)/2):
i_is_cycle = True
for j in xrange(len(seq) - i):
if seq[j] != seq[j + i]:
i_is_cycle = False
break
if i_is_cycle: return i
... | [
"vpontis@gmail.com"
] | vpontis@gmail.com |
4a8e75faab481c89f697e468241dc944b98ee689 | e5654e71ad4f043bb28105c3b6f3cd833e1c52dc | /openai/venv/lib/python3.10/site-packages/sqlalchemy/dialects/mysql/base.py | 9948602d3dbf1e8ba0c16adcb1a9cec0447c32a8 | [] | no_license | henrymendez/garage | 0b795f020a68fe2d349b556fb8567f6b96488ed5 | b7aaa920a52613e3f1f04fa5cd7568ad37302d11 | refs/heads/master | 2023-07-19T20:16:02.792007 | 2023-07-07T16:58:15 | 2023-07-07T16:58:15 | 67,760,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115,423 | py | # mysql/base.py
# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: https://www.opensource.org/licenses/mit-license.php
r"""
.. dialect:: mysql
:name: MySQL / MariaDB
:full_support: 5.6, 5.7, 8.0 ... | [
"henry95@gmail.com"
] | henry95@gmail.com |
dead8a7f090490e923744e708b28e552eecd5bff | 58dde5823c6d3e8164bb046a36e9a2e98ad086d4 | /mylibrary/admin.py | ad92db169485b70f3987f363a52c160f7ea01f8d | [] | no_license | codenoob-22/e-Book-Library | 50b3da10e7c0beac548fda948771c9ab5261e978 | 4230746bdd43c0d6c997252ebe5cc3b705baf9b7 | refs/heads/master | 2022-12-07T14:32:56.291450 | 2020-08-03T20:06:56 | 2020-08-03T20:06:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from django.contrib import admin
from mylibrary.models import MyLibrary
from simple_history.admin import SimpleHistoryAdmin
admin.site.register(MyLibrary, SimpleHistoryAdmin)
| [
"regarhariram836@gmail.com"
] | regarhariram836@gmail.com |
f47d03211b453063facb36218b0dbea77de93325 | 17cab040201c7512d53d52ca222a8516be9523fb | /cm_web/oss/business.py | 248d6b50e9963958a6b8e36227c51d211dc1b9f1 | [] | no_license | dachen123/lumbarweb | a0902d8449273cb2fb08f60d8a828ba06cdd44e2 | 648080ee6c7d8f2c926baff541d6fe184e87db5d | refs/heads/master | 2021-01-21T05:29:36.729515 | 2017-02-26T14:11:14 | 2017-02-26T14:11:14 | 83,197,638 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# from cm_web.oss.oss import oss
from flask import current_app
from cm_web.helper import helper
def get_oss_sts_token(pic_type):
upload_key = u'image/'+pic_type+u'/'+str(helper.dcid())+u'.png'
access_key_id,access_key_secret,security_token = current_app.oss.fetch_... | [
"2391840838@qq.com"
] | 2391840838@qq.com |
eb3792e63cf7796b99b13a551668c4cecd3c4e0e | c57d2ddf52bdfab2fe2e1f008d7631348b37f802 | /08/code.b.py | 4060f35d87d3edd5a5060aca70b6c817ebca35af | [] | no_license | SamuelLarkin/AdventOfCode2018 | ce663222e48a5fe92baf042aca437114a6afc450 | 05fa4a7d125e7f1feffd7507c6f1a2385519ee61 | refs/heads/master | 2020-04-09T05:20:07.373375 | 2018-12-25T15:26:04 | 2018-12-25T16:25:21 | 160,060,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | #!/usr/bin/env python
from __future__ import print_function
from utils import parse
from utils import chain
from utils import test_data
try:
from functools import reduce
except:
pass
def visit(node):
if len(node.children) == 0:
return sum(node.metadata)
else:
return sum(visit(node.c... | [
"Samuel.Larkin@cnrc-nrc.gc.ca"
] | Samuel.Larkin@cnrc-nrc.gc.ca |
71ba6aabb8bb089ad893dcdffa33d9eec54dcd76 | 65dc8b306c1a22dc3a8ebf53d399135c5b894b69 | /guestbook/forms.py | 7936a074493597f70ce0116429f3fece381a3b2e | [] | no_license | tokibito/python-hackathon2-guestbook | 49e7f144d2c4f9920abea639816645d0edbca292 | dfa152cf6cb7ebea1779c63846e36f8dbb90d8c1 | refs/heads/master | 2020-07-25T08:20:37.459468 | 2009-11-13T04:53:40 | 2009-11-13T04:53:40 | 208,228,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | # coding: utf8
from django import forms
from guestbook.models import Greeting
class GreetingForm(forms.ModelForm):
"""
ゲストブックの書き込みフォーム
モデルを元に生成する
"""
class Meta:
model = Greeting
# 書き込み日時は除く
exclude = ('create_at',)
| [
"xxshss@yahoo.co.jp"
] | xxshss@yahoo.co.jp |
b006bdd2968ab6b20d0f4cebef10dca4504e7561 | b8ea631aae5d132c7b0236684d5f7c12d3c222be | /ABC/ABC_114C_zentan.py | 6204c22fc19b6d2aae27bac78f48b889f8173b21 | [] | no_license | Ryushi-tech/card3 | 68c429313142e58d4722a1cd5a4acc4ab39ca41f | 883636b2f518e38343a12816c5c641b60a87c098 | refs/heads/master | 2021-07-05T22:46:33.089945 | 2020-12-12T15:31:00 | 2020-12-12T15:31:00 | 209,176,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | import itertools as it
n = int(input())
l = len(str(n))
res = []
for i in range(3, l + 1):
for gen in it.product("357", repeat=i):
gen_s = "".join(gen)
if int(gen_s) <= n:
res.append(gen_s)
cnt = 0
for r in res:
if all(r.count(c) for c in "357"):
cnt += 1
print(cnt)
| [
"mryrys@gmail.com"
] | mryrys@gmail.com |
51d0b8c69b4e24b93228e68abedf95c4c336dace | 2bc833baedc7244c88162e0d254dc46ab9c38fd0 | /build/path_navigation_msgs/cmake/path_navigation_msgs-genmsg-context.py | d9882acb094af988fcc7e6e72e8e88c042f791dc | [] | no_license | mmmmimic/Pick-and-Place | 5a6b289cac1d14d1f2b3e83140a4494771248a48 | c27a28223b2c54c9679d2fc5874534aeeaa657c5 | refs/heads/master | 2022-09-16T21:47:41.064299 | 2020-06-03T21:16:03 | 2020-06-03T21:16:03 | 214,512,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,644 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/student/catkin_ws/devel/.private/path_navigation_msgs/share/path_navigation_msgs/msg/PathExecutionAction.msg;/home/student/catkin_ws/devel/.private/path_navigation_msgs/share/path_navigation_msgs/msg/PathExecutionActionGoal.msg;/home/student/cat... | [
"matthewlin98@hotmail.com"
] | matthewlin98@hotmail.com |
86aa813292c0700ed64e79bd567dc22fe09324e6 | 013f65373cf6eb1920cc47f09601b48118ebe250 | /kaggle.py | 31cf5a6f9bf63f349501e4e12767cb4e8c815569 | [] | no_license | vhcg77/Kaggle_MNIST | d425557da95bba7d4ee9464ebb0ff0988b241cad | c98fc92285544d666ecc7db91bfd645cb9d2c14a | refs/heads/master | 2020-03-08T18:25:46.283144 | 2017-12-30T14:03:52 | 2017-12-30T14:03:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,986 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import sys
import numpy as np
from numpy import array
import pandas as pd
import tensorflow as tf
from sklearn.model_selection import ShuffleSplit
from sklearn.preprocessing import OneHotEncode... | [
"sanjitjain2@gmail.com"
] | sanjitjain2@gmail.com |
93d9228177ee76f0b5d92291e7212790f6c0557e | 6a0e51fc8d2ea8819711acb7948f4c21c277c771 | /the_list.py | bf381ad611c0d6716c2dc2a1241e1b868e580752 | [] | no_license | sunzhiyan/Python | eb0bd60edbc85e670ad02af9009df53f5936bff3 | 3881d124b71f81b7e0bd1e70bcd336238fbcfa3f | refs/heads/master | 2022-10-08T21:38:22.799102 | 2021-03-05T02:32:57 | 2021-03-05T02:32:57 | 244,139,633 | 1 | 0 | null | 2022-09-23T22:42:18 | 2020-03-01T11:50:40 | Python | UTF-8 | Python | false | false | 321 | py | # -*- encoding: utf-8 -*-
'''
@File : 列表.py
@Time : 2020/03/03 22:09:13
@Author : xdbcb8
@Version : 1.0
@Contact : xdbcb8@qq.com
@WebSite : www.xdbcb8.com
'''
# here put the import lib
list=[56,23,89,99,56,45,87,56,65,100]
print(max(list))
print(min(list))
print(sum(list))
print(sum(list)/len(list)) | [
"noreply@github.com"
] | noreply@github.com |
b900c2a207f1ab9caf72a4c799cf104018940a30 | 9f91bcdcda2fd6c7a4452e5bf77ba390a444a5b8 | /resources/PropSI.py | 3d5652ed8fd5ac9ed1705f5e99ff35457b5c4533 | [] | no_license | mirokymac/PropAPI | a5b71a1b32ddf86ce259f4f83ff651404c7d124b | 9cba02fcfd09b48e6d1d8a8721a11a66336fe771 | refs/heads/master | 2020-03-12T01:25:47.978781 | 2018-05-02T09:24:02 | 2018-05-02T09:24:02 | 130,376,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,943 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 20 22:18:40 2018
@author: Zihao.MAI
"""
import logging
import common.util
logger = logging.getLogger(__name__)
#==============================================================================
PATH_TO_REFPROP = 'd:\\REFPROP'
REFPROP_READY = False
from common.postimport i... | [
"Zihao.MAI@ALCN-7431719-L.as.corp.airliquide.com"
] | Zihao.MAI@ALCN-7431719-L.as.corp.airliquide.com |
d1ccc27f074e69da4046e5dbc1fbe33d716c469d | 5cab9d2390bc609608ae8346027543b495bf1735 | /tests/jupyter/test_ipyvtk.py | 32e6a77857f0e8f260bd3a8e1a2aad52c579b5c6 | [
"MIT"
] | permissive | redhog/pyvista | c4bbd0abee0d4f6b5c381bd66350099b2c7fdb1d | acf29f58e5625535aad83709a0a1f818c1f81737 | refs/heads/master | 2023-05-01T01:14:44.932482 | 2021-05-10T00:13:48 | 2021-05-10T00:13:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | import os
import pytest
import pyvista as pv
has_ipyvtklink = True
try:
from ipyvtklink.viewer import ViewInteractiveWidget
except:
has_ipyvtklink = False
skip_no_ipyvtk = pytest.mark.skipif(not has_ipyvtklink,
reason="Requires IPython package")
@skip_no_ipyvtk
def tes... | [
"noreply@github.com"
] | noreply@github.com |
a7c2efa7c6313eb37845692c4cbeb0c2704afb28 | 903568e75a3de9d10032c2e738c0cb56c8cd2d76 | /utils/time_management.py | 9b0143b53009046ce6519e41a9b1abcf51e93dea | [] | no_license | nepoz/Sportify | e5bd6d7a50dc0c1295502f2609a4032c16e896ea | 7cd67884f37a8b0ac04cb957ed5170ecbc3805bd | refs/heads/master | 2022-12-19T22:17:07.197752 | 2020-09-29T19:53:49 | 2020-09-29T19:53:49 | 290,608,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | from datetime import datetime, timezone, timedelta
import pytz
import asyncio
from dateutil import parser
from utils.mongo import MONGODB_URI
from utils import mongo
from discord import TextChannel
from discord.ext.commands import Bot
## Will create a time interval from now to the specified number of
# days in the... | [
"bishrutbhattarai@gmail.com"
] | bishrutbhattarai@gmail.com |
270742e36424951d8024a33594d64497bf5758e2 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/331/usersdata/293/94058/submittedfiles/funcoes1.py | cc9f91b72aa5433b90fafe6a6f90c9742a3cf68e | [] | 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 | 452 | py | # -*- coding: utf-8 -*-
def crescente(n,lista_crescente):
#escreva o código da função crescente aqui
cont_crescente=0
for i in range(0,n-1,1):
if lista_crescente[i]<lista_crescente[i+1]
cont_crescente= cont_crescente + 1
if cont_crescente==len(lista_crescente)-1
return ("S")... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
086f461b1c259d8a886f5911ef05279c2691219e | cd6ccc2eaee641b8bf695e9bc7871568369d6ab9 | /seleniumwd2/findingelements/FindByLinkText.py | cf354c43147d0a67cfdd80a749bc8565c2f849f4 | [] | no_license | anna-bogatko/PycharmProjects | 80fbf503613c184a0eb610becb5ddcc75ee37241 | daa7f94173bdc75e382c1eacb7fb3f3132295b65 | refs/heads/master | 2020-04-07T08:25:40.054698 | 2018-11-22T13:37:03 | 2018-11-22T13:37:03 | 158,213,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | from selenium import webdriver
class FindByLinkText():
def test(self):
baseUrl = "https://letskodeit.teachable.com/pages/practice"
driver = webdriver.Firefox()
driver.get(baseUrl)
elementLinkText = driver.find_element_by_link_text("Login")
if elementLinkText is not None:
... | [
"anna.bogatko7@gmail.com"
] | anna.bogatko7@gmail.com |
0769bf04c9eb3afa429a75c7d5f16cfe8b7f1c54 | 0d89bdf5437aeb318d7f372ba043498b69c2b8f2 | /Problema-C.py | bf0f6a76d9bf873251d45668dd971a3440128247 | [] | no_license | Diogo364/ProgramacaoCompetitiva1 | 08f4b7bf77002bf1492c8eb922c7e3360e2bf91a | be1e28d0dae543b376dd27fa5a1f283b5fbde2e8 | refs/heads/master | 2020-09-06T03:53:14.667899 | 2019-12-04T21:43:07 | 2019-12-04T21:43:07 | 220,312,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | word = input()
qtdLower = 0
for letter in word:
if letter.islower():
qtdLower += 1
if qtdLower >= (len(word) - qtdLower):
print(word.lower())
else:
print(word.upper())
| [
"diogotnascimento94@gmail.com"
] | diogotnascimento94@gmail.com |
e8e120a71e13c2a69155eabab2b50f8f2248205c | 99556451586f1f2fc56823c320ed0e8feb3a5f34 | /SNOPlusSlowControl/lib/dataconverters.py | d8ae989378e1b46a1cdc530c30dce6b95ec190d7 | [] | no_license | snoplus/SNOPlusSlowControl | 72c4d71711109b317dd224426198d5db82d8e4a7 | ca633e1cbd3de96c06258cc7706b67f549964054 | refs/heads/master | 2020-05-19T21:48:00.364826 | 2020-04-22T20:25:07 | 2020-04-22T20:25:07 | 185,233,679 | 1 | 0 | null | 2020-04-22T00:50:56 | 2019-05-06T16:31:11 | Python | UTF-8 | Python | false | false | 5,298 | py | import numpy as np
import datetime
import time
import config.dataconfig as dc
from scipy.misc import derivative
class PIDataConverter(object):
def __init__(self):
self.rope = []
self.delz = 0
self.dz = 6.5
self.AV_Pos = []
self.Xs = []
self.Matrix = []
... | [
"tjpershing@ucdavis.edu"
] | tjpershing@ucdavis.edu |
e38213a3ae8dfbd4d571bf4a6cc01eccf8972ddd | ce1a2f8c55b6b61d6c44d6b43fd8a9adb153935d | /firstpro/apps.py | c007331291803971df19eab322b2abb8ceb372de | [] | no_license | Rahulremo2k/Myfirst-django-project | 0594818bc885b13af58ae72cff2d452ef16ec1b7 | a28403a3bd027550b0aaf4bb6bb97db83595982a | refs/heads/master | 2022-11-06T03:58:25.896204 | 2020-06-29T06:14:04 | 2020-06-29T06:14:04 | 275,740,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.apps import AppConfig
class FirstproConfig(AppConfig):
name = 'firstpro'
| [
"rahulduraisamy2@gmail.com"
] | rahulduraisamy2@gmail.com |
0f23b5c2a5e095557acf755e442927459bba835c | d1286b9824846d469871092471a2fd9203f69dfd | /campaignportal/message/migrations/0004_remove_message_name.py | c24df72c371c1131fc6c70a08326f52bc7fa4e6f | [] | no_license | ankit-saraf/alcher_campaign_portal | 2f33f94363e75a7b6c3c30334105c7975b960805 | f9b6379e00deae62810e329664b5220a656bb11b | refs/heads/master | 2023-02-07T17:47:49.321536 | 2021-01-03T10:54:04 | 2021-01-03T10:54:04 | 269,364,691 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | # Generated by Django 3.0.6 on 2020-06-02 20:10
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('message', '0003_auto_20200601_1449'),
]
operations = [
migrations.RemoveField(
model_name='message',
name='name',
),... | [
"ankitntse@gmail.com"
] | ankitntse@gmail.com |
7ebfdb1e168514de4949bae492eba21f89911991 | dab56b2a9661fa93c4b6751e31f23bf5fed5536c | /alphnumpunc.py | 9ccacc0aaf3509aefb7703dcf0d141f7c39a2810 | [] | no_license | paphop45/codegen | adda11280e3a9f7ea367961c13e314bde5eb4036 | 659f1ee09339bd64f33aa8a0064f5ed2c7a43cc3 | refs/heads/master | 2020-07-11T23:31:40.064194 | 2019-09-09T07:34:40 | 2019-09-09T07:34:40 | 204,666,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | # This file generate code with combination of alphabet, number and punc (upperlowermix)
# Edit records for amount of records
# Edit stringLength for the random Length
import random
import string
import csv
records=100
def randomStringwithDigitsAndSymbols(stringLength=18):
"""Generate a random string of letters, ... | [
"paphop45@hotmail.com"
] | paphop45@hotmail.com |
95378a0b03a345b5921f73f57730232f93a17f17 | ac91e0118aa0a39ce31ee9dd6c53c091dd9be7aa | /src/trapezoid.py | 2eecec474f9b40593e2adcf4a6cb496f298e0635 | [] | no_license | polaroidz/numerical_methods | a9d074321d0d657141d5e0973477ee945a64a979 | a6d22300d6a6e8c37ecdbac23fb30b85c6449c5b | refs/heads/master | 2022-11-15T07:11:01.479783 | 2020-07-05T21:31:38 | 2020-07-05T21:31:38 | 277,386,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | import numpy as np
def calc(f, a, b, N=100):
x = np.linspace(a, b, N + 1)
y = f(x)
dx = (b - a) / N
y_right = y[1:]
y_left = y[:-1]
I = np.sum(y_right + y_left)
I = (dx / 2) * I
return I
if __name__ == '__main__':
res = calc(np.sin, 0, np.pi/2, 100)
print(res, 1 - res) | [
"diego.mrodrigues11@gmail.com"
] | diego.mrodrigues11@gmail.com |
baec55ad80b713e61cf32dc816199683a2c13bb4 | 1b46762cec03220b6933dec6a680aedeecbe6243 | /code/object_oriented/2.1_basis_object_oriented.py | 46385e38b7d426c97d62fa49a15f8eabadbcd06e | [] | no_license | Glepooek/python-learning-notes | 16c4a50b0bf900e83d4a12fbdef29f7b73194ef3 | dbc54dd1017cdeacc79bc8d0856d17bb7033b11f | refs/heads/master | 2020-04-24T18:16:33.013713 | 2019-06-06T10:29:23 | 2019-06-06T10:29:23 | 99,640,641 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,476 | py | """
以下是对象实例化的代码
"""
# import copy
# import sys
#
#
# class Point(object):
# def __init__(self, x, y):
# self.x = x
# self.y = y
#
# @classmethod
# def new_object(cls, x, y):
# return cls(x, y)
#
#
# def make_object(clz, *args, **kwargs):
# return clz(*args, **kwargs)
#
#
# if __... | [
"glepooek@outlook.com"
] | glepooek@outlook.com |
ac36af1e489a5c9b31c7590762b0a39c7afac82e | 7243df7ee2090f76a3d82b898f8a0f2e82198071 | /csv_to_kml.py | e98a31ab4bea4bcfb7c771d945aefad94930d2ad | [] | no_license | TimSC/air-quality-analysis-2018 | 6e3b8dce1a4ab76b36a362229572e20f7014db09 | 64a163a1b406f708a66a6f510647d9bfd49b7e5c | refs/heads/master | 2020-03-18T13:32:16.576221 | 2019-06-13T13:07:49 | 2019-06-13T13:07:49 | 134,790,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,320 | py | #!/usr/bin/env python
'''Example of generating KML from data in a CSV file
References:
'''
from __future__ import print_function
import csv
import urllib2
from datetime import datetime
from lxml import etree
from pykml.factory import KML_ElementMaker as KML
def makeExtendedDataElements(datadict):
'''Converts a dic... | [
"tim2009@sheerman-chase.org.uk"
] | tim2009@sheerman-chase.org.uk |
c13d8dce8e5d3e00138bf971d2e620d131a88fdc | f91b5012efaf04a9931f5c38b33b0c824ccc3706 | /visualize/statistics_data.py | 53985c793b859cd7128b15a84a0c4cf201010da9 | [] | no_license | FabianRei/federated_learning_adni | bdc50b9bde3bd76775c3cfc05f3908649930e19b | 309f1c95b7c742b42950e6e2b31b69701ee6f6af | refs/heads/master | 2020-06-17T05:30:01.113025 | 2020-01-12T17:53:10 | 2020-01-12T17:53:10 | 195,813,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,352 | py | import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
import os
from glob import glob
import re
from fnmatch import fnmatch
from fnmatch import filter
import csv
import pickle
from visualize.calc_roc import cutoff_youdens_j_tt
from sklearn.metrics import roc_curve, auc
def calc_roc(tt, fname):
... | [
"gFriessm20*"
] | gFriessm20* |
a2f300d572be70071e04e96053648ef49642349d | 07fdfbdd4d658a800d5f528202625f4ce307cc2c | /nk_sent2vec/config.py | ff8fd0177d58826f122a1068566d67b6db020caa | [
"BSD-3-Clause"
] | permissive | uncharted-distil/nk-sent2vec | 5261761e5a88f131824ea1d6d194fd9f836de803 | 636ece7c12692b0a2b36161f934b0e6fd15a7f6a | refs/heads/master | 2021-12-01T10:57:36.581937 | 2021-11-19T19:54:24 | 2021-11-19T19:57:17 | 261,869,437 | 0 | 1 | NOASSERTION | 2021-03-25T03:46:40 | 2020-05-06T20:18:55 | Python | UTF-8 | Python | false | false | 861 | py | import os
from pathlib import Path
def get_model_path():
''' get the default model path, which is ../models/<model-name>.bin '''
current_dir = os.path.dirname(os.path.abspath(__file__))
parent_dir = Path(current_dir).parent
return str(parent_dir / 'models' / 'torontobooks_unigrams.bin')
MODEL_PATH =... | [
"craig@newknowledge.io"
] | craig@newknowledge.io |
fa033282eb9b9f69fe0f237ea0dc575bb19602c9 | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_09_01/operations/_vpn_sites_configuration_operations.py | 681ea2f9326309464669ed83ca33a7a38ae17a3a | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 8,375 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
d89c6d607ae28029364a25d266750f8ce316d329 | e718d3ccc181a72e7bfe0faad42285f2829a96e5 | /GDP_projectOriginal/service/urls.py | a21fadcfe3bedc40bf12129e1924b069fbbf87aa | [] | no_license | Jerrykim91/GDP_project | 8a17e75276ee92c93ad621163bffa57a528c258f | cd8e626cc3f01c1051f13115ad3d6217dd99ddc6 | refs/heads/master | 2022-05-02T01:08:33.955292 | 2021-03-25T14:43:21 | 2021-03-25T14:43:21 | 234,493,053 | 0 | 0 | null | 2022-04-22T23:27:15 | 2020-01-17T07:16:07 | Jupyter Notebook | UTF-8 | Python | false | false | 651 | py | # service\urls.py
# import
from django.urls import path
from . import views
urlpatterns = [
# GDP_graph
path('search_main', views.search_main, name="search_main"),
path('search_detail', views.search_detail, name="search_detail"),
path('search_show', views.search_show, name="search_show"),
p... | [
"sun4131@gmail.com"
] | sun4131@gmail.com |
1fa310f9ae1a6793e62ea6ef82a206a3635c31df | d74daa1dfe1f4eac96ceb1d006c59ba19b55d37a | /CS401/GG-Project/GG-Project/productProcessers/ProductReader.py | e6a04f2b514a3650ae352f1cd5ba9b37d87b4018 | [] | no_license | muratcancicek/Assignment-Projects | 7aac0cced54f392e26b39f6bc46af813faddd628 | 41c7df2b60f20eb840d409f3fedb4ec6feeafdcc | refs/heads/master | 2021-06-06T17:27:11.616251 | 2017-09-06T12:17:40 | 2017-09-06T12:17:40 | 58,016,251 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,422 | py | from MainSrc.PythonVersionHandler import *
from .BsonIO import *
from paths import *
def getCategories(filename):
categoriesData = readBson("categories.bson")
categories = categoriesData['data']['categories']
print_(len(categories))
deepestCategories = [c for c in categories if c['deepest'] == 'Y']
... | [
"muratcancicek0@gmail.com"
] | muratcancicek0@gmail.com |
829d8ceb31ec21a8324a4ee14faa7bf5ad47e755 | 20f951bd927e4e5cde8ef7781813fcf0d51cc3ea | /fossir/modules/events/papers/controllers/base.py | ae72c3fe163c825494ededfcc8484349b10fe67e | [] | no_license | HodardCodeclub/SoftwareDevelopment | 60a0fbab045cb1802925d4dd5012d5b030c272e0 | 6300f2fae830c0c2c73fe0afd9c684383bce63e5 | refs/heads/master | 2021-01-20T00:30:02.800383 | 2018-04-27T09:28:25 | 2018-04-27T09:28:25 | 101,277,325 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,637 | py |
from __future__ import unicode_literals
from flask import request, session
from werkzeug.exceptions import Forbidden, NotFound
from fossir.modules.events.contributions.models.contributions import Contribution
from fossir.modules.events.controllers.base import RHDisplayEventBase
from fossir.modules.events.management... | [
"hodardhazwinayo@gmail.com"
] | hodardhazwinayo@gmail.com |
08d9009d8d2c1a7fd887f2084e2bf1c627410725 | 7fd75a4d061bd8d7bbdf7b94fc6447575eb10b1d | /tollProject/class_customer.py | 983f49843bbfd4b4881b015eabbb425d311f3122 | [] | no_license | M4sum/tollSystem | d0998a09c3afd549b1151b4307efd80f60f1ba54 | ee8c31588861b63b46e9fb735a5e1f8166a725b9 | refs/heads/master | 2020-04-14T10:48:20.539109 | 2019-01-02T05:34:37 | 2019-01-02T05:34:37 | 163,796,641 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | import pymysql
from class_vehicle import Vehicle
class Customer:
def __init__(self, username):
conn=pymysql.connect(host="127.0.0.1",user="root",password="",db="toll")
self.username=username
abc=conn.cursor()
abc.execute("""
select owner_name,contact_no,email
... | [
"noreply@github.com"
] | noreply@github.com |
b6090b4a5b1f4e324909c0dde8984011e939ee28 | e6227180095146039d62a549db9262c7e5fdb939 | /misc/obs/obs_config.py | 3fa56cd756aadb7241004d9c146591da5e0c3d56 | [
"Apache-2.0"
] | permissive | genostack/ohpc | 5542d4589157921b384bc3c4a5d7e91f33837309 | baadb5fa4d8818780e4ff56628e64ff596d1ed49 | refs/heads/master | 2023-06-27T22:45:24.611396 | 2019-11-12T14:11:19 | 2019-11-12T14:11:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,260 | py | #!/usr/bin/env python3
#
# utility to create parent/child packages in OBS for a new OHPC
# version based on configuration specified in an ini style config
# file.
# --
import configparser
import logging
import argparse
import sys
import os
import ast
import tempfile
import inspect
import re
from semver import VersionIn... | [
"karl@ices.utexas.edu"
] | karl@ices.utexas.edu |
782df21af613fb5e6ae7736294abdf384ea2885d | c5069082cc5fbe10285371f3a5e404f6b2eba212 | /exchange_rates_api.py | 452d71cd2994265e534b93d2b03f098de9f4fe9b | [] | no_license | tpetrosius/rates_of_currencies_app | 244b629058843b94b17533f4b9bd212f783e2ac5 | f58b206f426f255c8b716d1ffafb705c6962d902 | refs/heads/master | 2020-08-19T08:25:16.762109 | 2019-10-17T22:50:23 | 2019-10-17T22:50:23 | 215,898,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | import requests
from datetime import datetime
def get_pairs_rates():
"""Get latest data of currency pairs"""
# List of currencies pairs that data needs to be extracted
pairs = ['EURUSD', 'USDEUR', 'USDJPY', 'USDGBP', 'USDCHF', 'USDAUD', 'USDCAD']
# Dictionary that will be populated with latest data of c... | [
"noreply@github.com"
] | noreply@github.com |
aec9a5bde79267dc3f7fecb63f1a51d12d1337c6 | b9ac2efcfa9e31374c8a6d425807575b99a41ad6 | /MQTT_Client.py | a4c1a923b90ed58bb683cf14bfaf04c655bbd560 | [] | no_license | Benelli889/Generic-MQTT-client | 6441a715695c20e84accefab44a67ca9fe0b7c7c | 73b5cdec55e5acd14493343d437b95f7d00bc8ce | refs/heads/master | 2022-04-18T19:33:25.460296 | 2020-04-19T20:14:11 | 2020-04-19T20:14:11 | 257,087,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | # -*- coding: utf-8 -*-
import paho.mqtt.client as mqtt
def on_message(client, userdata, message):
msg = str(message.payload.decode("utf-8"))
print("message received: ", msg)
print("message topic: ", message.topic)
def on_connect(client, userdata, flags, rc):
client.subscribe('/home/data')
BROKE... | [
"noreply@github.com"
] | noreply@github.com |
7d24796dbd0d898a68cd8216e62ea5d384bf579f | 3b0c0a1393bd5f0add4fb3bd5ef0f74f9beca958 | /dags/first_dag/dag.py | 8f842477e9c2853af083bbff2cb3e972dae52a90 | [] | no_license | ahnsv/humphrey-airflow | bd8bf515c1f7c9f78e86be9be7d391db86557854 | 5b1bc12c94289fde8cdf05d42766bf8aedbf122d | refs/heads/master | 2023-02-07T15:23:06.318056 | 2021-01-03T15:41:57 | 2021-01-03T15:41:57 | 323,000,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | from airflow import DAG
from airflow.operators.bash_operator import BashOperator
from airflow.operators.dummy_operator import DummyOperator
from airflow.utils.dates import days_ago
with DAG(dag_id="first_dag", start_date=days_ago(2), schedule_interval="@once") as dag:
first_dag_task_1 = DummyOperator(task_id="firs... | [
"ahnsv@bc.edu"
] | ahnsv@bc.edu |
ad9a97ba23b9a858b527bb104d6d9112c65b8f78 | c10d048a4ad2d4fcef903371970a50236a6c9e8c | /python/수업자료/파이썬 개인연습/scrapping/basic/3_requests.py | c6b1ac3e8c7d5eaface22dc312c02ef3a71dc5a0 | [] | no_license | denim5409/connected | 1a2980569649cf276ed51c8f9f9c22425d1cdcde | bf44b76c043b0b984031b8f9e8dbb5ab875c80b0 | refs/heads/master | 2022-12-12T07:17:02.228511 | 2020-09-01T07:07:47 | 2020-09-01T07:07:47 | 260,469,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | import requests
# res = requests.get("http://naver.com")
res = requests.get("http://google.com")
# res = requests.get("http://nadocoding.tistory.com")
res.raise_for_status()
#print("응답코드 : ", res.status_code) #200이면 정상
if res.status_code == requests.codes.ok:
print("정상입니다.")
else:
print("문제가 생겼습니다.[에러코드 ", res... | [
"denim3@hanmail.net"
] | denim3@hanmail.net |
84f719db77d5ee7f722e08c95dd6bff85761425f | 25e989e986522cf91365a6cc51e3c68b3d29351b | /databases/migrations/2018_06_26_165322_add_is_active_to_users_table.py | e16a431117d57b3dbff7c92a8a01d0b377b0c016 | [
"MIT"
] | permissive | josephmancuso/gbaleague-masonite2 | ff7a3865927705649deea07f68d89829b2132d31 | b3dd5ec3f20c07eaabcc3129b0c50379a946a82b | refs/heads/master | 2022-05-06T10:47:21.809432 | 2019-03-31T22:01:04 | 2019-03-31T22:01:04 | 136,680,885 | 0 | 1 | MIT | 2022-03-21T22:16:43 | 2018-06-09T01:33:01 | Python | UTF-8 | Python | false | false | 398 | py | from orator.migrations import Migration
class AddIsActiveToUsersTable(Migration):
def up(self):
"""
Run the migrations.
"""
with self.schema.table('users') as table:
table.integer('is_active').nullable()
def down(self):
"""
Revert the migrations.
... | [
"idmann509@gmail.com"
] | idmann509@gmail.com |
11357bebc3ab6f797658d1104cd27495ab7ae724 | 5584cda2277c7844994e69429c9a8e1caf40372d | /backend/api/migrations/0006_auto_20180513_1602.py | 2cfa7eee55b934f5b8f868726d870543a8286e7e | [
"MIT"
] | permissive | radiodiodi/sahkopiikki | 28bcb318aeb88418b1a355afbc04326084d1a239 | 7ef6e04aa09fe135748579d1dfb3b294fa707be5 | refs/heads/master | 2021-07-16T11:47:03.690253 | 2019-01-05T12:24:29 | 2019-01-05T12:24:29 | 132,782,712 | 0 | 1 | MIT | 2018-09-28T20:05:09 | 2018-05-09T16:13:30 | HTML | UTF-8 | Python | false | false | 543 | py | # Generated by Django 2.0.5 on 2018-05-13 16:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0005_auto_20180509_1525'),
]
operations = [
migrations.AddField(
model_name='product',
name='visible',
... | [
"jan.tuomi@eficode.com"
] | jan.tuomi@eficode.com |
f265c538bca574ea9aea780f50b0f77efc8e9a8f | eed4f84d17622478632d84302108beeef2126ee6 | /a.py | b21e149d5c2592bd154df8957e7087a51c03e07d | [] | no_license | bholanathbarik9748/doraemon-drawing | f77a6a80b6d096e131f58d0155c0a468f7bf1445 | 46630602d0407dfcd6e6900dae69b6022836f94d | refs/heads/main | 2023-08-24T20:53:21.474830 | 2021-10-09T20:27:56 | 2021-10-09T20:27:56 | 415,409,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,248 | py | from turtle import *
def ankur(x, y):
penup()
goto(x, y)
pendown()
def aankha():
fillcolor("#ffffff")
begin_fill()
tracer(False)
a = 2.5
for i in range(120):
if 0 <= i < 30 or 60 <= i < 90:
a -= 0.05
lt(3)
fd(a)
else:
a ... | [
"noreply@github.com"
] | noreply@github.com |
231de229f8640b4441b51017c603ff5e55218623 | 9437f95dc5ede0a92603fba3ba63efb1d5bd68be | /ECE/Homework/ECEHW6/ECEHW6.py | fb45638312001356ca0b97fd076d36701b062f84 | [] | no_license | github-young/StudyAtDuke | 29024d0a136368c6c66c404410db928d9607cea7 | 3917477fd66473c04ebc228a7d2d769d107c9f9c | refs/heads/master | 2021-01-23T22:16:08.971773 | 2018-04-10T11:24:01 | 2018-04-10T11:24:01 | 128,921,305 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | #coding:utf-8
import numpy as np
e = 1.6e-19
k = 1.38e-23
T = 300
Is = 6e-14
Vo = 0.635
R = 1000
def ID(VD):
return Is*(np.exp(e*VD/k/T)-1)
print('%.2e' %(ID(Vo)+Vo/R)) | [
"xymailmooc@163.com"
] | xymailmooc@163.com |
f2d1c0be9eea087c203631bb992590c065f0d1a1 | 5f954b511fb369b9897b7a1220c444236d681bef | /chap02/game_of_life_patterns.py | 8d05344fc1b3c7ca60cbae3138fd3ab9654bd004 | [
"MIT"
] | permissive | hidehiro98/alife_book_src | f1c279229867e9c4bd26d4418c7ddafc0c3dbe1c | dcb1c549394a32460fd78033ddf1de22e2f3776f | refs/heads/master | 2020-07-26T16:07:24.501042 | 2019-10-04T06:15:01 | 2019-10-04T06:15:01 | 208,699,386 | 1 | 1 | null | 2019-10-04T06:15:06 | 2019-09-16T03:11:11 | Python | UTF-8 | Python | false | false | 1,136 | py | import numpy as np
STATIC = np.array(
[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[1,1,0,0,0,1,1,0,0,0,0,1,1,0,0,0,1,1,0],
[1,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,1],
[0,0,0,0,0,1,1,0,0,0,0,1,0,1,0,0,0,1,0],
[0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0],
])
OSCILLATOR = np.array(
[[1,0,0,0,0,1,0,0],
[1,0,0,0,1,0,0,1],
[1,... | [
"norihiro.maruyama@gmail.com"
] | norihiro.maruyama@gmail.com |
36816de45ebb8fd4952edd2a259b01590cc28935 | 1d4685e698871e839ac270f3f1acb2b8597a30cf | /api/urls.py | 0ee5adbfd585c7f0c1f31b95a0857fc82161ec9b | [] | no_license | lotus-dev-inspiration/MedMagazine | 07037e4163e833186d4674876ef2291ecf1326fd | 1cb0907f9cb09907cc48049ba576e8d297a289c5 | refs/heads/master | 2021-05-01T18:55:21.634193 | 2019-02-02T09:56:10 | 2019-02-02T09:56:10 | 121,011,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | from django.urls import path
from rest_framework import routers
from rest_framework_jwt.views import obtain_jwt_token
from .views import StagesViewModelViewset,ArticlesViewModelViewset,UserViewset, ArticleViewset, GetUserFromToken, CommentViewset, JournalViewset
router = routers.DefaultRouter()
router.register(r'use... | [
"spyrot.com@gmail.com"
] | spyrot.com@gmail.com |
240b036586fb7f56681f4b847e5c7f238329931a | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/plantagenet.py | 2477aa615648c2fa4fd3b2f52656b0e68052b2f4 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 177 | py | ii = [('TennAP.py', 1), ('ClarGE2.py', 1), ('ClarGE.py', 1), ('LandWPA2.py', 1), ('WadeJEB.py', 2), ('SoutRD2.py', 1), ('MereHHB2.py', 2), ('SadlMLP2.py', 1), ('BeckWRE.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
bcd5a31c70abc1f33643b0f11432161036bbdea5 | 174821d4fd571ed3922539aaa42d2e7db9d87be3 | /Library/catalog/views.py | baccecff74680bbb7b3a78478b2c5e89cd3e967c | [] | no_license | Motech2/repo_test | 49ab8478293bc794adec3f114103a2561aa76f0e | 95277cb619d72fc2730669cbd17e5a391e316976 | refs/heads/master | 2022-11-11T16:38:36.193673 | 2020-06-15T21:17:27 | 2020-06-15T21:17:27 | 271,621,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | from django.shortcuts import render
from . import models
def index(request):
"""
View function for home page
"""
# generates count of the some of main object
num_books = models.Book.objects.all().count()
num_instances = models.BookInstance.objects.all().count()
# Available books
avl_in... | [
"Mohamad.thrn7@gmail.com"
] | Mohamad.thrn7@gmail.com |
9f79b9b510887760e65cb80fcde8be2cc6a4af2d | c494d6e49ed5eaf9a26210bc665c3069379ce4f2 | /pdt.py | afa1a98bc40b234bf4e79a4215eb46925d076ea7 | [] | no_license | Ppetitjean/PDT | dcc39c766aa4c127e6baa738ab262302f838c435 | be33a77164addff7139a6bffad9195ea03773697 | refs/heads/master | 2021-01-10T16:05:58.493803 | 2015-11-27T12:55:02 | 2015-11-27T12:55:02 | 46,980,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | from math import pi
rho16 = 998.9
rho0 = 999.8
mu = 8.9e-04
nu = mu/rho16
r = 0.033
d = 2*r
h = 0.11
w = 2*pi*1000/60
v = w*r
Re = (v*h)/nu
print("Re",Re)
Pr = nu/h
print("Prandt",Pr)
Nux = 0.029*(Pr**0.43)*(Re**0.8)
print("Nusselt x",Nux)
Nu = (1/0.8)*Nux
print("Nusselt",Nu)
kf = 0.5985
hx = kf*Nu/h
print("hx",hx)
hou... | [
"ppetitje@ppetitjeU14.05"
] | ppetitje@ppetitjeU14.05 |
b02c883d91003dcf7bfb8a16493afefea4491ad0 | 8b631a9a06d9713be9d4176c7f6dee84f30a0e7b | /music_site/music_site/settings.py | d85685e8022d78381343514ad2a4e1b4c0f56397 | [] | no_license | Abeautifulsnow/music_site | cf03bb68ba8d935aa71736cbc4a88a1d6a5f7e91 | 510051c617e509f412f78c7bcc6e05593e1cfdb0 | refs/heads/master | 2022-12-10T08:37:14.440984 | 2020-11-12T15:00:30 | 2020-11-12T15:00:30 | 182,399,330 | 0 | 0 | null | 2022-12-08T01:44:32 | 2019-04-20T11:47:19 | JavaScript | UTF-8 | Python | false | false | 4,321 | py | """
Django settings for music_site project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os... | [
"1491444340@qq.com"
] | 1491444340@qq.com |
6bfa7de91c5b3465d54ffa63e86ba56adc35cf78 | ba0731b2dbc4c1529eaaa79811ec15754c19b4cd | /references/domain.py | 9d612aaa40fa48d9746f598c63c465aedf4bba37 | [
"MIT"
] | permissive | arXiv/arxiv-references | 35f87084cf91947c572faf1a86f119b308fada66 | a755aeaa864ff807ff16ae2c3960f9fee54d8dd8 | refs/heads/master | 2022-12-21T02:34:57.166298 | 2018-05-04T20:30:48 | 2018-05-04T20:30:48 | 94,906,433 | 8 | 6 | MIT | 2022-12-08T02:06:20 | 2017-06-20T15:26:25 | Python | UTF-8 | Python | false | false | 3,178 | py | """Core data structures in the references application."""
from typing import List, Optional
from datetime import datetime
from base64 import b64encode
from dataclasses import dataclass, field, asdict
from unidecode import unidecode
@dataclass
class Author:
"""A parsed author name in a bibliographic reference."""... | [
"brp53@cornell.edu"
] | brp53@cornell.edu |
25130ab09f8e548b258a0c283403e9b0ef120e9b | 682a994f0273f284072eec9cc38e945bb78d7608 | /TestCase/serializers.py | 4fbb3462e384874a8089d06231f64990dea105ff | [] | no_license | vikas981/Test-Suite-Project | 5422e2a8a7557351435313f49d8c45e17cc3fdaa | 288d5c2ab608b5810120faea59fbb6d3fcb8a922 | refs/heads/master | 2022-12-11T14:25:41.069671 | 2020-09-20T06:55:34 | 2020-09-20T06:55:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | from rest_framework import serializers
from .models import *
class TestcasedetailSerializer(serializers.ModelSerializer):
class Meta:
model = Testcasedetail
fields = "__all__"
class TestcaseSerializer(serializers.ModelSerializer):
testcase = TestcasedetailSerializer(many=True, read_only=True... | [
"vs98990@gmail.com"
] | vs98990@gmail.com |
f4339399ad6cd480e188d82d55400b393b803001 | bf349033ed0e056c5062c50553c7fd974b130224 | /1-Easy/093-CapitalizeWords/CapitalizeWords.py | 08e666f44620cc41c33f17d15c20d9e7f10ba445 | [] | no_license | jfsawyer88/CodeEval | dd15c117b017d37e221ad5fc3c14895480f5de04 | 5523508912bb6caee2ac5a6f34cef23a67cf9326 | refs/heads/master | 2021-01-10T09:08:59.019708 | 2015-11-25T19:29:36 | 2015-11-25T19:29:36 | 43,508,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | ## CodeEval
## Capitalize Words
import sys
f = open(sys.argv[1], 'r')
for line in f:
line = line.strip().split()
sys.stdout.write(line[0][0].upper() + line[0][1:])
for i in xrange(1, len(line)):
sys.stdout.write(' ' + line[i][0].upper() + line[i][1:])
sys.stdout.write("\n")
f.close()
| [
"jfsawyer88@gmail.com"
] | jfsawyer88@gmail.com |
e97e19e7f23ff641f4e5c0d2b1bc0e25611e095f | e01963d8f0a0aab92a892173306191f3b6373303 | /core/models.py | 0bc7a077aa562cb336526501d45d6530ba24e694 | [] | no_license | vikeie/event_management | 60a0a476442ea0f899fda37c6735e715939a5907 | 46f408783c7f1ef074d43227ebd11ad89f8d319c | refs/heads/master | 2023-08-12T16:11:01.789603 | 2021-10-05T10:14:44 | 2021-10-05T10:14:44 | 326,009,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.
class User(AbstractUser):
mobile_number = models.CharField(max_length=15, blank=True, null=True)
full_name = models.CharField(max_length=15)
# USERNAME_FIELD = 'email'
def __str__(self):
... | [
"Vignesh_Soundarajan@contractor.amat.com"
] | Vignesh_Soundarajan@contractor.amat.com |
a74f4b8ebb67e59cb367707ce8dbaae29cafc3b7 | bc09945b8653433c81faf27368fdddfb8f2e208b | /powershell2python.py | 1d370390b3fe3bc4c2236ab33ca0b093b64da647 | [] | no_license | ageev/Python | 93c8ed0b5a74fef3f0692fdc96d8c1f886810a4b | 333b207dedf429f1a20d07ec4ba593282355e720 | refs/heads/master | 2022-02-08T16:54:39.468137 | 2022-01-26T14:06:01 | 2022-01-26T14:06:01 | 224,174,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | #!/usr/bin/env python3
# """ script runs powershell cmdlets via Python and grabs the result
import subprocess
args = ["powershell.exe", "-Command", r"-"]
cmdlet = "Get-ADUser -Filter{displayName -like 'Artem Ageev'} \r\n"
def main():
print(run_cmdlet(cmdlet))
def run_cmdlet(cmdlet):
process = s... | [
"noreply@github.com"
] | noreply@github.com |
aa4cbc5552bcffea19a902747849254497cd4a66 | 2a460bb080a921bacb330848f487fca69ce7bbea | /users/migrations/0001_initial.py | 5f34d156de519d03faf424a1d3288002adc85a41 | [] | no_license | SameeranB/DialADiet | 39909b45549687ee26340e9ede9f0a81615bed0c | ea257a6e18552373d317101ec7c19606b4ef99ec | refs/heads/master | 2022-08-26T17:21:29.168942 | 2020-04-22T13:06:48 | 2020-04-22T13:06:48 | 252,632,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,577 | py | # Generated by Django 3.0.5 on 2020-04-06 18:50
from django.db import migrations, models
import django.utils.timezone
import phonenumber_field.modelfields
import users.models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissions'),
]
... | [
"sameeranbandishti@ieee.org"
] | sameeranbandishti@ieee.org |
7b66b925a73790e4aaf1a9068d9c96e34ae8985d | 2d048e630f8d9c546860820ef27700c1020b44cd | /th.py | 5ae01e2c7426d7eb7c21903856965982279d5aca | [] | no_license | 0h-n0/tch-mnist-simple-benchmak | 60ce3b6500f161f9a768e965d82eadf50a1e051f | c2f07661b64c83de82ad760b4a7b20b601a7129b | refs/heads/master | 2020-12-31T22:36:26.946751 | 2020-02-08T02:40:40 | 2020-02-08T02:40:40 | 239,057,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,243 | py | from __future__ import print_function
import time
import argparse
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torchvision import datasets, transforms
from torch.optim.lr_scheduler import StepLR
class Net(nn.Module):
def __init__(self):
super(Net, sel... | [
"kbu94982@gmail.com"
] | kbu94982@gmail.com |
083ccd71342f3be0d239b2f71bf267e5f0be4168 | 95cb696bf6c6de113d2d7c1119f3c951d099910b | /tests.py | e0cc267438db99da10bcb6cc03e70e16dd137027 | [] | no_license | inhumanitas/openstack_tools | 7e84b4347594194e1c613e61d7691e5575e2804f | 4008e94d77c804e5c53fba6c7ee2ce06d94fb32c | refs/heads/master | 2021-01-22T23:20:26.719412 | 2015-02-20T13:49:57 | 2015-02-20T13:49:57 | 30,832,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,761 | py | # coding: utf-8
import os
import testtools
import yaml
from openstack_tools.heat_tools.api import (
get_orchestration_api_url, get_heat_client, create_stack_by_template,
delete_stack, action_stack, StackActions, stack_info, stack_status)
from openstack_tools.helpers import get_auth_from_settings
from openstack... | [
"morose@localhost.localdomain"
] | morose@localhost.localdomain |
35b0f166e801afe759717080215a61605c8e6597 | 871830ee646e9ee34da39f3a00ef2e948e5d52d0 | /Módulos, paquetes y namespaces/modulo_datetime_date.py | 2654b27b1f1272ac90692b3723a08d33884f8613 | [] | no_license | nlutsevi/curso_python | 4a95256d0cc300fe9b9a6da6e97fc360c3fbb5c2 | 450cd1ee87706d2af064f00b053745841e992932 | refs/heads/master | 2023-06-12T05:48:45.127218 | 2021-07-06T14:58:35 | 2021-07-06T14:58:35 | 368,945,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | from datetime import date
cadena = input("Dime la fecha de tu cumpleaños en formato(YYYY-MM-DD): ")
cumple = date.fromisoformat(cadena)
print("Naciste el año %d mes %d y día %d" % (cumple.year, cumple.month, cumple.day))
print("La semana del año fue:", cumple.isocalendar()[1])
hoy = date.today()
print("Hoy es", hoy)
... | [
"nlutsevi@c1r9s1.42madrid.com"
] | nlutsevi@c1r9s1.42madrid.com |
ed34089d75838c5200f1175d0b9aece8648523e1 | 36b75aac4236e928e22552e8812abd45d32aecf1 | /modules/dbnd-airflow/src/dbnd_airflow_contrib/utils/system_utils.py | 88d9452cd26e2ec091d604cdb48fdd92751efb1d | [
"Apache-2.0"
] | permissive | reloadbrain/dbnd | 7793aa1864f678005de626068b0ac9361d637d65 | ec0076f9a142b20e2f7afd886ed1a18683c553ec | refs/heads/master | 2023-09-01T08:04:09.486666 | 2021-10-14T16:43:00 | 2021-10-14T16:43:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,451 | py | import logging
import re
import subprocess
logger = logging.getLogger(__name__)
def print_stack_trace(stack_frame):
try:
import traceback
traceback.print_stack(stack_frame)
except Exception as e:
logger.info("Could not print stack trace! Exception: %s", e)
def print_cpu_memory_usa... | [
"roman.slipchenko@databand.ai"
] | roman.slipchenko@databand.ai |
fbfca089c0d2651faeaa9a55a6fcb9f1cef4dccc | 13530803348c93e0de5af8fd89c568005610c900 | /CursoemVideo/ex063.py | 9cc02fd35f23441c08bc9db9e072c8f8d702c8dc | [] | no_license | gabriel-bri/cursopython | 73e266244077299e8b9ed0e157dcef4a915a8f16 | 9f5e9cb9fbc48f89c642b5e8d2b57d19d33d3ec3 | refs/heads/master | 2022-12-16T16:15:03.043665 | 2020-09-12T18:23:10 | 2020-09-12T18:23:10 | 292,585,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | print('-' * 30)
print('Sequência Fibonacci')
print('-' * 30)
n = int(input('Digite quantos termos você quer? '))
t1 = 0
t2 = 1
print('{} -> {} ' .format(t1, t2), end='')
cont = 3
while cont <= n:
t3 = t1 + t2
print('-> {} '.format(t3), end='')
t1 = t2
t2 = t3
cont += 1
print('-> FIM') | [
"gabrielbritodacruz@gmail.com"
] | gabrielbritodacruz@gmail.com |
d03eeec1e5b79cbecc4c26dbb470874471699881 | f79876f9208bdce900e3b1484f0681a44a930d7b | /incident/migrations/0001_initial.py | ff55865ea15289fdd29081504409e0d52668abb5 | [] | no_license | metalica20/neoc | 18ce98ee7d946e8fb83bf054db70a1e3482a4ebe | d3ab1e11e66af343bcea7eb4342cba2274301c90 | refs/heads/sumit | 2022-06-01T19:31:59.659189 | 2019-04-15T07:53:08 | 2019-04-15T07:54:25 | 173,900,751 | 0 | 0 | null | 2022-05-25T03:04:53 | 2019-03-05T07:54:47 | JavaScript | UTF-8 | Python | false | false | 3,170 | py | # Generated by Django 2.1.5 on 2019-02-17 02:32
import django.contrib.gis.db.models.fields
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('hazard', '0001_in... | [
"bishaltimilsina@gmail.com"
] | bishaltimilsina@gmail.com |
e9412f059bd294e9c714c654cf555858d596bc11 | 22051d8a5069bd905a5ca7831865831fe81ef9f1 | /initializer/__init__.py | 2ec90f13bee8e7f3cab60e24e80dc81fca093a72 | [] | no_license | Solitry/convex_hull | 94283139974cb09b84893f9d42a90c48fa42320e | c3570d11e0df4389fc020e097eb334977a892690 | refs/heads/master | 2020-07-29T18:27:16.415715 | 2019-09-21T07:47:34 | 2019-09-21T07:50:53 | 209,917,447 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | from .linear_layer_init import LinearLayerInit
init_type_list = [
LinearLayerInit,
]
| [
"shineflyyy@foxmail.com"
] | shineflyyy@foxmail.com |
d971cd5adcf944f961e3a880ed247c1f0f3464c2 | 0ef98f8a60e4d30001c918dae6fa7ac6283abca9 | /61.py | 8fb34a02053700a90124fd61efbb6ce24271c8d1 | [] | no_license | samrithasudhagar/pro | a0169fc89c8c6d6189ac984ec3fab26e23269264 | c90cb60fefb74174f12db5ee80812c2374e4e3ce | refs/heads/master | 2020-04-22T11:00:47.588732 | 2019-06-20T09:43:28 | 2019-06-20T09:43:28 | 170,324,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | a=input()
c=input()
s=""
l=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
for i in range(len(a)):
k=l.index(a[i])
p=l.index(c[i])
s=s+l[(k+p)%26+1]
print(s)
| [
"noreply@github.com"
] | noreply@github.com |
acc995d854631646d983a7ff870e24afe5ecaf7b | eeaa9fffb3942378ed559a2275edc815f79eb7d8 | /modul 6/no.7.py | 981fcfd304aa2c12ccf152b612ac57f3422b6d33 | [] | no_license | L200180146/algostruk_f | e0bcaa075a6ed6985a8ede17b474c29ed694c04c | 3e43228b243d1d1bb2958d9e82fc54320921af0e | refs/heads/master | 2021-02-13T02:21:34.306461 | 2020-04-22T12:12:45 | 2020-04-22T12:12:45 | 244,652,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,010 | py | from time import time as detak
from random import shuffle as kocok
import time
from Modul5 import *
from Modul6 import *
def mergeSort2(A, awal, akhir):
mid = (awal+akhir)//2
if awal < akhir:
mergeSort2(A, awal, mid)
mergeSort2(A, mid+1, akhir)
a, f, l = 0, awal, mid+1
t... | [
"noreply@github.com"
] | noreply@github.com |
1d5335c1143e77bce3f8388759c73ce3a3bc16fb | 421a900e2805887c7bd7bc660f44cde722a9c4e4 | /Midterm_Graph_DatabaseVersion/MidtermProject_Changming Feng/Coding_database_files/Main.py | 3dc92057d6f13a212ee9595694f2de6cf6d9d7fe | [
"MIT"
] | permissive | cmfeng/CEE505 | bf68bf5b2b7b73e2670728fa520e2615b76bf55e | 8974562f01461d1f8113e3abb88c704394c2b370 | refs/heads/master | 2020-07-27T19:48:58.542600 | 2016-11-11T00:04:30 | 2016-11-11T00:04:30 | 73,426,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py |
from Graph import *
g = Graph('Graph.db')
#print g
nodeIDi='SEA'
nodeIDj='MIA'
shortpath=g.findShortestPath( nodeIDj, nodeIDi)
print shortpath
| [
"changming927@gmail.com"
] | changming927@gmail.com |
62fdd1973fbddfbf30cd85e7f87fde1835903f27 | db845c7d4462317f871edffdefd7aeb68303b13a | /Test/TestManager.py | ab574fad9ed84c1cdfe69972be3d23a968cd8800 | [] | no_license | eik4862/TinyCalculator | 45a64b56ec3165718d2302ca7cf3f769a74967b9 | 002249e66c6b7368e4a49e9266ee4bc261adc99a | refs/heads/master | 2021-01-01T01:01:32.808128 | 2020-03-18T15:01:01 | 2020-03-18T15:01:01 | 239,106,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,905 | py | import os
import statistics
import time
from decimal import Decimal
from typing import List, final, TextIO, Final, Tuple
from Core import Type, DB
from Function import Trigonometric, Hyperbolic, SpecialFunction, Exponential
from Util import Printer
@final
class TestManager:
"""
Run tests for numerical analys... | [
"lkd1962@naver.com"
] | lkd1962@naver.com |
e5d148377f281451a04b29aa1ba61f66b2a2f021 | 150d9e4cee92be00251625b7f9ff231cc8306e9f | /LongestCommonSubsequenceSP.py | bcfcc3820f481d704dc5053bddf126c12d6f8f44 | [] | no_license | JerinPaulS/Python-Programs | 0d3724ce277794be597104d9e8f8becb67282cb0 | d0778178d89d39a93ddb9b95ca18706554eb7655 | refs/heads/master | 2022-05-12T02:18:12.599648 | 2022-04-20T18:02:15 | 2022-04-20T18:02:15 | 216,547,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | '''
1143. Longest Common Subsequence
Given two strings text1 and text2, return the length of their longest common subsequence. If there is no common subsequence, return 0.
A subsequence of a string is a new string generated from the original string with some characters (can be none) deleted without changing the relati... | [
"jerinsprograms@gmail.com"
] | jerinsprograms@gmail.com |
db970fba12cef3fd3dc931f70a998a1bb9b80ed5 | 5b52feaf975c810693bbd9c67deb061824cdca32 | /Darlington/phase-2/FILE 1/O/day 84 solution/qtn3.py | 13efc55791274ad1db6d3c1951ab660afa1f5ddb | [
"MIT"
] | permissive | darlcruz/python-challenge-solutions | 1dd21796b86f8fdcfa9a1a15faa26ab3e8e0f7b1 | 3e03a420d01177b71750d4d1b84cb3cbbf8c6900 | refs/heads/master | 2022-12-20T23:50:08.641120 | 2020-09-28T21:34:14 | 2020-09-28T21:34:14 | 263,591,779 | 0 | 0 | MIT | 2020-05-13T10:00:21 | 2020-05-13T10:00:20 | null | UTF-8 | Python | false | false | 372 | py | # program to create a file where all letters of English alphabet are listed by
# specified number of letters on each line.
import string
def letters_file_line(n):
with open("words1.txt", "w") as f:
alphabet = string.ascii_uppercase
letters = [alphabet[i:i + n] + "\n" for i in range(0, len(alphabet), n... | [
"darlingtonchibuzor64@gmail.com"
] | darlingtonchibuzor64@gmail.com |
869346c339d17559765444ba752e5b7d83edd7bd | 1d0da695f42cf0c20311c2c583f23e8f68e5acbc | /tensor2tensor/mesh_tensorflow/simd_mesh_impl.py | 3033e53d3cd9a466f9c396bd67dec0022c95fca4 | [
"Apache-2.0"
] | permissive | fbpatel/tensor2tensor | be5ed143bdad30ffa41274cf64268dcc45ad6b99 | 271da5289a10249f41fcebf3b7fbb50bbbd9041e | refs/heads/master | 2020-03-25T20:41:40.663350 | 2018-08-09T04:57:35 | 2018-08-09T04:58:07 | 144,141,419 | 1 | 0 | null | 2018-08-09T11:08:08 | 2018-08-09T11:08:08 | null | UTF-8 | Python | false | false | 11,524 | py | # coding=utf-8
# Copyright 2018 The Tensor2Tensor Authors.
#
# 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... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
85bd68d84dcef5d103ba1d31bd5950593287bb73 | 87df65f3c5b2466785156e1cb2303c2f6a76db60 | /finickyfeeds/feeds/services.py | d9593e5da1e5dfa3bbb15dd7db7d4058d424b927 | [] | no_license | aaronyo/finickyfeeds | 5c26319ed44d443f1961307ac5095491f4081154 | 6fdc8c1e285f506a167284ba73d88b02f7e64315 | refs/heads/master | 2016-09-05T09:26:32.234518 | 2012-01-10T19:34:26 | 2012-01-10T19:34:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,789 | py | """ Operations that are best represented as separate functions rather than
coupled to a particular model definition. """
from finickyfeeds.feeds.models import Feed
import feedparser
def feed_for_url( url ):
"""
Return the matching Feed instance or create a new one.
* If a new feed is created, it will n... | [
"aaronyo@Tupelo.local"
] | aaronyo@Tupelo.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.