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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
69afe832f90b7d85d2f11aa7bd10b5a3dad3ac62 | f86b7a8e430becbef820e411c6d2808f646934bd | /C9_Ex2.py | 817ff705f3ec305a04097a132a8652c000bd8c72 | [] | no_license | JoE11-y/PY4E | 2e5f2c87c60e86ce5bcefeb1eddac4c7821bca86 | c6d56f35a557580d449403511ac6e77af3036623 | refs/heads/main | 2023-01-11T15:24:56.603892 | 2020-11-14T05:02:38 | 2020-11-14T05:02:38 | 312,454,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | fname = input("Enter file name: ")
''' The method I created during my first trial
fhand = open(fname)
counts = dict()
for lines in fhand:
lines = lines.rstrip()
if lines.startswith("From"):
words = lines.split()
if words[0] == "From:": continue
for item in range(len(words)):
... | [
"Josephedoh77@gmail.com"
] | Josephedoh77@gmail.com |
961b9ef2cec94e3824919a09b259a06ecf7673bc | f96f64b7c509b79dea692371c2cbd20e1bd246c0 | /cms/cmsmain.py | 1ff75e12ee563d3068a7d5b44635ab26f7b22e4a | [] | no_license | helloexp/AngelSword | 51cbf491e52cb7be601b641a632e65fe3ee82b74 | 4a77ba5f86a2ae422eba4b78856dcf2a6bf9b4c9 | refs/heads/master | 2021-01-21T11:03:16.795459 | 2017-08-24T09:14:37 | 2017-08-24T09:14:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,247 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
name: cms漏洞库
referer: unknow
author: Lucifer
description: 包含所有cms漏洞类型,封装成一个模块
'''
#autoset vuls
from cms.autoset.autoset_phpmyadmin_unauth import autoset_phpmyadmin_unauth_BaseVerify
#phpstudy vuls
from cms.phpstudy.phpstudy_probe import phpstudy_probe_BaseVerify
from ... | [
"297954441@qq.com"
] | 297954441@qq.com |
37914a9c4814608da59a345b4a43f3bd0acdd6ec | 9f0ae1475328635c2e5123e65d8cf43fefa97248 | /relojito.py | 516009f01d96e755d0514b8a6cd8b3e4ea1adb6d | [] | no_license | SamuelMedrano27/Juego | 581ff67d2ac0d449ba1093990fd36375f71345f6 | 4ec0b3c58db088047b447555e0728d8a58c35b0f | refs/heads/main | 2023-05-12T18:57:18.552795 | 2021-06-10T02:07:42 | 2021-06-10T02:07:42 | 367,969,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,425 | py | import pygame
import sys
import random
from pygame.locals import *
pygame.init()
#COLORES
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
GREEN = (0, 255, 0)
RED = (255, 0, 0)
BLUE = (0, 0, 255)
ORANGE=(255,165,5)
CELESTE=(66,148,255)
#PANTALLA
ANCHO=1000
ALTO=800
#JUGADOR
JUGADOR_POS=[500,750]
JUGADOR_TAM=20
#ENEMIGO1
ENE... | [
"samu100pre@gmail.com"
] | samu100pre@gmail.com |
650a8a893c1dcebd6bb63eb7ae18ee8468bf566d | 3c1e51cdc1e8fe95cd1dc9674954622b7ee1e71a | /backend/mobilegeee_28456/settings.py | 60372fff369e36c9a4d533d7b555077d3c91e624 | [] | no_license | crowdbotics-apps/mobilegeee-28456 | ed22c9fd3008f73442bee4af7fed0887a5ae436d | dedcfddd27f9707bfc584f602341cc32d2e79034 | refs/heads/master | 2023-06-09T02:30:41.908432 | 2021-07-05T13:52:25 | 2021-07-05T13:52:25 | 383,155,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,114 | py | """
Django settings for mobilegeee_28456 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
973a32d7cadd4805cd5facd891aa17ccbdc9f521 | 3b65e030d5abe9aa6f68c9c83a706aeb31fbed22 | /logscanlib.py | 3e0b28d3f5a7bb85fcfb4c7180a7c05fd7266054 | [] | no_license | GeekHades/logscan | 803dde06a5f1df87f43b8b24cda02fd00d812868 | 260b6cf0046754b24726e503f171b99095fd9499 | refs/heads/master | 2021-01-23T05:10:38.203059 | 2014-02-22T11:16:42 | 2014-02-22T11:16:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,211 | py | """
logscanlib
~~~~~~~~~~
"""
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2, as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; ... | [
"thomaslfuss@gmx.de"
] | thomaslfuss@gmx.de |
273756255366ff0a61cc4722b0c151c78ed0c2b7 | 1117f6fc0a09b43b97a396de7155dfa4f5015bac | /single_pages/models.py | 0437e8fa9220801ef3bc4de8d955112d51c903d6 | [] | no_license | youngwoo2020/turtleneck | 69e218eb9d5a1c4f526d8a580cd3dfd6997130f7 | 669340790f032a1c0052bfb4d1bec5bad45f46e0 | refs/heads/main | 2023-08-22T04:14:11.459663 | 2021-10-22T11:44:55 | 2021-10-22T11:44:55 | 413,274,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | from django.db import models
# Create your models here.
class User(models.Model):
user_name = models.CharField(max_length=200, null=False)
user_id = models.CharField(max_length=200, null=False)
user_password = models.CharField(max_length=200, null=False)
user_point = models.IntegerField(default=10000... | [
"youngwoo202078@gamil.com"
] | youngwoo202078@gamil.com |
1187a68a19b872d637c6b16caef681ea72ae907f | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/msData/datatypes/Facets/unsignedByte/unsignedByte_totalDigits003.py | 95d57599df105ea2f4f13dfa3f01a81276e9e890 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 162 | py | from output.models.ms_data.datatypes.facets.unsigned_byte.unsigned_byte_total_digits003_xsd.unsigned_byte_total_digits003 import Test
obj = Test(
foo=123
)
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
cfc7a1964380fa13b399e8c2cca280f16cb6e155 | fc3b7a0889a56961d886810490c6d6d551d46215 | /catgan_example/normal_utils.py | 0a47edfb0d1ed82ccb641772ec977aba1ae1b4ae | [] | no_license | hsyang1222/gan_metric | 7dec2b170da32f5f929cbe0d03bc9ef6f423fd55 | fcb7dc9821875b5ba43529773bb3fbd5dc7cd5f5 | refs/heads/main | 2023-04-14T09:15:50.697686 | 2021-05-06T12:49:03 | 2021-05-06T12:49:03 | 363,570,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,641 | py | from __future__ import print_function
import os
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.backends.cudnn as cudnn
import torch.optim as optim
import torch.utils.data
import torchvision.datasets as dset
import torchvision.transforms as transforms
import torchvision.utils as vutil... | [
"hsyang1222@snu.ac.kr"
] | hsyang1222@snu.ac.kr |
9a6c4d6eb57d5da3b1338ec38322bb55362205de | f9084cb6daa33ff9df5d00a203ffc457d118a138 | /api/bank/models.py | faec5b5009898c17c199d5a105c776c582c1fc6b | [] | no_license | sanjivyash/Django-REST-API | e720136998944a0e6498bc5a6040e3dd3fd10ad0 | c0321f7172752783637694ff85d5b6b8f86580e6 | refs/heads/master | 2023-07-28T21:21:30.707176 | 2020-07-01T16:23:15 | 2020-07-01T16:23:15 | 276,410,773 | 0 | 0 | null | 2021-09-22T19:20:54 | 2020-07-01T15:13:00 | TSQL | UTF-8 | Python | false | false | 784 | py | from django.db import models
class BankDetails(models.Model):
bank_id = models.AutoField(primary_key=True)
bank_name = models.CharField(max_length=49, blank=True, null=True)
bank_ifsc = models.CharField(max_length=11, blank=True, null=True)
bank_branch = models.CharField(max_length=74, blank=True, null... | [
"sanjiv.yash@gmail.com"
] | sanjiv.yash@gmail.com |
7f272352336b3b5980e08c0293f3c0bd05d64ca4 | 15d6d74172d0927687bf39401582e8f2ce943dab | /package_test/test_gridLayer.py | acea81336d851eaaf848d5edd34d799bd60b4ce2 | [] | no_license | VencenZhao/py-utils | c5b861c5d7ddc49db54e29838574c65855f65d9b | f079df1159efb9c6d9fa4034487618dd9a433875 | refs/heads/master | 2022-01-20T02:55:52.774028 | 2019-07-24T02:51:36 | 2019-07-24T02:51:36 | 198,378,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | # -*- coding: UTF-8 -*-
import sys
sys.path.append('..')
from package_grid.GridLayer import GridLayer
def main(args):
# (0, 1, False) 部级WGS84坐标
# (0, 1, True) 部级gcj坐标
# (1, 1, False) 省级WGS84坐标
# (1, 1, True) 省级gcj坐标
# (2, 1, False) 市级WGS84坐标
# (2, 1, True) 市级gcj坐标
# (3, 1, False) 区县级WGS84坐标
# ... | [
"zhaobaojue@gmail.com"
] | zhaobaojue@gmail.com |
a5dbdb6f26c7bfee74ad32ab213debd273d682df | b92c39c8498e0c6579a65430e63b7db927d01aea | /python/cookbook/decorator_3.py | d19549b43373954c5dcf57ea393088dd0dcf6812 | [] | no_license | szqh97/test | 6ac15ad54f6d36e1d0efd50cbef3b622d374bb29 | ba76c6ad082e2763554bdce3f1b33fea150865dc | refs/heads/master | 2020-04-06T05:40:55.776424 | 2019-01-14T06:37:38 | 2019-01-14T06:37:38 | 14,772,703 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from functools import wraps, partial
import logging
def logged(func=None, *, level=logging.DEBUG, name=None, message=None):
if func is None:
return partial(logged, level=level, name=name, message=message)
logname = name if name else func.__module__
log ... | [
"szqh97@163.com"
] | szqh97@163.com |
1448b70a663c5dd7830596c8aff74103fd219278 | a2153f1fc6f4ac8236b17ccc4cd740ddafe3e3bc | /posts/migrations/0001_initial.py | 02ef94f3002ddc46ed9bf3c10aced121a52e2d18 | [] | no_license | vivekbhandari93/SNS | 58d15d9e9f09d07e877a638e92e5f686a3118a2b | ce445603eeee57928a8d8b681e950e48b1ab58b1 | refs/heads/master | 2022-12-22T22:10:13.517565 | 2020-09-26T07:32:57 | 2020-09-26T07:32:57 | 297,431,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,215 | py | # Generated by Django 3.1.1 on 2020-09-23 16:08
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('grou... | [
"ervivekbhandari@gmail.com"
] | ervivekbhandari@gmail.com |
002fe3accc7a0a0684f8890376a1128bf94c0d4f | 86acf9935f9338625d0ed33fa4b84124d3c6a8e5 | /Udemy_code/code/s03/SayMyName.py | b4cb9fb43f064d571d3afcb6a04d2d989cac651e | [] | no_license | hernbrem/TYK2CodeAAA | 5c085fada3faaf078ae872857b17ebf8ace049e4 | a5d1108a9899f3394ece4745c70db934ad7c1c75 | refs/heads/master | 2023-05-07T01:03:20.868800 | 2021-05-26T18:45:35 | 2021-05-26T18:45:35 | 325,387,331 | 0 | 0 | null | 2021-02-04T19:16:43 | 2020-12-29T21:08:05 | Python | UTF-8 | Python | false | false | 231 | py | # SayMyName.py
# Ask the user for their name
name = input("What is your name? ")
# Print their name 100 times
for x in range(100):
# Print their name followed by a space, not a new line
print(name, end = " rules! ")
| [
"76752866+hernbrem@users.noreply.github.com"
] | 76752866+hernbrem@users.noreply.github.com |
dbddd79e567508195a8af37251561dc297fc8987 | 791630499123723b9589c0b6fb42f4954b7f254d | /Solving_XOr_gate/activation_layer.py | 47890c096dfd25deac8b792167a0de1ced7ca440 | [] | no_license | szijderveld/Solving_MNIST_from_scratch | 92ff7d2b59dfcde32dbb2848a9b3604c2525eca5 | d35f2e0b81001c75dc1e28b1d5431bbb7de93e7f | refs/heads/master | 2023-03-07T17:51:15.542994 | 2021-02-22T13:28:00 | 2021-02-22T13:28:00 | 266,547,979 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py |
from layer import Layer
# For our model to learn anything we need to aply non-linear functions to the output of our functions
class ActivationLayer(Layer):
def __init__(self, activation, activation_prime):
self.activation = activation
self.activation_prime = activation_prime
#returns the activation inpu... | [
"noreply@github.com"
] | noreply@github.com |
da7d7fab4e7d7a7d007985b96cfdab50b0ed6471 | 4281075c31975ef70b45612cb155a2e333800724 | /chatapp/settings.py | ead402ec54427761bb5651ccca43008a898fbebd | [] | no_license | ChristC9/ChatApp | a9c950a556929b053d9a43306a3dc98f3009c0df | c2f792710fc6cd183890e36cf86cd0ac531b23aa | refs/heads/master | 2023-06-22T17:46:08.839658 | 2021-07-11T09:12:19 | 2021-07-11T09:12:19 | 384,899,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,578 | py | """
Django settings for chatapp project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathli... | [
"nyanhtetaungucsy106@gmail.com"
] | nyanhtetaungucsy106@gmail.com |
e924dd9290da87bcf7962e4a2e76cf2fac9d5e8a | 9e461f40bbdf63d9c00c99f398758f5b236db863 | /Python/motion_client/main.py | 017a2466ac1b43da634527a033e525fdbcd3ed5c | [] | no_license | robbynickles/portfolio | b490a98de9bc7daf6d14b074b2726a06359a8462 | 269b0593ce5e0773fa18f74c4374fcc0bccc5c40 | refs/heads/master | 2021-01-10T05:17:00.762021 | 2015-12-25T00:36:23 | 2015-12-25T00:36:23 | 48,555,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.core.window import Window
w, h = Window.width, Window.height
from libs.swipeplane2 import SwipePlane
from libs.device.device_view import DeviceTest
from libs.client.client_view import Client
from plyer import accelerometer, compass, gyroscop... | [
"r.nickles7@gmail.com"
] | r.nickles7@gmail.com |
64f97e236d713e1627d64ec3e03f6c532a3d2e76 | 0f0af12b45aa6f50fb418f9236fc622e56bbbfee | /server/podbaby/history/serializers.py | 783c7dba88c4eec2024b18765cff0ede0b0e6e8b | [] | no_license | danjac/podbaby2 | 234863e5d2ad39902bc64e63e285e7b507049727 | 17f02b0707120797cb3c3cccb95dacddff6375fa | refs/heads/master | 2020-09-24T23:11:08.186829 | 2016-12-03T07:42:59 | 2016-12-03T07:42:59 | 66,766,438 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from rest_framework import serializers
from history.models import Play
class PlaySerializer(serializers.ModelSerializer):
class Meta:
model = Play
fields = (
'episode',
'created',
)
| [
"danjac354@gmail.com"
] | danjac354@gmail.com |
6b2cd42d4259675afcf80d619d0b639176d6d3eb | bdf66bab1a8519e8eba7b97460bbd62e9b150dc2 | /classroom/exercises/lesson6/exercise5.py | 4273ecd14596dcb532ec023c272c5a84f96d9517 | [] | no_license | vyniciuss/udacity-Data-Streaming-ND-Kafka | 9c3990d4767b5322740f369e079c115c8164303b | 398b35d353ecb7a3259466615310ab56f8c9663b | refs/heads/master | 2020-12-13T14:18:38.228519 | 2019-12-03T10:36:04 | 2019-12-03T10:36:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | from dataclasses import asdict, dataclass
import json
import random
import faust
@dataclass
class ClickEvent(faust.Record):
email: str
timestamp: str
uri: str
number: int
score: int = 0
#
# TODO: Define a scoring function for incoming ClickEvents.
# It doens't matter _how_ you score the i... | [
"ben@spothero.com"
] | ben@spothero.com |
0485b3c30dddb3fec104ad7ec3bf10074c7e250c | 94c4f0b70dfbe3801329d32405cb601a133ecc50 | /app/models/staffModels.py | 4add501f0926d5e01a049933be6ac830b31a706a | [
"Apache-2.0"
] | permissive | luxutao/staffms | 5f23eaf8b63cdcb8e549103be2319df9b7bb5c7e | 6fe2a263fca4a817fbd18965327bd8ad5326dc6b | refs/heads/master | 2023-02-07T23:05:25.199261 | 2020-06-06T04:03:03 | 2020-06-06T04:03:03 | 192,301,997 | 1 | 0 | Apache-2.0 | 2023-02-02T06:35:00 | 2019-06-17T08:02:16 | Python | UTF-8 | Python | false | false | 2,667 | py | #!/usr/local/bin/python3
# -*- conding: utf-8 -*-
from ..utils import db
from .jobModels import Job
from .companyModels import Company
from .departModels import Department
from .staffInfoModels import StaffInfo
from .logModels import Log
from sqlalchemy.orm import relationship
class Staff(db.Model):
__tablenam... | [
"luxutao"
] | luxutao |
7ad882dffba848593ced53b6c630af79d96bd3b8 | 75d258d0cc8b07134a3db656a16e8c27557e3572 | /n12_m14/circuit_n12_m14_s6_e6_pEFGH.py | 97fdd8fcfb80bed2805d9ebf6bf2f4aeea17ce97 | [] | no_license | tonybruguier/martinis_et_al_data | 7c5acee8cb18586607c0ffdc25bc9b616e0847be | 1a35e6712c5bd4b48ef0027707b52dd81e5aa3f3 | refs/heads/master | 2023-02-23T09:36:24.179239 | 2021-01-24T20:23:04 | 2021-01-24T20:23:04 | 332,266,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45,838 | py | import cirq
import numpy as np
QUBIT_ORDER = [
cirq.GridQubit(3, 3),
cirq.GridQubit(3, 4),
cirq.GridQubit(3, 5),
cirq.GridQubit(3, 6),
cirq.GridQubit(4, 3),
cirq.GridQubit(4, 4),
cirq.GridQubit(4, 5),
cirq.GridQubit(4, 6),
cirq.GridQubit(5, 3),
cirq.GridQubit(5, 4),
cirq.Gri... | [
"tony.bruguier@gmail.com"
] | tony.bruguier@gmail.com |
06e73adb0564782fe97690b3cfa9e67a2fe741ec | ac98203be5bfea90667a1698f864c27df6874a19 | /solutions/1-25/problem_022/problem_022.py | fe72a883f73e32a2c2c819b90834a03de6851f6f | [] | no_license | samvbeckmann/Euler | a3d340862c64c6a4521a01a1eaad35c8409e1543 | df8b6c77cc4da64953d8bda8a2e9416207d7743d | refs/heads/master | 2021-01-10T21:50:17.901402 | 2015-12-12T00:33:17 | 2015-12-12T00:33:17 | 46,757,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | import re
# Solution to Project Euler problem 22
total = 0
with open('p022_names.txt', 'r') as file_names:
name_list = re.split(',', file_names.readline())
name_list.sort()
for x in range(len(name_list)):
temp_total = sum([ord(char) - 64 for char in name_list[x].replace('"', '')])
total += ... | [
"samvbeckmann@gmail.com"
] | samvbeckmann@gmail.com |
fc019e03a0ec2faaedaaf366a1c30c010b4fbc68 | 97fcd33403e69e7e5bb60d27b7de73bb7c58b060 | /awacs/applicationinsights.py | 0d90c4b4f0fe2b10f6a8ea40d350fb33b7c02a67 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | isabella232/awacs | d2b132b527da6b6c2e89da26e9fdbc1d5ca7f191 | 41a131637c16a6912c17f92ac3bbf2a3bf978631 | refs/heads/master | 2023-01-09T07:45:22.199974 | 2020-11-16T05:11:01 | 2020-11-16T05:11:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,536 | py | # Copyright (c) 2012-2013, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from aws import Action as BaseAction
from aws import BaseARN
service_name = 'CloudWatch Application Insights'
prefix = 'applicationinsights'
class Action(BaseAction):
def __init__(self, action=None... | [
"mark@peek.org"
] | mark@peek.org |
8df96bdca93c8ac21e2f1bbfaf44925c191e836e | e7e497b20442a4220296dea1550091a457df5a38 | /main_project/release-gyp/user/user_cache.gyp | 8ad0946152bb7f37f49b7e30cfb8de571639ce27 | [] | no_license | gunner14/old_rr_code | cf17a2dedf8dfcdcf441d49139adaadc770c0eea | bb047dc88fa7243ded61d840af0f8bad22d68dee | refs/heads/master | 2021-01-17T18:23:28.154228 | 2013-12-02T23:45:33 | 2013-12-02T23:45:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,361 | gyp | {
#包含公共设置
'includes':[
'user_common.gyp',
],
'variables':{
'service_name' : 'UserCache',
'service_src_path' : '<(main_project_path)/user/<(service_name)/',
},
'target_defaults' : {
'include_dirs' : [
'/usr/local/distcache-dev/include',
'/usr/local/distcache-uti... | [
"liyong19861014@gmail.com"
] | liyong19861014@gmail.com |
aab904e0dd9171dd8ec4654f1d5645563f17a7d9 | 135deefb66effbc14dd80cebfea8a0878704bcbd | /settings/config.py | 7035053dd3a861754b1ac9816e6fd18bfbc710e3 | [] | no_license | pedroagrodrigues/SimplePythonServer | be4817c738e7e843315ba2f89429ffd21419e88f | 71cc51fe0d3aa8e782d36a5bd4790edad8ede329 | refs/heads/main | 2023-02-10T16:21:37.224280 | 2020-12-17T21:39:04 | 2020-12-17T21:39:04 | 310,068,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | #initialization variables
development = True
#Becareful 0.0.0.0 as default is visible on your
# local network with your device IP
NameServer = "127.0.0.1:8080"
class Config(object):
DEBUG = False
TESTING = False
try:
SERVER_NAME = NameServer
except:
print("No Name Server defined usi... | [
"pedroagrodrigues@gmail.com"
] | pedroagrodrigues@gmail.com |
ae0cbcf21e4403bb670df1175cdd43b21d2172f2 | f47c540d5e8d1b773de57a9e66e0ad2af9b13e9c | /mwana/apps/alerts/tests.py | 6890ca7b162ff7dce5fdd1174ed4c00a4dcd90a8 | [] | no_license | mwana/mwana | e70d1b0c59f2f3ad1300452f58b908a57210415d | 698c2f693f2c49f6dc41c1c0b6669300b619b579 | refs/heads/develop | 2021-01-17T10:11:17.502708 | 2016-02-15T10:56:56 | 2016-02-15T10:56:56 | 600,738 | 5 | 6 | null | 2016-02-03T19:12:45 | 2010-04-08T13:24:18 | Python | UTF-8 | Python | false | false | 6,188 | py | # vim: ai ts=4 sts=4 et sw=4
from datetime import timedelta
import time
from django.conf import settings
from mwana.apps.alerts import tasks as smstasks
from mwana.apps.alerts.models import SMSAlertLocation
from mwana.apps.labresults.models import Result
from mwana.apps.labresults.testdata.reports import *
from mwana.... | [
"sinkalation@gmail.com"
] | sinkalation@gmail.com |
6832e191748203e0bdf0348b62d123f4f9a026de | c3819b28c53d4b9cdfe6a7bccfbc42f91597abdd | /codingjobs/apps/job/forms.py | 605b6b54308bf752f968a4b148f08b4e98483210 | [] | no_license | alanrr33/tablonTrabajosDjango | 5954cb692ce6c50fd55f542e7d9f4d0413179e93 | 5e9be89f329911f8efa398cde597698dc8b5ffe3 | refs/heads/main | 2023-04-03T21:25:32.141486 | 2021-04-23T17:34:10 | 2021-04-23T17:34:10 | 360,956,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | from django import forms
from .models import Job,Application
class AddJobForm(forms.ModelForm):
#modificar opciones del form
class Meta:
model= Job
fields=['title','short_description','long_description','company_name','company_address','company_zipcode','company_place','company_country','compan... | [
"alanrr33@gmail.com"
] | alanrr33@gmail.com |
64a0e5f338a6de8f6c1df93824411ccbe8d8581d | d95409fcc56255d8855692326113fe117de1beb7 | /src/controllers/events.py | d5a9e153490ece9aa039b84f0e3ddd71c73990bd | [] | no_license | ymauray/hotshotpy | 2fa7370439d63fba3f320f8259ccfb43ac28cfa6 | 412e5ee114147deebd4dcaa92fd031a7d85dd88b | refs/heads/main | 2023-03-22T02:07:30.202964 | 2021-03-05T07:22:17 | 2021-03-05T07:22:17 | 342,718,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | import hotshotpy
from threading import current_thread
def get(query_string):
conn = hotshotpy.create_connection()
c = conn.cursor()
sql = """select current_event_id from params;"""
c.execute(sql)
rows = c.fetchall()
current_event_id = rows[0][0]
c.close()
c = conn.cursor()
sql = ... | [
"yannick.mauray@gmail.com"
] | yannick.mauray@gmail.com |
6c4341ff0a02d05d703a313b230f2b20432ee739 | 8e92bc6503aaf7b72befc629c35aa7a31163b950 | /Assignment 7.2.py | 7ae0c4a0783e5ecfa4de17fdcfb76c463d221748 | [] | no_license | dandeco/Python-Data-Structures_University-of-Michigan | c6d42b7f1af5519b3449762db90fee58df417b04 | 473e60f54131add80fcd719d0dbc9e3e873a09a8 | refs/heads/master | 2023-04-21T01:51:50.162717 | 2021-05-12T01:54:39 | 2021-05-12T01:54:39 | 364,479,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | #SPOILER ALERT - MY CODE WAS NOT ACCEPTED BY THE AUTOGRADER,
#AS IT GAVE A RESULT OF 0.07338518518519
#WHEN THE OUTPUT IS SUPPOSED TO BE 0.7507185185185187
# Use the file name mbox-short.txt as the file name
fname = input("Enter file name: ")
fh = open('mbox-short.txt', 'r')
count = 0
nottotal = 0
for line in fh:
... | [
"zackpol123@gmail.com"
] | zackpol123@gmail.com |
e0fce4003873a8670986d5c14802f144ef931dea | 84e715389e7197bbed9c59f72d4f22e2fdd77898 | /db_update.py | 5e8728cb21180699a7b18d1e4be975f5d1f281ab | [] | no_license | palexster/usn-search | 3d71b3221558c3683c89f03f8975333c24b48124 | 7254c565d60db23c1446747b8b727220855f45e3 | refs/heads/master | 2021-04-06T05:33:28.376314 | 2018-02-06T16:11:10 | 2018-02-06T16:11:10 | 124,539,738 | 1 | 0 | null | 2018-03-09T12:47:05 | 2018-03-09T12:47:05 | null | UTF-8 | Python | false | false | 3,236 | py | import re
import datetime
import requests
from pymongo import MongoClient
from bs4 import BeautifulSoup
from insert_mongo import store_cve
def verify_status(status):
if status == "released" or status == "ignored" or status == "not-affected" or status == "needed" or status == "ignored" or status == "needs-triage" ... | [
"noreply@github.com"
] | noreply@github.com |
de55aeff6d1ec0e012c0115d8ae17cb46f82f628 | 0ff389bf5ebd6f4b3a3269629f7be05b6a05bb64 | /core/domain/skill_fetchers_test.py | 7157cca1446a277c7f96c5e3e43ad22053b8e8e1 | [
"Apache-2.0"
] | permissive | hardikkat24/oppia | 24e2f7fb101c3fa2304b725b000286b7e583d9ae | c194b58bae8a1acdb6af1d123b0e1c9d7cca5fac | refs/heads/develop | 2023-07-18T00:50:28.439157 | 2021-07-25T10:07:35 | 2021-07-25T10:07:35 | 330,551,883 | 1 | 0 | Apache-2.0 | 2021-08-15T23:08:44 | 2021-01-18T04:14:16 | Python | UTF-8 | Python | false | false | 9,393 | py | # coding: utf-8
#
# Copyright 2018 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | [
"noreply@github.com"
] | noreply@github.com |
be9021cb1764a95862447e0983fdcff4264e2cde | 9aa44a8c5405e269fba97d9d63fbaadbe49ba73e | /Data preprocessing/dataset.py | b2a101a6acbb3bff119021361948c90c02d7e130 | [] | no_license | imrahul361/Machine-Learning-Algorithms-and-Templates-in-Python-and-R | 9de9c26df3b448dd48c7a2ba34c59345a0456671 | e9ef656f4e6ea37c51b4a513271e7b0306de1391 | refs/heads/master | 2020-07-07T02:52:32.078929 | 2019-10-27T11:20:01 | 2019-10-27T11:20:01 | 203,222,555 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 2 17:13:11 2019
@author: rey10
"""
#Importing the Libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
#Importing the dataset
dataset = pd.read_csv('Data.csv')
X = dataset.iloc[:, :-1].values
y = dataset.iloc[:, 3].va... | [
"imrahul3610@gmail.com"
] | imrahul3610@gmail.com |
9e6f62bedba6a56d1b1f15824a19730fab546a8c | 659d44eb7549cfa346a0224edc7559520d776529 | /InterpretPredictions.py | 475888022ecee26204ad43ccee84a9b503fe6943 | [] | no_license | willsmithorg/gridtools | 862db6a3573785128e7348dd1332b309fbb17cbb | cfe83b0a9b33992c68fd885ae10c5c954314c912 | refs/heads/master | 2023-04-18T19:38:34.536593 | 2021-05-03T00:57:48 | 2021-05-03T00:57:48 | 336,426,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,181 | py | import pandas as pd
import numpy as np
import logging
import warnings
# from xgboost import XGBRegressor
from Column import Column
from MakeNumericColumns import MakeNumericColumns
logging.basicConfig(level=logging.INFO, datefmt='%H:%M:%S', format='%(asctime)s.%(msecs)03d - %(filename)s:%(lineno)d - %(messag... | [
"will@willsmith.org"
] | will@willsmith.org |
cc7c313990a752b0eea8829bbf89e10a65814597 | 06671e14ae54f887be05a64c632712537d38add6 | /integration_distributed_training/config_files/helios/13_repeat20x031/config_00166.py | e23ff123e7c6311a920a8756d990f5e9c1cc62bb | [] | no_license | Jessilee/ImportanceSamplingSGD | cf74a220a55b468b72fed0538b3a6740f532fcb2 | 0831b9b1833726391a20594d2b2f64f80e1b8fe2 | refs/heads/master | 2021-01-24T10:12:48.285641 | 2016-02-05T19:25:34 | 2016-02-05T19:25:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,175 | py | import numpy as np
import os
def get_model_config():
model_config = {}
#Importance sampling or vanilla sgd.
model_config["importance_algorithm"] = "isgd"
#model_config["importance_algorithm"] = "sgd"
#Momentum rate, where 0.0 corresponds to not using momentum
model_config["momentum_rate"] = ... | [
"gyomalin@gmail.com"
] | gyomalin@gmail.com |
50cd5197dbde5407d096cd6bf38e891490a82a9c | fd2582f33b2be357f17bcdebb208c7756ff9199d | /djangosession/urls.py | 31225394e61473cd5f5577ea1bdf9ba7facdb042 | [] | no_license | gangadharsa/djangosession | 6ab4826d6183bbb3ded78bd88d111902f9c714d7 | c8e4563115e63663c4c618ce25b555d38ad83a9b | refs/heads/master | 2020-05-17T04:17:30.039012 | 2019-04-25T20:19:22 | 2019-04-25T20:19:22 | 183,504,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | """djangosession 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... | [
"gangadharsahoo1991@gmail.com"
] | gangadharsahoo1991@gmail.com |
7fe7c4b64ac62153c70d4b3d0855529bed47e511 | dc425d30f0e3230bb961383e7da9d3ee35b9b9a5 | /MatrixOperations.py | 09519d1f8ee944ddda468b35412e1a7f1621825e | [] | no_license | csujaan/Python-Programs | e9ac0ce797c67d4d6856c3a5aae05efe3dc41879 | a0c1a35bbc7ab83ec5f9d192d571d63161287801 | refs/heads/master | 2021-05-01T15:45:33.249797 | 2018-02-10T17:50:36 | 2018-02-10T17:50:36 | 121,037,642 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,997 | py | r1 = int(raw_input("\nEnter number of rows of matrix 1 : "))
c1 = int(raw_input("Enter number of columns of matrix 1 : "))
r2 = int(raw_input("\nEnter number of rows of matrix 2 : "))
c2 = int(raw_input("Enter number of columns of matrix 2 : "))
#______________________________
# creating matrices of size r*c
#------... | [
"noreply@github.com"
] | noreply@github.com |
9aeb54f76c07253c954009c25fbf4d01203fbe2b | 0e4be4f82ffcd8b74c5cae9a46642df1d798941c | /accounts/url_reset.py | be9173b84eda8c6fb007faaf59f1e33c0e154aac | [] | no_license | NinjaAiden/django-ecommerce | 796b9a2874ed033bd7fe32c387697e1ad52082f0 | a137be367e9cd4bfabf273f7a06a3827b70a50cc | refs/heads/master | 2022-11-27T13:10:28.608622 | 2019-07-10T10:29:55 | 2019-07-10T10:29:55 | 191,956,899 | 0 | 0 | null | 2022-11-22T02:09:53 | 2019-06-14T14:28:37 | Python | UTF-8 | Python | false | false | 684 | py | from django.conf.urls import url
from django.core.urlresolvers import reverse_lazy
from django.contrib.auth.views import password_reset, password_reset_done, password_reset_confirm, password_reset_complete
urlpatterns = [
url(r'^$', password_reset,
{'post_reset_redirect': reverse_lazy('password_reset_done')}, ... | [
"ubuntu@ip-172-31-35-128.ec2.internal"
] | ubuntu@ip-172-31-35-128.ec2.internal |
3e75ea7b2bf8866ced4df1f373e969df4f81413c | d86b618cad188ecb4ceb802249eaad3ac89b7b47 | /document_detection/hed/hed_train_data_generator.py | c438c3741bf1c1c9f95d0fbbdf4a273cf6148636 | [] | no_license | victoriest/deep-learning-playgroud | 3779ea8998d3aefcba9f854ec324a28379e56c02 | c4062fb1464d3fbaab837c9531a48cd83f4eb9e5 | refs/heads/master | 2022-12-04T13:43:24.794098 | 2021-01-26T01:50:07 | 2021-01-26T01:50:07 | 186,946,627 | 5 | 0 | null | 2022-11-21T21:07:28 | 2019-05-16T03:46:36 | Jupyter Notebook | UTF-8 | Python | false | false | 6,984 | py | """
通过文档图片, 以及背景图片, 生成含有文档元素的场景图片作为训练数据
"""
import os
import random
import shutil
import string
import cv2
import numpy as np
def make_image_height_greater_than_width(img_path):
g = os.walk(img_path)
for path, dir_list, file_list in g:
for file_name in file_list:
d = os.path.join(path, fi... | [
""
] | |
bc283233d13a00a77775533d8a86173d369ae022 | 2cb0e0322c28b0558e25c6db9c2e9dbd23c42ab6 | /dnsmanage/app/analysis_file.py | 7d47d0296428cf08afad63a8dc337480b6939aca | [] | no_license | laura5102/sexop | 6fabe304e3454a640ead812001adf933e8b16448 | 9b7b1115fef0469525e5f65ce29ca0fa2e3cf759 | refs/heads/master | 2021-01-21T11:11:01.883064 | 2017-04-01T06:57:30 | 2017-04-01T06:57:30 | 83,531,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | from django.template import Template, Context
from django.http import HttpResponse
def analysis_file(request):
fp = open('F:/PycharmProjects/dnsmanage/templates/server_manage.html')
t = Template(fp.read())
fp.close()
html = t.render(Context({'user': 'John Smith',
'worker_pr... | [
"liulei@secoo.com"
] | liulei@secoo.com |
9ef493a2809ddfbd28285207b15e4a5638286568 | 7af81a5479e1a14546268c3470e7f270b8ebe709 | /sciki_learn/FeatureSelection.py | 724d457ec926514d552bad95a4af6623a5fe1d21 | [] | no_license | AP1003624/TianChiBigData | 4be0092bd5540060d743aaa2e1e182afd57a4e98 | 38167e97fe33dbdf9cc3e4d15d566ad69494593c | refs/heads/master | 2016-09-14T01:34:57.069171 | 2016-04-27T10:03:30 | 2016-04-27T10:03:30 | 57,135,192 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | # coding=utf8
# Create by 吴俊 on 2016/4/4
import urllib
import numpy as np
# Data Loading
url = "http://archive.ics.uci.edu/ml/machine-learning-databases/pima-indians-diabetes/pima-indians-diabetes.data"
raw_data = urllib.urlopen(url=url)
dataset = np.loadtxt(raw_data,delimiter=',')
X = dataset[:,0:7]
y = dataset[:,8]
... | [
"646706230@qq.com"
] | 646706230@qq.com |
91894a16131a27036b025a3bc5d448ed6f8bea85 | e5c53d23f2a9e86cfd47b7da4e1ae47e3e68ff98 | /ngcc_full_assemble.py | d538e56f71e43b5b2c5f94efa3aa2d22665776aa | [] | no_license | ndricke/CRT | 4271d19fd76e90dab194e8c930c55b2f28c3322d | ff50a332f56ee1ced344888f71ea1e8f12b6ffe8 | refs/heads/master | 2021-07-23T04:00:10.730331 | 2021-07-05T23:02:35 | 2021-07-05T23:02:35 | 166,302,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,512 | py | import sys
import pandas as pd
import numpy as np
import re
import CatO2Df
indir = "~/work/CRT/autoq/"
df_m = pd.read_csv(indir+"mepyr1_assembled.csv")
df_tr = pd.read_csv(indir+"tetrid1_assembled.csv")
df_ty = pd.read_csv(indir+"tetry1_assembled.csv")
df_etr = pd.read_csv(indir+"order_tetridEnum_assembled.csv")
df_e... | [
"nathan.d.ricke@gmail.com"
] | nathan.d.ricke@gmail.com |
c03f696a49956f662cb99f55e7689b448d0c43ae | 61b409a6668aeaf6992bfee54ac00b731026e84a | /yunda_admin/migrations/0003_auto_20151011_1834.py | 463790b2c3ece4e45700746bbfd9147e17a8ed37 | [] | no_license | chuan137/yunda | 969be0639b8a95b12aa2644f3f8fbc9b88bab2dc | 31fb48fe05887668207b509f628e644b2ed7ad43 | refs/heads/master | 2021-01-20T20:14:23.483513 | 2016-07-27T22:14:08 | 2016-07-27T22:14:08 | 64,133,344 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
class Migration(migrations.Migration):
dependencies = [
('yunda_admin', '0002_auto_20150330_2055'),
]
operations = [
migrations.AlterField(
model_name='de... | [
"root@ip-172-31-27-95.eu-central-1.compute.internal"
] | root@ip-172-31-27-95.eu-central-1.compute.internal |
d0240796168ac702939291c06a92514c321338ca | ed89770be8e0234b838dcc341111a3050a7d6f42 | /fileq.py | a5133aba37cdaf6308d2218bea4a636f51858274 | [] | no_license | Nishant0210/fastApi-demo | 0ddb05c0cffce3463987fd4433d42f5ef76709be | 73f3e88595097ac2741b53332cd7a1a590aa0e1a | refs/heads/master | 2023-08-29T12:03:50.347580 | 2021-10-28T11:13:05 | 2021-10-28T11:13:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | def sum(a,b):
c = a+b
return {
"ans":c
}
| [
"57897383+Nishant0210@users.noreply.github.com"
] | 57897383+Nishant0210@users.noreply.github.com |
73ee4399e91893c19eeda6ced4e9abc9adf5fb3e | 000a37a38588b86612d34af9a203d224aad92dc5 | /src/plotting/plotMutualInfo_alongEpoch.py | ed8feb01a89da461734924797682e694b9f0e674 | [] | no_license | arayabrain/multi-modal-integration | c88beb2f0f99f385b35bc10983aa5c60ff935f6a | 8f90634494c3e684e06bddfa963d266972298693 | refs/heads/master | 2021-04-03T07:47:15.825146 | 2018-03-29T07:46:47 | 2018-03-29T07:46:47 | 124,494,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,245 | py | import pylab as plt
import numpy as np
import pickle
itrList = [0,1000,2000,3000,4000,5000];
lineType = [':','-.','--','-'];
for i in range(4):
pkl_file = open('data/mutualInfo_bin20_l'+str(i+1)+'_alongEpochs.pkl', 'rb')
data = pickle.load(pkl_file)
pkl_file.close();
IV = dat... | [
"aki.hero.ox@gmail.com"
] | aki.hero.ox@gmail.com |
bca8f5be65fd0c50e8e256d6f394c6d8aad0c6b9 | 7b9551100d42c6e97bf0ca98e972c255b2db5d99 | /thirdparty/phonenumbers/__init__.py | f98713a777e33d54dd61e5d4006884ab3ddfc7c2 | [] | no_license | xealot/vocalbroker | ae787da5ab8e3c120a41761e83d3c80a502dffbb | ad906392bbc57f5684f9609736ea38c21c2af6e1 | refs/heads/master | 2016-09-06T17:13:34.191127 | 2012-03-06T03:21:31 | 2012-03-06T03:21:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,382 | py | """Python phone number parsing and formatting library
Examples of use:
>>> import phonenumbers
>>> x = phonenumbers.parse("+442083661177", None)
>>> print x
Country Code: 44 National Number: 2083661177 Leading Zero: False
>>> type(x)
<class 'phonenumbers.phonenumber.PhoneNumber'>
>>> str(phonenumbers.format_number(x,... | [
"trey@ktrl.com"
] | trey@ktrl.com |
c01dc4f7c6ff37261a76993ea66294d68c5a26c6 | 60b7afe8d8f7e5663005e336ed6a7f5179a8b71a | /venv/bin/pip | b8abd8533446581f7c338fdc2681655eb20d0a30 | [] | no_license | Shristi19/LeetCode-30-Day-Challenge | bb70cb727298230e6686814e2ed9b94628fe878b | faa870a6fcf7d12eebd72363d7862d005e3ac095 | refs/heads/master | 2021-05-23T18:50:42.986456 | 2020-04-07T13:28:11 | 2020-04-07T13:28:11 | 253,424,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | #!/Users/shristijalan/PycharmProjects/LeetCode/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])... | [
"shristijalan@Shristis-MacBook-Air.local"
] | shristijalan@Shristis-MacBook-Air.local | |
3f581ac057c150a970aa9fb97e40dc6307aae90d | 56f2f420e6a492a5c0506f9dd763cc06f3d5e3ee | /cifar_mlp.py | 62606a28dde7e8adf531e310789587eafc92839f | [] | no_license | xiaohuji/image_semantic_analysis | 4ca5778b4f44fd91663a8e4bd923f128772675f0 | e35074fd4468c6dd7a2d76ce03eac48a4ecf992e | refs/heads/master | 2023-05-29T19:55:46.208868 | 2021-06-10T01:32:59 | 2021-06-10T01:32:59 | 356,190,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,632 | py | import time
import torch
import torch.nn as nn
import numpy as np
import torch.optim as optim
import torchvision
import torch.utils.data
from sklearn.neural_network import MLPClassifier
from sklearn.model_selection import GridSearchCV
from torch.autograd import Variable
from torchvision.transforms import transforms
d... | [
"767297037@qq.com"
] | 767297037@qq.com |
78cd2f33390faf608322f0ed7af9416a3db032e6 | ee1db6398a73882e750c86257b43390c5ec2a654 | /fpm/test_sample/__main__.py | 88d1cb6ff7d27bb7bcff44f25b9f0bd0d15376b0 | [
"MIT"
] | permissive | gscigala/packet-generation | c795131e202e59d16fc99eca61008b850df9c6c5 | 137b2853e57756a9ade1af2e95c8b2839f401121 | refs/heads/master | 2021-01-23T03:12:48.984559 | 2017-04-04T13:50:46 | 2017-04-04T13:50:46 | 86,057,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | import argparse
import logging
import logging.config
from pkg_resources import resource_filename
import gi
from gi.repository import GLib
from pipeline import Pipeline
LOG_CONFIG_PATH = resource_filename(__name__, "/data/logging.conf")
def main():
# Load logger
logging.config.fileConfig(LOG_CONFIG_PATH)
... | [
"guillaume.scigala@smile.fr"
] | guillaume.scigala@smile.fr |
79ae6089ad6be6b58d2ffa5c5819cdeffca5037a | 5d6a464bcf381a44588d6a0a475f666bdc8b5f05 | /unittests/namespace_matcher_tester.py | a517fd7da3b64b22821666f82bf8e3b8183eb0f0 | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | iMichka/pygccxml | d4f2ac032a742f1cd9c73876f6ba6a85d2047837 | f872d056f477ed2438cd22b422d60dc924469805 | refs/heads/develop | 2023-08-05T04:35:32.774634 | 2017-01-10T06:04:17 | 2017-01-10T06:04:17 | 45,710,813 | 0 | 2 | BSL-1.0 | 2023-08-20T21:02:24 | 2015-11-06T22:14:37 | Python | UTF-8 | Python | false | false | 2,084 | py | # Copyright 2014-2017 Insight Software Consortium.
# Copyright 2004-2009 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0.
# See http://www.boost.org/LICENSE_1_0.txt
import unittest
import parser_test_case
from pygccxml import parser
from pygccxml import declarations
class Test(parser_tes... | [
"michkapopoff@gmail.com"
] | michkapopoff@gmail.com |
9afb84441cfdc98e6e22eebbaedb05932c2885a7 | d2e3a98b715f96ea47b38530060ee045e874ce84 | /networks.py | 36a86196f6529f9b1bbbb92d9cc77f1a2f992593 | [] | no_license | iiakash/semi_supervised_classification | 16d70bfedd0cf645ce3f58db20f4c5c073996abd | da966353579e2658326366e0b40b1d1329dc1c8b | refs/heads/master | 2023-01-05T04:30:24.743805 | 2020-11-06T00:36:11 | 2020-11-06T00:36:11 | 272,254,209 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,455 | py | import torch
import torch.nn as nn
import copy
class CAE_3_bn(nn.Module):
def __init__(self, input_channels, out_channels, kernel_size, leaky = True, out_padding = False):
super(CAE_3_bn, self).__init__()
self.input_channels = input_channels
self.out_channels = out_channels
sel... | [
"noreply@github.com"
] | noreply@github.com |
6c174fd36109a273b4b2fe7880cdd02d3fcaa1c2 | 9fff2942787f57b66c90187c0d9c5fc8eec86a06 | /libs/images.py | cf513a1d4047441598ce3d7fd2fe2c22726a10a2 | [] | no_license | huhuqianyun/FreeTime | 310e2101b4e97a3b16587147e7932cd3deecd035 | b3fb99c940b92f70f7c54593405639c36bc97243 | refs/heads/master | 2020-07-20T18:49:09.783128 | 2019-10-05T07:49:31 | 2019-10-05T07:49:31 | 206,694,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from PIL import Image
# 生成path图像的缩略图
def make_thumb(path, size):
pixbuf = Image.open(path)
width, height = pixbuf.size
if width > size:
delta = width / size
height = int(height / delta)
pixbuf.thumbnail((size, height), Image.ANTIALIAS)
return pixbuf
| [
"1805203675@qq.com"
] | 1805203675@qq.com |
191b568b9e8adf1a28e2e7a59bdf26c8961b1746 | 42a6b017c1af312b291842dea4904aebb33252d3 | /Python/findSqrt.py | a08b933a09f61d838c26fec8c1f2a54c2eda8e74 | [] | no_license | musbel/Snippets | 20c733780203c3eb12e383280991877780dbe094 | 0b87dba20944f8840de6e3d847a8b517c3e5b057 | refs/heads/master | 2021-01-01T19:19:21.890535 | 2017-06-12T20:44:15 | 2017-06-12T20:44:15 | 29,825,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py |
def findSqrt(n):
eps = 10^-14
x = n; # Initial guess
for i in range(100):
z = n / x
if abs(x - z) < eps:
break
x = 0.5 * (x + z)
return x
if __name__ == "__main__":
print findSqrt(9)
| [
"musbel@gmail.com"
] | musbel@gmail.com |
e801fb21a2f964da0d8bbefd7ceadbdf62432240 | 846591b48ae482df21140fedf16e436158dda585 | /WindModel.py | fe4addacec518f936971cca1d3fca9bfd8003d34 | [] | no_license | Buziwe/AppDev-Summative-Assignment | 65074240324de941ec99a65d265b108283c7705d | cad5760389451e56403b3c566ab4506e8aad1209 | refs/heads/master | 2022-12-22T20:02:44.272498 | 2020-09-27T10:06:27 | 2020-09-27T10:06:27 | 298,809,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,886 | py | import json
import urllib.request, urllib.parse, urllib.error
import pandas as pd
import numpy as np
import pickle
from sklearn import metrics
from sklearn import linear_model
from sklearn import preprocessing
from sklearn.model_selection import train_test_split
import warnings
warnings.filterwarnings('ignore')
imp... | [
"61239896+Buziwe@users.noreply.github.com"
] | 61239896+Buziwe@users.noreply.github.com |
6d53bd2ad8620c52fba55ab8bda20744ee97b8a0 | dbe1f4110921a08cb13e22ea325d503bd5627195 | /chuhuo_2.7_clickhouse/bluedon/bdwafd/newscantools/plugins/Phpcms_post_clickSqlInjectionScript.py | 1001b1ccc85c453fcecb86d7c9553f38992ae182 | [] | no_license | Hehouhua/waf_branches | 92dc1b1cbecba20f24ef6c7372dde7caa43f9158 | ca76f3a1ed8150b423474c9e37aee37841a5ee35 | refs/heads/main | 2023-01-07T11:33:31.667688 | 2020-11-03T06:58:33 | 2020-11-03T06:58:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,626 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from lib.common import *
def run_domain(http,ob):
list = []
try:
domain = ob['domain']
detail = u''
url = "%s://%s%s" % (ob['scheme'],ob['domain'],ob['base_path'])
expurl="%s%s"%(url,"index.php?m=poster&c=index&a=poster_click&sitesp... | [
"hanson_wong@qq.com"
] | hanson_wong@qq.com |
3148dbe87159b49706db261924a5808aea215be9 | 6805008e2ec86649bfcf69916375a969fd17c7b3 | /.github/workflows/Abu.py | 04ea2c2e22bc01c51192810afb6d6a6c886c1874 | [] | no_license | Abu213/abu | c23a2b17b892372462dd46996352bbc794ba5433 | 8d0b25555ff963f318d2d234b294d812ef100fb8 | refs/heads/master | 2022-12-13T17:02:22.019464 | 2020-08-30T06:56:09 | 2020-08-30T06:56:09 | 291,415,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,712 | py | # Compiled By : AbuBaker
# GitHub : https://github.com/AbuBaker
# YouTube Channel : Abu Baker
import marshal,zlib,base64
exec(marshal.loads(zlib.decompress(base64.b64decode("eJztWVtvW8cR3kNJlERJ1sW2ZNmufZzEipxEvEmULDtKqosvQmxJpiQrpSAQhzxL8lDnQp1dWpJrFyjcvjepk5cG7UNeAgRNUvQlRYH+kgIF3KeiL/0H6czsOSRlKUnThz6Vl+XsZXZnZ+ebmT... | [
"noreply@github.com"
] | noreply@github.com |
b8d70c7e1d89cf7954f4409f200d302c1c6ad52d | d0f965bea168e80870bd5ad02ccc7a6538a8a327 | /networks/diff_flow.py | 5257b70d666b70ee1f261d433045d20daa808a07 | [] | no_license | cenkbircanoglu/DiffFlow | 4897d4f2e31a86fce2035040aaf4e1cf5d21f649 | 62200f0e1089c97e16e7fc38cf3db2526bfeae11 | refs/heads/master | 2023-08-15T23:14:39.206327 | 2021-10-15T02:25:51 | 2021-10-15T02:25:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | from utils.sdefunction import SdeF
from .base_model import BaseModel
__all__ = ["DiffFlow", "QuickDiffFlow"]
# pylint: disable=too-many-arguments, arguments-differ
class DiffFlow(BaseModel):
def __init__(
self, data_shape, timestamp, diffusion, condition, drift_net, score_net
):
super().__ini... | [
"zqsh19970218@gmail.com"
] | zqsh19970218@gmail.com |
0c2d08e7c38473e487ebea5aaafa78bd27b2e4d2 | 56602773815ce44cef2df6184b10e63488787882 | /Perfil_Modulo.py | 0ee1f85913745f5bf18ec9dbd97f7f42e03b0b58 | [] | no_license | JonatasHdS/Squad-D-Coleta-Instagram | 6dd9ef9f8bed54e8f113d96b8d21ddab932198c3 | dcdcde0e5f89494243da7ba534334375b0fd8532 | refs/heads/master | 2022-12-28T18:19:23.150055 | 2020-10-18T15:51:18 | 2020-10-18T15:51:18 | 292,061,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,312 | py | import instaloader, time, datetime, csv, re
import datetime, Subtarefas_Modulo
# Função que busca se os comentários do post analisado contém alguma das palavras-chaves relacionadas ao covid
def comentario_relacionado(comments):
corona_list = ["coron", "covid", "quarentena", "homeoffice", "pandemia"]
for commen... | [
"61765878+JonatasHdS@users.noreply.github.com"
] | 61765878+JonatasHdS@users.noreply.github.com |
8c9cac2973d6978608f4768621bb61a098589c65 | 8316b326d035266d41875a72defdf7e958717d0a | /Regression/Poly_linear_regression_boston_house_predict.py | 465a1cccc33d4b05fe7f9a57daa1fb6da7a7de61 | [] | no_license | MrFiona/MachineLearning | 617387592b51f38e59de64c090f943ecee48bf1a | 7cb49b8d86abfda3bd8b4b187ce03faa69e6302d | refs/heads/master | 2021-05-06T17:18:49.864855 | 2018-01-24T15:29:36 | 2018-01-24T15:29:36 | 111,804,323 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,783 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Time : 2017-11-28 15:22
# Author : MrFiona
# File : Poly_linear_regression_boston_house_predict.py
# Software: PyCharm Community Edition
import warnings
import numpy as np
import pandas as pd
import matplotlib as mpl
import matplotlib.pyplot as plt
from sklearn i... | [
"1160177283@qq.com"
] | 1160177283@qq.com |
ec7ef7eced1a834945a207197484f10120845033 | 61b94f39ae02818f1cf8a37e6488839f265074ea | /auth/views.py | b2c78fd9d79995f45da0339b3e027899527bdba6 | [] | no_license | chapagainmanoj/todo | 2a2a2f9cba12ecde5f01a225f5bb7f7eec6370a0 | 2b4241e9043d703f90aceee73d4aeaad53520a43 | refs/heads/master | 2023-02-09T13:45:50.196025 | 2021-01-07T09:12:51 | 2021-01-07T09:12:51 | 326,952,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | from starlette.responses import PlainTextResponse
from starlette.endpoints import HTTPEndpoint
class Homepage(HTTPEndpoint):
async def get(self, request):
if request.user.is_authenticated:
return PlainTextResponse('Todo! ' + request.user.display_name)
return PlainTextResponse('Todo!')
| [
"chapagainmanoj35@gmail.com"
] | chapagainmanoj35@gmail.com |
c361d0158e68057e3da329065870caacc57e0aac | b334faaf0a9625c1e10a6c7b5ca7c5698515176c | /dlgo/agent/base.py | 2a4508c919795fe71d939a5988792a5d61841e21 | [] | no_license | davearch/Deep-Learning-Go-Bot | cccf60d602dd7a46d667d2cb4d428abc24de1022 | e785d48c21ce9b038551915820f5412afbf23b69 | refs/heads/master | 2023-02-05T03:38:20.986619 | 2020-12-31T10:10:12 | 2020-12-31T10:10:12 | 325,771,730 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | class Agent:
def __init__(self):
pass
def select_move(self, game_state):
raise NotImplementedError() | [
"darchuletajr@gmail.com"
] | darchuletajr@gmail.com |
76211858ab6a708b317c5f35feab4b6549499e56 | 856199f56be68ca90566cd96e5bbe753b4d6c652 | /scqubits/settings.py | bcb6de6e933bb2dc0ff13ce0808329e132bdd0ba | [
"BSD-3-Clause"
] | permissive | kaiterm/scqubits | 7a94054599200dc73f35ba3d8a15ec9a92dec311 | 8bcca2401760231e2fdd4268239332712310d47d | refs/heads/master | 2022-11-20T01:02:52.620136 | 2020-07-24T20:11:15 | 2020-07-24T20:11:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,355 | py | """
scqubits: superconducting qubits in Python
===========================================
[J. Koch](https://github.com/jkochNU), [P. Groszkowski](https://github.com/petergthatsme)
scqubits is an open-source Python library for simulating superconducting qubits. It is meant to give the user
a convenient way to obtain ... | [
"jens-koch@northwestern.edu"
] | jens-koch@northwestern.edu |
03d62954d12744b87d777ac72a2a8132cb557051 | f31cca99d55823f14506c686177baab9fa0a95dc | /social computing/udacity-cs253-master/UNIT 4/hw-shanky/blog.py | 9f4668ac00cbc37ea8aa94aea0fdef6c29f1470f | [] | no_license | Bhavana1801/Studious-eureka | 4edc69fd668f412f834e18c8dfd695d11a125408 | 195acbddba795d56a1d004f1fc9a380f15bc4004 | refs/heads/master | 2021-01-19T06:36:32.593208 | 2016-08-19T05:28:05 | 2016-08-19T05:28:05 | 59,879,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,027 | py | import os
import re
import random
import hashlib
import hmac
from string import letters
import webapp2
import jinja2
from google.appengine.ext import db
template_dir = os.path.join(os.path.dirname(__file__), 'templates')
jinja_env = jinja2.Environment(loader = jinja2.FileSystemLoader(template_dir),
... | [
"bhavana.manchana@gmail.com"
] | bhavana.manchana@gmail.com |
9e996135c634f8b8973b7bed6a59fa85b5114b64 | 51179de1086d67af16b58d48068822f3534e609b | /vrtkvm/interface.py | 35ba9eebad903d4a2af0f6092dc0860faf5f06d9 | [] | no_license | bad-youngster/webkvm-1 | ffa7d16c9d767a64c064ca3c7541ec3f75669026 | f0ac3308c2ab6cb5a481dac8ae4a1a0e0432d1c4 | refs/heads/master | 2020-04-11T21:59:45.215288 | 2018-12-18T11:29:02 | 2018-12-18T11:29:02 | 162,122,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,580 | py | from vrtkvm import util
from vrtkvm.connection import WvmConnect
from libvirt import VIR_INTERFACE_XML_INACTIVE
class WvmInterfaces(WvmConnect):
def get_iface_info(self, name):
iface = self.get_iface(name)
xml = iface.XMLDesc(0)
mac = iface.MACString()
itype = util.get_xml_path(xml... | [
"should829@gmail.com"
] | should829@gmail.com |
a8b8512e6ea0ec586187bd2802066aaa9f29d45c | 739ae207b26081d9a6f2981dfc7215ffcfa88ed8 | /Aula_7.py | eb7ff00d600b8bffe821273f09c133f9c3f7b46a | [] | no_license | NicolasGoes/3-Link---8-videos-aulas- | f8132f41ec434b6ed4497aaec757277c0dc77ece | 1a01fba0503a917dad5d017a8faaeb60f7ad91f6 | refs/heads/master | 2022-04-25T00:26:23.676412 | 2020-04-26T06:15:15 | 2020-04-26T06:15:15 | 258,954,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | import tensorflow as tf
import numpy as np
dados_x = np.random.randn(4,8) # cria matriz de 4 linhas e 8 colunas com números aleatórios
dados_w = np.random.randn(8,2) # cria matriz de 8 linhas e 2 colunas com números aleatórios
b = tf.random_normal((4,2),0,1) # cria matriz (tensor) de 4 linhas e 2 colunas com nú... | [
"noreply@github.com"
] | noreply@github.com |
4c689ed8b9f67eb07534fa41d34cc7137c3f53b0 | fa80812c753c81dd76a7cf5343296b465efd1922 | /rate_a_car_app/tests/utils.py | e6a140c7f29829cbaa513062852a56222f29721f | [] | no_license | wojlas/Rate-a-car | a08d60d78530a5b3940872c191469dd571cbf4df | e37becaa5fe7d4d7f8868b3473d6b5e2e3e4a7d3 | refs/heads/main | 2023-08-05T09:48:36.843801 | 2021-10-01T12:44:19 | 2021-10-01T12:44:19 | 395,976,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,646 | py | from PIL import Image
from django.contrib.auth.models import User
from faker import Faker
import io
from rate_a_car_app.models import CarModel, Brand, Images
faker = Faker("pl_PL")
def fake_user():
d = faker.simple_profile()
return {'username': d['username'],
'password': faker.name(),
... | [
"wojlas93@gmail.com"
] | wojlas93@gmail.com |
37368cb571c1ae51acfd9efc23f61a86256180a5 | b7a78ea841b307844acf3d240465056319cf4a84 | /ejercicio2.py | 988bfb9023df8d7d40bf7f0fabddbbf27c0daab1 | [] | no_license | victorgld02/ejerciciospython | 4ac831fdfd535a767f732692e54c626e0a3e40ad | f6efee10c32c589163781fc17875fcc8fa21c82f | refs/heads/master | 2022-05-24T02:40:32.699375 | 2020-04-30T15:10:23 | 2020-04-30T15:10:23 | 260,244,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | print ("BIENVENIDO A EMPAREJANDO.COM")
nombre= input("Tu nombre:")
ano= int(input( "¿Año de nacimiento?" ))
tegusta= input("¿Te gusta taburete?")
edad = 2020 - ano
print ("hola", nombre, ". Si no me equivoco tienes", edad, "años.")
if tegusta == "si" or tegusta == "Si":
print('OK Boomer, lo tuyo va a ser un cas... | [
"victorgld02@gmail.com"
] | victorgld02@gmail.com |
f934c461efd1172ea7582599d83aca716921c911 | dc15c0e28e65c4978bd260bdbe1f562462c12e45 | /test.py | 59e3b1d1d0d89f7a2ac6c65ccb77c00954375743 | [] | no_license | gaybro8777/PMTools | c91ad1e68ff9d9a64da22b1cc2e9e469f0a88dad | c4771b8946373a5b48db7fa00c999c2eac48c885 | refs/heads/master | 2023-07-23T03:06:19.351132 | 2018-05-23T00:54:49 | 2018-05-23T00:54:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | def _getOutNeighbors(g, node):
return [e.target for e in g.es[g.incident(node,mode="OUT")]]
def _countPaths(g, startName, endName, k):
#mark all the nodes per number of times traversed (max of k)
g.vs["pathCountHits"] = 0
#get start node
startNode = g.vs.find(name=startName)
#get immediate out-edge neighbors of ... | [
"jesse_waite@hotmail.com"
] | jesse_waite@hotmail.com |
db8694ebf7d5685301e2ad916517b43690b7ac20 | e2e08d7c97398a42e6554f913ee27340226994d9 | /pyautoTest-master(ICF-7.5.0)/test_case/scg/scg_LOG/test_c142881.py | 017398d281b068be2333be366936895d37d5e8d4 | [] | no_license | lizhuoya1111/Automated_testing_practice | 88e7be512e831d279324ad710946232377fb4c01 | b3a532d33ddeb8d01fff315bcd59b451befdef23 | refs/heads/master | 2022-12-04T08:19:29.806445 | 2020-08-14T03:51:20 | 2020-08-14T03:51:20 | 287,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,288 | py | import pytest
import time
import sys
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))
from page_obj.scg.scg_def_physical_interface import *
from page_obj.scg.scg_def_vlan_interface import *
from page_obj.scg.scg_def_bridge import *
from page_obj.common.rail import *
... | [
"15501866985@163.com"
] | 15501866985@163.com |
11774cab8ab8b849d8287ce7a299505e8750722b | 555377aa073d24896d43d6d20d8f9f588d6c36b8 | /paleomix/common/bamfiles.py | 4b3c6c6f539923c279d04dea982a2307263c0bee | [
"MIT"
] | permissive | jfy133/paleomix | 0688916c21051bb02b263e983d9b9efbe5af5215 | f7f687f6f69b2faedd247a1d289d28657710a8c2 | refs/heads/master | 2022-11-10T18:37:02.178614 | 2020-06-14T12:24:09 | 2020-06-14T12:24:09 | 270,936,768 | 0 | 0 | MIT | 2020-06-09T07:46:19 | 2020-06-09T07:46:18 | null | UTF-8 | Python | false | false | 4,837 | py | #!/usr/bin/python
#
# Copyright (c) 2012 Mikkel Schubert <MikkelSch@gmail.com>
#
# 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
#... | [
"MikkelSch@gmail.com"
] | MikkelSch@gmail.com |
b865747d25a963ea30d051c763b151966b68b592 | 667f153e47aec4ea345ea87591bc4f5d305b10bf | /Solutions/Ch1Ex032.py | 146193ba642a281f4a5d647a77ffee5e055d6028 | [] | no_license | Parshwa-P3/ThePythonWorkbook-Solutions | feb498783d05d0b4e5cbc6cd5961dd1e611f5f52 | 5694cb52e9e9eac2ab14b1a3dcb462cff8501393 | refs/heads/master | 2022-11-15T20:18:53.427665 | 2020-06-28T21:50:48 | 2020-06-28T21:50:48 | 275,670,813 | 1 | 0 | null | 2020-06-28T21:50:49 | 2020-06-28T21:26:01 | Python | UTF-8 | Python | false | false | 489 | py | # Ch1Ex032.py
# Author: Parshwa Patil
# ThePythonWorkbook Solutions
# Exercise No. 32
# Title: Sort three numbers
def main():
print("Enter numbers: ")
numbers = list(map(int, input().strip().split()))
for i in range(len(numbers) - 1):
for j in range(1, len(numbers)):
if numbers[j - 1] > numbers[j]... | [
"noreply@github.com"
] | noreply@github.com |
45366820b93539dfbb54537e7edb9c697a3fb407 | 53f5ed008da6c9232fa5036e1906846d38869720 | /Django/learning_site/learning_site/wsgi.py | 9b4a5cf76dfae40651e11efdc7be32625931bfd3 | [] | no_license | eusouocristian/learning_python | e3c1cf099f5a8d1489b8166ac8b9f44a423a2ba0 | b150ad6dee566c56c2f35dd099a1b3ea27704475 | refs/heads/master | 2023-04-27T22:22:13.196823 | 2022-11-24T15:40:27 | 2022-11-24T15:40:27 | 172,799,546 | 1 | 0 | null | 2023-04-21T20:55:42 | 2019-02-26T22:17:56 | HTML | UTF-8 | Python | false | false | 403 | py | """
WSGI config for learning_site 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... | [
"eusouocristian@hotmail.com"
] | eusouocristian@hotmail.com |
5b280285f27573c959aee08c238f3f1b99495f48 | c02b98e6d83d22aa16dc494cb8cc537191dccd8e | /main/animation.py | 2b6854b7fb0d5e4c9caee39c302d1493ad818712 | [] | no_license | Reepca/jcpeter-game | 798d2a09cd227745046f55eac2914de8d8599d60 | 840fd926de74f0e128fd7f17fb1af1bac29145e5 | refs/heads/master | 2021-01-09T06:19:52.338233 | 2017-11-07T16:59:50 | 2017-11-07T16:59:50 | 80,957,530 | 0 | 1 | null | 2017-11-07T05:57:20 | 2017-02-05T00:09:53 | Python | UTF-8 | Python | false | false | 1,536 | py |
# This class is based heavily off of the example at
# https://processing.org/examples/animatedsprite.html
class Animation(object):
def __init__(self, prefix, type, numFrames, displayRate=30):
self.prefix = prefix
self.type = type
self.numFrames = numFrames
self.displayRate = di... | [
"jristvedt@gmail.com"
] | jristvedt@gmail.com |
92ffd6bc7322742b3d8da89f9f43fec5692453de | 4554fcb85e4c8c33a5b5e68ab9f16c580afcab41 | /projecteuler/test_xiaobai_17.py | d9b6678e2bc92bba87fc83a8f6d9bb16ee3c82a9 | [] | no_license | xshen1122/Follow_Huang_Python | 12f4cebd8ddbc241a1c32cfa16288f059b530557 | fcea6d1361aa768fb286e1ef4a22d5c4d0026667 | refs/heads/master | 2021-01-01T04:37:31.081142 | 2017-12-05T07:31:34 | 2017-12-05T07:31:34 | 97,211,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,630 | py | # test_xiaobai_17.py
# coding: utf-8
'''
If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total.
If all the numbers from 1 to 1000 (one thousand) inclusive were written out in words, how many letters would be used?
'''
def getLetter(... | [
"xueqin.shen@outlook.com"
] | xueqin.shen@outlook.com |
a750bf674ac95fff0489fc65f47ad53a1b8c5bf9 | f48ff7f1372c68330d5e2809eef37613b870e565 | /douban2/pipelines.py | 819dbdde62a9b1cfbf06770e001b362551acfc9c | [] | no_license | Cg110778/douban- | 645033c1090986691e4c66ca533a60e104a89902 | 0bba585b98f7cdbcf52e1d54d9651c55e51c124d | refs/heads/master | 2020-03-27T20:11:19.397265 | 2018-10-05T11:15:08 | 2018-10-05T11:15:08 | 147,046,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,433 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import pymongo
from douban2.items import *
class MongoPipeline(object):
def __init__(self, mongo_uri, mongo_db):
s... | [
"18336962196@163.com"
] | 18336962196@163.com |
348d20f2b5b85a9ad4cb90820aff6d3f9abacd92 | 49f64ff72edb4ab098eccb1893d850d56ae9f41a | /wizard/__init__.py | c5f7f3878b8e0e48922703ba6209ac28556df37c | [] | no_license | gosyspro/zh_mrp | e5dc44e20a7d9a324cdcf96a89a0f62239b725f2 | 9e834d4ccc332515bdacbda9b0c56c5e49f0d8bf | refs/heads/master | 2020-04-23T22:05:24.685690 | 2019-02-19T14:59:42 | 2019-02-19T14:59:42 | 171,490,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | # -*- coding: utf-8 -*-
import zh_mrp_wizard | [
"noreply@github.com"
] | noreply@github.com |
918b130ca63ba126b6cb2012931943d50b57d588 | 5a660b94f7fe42659177d8e52447db7593a87c53 | /blog/blog/settings.py | 4891098cc3504ba33317948ca94e539de6f18b07 | [
"MIT"
] | permissive | Gorun-he/blog | 485643f5d6a9cf895ceadd76af58c52dbb90a664 | 98b86dfaaadc58290e9e37f3e345ac945a6ad1b7 | refs/heads/main | 2023-07-29T19:27:21.968771 | 2021-09-03T02:06:44 | 2021-09-03T02:06:44 | 402,610,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,080 | py | """
Django settings for blog project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# Buil... | [
"hejiwei93@126.com"
] | hejiwei93@126.com |
caabff8732edb255684b674dadbd5e62516d970d | e8fe7878b463f975e74029a7f7e9617feb2bb7d6 | /licensekeys/models.py | 4b4d1264aa6b052df876374a32500f071db716a8 | [] | no_license | Farizov/authServer | 85c79cf2ba277a1500e3793d7717cb7a68783ff6 | 4fc89e85d4d0155e687b2414d72ae7bbef0f8ec1 | refs/heads/master | 2023-07-02T09:23:00.001849 | 2021-08-04T05:50:45 | 2021-08-04T05:50:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | from django.db import models
import random
import string
def generate_license():
keyset = string.ascii_uppercase + string.digits
keysetpart = lambda : "".join(random.choices(keyset, k=3))
return "-".join([keysetpart() for _ in range(4)])
# Create your models here.
class LicenseKey(models.Model):
key =... | [
"atulsyan850@gmail.com"
] | atulsyan850@gmail.com |
5a380d07f579329852a0e83a874f250f2cbda60c | 1c2c5240222e48cf6ed617378b23ce12c7f69231 | /backend_pms/asgi.py | 3b584ad3f8d2261c6920ecad850891f9d554084d | [] | no_license | MayowaFunmi/pms_backend | 5537d642a76ce18205f4a40a84a52c0ebfb24d5b | 0ddc8a3718bf54dd5f30394ae18c70653634d79f | refs/heads/master | 2023-02-06T23:26:15.429155 | 2021-01-02T14:39:06 | 2021-01-02T14:39:06 | 322,831,233 | 0 | 0 | null | 2021-01-02T13:30:05 | 2020-12-19T11:26:19 | Python | UTF-8 | Python | false | false | 399 | py | """
ASGI config for backend_pms project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_S... | [
"akinade.mayowa@gmail.com"
] | akinade.mayowa@gmail.com |
0633702d1bac349dea40d1d2627459ac5afa4fdc | 49b0316c236e7baf15a1c2e619ae27225db78265 | /lab5/lab5.py | 484b2d2ad2c805caa397771b0a5d5cd36455275c | [] | no_license | rexxy-sasori/ECE420 | 616bea55bd3ef66d35655009c0d9ed45910ce373 | 548d1bf59e63c318b9414a7c0556be6ce48bf31f | refs/heads/master | 2021-06-11T06:29:57.066798 | 2017-03-17T05:58:22 | 2017-03-17T05:58:22 | 79,028,868 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,026 | py | import numpy as np
from numpy.fft import fft
import matplotlib.pyplot as plt
import scipy.io.wavfile as spwav
from mpldatacursor import datacursor
import sys
from scipy import signal
from IPython.display import Audio
plt.style.use('ggplot')
# Note: this epoch list only holds for "test_vector_all_voiced.wav"
epoch_ma... | [
"963136786@qq.com"
] | 963136786@qq.com |
e695473d9f847ac429d6eccab9bf55d07f86d876 | c3bfa9a02f15b3a0378c952ccd66eb6bdbe2b066 | /Multi_CorrFunc.py | 66fac65ba411275fc705c71b44df3dc4f5a5a332 | [] | no_license | DriftingPig/eBOSS-ELG | 22e1ebfe6d7e852cb2698f3e9081b803b5c90c38 | f9d3bce5251e5559c5e3878131679d0746d81f84 | refs/heads/master | 2021-06-22T00:20:39.986994 | 2017-08-29T00:35:55 | 2017-08-29T00:35:55 | 101,699,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,077 | py | #DD_i.txt,DR_i.txt,RR_i.txt
Sep_interval = 40
import numpy as np
import math
import numpy.polynomial.legendre as lgd
from matplotlib.backends.backend_pdf import PdfPages
from matplotlib import pyplot as plt
filename = 'NewData_subfiles_chunk23_wCut.3_upweight'
def JKnife_CorrFunc(Njob, Jacknife=-1,k0=1, order=0,name = ... | [
"huikong@cori08-bond0.224"
] | huikong@cori08-bond0.224 |
f05395dab70d8c66fb5f4715c9ec88b1cf9dcd55 | baaa0a58293df059d81df9fa304a2633cf2c0ca2 | /xtraRep/createWorkoutPlan.py | 0eaa5ef68c9cb38bdbf6aef9248f63cdce5d4c00 | [] | no_license | alex-waldron/newXtraRepWebsite | 6e089b17144bd2a8559b352480bfbc5d26b064f6 | e60ed5566bd14eedf57a8797c6dc812efa86de74 | refs/heads/master | 2023-02-17T06:17:39.568981 | 2021-01-13T15:52:49 | 2021-01-13T15:52:49 | 329,356,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,787 | py | import functools
import click
from flask import (
Blueprint, flash, g, redirect, render_template, request, session, url_for
)
from . import mySQLdb
import mysql.connector
from datetime import datetime
from xtraRep.auth import login_required
bp = Blueprint('createWorkoutPlan', __name__,
url_pref... | [
"awaldro1@stevens.edu"
] | awaldro1@stevens.edu |
aaa85ecdd7c711cc27222f29f7030135a3685945 | 39172cfbe73dad73ac86b783aa6fa81914618905 | /9_4_미래도시.py | 6c0e392d37d8c61162e7cb11962d71f19cb4b1ad | [] | no_license | mouseking-sw/CodingTest | 59398405b85abd1aa6f8c3bc83e9c2788eddabb8 | 351001ea819253704f547fae6afe63787885e816 | refs/heads/master | 2022-12-29T05:40:02.310822 | 2020-10-15T01:12:10 | 2020-10-15T01:12:10 | 291,616,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | n,m= map(int,input().split())
INF= int(1e9)
graph = [[INF] * (m+1) for _ in range(n+1) ]
for a in range(1,n+1):
for b in graph:
if a==b:
graph[a][b]=0 #자기자신 노드 0으로 초기회
for i in range(m):
a,b= map(int,input().split())
graph[a][b]=1
graph[b][a]=1
# 거쳐 갈 노드 k와 최종목적지 노드 x 입력
x,k = ma... | [
"sang-won@josang-won-ui-MacBookPro.local"
] | sang-won@josang-won-ui-MacBookPro.local |
8ec80dcdcd24378590cd4ec62ca17a81bc5666c9 | 9fc901cd0365aaaca0c7055f8132c8576326f4d8 | /Backend manage datasets/dataset/handlers/delete_dataset_handler.py | ab4496dd713bc11162b23aac7c8c6db8c1dcac26 | [
"MIT"
] | permissive | KamilJerzyWojcik/Machine_learning_App | d42cfc06e589d9eada1a866783b729a751e08d8a | 6afe0b6cc1d2791b94255668757ff920224fed0a | refs/heads/master | 2023-01-12T07:20:00.682439 | 2019-10-28T18:53:43 | 2019-10-28T18:53:43 | 205,706,514 | 0 | 0 | null | 2023-01-07T09:18:32 | 2019-09-01T16:58:38 | HTML | UTF-8 | Python | false | false | 456 | py | from ..models import Dataset
from django.http import JsonResponse
import json
import os
def handle(request):
dataset_id = json.loads(request.body)
dataset_to_delete = Dataset.objects.filter(pk=dataset_id)
name_deleted = list(dataset_to_delete)[0].name
path = list(dataset_to_delete)[0].url
if os.pa... | [
"kamil.jerzy.wojcik@gmail.comgit config --global user.name Kamil"
] | kamil.jerzy.wojcik@gmail.comgit config --global user.name Kamil |
05012122357bf0181a223e2dd10a4e94c1fbd8da | bd01241660a9a6a6e0f3df6d70ef50a9f4f3d3ea | /models/multi_carrier.py | 2ebeabb2d0fcf63dd5ca8443f3553f357b5f3c09 | [] | no_license | Josvth/hermes-optimization | aeed40b238ee0fe2de28a97cdbcfa43cb629ec99 | 9b7a019e6f7630955ca26f12a05a3dc159f9660a | refs/heads/master | 2023-05-03T19:14:19.542033 | 2021-05-24T03:55:25 | 2021-05-24T03:55:25 | 274,066,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | from models import vcm
from numba import njit
@njit
def get_sub_carriers(B_Hz):
# Determine number of sub-carriers
if B_Hz <= 100e6:
return 1
if B_Hz <= 200e6:
return 2
if B_Hz <= 300e6:
return 3
return 0 | [
"josvth@gmail.com"
] | josvth@gmail.com |
826762d57f3dbab7668b2b8c75d1746aaab34a9a | b76d63d516cbc595ca5bfc3aa77760aa9f3591e2 | /memo_python.py | d824a2c9a37332a6086279f054dbadc812285a5f | [] | no_license | odin78/monitoringSAD | 63aaa76ba891fd8150d74cfb100ae0adc66f3e3b | 5233af78e03998209db2db0f5d4d37a16e6a1115 | refs/heads/master | 2020-03-26T14:31:38.071155 | 2018-08-16T13:53:25 | 2018-08-16T13:53:25 | 144,992,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | #!/usr/bin/env python3 ---pour la portabilité entre environnements unix
#import d'un module ou d'un package
import modulename
#import d'une seule fonction d'un module
from modulename import functioname
#importer un module en le renommant
import packagename.modulename as newname
#variables classique... | [
"noreply@github.com"
] | noreply@github.com |
e917475fabe877dec477e34d78bf01e715efba8c | bcc199a7e71b97af6fbfd916d5a0e537369c04d9 | /leetcode/solved/2568_Minimum_Fuel_Cost_to_Report_to_the_Capital/solution.py | ff61ddbb440902ec03f8f9a1b947035f18fde637 | [] | no_license | sungminoh/algorithms | 9c647e82472905a2c4e505c810b622b734d9d20d | 1389a009a02e90e8700a7a00e0b7f797c129cdf4 | refs/heads/master | 2023-05-01T23:12:53.372060 | 2023-04-24T06:34:12 | 2023-04-24T06:34:12 | 87,406,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,604 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2020 sungminoh <smoh2044@gmail.com>
#
# Distributed under terms of the MIT license.
"""
There is a tree (i.e., a connected, undirected graph with no cycles) structure country network consisting of n cities numbered from 0 to n - 1 and exac... | [
"smoh2044@gmail.com"
] | smoh2044@gmail.com |
11beeff4b742c8cf977384d6451dd9fb6d5394db | a7dad9064668a8c50452a52159c7a8563f32695e | /rcnn/modeling/hier_rcnn/outputs.py | 3ad759af64e6d8d0c11097877a0be27181834bf4 | [
"MIT"
] | permissive | yuanli12139/Hier-R-CNN | 0283d3666f1789897df0065cf3416abc0039136d | 55d142bff9de489017d394968c68521ea5e58033 | refs/heads/master | 2023-01-14T11:11:31.273910 | 2020-11-14T11:46:36 | 2020-11-14T11:46:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,737 | py | import math
import torch
from torch import nn
from torch.nn import functional as F
from utils.net import make_conv
from models.ops import Conv2d, ConvTranspose2d, interpolate, Scale
from rcnn.modeling import registry
from rcnn.core.config import cfg
@registry.ROI_HIER_OUTPUTS.register("hier_output")
class Hier_outp... | [
"priv@bupt.edu.cn"
] | priv@bupt.edu.cn |
0f6959e8b0cceca7092c8b800527680ba1e71b99 | 2bc8f66fd34ba1b93de82c67954a10f8b300b07e | /general_backbone/configs/image_clf_config.py | 278078f2ccad81f5d77ba37d852e540bba918d42 | [] | no_license | DoDucNhan/general_backbone | 7dabffed5a74e622ba23bf275358ca2d09faddc1 | 686c92ab811221d594816207d86a0b97c9b4bc73 | refs/heads/main | 2023-08-31T14:59:23.873555 | 2021-10-23T06:34:14 | 2021-10-23T06:34:14 | 420,419,141 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,926 | py | # Copyright (c) general_backbone. All rights reserved.
# --------------------Config for model training------------------------
train_conf = dict(
# General config
model='resnet18',
epochs=300,
start_epoch=0,
pretrained=True,
num_classes=2,
eval_metric='top1',
# Checkpoint
output... | [
"phamdinhkhanh.tkt53.neu@gmail.com"
] | phamdinhkhanh.tkt53.neu@gmail.com |
3c6efd3975b2933f360fcc57fa1d1394bdbdbcc0 | da8adef15efbdacda32b19196b391f63d5026e3a | /SistemasInteligentes/P4/main.py | e8b16e5345b6a927679fdea2c978a99fee08ce29 | [] | no_license | rubcuadra/MachineLearning | 05da95c1f800e6acbce97f6ca825bd7a41d806a6 | aa13dd007a7954d50586cca6dd413a04db18ef77 | refs/heads/master | 2021-03-19T17:33:14.080691 | 2018-10-19T23:43:27 | 2018-10-19T23:43:27 | 100,544,903 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,237 | py | from reversi_player import Agent
from reversi import ReversiBoard
from random import shuffle
_agent2 = None
def P1Turn(board, player): #Player
move = input('Enter your move: ')
return move
def P2Turn(board, player): #IA
return _agent2.getBestMovement(board, player)
#Nivel => Profundidad de busqueda
#F... | [
"rubcuadra@gmail.com"
] | rubcuadra@gmail.com |
e5275455035e38ee32d645380324d246df232a01 | 4b8eb3863480804f3d2bb8f815c442e276d8aea8 | /django_project/auth_/urls.py | 6d6e5f47197107740f1592f4ef4c9358ffd1686d | [] | no_license | RauzaAl/PaintingShop | 820fe664c59c14862bb0b8d519213ac6bc9ebaab | 30ff9122f0ecda0ce3ec2f4194348ae234152dc7 | refs/heads/main | 2023-05-01T13:58:07.851323 | 2021-05-16T11:14:11 | 2021-05-16T11:14:11 | 356,239,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | from django.urls import path
from rest_framework_extensions.routers import ExtendedSimpleRouter
from rest_framework_jwt.views import obtain_jwt_token
from django_project.auth_.views import register, UsersViewSet
router = ExtendedSimpleRouter()
router.register('users', UsersViewSet, basename='users')
urlpatterns = [... | [
"rauza907@gmail.com"
] | rauza907@gmail.com |
92f1a06dd44710bd1874697a3fc2219ec9564935 | d319d33b927702cd7a28e238adb07f02f4af6da5 | /clstest.py | 1b517ca351489bc04a143fb6a736c37c67145b43 | [] | no_license | jingqiangliu/mib-parse | 04f357fdf6f0a66b742d3d33a7fddf4133d5da09 | 7b9dd7fce67bb1025f3b234401608d52bead5da7 | refs/heads/master | 2020-09-27T15:11:25.988380 | 2019-04-02T09:18:10 | 2019-04-02T09:18:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py |
from frame import omci_entities
if __name__ == '__main__':
for attr_name in dir(omci_entities):
cls = getattr(omci_entities,attr_name)
if not isinstance(cls,type) or not issubclass(cls,omci_entities.EntityClass):
continue
#print cls,cls.class_id,cls.__name__
for attr in... | [
"yuntao.cao@nocsys.com.cn"
] | yuntao.cao@nocsys.com.cn |
22112a517309402f21f46dd20e2544557c9eb18a | 3a432da8bc7056c0949ab83edc91665860c5de1e | /gcd.py | 248cdeeb56cb25de3702fd9bb584cd8d87af98f2 | [] | no_license | vesselofgod/Python_Lecture_Note | 2fd5d6dc84ac53082e73f82a7464f040364cdced | 06d9de8bdd80af0f84dc1bb9d14424e79cd608d2 | refs/heads/master | 2022-04-06T20:28:18.508039 | 2020-02-03T04:37:59 | 2020-02-03T04:37:59 | 196,804,150 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | def gcd(a,b):
if (b>a): a,b=b,a
while(b!=0):
a=a%b
a,b=b,a
return a
| [
"noreply@github.com"
] | noreply@github.com |
160ed6ae71362727c6c59c828251d2cbfd53f599 | decdcd71a854085d08e431c0c4a8233dda1ea630 | /_build/jupyter_execute/03-arma/06-pronosticos.py | 8b58450a21933a06fa7e545b633b97ee19d6b66c | [] | no_license | davidmorasalazar/econometria | 429839c147de6dbd5ec0563c30b9237541135cf2 | be96b2da38ee0b25f24663b032d2be3d1008e6b0 | refs/heads/master | 2023-04-02T07:07:29.111940 | 2021-04-05T06:14:35 | 2021-04-05T06:14:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,362 | py | ```{include} ../math-definitions.md
```
import bccr
import matplotlib.pyplot as plt
plt.style.use('seaborn')
import numpy as np
import pandas as pd
from statsmodels.tsa.arima.model import ARIMA
from statsmodels.graphics.tsaplots import plot_acf, plot_pacf
isi = bccr.SW(isi=25725)
res = ARIMA(isi, order=[3,0,0]).fit... | [
"romero-aguilar.1@osu.edu"
] | romero-aguilar.1@osu.edu |
d46339f7656553d9127c6339a00339fa6b46a8a2 | 16e6cb34c867db200381f435d389f56dbe54995b | /master.py | 6f602aae04621e92ecc057975e318c44abe021fb | [] | no_license | jenchen1398/Parallel-Pong | 73efe42a5e32381f4dd78378625081c1cc28eea3 | 4a7b578b33343775f3a779c70eabc6c2850c75cd | refs/heads/master | 2021-01-20T23:51:31.465531 | 2015-08-05T17:20:45 | 2015-08-05T17:20:45 | 40,201,468 | 0 | 0 | null | 2015-08-04T18:15:47 | 2015-08-04T18:15:47 | null | UTF-8 | Python | false | false | 3,721 | py | import pypong, socket, struct, threading, select, time, pygame
from pypong.player import BasicAIPlayer, Player
player_left = None # set the players as global so the control thread has access
player_right = None # simplest way to do it
running = True
def setup(ip, port, display, mini_display):
global player_left, ... | [
"euromkay@gmail.com"
] | euromkay@gmail.com |
bcd47c049189dca5af79f4d85687e6732a673dce | bfe5ab782ca4bb08433d70bdd142913d40a40a8d | /Codes/141) exercise27.py | 57d04640fbaad4771a75ad7ddec47a0b9a69418c | [] | no_license | akshat12000/Python-Run-And-Learn-Series | 533099d110f774f3c322c2922e25fdb1441a6a55 | 34a28d6c29795041a5933bcaff9cce75a256df15 | refs/heads/main | 2023-02-12T19:20:21.007883 | 2021-01-10T05:08:09 | 2021-01-10T05:08:09 | 327,510,362 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | # Create a laptop class with attributes like brand name, model name, price
# Create two instance(object) of your laptop class
class Laptop:
def __init__(self,brand_name,model_name,price):
self.brand_name=brand_name
self.model_name=model_name
self.price=price
self.full_name=bra... | [
"noreply@github.com"
] | noreply@github.com |
ef6e6fa4ed687ca9fc3aa5fbf8c1f2e2e13b1c1d | ee7f2c15a1b7db1b584450a20095f1fb4ae2f2ad | /webScrapper.py | bad0725c8c12d8ddbd64076fb1fb839a049c2562 | [
"MIT"
] | permissive | jkuan1/nwHacks2020 | 2a7a8541faa3985a5004f0010059991f14051e33 | 3f2fece58a2d94cd7e878a3af1d18d4180634646 | refs/heads/master | 2020-12-09T12:00:44.876342 | 2020-01-12T19:46:05 | 2020-01-12T19:46:05 | 233,297,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | import requests
import json
import textwrap
from bs4 import BeautifulSoup
CHARACTER_LIMIT = 5000
# Website url and requsting the html
URL = url
page = requests.get(URL)
# Setup BeatifulSoup web scrapper
soup = BeautifulSoup(page.content, 'html.parser')
headline = soup.find("h1", class_="detailHeadline")
story = sou... | [
"thien.ho@alumni.ubc.ca"
] | thien.ho@alumni.ubc.ca |
60e20f65cf6af6e8b751077eed72b94b9864c8cc | db1b063be3ae7d3c4ba75b5d51d8fbe73c3d482b | /patapp/views/reply.py | 8317138c59d3f0d1a1988da1d8848cbe098e99b6 | [] | no_license | luoxianchao/MedicalWechatMiniprgram | 8f975d042ea69dbb8ffca24a7c9abab077c129f5 | aaa86f7813583c31d0316c69371aecf4f9537773 | refs/heads/master | 2022-10-22T01:23:04.654566 | 2020-06-16T05:40:56 | 2020-06-16T05:40:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | import os
import django
from django.http import HttpResponse, Http404, FileResponse, JsonResponse
from django.db import models
from django.core import serializers
from patapp.models import user
from patapp.models import image
from patapp.models import imagereal
import requests
def reply(request):
#image1=image.obj... | [
"sophrieet@gmail.com"
] | sophrieet@gmail.com |
4deaebf56103bcd918ea4cd531d6c30b9928c862 | ab938906b0dc6213dfcadb1044fd74382126f6e6 | /d26_1.py | 24d2580eacc1a6472cce65cd7456d95f5aa6bcbb | [] | no_license | sparsh-m/30days | 5b8842cd1abdee2249f74e62a46fac0d091af8a6 | 866fc6ec85a1eaec6a725f155310d037059f0771 | refs/heads/master | 2022-12-04T05:29:21.323438 | 2020-08-23T10:01:39 | 2020-08-23T10:01:39 | 273,663,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | #https://leetcode.com/problems/minimum-path-sum/
#TC:O(N^2)
def minPathSum(grid):
n,m = len(grid), len(grid[0])
dp = [[0 for i in range(len(grid[0]))] for i in range(len(grid))]
dp[0][0] = grid[0][0]
for i in range(1,len(dp[0])):
dp[0][i] = grid[0][i] + dp[0][i-1]
if len(dp)==1:
retu... | [
"sparshmisra1@gmail.com"
] | sparshmisra1@gmail.com |
6a63db375fbee64f04a063e3e15d6e9caff8ca94 | 0f20f3e02aa05b8e690190a96e92a524b211338f | /SW_Expert_Academy_02/String2.py | 142a9ff2f4c33454b306be6657fae7ebaa14028b | [] | no_license | HYEONAH-SONG/Algorithms | ec744b7e775a52ee0756cd5951185c30b09226d5 | c74ab3ef21a728dcd03459788aab2859560367e6 | refs/heads/master | 2023-07-18T14:41:48.360182 | 2021-09-03T13:41:23 | 2021-09-03T13:41:23 | 336,240,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | # 문장을 구성하는 단어를 역순으로 출력하는 프로그램을 작성하라
sentence = input()
s_list = sentence.split(' ')
s_list.reverse()
for i in s_list:
print(i, end=' ') | [
"sha082072@gmail.com"
] | sha082072@gmail.com |
976a5aaede8e86285f2d52c25cf17df99c11cc16 | 45894e01a4835ef059822d2c3924bfb13560beb9 | /lims_gql/schema.py | bbcf059639567c152b2c9822cbb517df3d488bc3 | [] | no_license | zhonghua-wang/lims_gql | 8d03df78c5551c6ede17ac467ba4c593596fdab6 | 16dda197ee453952aee7dde04e398258e02f5a3e | refs/heads/master | 2020-12-07T13:33:28.905671 | 2017-06-30T11:47:37 | 2017-06-30T11:47:37 | 95,570,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | import graphene
from graphene_django.debug import DjangoDebug
import instrument.schema
import core.schema
class Query(instrument.schema.Query, core.schema.Query, graphene.ObjectType):
debug = graphene.Field(DjangoDebug, name='__debug')
schema = graphene.Schema(query=Query)
| [
"zhonghua.wang@outlook.com"
] | zhonghua.wang@outlook.com |
e2a11079640953b82794c678445d69a6420f030d | d049ef46a863c61ccaaea10a966ddcd8016867f0 | /orders/migrations/0001_initial.py | 744b2abbf083bbe777e2974a683f32bd97e2df0a | [] | no_license | sofialazrak/topfonte | 5735bb76d30ca1ac73073ad48f9793bcce7f958d | 954afb32f9b45aff76110b7771e51a26495d6ddd | refs/heads/main | 2023-03-26T20:50:35.281128 | 2021-03-11T21:08:18 | 2021-03-11T21:08:18 | 346,414,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,797 | py | # Generated by Django 3.1.6 on 2021-02-08 16:16
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('shop', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Orde... | [
"sofia.lazrak@gmail.com"
] | sofia.lazrak@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.