blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
00015c61a48894a48a04743807bb33ea6344e7a9 | 3778ad04248d977a1833dc5115ec6200b47bae8e | /post/ru_urls.py | 10d6e30e275585255cad0457f1257efc33841474 | [] | no_license | Salamonk653/assosiation | 7b31fd4b599b573924b564083ac1e2ba9b8330bd | dc0684aa638bfefa2db23d54699e2636bce79b9b | refs/heads/master | 2020-08-07T10:32:11.019476 | 2019-11-01T09:26:01 | 2019-11-01T09:26:01 | 213,412,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | # -*- coding: utf-8 -*-
# Create your models here.
from django.conf.urls import url
from .ru_views import *
urlpatterns = [
url(r'^$', News.as_view(), name='ru_news_list'),
url(r'^contact/form/$', contact_form, name='ru_contact_form'),
url(r'^category/news/$', NewsList.as_view(), name='ru_category'),
... | [
"salamonk653@gmail.com"
] | salamonk653@gmail.com |
1b791df01ad4e5c52889dcf50e1aa2acbc51742e | 88b860c998d45097b5604e1d8a45ad9ec2040a43 | /v_charge/wsgi.py | 1aa8c205b9fb1656c4cb25c03ecd6d468a630a8e | [
"MIT"
] | permissive | xujpxm/v_charge | ac13fa54f41f04e05aa0b97d9b1c7f2050c9fa8f | abb1237eeca066cec435680e38ab6878a8d4ac27 | refs/heads/master | 2021-03-27T20:46:22.147595 | 2018-01-29T02:53:14 | 2018-01-29T02:53:14 | 100,686,236 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | """
WSGI config for v_charge 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.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"329771774@qq.com"
] | 329771774@qq.com |
7d5ff1926da52012ced9e9ebf96936e820b7484e | a41d72e8497fbf89e7f663814dde87f4d4138256 | /lab5/database.py | 59c97a76ded865bee8ee58ad4fc0ae8df9ec836b | [] | no_license | pteszka/concurrent-programming | 95b7421654c9dd409bfcb5d41a6bfecdf01568df | e53f05d8872748c0718f48eb573256543ac6309f | refs/heads/main | 2023-04-24T15:07:18.546816 | 2021-05-05T14:35:13 | 2021-05-05T14:35:13 | 347,689,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | db = {
1: 'Nowak',
2: 'Kowalski',
3: 'Wiśniewski',
4: 'Dąbrowski',
5: 'Lewandowski',
6: 'Wójcik',
7: 'Kamiński',
8: 'Kowalczyk',
9: 'Zieliński',
10: 'Szymański',
11: 'Bąk',
12: 'Chmielewski',
13: 'Włodarczyk',
14: 'Borkowski',
15: 'Czarnecki',
16: '... | [
"pteszka98@gmail.com"
] | pteszka98@gmail.com |
b432a24aed84a1483e21a42106c5112670155900 | 32743313138f0ad02b93694b25e480c4fe9c10dc | /Prac_01/loops.py | 5637622e1475d61af879a7a893072a0305af13d4 | [] | no_license | yoon1812/CP1404_practicals | 2b855fbc4dd755df4dd8805f8497df77a99a68e3 | 872a3b9a23a33f3eef7f3f164b5d40af77682203 | refs/heads/master | 2023-02-17T09:38:15.222947 | 2021-01-13T09:11:49 | 2021-01-13T09:11:49 | 321,995,326 | 0 | 0 | null | 2020-12-17T06:45:19 | 2020-12-16T13:44:43 | Python | UTF-8 | Python | false | false | 406 | py | for i in range(1, 21, 2):
print(i, end=' ')
print()
for i in range(0, 110, 10):
print(i, end=' ')
print()
for i in range(20, 0, -1):
print(i, end=' ')
print()
number = int(input('Number of stars: '))
for i in range(1, number + 1):
print("*", end='')
number = input('Number of stars: ')
for i in range(1... | [
"yoon1812"
] | yoon1812 |
96005790378d6d9083513a1e624cac02aaf72eec | f4cdb0ac8b17d3605da61adad468d609b6558fe5 | /PAM30.py | 44072aec3910838b3f52cc33df38d171a5305aab | [] | no_license | ackdav/PAMIE | 786e6a0b963b00a71ca30444fa54e66b0e6eefac | 81e74df135a67770bbb207afc97b1ad4c9f3e970 | refs/heads/master | 2022-11-22T04:51:06.962588 | 2019-01-20T10:48:54 | 2019-01-20T10:48:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81,256 | py | """
PAMIE Build 3.0a
Based on cPAMIE and PAM.py by RLM
Revised: March 03, 2009
Developers: Robert L. Marchetti
Description: This python class file allow you to write scripts to Automate the Internet Explorer Browser Client.
This software is provided 'as-is', without any express or implied warranty.
In no event will ... | [
"ack.dav@gmail.com"
] | ack.dav@gmail.com |
ff41a3a285dac60d7350452a24276e372ba98879 | 2ebe6ccf7e731c90dcb9da8adbf22a9053f6addd | /sumithack/apps.py | 5acf235a7e10b009fc73757aead4fcb2c3d829d2 | [] | no_license | Anurodhyadav/sumit | dda251af2d4035e262c5cba3c919190d40c45cd5 | 954499d4960eda012d7dfac17b0f3f590eb5cb01 | refs/heads/master | 2022-11-07T05:46:53.938797 | 2020-06-20T03:58:47 | 2020-06-20T03:58:47 | 273,634,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class SumithackConfig(AppConfig):
name = 'sumithack'
| [
"anurodhyadav072@gmail.com"
] | anurodhyadav072@gmail.com |
9ee11bd0601d37a6f4bffe5cbdb8fa671bdafcf2 | 53e0e35f58dc169d5b4e293ff073f46948fbe278 | /pytorch_projects/fine-grained-image-recognition/Bilinear_pooling/bilinear_attention_pooling.py | 935f28870467d302135460d0ebde022283d642a3 | [] | no_license | Hoodythree/DeepLearningCode | 25097227d512e80b233352ce2cc58b023591b165 | 3e2d30198956c9f01c5fc8f9df4667eef43c51e9 | refs/heads/master | 2022-08-30T09:08:09.760487 | 2020-05-17T13:35:05 | 2020-05-17T13:35:05 | 262,494,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | import torch
import torch.nn as nn
### Bilinear Attention Pooling
class BAP(nn.Module):
def __init__(self, **kwargs):
super(BAP, self).__init__()
def forward(self,feature_maps,attention_maps):
feature_shape = feature_maps.size() ## 12*768*26*26*
attention_shape = attention_maps.size() ... | [
"luoqiuhongthree@gmail.com"
] | luoqiuhongthree@gmail.com |
484e4be2de9b3edd790d88d2fe8f05a5f0df47c3 | bbdfc358fc8c7d9bc5f2837d750dc2ff82ca4e69 | /training/00_split_folds.py | e1af961b4cf4074b3994bd26acc48c06062808bd | [] | no_license | MikeMpapa/CityNet | 70c03b48eb9b0e8837a1074b00a5777a1ee69def | d1178f1b008ac2cb94ce9e0b0c4e87bc8c914707 | refs/heads/master | 2023-06-14T06:39:27.752096 | 2021-07-11T09:27:47 | 2021-07-11T09:27:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,067 | py | import os
from collections import Counter
import random
import yaml
base = yaml.load(open('../CONFIG.yaml'))['base_dir']
spec_pkl_dir = base + 'extracted/specs/mel/'
files = [xx for xx in os.listdir(spec_pkl_dir) if xx.endswith('.pkl')]
file_sites = [xx.split('_')[0] for xx in files]
print len(files)
print len(set(f... | [
"mdfirman@gmail.com"
] | mdfirman@gmail.com |
b5694c0362e026890305fda0e8d8abc8c2aa85ab | f96318ff6cd12c23643a31c5385480535cc6e9cb | /307. Range Sum Query - Mutable/solution.py | aaf62ee58362e2dd5dbd82ba6305ec8b495c7845 | [] | no_license | yz89122/leetcode | 157156c463078fc2aeb98832a6c00f042cf9c7c4 | 95b03a7f5108dc839452361e1428649c382b8908 | refs/heads/master | 2022-03-28T12:46:28.565963 | 2019-12-03T14:24:11 | 2019-12-03T14:24:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,259 | py | class NumArray(object):
def __init__(self, nums):
"""
:type nums: List[int]
"""
self.n = len(nums)
self.tree = [0]*self.n + nums
for i in range(self.n-1, 0, -1):
self.tree[i] = self.tree[i*2] + self.tree[i*2+1]
def update(self, i, val):
... | [
"yanzhen610@gmail.com"
] | yanzhen610@gmail.com |
fa4f6aaa05c0415156383cf731bbdd6dd0514bdc | 56403ba98efb1e961e318b2a24e9fe7ee8ca77db | /Lehigh_race_Ver_3_1/scripts/Lehigh_Ver_3.py | a90a3f89b146381c1f374d8a6ed1705aa3402ea2 | [] | no_license | Xiyuan-Zhu/Lehigh_race_Ver_3_0_0 | 013e2d47c6d7c59897f02964c5d840f6b88f5084 | 626d7344ff7d5fb7d8b99de0682e698fc0d94d0d | refs/heads/master | 2022-11-20T08:16:23.867347 | 2020-07-10T01:47:46 | 2020-07-10T01:47:46 | 278,510,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,199 | py | #!/usr/bin/env python
from __future__ import print_function
import sys
import math
import numpy as np
#ROS Imports
import rospy
from sensor_msgs.msg import Image, LaserScan
from ackermann_msgs.msg import AckermannDriveStamped, AckermannDrive
class reactive_follow_gap:
def __init__(self):
#Topics & Subscri... | [
"noreply@github.com"
] | Xiyuan-Zhu.noreply@github.com |
6855bfc73dbfcaccd2958b3fcf2df31a7a79e0a6 | a6308fa4d2a92a1ee15f7dc2c403010108f0daa3 | /Practice-TCA/Practice-TCA-2/Task-6.py | ec5d5b059fd753c53775b18691f5ca008babedbe | [] | no_license | IIvanov29/com404 | 57540d326fb532aa6a3cea06ebf6b92df9650638 | 94974add4a5688ba726d80dbcabf5b8a965c583d | refs/heads/master | 2020-08-01T20:24:35.746513 | 2019-11-28T17:04:22 | 2019-11-28T17:04:22 | 211,105,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | #Functions
def is_league_united(Hero_1,Hero_2):
if Hero_1 == "superman" and Hero_2 == "wonder woman":
return True
else:
return False
def decide_plan(Hero_1,Hero_2):
league_is_united = is_league_united(Hero_1,Hero_2)
if league_is_united == True:
print("Time to save the worl... | [
"4Ivani51@solent.ac.uk"
] | 4Ivani51@solent.ac.uk |
122a05dc3115f6ed66c2747d3dc1e78c44cd4955 | 52e0e1ef7675d8bac51899f23b2722e7e7f58992 | /core/data/base_collector.py | 972479bf987185887d7e79d61ee4b166286f1b46 | [
"Apache-2.0"
] | permissive | knowmefly/DI-drive | 2c8963a04d00aa8b3c3354630b6df9e3e6a6770e | ade3c9dadca29530f20ab49b526ba32818ea804b | refs/heads/main | 2023-07-08T14:40:39.625522 | 2021-07-21T15:54:48 | 2021-07-21T15:54:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | import copy
from abc import abstractmethod
from typing import Any, Dict
from easydict import EasyDict
from ding.utils import EasyTimer
class BaseCollector(object):
config = dict()
def __init__(
self,
cfg: Dict,
env: Any = None,
policy: Any = None,
) -> No... | [
"sissure@qq.com"
] | sissure@qq.com |
7b2f3ffb266a6b73b251aa0bed91d044d1201bd4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03162/s990109089.py | 40f2258c0867493398fd6c13585706e99574813b | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | n=int(input())
happines=[list(map(int,input().split())) for _ in range(n)]
solution=[[0,0,0] for _ in range(n)]
solution[0][0]=happines[0][0]
solution[0][1]=happines[0][1]
solution[0][2]=happines[0][2]
for i in range(1,n):
for j in range(3):
solution[i][j]=happines[i][j]+max(solution[i-1][(j+1)%3],soluti... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e3b3126e6676609e20aa10a8b485b3a059b0fd77 | 8787b2fbb5017b61dcf6075a5261071b403847bf | /Programmers/N으로 표현.py | 21d160641aee1be033211795680b2a0e5c76564b | [] | no_license | khw5123/Algorithm | a6fe0009e33289813959553c2366d77c93d7b4b9 | 323a829f17a10276ab6f1aec719c496a3e76b974 | refs/heads/master | 2023-01-02T00:12:21.848924 | 2020-10-23T06:37:41 | 2020-10-23T06:37:41 | 282,162,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,202 | py | def calc(s, N, number):
result = 0
start = 0
tmp = ''
for i in range(len(s)):
if s[i] != str(N):
start = i
result = int(tmp)
break
else:
tmp += s[i]
tmp = ''
operator = []
for i in range(start, len(s)):
if ... | [
"5123khw@hknu.ac.kr"
] | 5123khw@hknu.ac.kr |
39cef36bc0d58167ed758de24878b2696119c184 | 3f6681942d3fdc4b5944349298e434f9ddb24358 | /binary_neuron/rnn/baseline.py | f17896668c22fb3e5503672a5454603292b45eff | [] | no_license | danhorvath/BNN | b4460fdf70ca5817d136e31f53310ba117f667a8 | 87bdb8803de94d8fbcb9a5439612c3fcf8c184cd | refs/heads/master | 2022-02-17T06:19:14.480886 | 2019-05-28T21:15:24 | 2019-05-28T21:15:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,876 | py | # LSTM for international airline passengers problem with regression framing
import numpy
import matplotlib.pyplot as plt
from pandas import read_csv
import math
import tensorflow as tf
from sklearn.preprocessing import MinMaxScaler
from sklearn.metrics import mean_squared_error
# convert an array of values into a dat... | [
"dhorvath19@gmail.com"
] | dhorvath19@gmail.com |
832cecc66221149f457cd8750d9d2a8e12f7279a | 825b2f981ef0d10376b1c0ab868b785f7db866d5 | /recognise_district/recog.py | 4ff1c2c3419e84a74b6e639a8eea6cfd087bc36e | [
"Apache-2.0"
] | permissive | waterblas/ROIBase-lite | fb5c7c8e24c021640a8dc9a97ca57d194d31c439 | 935c201c40d82310f4af8a62faf03302cf5d1a5b | refs/heads/master | 2022-10-11T04:35:36.845742 | 2020-01-16T03:43:03 | 2020-01-16T03:43:03 | 234,224,526 | 2 | 0 | Apache-2.0 | 2022-09-23T22:35:01 | 2020-01-16T03:12:40 | Python | UTF-8 | Python | false | false | 1,484 | py | import os
import logging
from . import detect
try:
import pkg_resources
get_module_res = lambda *res: pkg_resources.resource_stream(__name__,
os.path.join(*res))
except ImportError:
get_module_res = lambda *res: open(os.path.normpath(os.path.join(
... | [
"dylanliang@tencent.com"
] | dylanliang@tencent.com |
f2aa22a6ef30dda30a0016764697e8e17c545936 | c1451d5bd0b9b559b5742a9c7afd671c030606ec | /doc/conf.py | 88b67367c040e2716cdcc9160f9ec15cae6ce00a | [] | no_license | frasanz/Furnivall | f9e94a026a28277216bb842acb16727bf9616937 | b537d8fcfa7741e65cfc8046ae8b62005180cafa | refs/heads/master | 2021-01-17T21:52:43.936793 | 2012-09-26T15:42:40 | 2012-09-26T15:42:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,049 | py | # -*- coding: utf-8 -*-
#
# Furnivall documentation build configuration file, created by
# sphinx-quickstart on Tue Jun 21 15:23:01 2011.
#
# 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
# autogenerated file.
#
# A... | [
"xayon@xayon.net"
] | xayon@xayon.net |
ff018bb0afaa9350c99b5870f055c3ee688bedf9 | 3ab86d92139335f212dcb880a4047a20cc79d924 | /library/visual_studio_code_install_extension.py | 2f96b4173087aa67173ea1d6605be76a5fcb122f | [
"MIT"
] | permissive | sosheskaz/ansible-role-visual-studio-code | 61c6f4bfbf2102b14633cc0f825e9e169ccb92ae | e17ecd5bdf956857a00f181e9dd773bf0cc8a54e | refs/heads/master | 2020-04-04T12:51:07.918613 | 2018-10-31T13:03:29 | 2018-10-31T13:03:29 | 155,939,661 | 0 | 0 | MIT | 2018-11-03T01:43:35 | 2018-11-03T01:43:34 | null | UTF-8 | Python | false | false | 2,688 | py | #!/usr/bin/python
# Make coding more python3-ish
from __future__ import absolute_import, division, print_function
import os
from ansible.module_utils.basic import AnsibleModule
__metaclass__ = type
def is_extension_installed(module, name):
rc, out, err = module.run_command(['code', '--list-extensions', name])... | [
"noreply@github.com"
] | sosheskaz.noreply@github.com |
2edda813a68b94ffdf1c3d6201c1cff73d0ddad3 | aaad70e69d37f92c160c07e4ca03de80becf2c51 | /filesystem/usr/lib/python3.6/asyncio/base_events.py | 32b4f0adcd1093409fe44dc22121f8affc046568 | [] | no_license | OSWatcher/ubuntu-server | 9b4dcad9ced1bff52ec9cdb4f96d4bdba0ad3bb9 | 17cb333124c8d48cf47bb9cec1b4e1305626b17a | refs/heads/master | 2023-02-10T18:39:43.682708 | 2020-12-26T01:02:54 | 2020-12-26T01:02:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | {
"MIME": "text/plain",
"inode_type": "REG",
"magic_type": "Python script, ASCII text executable",
"mode": "-rw-r--r--",
"sha1": "23f1c44c157099ef5d66c87ba91eb7128afa4867"
} | [
"mathieu.tarral@protonmail.com"
] | mathieu.tarral@protonmail.com |
2ad7f8907bd282c066e9db3e2553e053f204e9a8 | a70778e730f6d3e3be04ba449e6ed0a9ff7d7e6d | /classifier_5b_rough_fine_tune_from3z.py | 4e132cf8513dd1cd901bd4a0c5a2f1a6c88b44fc | [] | no_license | previtus/two_classes_ml | 0351e62544cc46f9c09847de641fd84aac94d38b | 0f780e2e3736e6280dddd25540911d60c9d721d8 | refs/heads/master | 2021-05-10T10:05:38.526602 | 2018-08-06T19:59:26 | 2018-08-06T19:59:26 | 118,946,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,192 | py |
img_size = None #(20,20)
img_size = (150,150)
epochs_first = 10
epochs_second = 40
batch_size = 16
validation_split = 0.3
RESCALE = 1. / 255 # put data from 0-255 into 0-1
# GET ALL DATA
# define the classes in here directly
from data_handling import LOAD_DATASET, LOAD_DATASET_VAL_LONGER_THR2, sample_random_subset_fr... | [
"previtus@gmail.com"
] | previtus@gmail.com |
ae677af6e8fa264d763b3a65dddbae88139e63a9 | fbe8a9f98d9256d47e51589c6d8fad7da07bbe28 | /VeterinarioSW/ControlDeVeterinaria/forms.py | f83a79aad7e5f8b9bf8a56665a3deaeb6cb6fbc1 | [] | no_license | BryanBonillaFraire/VeterinariaGPS | 40d77ecf745f6eef3db56391d95e35a5e144d2bc | 93f245d6a3a5119a4b0902be4ae3cfc3dbfc11b5 | refs/heads/master | 2023-02-13T01:00:19.487220 | 2021-01-17T21:51:14 | 2021-01-17T21:51:14 | 304,478,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,097 | py | from django import forms
from .models import Mascota, Propietario, PagoServicio, Cita, Producto, PagoProducto, Proveedor, Comprador, Factura, Cirugias, Vacunas, Otros, Enfermedades, Account
class MascotaForm(forms.ModelForm):
class Meta:
model = Mascota
fields = ['nombreMascota', 'especie', 'raza'... | [
"EvilBBF@gmail.com"
] | EvilBBF@gmail.com |
7d1fe2d018dd144e5f2638caf6996debb07587d3 | f93e5da9f78d3b8bcdd96d2314dd09c8cbaf2336 | /FastAPI/main/sql_app/main.py | 66eb5aa4b1bd7948d8ebe29d956e76b6a981ad75 | [] | no_license | Bahat159/bahat159.github.io | f4f7e12031c86c39e358b0ad9f064facedfd1a88 | ff2f0d037d8f469b69dcd6b9ec3135eab9dde87e | refs/heads/master | 2023-03-15T19:00:40.125849 | 2023-03-11T20:59:09 | 2023-03-11T20:59:09 | 253,337,084 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | from typing import List
import crud, models, schemas
from sqlalchemy.orm import Session
from fastapi import Depends, FastAPI, HTTPException,Request, Response
from database import SessionLocal, engine
models.Base.metadata.create_all(bind=engine)
app = FastAPI()
@app.middleware("http")
async def db_session_middleware... | [
"noreply@github.com"
] | Bahat159.noreply@github.com |
98e2fd9aca40497bd38d0b356abb49cce8cce88d | 6be81c38e28732321d4e321c684de833b7b8693c | /day_06/line_parser.py | 06bc6357ab478ee6fd836c1e6912bf4c5cf89572 | [] | no_license | matyasfodor/advent-of-code-solutions | 9d8e278afb5b49403fdefba7df06985fdebee213 | 74d942e3e730e4b8363fe082b1026a22169f9a33 | refs/heads/master | 2021-01-10T07:25:58.554794 | 2015-12-31T12:33:12 | 2015-12-31T12:33:12 | 47,652,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | import numpy as np
INCREASE = TURN_ON = 0
DECREASE = TURN_OFF = 1
INCREASE_BY_TWO = TOGGLE = 2
line_part_to_instruction = {
'on': TURN_ON,
'off': TURN_OFF,
'toggle': TOGGLE,
}
class LineParser:
def __init__(self, instruction, selector):
self.instruction = instruction
self.selector =... | [
"matyas.fodor@prezi.com"
] | matyas.fodor@prezi.com |
6a049dd3ef506c79f51ddce14afacd9ef7f1dce0 | 3c4b1eb96173414492decec1872360bf8b920f71 | /Chapter 15/mpl_squares.py | c130d7338bb1184f8b7afdbad6b09b09e78b51f5 | [] | no_license | robbiecares/Python_Crash_Course | a7b4d97f6be919ae197c2216a883eb316acf6272 | a481938bbbb0fba737db2b4a6b0420c0b2766d8a | refs/heads/master | 2023-04-13T20:23:48.196930 | 2021-04-23T11:51:11 | 2021-04-23T11:51:11 | 360,775,932 | 0 | 0 | null | 2021-04-23T09:03:46 | 2021-04-23T05:45:18 | HTML | UTF-8 | Python | false | false | 668 | py | import matplotlib.pyplot as plt
plt.style.available
#input_values = [1,2,3,4,5]
#squares = [1,4,9,16,25]
x_values = range(1,5001)
y_values = [x**3 for x in x_values]
plt.style.use("seaborn")
fig, ax = plt.subplots()
ax.scatter(x_values, y_values, c=y_values, cmap=plt.cm.Blues, s=10)
#ax.plot(input_values, squares, ... | [
"robbiecares@gmail.com"
] | robbiecares@gmail.com |
8871896d5379ec5750e6fb6433622c846811c30b | b8fed8222b41e447cd5ce83513eb4d014c01742b | /ad_report_salesadmin/po/po_form.py | ae2a831ae88665d254b25eafbddb16d0e61cf761 | [] | no_license | lajayuhniyarsyah/ERP-Supra | e993d8face6e022b6f863d1dff7cb51cda36be8d | 5a64dbb57ee40070354926700091fb9025c1350c | refs/heads/master | 2021-01-25T22:09:46.306990 | 2017-11-08T05:32:04 | 2017-11-08T05:32:04 | 23,605,825 | 0 | 10 | null | 2017-11-08T05:32:05 | 2014-09-03T03:58:28 | Python | UTF-8 | Python | false | false | 2,035 | py | import time
from report import report_sxw
from osv import osv,fields
from report.render import render
#from ad_num2word_id import num2word
import pooler
#from report_tools import pdf_fill,pdf_merge
from tools.translate import _
import tools
from tools.translate import _
import decimal_precision as dp
#from ad_amount2te... | [
"lajayuhni@gmail.com"
] | lajayuhni@gmail.com |
f040cc2c3bcc0b27174802337d61601ed34c13a6 | 38c1e589388752100c4afcbe0b445bfff033bab2 | /friend/migrations/0003_auto_20200819_1444.py | 0bf415da2081910e1e2d42a9465ac80b351f2e6a | [] | no_license | ruhullahil/Codingwithmitch-Chat | 02c83f17fd51329fb3e4c0af74f1890ffd7ac012 | dd854e6357e98684c3fe7c87da028de1f356030b | refs/heads/master | 2023-01-03T00:38:38.225127 | 2020-10-29T21:09:37 | 2020-10-29T21:09:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # Generated by Django 2.2.15 on 2020-08-19 21:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('friend', '0002_auto_20200819_1443'),
]
operations = [
migrations.AlterFie... | [
"mitch@tabian.ca"
] | mitch@tabian.ca |
60adcee8de6d52b0608dd96426bd377901eddd1d | 2d48377ac0127fb8301dc1754e4fede8e4b5c6ef | /showtime.py | a71dcb6bc592624bbd843f65dc3407e02c195487 | [] | no_license | konman1989/cinema | eadb41a367ede255c48d6e12d2f4d7932e0595d3 | 27cb1d2ed8a24f1636a92d47f4e90c69bbc443e4 | refs/heads/master | 2023-05-25T19:10:12.450532 | 2020-01-14T10:45:54 | 2020-01-14T10:45:54 | 231,745,371 | 0 | 0 | null | 2023-05-22T22:37:07 | 2020-01-04T10:31:56 | Python | UTF-8 | Python | false | false | 1,316 | py | import re
import requests
from bs4 import BeautifulSoup
def fetch_cinema_and_session_id(data: dict) -> list:
"""Getting CinemaID, sessionID from the link provided"""
request = requests.get(data.get('link')).content
soup = BeautifulSoup(request, 'html.parser')
# fetching cinema_id using cinema name... | [
"manoilo.blog@gmail.com"
] | manoilo.blog@gmail.com |
23b5b8241c446c7369de7dc25044362f340ba19b | 28b874b6c03f8b319cf3e8e87301337958f9a0be | /tests/test_variable.py | 1b00227e78aed0c0cfb42a961aec541e5a7717af | [] | no_license | thar/sistema_ecuaciones_EACS_Programaci-n-Extrema | 5e0467666b1c5005491362b4de34dbb1d217efb2 | 76a88533806b0a4fe1870ce1c6eb222de514fa2d | refs/heads/master | 2020-03-19T06:37:43.403631 | 2018-05-27T11:03:40 | 2018-05-27T11:03:40 | 136,040,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,284 | py | import unittest
from mock import patch, Mock
from equationsolver.fraction import Fraction
from equationsolver.variable_builder import VariableBuilder
class VariableTestCase(unittest.TestCase):
def testValue(self):
variable = VariableBuilder().value(3.0).build()
self.assertEqual(variable.value, 3... | [
"miguel.a.j82@gmail.com"
] | miguel.a.j82@gmail.com |
7c3de6ac23a5796d7675e6ed3bf8151de5a1c8c6 | a6b6294dd573e7a8429f6e1817a0598c7b315c5e | /examples/finance_vix.py | d0a1e8139e68366c05b1e389003532561c2be261 | [
"MIT"
] | permissive | openknowledge-archive/datapackage-bigquery-py | 4bef9c960c4efc9131d4673fab1f999f5ae09221 | f1d822a1846eac4cfcdfd0f9e94bc27d2458f00b | refs/heads/master | 2021-05-31T09:52:09.884572 | 2016-01-30T16:23:02 | 2016-01-30T16:23:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # -*- coding: utf-8 -*-
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
import sys
from pprint import pprint
sys.path.insert(0, '.')
from examples.base import run
# Fixtures
dataset = 'datapackage'
prefix = 'finance... | [
"roll@post.agency"
] | roll@post.agency |
6d15ee1b51af0bfb10e9ece54993a82cb555e0dd | bf7e43ddc1f50773bb8558c29363c26bd3344727 | /BlokusAgentSimple.py | dc3518fa64192e47b6ddc7e1d72c930f911d5f8e | [] | no_license | bananushka/ai2 | a1c715b04aef1cd389b7599e875bc44af31c4ccd | cae32dc2048fdca2c3e26c7efe398d0503e5f349 | refs/heads/master | 2021-03-12T23:02:47.563876 | 2014-01-04T22:58:35 | 2014-01-04T22:58:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from BlokusGameAgentExample import BlokusGameAgentExample
class BlokusAgentSimple(BlokusGameAgentExample):
def __init__(self, depth=2):
self.fixedDepth = depth
| [
"bananushka@gmail.com"
] | bananushka@gmail.com |
8a7d55caa81a5c81fa616f5f2ed3c6f0142efd0a | 69bc23a7baf65b276496d76d02645b5a76cfe083 | /thu_python_16/program3.py | f3332c8639d67bd315206d183acabe04cb6c234d | [] | no_license | pylinx64/thu_python_16 | a12e4ec8f82e6470b496116342b777e0a6676be1 | 617e75618a5a3117ec34278c41dadb38aa39fdb8 | refs/heads/main | 2023-04-23T03:17:31.347867 | 2021-05-05T10:09:57 | 2021-05-05T10:09:57 | 336,022,469 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | #x=10
#print(x)
#y=10
#print(x+y)
#print('x+y')
#x=20
#z = 10
#print(x+y+z)
#x='Яготинское'
#k='молоко'
#print(x+' '+k)
#print('Яготинское'+' молоко')
#print(k * 143543543)
#print(11 > 10)
#print(8 > 9)
#print(9 != 9)
#print(9 == 9)
#x = 8
#y = 9
#print(x >= y)
#print('a' == 'a')
#p... | [
"noreply@github.com"
] | pylinx64.noreply@github.com |
e8bed198e20aac524cdf4677fc17c963af31386c | dccd223528133fe27c809d10533956b796034412 | /MyMgAcct.py | 8e28698219ffea8d503fbe7ff6ae93ed1c563270 | [] | no_license | gggrokthis/Twitter- | b22d79c1c7de2d285b48374ef212a1fb2d5c1325 | f86c5ce365f7454af84baa6e07ba32fdd957a540 | refs/heads/master | 2020-03-27T23:11:25.657321 | 2019-07-29T18:30:55 | 2019-07-29T18:30:55 | 147,299,340 | 0 | 0 | null | 2018-09-04T06:59:44 | 2018-09-04T06:37:15 | null | UTF-8 | Python | false | false | 6,491 | py | # -*- coding: utf-8 -*-
####2017
#Check for twitter API and other changes if you are looking at this after 2017
#This script will delete tweets identified by tweetid listed in the input file
#from the twitter specified account
#Setup:
# You will need to get the following
# 1. consumer key
# consumer secret toke... | [
"noreply@github.com"
] | gggrokthis.noreply@github.com |
84b6bcb36e6da3ca1f96cafb6d5fa93b4bfb895f | 7a69dc9f5a2a1ce43d8f5fe6e9a33e4b6c44f154 | /pdfsplit.py | 95e00c1bc995907adcbd99ba2f223465a9a57d86 | [] | no_license | whxb69/pdf_tools | 26e21cedb8174aed94a707d54fbc43b2839d4df3 | f7a2b7dc7a0e87cb23d57604e8049158b1e4aeda | refs/heads/master | 2020-07-06T01:43:17.093634 | 2019-11-23T09:31:37 | 2019-11-23T09:31:37 | 202,849,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,253 | py | import PyPDF2
import os
import time
import traceback
start = time.clock()
f = open('outline.ml', 'w', encoding='utf-8')
nameSplit = 'ProblemSolvingAndProgramDesignInC new.pdf'
def getlaveNum(strTmp):
for i in range(len(strTmp)):
if '\t' != strTmp[i]:
return i + 1
def setsu... | [
"noreply@github.com"
] | whxb69.noreply@github.com |
b50adbfdbf95e1fba92be2b60782ae7a2e3c2a03 | cae00cf2d22208668a9df7b06efbb80e76146fd9 | /HT3.py | 8933eff7c63e15563cd09fdb96face129df5a423 | [] | no_license | Leonel1098/Curso-Basico-Python | ea711f2569905ce92eac0624bb3893c8b92dfd82 | cd8819899fb4d6d297e7aff008511dfaaf964f5b | refs/heads/main | 2023-03-20T09:37:19.420754 | 2021-03-13T03:51:52 | 2021-03-13T03:51:52 | 344,327,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | print("Ingrese la contraseña")
contraseña = input()
print("Confirme la contraseña")
contra = input()
if(contraseña == contra.lower() ):
print("Bienvenido al Sistema")
else:
print("Ingrese la contraseña de nuevo")
print("------------------------------------------------------------")
print("Ingrese su... | [
"noreply@github.com"
] | Leonel1098.noreply@github.com |
d073cf0e510babb4c2329508f3b0d549e0cf3cec | 0bc2a2963cb72c09c0ec0b3e3b10911c7bc31342 | /examples/manila/script.py | a5f6b5d55011b15a3bcca5fbe09c09f48968cb7b | [] | no_license | cloudify-cosmo/cloudify-openstack-plugin | eb5730d0b75442e6a49069164fde03020dcca1de | 7d2cd4162897333adcaab4bd83361bbd369fcf17 | refs/heads/master | 2023-09-06T09:10:53.372638 | 2023-03-06T15:02:59 | 2023-03-06T15:02:59 | 18,327,738 | 19 | 75 | null | 2023-03-06T15:03:01 | 2014-04-01T11:52:24 | Python | UTF-8 | Python | false | false | 391 | py | # For development help:
from manilaclient import client
# Fill in with real values.
manila = client.Client(
client_version='2',
username='admin',
password='openstack',
project_name='demo',
auth_url='http://10.11.12.2/identity',
user_domain_name='Default',
project_domain_name='default')
share... | [
"noreply@github.com"
] | cloudify-cosmo.noreply@github.com |
dd30c5254405af64ce994ba786c148924ddf521c | fd0194543a142c63812352e79c417e54a19d0cd5 | /Auxiliary_Scripts/Plot_Relocate.py | 7633b63d02c80b1e30093bd97aeca0eb93c5d1b2 | [] | no_license | mwilensky768/MJW-MWA | 2ac85b8f07577e3112c418595bf62902d720c3c2 | ebda1e273a401c88f014bc698743547ec86a6f35 | refs/heads/master | 2021-05-02T00:51:48.591198 | 2021-03-31T22:34:06 | 2021-03-31T22:34:06 | 78,403,875 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | import glob
import shutil
import os
plot_dir = '/Users/mike_e_dubs/MWA/Catalogs/Wenyang_Phase2/data_eva/unflagged/'
target_dir = '/Users/mike_e_dubs/MWA/Catalogs/Wenyang_Phase2/data_eva/frac_diff/'
plots = glob.glob('%s*__INS_frac_diff.png' % (plot_dir))
print(plots)
for plot in plots:
shutil.copy(plot, target_d... | [
"mjw768@uw.edu"
] | mjw768@uw.edu |
248e026a58b25e727390dcc43ea0a4361135df82 | cc6b33c24069d6934741d1abfee1b8499497535a | /products/forms.py | f66ce2c2a57e6e7f0be1d30032fe4dbcc119b589 | [] | no_license | sukubhattu/django-style-guide | b85e34418926a7ec0330f802fa2e0b9f4dc82cd8 | da4552405c6e1c5f445f30c5a69b64a4ed2b6d74 | refs/heads/master | 2023-03-15T06:32:22.814081 | 2021-03-29T07:28:24 | 2021-03-29T07:28:24 | 352,405,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | from django import forms
from django.forms import fields, widgets
from .models import Product
class ProductForm(forms.ModelForm):
class Meta:
model = Product
fields = '__all__'
widgets = {
'title': forms.TextInput(
attrs={'class': 'heheBoi', 'placeholder': 'Ent... | [
"sukubhattusandesh8@gmail.com"
] | sukubhattusandesh8@gmail.com |
838dcc0ff6a1660d838fe309bd0fbea2ee55a934 | 96facac081446dd7e903523d2514c3bcdebf51c0 | /src/internal/migrations/0025_secret_extra_view_permissions_and_historicalsecret_extra_view_permissions.py | 2133b5b4b38428e5f87868afd911b9ebaee6928f | [
"MIT"
] | permissive | MAKENTNU/web | f49d90cf3e0209edecd9c638bbcd5b01f7c4273a | a90ac79f5756721c9a3864658a87fa62633dbc6c | refs/heads/main | 2023-08-09T05:35:21.048504 | 2023-05-10T17:19:40 | 2023-05-10T17:19:40 | 110,425,123 | 12 | 7 | MIT | 2023-09-11T16:23:40 | 2017-11-12T10:59:20 | Python | UTF-8 | Python | false | false | 2,741 | py | # Generated by Django 4.1.7 on 2023-03-24 10:16
from django.db import migrations, models
import django.db.models.deletion
import simple_history.models
class Migration(migrations.Migration):
dependencies = [
("auth", "0012_alter_user_first_name_max_length"),
("internal", "0024_historicalmember_and... | [
"6058745+ddabble@users.noreply.github.com"
] | 6058745+ddabble@users.noreply.github.com |
344513f40b84e70156a271a556a0a7afa60bb84b | 6febc1719503d0f9dbc97f6b1202116370391b10 | /public_holiday/models/hr_holidays_inherited_model.py | fa5c2a57f2e8a69880f076eb808b1dbb72e214ac | [] | no_license | arshakil/Odoo-Development | 5c6a1795cd64a8ebef5abfdf7d6245804594bcd8 | df37f6e8c2f7d89cdbdb36d0a8fd501ef8bfe563 | refs/heads/master | 2022-12-11T05:17:12.123339 | 2020-07-28T07:38:58 | 2020-07-28T07:38:58 | 248,154,189 | 0 | 2 | null | 2022-12-08T03:51:50 | 2020-03-18T06:20:59 | Python | UTF-8 | Python | false | false | 3,029 | py | from odoo import models, fields, api, _
from odoo.exceptions import ValidationError
from datetime import date, datetime
from datetime import datetime, timedelta
class Hr_Holidays_inherited_Model(models.Model):
_inherit = 'hr.holidays'
public_holiday=fields.Float(string='Public Holiday In Between',compute='chec... | [
"azizur.rahman363410@gmail.com"
] | azizur.rahman363410@gmail.com |
98fe6950dde4c613c1aa84004a4e88ae3fab25b0 | a937f0263bc95069fa77463cd7b1fcd4c3a83afd | /Problem06/main.py | a014cb47bcf47d45b3ee5dbc77d37ebc6afd9d8f | [] | no_license | Aquarius314/Project-Euler | 0a1c41e7c9a79c544d4e308eb61ccf391fd615ee | ad5b14d81598ce3a9a2d61cde8c007e6d93358b6 | refs/heads/master | 2021-01-23T03:42:46.562887 | 2017-06-16T20:48:34 | 2017-06-16T20:48:34 | 86,110,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | # The sum of the squares of the first ten natural numbers is 385
# The square of the sum of the first ten natural numbers is 3025
# Difference between them is 2640
# Find the difference between the sum of the squares of the
# first one hundred natural numbers and the square of the sum.
# BRUTE
# Solution is 25164150
... | [
"jakubwojcik.post@gmail.com"
] | jakubwojcik.post@gmail.com |
29c7bbf44bdc8b73d1072eac1e09a2addf835026 | 44d88cbdfbe4af402e0323de5af94b96226e60b9 | /decotimer/constants.py | e6f92b0a113b3412a35c4f1f635a7179c64a19dd | [] | no_license | Excp281/decotimer | 3108f5d498f8257b923560d905c4a1481177a2fa | ca9789acba96bbbe88f84e53de52ee8871b012f7 | refs/heads/master | 2022-11-26T07:56:24.187094 | 2020-07-24T12:09:57 | 2020-07-24T12:09:57 | 282,195,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | ENABLED = 0
DISABLED = 1 | [
"pypcdev@gmail.com"
] | pypcdev@gmail.com |
e938435982e4bca35a3bbaf1e7c4c35be18545a9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/182/usersdata/265/105453/submittedfiles/diagonaldominante.py | 2a3603de9bfd26bb77e24473ed3f5a3d2574df4e | [] | 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 | 500 | py | # -*- coding: utf-8 -*-
import numpy as np
def soma(A):
somalinhas=[]
for i in range (0,A.shape[0],1):
cont=0
for j in range (0,A,shape[1],1):
cont=cont+a[i,j]
somalinhas.append(cont)
return(somalinhas)
linhas=int(input('digite a quantidade de linhas: '))
a=np.zeros(... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d3b6650494506a0738afea264cb7ca7077bc7d2f | 22b9871352c6aa91b7c028d5ddcf7adaaeac09f9 | /mbta/__init__.py | c7b1be083503a4d879cc25599e2c129b2524f798 | [
"MIT"
] | permissive | JaredStufft/mbta | 257e0122029844d27016b419789810eeaf3e2a9b | 9c497d6718ddfbf8a69de7d3a7e043594d9cf0ef | refs/heads/master | 2022-12-14T20:54:02.893588 | 2019-03-04T17:38:35 | 2019-03-04T17:38:35 | 143,295,378 | 2 | 0 | MIT | 2022-12-08T02:20:34 | 2018-08-02T13:01:11 | Python | UTF-8 | Python | false | false | 15 | py |
name = 'mbta'
| [
"jared@stufft.us"
] | jared@stufft.us |
eb61d968ba311fe56e5bfc26939fb22f35adfe4e | 86896e2d29c44da3a0746ba631a63379005af038 | /files.py | 897cb73085571a770cf92581d91c52a312de2401 | [] | no_license | pjburkeiii/beacons_f16 | dfc423ef21dbe892b78b0454a9c9f076397fa3a0 | f5e05dc60d6c07f96b8b1333b20058f32b64eeef | refs/heads/master | 2020-07-29T11:49:29.322360 | 2016-12-07T00:01:07 | 2016-12-07T00:01:07 | 73,669,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,268 | py |
import json
import requests
import datetime
from flask import Flask, jsonify, request
app = Flask(__name__)
# YOUR CANVAS KEY
canvasKey = '4511~U5CTjXuSLJKdaAoFTSRv7GeIFd1lGzDYVohzKHeHqUbfW1MTVQ0L1kFX1Fzkjx9Y'
courseID_1 = 36417 #exploration of beacons
#static data
items = { 'b1cfd7baf1349880': 'pi', '0daad9c90f98... | [
"p.j.burkeiii@gmail.com"
] | p.j.burkeiii@gmail.com |
753f83705d4b14450b57358743f60359fde6545a | 4a6a1e1ce876118bb0bda46181c457ad1dbc9320 | /dataAugment.py | 31a7c707934bce1e59f965f7b4abce42fc69b71d | [] | no_license | MDrance/Filbi-project | c9b143e8447516b0a23b12b346b878bd02c60864 | 0729748706b08c82aee0b80224153288f5553576 | refs/heads/main | 2023-01-10T03:21:38.350036 | 2020-11-17T17:03:05 | 2020-11-17T17:03:05 | 313,684,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py |
import glob
import cv2
import os
import random
import shutil
def data_augmentation():
print("DATA AUGMENTATION ...")
target = "./augmented_data/"
if os.path.isdir(target):
shutil.rmtree(target)
os.mkdir("./augmented_data/")
for file in glob.glob("data/*.jpg"):
shutil.copy(file... | [
"martindrance@hotmail.com"
] | martindrance@hotmail.com |
ddd882154d6482285e5cf75620af0ca019e5af41 | c00cea43929684d5a584a1d102bf081b3d6cd348 | /19_rest/app.py | e8e8e7f44530311ca626bd7291ddca37a99fb769 | [] | no_license | amelia-chin/achin10 | 2372baca901308115e5e1598c347988f73f66f6c | 7b0e68d58720dd9e6d4647e09675fe63ba16a3f0 | refs/heads/master | 2023-05-02T22:17:53.499873 | 2021-05-18T01:17:54 | 2021-05-18T01:17:54 | 298,331,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | """
Team Eggs and Bagels (Amelia Chin, Ari Schechter)
SoftDev
K19 -- A RESTful Journey Skyward // exploration into REST APIs
2021-04-05
"""
from flask import Flask, render_template
import urllib as url
import json
app = Flask(__name__)
API_KEY = open("key_nasa.txt", "r").read()
@app.route("/")
def index():
# thi... | [
"achin10@stuy.edu"
] | achin10@stuy.edu |
7e1ccc3c0c0d628fe5629e0ba6ef33d3b0101291 | bf0ecad5f2d9853944e6bbc1ab6160359e9a6803 | /blog/migrations/0001_initial.py | d30bdf5599f3883def76510678e4cb1d43d9f3c0 | [] | no_license | NiteshPidiparars/icoder-blog-post | 9addc53a83ec916c421ee16de7b04b8035be5d6b | 19c5a333faf520b4133a0fa5d5ccf37320ed4181 | refs/heads/master | 2023-05-28T01:41:11.114065 | 2021-06-16T07:05:48 | 2021-06-16T07:05:48 | 374,288,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | # Generated by Django 3.2.4 on 2021-06-04 06:36
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('sno', models.AutoField(pr... | [
"niteshpidiparas76@gmail.com"
] | niteshpidiparas76@gmail.com |
fdd37d7b786f3d9ca71aff75f5399b323327af37 | d41d0f5a16dea31186d8e862c538489af91c57f9 | /plot.py | d99c57f1882cb1be7fa6a07788cf7d93d949837a | [] | no_license | digitalscientists/scribe | 7c906c2a8a1b663419bc922b242bc9b16be8766a | d6c83e36c5e9181387077bdfdb10433b86cb60b1 | refs/heads/master | 2021-08-08T07:51:22.709460 | 2017-11-09T23:12:10 | 2017-11-09T23:12:10 | 107,588,462 | 0 | 0 | null | 2017-10-19T19:19:38 | 2017-10-19T19:19:38 | null | UTF-8 | Python | false | false | 758 | py | import matplotlib.pyplot as plt
import sys
import os
import xml.etree.ElementTree as ET
fig = plt.figure()
ax = fig.add_subplot(111)
#os.getcwd() + '/' +
file_path = sys.argv[1]
tree = ET.parse(file_path)
root = tree.getroot()
stroke_sets = root.findall('StrokeSet')
for stroke_set in stroke_sets:
for stroke in stro... | [
"jerry.deng@digitalscientists.com"
] | jerry.deng@digitalscientists.com |
dde36e2eae98fd6ebba3dc430abdd47affdd0f65 | a3e7583b70584f62554c5969a9963ba79afd7ac3 | /check.py | b7630edc09bab8c7a639472f47604386f4a53a32 | [
"MIT"
] | permissive | foamliu/DeepRankIQA | 4f677a2fe1912b16cf4bbcc05c8571d46260711f | 7801cb4ff2c934a9d954ace9ad52600f96396125 | refs/heads/master | 2020-09-03T06:02:05.896210 | 2019-11-05T01:30:27 | 2019-11-05T01:30:27 | 219,402,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | import os
import pickle
import cv2 as cv
from tqdm import tqdm
from config import data_file, image_folder
if __name__ == "__main__":
with open(data_file, 'rb') as f:
samples = pickle.load(f)
filenames = set()
for sample in tqdm(samples):
before = sample['before']
fullpath = os.p... | [
"liuyang12@focusmedia.cn"
] | liuyang12@focusmedia.cn |
b5000ca9d75fbdbc1f3173b2d37b4b01952505f1 | 83d512f770a7af5de96f711b068095aae21f3875 | /python/ph.py | 63201f5d05acb02062ee8238a31edc594b7e71fc | [] | no_license | MonkeyTaolun/play_around | bcdf5172d03bffd527ac7f51426a205c40c75e29 | 39337c447379c21786788636f9af0557954c11d3 | refs/heads/master | 2021-01-10T20:04:11.126923 | 2012-02-28T20:28:04 | 2012-02-28T20:28:04 | 2,185,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | import urllib
from lxml import html
f=urllib.urlopen("http://www.python.org")
s=f.read()
tree = html.fromstring(s)
[td.text for td in tree.xpath("//td")]
#print tree
| [
"ctcooll@gmail.com"
] | ctcooll@gmail.com |
cb743f7d80b535f3425bff1576c305628e2398ac | 454b62b464c9fc280be3e2248eaeb3ea6a6676b1 | /Tkinter-Asynchronous-Programming/tkinter-after/metodos.py | f73ed17ca3553945f9bd5e847c2fb250f64930d6 | [] | no_license | afhernani/tk-gui-templates | 2aea9a6cf95a144940656cddd729f1c83cf0ec3a | 6b23209b7398377f3aa5403ffef0f680741aa469 | refs/heads/main | 2023-06-18T23:51:32.369247 | 2021-07-15T19:59:52 | 2021-07-15T19:59:52 | 376,554,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | import tkinter as tk
from tkinter import ttk
import time
class DigitalClock(tk.Tk):
def __init__(self):
super().__init__()
# configure the root window
self.title('Digital Clock')
self.resizable(0, 0)
self.geometry('250x80')
self['bg'] = 'black'
... | [
"afernani@gmail.com"
] | afernani@gmail.com |
be89afab0a0a8125be3fcc85bbcf78d59a8b7933 | b7d61afe530f603e1f0d6e269e6cd46a4911c51f | /Basic.py | f068ba4f0bb1b03ee7a2b952f12279b4a0a7e222 | [] | no_license | kashiv15/Cache---Performance | e98866a11101f3e12b3a04fd3352cb9e1ae7af25 | 99c33c5713b3d010bce1c4dc6f061635adfb95ad | refs/heads/master | 2023-01-20T22:25:25.606853 | 2020-11-29T20:30:11 | 2020-11-29T20:30:11 | 289,562,473 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | import m5
from m5.objects import *
system=System()
system.clk_domain=SrcClockDomain()
system.clk_domain.clock='3.4GHz'
system.clk_domain.voltage_domain=VoltageDomain()
system.mem_mode='timing'
system.mem_ranges=[AddrRange('8192MB')]
system.cpu=TimingSimpleCPU()
system.membus=SystemXBar()
system.cpu.icache_por... | [
"noreply@github.com"
] | kashiv15.noreply@github.com |
053d272a8dd615e354067ac7a039ec23434eea10 | 3e4de43ddfef39f79c9e06e78c7789ded0855001 | /thola_client/models/check_identify_request.py | 19d6b5d4362f0bc176207aa734c1a86e8d276bfe | [
"BSD-2-Clause"
] | permissive | inexio/thola-client-module-python | 9721f27b1305b25445c4e2594b134cfd17ed7641 | f9a6812885738e33b1aed43ca55335b71e3d2b2d | refs/heads/main | 2023-04-30T06:55:25.015950 | 2021-05-19T11:05:26 | 2021-05-19T11:05:26 | 358,176,683 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,563 | py | # coding: utf-8
"""
Thola
REST API for Thola. For more information look at our Github : https://github.com/inexio/thola # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from thola_... | [
"philipp.baus.studium@googlemail.com"
] | philipp.baus.studium@googlemail.com |
3749bb5ed6c01cc9d93af2315596fea184b724b5 | a4838d7572b91427f62a62928764b3733b3362c8 | /Chapter11/Exercise11.04/test_11_4.py | 6630d15301782e70f233a0ead05ea5b75c6affd5 | [] | no_license | Evgeneom/The-Statistics-and-Calculus-with-Python-Workshop | 2648cc60bee446e56ffc90da7a00e80e2407c2c7 | d57ef0f480ba1b418a904572bd18cd15ad8a837c | refs/heads/master | 2023-03-18T23:43:19.971680 | 2021-01-21T12:11:33 | 2021-01-21T12:11:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | import unittest
import sys
import import_ipynb
from Finding_the_Length_of_Insulation_in_a_Roll import *
class Test(unittest.TestCase):
def test_r(self):
self.assertAlmostEqual(r(24*pi),7.6,1)
def test_opposite(self):
self.assertAlmostEqual(opposite(r(0),r(0.0001),0.0001),0.0002... | [
"noreply@github.com"
] | Evgeneom.noreply@github.com |
2d1ab9f2d3eadfb2a69ad816402402ec65cfb51d | d3a1e42bf4c895242229571cb2c013a06f437210 | /.gitignore/fsdfv.py | bc85caf0e780b4b46e519d45b5b11f784d4cf6fb | [] | no_license | mohanramofficial/rtfr | 2b165cf72e6a2f12104027d0f633d3ca1bcdaecb | b9983377ef8757e7f1bf7e1fcda319551bcb59a1 | refs/heads/master | 2021-04-15T15:19:55.130692 | 2018-03-24T05:01:26 | 2018-03-24T05:01:26 | 126,567,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | ERROR: type should be string, got "https://github.com/mohanramofficial/fgfd/blob/master/.gitignore/gvdhc.py\n\nnum = 407\n\n# take input from the user\n# num = int(input(\"Enter a number: \"))\n\n# prime numbers are greater than 1\nif num > 1:\n # check for factors\n for i in range(2,num):\n if (num % i) == 0:\n print(num,\"is not a prime number\")\n print(i,\"times\",num//i,\"is\",num)\n break\n else:\n print(num,\"is a prime number\")\n \n# if input number is less than\n# or equal to 1, it is not prime\nelse:\n print(num,\"is not a prime number\")\n" | [
"noreply@github.com"
] | mohanramofficial.noreply@github.com |
0982815fa6e2febe3f979f4b6f47031da010b787 | fa7f72fe2369733f8f97d2324d8e236deb6eab39 | /Python/Face Detection - OpenCV/F_D_Video_Final.py | 299614479ea83f6d8a9577cfecd9527584045da7 | [
"CC0-1.0"
] | permissive | Gulnaz-Tabassum/hacktoberfest2021 | bd296832f7ff07712b0b4671a8bd841d645abc29 | ffee073f6efa4090244b55966fd69dde51be12f1 | refs/heads/master | 2023-08-17T13:18:17.557965 | 2021-10-08T09:52:19 | 2021-10-08T09:52:19 | 414,930,631 | 2 | 0 | CC0-1.0 | 2021-10-08T09:52:20 | 2021-10-08T09:47:37 | null | UTF-8 | Python | false | false | 1,146 | py | import cv2
face_cascade=cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
eye_cascade=cv2.CascadeClassifier('haarcascade_eye.xml')
cap = cv2.VideoCapture(0)
while 1:
ret, img = cap.read()
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
# Detects faces of different sizes in the input ... | [
"noreply@github.com"
] | Gulnaz-Tabassum.noreply@github.com |
c5920946fc2c9d9c50f213f3b22487f73946bd0b | c4d7ae80706b8ee954e671df83de673b8ab4ec8b | /cms34/resources/themes/fields.py | 0a452c68590f67c767dbc4eb40abf61af8cc23df | [] | no_license | motor23/cms34 | b63c7cf6e493d78f25f7ee09510833570742cd8a | 229887486bcb12af7ad70d764f05b73acb7eda81 | refs/heads/master | 2021-01-17T14:02:24.511669 | 2019-03-06T08:08:50 | 2019-03-06T08:08:50 | 31,367,780 | 0 | 2 | null | 2019-03-06T08:08:51 | 2015-02-26T13:16:30 | Python | UTF-8 | Python | false | false | 243 | py | # -*- coding: utf8 -*-
from ...mixed import (
XF_StreamSelect,
)
class XF_Themes(XF_StreamSelect):
name = 'themes'
label = u'Темы'
model = 'Theme'
stream_name = 'themes'
multiple = True
xf_themes = XF_Themes()
| [
"motormen@gmail.com"
] | motormen@gmail.com |
688324093ad3f13ec5d60a2ed5b09953f0e0d9d5 | 5d5d96e06aa643a8f2e868304e2f9e2e928bcfeb | /week10-lab/sorthema.py | f0c2d43b590d7391f7f8c42a864135e851ca3069 | [] | no_license | natdjaja/qbb2019-answers | 59334397a0b475b8e2f17d4f7e1bbd88ad44fbb2 | 0b154e159aae612fe146aed87ce238209e8cba0b | refs/heads/master | 2022-04-13T17:27:12.896664 | 2020-02-14T19:52:29 | 2020-02-14T19:52:29 | 204,489,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,819 | py | #!/usr/bin/env python3
import sys
import numpy as np
import scipy as sp
import matplotlib.pyplot as plt
import pandas as pd
from scipy.cluster.hierarchy import dendrogram, linkage, leaves_list
import seaborn as sns
from sklearn.cluster import KMeans
import scipy.stats as sp
hema = open(sys.argv[1])
df = pd.read_cs... | [
"nathaliedjaja@gmail.com"
] | nathaliedjaja@gmail.com |
e7d0dab25ef173459d313189465f2ad65048d5ce | 37b8eb5e5d2640537d99100358d4b5132eb4e922 | /plot_OMI_assimilate.py | 0f0493c8805b9879788376a5172db0b873892a35 | [] | no_license | YellowruiAccount/Arctic_codes | 94392ac9bcc1874dd3529d2bd59566c23a2130b2 | 2075efca802c645f99b4f4191a50ea112103c394 | refs/heads/master | 2023-05-11T01:18:58.306824 | 2021-05-19T15:06:54 | 2021-05-19T15:06:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,855 | py | #!/usr/bin/env python
"""
NAME:
PURPOSE:
SYNTAX:
EXAMPLE:
MODIFICATIONS:
Blake Sorenson <blake.sorenson@und.edu> - 2018/09/07:
"""
import sys
import glob
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.patches import Polygon
from mpl_toolkits.basemap import Basemap
import matp... | [
"bsorenson4244@gmail.com"
] | bsorenson4244@gmail.com |
fbcf5b7d508ad8a33e8e303f73759b7d5782c4e0 | 30a6975de792d613db836346ff758a7c0797d400 | /lldb/test/API/lang/swift/parseable_interfaces/shared/TestSwiftInterfaceNoDebugInfo.py | 075df0dd1fb74f689568a004da5f267648814dee | [
"NCSA",
"Apache-2.0",
"LLVM-exception"
] | permissive | WYK15/swift-Ollvm11 | 0a2aa1b216c8e3f38829ae16db846039e8de149e | b28dba1ebe1186790650c72d5e97d8b46f1bc6e0 | refs/heads/main | 2023-06-27T18:14:47.652175 | 2021-06-10T12:47:56 | 2021-06-10T12:47:56 | 367,350,198 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,467 | py | # TestSwiftInterfaceNoDebugInfo.py
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://swift.org/LICENSE.txt for license information
# See https://swif... | [
"wangyankun@ishumei.com"
] | wangyankun@ishumei.com |
8e5ea75d19f8f20c402bd0ceccf491afa32e9d65 | 3d0e428be16d5bbabe7bfe57d6a42082ff815a38 | /train/train_lr.py | ca7db0916b7464b4e269ceaf57ebcc76b5baa547 | [] | no_license | obrown06/sentiment-oracle | eeaf75f42cabd65f0e5572b4d960fccd443e0475 | 14bab186ef73d845a7c836bb9b72d87798677486 | refs/heads/master | 2018-10-24T07:15:23.617279 | 2018-08-20T23:47:31 | 2018-08-20T23:47:31 | 117,775,007 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,237 | py | import sys
sys.path.insert(0, '../test/')
sys.path.insert(0, '../data/')
sys.path.insert(0, '../classifiers/')
import data_handler
import test_utils
import logistic_regression
import pickle
import numpy as np
print("#################################################################### \n")
print("GENERATING INPUT: LOGI... | [
"nicholas@athenaeg.com"
] | nicholas@athenaeg.com |
2cb15cb8f534bf7210f79940336fca5337a3874d | ec405878d93e554338cf6e0b58ba36453a036f90 | /workflow_package_creator.py | 6b872fbf7d999e1b1db7999bab4da9be4a7a3162 | [] | no_license | vadimsmilgin/check_automation | f794b5cc2255d46754315776053830292e8e10b7 | dac3b640012027681a12be83894cb8ee2d595bfc | refs/heads/master | 2022-10-29T16:36:26.608936 | 2020-06-12T10:28:37 | 2020-06-12T10:28:37 | 271,249,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,513 | py | #!/usr/bin/python
import os
import platform
import re
from lxml import etree
from context import Context, Windows, MacOS
from work_with_s_objects import WorkWithSObjects
def create_package_xml():
if platform.system() == 'Windows':
_context = Context(Windows())
if platform.system() == 'Darwin':
... | [
"vadimsmilgin64@gmail.com"
] | vadimsmilgin64@gmail.com |
cc83365f6c3ba8b9e1b461f4f40ee02ce4e5a9d3 | d0e45ba04838518dd3e86bfecffe9e955c602be2 | /01_Basic/app.py | 0229e319f69e47f66d93a2aa4a2e9223556edb75 | [] | no_license | hieutrinhds/flask | 97c2ff8e4fe32273d59988bd864c6458e47a2198 | 9cb2c7396885b3f7a2055ea4106352daa8fb4c10 | refs/heads/master | 2022-12-16T11:41:10.373542 | 2020-09-08T07:00:25 | 2020-09-08T07:00:25 | 293,274,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,041 | py | from flask import Flask, jsonify, request, redirect, url_for, session, render_template, g
import sqlite3
app = Flask(__name__)
app.config['DEBUG'] = True
app.config['SECRET_KEY'] = 'Thisisasecret'
def connect_db():
sql = sqlite3.connect('data.db')
sql.row_factory = sqlite3.Row
return sql
de... | [
"hieutrinh.au@gmail.com"
] | hieutrinh.au@gmail.com |
d9c4a1f54e371582e9a10bf13e6af9007a39e2dd | acfdf9a8ebca7d58d420c19e02fb7efb7bd7674b | /day-27.py | 0e67aae2e8b6cab7fe87d9cb527c9ca0f2827643 | [] | no_license | Kuljeet-123/Hackerrank-30-days-code-with-python | 9758112a7c622fc37a1818c3868e318ac13b5b99 | 028c43aafe52eb7ac17a16a2ac07cb421820f4d3 | refs/heads/master | 2020-05-21T01:03:49.486910 | 2019-09-19T08:14:54 | 2019-09-19T08:14:54 | 185,846,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,046 | py | This problem is all about unit testing.
Your company needs a function that meets the following requirements:
For a given array of integers, the function returns the index of the element with the minimum value in the array. If there is more than one element with the minimum value, the returned index should be the sma... | [
"noreply@github.com"
] | Kuljeet-123.noreply@github.com |
fd23272afb6040f22d495da6f1ccc4cde2e7d91e | 245a9d9fbfde70c33afe39769d7a93b2d6c3e3ad | /map_bn2conv.py | 2f8cf103de3d33a5dddb7a4050a06d393a4bdf15 | [] | no_license | wjc852456/pytorch-practice | dc9b1cb8d8d85778307e772556a1703f04bd551a | dc90620d8aa06d7c16c6c7d0f06e0d2ef16a7741 | refs/heads/master | 2020-03-24T21:06:20.389522 | 2018-07-31T12:56:13 | 2018-07-31T12:56:13 | 143,013,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,902 | py | import torch
import torch.nn as nn
from torch.nn.parameter import Parameter
import sys
import os
sys.path.append(os.path.expanduser('~/pytorch-quant/utee'))
sys.path.append(os.path.expanduser('~/pytorch-mobilenet-v2'))
import quant
import MobileNetV2
def bn2conv(model):
r""" conv layer must be arranged before bn ... | [
"wangjichen2012@163.com"
] | wangjichen2012@163.com |
53347068559ac6f5dcd89d0d775da298fbf13504 | b1a9fa233492aef3d983a3c4c7ca70105b2d1ad2 | /cw2/twitter_clone/bin/wheel | 0cd317ec5daad0431dcf072926e33936116afde5 | [] | no_license | milkos14/nikolaou_andreas_set09103_cw2 | 7f7c9096f18eedb4d9fe0a7fc5bced2259634d07 | 73cbbc9cd636736032deb49732b9527c170adf10 | refs/heads/master | 2020-04-07T06:06:32.927181 | 2018-11-27T19:29:19 | 2018-11-27T19:29:19 | 158,122,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | #!/home/40211330/cw2/twitter_clone/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"40211330@live.napier.ac.uk"
] | 40211330@live.napier.ac.uk | |
26deb937ebee71f0637a6fce55598cea3e7c0140 | a01ec17189abf5333a9fddba771b1c96c335e64b | /src/viewer/urls.py | 4ecee086ea828fe65e388b0d9fd2fea323ba2127 | [
"MIT"
] | permissive | coderuz/WatchMeCode | c9d89e29f19dd114d4449e247f8d94d4b94deadd | 96e3e20dcbedddd0e4823d90c87cbd644ec268d5 | refs/heads/master | 2020-03-30T16:10:22.557016 | 2018-07-17T07:19:29 | 2018-07-17T07:19:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.show, name='welcome'), # TODO: Change <-this to welcome view or Register View for Auth Users
path('edit/<str:room>/', views.edit, name='editable'), # TODO: either this room does not belong to you or does
path('room/<str:room... | [
"mitazimjon@gmail.com"
] | mitazimjon@gmail.com |
c6454d5ab12e01278e08734c2b1fc8c5cca23a85 | 23ed9e7f9f37204b991a4b8d37cb2a2620959814 | /FRM_function_update.py | c3847b6e212012c4a7ec6ef4ae330e0eda4bb457 | [] | no_license | Jojanna/geojo_tools | 263b895d16c40621088bec1601f054ff0dc3a3f7 | 5403b203df036e6ad95f995ece4eee1b3cb60d7b | refs/heads/master | 2023-06-01T18:44:57.820566 | 2021-06-13T20:11:46 | 2021-06-13T20:11:46 | 376,630,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,024 | py | import numpy as np
import pandas as pd
from rppy.fluid import batzle_wang
"""
Contents:
* k_wet
* fluids_calc
* reuss fluids
*rho_dry_calc
"""
def k_wet (k_dry, k_fluid, phiT, k_HS): # gassmanns
#print ("k_fluid")
#print (k_fluid)
rhs = k_dry / (k_HS - k_dry) + k_fluid / (phiT * (k_HS - k_fluid))
... | [
"j.wallis@dunelm.org.uk"
] | j.wallis@dunelm.org.uk |
478dec05c29f554e8d1effc63ad7264f99e95538 | c236e0c3b34a81e75acb9591423b6aad9d6a22dd | /unitTestRunner.py | 451a956edaed0cee0386f60f3b60470f1b9a6a7c | [] | no_license | abhijeetdtu/heimcharge | 2cd68c9eaaf5b94206d310c8b8348133b5d4e77b | 569a9d22916808ba8b67169a2822a91e05a051e9 | refs/heads/master | 2021-06-06T02:55:29.913134 | 2019-06-11T03:07:20 | 2019-06-11T03:07:20 | 131,433,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | import unittest
from UnitTests.ChartPlotTest import *
from UnitTests.GeoOpsTest import *
from UnitTests.FileOpsTest import *
if __name__ == '__main__':
unittest.main(exit=False) | [
"abhijeetdtu@gmail.com"
] | abhijeetdtu@gmail.com |
2f4b4624a70b3f7b58565625cf554142d9c0c3c4 | ec8fa3b2436ed17a3e703deec80a414bb5306b08 | /huxley/python/2045-inversion-sort.py | 922229aeb5f2619f579e26bceb19a3959748629b | [] | no_license | pmba/algorithms | 3c3f89a0eae9b3144325ec719d1db3109aa707db | 2c15b1bc18645bc2cc24b7b8b615134066845e6b | refs/heads/master | 2020-03-27T00:41:27.816090 | 2018-10-05T12:05:48 | 2018-10-05T12:05:48 | 145,646,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py |
def inversion(array):
inv = 0
if len(array) > 1:
pivot = len(array)//2
left = array[:pivot]
right = array[pivot:]
inv = inversion(left)
inv += inversion(right)
i = j = k = 0
left.append(float('Inf'))
right.append(float('Inf'))
... | [
"pmba@ic.ufal.br"
] | pmba@ic.ufal.br |
7cc991b3cfe972ac5fd124fd8d9f3ec6ca838eb5 | 64bffe2a7934c012195dd46ce3873c74c4ed20dc | /likes/models.py | 5ada38830c94576ea38cc13488fbf927c73b27f5 | [] | no_license | Power2hang/mysite | f01c0ca3b074676cbe8911069a943f0deb594f91 | c37f2dd2c70821cda4fa76c992d4fb6225506662 | refs/heads/master | 2022-11-25T19:20:48.874809 | 2020-01-06T01:54:49 | 2020-01-06T01:54:49 | 159,321,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | from django.db import models
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.contrib.auth.models import User
class LikeCount(models.Model):
content_type = models.ForeignKey(ContentType, on_delete=models.CASCADE)
object_id =... | [
"1247637039@qq.com"
] | 1247637039@qq.com |
b23143408eae95819c6760c853c06db075ea9987 | d62e01ee1b50b8228d25736daceae0e822f3a0a0 | /examples/user_guide/add_tasks.py | e323c771d0a918d6b08a4f1fc852134d93c6e40d | [
"MIT"
] | permissive | dalg24/radical.entk | b6f34ae1b2075f638fbdfd5fc397ea4c0d87cb93 | 4aa68d8de7804e09ca64629035ccda0b79ac0b76 | refs/heads/master | 2020-04-03T17:25:37.548618 | 2018-10-16T12:06:30 | 2018-10-16T12:06:30 | 155,444,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | from radical.entk import Pipeline, Stage, Task, AppManager
import os
# ------------------------------------------------------------------------------
# Set default verbosity
if os.environ.get('RADICAL_ENTK_VERBOSE') == None:
os.environ['RADICAL_ENTK_REPORT'] = 'True'
# Description of how the RabbitMQ process is ... | [
"b.vivek91@gmail.com"
] | b.vivek91@gmail.com |
817651586fec5e60a2d025e0fd50748f7b3c55c8 | ebcf0d04f6e8545891b3552deff2aa5abd833871 | /authentication/migrations/0001_initial.py | 67b8587dff175c204f5ecc17bd713555b3706968 | [] | no_license | rpascual0812/webpay | 0d854d2a47cb9cae7c7ba64d989abb309f2f4cfa | 8c607c24662292a884e1ee31b7424bd7c00908a0 | refs/heads/master | 2021-01-10T04:29:37.221743 | 2016-01-03T15:29:21 | 2016-01-03T15:29:21 | 48,950,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Account',
fields=[
... | [
"rafael.pascual@team.acquireap.com"
] | rafael.pascual@team.acquireap.com |
fe608fb9ba98f0f1ab8f1ae85fec8b54b345a900 | d930e060542a569dec217d099e387d396ed3ca8d | /our_contacts/models.py | 7f6037f2da302b3302327698b9ee1a17fd5bbcab | [] | no_license | dzhem911/t_kontakta | 9eab09e6491a3e906b6aab34991b06f9d97ac07e | f404517501dddb505c8ad8e4d13a316afdd47190 | refs/heads/master | 2022-09-29T14:59:40.026628 | 2020-05-24T15:39:54 | 2020-05-24T15:39:54 | 255,593,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | from django.db import models
from tinymce.models import HTMLField
class OurContacts(models.Model):
title = models.CharField(max_length=100, verbose_name='Заголовок')
description = HTMLField()
img = models.ImageField(upload_to='media/', verbose_name='Изображение', null=True, blank=True)
phone_number = ... | [
"dzhemal911@mail.ru"
] | dzhemal911@mail.ru |
190402e6dd636bf2f4fa9578042f043ce51c8530 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /wtBko8Bc8o8Tmra3q_11.py | 93df75889df3f71ae56c4f1e24530b81e184ba11 | [] | 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 | 135 | py |
def halflife_calculator(mass, hlife, n):
mass_left = mass/(2**n)
years = hlife * n
return [round(mass_left,3),years]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a1440a3c4c685e9974daa780c9e4a8ce9e887701 | 0517a6bb332d35e4a3ccb05ae2f4b692b2b4d297 | /lesson_5/dz_1.py | 5f5cecf14250790898099fb6ef8b599db78c5711 | [] | no_license | VitalyBorin/GB | 4a404c1a5ce6d54c85b8e87550bf61e215673e56 | f8e09565c4adc41b88043f88c7185656aaecf44c | refs/heads/master | 2023-02-24T10:24:47.034976 | 2021-01-19T21:51:07 | 2021-01-19T21:51:07 | 328,787,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | a = ' '
with open("file.txt", "w") as f:
while a != '':
a = input('Введите строку и нажмите Enter для записи строки в файл. При вводе пустой строки запись в файл прекратится')
print(a, file=f) | [
"vitaly.borin@gmail.com"
] | vitaly.borin@gmail.com |
231e74e1f4f13a9e3dcb55efab42e8440f1f5f64 | 752761ecf6a4a751ffa2c6711ea21009a03960e2 | /TB-IA-Servicio/fuzzy.py | 24c9748723fe6e980fb1a200ab9cf36817e54a7d | [] | no_license | Drugoralex/IA_TB2 | 2943d0236546d647a79f3d58e0928808b17dbb62 | 41e25af8bd2a4223a65c1124f3e946ae2b8aeab2 | refs/heads/master | 2020-04-06T19:04:13.655082 | 2018-11-17T16:16:36 | 2018-11-17T16:16:36 | 157,724,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,875 | py | import numpy as np
import skfuzzy as fuzz
import matplotlib.pyplot as plt
x_ram = np.arange(2, 16, 1)
x_vid = np.arange(768, 3580, 1)
x_proc = np.arange(2.1, 4.3, 1)
ram_lo = fuzz.trimf(x_ram, [2, 3, 4])
ram_md = fuzz.trimf(x_ram, [4, 6, 8])
ram_hi = fuzz.trimf(x_ram, [8, 12, 16])
vid_lo = fuzz.trimf(x_vid, [768... | [
"u201513219@upc.edu.pe"
] | u201513219@upc.edu.pe |
810d67acdeb4bd7d114d76c3722eb2212d1920c3 | debb70d11887c636ad90c5cabb01e0933e66d642 | /Thys/GUI Stuff/v3/Mayflower_v3.py | 01038acdfa2196c6cd9004bf31a695b4210dd149 | [] | no_license | james-barrett-44/COMP2100FinalProject | 68a4bc31c618d3d2d5d75bd3ac581c6a39a25e19 | 36572c7bc7f0c8bbfdc2d48a1f04a647f59dd065 | refs/heads/master | 2020-08-24T20:11:46.533634 | 2019-12-12T22:08:09 | 2019-12-12T22:08:09 | 216,897,441 | 0 | 0 | null | 2019-11-23T03:05:48 | 2019-10-22T19:49:46 | Python | UTF-8 | Python | false | false | 2,974 | py | import tkinter as tk
import socket
from threading import Thread
"""
The class setup and frame switching is copied from https://www.youtube.com/watch?v=jBUpjijYtCk
"""
def get_own_ip():
"""https://stackoverflow.com/questions/166506/finding-local-ip-addresses-using-pythons-stdlib?rq=1"""
s = socket.socket(socke... | [
"thys.nadema@gmail.com"
] | thys.nadema@gmail.com |
a4cbfef2228e9ff39aa8907031dc7bb505c0b1da | 4f72a15d3f922b2a526d6646dec7394212fb0b2d | /Foodie/download_data.py | 52828fed853c742c16d07159394f0b9cd0c140ee | [] | no_license | panchenhui/Foodie | 876c24580b829fda2274662a4ccad3d72a2c41b2 | d5636d6b38a4cbf0623a577785860b2c64a062a0 | refs/heads/master | 2021-03-30T16:25:37.959942 | 2018-04-26T02:39:56 | 2018-04-26T02:39:56 | 120,586,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | from firebase import firebase
class download(object):
def __init__(self):
self.firebase1 = firebase.FirebaseApplication('https://inf552-69068.firebaseio.com', None)
self.data = self.firebase1.get('/business', None)
| [
"pan.558@osu.edu"
] | pan.558@osu.edu |
008880df49eaa648acea8a9abf9ffaa149112098 | 85c0813d837b0e0f189020a52348db1deffb0b11 | /public/db/coupon_db.py | 80daaa213acc609f25eb27d5f2237e1696469652 | [] | no_license | reb00t2018/flask-reptiles | 2d49fb27e718e305a7127e05047d865a1e7a6157 | ac3832340219f922e3b9451c2e2b1e18773938c1 | refs/heads/master | 2020-07-03T03:05:56.991764 | 2019-06-11T01:19:14 | 2019-06-11T01:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,051 | py | # -*- coding: utf-8 -*-
__author__ = 'Apple'
from public.db.participle_db import DataBase_PD
class CouponDB(DataBase_PD):
def __init__(self):
super(CouponDB, self).__init__()
def save_coupon(self, coupon):
'''
保存一条商品信息到数据库
:param coupon:
:return:
... | [
"1991585851@qq.com"
] | 1991585851@qq.com |
44c569b36803775a0c36187b8503777aef16b0ec | fa7790c45dbc1ee804011e9dff2d4ff424b9f3d6 | /Searching and Sorting/Counting sort/Implementation.py | 63a5b8f34c85215b5c59e2ea21c34fde374752dc | [] | no_license | KuroKousuii/Algorithms | bcdf75e58e20287e3162ef3302f8051604d7b7d6 | 3bf0250780c9d11c69546ca0da130fbbcada7e40 | refs/heads/main | 2023-05-31T07:41:07.399881 | 2021-06-16T09:32:16 | 2021-06-16T09:32:16 | 368,274,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | # Python program for counting sort
# The main function that sort the given string arr[] in
# alphabetical order
def countSort(arr):
# The output character array that will have sorted arr
output = [0 for i in range(len(arr))]
# Create a count array to store count of inidividul
# characters and initiali... | [
"84732337+KuroKousuii@users.noreply.github.com"
] | 84732337+KuroKousuii@users.noreply.github.com |
ff24d282882cdf0ca3171c74b7a97a578afed28e | 776524cbd37e9dd3f92804350058c0ec2189c851 | /app.py | c5ccb02b8c337b7063ea2d24ce261f70315eb9d5 | [] | no_license | marcos26071998/soham | 80698a14a4f0d3ee4871b2ae32c4df0b81590fb8 | f96bec30907ba7ed2758edeb3110db5c1f61dfa1 | refs/heads/master | 2022-12-06T05:42:54.123783 | 2020-08-23T18:45:34 | 2020-08-23T18:45:34 | 289,743,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Aug 23 23:40:17 2020
@author: Anirban
"""
from flask import Flask, render_template
# Define a flask app
app = Flask(__name__)
@app.route('/', methods=['GET'])
def index():
# Main page
return render_template('index.html')
if __name__ == '__main__... | [
"noreply@github.com"
] | marcos26071998.noreply@github.com |
d25b847438a89a2ef7907ccbe7bd97416f294e59 | 9edf6efa74b211a50db1767d7cbfbc885942a161 | /spatialnde/dataguzzler/dg_3d.py | 1abeb18c444bc7871ffe6d16bc11d4bac8547d64 | [
"Apache-2.0"
] | permissive | isuthermography/spatialnde | 42a49118a3f7cd62c27b6d317b60faff0a55b279 | 983de2e68139c33ab5eb8df59ac0aaa84bad096a | refs/heads/master | 2022-05-03T13:00:35.981337 | 2021-06-23T15:26:11 | 2021-06-23T15:26:11 | 197,398,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,623 | py | import copy
import json
#try:
# from cStringIO import StringIO # python 2.x
# pass
#except ImportError:
# from io import StringIO # python 3.x
# pass
from io import BytesIO
import numpy as np
import dg_file as dgf
import dg_metadata as dgm
import dataguzzler as dg
from ..exporters.vrml import VRMLSeri... | [
"sdh4@iastate.edu"
] | sdh4@iastate.edu |
2df6b73f91163ac5b4445ce597f0830256618a14 | 0941f4b007a17adbfcbeaac5e4bca35365037992 | /udp-client.py | d554d6b7026c65fedaddf70fc75c03284fe2d3d4 | [] | no_license | stuartabramshumphries/networking | 406c524c56724562ec0832038989accdfcdc4873 | 2cb04e2c73afb8b36dee46397a0edbc5963264b5 | refs/heads/master | 2016-08-02T22:35:52.009610 | 2013-05-31T08:18:10 | 2013-05-31T08:18:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | #!/usr/bin/python
# UDP client
import socket
cnt=1
client_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
while 1:
data = raw_input("Type something(q or Q to exit): ")
if (data <> 'q' and data <> 'Q'):
while (cnt <10):
client_socket.sendto(data, ("localhost",54321))
cnt=cnt+1
cnt=1
else:
brea... | [
"stuartabramshumphries@gmail.com"
] | stuartabramshumphries@gmail.com |
6d951c40f76555e0280a5e182bb2a631fa8b7936 | a242274ab48b13785ac0a78bbc353c30b6eb7fd2 | /MyLighthouse/lighthouse/parsers/drcov.py | a6321f6a1932f2ecccfff3ff63fafb067151a1ae | [
"LicenseRef-scancode-mulanpsl-1.0-en",
"MulanPSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cbwang505/DIYDynamoRIO | da48c6a57ba6b21088e4bbd36804131de56f6f36 | 93efa58e802e17115f7623ef4e38a1e2ac856822 | refs/heads/master | 2022-07-28T23:58:11.929087 | 2021-08-27T00:45:53 | 2021-08-27T00:46:10 | 323,505,098 | 26 | 7 | null | null | null | null | UTF-8 | Python | false | false | 15,625 | py | #!/usr/bin/python
import os
import sys
import mmap
import struct
import re
from ctypes import *
#------------------------------------------------------------------------------
# drcov log parser
#------------------------------------------------------------------------------
class DrcovData(object):
"""
A drc... | [
"cbwang505@hotmail.com"
] | cbwang505@hotmail.com |
f55af3d8a9ae98e223e9c99bf7e61ae465ce3918 | 2b70516185e8b102cf1a90d730bb068461fb7af8 | /book/migrations/0018_auto_20191225_0718.py | a65a4fa4830fa4550943a9b6ef10abdbf81c0643 | [] | no_license | KeeperNight/Roronoa | c4eb083e6e2c7311b0aca8e699df01dfd1028ae6 | ffff84a4c95483a742806314004678002401fafc | refs/heads/master | 2020-11-29T21:23:33.841854 | 2020-01-03T19:00:44 | 2020-01-03T19:00:44 | 230,218,681 | 0 | 0 | null | 2020-01-03T19:00:46 | 2019-12-26T07:39:30 | HTML | UTF-8 | Python | false | false | 549 | py | # Generated by Django 3.0.1 on 2019-12-25 15:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('book', '0017_auto_20191225_0716'),
]
operations = [
migrations.RemoveField(
model_name='collection',
n... | [
"noreply@github.com"
] | KeeperNight.noreply@github.com |
60b6c78bf5554244f344ae127983fba5b3b0324c | 8de775551031c80337cdd978f1cfa6368ffba03d | /437_pathsumIII.py | a0b91d553c1205dc9d30de639b792412cb15a74e | [] | no_license | evilwarlock/leetcode | 6ba531ae5dbe818c9ba87b5122c66d2cc8e2729e | 819855b2d388e3ddd77f072d3108af7b4b902047 | refs/heads/master | 2022-11-30T03:58:41.199365 | 2020-08-18T18:07:07 | 2020-08-18T18:07:07 | 260,012,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | class Solution:
def dfs(self, root, sum, root_sum):
if not root: return None
root_sum += root.val
self.result += self.count[root_sum]
self.count[root_sum + sum] += 1
self.dfs(root.left, sum, root_sum)
self.dfs(root.right, sum, root_sum)
self.count[r... | [
"ceaxyz@gmail.com"
] | ceaxyz@gmail.com |
3310e6775faa200891070352b482f64fce2ea800 | 54abd03baf2424343a56d11deae58516f9620c94 | /backend/src/api/migrations/0015_auto_20190121_1917.py | 7aa5536fce00bd5e6854725bda34bb3eef18354d | [] | no_license | krskibin/zpp | ce590fee81edf5ba1a565b6be302be7aea2e69f1 | 76572557435ba9583d46ae6f841d37d484c7c04e | refs/heads/master | 2021-06-10T23:45:09.280420 | 2019-06-24T13:46:23 | 2019-06-24T13:46:23 | 153,451,428 | 1 | 0 | null | 2021-03-30T10:31:18 | 2018-10-17T12:14:52 | Python | UTF-8 | Python | false | false | 457 | py | # Generated by Django 2.1.2 on 2019-01-21 19:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0014_auto_20190121_1917'),
]
operations = [
migrations.AlterField(
model_name='image',
name='name',
... | [
"noreply@github.com"
] | krskibin.noreply@github.com |
f5963aeec458e4ee5c2b2115e3bb24aeafc317eb | 485cb201a47148c72b7cc45fe5647ef32baa57be | /3_Multi_User_Blog/Forms_inputs/play.py | 6c25aea9061a0c117d7aa93b148bf0c4df83f41f | [] | no_license | aniruddhabarapatre/FSND | 0da5b0ce54b66d7b7fc929259d0d476d1aa0b1bf | a59a41f8e2d2109eb6d01d7ac2bc79b66aa85927 | refs/heads/master | 2020-02-26T15:01:44.691005 | 2017-05-21T04:29:47 | 2017-05-21T04:29:47 | 83,217,958 | 1 | 1 | null | 2017-04-18T02:14:59 | 2017-02-26T15:13:21 | Python | UTF-8 | Python | false | false | 482 | py | import webapp2
form = """
<form action="/testform">
<input name="q">
<input name="submit">
</form>
"""
class MainPage(webapp2.RequestHandler):
def get(self):
self.response.out.write(form)
class TestHandler(webapp2.RequestHandler):
def get(self):
q = self.request.get("q")
self.response.out... | [
"aniruddhabarapatre@gmail.com"
] | aniruddhabarapatre@gmail.com |
11c74340ab82e472305fd10a2cd5370c1dea9ffb | fb1a7534356941e763755838e9b06fede7a7d116 | /tests/test_metrics.py | 46fe3e1aeab2e0aed220e08069a18e20c0547717 | [
"Apache-2.0"
] | permissive | torkelo/graphite-api | e2417f0bddae9bcd0581272dc270bbe08a78d653 | 0fd1904b462c1cbbe99f531a365839647a01a7e1 | refs/heads/master | 2020-12-02T15:08:56.573796 | 2014-03-17T21:59:38 | 2014-03-17T21:59:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,363 | py | import os.path
import whisper
from . import TestCase, WHISPER_DIR
class MetricsTests(TestCase):
def _create_dbs(self):
for db in (
('test', 'foo.wsp'),
('test', 'bar', 'baz.wsp'),
):
db_path = os.path.join(WHISPER_DIR, *db)
os.makedirs(os.path.dirna... | [
"brutasse@gmail.com"
] | brutasse@gmail.com |
01e347f7f20a1e1ee957aee5bb968aca54863c14 | 0d09fb71910f1d9d625c7573f2f1f6e98bc3a3a4 | /myblog/myblog/urls.py | 39204b4f81e0f6e201bf79e07a635f99a99d8775 | [] | no_license | jayhchoi/django-blog-project | 0e28037885b9662839d98c4d8258be20e5405f68 | 5e6548b55a0b64908381e23588b8475f260b544f | refs/heads/master | 2020-03-30T18:52:16.628981 | 2018-10-05T11:30:13 | 2018-10-05T11:30:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | """myblog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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 ... | [
"33884497+jaychoi1619@users.noreply.github.com"
] | 33884497+jaychoi1619@users.noreply.github.com |
c7d6e9ed383e12bdd30d05b2e352f315b4058bd9 | 7c45bbb653be486f8a8293877b665cab5de3176f | /interpretable_models/codes/dataFolds.py | 517b521ba17a0dfa3b7cf90d3190f21c017eecd3 | [] | no_license | vishwassathish/Interpretable_models | 37e377cd894c6b12a5984dc259fae9153c460352 | c8901e930cd076523a007b622e122f351adb32a4 | refs/heads/master | 2020-03-22T22:37:38.875272 | 2019-06-24T17:52:57 | 2019-06-24T17:52:57 | 140,761,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,948 | py | import csv
import random
import numpy as np
from pickle import dump
def readData(filename):
data=[]
with open(filename,"r") as f:
reader=csv.reader(f)
for row in reader:
data.append(row)
headers=data[0]
data=data[1:]
f.close()
for row in data:
... | [
"noreply@github.com"
] | vishwassathish.noreply@github.com |
f60ea6fc3ab345db095269b7fab77201af8d0c01 | 81da50f44ac78f99ab78125d36a7d508e07bea63 | /old_approach/selection.py | 7f3c4f51b05e29faf195f988240fc4812d3822ef | [] | no_license | pnovais/granada_2016 | ebb859370921489e95dafcf21d58757f87ff53f5 | 11ad3d44b4f50606608fd89f8e295949818ffd3e | refs/heads/master | 2021-03-22T04:36:25.768426 | 2016-12-02T16:42:21 | 2016-12-02T16:42:21 | 70,143,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,648 | py | import pandas as pd
import numpy as np
import time
import sql as sql
from sys import exit
from astropy import units as u
from astropy.coordinates import SkyCoord
ini=time.time()
#dfs = pd.read_table('califa_objs.txt', delim_whitespace = True)
#dfs.columns = ['name', 'id', 'ra', 'dec', 'v500','v1200', 'comb', 'ned', ... | [
"patynovais@gmail.com"
] | patynovais@gmail.com |
8afec5a7c9748873c1dbc65e7e67f6d025f33a9e | 51d098e7ac392556a6365fcf7d283546d1bc86cb | /pysswords/db/credential.py | 651901a52f61b2811503c8e9363f048ac638b221 | [
"MIT"
] | permissive | mauriciomelo/pysswords | 7dd632577b261aa198a618ca1d6d0faa825cb5e7 | e845475a2a37f6e5ac4fadbc821d89dad6971f1c | refs/heads/master | 2021-01-13T11:41:44.568197 | 2014-12-04T19:32:57 | 2014-12-04T19:32:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | from collections import namedtuple
Credential = namedtuple(
"Credential",
["name", "login", "password", "login_url", "description"]
)
| [
"marcwebbie@gmail.com"
] | marcwebbie@gmail.com |
403e6aea999f4b8b857e6ebb24ff679f68a607af | 46e50a1bd93569a0f945b65b6e84c927fb256f53 | /mtpy/utils/modemMakeModel.py | 36128ecdce8a38fc29194a3dd6cc3fa86d367988 | [] | no_license | lucasc15/mt3py | d3afed2527b1bc49e4e4cd4ec1d24b5083a5942d | 734fc551e87cd30261e7d648d79d6d0e5885b85d | refs/heads/master | 2021-01-19T00:35:44.069960 | 2016-07-03T14:03:54 | 2016-07-03T14:03:54 | 62,498,631 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,929 | py | #!/usr/bin/env python
#build ModEM input Model from ModEM data file
import numpy as np
import sys,os
#==============================================================================
#plot model geometry
plot = True
# parameters:
n_xpadding = 10
n_ypadding = 6
#number of vertical padding layers is set to 3 !
#facto... | [
"currahl@yahoo.ca"
] | currahl@yahoo.ca |
53e93f962e07335199743cfd2031f7866c6928b6 | f891828ffe9c8501d276560c8c52d319f284056f | /205_isomorphic_m/index_map.py | 0f5f7ccd9a02480277885e72dd81ce413e922721 | [] | no_license | chao-shi/lclc | 1b852ab61fef4072039c61f68e951ab2072708bf | 2722c0deafcd094ce64140a9a837b4027d29ed6f | refs/heads/master | 2021-06-14T22:07:54.120375 | 2019-09-02T23:13:59 | 2019-09-02T23:13:59 | 110,387,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | class Solution(object):
def isIsomorphic(self, s, t):
"""
:type s: str
:type t: str
:rtype: bool
"""
return map(s.find, s) == map(t.find, t)
# From OJ discussion | [
"chris19891128@gmail.com"
] | chris19891128@gmail.com |
b5cb685994c13b9e0c59cd123f829950c2a1ea60 | 138fccbc4a19bbeb0fac4fe031ff8e9288774b06 | /code-platoon/week10/assessment-4/CL/lists/models.py | 78a3329de4548ca91d8983ca391035eedab5b6bd | [] | no_license | Shadow073180/assessment_four | fe8b216fac25bf936622fd887f6814318cd81c2c | 0cb32ddc22e2392c774fae99be44fe28b086d95c | refs/heads/master | 2020-09-08T13:10:35.244993 | 2019-11-18T16:21:50 | 2019-11-18T16:21:50 | 221,141,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from django.db import models
# Create your models here.
class Catagory(models.Model):
name = models.CharField(max_length=50)
def __str__(self):
return f'Name:{self.name}'
class Post(models.Model):
catagory = models.ForeignKey(Catagory, on_delete=models.CASCADE, related_name='posts')
post_text... | [
"david73180@gmail.com"
] | david73180@gmail.com |
4e17c5c8db150dade37e484fdbee51798ebed144 | 68e9209b35a754692edc4fd9723eca5997bb2a77 | /src/links/migrations/0005_link_phno.py | 41c1e2cec0a7e158e4ed5b235730b3fd14fbc821 | [] | no_license | rachit98/Track_me_down | bc3a26062b9e3f03cb7c644e2018471b7af742fe | d65b61c49debe1bce78e760e9cbd5335a8e8a1bb | refs/heads/main | 2023-04-27T03:18:19.856788 | 2021-05-15T01:58:07 | 2021-05-15T01:58:07 | 349,683,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # Generated by Django 3.2 on 2021-04-25 05:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('links', '0004_link_trigger'),
]
operations = [
migrations.AddField(
model_name='link',
name='phno',
field=... | [
"srvthapliyal97@gmail.com"
] | srvthapliyal97@gmail.com |
c1fc7ed400614f9828dd914aab69a6d171edf275 | a491f21896ffb11fcf8116e8cea2c18c92a31f82 | /assethub/assets/migrations/0010_auto_20170104_1249.py | 3e3511e0e3093ff65a074dc6038aae84ade2af4c | [
"BSD-3-Clause"
] | permissive | portnov/assethub | 8126bd27ba913ba5c54acaed5fbccee5dce82623 | 0f2f9d5e190b2a633a794514b54d8b408c9ed2a6 | refs/heads/master | 2021-01-12T03:50:42.109009 | 2017-04-07T16:12:16 | 2017-04-07T16:12:16 | 78,276,047 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-04 12:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('assets', '0009_profile_follows'),
]
operations = [
migrations.AlterField(
... | [
"portnov@iportnov.ru"
] | portnov@iportnov.ru |
81908f769fcd375865f52aa05e260e800a9302c5 | 4a1e8886a32bf43916156b9d5893c15696f4271f | /biote_project/biote_init/__manifest__.py | 46c66865aeeee5930853b6245b016f7618b12b0e | [] | no_license | JohnLYH/app | 1cb116b24aff90ba9ad86288cf430d6d1bfcb116 | 2370cf00bb97c54d165601959480b0d9846ddb48 | refs/heads/master | 2020-05-14T18:17:11.777564 | 2019-04-03T08:49:04 | 2019-04-03T08:49:04 | 181,907,136 | 1 | 0 | null | 2019-04-17T14:20:34 | 2019-04-17T14:20:34 | null | UTF-8 | Python | false | false | 831 | py | {
'name': '博益特-项目初始化',
'version': '1.0',
'category': 'biote',
'description': """
功能介绍
==============
* 实现项目的一键创建功能
* 安装博益特项目的所有模块,按照模块依赖关系从叶子节点开始安装
* 导入初始化数据
* 进行基础配置
""",
'author': '刘明臣',
'website': 'http://openc2p.com',
'depends': [
'product',
'stock',
'hr',
... | [
"735757527@QQ.COM"
] | 735757527@QQ.COM |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.