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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19f030eeaf16a07224b934871ffad46de4011858 | 934235f70a390a3ba0d7b464cddd10872f31cda3 | /auction/auction/migrations/0012_auto_20210329_1515.py | e0a2ab42ef0fd92803ce83ab6d4e895d55838d22 | [] | no_license | deji100/Projects | 6919041ba23e77a5c74e5ab7692bfcee38ececcb | 17e64d954d1d7805be57ec5d8d4344e4944889e6 | refs/heads/master | 2023-04-30T05:25:03.143303 | 2021-05-20T15:00:43 | 2021-05-20T15:00:43 | 338,844,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # Generated by Django 3.1.3 on 2021-03-29 14:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auction', '0011_auto_20210326_2149'),
]
operations = [
migrations.AlterField(
model_name='listing',
name='sold_out',... | [
"68882568+deji100@users.noreply.github.com"
] | 68882568+deji100@users.noreply.github.com |
164dd8a77c7f391b3617bdcc240a72b47b2aef70 | 18e74c9f02507f1a833e75c2efc94a71431ee42a | /weather/weather.py | d46746aabd4c1bb78df1ac37e6634ebd9c16b742 | [] | no_license | myronp2/weather-app | 21586977ce0817d79d4b6259708e61e8ca47698d | d59ab4e4cc3c2f708b993e216312f928ed556d5f | refs/heads/master | 2022-12-01T03:04:51.498409 | 2020-07-23T14:37:23 | 2020-07-23T14:37:23 | 280,410,084 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,597 | py | import json
import requests
from tkinter import *
from PIL import ImageTk,Image
# Required Details
root = Tk()
root.geometry("320x320")
root.title("Weather App")
root.configure(bg='white')
img = ImageTk.PhotoImage(Image.open('01d.png'))
panel = Label(root,image=img)
panel.place(x=112,y=3)
lable_0... | [
"noreply@github.com"
] | noreply@github.com |
0041445257f142a11a0ebda89a1e67e58601869d | 736f6e31f2d32ffae86e35b58ca51033028dfb48 | /3.1.py | c1868dcdde7c3a7ad3a424a5fb77bb43bc5efeee | [] | no_license | brandypoiry/PY4E_Class | 7cc04884fee1e9b482f5eee94835a0c5537884d3 | fbf53a785bfbd5904e4ff5331c6c6a45ab168420 | refs/heads/master | 2020-04-13T01:06:07.187203 | 2019-01-08T04:23:34 | 2019-01-08T04:23:34 | 162,864,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | hours = float(input("Enter Hours: "))
rate = float(input("Enter Rate: "))
if hours > 40:
overtime = float(hours-40)
pay = (40*rate)+(overtime*1.5*rate)
else: pay = hours*rate
print pay
| [
"alex.poiry@gmail.com"
] | alex.poiry@gmail.com |
8cca21dc1dfb3c3e8dabd4d6e00022561017415a | c83acc6433aa8ef7703192e9033fe7cd92b2cccf | /traits/observation/exceptions.py | 5e57b713bc5ff8d4c1000491d5a4eb9aad8a3be8 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"CC-BY-3.0"
] | permissive | oscarpicas/traits | 857f5c06f3caf06003aed8b21b502b66ca8ba6cc | e72691a2f8aa34529af431d6b6b8c1a476ef4107 | refs/heads/master | 2022-03-17T10:30:08.330129 | 2022-02-18T21:01:50 | 2022-02-18T21:01:50 | 26,197,506 | 0 | 0 | null | 2015-01-10T04:01:48 | 2014-11-05T01:39:56 | null | UTF-8 | Python | false | false | 504 | py | # (C) Copyright 2005-2022 Enthought, Inc., Austin, TX
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in LICENSE.txt and may be redistributed only under
# the conditions described in the aforementioned license. The license
# is also available online at... | [
"noreply@github.com"
] | noreply@github.com |
45fa0314f8700ee928130049e923c5fcc35a5706 | c6e3169dcfc591c50cb7292476ebec21f0be6cc1 | /neural_network.py | 83bd98442b063e9442a4396c4ddb1bae4d7d15e3 | [] | no_license | Spacegod007/quickdraw-doodle-recognition | 8226dde519abcd461881e8d686899ba2fdd69dcb | 7d01e2a8afb03fc3cd3fbde17aa55a7c16f3de4d | refs/heads/master | 2020-12-18T09:45:30.005475 | 2020-01-21T12:14:52 | 2020-01-21T12:14:52 | 235,334,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,633 | py | import numpy as np
import pandas as pd
from keras.layers import Dense, Reshape, Flatten, Dropout, Conv2D, Activation, BatchNormalization
from keras.models import Sequential
from keras.optimizers import Adam, Adagrad
from keras.utils import to_categorical
from sklearn.model_selection import train_test_split
from sklear... | [
"jordivanroij@live.nl"
] | jordivanroij@live.nl |
de9b26458e3575f7c60a4e8e4d0177f6679c99b4 | 0c67202abcf632fe949a203d479ff865a12ad0bc | /Python files/Programming/Excersize 2.py | 290e7e3570156d5af6bab1d0505e778b96abda36 | [] | no_license | alf202/Python-3.4 | a8accba7af2a5d9eebef21e08d1775d7cc1f305c | a89c90000f3278f0d64b7106a80bc8ea174b02aa | refs/heads/master | 2021-01-11T01:54:37.883920 | 2017-11-24T19:09:17 | 2017-11-24T19:09:17 | 70,835,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | choc = "Bounty"
print("Twix", "Bounty", "Mars")
choice = input("Which is your favourite chocolate from the list? ")
'''
## using ==
if choice == choc:
print("Hey!", choc, "is my favourite too...!")
# using !=
if choice != choc:
print("Yuk!")
## now do with else
if choice == choc:
print("Hey! That's my... | [
"alfie@alfiepayne.org.uk"
] | alfie@alfiepayne.org.uk |
ca25dc5334e07d1808f358786bcaf82904395a1f | 77c8c500d4077ad733fbfe2c6a85a1dd47bd3cb5 | /soohyun/python/baekjoon/0714/14890/1.py | edba3f8a5a55290bcb7c3549d30fcc7e6037b623 | [] | no_license | chelseashin/AlgorithmStudy2021 | 786f03c4c17bc057518d428481e7d710d24ec98e | 1a4744a621ed25715fc9060c5224f0b1092d9c00 | refs/heads/master | 2023-06-22T22:27:47.289806 | 2021-07-28T02:54:22 | 2021-07-28T02:54:22 | 326,441,667 | 1 | 5 | null | 2021-06-29T01:27:40 | 2021-01-03T15:44:16 | Python | UTF-8 | Python | false | false | 3,777 | py |
# 걸린시간 1시간 20분
import sys
input = sys.stdin.readline
def count_slope_col(N, L, stairs):
answer = 0
for row in range(N):
count = 1
left = 101
previous = -1
is_slope = True
for col in range(N):
current = stairs[row][col]
#print(f"|{stairs[row][col]... | [
"soohyunkim950921@gmail.com"
] | soohyunkim950921@gmail.com |
8fc6bfb279d1ed3a68bcc97550809b7c0a97922e | 8c3c5695301266e4e42fee3b028adeb19f43cd00 | /burst_detection/__init__.py | 83d6652b47c607f6c19b95a682320dcc6add38ca | [] | no_license | T-Oxy/seasonburst | 09543956f9a918bf87ce01613bdd964daeb58bb2 | af7507d568fe8bcff808c9d1bb72d48f49233c98 | refs/heads/main | 2023-08-26T22:34:52.626866 | 2021-11-09T15:51:42 | 2021-11-09T15:51:42 | 426,268,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,765 | py |
#This module creates definitions for implementing Kleinberg's burst detection analysis on batched data.
import pandas as pd
import numpy as np
from mpmath import log, binomial
#define the transition cost tau: cost of switching states
#there's a cost to move up states, no cost to move down
#based on definition on pg.... | [
"tmk0.ggl@gmail.com"
] | tmk0.ggl@gmail.com |
689adeb931f6bef31959fcee01b791be15cabf44 | 05352c29e844705f02d65526343eea9b486f8bd7 | /src/python/pants/backend/awslambda/python/register.py | b7408cad1f7104ac4ba3e71537a413e10471f00b | [
"Apache-2.0"
] | permissive | DoN-SultaN/pants | af2557de1178faaf73eed0a5a32e8f6fd34d2169 | 5cb5379003a0674c51f9a53f582cf690eddfaf45 | refs/heads/master | 2022-10-15T04:18:54.759839 | 2020-06-13T10:04:21 | 2020-06-13T10:04:21 | 272,089,524 | 1 | 0 | Apache-2.0 | 2020-06-13T21:36:50 | 2020-06-13T21:36:49 | null | UTF-8 | Python | false | false | 1,026 | py | # Copyright 2019 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
"""Create AWS Lambdas from Python code.
See https://pants.readme.io/docs/awslambda-python.
"""
from pants.backend.awslambda.common import awslambda_common_rules
from pants.backend.awslam... | [
"noreply@github.com"
] | noreply@github.com |
c1e24cf4480806be1df014dd2962ab1e6a279e62 | 8deb53a1af3d8f7c1784aed7f5c47a1c1d5412e9 | /redactron.py | a0c3ca4ab5c1da9fc78ffb14dcca838267b63454 | [] | no_license | jdherg/redactron | f1e65b73afb04020f403b70c1b75ec4a266ad2e5 | e0eb9273de08ed920d6c0c5432b9b1c241366e99 | refs/heads/master | 2021-01-21T07:53:23.549612 | 2014-12-11T16:40:09 | 2014-12-11T16:40:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,627 | py | import re
import argparse
import sys
def redact_word(word):
if len(word) < 2:
return word
return word[0] + 'x' * (len(word) - 1)
def reverse_word(word):
return word[::-1]
def redact_positionally(text, positions, redaction_method=redact_word):
for position in positions:
(start, stop... | [
"jdherg@gmail.com"
] | jdherg@gmail.com |
e9521fe46b555678e0ebc2db0006b8b5df5ec17a | a9cf9adba8b1e04b26c9ae5f566a3c0b54fb55da | /algo1.py | 481e7f5ae785d2af7f1ba7ada76da0beebbcd9ea | [] | no_license | woolllff/DAA_project | b432abb91ecb377a65027921506a6e1636c23786 | 3cc70ee663d2b5dabf368d38f1b63d18a57515ae | refs/heads/master | 2022-04-22T12:16:43.208642 | 2020-04-26T15:08:11 | 2020-04-26T15:08:11 | 252,775,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py |
# this is an O(nlog(n)) ago as sorting takes the most time
def makeBetterHalf(a,b,n):
c = []
betterHalf = []
for i in range(2*n):
c.append((a[i]-b[i],i))
betterHalf.append(0)
c.sort()
# c[i][1] gives the index of the orignal position of the element in a or b
for i in rang... | [
"utkarsh.agarwal@iiitb.org"
] | utkarsh.agarwal@iiitb.org |
23b4133f8de9636f4c2a616193bd740c5ebcf944 | 45945952853ab0d4f839360eabce19b6e6d63315 | /proX/users/admin.py | 4fe22b8fa8d56e9c09c1847321dc691fa32ef158 | [] | no_license | 6210612609/projectX | cedfe0d8cb238719ad63740b5062f1de1574344a | b560e5ae0d573a6d6e9634eda123eaaaf73721fa | refs/heads/master | 2023-09-05T15:42:56.411420 | 2021-11-20T18:22:47 | 2021-11-20T18:22:47 | 420,156,712 | 0 | 3 | null | 2021-11-19T15:10:23 | 2021-10-22T15:49:24 | JavaScript | UTF-8 | Python | false | false | 228 | py | from django.contrib import admin
from .models import User, Student, Tutor, Course, Review
admin.site.register(User)
admin.site.register(Student)
admin.site.register(Tutor)
admin.site.register(Course)
admin.site.register(Review) | [
"napatee@tu"
] | napatee@tu |
f6b2ae1c91c2d31c727dab4f01fa4cd3b4e86943 | 4a52c8ef030012d2be06f54c88c9c90f07dc96a0 | /main/views.py | 1d9d364f0e1490b16821f00b52c9384dd312e6b3 | [] | no_license | igiidos/SungWonApartManager | 01c9e25b856f3899805f4e998be5b0030e5caac1 | d8521dabb9895db87a336a9094ba1102f2e9c955 | refs/heads/master | 2022-12-21T22:59:43.661693 | 2019-12-20T23:11:54 | 2019-12-20T23:11:54 | 229,290,722 | 0 | 0 | null | 2022-12-08T07:01:19 | 2019-12-20T15:37:51 | JavaScript | UTF-8 | Python | false | false | 7,665 | py | import re
from django.contrib.auth.decorators import login_required
from django.db.models import Q, Count, Case, When, IntegerField
from django.http import JsonResponse
from django.shortcuts import render, redirect
from django.views.generic import ListView
from main.models import SungWonList, SungWonSettings
def in... | [
"igiidos@gmail.com"
] | igiidos@gmail.com |
fdc80a64579ae8d080ea7732c7de51bfdd52b18f | a4e2b2fa5c54c7d43e1dbe4eef5006a560cd598e | /silk/templatetags/filters.py | 19422dffbef2ed8bba3077129da8477927e3f616 | [
"MIT"
] | permissive | joaofrancese/silk | baa9fc6468351ec34bc103abdbd1decce0ae2f5d | d8de1367eb70f4405f4ae55d9286f0653c5b3189 | refs/heads/master | 2023-04-01T07:30:42.707427 | 2017-02-22T14:06:05 | 2017-02-22T14:06:05 | 23,427,190 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,092 | py | import re
from django.template import Library
from django.template.defaultfilters import stringfilter
from django.utils import timezone
from django.utils.html import conditional_escape
from django.utils.safestring import mark_safe
register = Library()
def _esc_func(autoescape):
if autoescape:
esc = con... | [
"mtford@gmail.com"
] | mtford@gmail.com |
c51b5f0555ca96672b1263323d4fb159a65863db | 629c8c86d43c7b2cfa6354c4545d41c0e967d0e1 | /hw4/schemecompiler/reader.py | c7085a67b6da11587423b7de1775690cc4c4c120 | [] | no_license | drorventura/CompilerPrinciples | 2f27abc4de9aedd70e5d1ee0e01ebd9e03c09bd2 | c2365b3777a11a9eb8582786bf1b7affbbd3c61d | refs/heads/master | 2020-05-19T18:53:33.917986 | 2014-02-16T13:51:36 | 2014-02-16T13:51:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,244 | py | import pc
import sexprs
__author__ = 'Dror Ventura & Eldar Damari'
ps = pc.ParserStack()
# Whitespaces and Comments
anyParser = ps .const(lambda ch: ch) \
.done()
commentParser = ps .parser(pc.pcWhite1)\
.parser(pc.pcChar(';')) \
.parser(anyParser) \
... | [
"ventura2005@gmail.com"
] | ventura2005@gmail.com |
1018714b91af28150d00201eb47c2418dfd1bbe2 | 7257eeeb16ebff1306b630ebcb6b9947cbeebb4e | /Vision_AI/Study/keras/keras14_ensemble3.py | d48630627456a2d6c69e5a0f4b778743a5eb96e5 | [] | no_license | yoonchae125/AI_Image | 7bff706f39a924b2f0630b05a5fd1fb1dff41795 | f44df1ffd00ecad7fbf65ddbda3a980eed4a9719 | refs/heads/master | 2020-11-30T12:47:40.649557 | 2020-03-17T05:18:40 | 2020-03-17T05:18:40 | 230,371,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,146 | py |
#1. 데이터
import numpy as np
x1 = np.array([range(1,101),range(101,201),range(301,401)])
y1 = np.array([range(101, 201),range(201, 301),range(301, 401)])
y2 = np.array([range(1001,1101),range(1101,1201),range(1301,1401)])
y3 = np.array([range(101, 201),range(201, 301),range(301, 401)])
print(x1.shape)
x1 = np.transpo... | [
"yoonchae125@naver.com"
] | yoonchae125@naver.com |
4e821bf5ff638f0d5f8bf8cd7e66dbe3fd01bec1 | 08d316151302f7ba4ae841c15b7adfe4e348ddf1 | /reviewboard/integrations/tests/test_configs.py | 29008ec52f56c465b2b27c813306f2c40fc28b9c | [
"MIT"
] | permissive | LloydFinch/reviewboard | aa8cd21fac359d49b3dfc5a68c42b857c0c04bd8 | 563c1e8d4dfd860f372281dc0f380a0809f6ae15 | refs/heads/master | 2020-08-10T20:02:32.204351 | 2019-10-02T20:46:08 | 2019-10-02T20:46:08 | 214,411,166 | 2 | 0 | MIT | 2019-10-11T10:44:55 | 2019-10-11T10:44:54 | null | UTF-8 | Python | false | false | 4,954 | py | from __future__ import unicode_literals
import logging
from djblets.conditions import ConditionSet
from djblets.forms.fields import ConditionsField
from djblets.testing.decorators import add_fixtures
from kgb import SpyAgency
from reviewboard.integrations.forms import IntegrationConfigForm
from reviewboard.integrati... | [
"christian@beanbaginc.com"
] | christian@beanbaginc.com |
5db30cbaab06d0884d29ed1c8f65f1b1c37eb58b | 29bf51a6acaa9aebb8850b9c762dcc6cac390b3b | /Python基础/code_day_11/可变类型copy解析.py | 07302f4992f72cfdc8df0b3fc5ca3d854af1db05 | [
"MIT"
] | permissive | hengyangKing/python-skin | c54d817de372b0194cbd1ad8c8c2fba086622d36 | 92b78625ab6449a565c4b2b326e70c8990c4a499 | refs/heads/master | 2021-09-10T05:44:20.217775 | 2018-03-21T07:30:24 | 2018-03-21T07:30:24 | 110,012,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | #coding=utf-8
import copy
#可变类型的copy解析
#1.直接赋值,其实就是对象的引用(别名), 赋值引用,a 和 b 都指向同一个对象。;
a = [1,2,3];
b = a;
print(a);
print(b);
print(id(a));
print(id(b));
print("-----");
#2.浅copy,拷贝父对象,不会拷贝对象的内部的子对象,a 和 b 是一个独立的对象,但他们的子对象还是指向统一对象(是引用)
a = {1:[1,2,3]}
b = a.copy();
print(b);
a[1].append(4);
print(a);
print(b);
print(i... | [
"hengyangKing.yeah.net"
] | hengyangKing.yeah.net |
217bfbc22b5eba0e38461df3ecb8b7ff20c228fb | c08f0e4884692367ebb028e03320482b22ae68ea | /data/name_en.py | 5ad072b4c027b0d36521a90d09f46401cdc15fb4 | [
"MIT"
] | permissive | mnbv1775/random_x | 2be13006a84cc6b44397b68444aa58c7393e036b | b8e1b98108a5b612ada7906d85b964b951a86e30 | refs/heads/main | 2023-07-09T13:07:11.530050 | 2021-08-18T04:42:12 | 2021-08-18T04:42:12 | 397,472,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,684 | py | NAME_EN_LIST = [
"fAaliyah","mAaron","fAarushi","fAbagail","fAbbey","fAbbi","fAbbie","fAbby","mAbdul","mAbdullah"
,"mAbe","mAbel","fAbi","fAbia","fAbigail","mAbraham","mAbram","fAbrianna","mAbriel","fAbrielle"
,"fAby","fAcacia","mAce","fAda","fAdalia","fAdalyn","mAdam","mAdan","fAddie","mAddison"
,"fAddison","mAde",... | [
"2546839713@qq.com"
] | 2546839713@qq.com |
b45bcc04ecb2dd94ee96485e43886addc224ab14 | fb2d54398a62dcf16c03a0436474d0442f33e125 | /zmplayer.py | 9e21f79e4d550fcf757358b8c3149b7926da5dfd | [
"MIT"
] | permissive | daguile/zero | 06b340de0ca0add0bb6a2d4093785ed2564f801b | f3c037a259daff4ebfeba31510aa70fa2b434ac3 | refs/heads/master | 2021-06-17T01:00:25.246028 | 2017-05-03T02:49:05 | 2017-05-03T02:49:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,553 | py | # -*- coding: utf-8 -*-
from PySide import QtCore
import time, sys, os
class ZMPlayerSignals(QtCore.QObject):
fileFinished=QtCore.Signal()
playbackStarted=QtCore.Signal()
foundAspect=QtCore.Signal()
foundVolume=QtCore.Signal(int)
fullscreenChanged=QtCore.Signal()
class ZMPlayer(QtCore.QObject):
... | [
"noreply@github.com"
] | noreply@github.com |
c993ab5b21d8f118c3a3d92b12bbc00a0e289025 | 5c9c9072adafff9de79552d927d225539874a1e5 | /fallas/panels.py | 3e39327b21d1c1fe85ed7cd64558561a50ba6772 | [] | no_license | NOKIA-GAP/trouble-shooting-api | e38e221aa01b16b28cd90b1c93f0b5141d67b26a | a3f6e2c3c22727c888b1f3f4e570fd729920e267 | refs/heads/master | 2021-08-10T01:07:46.333294 | 2018-10-01T17:21:14 | 2018-10-01T17:21:14 | 114,031,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | from .models import (
Falla
)
INSTALACION = 'Instalacion'
INTEGRACION = 'Integracion'
SOFTWARE = 'Software'
HARDWARE = 'Hardware'
DATAFILL = 'Datafill'
AJUSTEPOTENCIA = 'Ajuste Potencia'
INTERFERENCIAEXTREMA = 'Interferencia externa'
CAMBIODISENO = 'Cambio diseno'
MALRECHAZO = 'Mal rechazo'
TX = 'TX'
COMPORTAMIENTOESP... | [
"jucebridu@gmail.com"
] | jucebridu@gmail.com |
6a8c26e35a93052b603b687e17d772f1a1061348 | 01b090f4a84ae4308ceca1e4a3b9b4faf493976c | /ecommerce/views.py | 39cf50d4607597e88297225ce41a461d6869daaf | [] | no_license | ShaadSufi/TaskHelp2 | 0167ea16c28d73f63aad6a46ac669edbfbd79c71 | d74716f659658d3aa91a67f38661d58d54624891 | refs/heads/master | 2022-12-14T07:32:59.027262 | 2020-03-16T15:55:17 | 2020-03-16T15:55:17 | 219,719,016 | 0 | 2 | null | 2022-12-08T01:51:26 | 2019-11-05T10:33:17 | Python | UTF-8 | Python | false | false | 1,869 | py | from django.http import HttpResponse
from django.shortcuts import render,get_object_or_404
from django.shortcuts import redirect
from django.contrib.auth import authenticate, get_user_model
from django.contrib.auth import login
from .forms import ContactForm
from requests.models import Requests
def home_page(request):... | [
"shaadpyarali@gmail.com"
] | shaadpyarali@gmail.com |
12cb22fec33f165bf39cf85f132d82bc49b829ee | b3db8bf75e297d5102cbad3247090fa50a66e55f | /ABB Robot API PC SDK/integrationtests/communication_test.py | 39af72cb8ec5b45a6a143cfee48b8cad7e54739c | [] | no_license | marvas/Master | 745bab2fc8adbd9beacab355ae172d9d8245e299 | 1a7bc41f554ecf5968bf73948962255bd9c7fd1d | refs/heads/master | 2021-03-16T07:42:24.695188 | 2016-06-10T12:43:05 | 2016-06-10T12:43:05 | 50,907,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,874 | py | """
Integration test to test communication functionality towards the virtual controller.
RobotStudio must run with the RAPID test program made for the integration tests
"""
import unittest
import sys
import frontendPCSDK.com.communication as com
class CommunicationTest(unittest.TestCase):
controller = None
... | [
"marvas@lyse.net"
] | marvas@lyse.net |
f12a3c7bfe42354840042e863eea2abc839ee1be | 79ce6d754b2a28472d730d7fc644a4739e23cb9e | /shibboleth/decorators.py | 6c599599d46ee4bedf6b4aa78143ad2209c00f4f | [
"MIT"
] | permissive | harryjmoss/django-shibboleth-remoteuser | 815f9d898080147c12830711e7029f106f0d447b | 51129addcb47212d91c71e08cdc996dbb0a149da | refs/heads/master | 2023-01-22T03:22:32.147338 | 2020-12-07T18:04:28 | 2020-12-07T18:04:28 | 309,969,336 | 0 | 0 | MIT | 2020-11-04T10:28:16 | 2020-11-04T10:28:15 | null | UTF-8 | Python | false | false | 816 | py | """
Decorators to use with Shibboleth.
"""
from django.conf import settings
from shibboleth.middleware import ShibbolethRemoteUserMiddleware
def login_optional(func):
"""
Decorator to pull Shib attributes and log user in, if possible. Does not
enforce login.
"""
def decorator(request, *args, *... | [
"helen@rrdlabs.co.uk"
] | helen@rrdlabs.co.uk |
41fc2a0cc7a31737c1d32a52d6a2fc1bcf996f21 | c8a479c3581f7c2c67907edf7eb8cf300c561b19 | /venv/Scripts/easy_install-script.py | 10a66554b94c88baeface456f55fd2e356ac1942 | [] | no_license | starlight-circuitry/CLHitshan | 707970a562eba29ba4451bd272a98bd295441102 | 5dc7f703a0cfe0214fa2c6d56ac89e2234ecd5bd | refs/heads/master | 2023-01-24T12:09:21.497006 | 2020-11-24T16:25:38 | 2020-11-24T16:25:38 | 315,688,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | #!C:\Users\silen\PycharmProjects\CLHitshan\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|... | [
"asterj.greenblatt@gmail.com"
] | asterj.greenblatt@gmail.com |
94fdb017323b8e63067d2a38b5b64ede202cae57 | 1b3cfd43b522c6e6e20cd9db38cdc6eef0d7cb44 | /frozenlake_policy_iteration.py | d306b0057903dec8dde5b14b2a07e4c773b080fd | [] | no_license | kristjanreba/rl_benchmarks | 77bb55938dc82da67bbd94bd6b73b51bf192a074 | 9ffe5f444179e7c8af5c241787ad9fbba5adacaa | refs/heads/master | 2020-04-22T17:04:21.933117 | 2019-02-13T15:18:09 | 2019-02-13T15:18:09 | 170,528,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | import numpy as np
import gym
def run_episode(env, policy, max_steps=1000, render=False):
observation = env.reset()
total_reward = 0
observation = env.reset()
for i in range(max_steps):
if render:
env.render()
action = policy[observation]
observation, reward, done, i... | [
"kristjan.reba96@gmail.com"
] | kristjan.reba96@gmail.com |
6bd3aeb20fd5e5259fbb55aac32c164b66cb5769 | 3b9b4049a8e7d38b49e07bb752780b2f1d792851 | /src/build/android/pylib/utils/base_error.py | 263479a3c3279aca00c226b8b97cd52bc9ec3175 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | webosce/chromium53 | f8e745e91363586aee9620c609aacf15b3261540 | 9171447efcf0bb393d41d1dc877c7c13c46d8e38 | refs/heads/webosce | 2020-03-26T23:08:14.416858 | 2018-08-23T08:35:17 | 2018-09-20T14:25:18 | 145,513,343 | 0 | 2 | Apache-2.0 | 2019-08-21T22:44:55 | 2018-08-21T05:52:31 | null | UTF-8 | Python | false | false | 270 | py | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# pylint: disable=unused-wildcard-import
# pylint: disable=wildcard-import
from devil.base_error import *
| [
"changhyeok.bae@lge.com"
] | changhyeok.bae@lge.com |
d25a076ff8218321822d59e373c496d0d3b3a3da | caa6a5ec29a9b5a9b5c36d37678389a4250491d1 | /5._session_5/exercises/5._webscraper/program.py | 72101dfb5dda6bbc96a64c87949c713da7375bd5 | [] | no_license | Fyziik/python_exam | d7714af973e64fc62a01e2197807fab331ad9294 | 6a06d3cba2d52db393f17b486a2bb8ae503284df | refs/heads/main | 2023-06-05T01:01:36.307789 | 2021-06-29T01:17:12 | 2021-06-29T01:17:12 | 379,883,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | import requests
from bs4 import BeautifulSoup
baseUrl = "https://job.jobnet.dk/CV/FindWork?Offset=0&SortValue=BestMatch&SearchString="
jobQuery = input("What job would you like to search for? ")
searchUrl = "https://www.jobindex.dk/jobsoegning?q=" + jobQuery
page = requests.get(searchUrl)
soup = BeautifulSoup(page.c... | [
"Fyziikme@gmail.com"
] | Fyziikme@gmail.com |
030656461f5d5ace42ba347134ba1fef6d164dd2 | 9184e230f8b212e8f686a466c84ecc89abe375d1 | /arcseventdata/applications/obsolete/ipdpE.py | f4a03c9939aa822c22a8334013aca9fa028edc74 | [] | no_license | danse-inelastic/DrChops | 75b793d806e6351dde847f1d92ab6eebb1ef24d2 | 7ba4ce07a5a4645942192b4b81f7afcae505db90 | refs/heads/master | 2022-04-26T17:37:41.666851 | 2015-05-02T23:21:13 | 2015-05-02T23:21:13 | 34,094,584 | 0 | 1 | null | 2020-09-10T01:50:10 | 2015-04-17T03:30:52 | Python | UTF-8 | Python | false | false | 4,378 | py | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2007 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"linjiao@caltech.edu"
] | linjiao@caltech.edu |
8d1664a25e6397fda841767d99e0e259355d031e | 3acd0b55868e4128bc01168230586b3cae03be4a | /Encoder.py | 8ccd0874ae99cf9bebfd98a5ce88ba50e64fc1a6 | [] | no_license | deenaawny/abstractive_summarization_using_neural_attentive_encoders_decoders | 2632d132713749a05c99791961aeb724f32bb078 | 6840849af595696d0045b7dd9c037279bae16be3 | refs/heads/master | 2021-05-23T10:19:10.815422 | 2020-04-05T13:20:54 | 2020-04-05T13:20:54 | 253,239,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,685 | py | #Copied Code
from keras import Input, Model
from keras.layers import Embedding, LSTM, Concatenate, TimeDistributed, Dense
from Attention import AttentionLayer
class Encoder:
def __init__(self, max_text_len, x_voc, y_voc):
self.max_text_len = max_text_len
self.x_voc = x_voc
self.y_voc = y_voc
def bui... | [
"deenaawny@gmail.com"
] | deenaawny@gmail.com |
2b5ef10adabbb2e6141826faecfd9ffe529b1d3a | d7d398754ea3f5853c69dcf55a0bc4aca5d63637 | /Contactos/wsgi.py | dcc2d9f77c3c39974637eefa82579336ce9f24c6 | [] | no_license | UskoKruM/django-postgresql-contactos | fa5b02b5b369b1714ca9de8b633ce9af338a2b61 | e2fa955d5182f3c3513adf380e1c08ae083d42de | refs/heads/master | 2023-08-01T12:10:47.492384 | 2021-09-18T04:29:29 | 2021-09-18T04:29:29 | 407,755,381 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for Contactos 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"uskokrum2010@gmail.com"
] | uskokrum2010@gmail.com |
c440a3d06b3e23e281b9e73a14da3057f83067f1 | bb357cc6d20135a82565dadfd50a0a3c496d0c91 | /src/settings.py | cef8cdf04daa8b4d3a6d2761340f007f04ff11f4 | [
"MIT"
] | permissive | btmc/mogura | 22e58c324163e2468ff2528156351aaa5061704c | 1f105e3ddf66e134ad94857a2a22d153dc70a811 | refs/heads/main | 2023-03-26T10:01:39.988578 | 2021-03-23T12:06:04 | 2021-03-23T12:06:04 | 350,688,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,106 | py | # Django settings for mogura project.
import os, sys
import mysql.connector
from resource_loader import load
resources = load('/data/conf/resources.ini')
location = lambda x: os.path.join(
os.path.dirname(os.path.realpath(__file__)), x)
BASE_DIR = '/data/mogura'
DEBUG = True
ADMINS = (
# ('Your Name', 'y... | [
"atokarchuk@uma.tech"
] | atokarchuk@uma.tech |
df0de428ba98d68a9bf8e6a32763d98e79f41a47 | 99be58d9ecb0a1b7b63d26036544285cc7f1e092 | /manage.py | 4777c23afaa58da969f87eb0a1b84cecfec97977 | [] | no_license | saikrishnap29/BankInfo | b2ddfeefba2adc0d0577d375f39917eee92da783 | 274ed9f5325dfae2345351a103341efcc978a3ee | refs/heads/master | 2022-11-11T12:03:17.139974 | 2020-07-03T14:39:16 | 2020-07-03T14:39:16 | 276,921,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | 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', 'BankInfo.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impor... | [
"saikrishnap29@gmail.com"
] | saikrishnap29@gmail.com |
c1b8ece492125158774e3af66f2bfa7f7de642cd | d043a51ff0ca2f9fb3943c3f0ea21c61055358e9 | /python3网络爬虫开发实战/数据存储/文件存储/file6.py | 38d8bd4763b4c20db1de58e5df8e49db8c1879e2 | [] | no_license | lj1064201288/dell_python | 2f7fd9dbcd91174d66a2107c7b7f7a47dff4a4d5 | 529985e0e04b9bde2c9e0873ea7593e338b0a295 | refs/heads/master | 2020-03-30T03:51:51.263975 | 2018-12-11T13:21:13 | 2018-12-11T13:21:13 | 150,707,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | import csv
with open('data.csv', 'w') as csvfile:
# 调用csv库的writer()方法初始化写入对象
writer = csv.writer(csvfile)
# 调用writerow()方法传入每行的数据即可完成写入
writer.writerow(['id', 'name', 'age'])
writer.writerow(['10001', 'Mike', 20])
writer.writerow(['10002', 'Bob', 22])
writer.writerow(['10003', 'Jordan', 21]... | [
"1064201288@qq.com"
] | 1064201288@qq.com |
6a09ae6348786ae00b9bb35b1a7611573b23169e | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /s45bQoPtMoZcj7rnR_16.py | 41a063878034de7567ea745ec857b1619c25c1ce | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py |
def closest_palindrome(n):
if n == 100:
return 99
n = list(str(n))
n = [int(i) for i in n]
for i in range(len(n) // 2):
x, y = n[i], n[-i - 1]
x, y = x, x
n[i], n[-i - 1] = x, x
return int(''.join(str(i) for i in n))
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
671a239f60e56285f90614c35f275fed2635dd51 | eb2da8eed5e244590c0d213a05c8dc55122fa4e5 | /blog/myblog/models.py | 9a70eadcc7482238e6ac7b91a15aa4c9f83caee2 | [] | no_license | love-u-3000/tango_with_django | e98c9c20921dd6d1ebdf266cbc6ee0bd9e1a42b5 | c8d035ae3f498ba9865f48cc65425a3dd2486c3f | refs/heads/master | 2022-10-16T03:48:15.251827 | 2020-06-14T16:55:23 | 2020-06-14T16:55:23 | 267,793,198 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey(User, on_delete = models.CASCADE)
title = models.CharField(max_length = 500)
text = models.TextField()
created_date = models.DateTimeField(default = timezo... | [
"pavitra97agarwal@gmail.com"
] | pavitra97agarwal@gmail.com |
37fdeb624436b36c16f02cf0702c80cb42210d78 | ec9826427f7060d72dfb3f2d8f0bbfb386484d36 | /wealthbot/client/models/clientQuestionnaireAnswer.py | 1d3b1777f2625e142859c7b98079b523be6b7771 | [
"MIT"
] | permissive | eefelix/django-wealthbot | eb6ac71807eafa71130121035457508e6aeaf7f1 | f33a194cd4a953b371abf7f865754b2855e640e0 | refs/heads/master | 2020-04-18T22:08:15.278864 | 2019-03-03T11:49:06 | 2019-03-03T11:49:06 | 167,785,157 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | from django.db import models
from ria.models import RiskQuestion, RiskAnswer
class ClientQuestionnaireAnswer(models.Model):
class Meta:
db_table = 'client_questionnaire_answers'
client = models.ForeignKey('user.User', on_delete=models.CASCADE)
question = models.ForeignKey(RiskQuestion, on_delete=model... | [
"eefelix@yahoo.com.hk"
] | eefelix@yahoo.com.hk |
4126c9679a72016028935e0863a8a6854fd33770 | de2ea2a1bd4c28a2c1351cc527321ad73824a6f0 | /api/model/company.py | 49824fbd7e952a704d922cd8b64caccb83e14f47 | [
"MIT"
] | permissive | iTheCode/qf | 2b0f55534ebb76ab4a54f75cd0d6c4042e829dbc | 680cfcec96ff203ba4ba5f823102a39f2dc009cc | refs/heads/master | 2023-07-29T22:34:22.759138 | 2021-10-07T02:23:28 | 2021-10-07T02:23:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | import sqlalchemy as sa
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import scoped_session, sessionmaker, relationship, backref
engine = sa.create_engine("sqlite:///:memory:")
session = scoped_session(sessionmaker(bind=engine))
Base = declarative_base()
class CompanyModel(Base):
_... | [
"llara@gux.cl"
] | llara@gux.cl |
c9f002f2e16d65a1878541197c7e17dfa4b052e7 | fb3c1e036f18193d6ffe59f443dad8323cb6e371 | /src/flash/build/buildbot/slaves/windows64/buildbot.tac | b10193418512735dd402c802a5bdee88e3ccd140 | [] | no_license | playbar/nstest | a61aed443af816fdc6e7beab65e935824dcd07b2 | d56141912bc2b0e22d1652aa7aff182e05142005 | refs/heads/master | 2021-06-03T21:56:17.779018 | 2016-08-01T03:17:39 | 2016-08-01T03:17:39 | 64,627,195 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,219 | tac | # ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (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.mozilla.org/MP... | [
"hgl868@126.com"
] | hgl868@126.com |
19a684c1080d098c3a729646f3a3cac8369ffb93 | 17013ef66fcc42dc4ce4e0ed6b2f296a15cf3ef8 | /Zhipin_spider/__init__.py | d948e8531e61a7ac434b4e8af6425c60c222b4ba | [
"MIT"
] | permissive | littleluffy/PythonDemo | 18ac64109a7dfd458965bf55515bfa9d518a9fed | cd06c91d90be590098d9091ec937aeb3f281d33b | refs/heads/master | 2020-03-21T12:13:26.013803 | 2018-01-12T00:47:17 | 2018-01-12T00:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | # -*- coding: utf-8 -*-
# @Time : 2018/1/7 上午11:46
# @Author : Mazy
# @File : __init__.py.py
# @Software: PyCharm | [
"mazongyong@163.com"
] | mazongyong@163.com |
37678f3dec051306d8d847ebe706f9761022b4b0 | 1c8f4708c571f5e912c9f8616517d53073a97097 | /venv/Scripts/f2py.py | 638ddfe7b34949ca58a266b548ed2774814d83bb | [] | no_license | rpetersson/project_crack_ethercrash | 8ed330a20dfeec2c10c8f4b16cb2ad9964bc99d7 | 3c9bf48b7985c3daa6e12c0e0585cfcb2cecf2ff | refs/heads/master | 2020-03-29T08:45:31.466503 | 2018-09-21T11:14:37 | 2018-09-21T11:14:37 | 149,726,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | #!C:\Users\Robban\Dropbox\Python\Projects\project_crack_ethercrash\venv\Scripts\python.exe
# See http://cens.ioc.ee/projects/f2py2e/
from __future__ import division, print_function
import os
import sys
for mode in ["g3-numpy", "2e-numeric", "2e-numarray", "2e-numpy"]:
try:
i = sys.argv.index("--" + mode)
... | [
"rpetersson@gmail.com"
] | rpetersson@gmail.com |
c3a5c77cd6ddd26e2a4f1a177b4e71ea86e3cb12 | 0d9941ad4800d7c470cb1638e306c6ff588b68c1 | /src/apps/products/employment_opportunities/views.py | 7dc2ccd67bf6e155815b1c47e7ed18b55fa7587e | [] | no_license | iaswmn/scrubdaddy | 55b50c8da8ff67c737f3ab64e3b126aab4d8fec2 | 6859016a4c98f7c5257ba49aa7b08ecce24867b4 | refs/heads/master | 2022-12-05T09:20:48.912260 | 2019-10-30T07:26:02 | 2019-10-30T07:26:02 | 217,987,320 | 0 | 0 | null | 2022-11-22T01:59:43 | 2019-10-28T07:16:26 | JavaScript | UTF-8 | Python | false | false | 2,702 | py | import uuid
from base64 import b64decode
from django.core.files.base import ContentFile
from django.shortcuts import redirect
from django.utils.translation import ugettext_lazy as _
from django.views.generic import TemplateView
from contacts.models import NotificationReceiverJobs, NotificationReceiverCanada
from libs... | [
"evg.ykvts@gmail.com"
] | evg.ykvts@gmail.com |
fa20cd6685f48b8c389a7d0fde14f1d798239b80 | df46734226641ebe7f6b9e8cb2a48fb55a667ee5 | /cipefilos/users/migrations/0002_auto_20200817_0623.py | f906ce73e9520a30fbfd3543b6ecb52c44b9b721 | [
"MIT"
] | permissive | JesusJimenezG/cipefilos | 44632b45bc190f828a84edb03b45efc365e0d807 | 537c80a919a324d1c3d082aa089a590aa742fece | refs/heads/master | 2023-05-28T11:24:37.508920 | 2021-06-12T19:58:58 | 2021-06-12T19:58:58 | 287,482,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | # Generated by Django 3.0.9 on 2020-08-17 10:23
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='user',
op... | [
"jesusalfonsojg7@gmail.com"
] | jesusalfonsojg7@gmail.com |
0f9b72d1b6064d1accdd7321a715d14b30afb7de | 61b19664f2a24b2c4201d3be9c113bf1c0e566a3 | /syslog_receiver.py | f7a5616a10d2f1ef7a75320504b8e09e44f8ba61 | [
"BSD-3-Clause"
] | permissive | Retardigrades/tent-update-controller | 8f4bcff736b1c86b61d5e4decb63543ee6b910ee | 816f1376381a3b4394c96f14446fa4a8c9a58831 | refs/heads/master | 2020-12-30T11:51:35.594134 | 2017-12-14T03:33:51 | 2017-12-14T03:33:51 | 91,529,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | #!/usr/bin/env python3
import socketserver
import datetime
import argparse
import logging
class SyslogUDPHandler(socketserver.BaseRequestHandler):
def handle(self):
data = bytes.decode(self.request[0].strip())
socket = self.request[1]
print(datetime.datetime.now().strftime("%Y-%d-%m - %H:%... | [
"losinski@wh2.tu-dresden.de"
] | losinski@wh2.tu-dresden.de |
27c17052e68d27fb75c6a54aa1e6d130f1b9766f | 4d4540fdce00e6266f66e2e56044254e09346a3a | /myproject/urls.py | 57249d2442274979ba4631a603bf6a2c38f896aa | [] | no_license | Sasikumar-P/TokenauthenticationusingRest | eb2b225a45231178d542855f5bf21bc5ff235aa0 | 3ba950387a725879c802be483c83023328d9e3ea | refs/heads/master | 2020-03-27T12:43:47.663487 | 2018-08-29T07:53:55 | 2018-08-29T07:53:55 | 146,565,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | """myproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/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')
Class-... | [
"king-kong@gmail.com"
] | king-kong@gmail.com |
dfa118b1165ce2cc40d5944d432a266dbfb389b9 | 6f3433ee263e9a7e6d6915ca0fb9ae5c5850a303 | /students/K33402/Puzyrev_Dmitry/lab_works/lab1/task2/client.py | 193e5769232d13e0a594b04c152ee1e329ff97b3 | [
"MIT"
] | permissive | dEbAR38/ITMO_ICT_WebDevelopment_2020-2021 | 8a2a1abe6cd7f3bb0c0b1774cad1765d377f52c7 | 208cbc6d2b6d40c3043d35ce773a3433b377f671 | refs/heads/master | 2023-04-03T10:09:38.427787 | 2021-04-09T10:42:27 | 2021-04-09T10:42:27 | 296,327,161 | 0 | 0 | MIT | 2020-09-17T12:59:46 | 2020-09-17T12:59:45 | null | UTF-8 | Python | false | false | 396 | py | from socket import *
import sys
conn = socket(AF_INET, SOCK_STREAM)
conn.connect(("127.0.0.1", 14900))
print("We are going to solve quadratic equation: a*x^2 + b*x + c = 0")
a = input("Enter a: ")
b = input("Enter b: ")
c = input("Enter c: ")
if not a:
conn.close()
sys.exit(1)
data = str.encode(','.join([a,b,c]))... | [
"puzyrev.dmitry@gmail.com"
] | puzyrev.dmitry@gmail.com |
f70d41c1a98e039d105a59235c8bd1e00dba771f | fa729ff6177efd82c1532d7e42f88ed3e129afc4 | /hw3.4/hw3.4/bin/easy_install | 4d653ece52bf27842035f6daf11185baa07f1c80 | [] | no_license | userwithoutcode/HOMEWORKS | ffb6d84a56f02ce6a326a19d71a1fe14b7477e56 | 5800a0a72ae39a6abbbb70f58fc423951b37dbed | refs/heads/master | 2021-01-22T18:02:07.295193 | 2017-08-18T20:23:41 | 2017-08-18T20:23:41 | 100,735,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | #!/Users/iamantonozerov/MyFiles/PYTHON/HOMEWORKS/3.4/hw3.4/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.py... | [
"anton.v.ozerov@gmail.com"
] | anton.v.ozerov@gmail.com | |
4ae460a4d4d0e29afba40489d0f0d02690024eb1 | c155a4c8afbe1450784f87b70348017e7e981f11 | /axf/urls.py | 5a4f442cfb1e56af48463c55dfd8e7a5892828c0 | [] | no_license | cxt2333/axf | 1128d1cced4dea6698b4dd3e2bd7bc0b58ee46d1 | 701133a1ec8981cf1f024f1cd4557f39605b0d61 | refs/heads/master | 2023-03-16T17:00:17.976683 | 2021-03-16T10:43:16 | 2021-03-16T10:43:16 | 345,893,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | """axf 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-based vie... | [
"2766926399@qq.com"
] | 2766926399@qq.com |
ff7083adfde7388d3ad49880c60d023bb42fb506 | 637dc502d7326aaf34766c14512df10efc612516 | /tests/tagging.py | ad96eba03df498646cc4d0068da3bb5f3a49d3cf | [] | no_license | z4y4ts/unshred-tag | 085342c6ee886a8c8e9aff154ae78123e0f19833 | 08d508b964fc52c5881b11a7811cc172036247f6 | refs/heads/master | 2020-12-25T04:19:05.171352 | 2014-11-12T22:54:50 | 2014-11-12T22:54:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,124 | py | import re
from datetime import datetime
from flask import url_for
from models import Tags, User, Shreds, TaggingSpeed
from . import BasicTestCase
class TaggingTest(BasicTestCase):
def setUp(self):
self.client.post(url_for("fixtures.reset_db"))
self.client.post(url_for("fixtures.create_base_tags")... | [
"dchaplinsky@conversionscience.co.uk"
] | dchaplinsky@conversionscience.co.uk |
8df7dd01776154eb4b7f0fa22d4f39e34f89562b | 18305efd1edeb68db69880e03411df37fc83b58b | /pdb_files3000rot/fb/2fb8/tractability_500/pymol_results_file.py | 8fb6f70e459bfef541c1964fba987ec98a526281 | [] | no_license | Cradoux/hotspot_pipline | 22e604974c8e38c9ffa979092267a77c6e1dc458 | 88f7fab8611ebf67334474c6e9ea8fc5e52d27da | refs/heads/master | 2021-11-03T16:21:12.837229 | 2019-03-28T08:31:39 | 2019-03-28T08:31:39 | 170,106,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,223 | py |
from os.path import join
import tempfile
import zipfile
from pymol import cmd, finish_launching
from pymol.cgo import *
finish_launching()
dirpath = None
def cgo_arrow(atom1='pk1', atom2='pk2', radius=0.07, gap=0.0, hlength=-1, hradius=-1, color='blue red', name=''):
from chempy import cpv
radius, gap =... | [
"cradoux.cr@gmail.com"
] | cradoux.cr@gmail.com |
59ac87cd4aa0ce8b39dce1f5ec1b18502216add3 | b64926b053b9d58e4ad8caca65338429d2d90bdb | /setup.py | 38e04d97efb77ed35140aa9099f890978688eb9b | [
"MIT"
] | permissive | vyshakhbabji/ringcentral-python | 569a88406cce00c86c3a1969d518ee5eac082569 | cecc28c432e79a4df8ae8e4f82aeef01379970b3 | refs/heads/master | 2021-01-22T10:14:12.303122 | 2017-02-07T05:58:29 | 2017-02-07T05:58:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from setuptools import setup, find_packages
setup(
name='ringcentral_client',
version='0.2.2',
description='Python Client for RingCentral API',
author='Tyler Long',
author_email='tyler.liu@ringcentral.com',
url='https://github.com/tylerlong/ringcentral-python',
packages=find_packages(exclud... | [
"tyler4long@gmail.com"
] | tyler4long@gmail.com |
b39f0a4a9406a235d139571c975e3ae0547c18ae | 424ad589db55ec0a39670e571a8dc6a12645acc0 | /retail/report/image/fail/__init__.py | cfd87f355b4c5799914e3af67a566471bd82035d | [] | no_license | l610634528/Petrochina_Retail_Test_Project11 | 72d104ace39665848f1e4634c02ff2e5bbd93105 | 0ab1c193a1a2955b822144fe44b5cec09dfd2e81 | refs/heads/master | 2023-08-11T13:29:22.518419 | 2021-09-28T02:30:26 | 2021-09-28T02:30:26 | 406,976,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | """存放用例失败时的截图""" | [
"xinjin_lv@fpi-inc.com"
] | xinjin_lv@fpi-inc.com |
85cd46cc07ebc03cd92c2369bdaa2f2b212b70f5 | f7e9a15796a968065da92db4828aa41b88f55321 | /handlers/go.py | 34680020202df6bcaf9ba81bb920e6d3bd92ab6c | [
"MIT"
] | permissive | serguk89/telegram-group-engagement-bot | 8ceffe042385cf24e3662f5d925025dbbaf5dcde | fa1108fe42b7d5b7121be99b45251c691079a38a | refs/heads/master | 2023-01-19T02:04:07.135974 | 2020-11-11T10:42:05 | 2020-11-11T10:42:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,397 | py | from app import *
from main.functions import Action
keyboard = types.InlineKeyboardMarkup(row_width=2)
# a = types.InlineKeyboardButton(text=emoji.emojize(":memo: Check :memo:", use_aliases=True), callback_data="check")
a = types.InlineKeyboardButton(text=emoji.emojize(":scroll: Dx15 List", use_aliases=True), callback... | [
"alfredemmanuelinyang@gmail.com"
] | alfredemmanuelinyang@gmail.com |
0161f7e22913d891abecb26893166660f9c67ca2 | 370ad42f414735450681b75c3bb9b860ea2b4dec | /python/get_tag_details.py | 59875acbb3f3caf66f8016d03ca81648843679a9 | [
"MIT"
] | permissive | kriswans/stealthwatch-enterprise-learning-labs-code | a86e201eaa954996db4029030b2822abc127216c | b3313ba97008225706ca22c5c417bd40cc1b4f71 | refs/heads/master | 2023-03-16T02:08:25.578729 | 2020-01-22T20:51:14 | 2020-01-22T20:51:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,092 | py | #!/usr/bin/env python
"""
This script will get the details for a specific tag (host group) in Stealthwatch using the REST API.
For more information on this API, please visit:
https://developer.cisco.com/docs/stealthwatch/
-
Script Dependencies:
requests
Depencency Installation:
$ pip install requests
Syst... | [
"kywinter@cisco.com"
] | kywinter@cisco.com |
444cfb22c5dd42decf6bb6709143551b2e104db8 | 5ebb485d09265066e90795cb7595d8967d0281fd | /instance/settings.py | e129b463fa4514521affa8712bbe244586202d79 | [] | no_license | jude253/flask-docker-Model-API | 0f44ed97febbc0cd1857d42c0d06edfc62892819 | 2019509c1fd8073dbc2ec42c79440b12d1a0f800 | refs/heads/master | 2023-03-11T23:44:54.846861 | 2021-02-16T19:59:42 | 2021-02-16T19:59:42 | 326,565,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13 | py | HELLO = 'HI'
| [
"judecapachietti@gmail.com"
] | judecapachietti@gmail.com |
333e70d0dfe3179f1b406de6c4dda7a62a66a557 | 767984892a9b43e9e6f518878f9c8bd49a2ca91b | /gunicorn/qlive/qlive/urls.py | f3bb4c75c97017d3cf43cfcb66da1424036bf2da | [] | no_license | AlexG31/qlive-html | 975476de3b70e0703fcab89df7f92d484a438a05 | 3877f6443cdfe75c145a0369dfeef30d8c3562d6 | refs/heads/master | 2021-01-20T09:07:56.841540 | 2017-06-22T02:27:41 | 2017-06-22T02:27:41 | 90,225,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | """qlive URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/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')
Class-base... | [
"AresEyE@163.com"
] | AresEyE@163.com |
5cb169d414aa0b23ceb727c386c5b59acf7e4cb5 | 1fe3e9d0eb51621fad493f019088e2cf1f651c13 | /test/utility.py | 9c6bfe5b2817fbac403b741b2a039ff6be9ec181 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | LLNL/narrows | ec67973c58aafef31d12ca78e51f0a00c7262f10 | 73d3796890c6a884d280db029d4d59834b5e8ac1 | refs/heads/develop | 2023-06-03T21:30:04.356143 | 2020-09-02T08:22:49 | 2020-09-02T08:22:49 | 244,972,272 | 5 | 3 | NOASSERTION | 2020-08-11T15:14:33 | 2020-03-04T18:17:18 | Python | UTF-8 | Python | false | false | 425 | py | import matplotlib.pyplot as plt
import os
def show_or_save(show, problem, plotname):
dirname = os.path.dirname(problem)
if not dirname:
dirname = os.path.dirname(__file__)
probname = os.path.basename(problem)
if show:
plt.show()
else:
if not os.path.exists(f'{dirname}/fig')... | [
"mmpozulp@email.wm.edu"
] | mmpozulp@email.wm.edu |
e2b2a2fbfeac772aa19eac0958bda9fe23bd15ea | 307aac96caccb7c492ac576e675e3e83113a3e40 | /RouterSimulatorPh4-main.py | f35bef28123b6dc612ee3285925fb4931cf5e405 | [] | no_license | msaifullah2/RouterSimulation | 02fbaa75bf145bf5648eea2a29209e71e998c5c2 | 14ada23ead153267ad1af82195d4a1d3f37d8161 | refs/heads/master | 2021-01-01T05:24:47.715117 | 2016-05-08T07:10:31 | 2016-05-08T07:10:31 | 58,299,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,967 | py | ################################Networks Border Router Simulator#############################
#Hithesh Krishnamurthy
#Saif Mohhamed
#Ameya Patil
from functools import partial
from random import randint
from time import sleep
from pylab import *
import itertools
import time
import timeit
import binascii
import sys
impo... | [
"mohd.saifullah46@gmail.com"
] | mohd.saifullah46@gmail.com |
88c55ce60c363bea748adb9749cfa54f5d4804c8 | dd3ca66b809f217e00f35fb7c092166c118780ec | /evasion.py | f39bf35dfc81974e131d0174da0949acd82bda3e | [] | no_license | bburke20/633 | eff56debe8caf9954df51f5b4ce9ba0371c987f4 | 0e090b1820648910922f9bb3e9146208efa7b7f3 | refs/heads/master | 2020-04-16T15:53:25.911672 | 2019-01-14T19:04:13 | 2019-01-14T19:04:13 | 165,717,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | import RoboPiLib as RPL
import setup
import direction
apin = 7 #place the analog sensor on the front right
while True:
sense = RPL.analogRead(apin)
if sense >= 400:
direction.right(4)
else:
direction.front(0)
| [
"noreply@github.com"
] | noreply@github.com |
83534c791f8063eb1d5ac8569916a49b0f8b0f09 | d12b59b33df5c467abf081d48e043dac70cc5a9c | /uhd_restpy/testplatform/sessions/ixnetwork/topology/dhcpv4client_cfcdda8db5004b679a441f92193405ea.py | 2fd232e15d33bc4c0cf4ba5e72ca7f72b489eb1f | [
"MIT"
] | permissive | ajbalogh/ixnetwork_restpy | 59ce20b88c1f99f95a980ff01106bda8f4ad5a0f | 60a107e84fd8c1a32e24500259738e11740069fd | refs/heads/master | 2023-04-02T22:01:51.088515 | 2021-04-09T18:39:28 | 2021-04-09T18:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,318 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
79dfd8e1bdd454636be4dbd05b9d7809d1f2e01b | bed442e08f81d14f0515eabda036c5c7e6f2a720 | /data_preprocess.py | 8f23731b3c632eb20c64a22208dfe1d0df935b16 | [] | no_license | Vicky1361/head_angle_correct_0325 | a0fd937811679be934222f32560ab9b2b4053d15 | b6421cf76c428bc1f1b18acb542bd18186671757 | refs/heads/master | 2023-04-01T18:44:44.866062 | 2021-04-05T01:57:44 | 2021-04-05T01:57:44 | 354,687,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,883 | py | from torch.utils import data
import torch
import glob
import random
import os
import numpy as np
import SimpleITK as sitk
import skimage.transform as transform
import matplotlib.pyplot as plt
def read_mhd(file_name):
'''
根据文件路径读取mhd文件,并返回其内容array、origin、spacing
'''
itkimage = sitk.ReadImage(file_name)... | [
"13164645208@163.com"
] | 13164645208@163.com |
d58bcf216ee5ee663f73423d47b7cc64a2c30487 | b210d58b724c7199f43ddde031eba40996c82257 | /submissions/sm_104_asheeh/week_13/day_4/session1/count_vowels.py | 856faabcaec79e54b51517e29d17ffada05fba9d | [] | no_license | Tanmay53/cohort_3 | 0447efd2dc8b3c1284b03da7326b35393fdf5f93 | 351fb6e1d0c29995fb5cb3b6af411dbcf0ced64c | refs/heads/master | 2021-05-23T17:55:36.508185 | 2020-04-05T12:58:07 | 2020-04-05T12:58:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | li = ["Aman", "Chaman", "Albert", "Rahul", "AAAA"]
vowelList = []
for ele in li:
count = 0
for char in ele:
if char.lower() == "a" or char.lower() == "e" or char.lower() == "i" or char.lower() == "o" or char.lower() == "u":
count += 1
vowelList.append(count)
print(vowelList) | [
"thebusinessman999@gmail.com"
] | thebusinessman999@gmail.com |
f98e05c66437cdda92cbeb5526d596aa2eea706b | 7011972bec078e23e31e85cbe06144e6514ccea7 | /desafios/desafio 31.py | 4f147bb460441ddc2e8c6165910d8499a5fba766 | [] | no_license | pldorini/python-exercises | cfb1639664a93edc0c01fb4bc337d73342f0e737 | fdc6f06ade774b7bab8902d3213a7862f3bd976c | refs/heads/master | 2023-04-06T16:21:21.965700 | 2021-04-14T01:49:02 | 2021-04-14T01:49:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | n = int(input('Qual a distancia da viagem em km? '))
if n<=200:
c = 0.5 * n
print('O valor da passagem é de {}'.format(c))
else:
p = 0.45 * n
print('O valor da passagem é de {}'.format(p)) | [
"pedro.dorini@unesp.br"
] | pedro.dorini@unesp.br |
135880d30cf7f3376b971dcc2ba60dd133dd7a88 | 2c2e68fdf9f64312b7b2c3d16727e4b11f654b4b | /SOR_tree.py | 7d38e2bf9aedfc075bd81b0ccb8bb8a158a715c6 | [] | no_license | Florisdv5/Scientific_comp_2 | 8fbc7e10b24fcafbcb612e94c85ee875e6742835 | 13374c0e8db4664aba062a39d0413c7f83a2378d | refs/heads/master | 2023-03-18T08:59:20.384201 | 2021-03-02T08:30:04 | 2021-03-02T08:30:04 | 342,243,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | import numpy as np
from C import find_candidates, select_value, calculate_SOR
def one_step(old_grid, omega, eta):
new_grid = np.zeros(shape=(N, N))
probs = np.zeros(N*N)
probs_total = 0
for y in range(len(old_grid)):
for x in range(len(old_grid[0])):
if old_grid[y][x] == 1:
... | [
"roman_peerboom@hotmail.com"
] | roman_peerboom@hotmail.com |
5046b7daf066b1c5d4401d896e244ac6436723fd | fff70dbce3132a8040d1e341da689ff8fb431ee7 | /src/urls.py | 76cf58aaea32c15329134b71430a83fd077a7d64 | [] | no_license | amishpatel1994/mooclet-email | 49ab5140a3df3e585a22c7a12b0c2c920d3248a2 | 6ca8c5da9cb626c042ba97bf3ba04f72aa084ee2 | refs/heads/master | 2022-04-29T05:49:37.113186 | 2019-11-21T16:50:20 | 2019-11-21T16:50:20 | 220,498,117 | 0 | 0 | null | 2022-04-22T22:44:15 | 2019-11-08T15:45:55 | Python | UTF-8 | Python | false | false | 867 | py | """src 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-based vie... | [
"amishpatel94@hotmail.com"
] | amishpatel94@hotmail.com |
dfd11c324686e3f0f45d42d7d986c69b28094e82 | 95c6662084202ed04023ae019db5a335d0e61aab | /chapter_08/t_shirt.py | 6774027f7379dc7caa0fe937b3dd1b75937d5360 | [] | no_license | impressivefawn/python_crash_course | af8a876411bf4f9db796984bb6ea569366248cb2 | 805753052bbb0c1339d487924a211768d12b1656 | refs/heads/master | 2023-01-02T11:43:28.010155 | 2020-10-25T13:24:47 | 2020-10-25T13:24:47 | 303,139,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | # 8-3. T-Shirt:
def make_shirt(size, message):
"""Summarize the shirt that's going to be made."""
print(f"\nI'm going to make a {size} t-shirt.")
print(f'It will say, "{message}"')
make_shirt('medium', 'Play')
make_shirt(size='small', message='Hype') | [
"impressivefawn@gmail.com"
] | impressivefawn@gmail.com |
2dad8e023d93319e0f9d55cc1dbfc6b87e044721 | 5065d2d1fdcec73518ca7d989181e125a12613cf | /people_counter_yolo.py | ea491e177178ee294a3f2178b384324861c3f91d | [] | no_license | nasoboleva/PeopleCounter-Skoltech-Edition | b29a967b365832097a6a4497be62577316da9746 | 8fb57f3f022099a7ca4256c75cc5851e3e1080c2 | refs/heads/master | 2020-11-26T23:38:09.533585 | 2019-12-20T09:22:33 | 2019-12-20T09:22:33 | 229,231,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,058 | py | # USAGE
# To read and write back out to video:
# python people_counter.py --prototxt mobilenet_ssd/MobileNetSSD_deploy.prototxt \
# --model mobilenet_ssd/MobileNetSSD_deploy.caffemodel --input videos/example_01.mp4 \
# --output output/output_01.avi
#
# To read from webcam and write back out to disk:
# python people_cou... | [
"n.sob55@gmail.com"
] | n.sob55@gmail.com |
99f52224cafb2ac12626c08b6cf0c418c1771a14 | b445dd915a74d67b988c39f525f0235e26ff7db2 | /djangoProjects/simpleBootStrapForms/src/base/urls.py | af3b4baf3553adb6bc5e1237ee342304a8a8b13c | [] | no_license | rajesh241/projects | 2a1024400151fcbdd8790a3683d909da40612719 | c6adfb7ec2f7df4880de44c50960333142569e54 | refs/heads/master | 2022-12-11T13:55:14.069601 | 2020-02-19T23:57:09 | 2020-02-19T23:57:09 | 228,992,081 | 0 | 0 | null | 2022-06-22T01:10:45 | 2019-12-19T06:42:25 | Python | UTF-8 | Python | false | false | 807 | py | """base URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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-based vi... | [
"togoli@gmail.com"
] | togoli@gmail.com |
4559fc7f845d620c3b4e2530b06601b462984f0b | 548f038bd00a427190cd8e59abc84819434b4977 | /subSet.py | 04065179b672e5fd93bf92f7befe325971ef41a1 | [] | no_license | AntDuPar/Reddit-Challenge-313-Subset-Sums | 144586cb2acabda012f1f926bc51cb51830d38a6 | 5711d1999353d7a69e12024951fc415d3e0fe1c9 | refs/heads/master | 2020-12-30T12:56:22.416215 | 2017-05-15T19:40:21 | 2017-05-15T19:40:21 | 91,377,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | #www.reddit.com/r/dailyprogrammer/comments/68oda5/20170501_challenge_313_easy_subset_sum
import sys
commands = []
for line in sys.stdin:
commands.append(line)
def sub(list):
for line in list:
if len(line) == 0:
print(line, "False")
nums = line.split()
for n in nums:
curr = int(n)
if curr == 0:
p... | [
"antdupar@gmail.com"
] | antdupar@gmail.com |
1a87c80bdeb1f9228c29304036f10ca981c3c3e6 | c3818ec38a3d24fec15198913729a100b0cc202b | /readings/admin.py | e2bb2b2fbebe9516bfa6d5f8c0de98ecfb4f4e84 | [] | no_license | winnie-26/tracking-and-vibrations-data-api-main | cecb5ed52e93f43a6778a15913c7ef30a2abf581 | e9c3d569488b6431af6468bda3790a6580708b73 | refs/heads/main | 2023-05-08T19:57:45.900449 | 2021-05-29T19:46:01 | 2021-05-29T19:46:01 | 372,059,355 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from django.contrib import admin
from .models import Coordinates, Vibrations
@admin.register(Coordinates)
class CoordinatesAdmin(admin.ModelAdmin):
list_display = ("gps_coordinates", "slug")
@admin.register(Vibrations)
class VibrationsAdmin(admin.ModelAdmin):
list_display = ("vibration_reading", "slug")
| [
"abhishek.brichhaliya.min13@itbhu.ac.in"
] | abhishek.brichhaliya.min13@itbhu.ac.in |
c8f3d65ab78e8cbb4b1760415d8bb6cbceadbbeb | 81ea108e4fa6e05ac00bbd16fa5bc5cc7fefbc34 | /classifier.py | 34aedf88503c97a6a1655e91b7852603ba0d2cc3 | [] | no_license | TheOpenfield/Generic-Cell-Classifier | 512d282bb7a3fe9112c3a1ae394ea8ffb9616a94 | fcc16b89d784f0c5c53ea5db3be5d2d3bfc9eeb0 | refs/heads/main | 2023-02-21T09:48:10.919123 | 2021-01-19T21:08:44 | 2021-01-19T21:08:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | #import tensorflow as tf
#from tensorflow.keras import layers
NUMBER_OF_CLASSES = 6
INPUT_DIMENSION = 96
def build_mobilenet_classifier():
mobilenet_stump = tf.keras.applications.MobileNetV2(input_shape=(INPUT_DIMENSION,INPUT_DIMENSION,3),
include_top=False,
... | [
"jonas.a.mayer.95@googlemail.com"
] | jonas.a.mayer.95@googlemail.com |
509b276341851ae149bb0edeec06b2eab61b8603 | c46ea8a617d7781cbc6d66404b9598154d494a60 | /samplelogcode.py | ebc89ef4d82308cbfdc96e90dbb4048fe564e318 | [] | no_license | nishanthr017/Programs | 3b17cbdf25a6a1ae716b664e1b3c9dbc6e399daa | 1a106dde558baaf96d6e6da45a4fd96e664881e2 | refs/heads/master | 2022-10-21T19:48:28.171382 | 2018-02-23T13:07:28 | 2018-02-23T13:07:28 | 122,618,725 | 0 | 1 | null | 2022-10-02T11:26:50 | 2018-02-23T12:29:09 | Python | UTF-8 | Python | false | false | 2,038 | py | import os
from collections import OrderedDict
from logging import Formatter, FileHandler,getLogger, INFO
from json import dumps
from pythonjsonlogger import jsonlogger
recordfields=[]
record1 = OrderedDict((('logger','aaa'),('application','logger-test'),('profile','prd')))
record2 = OrderedDict((('logger','aaa'),('app... | [
"nishrame@qti.qualcomm.com"
] | nishrame@qti.qualcomm.com |
698a03e7e32842e8b104e0c82b939b34a766192e | 0306bea08e9aab18f34a799ce8a73e86921f90f7 | /medium/MergeInBetweenLinkedLists.py | 8ec144cd18dc8a581543cea87bfb41b24ae965b0 | [] | no_license | GeorgianBadita/LeetCode | 78686fde88ef65b64f84fb7c2a22ba37ef21b8d9 | e3b0571182369c5308e0c29fb87106bb0b0d615a | refs/heads/master | 2022-10-21T00:23:26.479943 | 2022-10-14T20:27:27 | 2022-10-14T20:27:27 | 251,733,951 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | # https://leetcode.com/submissions/detail/427432636/
# Definition for singly-linked list.
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
class Solution:
def mergeInBetween(
self, list1: ListNode, a: int, b: int, list2: ListNode
) -> ListNode:... | [
"geo.badita@gmail.com"
] | geo.badita@gmail.com |
ed31cf9f558f4c09ef1474cedb19325bb3799f03 | 07a4d5e67a43a57391c7c373c1d11f48bfadb0a1 | /tests/test_utils.py | c907f1a8243c4336059c13c5270c4bf91c07a43b | [
"MIT"
] | permissive | u20024804/torf | 5b7c0cdebc00ca69223e28edf46db86c486f08b1 | 83f8a59a0fac59cef3dac54f2935f98a32c76aa7 | refs/heads/master | 2021-05-10T19:32:44.632088 | 2018-01-13T16:20:10 | 2018-01-13T16:20:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,067 | py | import torf
from torf import _utils as utils
import pytest
import os
from collections import OrderedDict
def test_validated_url():
utils.validated_url(f'http://foohost:{2**16-1}')
with pytest.raises(torf.URLError):
utils.validated_url(f'http://foohost:{2**16}')
utils.validated_url('http://foohos... | [
"rndusr@posteo.de"
] | rndusr@posteo.de |
db78e0ea1f17e7148ef067be4cb74e788b91f72c | 0ac3d6c9e80715f6fa0342a7dcb507227b1d233b | /Graph_TopologicalSort.py | a9e49417cbfae543cd4cb521f45a7e43b588f952 | [] | no_license | dgpshiva/PythonScripts | 5c0da10d1523b1b65ff088399ac893074c7e0c10 | b66cfe404a49612d963e1359bc82c924808e4cba | refs/heads/master | 2021-08-06T10:06:31.487280 | 2020-04-12T02:03:36 | 2020-04-12T02:03:36 | 61,086,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | from collections import defaultdict
class Graph:
def __init__(self, vertices):
self.graph = defaultdict(list)
self.stack = []
self.V = vertices
def addEdge(self, u, v):
self.graph[u].append(v)
def topologicalSortUtil(self, v, visited):
visited[v] = True
f... | [
"SRamasubramanian@slb.com"
] | SRamasubramanian@slb.com |
dfa3c479ec70411a64f8a13b416e0df0dc72039e | 2cf624600bbbe88e17e13d172cad2d0af7df804b | /ResolutionMethod/Iti0210lab73.py | 4eea90ae7a55355dad864202fc414c32e1b6d43b | [] | no_license | envomp/2020-Foundations-of-Artificial-Intelligence-and-Machine-Learning | 29e501ba3d8927eda81dfdd04708bbf25fc93e9b | 1d39d6f27d92d262882b36ebb11c784718508524 | refs/heads/master | 2023-03-31T11:53:06.331845 | 2021-04-04T23:03:54 | 2021-04-04T23:03:54 | 263,356,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,357 | py | BREEZE = 1
STENCH = 2
WUMPUS = 4
POTENTIAL_WUMPUS = 8
GUARANTEED_NO_WUMPUS = 16
PIT = 32
POTENTIAL_PIT = 64
GUARANTEED_NO_PIT = 128
GOLD = 256
UNKNOWN = 512
OK = 1024
NO_MAP_TO_EXPLORE = 2048
# for testing
world1 = [[STENCH | OK, OK, BREEZE | OK, PIT],
[WUMPUS, BREEZE | STENCH | GOLD | OK, PIT, BREEZE | OK],... | [
"envomp@ttu.ee"
] | envomp@ttu.ee |
ff82e0b46ee3acbc979699142311007c20375ad7 | d6681c3a5a47cfe4729f848756edd8253f9a53fd | /NERmaster_local/bert_lstm_ner-test.py | 642bda957607eedc3b877d9dc3caf499973e5eb2 | [
"Apache-2.0"
] | permissive | smartfindata/ChineseNLP | 28dd347d6240c50543b7c743d070f13c738f4fa4 | 466e45d5ad2e42e7751ce0eb4a4be04abad37bb9 | refs/heads/master | 2022-12-01T21:06:36.710708 | 2020-08-05T09:18:04 | 2020-08-05T09:18:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,980 | py | #! usr/bin/env python3
# -*- coding:utf-8 -*-
"""
Copyright 2018 The Google AI Language Team Authors.
BASED ON Google_BERT.
reference from :zhoukaiyin/
@Author:Macan
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import codecs
import collections
impor... | [
"yuxuan.zhao@tradingcentral.com"
] | yuxuan.zhao@tradingcentral.com |
3b0de834899f997d3899b7fac087eda59b03a816 | d8a541a2953c9729311059585bb0fca9003bd6ef | /Lists as stack ques/key_revolver (2).py | 51286e00570e0066dba3825aad1cc934c43e8eb8 | [] | no_license | grigor-stoyanov/PythonAdvanced | ef7d628d2b81ff683ed8dd47ee307c41b2276dd4 | 0a6bccc7faf1acaa01979d1e23cfee8ec29745b2 | refs/heads/main | 2023-06-10T09:58:04.790197 | 2021-07-03T02:52:20 | 2021-07-03T02:52:20 | 332,509,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | from collections import deque
bullet_cost = int(input())
gun_barrel = int(input())
bullets = list((map(int, input().split())))
locks = deque(map(int, input().split()))
safe_value = int(input())
current_bullet = 0
while bullets and locks and gun_barrel > 0:
for bullet in range(1, gun_barrel+1):
current_bull... | [
"76039296+codelocks7@users.noreply.github.com"
] | 76039296+codelocks7@users.noreply.github.com |
47b2e2c6713135eddf6a2bded9e16fb619be8fd1 | 50be26dcfa255117fbccc96b216e45069c690453 | /Endterm/et_3.py | a3296774701f03937064408c8e525cb2fc49aaa8 | [
"MIT"
] | permissive | aaronjohnsabu1999/MITx_6.00.2x | 4313ca3065faf2d60371fb388899d6f5c4236e3f | 113d719ea99f932df80bca69eac8dfac95aa034e | refs/heads/master | 2022-10-18T10:05:06.589132 | 2020-06-12T06:50:01 | 2020-06-12T06:50:01 | 255,260,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | import random
def drawing_without_replacement_sim(numTrials):
'''
Runs numTrials trials of a Monte Carlo simulation
of drawing 3 balls out of a bucket containing
4 red and 4 green balls. Balls are not replaced once
drawn. Returns a float - the fraction of times 3
balls of the same color were d... | [
"aaronjohnsabu1999@gmail.com"
] | aaronjohnsabu1999@gmail.com |
325e40933ed7d419fa7ff4060a5aaa47f07797c6 | b746a6844987c7405931c0d53c46ee0daa73e245 | /Model_Train.py | b0dde5198dc0b8f1b1ee622cb5d460ed3775cf83 | [] | no_license | romf90/TimeSeries_Project | 3491632693904477a890a8898fed8b289641b857 | 05b5bb3494c4a4d5880152e199e439ff23ab5ca4 | refs/heads/main | 2023-06-02T16:42:05.589023 | 2021-06-28T16:27:20 | 2021-06-28T16:27:20 | 380,994,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,668 | py | import tensorflow as tf
import numpy as np
from sklearn import preprocessing
def split_sequence(sequences, to_predict, window_size):
X, Y = [], []
for i in range(sequences.shape[0]):
if (i + window_size) >= sequences.shape[0]:
break # Divide sequence between data (input) and labe... | [
"noreply@github.com"
] | noreply@github.com |
1a2bd3e61d60e935cfab66dce3d660bda7c80bbd | 75978089de4fb9d1f320762ad77ad9c6926014c2 | /train.py | 2ef9995798bdd46015fade21f1cc977a9efa6c31 | [] | no_license | HSIYJND/bc_learning_image | 5b17f2622cd49e23ef1c0ea1a008a41e0f580f04 | 0598bfec1445765bbad3e3e911d123e43fc575e7 | refs/heads/master | 2021-08-29T04:51:22.587291 | 2017-12-13T12:31:50 | 2017-12-13T12:31:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,936 | py | import sys
import numpy as np
import chainer
from chainer import cuda
import chainer.functions as F
import time
import utils
class Trainer:
def __init__(self, model, optimizer, train_iter, val_iter, opt):
self.model = model
self.optimizer = optimizer
self.train_iter = train_iter
s... | [
"tokozume@mi.t.u-tokyo.ac.jp"
] | tokozume@mi.t.u-tokyo.ac.jp |
80f49f9ce84cd2ecb8d31318d2a7f46c6a0b878e | 4d3118fb51c7d42d22c1f1f3bbcbaebf5f0640d2 | /exercises/coin_flip.py | 4bceb538cd7f317864e00ff6d6a62c37a3b2f534 | [] | no_license | Gabkings/python-practise | d899d3d0a4094b9b272120ad2779cbe1c043f8db | bafc1fea60dfa6b7075204276fb6e3d857be2cbf | refs/heads/master | 2020-03-25T08:30:05.917168 | 2018-08-05T13:35:44 | 2018-08-05T13:35:44 | 143,615,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | from random import random
def coin_flip():
face = random()
if face > 0.5:
faceup = 'head'
else:
faceup = 'tail'
return faceup
con = coin_flip()
print(con)
| [
"gabworks51@gmail.com"
] | gabworks51@gmail.com |
b65538f6c6713185c6260f01ecb78c1ec506c5a8 | d68cc94a0ff0cf05fc8e0397a6527510b7135ffa | /02_python核心编程/mini_frame/装饰器/05_多个装饰器对同一个函数装饰.py | f07affbaf3e9ca6e44b84b173408a49cea6e6859 | [] | no_license | xiaoxue11/02_python_multi_task | c01679369820392abb347b95bfd0d52d8137eba9 | ac08cfb0f270dd8a0869c423959c4d4647cc5b71 | refs/heads/master | 2020-11-27T09:46:45.303259 | 2019-12-21T06:21:22 | 2019-12-21T06:21:22 | 229,386,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | def set_pri1(func):
print('decorate111 start')
def call_func(*args, **kwargs):
print('-----This is the authenticate 1-----')
return func(*args, **kwargs)
return call_func
def set_pri2(func):
print('decorate222 start')
def call_func(*args, **kwargs):
print('-----This is the a... | [
"xuezhang0111@gmail.com"
] | xuezhang0111@gmail.com |
61122cf8d525f6b5435f3e7f4c654fba7e261694 | 714268a27bd4cc34ec053cb3d991012151554aad | /CodeChef/atTheGates.py | 1bf5f096ca7f90fe56773272969212d1e8a86d07 | [] | no_license | yashhR/competitive | 2b649011c2cea74eea8d9646bcfafc73743651eb | 37f2ec68b33828df4692bc23f28d532cb8d4a358 | refs/heads/master | 2022-11-10T04:53:47.634062 | 2020-06-22T16:43:03 | 2020-06-22T16:43:03 | 274,190,602 | 0 | 0 | null | 2020-06-22T16:36:02 | 2020-06-22T16:36:02 | null | UTF-8 | Python | false | false | 1,801 | py | '''
There is a table in front of you, with N coins placed in a row and numbered 1 through N from left to right.
For each coin, you know whether it is initially showing heads or tails. You have to perform exactly K operations.
In one operation, you should remove the rightmost coin present on the table,
and if this coin ... | [
"17131a05h5@gvpce.ac.in"
] | 17131a05h5@gvpce.ac.in |
fe6fa5f2b7f049b42be3752091d0705c44c47877 | 32e46d8a7ab97a289dc72c2acc4227edce68be57 | /classicML/api/models/linear_model/logistic_regression.py | f964f0f19a7c0a23f9eba70e3f974dcdcb8565e9 | [
"Apache-2.0"
] | permissive | dongshiwen1998/classicML | 89ec9dd497488083a3b8b85edc8c5f63d249e33a | 5563b62a73db7cf088127c30a4c7f69c7c71345e | refs/heads/master | 2023-02-17T17:39:38.286653 | 2021-01-18T09:22:18 | 2021-01-18T09:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,433 | py | import numpy as np
from classicML import CLASSICML_LOGGER
from classicML.backend import get_initializer
from classicML.backend import get_optimizer
from classicML.backend import get_loss
from classicML.backend import get_metric
from classicML.backend import io
class LogisticRegression(object):
"""逻辑回归.
Attr... | [
"1638650145@qq.com"
] | 1638650145@qq.com |
0dc538a0e62732d9a745b270382a07f0f0af6b6a | b526f2a613c25d5b464eba263b00f66b40b51ad6 | /demoModule.py | 1f312d35b713fda5f06c9ee344bdc0e14cb144c8 | [] | no_license | jweiwu/ucom-python | 12c3c9152e9cf3815a34988912455f8e44b3b776 | 50ae0f2b5a907e4667f6252745c8eac0ff2d887e | refs/heads/master | 2020-04-06T08:43:00.739587 | 2018-11-16T08:24:01 | 2018-11-16T08:24:01 | 157,313,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | def foo(a, b):
return "[foo]:result=" + str(a + b)
def bar(a, b):
return "[bar]:result=" + str(a * b)
if __name__ == '__main__':
print foo(2, 2)
print bar(4, 4)
| [
"wujw@tcte.edu.tw"
] | wujw@tcte.edu.tw |
1a21293667b3cb7e185302ffb7736a7bbe0494dd | 09ce9635b0e74ba178e98efd0d5229a25995713e | /submissions/pakencamp-2019-day3/a.py | b5e2b7089cb507bc4e2b8a16412a7f5128acf605 | [
"Unlicense"
] | permissive | m-star18/atcoder | 7575f1e1f3ee1dfa4a765493eb17b4ef0ad5f1f0 | 08e475810516602fa088f87daf1eba590b4e07cc | refs/heads/main | 2023-07-14T09:16:42.807150 | 2021-08-22T15:59:48 | 2021-08-22T15:59:48 | 364,458,316 | 1 | 0 | Unlicense | 2021-08-22T15:59:49 | 2021-05-05T04:13:03 | Python | UTF-8 | Python | false | false | 201 | py | import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)
a, b = map(int, readline().split())
print(b - a + 1)
| [
"31807@toyota.kosen-ac.jp"
] | 31807@toyota.kosen-ac.jp |
d344ff4575913b1fc80546d3958562b78f8cd4f0 | c42d66b5b9696b1912d84782b1df1c7890a51e65 | /src/Thermometer.py | d57878980178e27cd2b891b3c9ca44853f592fca | [] | no_license | MohdMagd/Thermometer | 1d8de8932d44c3d2874fdaa6a04a0391aebaadc9 | 3e1585eace5aa66a8e246359f82b06d11f25fc2e | refs/heads/master | 2020-08-24T01:43:02.690154 | 2019-10-22T06:48:16 | 2019-10-22T06:48:16 | 216,742,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,726 | py | __author__ = "Mohamed Abouelmagd"
__version__ = "3.8.0"
__email__ = "mohamed.almajd@gmail.com"
__status__ = "Coding Assessment Assignment"
import pandas
import threading
from time import sleep
class Thermometer(threading.Thread):
"""
This class implements a Thermometer that provides temperature readings in b... | [
"mohamed.almajd@gmail.com"
] | mohamed.almajd@gmail.com |
f63a96a8d0170ed389761ed0743e645a05ed00a6 | 95b36b65363b47987b843c32395468cbfa89f852 | /MH & NM - Utregning (I Arbeid).py | bd82e42626da71bc12165ecfbb0b339af1c4f419 | [] | no_license | maglaiandniknus/magnusandnikolai | 0fa3263381c0956b49ad0c05176dd86e78c255b5 | d8e4acef0f215019c293bfd975e004941401fcfd | refs/heads/master | 2021-05-10T00:02:34.648315 | 2018-01-24T21:09:03 | 2018-01-24T21:09:03 | 118,820,649 | 0 | 0 | null | 2018-01-24T20:52:45 | 2018-01-24T20:52:45 | null | UTF-8 | Python | false | false | 16,738 | py | #Nikolai Myhre sitt program - Laget den 18.01.18
while True:
kode = input ("Enter Code: ")
if kode=="Nikolai":
print("-----------------------------------------------------------------------------")
print("Access Granted")
print("-------------------------------------------------... | [
"noreply@github.com"
] | noreply@github.com |
6baa670fec25f09a1def1a8735cc8d3770c0c375 | 7569eedbf9d78d751fd32aae231c2f9dcf1527d5 | /super/test1.py | 458e618d7c7b480b123dd132d1cc5da1709aa6c5 | [] | no_license | TatsuyaSAS/Python_Practice | 99de4f103d822c267c4b4fb6d41b23631eca050b | 998a42953e7cd46acb587471d90fc4cdc25f8f24 | refs/heads/master | 2020-07-07T11:10:54.814816 | 2019-10-16T00:40:03 | 2019-10-16T00:40:03 | 203,332,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | import clas_test1 as t
print(t.Warrior(5).status())
print(t.Magician(5).status())
print(t.MagicWarrior(10).status())
print(t.WarriorMagic(10).status()) | [
"sasaki@newcom07.jp"
] | sasaki@newcom07.jp |
ba90700394eafe9920c08ef79880209dbdb6dc29 | e0c060f5c39b64ae0c0218d1b83941f903240a98 | /src/core/migrations/0004_auto_20200208_1900.py | 6565c36416efd3ee790a3870ef3009ab683c88fd | [] | no_license | beingabeer/Budget-App | 3ebfecc45f3c3653265407b6bc727143c887b8a2 | 9d3ded6cc0ed81614e9312651b80c855c18caf7b | refs/heads/master | 2022-12-09T07:05:40.211377 | 2020-05-12T16:08:40 | 2020-05-12T16:08:40 | 238,864,992 | 0 | 0 | null | 2022-12-08T03:43:37 | 2020-02-07T07:17:31 | Python | UTF-8 | Python | false | false | 917 | py | # Generated by Django 3.0.3 on 2020-02-08 19:00
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"abeer.sewak@gmail.com"
] | abeer.sewak@gmail.com |
9e3ff7d67de23fa012ea1b72d3a219fc93839ce5 | bdd5be50ff24a68a6591c757f9b5f50cdb75af91 | /blog/migrations/0001_initial.py | 9fcbc1929998525d5e821fb0c649b985be6021fc | [] | no_license | Taxidermyst/myawesomeblog-project | 44027d71ca15bee0c29d0156b48335a5d25f5e22 | 2c2b4ceddb8734b761105a5441ff3796d587d30a | refs/heads/master | 2023-01-08T22:27:41.150719 | 2020-11-08T19:46:26 | 2020-11-08T19:46:26 | 310,854,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | # Generated by Django 3.1.2 on 2020-11-08 19:15
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Blog',
fields=[
('id', models.AutoField(aut... | [
"taxidermyst@gmail.com"
] | taxidermyst@gmail.com |
4ddc54f38b6becbacb51522daa6b0c0440087284 | e40e2df9f77fd087e2dae6862e1a8086f8d62fc6 | /calculadora_petrolera.py | 0bc1eca599cba055b16175317db21b843fdfc722 | [] | no_license | JuanGuillermoRo/calculadora_petrolera | 5545b94a4e85802409eb9f271eea6c983d3a477c | 4f56145978f3b276aca71b5773e2ab6e04ec1fac | refs/heads/master | 2023-01-27T13:15:54.746780 | 2020-12-14T22:34:17 | 2020-12-14T22:34:17 | 321,479,478 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | print("bienvenidos, ingresa una función: ")
print("1. Presión",'\n'
"2. Gradiente Presion",'\n'
"3. Peso del lodo",'\n')
while True: #ciclo condicional para entrar a la calculadora
s = input("Ingrese formula:")
if s == "0": break
if s in ("Presión","Gradiente Presión","presión_hidrostatica"):
... | [
"juan.romero.libreros@gmail.com"
] | juan.romero.libreros@gmail.com |
b0e13af0c74a046f0c47e2768216b56f00c14dd9 | 8165dd8e08b7841af4854c6a3da4a49108de7275 | /djangoFundamentals/currency/apps/crypto/urls.py | 71db8400f3c96808f61892135c0a700b43e44cb1 | [] | no_license | rhennesy16/python-projects | f83cde6a6c3b074d0497f49110a6d52328c7abad | 563337e1c1763f1e3e73ced120639b9910e25dc0 | refs/heads/master | 2022-12-23T17:23:34.547592 | 2018-12-11T20:23:28 | 2018-12-11T20:23:28 | 161,387,375 | 0 | 1 | null | 2022-12-09T06:11:10 | 2018-12-11T20:04:32 | Python | UTF-8 | Python | false | false | 70 | py | from django.urls import urls
urlpatterns = [
url(r'^',views.index)
] | [
"43421962+rhennesy16@users.noreply.github.com"
] | 43421962+rhennesy16@users.noreply.github.com |
51983ca20e1fbe83d6276e992b5a5444e7882e46 | cee76d41656f91f99eb5abf9f0156c5cc24276a7 | /docs/conf.py | 5f306f4055fece1008f38b07c8afc81dd4713050 | [
"MIT"
] | permissive | mbattifarano/mac-data | 7f382333efef9ab0b2d154d65a6ffaf7a419e026 | 9c9cd608ee176a8d12427bbaeab2f3453b98c71c | refs/heads/master | 2023-08-29T14:08:46.387998 | 2020-04-26T20:43:38 | 2020-04-26T20:43:38 | 134,298,259 | 3 | 0 | MIT | 2023-09-04T14:14:16 | 2018-05-21T16:52:34 | Python | UTF-8 | Python | false | false | 4,874 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# mac_data documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 9 13:47:02 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# au... | [
"matthew.battifarano@gmail.com"
] | matthew.battifarano@gmail.com |
0dbea73b76e54ad31e887392ffd0ad38a6e24ba9 | a38412d07fa1467a8c9424d6e6a31309f81b81ae | /flask/bin/migrate | 80877876505f6caf7ca5c123a55daff1c508b1bd | [] | no_license | alexxpan/find-frisbee | 15604329bb02b7ec9d398335d09462e183aa7deb | 552ec6d41e61aeb54380dfba714feb30c4ab80a4 | refs/heads/master | 2021-04-29T07:20:48.176105 | 2017-01-18T07:44:24 | 2017-01-18T07:44:24 | 77,953,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | #!/Users/alpan/Projects/web-app/flask/bin/python3
# PBR Generated from 'console_scripts'
import sys
from migrate.versioning.shell import main
if __name__ == "__main__":
sys.exit(main())
| [
"alpan@Alexs-MacBook-Pro.local"
] | alpan@Alexs-MacBook-Pro.local | |
e6f1b11dce192cdf0165598749d04705374bf7b9 | 4acaf3c1fcb4215005c29246876c363c0532769e | /HiggsAnalysis/VBFHiggsToVV/test/test_JetCleaning_cfg.py | 3fecc043c04f2dc6f68ac884139b24bf394b35a2 | [] | no_license | amassiro/usercode | a622d43299ebf746e3afbb53383ea7576321341f | 91e19d2dad3a6f413fb65555b125452a355a0275 | refs/heads/master | 2020-03-29T16:43:58.666141 | 2015-08-05T11:03:53 | 2015-08-05T11:03:53 | 12,158,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,789 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("AmbResolverTEST")
# --- ============== --- --- --- --- --- --- --- --- --- --- --- ---
# --- general things --- --- --- --- --- --- --- --- --- --- --- ---
# --- ============== --- --- --- --- --- --- --- --- --- --- --- ---
process.options = cms.unt... | [
""
] | |
56abe1edcb86768ef89b0590b690f1751f52cbb4 | ae3a9f7c781dfc5d4e3a9c7c61e48c4be1ff7eb1 | /programs/day4-2.py | 693ba6bd7d20efee8095df16a235c23f245b6bfb | [] | no_license | eli0lson/AdventOfCode2020 | 5c6f45e4ba8d5cb818c6d7407091bd1e61863838 | 2bcbb086db20b57827455d6f8a302efc3eaa9ffd | refs/heads/main | 2023-02-09T05:19:49.207186 | 2021-01-04T19:37:59 | 2021-01-04T19:37:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,422 | py |
all_fields = ["byr", "iyr", "eyr", "hgt", "hcl", "ecl", "pid", "cid"]
def isValid(fields):
field_dict = {field: None for field in all_fields}
for field in fields:
field_dict[field[0]] = field[1]
for field in field_dict:
if (field == "cid"):
continue
elif (not field_dict... | [
"eolson1799@gmail.com"
] | eolson1799@gmail.com |
79607f29b1c128c1af58f1d19c791c0dff5996b1 | f32388e3cc46adc4adeffed01c7f8112a20911d4 | /subtitles_crawling .py | 45c8f649e8062bbd47b7a847c16ec4ad5b66f6c8 | [] | no_license | koreaunivcamp11/moviebeat | 3b75996a6784347529fe24ab752d21281e7dd96f | 9dbc43f1f8a32da6a7f84a3372e672ba8745ad76 | refs/heads/master | 2020-06-27T08:39:55.052573 | 2019-08-28T03:00:19 | 2019-08-28T03:00:19 | 199,901,556 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 8,907 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import sys
sys.path.append('..')
from bs4 import BeautifulSoup
import math
import re
import numpy as np
from random import *
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
import requests
import time
import os
import shutil
... | [
"noreply@github.com"
] | noreply@github.com |
cab2dfb8e24e9904c70d43f4d4be931c23d157d1 | 6a379eac16cd8dddd95c612e1ac39d45f24c8589 | /teaIndex/teaIndex/spiders/constructor_spider.py | 00b808e485b09e896a3e4937094e1a42f6d97378 | [] | no_license | PivithuruThejan/CS4642-IR-CivilEngineeringIndex | 9e71522d8ebb1c5850e5972686b22e4ea3874b49 | 44267c9294381983314794dc9ea87b315c70488b | refs/heads/master | 2020-03-20T02:38:12.251211 | 2018-06-19T16:42:40 | 2018-06-19T16:42:40 | 137,117,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | import scrapy
class QuotesSpider(scrapy.Spider):
name = "constructor"
start_urls = [
'https://theconstructor.org/',
]
for i in range (2,277):
start_urls.append('https://theconstructor.org/page/' + str(i) +'/')
def parse(self, response):
for article in response.css('div.... | [
"pivithuru.14@cse.mrt.ac.lk"
] | pivithuru.14@cse.mrt.ac.lk |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.