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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
98b41c176dd9eba1c1ed02d2c593e3aee41040ee | 1c91ca222699a085516548b5d3c72174381e545b | /src/ryu_faucet/org/onfsdn/faucet/valve_of.py | 5e508a206f257068cb783afd2c7d81e6c52daff8 | [
"Apache-2.0"
] | permissive | libunamari/faucet-authentication | c6d161d296e6b5e9318cd0ca9ef258dc8ccb2105 | 1b93e6be96b73b273ad772a938f12a77255dbf1e | refs/heads/master | 2021-01-20T11:54:52.877598 | 2017-02-21T21:17:43 | 2017-02-21T21:17:43 | 76,996,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,645 | py | """Utility functions to parse/create OpenFlow messages."""
# Copyright (C) 2013 Nippon Telegraph and Telephone Corporation.
# Copyright (C) 2015 Brad Cowie, Christopher Lorier and Joe Stringer.
# Copyright (C) 2015 Research and Education Advanced Network New Zealand Ltd.
#
# Licensed under the Apache License, Version ... | [
"joshb@google.com"
] | joshb@google.com |
3fa12d51600e7344aabf907cb17fedbbfb4987d4 | 8229c9365933bdb23846d19dbdb9393eb21574c7 | /dataWranglingServer/mongoServer/getImpalaBuiltInLibrary/views.py | 29c27882dfe41b1c4bc875c6020371d1499c9ea5 | [] | no_license | MansharamaniRahul/PythonSampleDjango | b0d9209e620e03aa5e82514b678c6ef675a51674 | 5c74afbd6bba243f48bf486b7636a9929bbaa43d | refs/heads/master | 2020-06-01T03:32:57.879334 | 2017-06-12T06:02:05 | 2017-06-12T06:02:05 | 94,060,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | from pymongo import MongoClient
from django.http import JsonResponse
from dataWranglingServer.settings import *
def getBuiltInFunctionList(request):
builtInFunctionList = []
outputResponse = {}
try:
client = MongoClient(DATABASES['mongo']['url'])
db = client.demo
a = db.ImpalaString... | [
"mansharamani_r@India.XoriantCorp.com"
] | mansharamani_r@India.XoriantCorp.com |
299410b282e5c6782cb45a16a0502bff476aa938 | fdb6189bf1e854461636b7093e2906f2febd90bc | /MyShop/MyShop/asgi.py | 37f7384725724498ea0a90035f89e123351725f3 | [] | no_license | OttoWeinenger/Project1 | a0c38502f162303064871bc040410b9025a43c8f | 53549795687e44f8e561ca1febe6b9e94965fe4a | refs/heads/main | 2023-03-26T15:08:19.500908 | 2021-03-30T08:59:51 | 2021-03-30T08:59:51 | 352,315,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
ASGI config for MyShop 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_SETTIN... | [
"sardor010204@mail.ru"
] | sardor010204@mail.ru |
ae7b0b582db1dde3ff97ae3eeb6866dbddfbcbd9 | 7949cad85d64c84215690b1131938376f6f9b595 | /old/sparkExperiments/create_dataset.py | 32c75113e73425a74229fc70207c216e71b4abae | [] | no_license | jeanCarloMachado/machineLearningExperiments | 6ed036e51e6c5e4be22e0c2d5370f095f04b2905 | f9d09ccf4dc0af0a4e19e3d9cd2e9753713f3cd1 | refs/heads/master | 2022-05-26T07:33:21.360732 | 2022-03-29T14:04:07 | 2022-03-29T14:04:07 | 241,678,721 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | #!/usr/bin/env python
import grimoire as g
import random
import pandas as pd
colors = {'Yellow', 'Green', 'Red'}
states = {f'state{i}' for i in range(0, 25)}
lstates, lcolors, lcounts = [], [], []
for i in range(0, 1000000):
lstates.append(random.sample(states, 1)[0])
lcolors.append(random.sample(colors, 1... | [
"machado.c.jean@gmail.com"
] | machado.c.jean@gmail.com |
85d8b54a597c6a9c55255fae69c8f80909ba6927 | cc9d5322e5dc5457aa040a2936916f5e31520ad8 | /App.py | 46f6ac76428a0d81f1673aaa8cabb1fa7b3008fd | [] | no_license | Daniel11V/DrugsTableDB | 0fcc997dc16f26d2b17171e2f853ef48884f0154 | 0cd873b63250046313ffa900ec0ddabb6c12764a | refs/heads/master | 2023-06-27T09:31:34.782117 | 2021-07-27T04:56:09 | 2021-07-27T04:56:09 | 389,264,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,505 | py | from flask import Flask, render_template, url_for
from flask_mysqldb import MySQL
import json
MY_JSON_FILE_NAME = "static/json/initial_data.json"
DB_JSON_FILE_NAME = "static/json/db_data.json"
TRY_JSON_FILE_NAME = "static/json/try_this_data.json"
app = Flask(__name__)
# Local MySQL Connection, Testing
# app.config['... | [
"daniel1vinet@Gmail.com"
] | daniel1vinet@Gmail.com |
064fb585c74b4d081429c5dbd3e880ab265bd13d | 559bdf8eed92ac695cce63a181c1488e79a01691 | /hw4/hw4_train.py | cc19593fc3972f505d3a2820169018243d34d82f | [] | no_license | cspc777/ML2018SPRING | 3fa0a9f85b0fe6501207dad89217ddbd2b71e3d8 | ecc8abbbf3396fb8a71d88d674f276a56fdb4464 | refs/heads/master | 2021-09-17T20:40:03.830377 | 2018-07-05T05:21:19 | 2018-07-05T05:21:19 | 124,552,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py |
# coding: utf-8
# In[ ]:
import sys
import csv
import numpy as np
from keras.layers import Input, Dense
from keras.models import Model, load_model
from sklearn.cluster import KMeans
# In[ ]:
def readTestData():
txt_data = open('./data/test_case.csv', 'r', encoding = 'big5')
row = csv.reader(txt_data, d... | [
"noreply@github.com"
] | noreply@github.com |
6cee64f70ce63650193e081f0a686b02dc2fbf66 | 93dd407d974dea64821f46a64535957026416f65 | /ex5.py | 6dec9359203bdf80e4323247753cf4534ab35c11 | [
"MIT"
] | permissive | jgavinray/LPTHW | 414e6508261b824c5188e1fdf9431335a8300b5f | f7fca20f8a1fb722ee41e46adf0f11d9907b43df | refs/heads/master | 2020-07-04T09:01:55.668298 | 2016-08-21T22:06:14 | 2016-08-21T22:06:14 | 65,924,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | my_name = "Zed A. Shaw"
my_age = 35 # at time of writing?
my_height = 74 # inches
my_weight = 180 # lbs
my_eyes = 'Blue'
my_teeth = 'School Bus Yellow'
my_hair = 'Brown'
print("Let's talk about %s." % my_name)
print("He's %s inches tall." % my_height)
print("He's %s pounds heavy." % my_weight)
print("Actually that's n... | [
"jgavinray@gmail.com"
] | jgavinray@gmail.com |
16d673dc87098e35162c7920df4cc55300dae477 | c9cc59e39a242d0786c528e2447382c8f012ba39 | /qonos/tests/functional/db/test_simple.py | 725e75232702aab3a9b0a4b2cb5e1d7807dbdfa8 | [] | no_license | clefelhocz/qonos | 646522281f807e84dbdd4e80a9df33119472593f | 7421de3f97fad879c6aea1df42e0a7cc8e1d3b3a | refs/heads/master | 2021-01-09T08:51:34.030213 | 2014-09-15T20:53:40 | 2014-09-15T20:53:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 Rackspace
#
# 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
#
# ... | [
"alex.meade@rackspace.com"
] | alex.meade@rackspace.com |
b560e7ff12a22e61ba8eb1ece2e0550067a2e01e | bdd41d06e5b4f4f08b0525172be9394471fff543 | /scripts/vim-wrapper | c71492e0aedcbfb83b4cdaee9af09ca9231a52d2 | [
"MIT"
] | permissive | jclingensmith/dotfiles-1 | 638d03ce2eb02d0aeefb788bbf64b574c4078b8a | f64ad2ec15841eeda29f0e1a59759d8b27823c24 | refs/heads/master | 2022-12-14T11:02:59.171293 | 2020-09-09T07:03:10 | 2020-09-09T07:03:10 | 294,148,598 | 1 | 0 | MIT | 2020-09-09T15:09:59 | 2020-09-09T15:09:58 | null | UTF-8 | Python | false | false | 1,580 | #!/usr/bin/env python3
# Opens nvim if available, else vim.
# Adds -p flag to open files in tabs.
# Set $EDITOR to vim-wrapper
# Required as $EDITOR does not support args, and logic for nvim was replicated across bash, fish, zsh.
# also, rgfzf can sometimes pass duplicates if there are multiple matches. It's
# convenie... | [
"callan.bryant@gmail.com"
] | callan.bryant@gmail.com | |
c70c694a7ccf1e3effde41888374a7f5761baa9a | dd6eb849da0132fb303e5f7ab0ed058e01b6530c | /src/yews/models/cpic.py | c4fe1e4993b5b514da94f00fb916fe2a954c8052 | [
"Apache-2.0"
] | permissive | miguelj-neves/yews | 7ad5a4eb4fdedeb3d6dea8863164ffed26330da1 | 82fff8e5f4145751682e4d0ffba2dddeab0a2219 | refs/heads/master | 2023-03-30T09:37:13.521388 | 2021-03-16T01:45:38 | 2021-03-16T01:45:38 | 261,878,614 | 0 | 0 | Apache-2.0 | 2020-11-13T12:25:02 | 2020-05-06T21:05:38 | Python | UTF-8 | Python | false | false | 15,044 | py | import torch.nn as nn
from torch import load
from .utils import load_state_dict_from_url
__all__ = ["CpicV1", "cpic_v1", "CpicV2", "cpic_v2", "CpicV3", "cpic_v3",'cpicv1_dropout', 'CpicDropout']
model_urls = {
"cpic_v1": "https://www.dropbox.com/s/ckb4glf35agi9xa/cpic_v1_wenchuan-bdd92da2.pth?dl=1",
"cpic_v2... | [
"noreply@github.com"
] | noreply@github.com |
f95239340fe881d0379702fbe5bbc9b748fcc7af | 20105f23d4b38fc564dbb63379da76dec608ba19 | /Player.py | 96c091c53894f8f3a23e02b4f98a0508bd12fede | [] | no_license | mehrsethi/minesweeper | b4cbaed5a41467d3d53c8fc99f8c8c24eafb41c4 | 4a6bfa2bb4dc54e99edd8f0d946f596159581944 | refs/heads/master | 2021-05-05T17:07:19.963638 | 2018-01-14T00:15:45 | 2018-01-14T00:15:45 | 117,388,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | """
Player class - this object is user to represent every individual who wins a Minesweeper game
It is primarily used to retain the player's name, the minimum time within which he/she won a game, and the total number of games he/she won
"""
class Player(object):
def __init__(self, name):
self.name = name
... | [
"mehrsethi@Mehrs-MacBook-Pro.local"
] | mehrsethi@Mehrs-MacBook-Pro.local |
d15dd199e6c86808b473f526e605111671f36034 | e11dff811ca981f428644fd70d10a7369c671bcb | /src/tools/ecos/cvxpy/cvxpy/problems/objective.py | 13293559446a04fad84799c55d14674f9eada4e7 | [
"GPL-3.0-only",
"GPL-3.0-or-later",
"MIT"
] | permissive | riadnassiffe/Simulator | 3c4a036b5635534929fdb04b0e9c96d64c0da71f | 7d9ff09f26367d3714e3d10be3dd4a9817b8ed6b | refs/heads/master | 2021-06-20T09:31:36.033427 | 2021-04-17T00:03:17 | 2021-04-17T00:03:17 | 16,033,879 | 0 | 0 | MIT | 2021-03-22T23:20:34 | 2014-01-18T20:58:10 | Jupyter Notebook | UTF-8 | Python | false | false | 2,758 | py | """
Copyright 2013 Steven Diamond
This file is part of CVXPY.
CVXPY is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
CVXPY is distributed i... | [
"riad.nassiffe@gmail.com"
] | riad.nassiffe@gmail.com |
2abb4580f4cd4823ac69ec04939f469f9afdfd8f | 3f10f8c730017926d1ae2a55d7c3964df816e065 | /think python/recursion.py | 9283632a3af2ee11b4608247cd0739b968d61a3a | [] | no_license | solinwolf/Python | 8e97dcc098aa9931c5a0849140134dae6fc538f2 | fd8647c116a0476b79ea4f5c74a3441a5d222620 | refs/heads/master | 2021-01-12T08:36:03.321021 | 2016-12-18T13:22:11 | 2016-12-18T13:22:11 | 76,625,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | # recursion
# functionality: recursively display numbers 0-n
def countdown(n):
if n<0:
print '%d is not positive'%n
return
if n==0:
print 'Blastoff'
else:
print n
countdown(n-1)
return
countdown('pw')
| [
"dianzi_zsl@163.com"
] | dianzi_zsl@163.com |
76faca35f33e12cea802b44068cb8aa14880293c | e0980f704a573894350e285f66f4cf390837238e | /.history/menus/models_20201030115229.py | fe2fb42e539b2ceeceff986fda84db20415ecd35 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | from django.db import models
from django_extensions.db.fields import AutoSlugField
from modelcluster.models import ClusterableModel
from wagtail.core.models import Orderable
from wagtail.admin.edit_handlers import FieldPanel
class MenuItem(Orderable):
link_title = models.CharField(blank )
link_url = externa... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
eaa4d141d9a44c29fd1d9426ef375df324b3e2bd | 293f8c3dcad567d68c5a79266393f7a3c8bb734b | /USproxy/spiders/proxy_US.py | cba7256eb3c6df5b5668743b1e21f44dbf06831c | [] | no_license | vcchen93/Scrapy_USproxy | c748ba6d3a21b9acb6178cab80479b7e73c1f217 | e198beb4db25ee27df043528b8b4313787d1b7da | refs/heads/master | 2022-11-29T04:34:00.610045 | 2020-08-12T07:56:41 | 2020-08-12T07:56:41 | 286,907,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,598 | py | #引用item.py裡面的項目,需以scrapy crawl 爬蟲名 -o 輸出.json/csv
from USproxy.items import USproxyItem
import scrapy
#這個class名不太重要,括弧裡的是設定使用哪一種scrapy爬蟲格式
class USproxySpider(scrapy.Spider):
#設定爬蟲名,初始url、要爬的域名
name = 'proxy_US'
#設定要get的頁面資訊(可以設定header那些),會得到response(頁面資訊)。callback是設定頁面資訊的後續處理方式。
#也可以直接再class裡面設定,... | [
"noreply@github.com"
] | noreply@github.com |
614e5431a0c1c5fd80bc2245a38844952ba34567 | f89a102381207924e1d625fa6f1610c243dcc9da | /clientes/serializers.py | 46b51b7810e3b96ddca078aa1cf3a4e3c724b6fd | [] | no_license | mrshoga/gestao-clientes-django | 1d1db30ae504d60dff7697820bfb232cc7b274a0 | 8b22038c47bdaf76d7b1881d4c149a1f9c347169 | refs/heads/master | 2020-06-28T20:31:27.350738 | 2019-08-03T04:44:58 | 2019-08-03T04:44:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from rest_framework import serializers
from .models import Person
class PersonSerializer(serializers.ModelSerializer):
class Meta:
model = Person
fields = "__all__" | [
"rrgaya@gmail.com"
] | rrgaya@gmail.com |
54001c70e2aae707b7221d0c3072e050663436d2 | 7dfdd1323f2e1278b6be7a2edd8aeb5508a5428a | /lab/lab12/tests/q2c.py | 4e827947db308f6d1f6d01b37bf4a92646305e39 | [] | no_license | DS-100/su21 | 4f1932d57b92f488f359be667a5ec79a4702f60e | e62a80452d546722fbea2651e27e3bf276ce5453 | refs/heads/main | 2023-07-10T23:28:37.918626 | 2021-08-05T20:51:09 | 2021-08-05T20:51:09 | 375,925,180 | 4 | 6 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | test = { 'name': 'q2c',
'points': 1,
'suites': [{'cases': [{'code': '>>> 0.95 < two_dim_variance < 0.96\nTrue', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
| [
"michelleli@michelles-air.myfiosgateway.com"
] | michelleli@michelles-air.myfiosgateway.com |
921459ad7782dbbb3bd93abe290d01bf2ccc6bc2 | 22d36a0df7dfde08053a806981b1e8bab625699e | /WhoMillionaire/main.spec | aa62bc710f74965fb1bfff6876af7f2f7ff8c162 | [] | no_license | maxpiorischin/MillionaireGame | b8402ac96bd11d231cf23296d431daaa47ea05d7 | e08bc67722aa50ae7b6a0da104cbb09a14d8deef | refs/heads/master | 2020-12-17T00:11:55.091527 | 2020-01-21T07:32:06 | 2020-01-21T07:32:06 | 235,278,762 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['main.py'],
pathex=['C:\\Users\\maxpi\\PycharmProjects\\Gr11CPT'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
e... | [
"noreply@github.com"
] | noreply@github.com |
6542e3a27860551106e0811b7d225627c4a68c32 | a9f3060ca2e4ff3d029476a3d0942804570229e6 | /kmean.py | 6058763b12fdd493784b8cc16cd97395e53da00b | [
"MIT"
] | permissive | umairqadir97/K_Mean | bd08ef9058155ddec2b4bd0dbd82125c5292a867 | 19332a12c1ce2233a2fc0e050a0f69aa3d866bcf | refs/heads/master | 2021-01-21T01:17:08.124646 | 2017-08-30T11:24:16 | 2017-08-30T11:24:16 | 101,872,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,118 | py | # -*- coding: utf-8 -*-
import random
import matplotlib.pyplot as plt
import numpy as np
import scipy.cluster.vq as vq
class KMean:
def __init__(self):
self.MAX_ITERATIONS = 4
k = 3
N = 200
c, data = self.generateRandomInstances(N, k)
print("Initial Data N=100, k=... | [
"noreply@github.com"
] | noreply@github.com |
a550d9b8ed43cb34d14d403265c426d95c868ae4 | 74091dce735f281188d38d2f00d1a68e1d38ff7a | /design_patterns/observer/with_observer/observer_abc/__init__.py | fc74947e39033cd126ee8f4e688bf13e5b204ab0 | [] | no_license | nbiadrytski-zz/python-training | 96741aa0ef37bda32d049fde5938191025fe2924 | 559a64aae2db51e11812cea5ff602f25953e8070 | refs/heads/master | 2023-05-07T04:08:23.898161 | 2019-12-10T12:12:59 | 2019-12-10T12:12:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | from design_patterns.observer.with_observer.observer_abc.observer_abc import AbsObserver
from design_patterns.observer.with_observer.observer_abc.subject_abc import AbsSubject | [
"Mikalai_Biadrytski@epam.com"
] | Mikalai_Biadrytski@epam.com |
041817d1e7baa442613d3e6bd97db56f974605db | f909b914e205ff7df58ba89bbc10aefef3f00238 | /ProjectHungger/HunggerApplication/migrations/0002_auto_20180321_1223.py | a265ddc19a81c2d71d4aca6fcea8b57780e9e438 | [] | no_license | manthan133/ProjectHungger | 94b114350a22ffee4a4c79a1bb521719025badf2 | 419de3642756d8355b82ba76b76b2093c9793038 | refs/heads/master | 2020-03-09T22:42:25.391623 | 2018-04-12T12:43:05 | 2018-04-12T12:43:05 | 129,040,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | # Generated by Django 2.0.2 on 2018-03-21 06:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('HunggerApplication', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='cart',
name='user',
... | [
"manthanamin133@gmail.com"
] | manthanamin133@gmail.com |
889681aac28b29640993632b887e34111d4c6c89 | c1e97cace5aa8c50733934f40a3444bb6772942b | /Python B_48.py | 3d235d1a597442369101b90570b712882ea3a01f | [] | no_license | kavithashiyam/Python-Fundamentals | ffe3c717adece7ef338cbc6b129f028b29cfd8e0 | 262feb05012a1afe464c1a1d8354258d488a10d1 | refs/heads/main | 2023-06-17T05:45:14.174862 | 2021-07-17T16:03:59 | 2021-07-17T16:03:59 | 386,981,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,446 | py | #!/usr/bin/env python
# coding: utf-8
# In[23]:
# A variable is a name given to a memory location. It is the basic unit of storage in a program.
# In[3]:
# In[2]:
#Rules for declaring the variables in python:
# In[ ]:
# In[ ]:
Rule 1 : No name spaces while declaring the variable name
# In[4]:
F... | [
"noreply@github.com"
] | noreply@github.com |
47604ac2514c502aa8ab1446ebafa3c7c508b4f9 | 5bc02ae27085eac0ad40e936937ce2709f1813c3 | /api/api/infrastructure/pymongo.py | da432dd980d2bb2534f84155d35e4e3b3aed5ca3 | [] | no_license | leandrocotrim/answerthis | 9eacc50f76f092d4d1676a51ad1d366ade1df3b5 | 367b8a49a5b466ed82527dde748e1b657d238c74 | refs/heads/master | 2021-01-24T08:30:22.295175 | 2018-04-24T13:55:41 | 2018-04-24T13:55:41 | 122,982,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | from pymongo import MongoClient
from django.conf import settings
def get_db():
mongo = settings.DATABASES['mongo']
host = mongo['HOST']
port = mongo['PORT']
db = mongo['DB']
mc = MongoClient(host, port)
return mc[db]
def get_collection(collection_name):
return get_db()[collection_name] | [
"cotrim.leandro@gmail.com"
] | cotrim.leandro@gmail.com |
4bdfa2ec4f27a91ff76c8dc52a4d36269aad2200 | 3f0634b313b7ac13c52ce0c7c8df06387f0ec78a | /Chapter10/textProcessing.py | 7812d58575bc5cd65755406f7ea473a55ac97b65 | [] | no_license | tangxulab/ML | 52cf8858193373877befb239dd7bd293f6012b02 | d6e84b457f8ce6667294a93c77c65a737deafe75 | refs/heads/master | 2022-03-27T23:13:53.569762 | 2019-12-12T09:45:34 | 2019-12-12T09:45:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | import re
import jieba
def clean_symbols(text):
"""
对特殊符号做一些处理,此部分已写好。如果不满意也可以自行改写,不记录分数。
"""
text = re.sub('[!!]+', "!", text)
text = re.sub('[??]+', "?", text)
text = re.sub("[a-zA-Z#$%&\'()*+,-./:;:<=>@,。★、…【】《》“”‘’[\\]^_`{|}~]+", " OOV ", text)
# change all digital number into ' NUM '
... | [
"stjohnson_free@hotmail.com"
] | stjohnson_free@hotmail.com |
47acc7f03fc47dcff3f31778b237cba6c2b1c5bf | 1a19ee0596cb5ba5a38869fe55b324a8f10421f0 | /P_1_25/P22_namesScores.py | ab35a16057e8fa6b5d189274448d3895ffe88cd8 | [] | no_license | EugenSusurrus/project_euler_solutions | 6af844200fbeeb8287c9a77d9115a7d3f0f072a0 | 1e7fa1ba013c5261c0cb5ef6dd3cd77add9e7145 | refs/heads/master | 2020-05-21T02:16:55.716672 | 2019-05-09T21:19:25 | 2019-05-09T21:19:25 | 185,873,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,534 | py | """
Using names.txt (right click and 'Save Link/Target As...'), a 46K text file containing over five-thousand
first names, begin by sorting it into alphabetical order.Then working out the alphabetical value for each name,
multiply this value by its alphabetical position in the list to obtain a name score.
For example,... | [
"rusueugen9@gmail.com"
] | rusueugen9@gmail.com |
b54d4ce4712663752a90bafb4dbd6d302a029bc1 | 974c031656965d49843e7954f08362fced0dfbda | /Git/live/env/bin/python-config | 48b8e0cf9fb927edae36275e28953931fcbdb011 | [] | no_license | TiredLee/live | e3d19ddec104dba67942d668c3531963ea22ab59 | 87566486952e1056383340e7d853e5dd3f58a202 | refs/heads/master | 2020-03-10T21:03:58.970965 | 2018-04-15T13:45:06 | 2018-04-15T13:45:06 | 129,584,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,351 | #!/home/cx/PycharmProjects/live/env/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.version_... | [
"896020197@qq.com"
] | 896020197@qq.com | |
43b471d1eae663e9bfda27660210e8c6236673ee | 6a29703f81ac15aecfcf6fd59579105de33f4e5c | /polls/views.py | 2d59cad1d1106f8f2c8e8615b7156fddc5922e84 | [] | no_license | CampbellD84/django-poll | 877546aad4bcdc7d2fe9ae3ff10834cba53fa243 | 60c2ea766344749e1931524d464270074dea42a5 | refs/heads/master | 2021-09-25T06:22:59.712379 | 2020-02-27T04:55:06 | 2020-02-27T04:55:06 | 243,130,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from django.views import generic
from .models import Choice, Question
# Create your views here.
class IndexView(generic.ListView):
template_name = 'polls/index.html'
context_obj... | [
"dacampbelltbone@gmail.com"
] | dacampbelltbone@gmail.com |
39d06be9e3d91a67766264172255c36c21abe3c9 | b853c68165566d15acb971ad683c417528863061 | /order/views.py | ca515d241fb4dffd0625fdf08a2d6ab7e27963a1 | [] | no_license | abdulaziz-damlahi/foodorder | 5e55a1a4a5eef2ce21b2ad463f80b2785fc909bc | 26a7c804daf33e8b271e4da127112ade056a839a | refs/heads/master | 2022-12-09T05:45:45.397561 | 2020-08-18T00:29:28 | 2020-08-18T00:29:28 | 282,528,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,784 | py | from ckeditor_uploader.utils import get_random_string
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from django.utils.crypto import get_random_string
from home.models import Se... | [
"celikyuksell@gmail.com"
] | celikyuksell@gmail.com |
28d3ad73c52557c945c1d6527b8e8b08169df786 | 7370b067695d6636273ee635b3e78b022be16a62 | /fullstack/vagrant/forum/forumdb.py | 403e89ac5b0de33e55b2add36c6f6753c544d7d6 | [] | no_license | jreiher2003/intro-to-relational-databases | 56b2f66e5f7a23144b8a1f011d0bcedcf5a07da3 | a589cb736757708635b7b6bb6688cd2d9d574a85 | refs/heads/master | 2020-12-24T13:44:50.200881 | 2015-04-14T14:45:54 | 2015-04-14T14:45:54 | 33,775,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py | #
# Database access functions for the web forum.
#
import psycopg2
import time
import bleach
## Get posts from database.
def GetAllPosts():
'''Get all the posts from the database, sorted with the newest first.
Returns:
A list of dictionaries, where each dictionary has a 'content' key
pointing to... | [
"jeffreiher@gmail.com"
] | jeffreiher@gmail.com |
0dc249d0af3a80caa218ae4f6819b1a99c530f06 | 92be2d8c4a64d5f8c43341be7f1e36b81fce56ab | /src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/private_link_scope/private_endpoint_connection/__cmd_group.py | 51676cfe96f1d5df414faa020e70a8f2b2eda9b2 | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | allanpedroni/azure-cli | b31d3347f377208b502231266d4839196e574c4b | 4e21baa4ff126ada2bc232dff74d6027fd1323be | refs/heads/dev | 2023-08-31T18:27:03.240944 | 2023-08-31T08:49:58 | 2023-08-31T08:49:58 | 204,767,533 | 0 | 0 | MIT | 2023-09-14T13:32:41 | 2019-08-27T18:41:15 | Python | UTF-8 | Python | false | false | 718 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | noreply@github.com |
a7b3a447dfd2a17561d5fe2e7b964ac450fe341e | 30566a736f0c8234254c7d832333f0f8e7650c2e | /mlh/apps/qs_answer/apps.py | ba4f6dbf49192440a9295f70ca605d2b7023a213 | [] | no_license | AmirHuang/mlh | daa59f16a2ac3716195bf6dfbea0e27d9bcc994e | c0df44858d0951e345de245505ae8f71f8b5e1b6 | refs/heads/master | 2020-05-04T14:28:17.289664 | 2019-04-03T02:52:35 | 2019-04-03T02:52:35 | 179,198,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | from django.apps import AppConfig
class QsAnswerConfig(AppConfig):
name = 'qs_answer'
| [
"429771087@qq.com"
] | 429771087@qq.com |
3ddc19f7440f0162d0984c81dd4650f7209313b1 | 30e09f660614973b8aebd9c16a2736f29a659d80 | /blog/migrations/0002_auto_20180713_1758.py | 116ced9bf729106b2a35db3bb417e9c62fd0ff5a | [] | no_license | mrthundergod/Django_firstWebsite | fe4d51186266b34eb64728196c973ee748146acb | 7cf0006c408184a5f3627c7546b79f5abf46bbec | refs/heads/master | 2020-03-23T00:45:45.276523 | 2018-07-16T15:47:45 | 2018-07-16T15:47:45 | 140,884,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-07-13 12:28
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
op... | [
"algofyourself@gmail.com"
] | algofyourself@gmail.com |
a238d6e911e4f6bbc82af2f4e8f703eb06b3e1d7 | 5be0623d43cb6418eebd3b4d14a1befd1f4a11cc | /evaluator/evaluator.py | 6687b9869a90eac0ddb152d14de68d75bc390e86 | [] | no_license | Euclidophren/ht-poker | 10e6afac84ace2c80120b4f7c024745b881d27c5 | f019a7035604a83ea4800cc9c703ecf4826d5da8 | refs/heads/main | 2023-03-23T17:07:49.508754 | 2021-03-17T20:47:30 | 2021-03-17T20:47:30 | 348,842,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,795 | py | from evaluator.hashtable_omaha import NO_FLUSH_OMAHA
from evaluator.hashtable_omaha import FLUSH_OMAHA
from evaluator.hashtable5 import NO_FLUSH_5
from evaluator.dptables import SUITS
from evaluator.hashtable import FLUSH
from evaluator.hashtable7 import NO_FLUSH_7
from evaluator.hash import hash_binary
from evaluator.... | [
"pokasovaai@gmail.com"
] | pokasovaai@gmail.com |
d9115b79d1e0ebf6bd315330b1bc516e8c40b72b | c224200e8d273b2d215e1b68c8bb7798fe0ca714 | /python/ccard/luhn.py | 4d988dfaa53f5803ebe99205be2b09fe9e6a145e | [] | no_license | mpranj/mcandre | c9c6db22be95f71a350bf05e922eb03befa9c6b1 | 9bf5c3ab0ee24ab7041ef4732d0017e869ae683d | refs/heads/master | 2021-01-18T12:46:37.096984 | 2014-06-26T03:46:56 | 2014-06-26T03:46:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | """Luhn checksum"""
def luhn(n):
"""luhnsum(int) -> bool
Mod 10 checksum by Hans Peter Luhn (1896-1964)
"""
s = 0
while n:
r = n % 100
n /= 100
z = r % 10
r /= 10 * 2
s += r / 10 + r % 10 + z
return s % 10 == 0
| [
"andrew.pennebaker@gmail.com"
] | andrew.pennebaker@gmail.com |
3400c009e2b7cf7e93799f1211828573c968025e | b50b0f73896c8fca9029ac775caf6357c27ee209 | /17.py | cda62beaf98897c6c6a996bbda582c559bb606bf | [] | no_license | meysam81/Euler-project | 05e12b485fd313e3445d9c78400c9e2dbad5b47d | a8a80ed1cecc062780c83821031718b19e5e5452 | refs/heads/master | 2021-05-04T20:31:42.548004 | 2020-05-06T16:52:35 | 2020-05-06T16:52:35 | 119,821,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,469 | py | #from math import *
numStrYekan = ['', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine']
numStr10to19 = ['ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen']
numStrDahgan = ['', '', 'twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy'... | [
"MeysamAzad81@yahoo.com"
] | MeysamAzad81@yahoo.com |
d485e58bc0522230c005071caed4ab1409dd5070 | 39bbd77cfab7dc0cb88dd88f4a91ae7406f595c1 | /UrbanDict/test.py | 812792800e410c9d16e162e05390442183866c1f | [] | no_license | deathspawn/supybot-plugins | f4a2a18185cae8dd02f7f49d3ee71ae720ef2ba8 | 2920e13bc81f825360ed7133d192e4d9ae09fe06 | refs/heads/master | 2021-01-21T16:15:50.828909 | 2013-05-16T05:44:52 | 2013-05-16T05:44:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,739 | py | ###
# Copyright (c) 2010, John Spaetzel
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions... | [
"john.spaetzel@gmail.com"
] | john.spaetzel@gmail.com |
2fd0d81d5757eb5301956fc98513bcb6f034e338 | 7410903c6cd5ef35c592af00c934fb21c369cbf2 | /00_Code/01_LeetCode/15_3Sum.py | 48ca0cefdb8c2e3ea535801f329f89a117a056e8 | [
"MIT"
] | permissive | KartikKannapur/Algorithms | f4e4726170599db0622d18e8c06a382e9bce9e77 | 66e3c8112826aeffb78bd74d02be1a8d1e478de8 | refs/heads/master | 2020-12-25T18:32:41.086518 | 2020-10-19T02:59:47 | 2020-10-19T02:59:47 | 93,961,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,341 | py | """
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
Note: The solution set must not contain duplicate triplets.
For example, given array S = [-1, 0, 1, 2, -1, -4],
A solution set is:
[
[-1, 0, 1],
[-1, -1,... | [
"kartikkannapur@gmail.com"
] | kartikkannapur@gmail.com |
a6dec3fb3b780def85cc7985436fbc0609ee67c1 | 612b2dcd643ca7b36ac141a1d62c73b8e5f5d1aa | /06_operacje_na_plikach_2019-10-28/zad_3_cytaty_5_linii.py | 8b8614a0d4f0a6e66e0f536e5657adf3eda1e388 | [] | no_license | MirekPz/PyCode | e41fecb3bec8b40e41efe9db1be036038b94da1b | 95e1c349beb4fcd0ec1d8c36d000665f28ee794f | refs/heads/master | 2020-08-07T10:54:37.488009 | 2020-02-10T08:41:17 | 2020-02-10T08:41:17 | 213,421,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | """
Wyświetl tylko 5 pierwszych linii
"""
filename = "cytaty.txt"
with open(filename, encoding="UTF-8") as file:
for i in range(5):
list_of_quotations = file.readline()
print(list_of_quotations)
| [
"mirek@info-tur.pl"
] | mirek@info-tur.pl |
2c152602c427504f29a5f0d1793c6be9a8c5db7e | 88f8c8bdf65cdd724f9716a73d20300d89a6b22d | /unlock/view/test/test_pyglet_sprite.py | ef366e934c606ecdff47cbb797c00c59c0b3fd3b | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | wozu-dichter/unlock | 3fefd3e303ca9643449f66fe472a44325972f8c4 | 0c4d95abdab288d3e657ca2db867b06f755f26ff | refs/heads/master | 2021-12-14T20:28:30.123655 | 2015-06-21T20:31:01 | 2015-06-21T20:31:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,117 | py | from unlock import SpritePositionComputer, PygletSprite, FlickeringPygletSprite, PygletWindow, Canvas, UnlockController, AlternatingBinaryStateModel
import unittest
import pyglet
import multiprocessing as mp
class PygletSpriteTests(unittest.TestCase):
def testMSequencePygletSprite(self):
#window =... | [
"james@syndeticlogic.org"
] | james@syndeticlogic.org |
d8ecf20e596498a11066f140ee29c5e0e0aa1a97 | 1868e9e8d1369c8bcb82f7547597f192f128b16c | /ciphers/inverse.py | 584199565a4e080118dc072499f0b9cb19a46216 | [] | no_license | greatbn/cipher-flask | c071411ea8a3de56a1bc2bfa1bb60acc9baa152e | 72898155f132c712eb5bfe52805466ed927b3600 | refs/heads/master | 2021-01-12T16:42:02.552619 | 2016-11-11T10:31:57 | 2016-11-11T10:31:57 | 71,432,151 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | #!/usr/bin/python
import gcd
class InverseCalculate(object):
def __init__(self, moduloNumber, inverseNumber):
self.moduloNumber = moduloNumber
self.inverseNumber = inverseNumber
def _inverse(self):
if(gcd.GcdCalculate(numberOne=self.moduloNumber,
numberTwo=sel... | [
"sapd@vccloud.vn"
] | sapd@vccloud.vn |
298644bc0ec7d03d223f37653b7305c59f9108f3 | c0568d6cdf893ce6e1626471d8ea335b03c0eaf0 | /cmsplugin_lastfm/models.py | e2aa407b7ad8923ff699952c005065782ccbcec8 | [
"BSD-3-Clause"
] | permissive | chrisglass/cmsplugin-lastfm | f9f90e1d9cbf38a2fb9fd9e66b51ec5af4844f3c | b1cf79878d0e01f41caacd1302921028f7553e1d | refs/heads/master | 2016-09-05T20:23:05.470561 | 2010-10-20T12:54:01 | 2010-10-20T12:54:01 | 1,008,804 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | from cms.models import CMSPlugin
from django.db import models
from django.utils.translation import ugettext_lazy as _
class RecentTracks(CMSPlugin):
lastfm_user= models.CharField(_("The LastFM username you wish to follow"),max_length=255) | [
"christopher.glass@divio.ch"
] | christopher.glass@divio.ch |
0423efd7b9a7f649a3402fc1f13c18e434dd716a | 070f6579fec3666b620025ecfc8ca26c3b3c3e8c | /power.pu | 525b2bbc1cafbb9a09c34b7c5782e827662f9266 | [] | no_license | 9715/guvi-1 | 617aa8be6bf88eda4bfcbbe4af7c76e8597bc1b4 | d6a5f6e52f950b65ad1c4be932eda896653ad3b6 | refs/heads/master | 2020-06-10T20:59:56.635314 | 2019-06-25T09:42:38 | 2019-06-25T09:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | pu | a=int(input())
b=int(input())
c=a**b
print(c)
| [
"noreply@github.com"
] | noreply@github.com |
2482f871dff5c01612e22eef2f7419c903a53bca | eb473c4b2ca6cfdfa11536a460b88f2aa6dff8c8 | /lib/dataformat/blockreplica.py | d072623269f1bd55ed55bcb45d6214af1483197b | [] | no_license | thannan6/dynamo | 4ff13bd85c9e15c755e89e67e26eaa214e0a5b39 | 8db847b8d0094890110cfc805a34703fb89f564f | refs/heads/master | 2021-05-10T00:01:52.252731 | 2018-01-22T02:35:27 | 2018-01-22T02:35:27 | 118,819,891 | 0 | 0 | null | 2018-01-24T20:45:31 | 2018-01-24T20:45:31 | null | UTF-8 | Python | false | false | 4,797 | py | from exceptions import ObjectError
class BlockReplica(object):
"""Block placement at a site. Holds an attribute 'group' which can be None.
BlockReplica size can be different from that of the Block."""
__slots__ = ['_block', '_site', 'group', 'is_complete', 'is_custodial', 'size', 'last_update', 'files']
... | [
"yiiyama@mit.edu"
] | yiiyama@mit.edu |
fc75ccf30018c5b5d82754d80791c10efead8462 | 322b53224802448025c1648a1bf320db91afdd0d | /dags/s3_upload_dag.py | 8aca449c2b4bb66d5bea8eac27bb955603b6ca9c | [] | no_license | sunkickr/Astronomer | 8d66b46f45acd22584b764ff5297ddac1128cf39 | 89fed1f1d532b4484f71790abc4bd6ef47b92090 | refs/heads/master | 2022-12-01T20:04:30.026815 | 2020-08-18T17:21:15 | 2020-08-18T17:21:15 | 288,517,370 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,953 | py | from airflow import DAG
from airflow.operators.dummy_operator import DummyOperator
from airflow.operators.python_operator import PythonOperator
from airflow.hooks import S3Hook
from datetime import datetime, timedelta
import os
S3_CONN_ID='astro-s3-workshop'
BUCKET='astro-workshop-bucket'
"""
Simulates files getti... | [
"davidkoenit@gmail.com"
] | davidkoenit@gmail.com |
34c15ce1e29f6f432d3f029763675965ac197416 | 4d352a55b053e00d19dc2a5ed903b7426de8bb64 | /onlinelibrary/manage.py | 901d800de1645203697bf615f036591c02569cc5 | [] | no_license | sikander441/onlinelibrary | 6874a4731c5b268ab6fb59f6adfa97800da56d41 | 9d6bfa6f2559200ca1079334cf8b0603cdb04612 | refs/heads/master | 2021-08-30T09:16:20.863527 | 2017-12-17T05:49:22 | 2017-12-17T05:49:22 | 114,512,815 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "onlinelibrary.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. E... | [
"sikander441@localhost.localdomain"
] | sikander441@localhost.localdomain |
7337544bcd68fb78edc0210723c188b15ae7c678 | 70d74ae2dc808d5d2f137ffea0340aacff7fc3d4 | /Stepik 1/if_zero.py | 87b8ad0e912a0e28071ee4d7c405e035093e9679 | [] | no_license | TehnoBronik/Programming | a30c92f2a9a06237428518ced7fb31e7e142ecb8 | 313042cf977e324b810b56d369abe82e01770e86 | refs/heads/master | 2020-04-09T05:17:10.004826 | 2019-05-20T18:05:37 | 2019-05-20T18:05:37 | 160,058,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | i = 1
n = 0
while i != 0:
i = int(input())
n = n + i
print(n)
| [
"mishamur21@gmail.com"
] | mishamur21@gmail.com |
11be433cf56488c5a1959bf5864c4ae2899c71b6 | cff7ef9906269b5e9c56549ccf693b14463d3a07 | /rp4tw/chapter5/flasktaskr/app/forms.py | a95000e55c58817e96d91e5e12019bd0c4e722ac | [] | no_license | altvec/RealPython | 11fa89d598eb1dfa9e72dab201f6fb5d25dd9299 | 785d75e848e1b1683729c1fad955c91e9a49467f | refs/heads/master | 2020-05-16T22:53:34.902400 | 2014-02-24T17:55:13 | 2014-02-24T17:55:13 | 15,607,611 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | from flask.ext.wtf import Form
from wtforms.fields import TextField, DateField, IntegerField, SelectField, \
PasswordField
from wtforms.validators import Required, EqualTo, Length
class RegisterForm(Form):
name = TextField('Username',
validators=[Required(), Length(min=3, max=25)])
em... | [
"sergey@bluehat.me"
] | sergey@bluehat.me |
501c644ba3834e2e558a62a63b4f006728b25e14 | 7b235cb1a8a9ceb3d7c8eaf5de38802472571bd3 | /src/tweets/mixins.py | f510c1dfce849ff3169141770036f23eee645140 | [] | no_license | frankchi24/tweetme | 6ee503a8ba5292ba973c93489facf2ec210428b0 | dcf1bbcf4636e0186d77149527d45139f7d855c3 | refs/heads/master | 2021-01-19T19:34:55.608531 | 2017-04-23T11:19:11 | 2017-04-23T11:19:11 | 88,424,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | from django import forms
from django.forms.utils import ErrorList
class FormUserNeededMixin(object):
def form_valid(self,form):
if self.request.user.is_authenticated():
form.instance.user = self.request.user
return super(FormUserNeededMixin, self).form_valid(form)
else:
form._errors[forms.forms.NON_FIELD... | [
"frankchi24"
] | frankchi24 |
b962819c756f2b0dbd3b4c1e85f3b19d43b9a362 | 66b6664af0af3b127fd113ce6d56e55d7d6817ca | /py/CountSmallerNumbersAfterSelf.py | 1ec00b3743a1ca91a68a012ae6ec464c9f553501 | [] | no_license | sangreal/PyLintcode | f830b2ab3891af9681272f0af12ab6040f8e8533 | 805d99b51df424b5b87dbc6ef2c4c5f8012f4434 | refs/heads/master | 2020-12-14T06:36:46.775392 | 2017-06-11T23:39:21 | 2017-06-11T23:39:21 | 46,391,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | class TreeNode(object):
def __init__(self, val):
self.left = None
self.right = None
self.leftcnt = 0
self.cnt = 1
self.val = val
class BinaryTree(object):
def __init__(self):
self.root = None
def insert(self, val):
if self.root is None:
self.root = TreeNode(val)
return 0
root = self.root
cn... | [
"Martyn.Ye@blackboard.com"
] | Martyn.Ye@blackboard.com |
7eec05535c7dd07001937f6a08559829da9b2c80 | 8ab55af30ed4197c0223b106df80ff528db8b719 | /Assignment1/Q2/question2.py | 1971f0f88e7c250aa3a359b5449b50e31f12c000 | [] | no_license | HosseinEbrahimiK/EE25737-Machine-Learning-Course-Assignments-Solutions | 71507f4eebaa24542a4ef478aa51c09a734cdb4a | ae206b7e172b864c056ab47a40545f5b786bfa11 | refs/heads/master | 2020-08-28T17:19:04.176450 | 2019-10-26T22:54:14 | 2019-10-26T22:54:14 | 217,767,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,755 | py | import operator
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import math
np.set_printoptions(threshold=np.inf)
np.set_printoptions(suppress=True)
if __name__ == "__main__":
train = pd.read_csv(r"train.csv", lineterminator="\n")
valid = pd.read_csv(r"validation.csv", linete... | [
"noreply@github.com"
] | noreply@github.com |
0562f764bb236e29224bef54377b2dd683328ece | 5e6bf5f13dd182baf3b844ed6998cabb72145bfa | /week07/7writeNumber.py | 67a484fcd2d23fadd56ac68c19a3197befc67c0d | [] | no_license | andrewjscott/PandsWork | 6dd8bf8b58536c04771205a5f09d659e21508907 | 5acaa0b40ba9ec4d3d2aec201051113b2574d779 | refs/heads/main | 2023-04-12T10:58:05.975349 | 2021-04-27T20:39:33 | 2021-04-27T20:39:33 | 331,331,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | # Writes a number to a textfile
# Author: Andrew Scott
filename = "count.txt"
def writeNumber(number):
with open(filename, "wt") as f:
f.write(str(number))
# Test
writeNumber(5)
| [
"g00398249@gmit.ie"
] | g00398249@gmit.ie |
0c53c8c3135c11ac44c7ed5ad9f0094da5ce9c6a | 839b26d2d837f256423c11908a2a3618ab8a23f3 | /dashboard/dashboard/update_bug_with_results_test.py | 7b4282e95a1380e535001797e6710cb237eb8f78 | [
"BSD-3-Clause"
] | permissive | Mdlglobal-atlassian-net/catapult | 79be5d4ec5d681c1d2f37ae83534a02f4a4ec72a | e9a386951413e7cbf983abf968626b2e5097fc38 | refs/heads/master | 2022-02-27T15:18:45.524790 | 2020-06-01T07:12:27 | 2020-06-01T22:57:01 | 268,672,431 | 0 | 1 | BSD-3-Clause | 2020-06-02T01:31:05 | 2020-06-02T01:31:04 | null | UTF-8 | Python | false | false | 2,403 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import unittest
import mock
from dashboard im... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
d5e57cb50a904e25b9144dd3f26a89e8b5d974b0 | 86677d95e7588b0afcb9868ef6e3623960016690 | /example/warping.py | 6ff61384cf49b041863c35ebf135af1defc2a850 | [] | no_license | pigeonligh/imgpr | d77cbf061977a0588ea607e3660c9890473ab080 | d7ed8397bf2ad948c5913bd7cf7af876f4f13a85 | refs/heads/master | 2021-05-23T10:54:36.289574 | 2020-04-21T11:52:29 | 2020-04-21T11:52:29 | 253,255,022 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | import imgpr as ip
image = ip.image.openImage("example.png")
x = ip.placeholder(shape=image.shape[:2])
y = ip.layers.warping(x, (400, 400), ip.warp.sphere, fix_color=(200, 200, 200))
with ip.Session() as sess:
output = sess.run(y, feed_dict={x : image})
ip.image.showImages([[image, output]])
| [
"pigeonligh@hotmail.com"
] | pigeonligh@hotmail.com |
851052faa0844695302437d571d870c4409cc072 | 3ef70fe63acaa665e2b163f30f1abd0a592231c1 | /stackoverflow/venv/lib/python3.6/site-packages/cryptography/hazmat/backends/openssl/x25519.py | 9aab25b86adb28ad744e0cc3682073d4dfda55a1 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | wistbean/learn_python3_spider | 14914b63691ac032955ba1adc29ad64976d80e15 | 40861791ec4ed3bbd14b07875af25cc740f76920 | refs/heads/master | 2023-08-16T05:42:27.208302 | 2023-03-30T17:03:58 | 2023-03-30T17:03:58 | 179,152,420 | 14,403 | 3,556 | MIT | 2022-05-20T14:08:34 | 2019-04-02T20:19:54 | Python | UTF-8 | Python | false | false | 5,580 | py | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
from __future__ import absolute_import, division, print_function
import warnings
from cryptography import utils
from cryptography.hazmat.... | [
"354142480@qq.com"
] | 354142480@qq.com |
a4d5eec11f772c206ecbf0c23228e225b2f3dc6f | a4326f505ee3a02010f27b1fcbe0fd29a0dc2f79 | /src/apps/trade/adminx.py | aa93b1c8448d00406669378177f549de78c65c3a | [] | no_license | liaobinhua/round_shop_python | 7a10cd4144635a56bb5bca47a4e984a2dae0e6f7 | 109b3e826c54e88aa4ab58c2591cb817c2c3c106 | refs/heads/master | 2020-03-23T14:24:01.543300 | 2018-08-28T02:48:21 | 2018-08-28T02:48:21 | 141,673,358 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | #!/usr/bin/python3
# encoding: utf-8
# Author:BinhuaLiao
# Created Time:Wed Jul 18 12:55:50 2018
# File Name:trade/adminx.py
# Description:
import xadmin
from .models import ShoppingCart, OrderInfo, OrderGoods
class ShoppingCartAdmin(object):
list_display = ['user', 'goods', 'nums']
class OrderInfoAdmin(object... | [
"liaobinhua1994@gmail.com"
] | liaobinhua1994@gmail.com |
aece9d76e4b7035aca28e25f7e349d02903b8188 | 22b39087e6a9b5b6fefa5b932dd1714355ddcddc | /projet/communitymanager/migrations/0010_auto_20210521_1301.py | dafa36d54a16f48a30ef592b864d5f434d01c566 | [] | no_license | axellecousinou/projetIndividuel | fd61490f93e7e27f57d20ef81f988f40717e235e | af30ce76841f03969171c254158ad0faebd26883 | refs/heads/master | 2023-05-06T20:20:44.710464 | 2021-05-27T06:33:15 | 2021-05-27T06:33:15 | 368,088,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # Generated by Django 2.1.15 on 2021-05-21 11:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('communitymanager', '0009_commentaire'),
]
operations = [
migrations.AlterField(
model_name='commentaire',
name='dat... | [
"axelle.cousinou@gmail.com"
] | axelle.cousinou@gmail.com |
be49066924cdc2d1d6f7494c04ac2adeb677fa89 | 4eeb0e76853ce88ee63bca5dcb0ca62d843a86ac | /contrib/bitrpc/bitrpc.py | 86dbade11a27b5ad47dc08143c699cb2490eb2fc | [
"MIT"
] | permissive | Kalkicoin/Kalkicoin | e4fb06803d6ca21a04381db16bef074e07df8d6b | 6e03399f8954477f43da70401d7999c7d14778a3 | refs/heads/master | 2020-04-23T20:38:16.883027 | 2019-02-19T09:45:44 | 2019-02-19T09:45:44 | 169,476,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,663 | py | from jsonrpc import ServiceProxy
import sys
import string
import getpass
# ===== BEGIN USER SETTINGS =====
# if you do not set these you will be prompted for a password for every command
rpcuser = ""
rpcpass = ""
# ====== END USER SETTINGS ======
if rpcpass == "":
access = ServiceProxy("http://127.0.0.1:6133")
e... | [
"kalkicoin.com@gmail.com"
] | kalkicoin.com@gmail.com |
dc10f10a17c4d4b305d118490a7ac475859ca22f | 19696860dd5b71877a2310b6106cb0bd303b03b9 | /compare_results.py | 58528121a9b60f50215608ab395f5cb9c82eb569 | [] | no_license | lorenzodalaqua/TCC | 2c3c0169447555dffd0bdf7498590be20bf2afdc | 530389a4fb8970f4de261ed73d44f15d66ef93fa | refs/heads/master | 2022-01-23T19:01:09.870924 | 2018-01-04T02:08:31 | 2018-01-04T02:08:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,694 | py | import os, glob, math
import numpy as np
from scipy.io import loadmat, savemat
import cv2
SCRIPT_PATH = os.path.dirname(os.path.realpath(__file__))
dataset_dir = os.path.join(SCRIPT_PATH,'dataset')
# Read ground truth
def ground_truth(name):
return os.path.join(SCRIPT_PATH, 'dataset', 'ground-truth','%s.exr' % na... | [
"lorenzodalaqua@hotmail.com"
] | lorenzodalaqua@hotmail.com |
71fa0ac2a1bc628676d9568ea30eb2a2900822aa | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02951/s416256902.py | e351c2216c8cf5ccf323b15b115c1f535f573c84 | [] | 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 | 85 | py | a,b,c=map(int,input().split())
if c-(a-b)>0:
print(c-(a-b))
else:
print("0")
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
96aa347b5f76f2db0199a18000c0f91940d0bcf7 | 7ec04fc867d0a48fffc05c65bff9217cfe211fe7 | /HW/myTest1.py | 9aeb7c4359629e0d3d917b41f10bd9d23c29e166 | [] | no_license | Cherry93/pythonPractic | 3b9d1f99803503073bbb2f3a58009665338bd278 | 2889183af6c9a01ab47895b23e2d6ce8c288fd4d | refs/heads/master | 2021-08-31T16:41:56.655989 | 2017-12-22T03:53:18 | 2017-12-22T03:53:18 | 115,008,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | import mytool.supperTurtules
print(mytool.supperTurtules.drawLine(-50,-50,50,50,10,"red")) | [
"358544104@qq.com"
] | 358544104@qq.com |
8f926e08fc1dc61bbc483c5c73e906cf776d5658 | 6930a434c0506d44bf8a8e81cb86e95c219c3a77 | /python/day19/code/bool.py | dbd9efd62a9608472ca8da6ae9bf5321b9911546 | [] | no_license | Conquerk/test | ed15d5603538340559556c9e0f20cc61ad3e4486 | 7ff42c99b8a2132c6dd1c73315ff95cfef63a8f6 | refs/heads/master | 2020-04-19T01:47:28.322929 | 2019-01-28T01:52:00 | 2019-01-28T01:52:00 | 167,882,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | class a:
# def __bool__(self):
# print("bool方法被调用")
# return False
def __len__(self):
print('len被调用')
return 5
x=a()
print(bool(x))
if x :
print("x 为真值")
else:
print("x 为假值") | [
"tarena@tedu.cn"
] | tarena@tedu.cn |
ebca6a39db8c0a22574b611a0271ac7bc9a10d1d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02791/s398923350.py | 525b6e69293b56cf550f10a02c0494389a8a6380 | [] | 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 | 351 | py | import sys
readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)
def main():
N = int(readline())
P = list(map(int, readline().split()))
cur = N + 1
ans = 0
for x in P:
if cur > x:
ans += 1
cur = x
print(ans)
if __na... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b5ce5ba97a8ac60cc450a94187382569d3dcd6f3 | 9ad765ac96f6534addcd44d55527e4196f4f6603 | /leetcode/Num_23_Merge_k_Sorted_Lists.py | eaa49115ea008a0d5a002ec1d769509062768a66 | [] | no_license | salalals/ojPython2 | 134838c21f75afa23fc99b5398e9b0564bc7bb5f | f61a7d7af02bc6f3474dd2832c21c2c6ea5635b8 | refs/heads/master | 2021-09-01T01:44:17.254272 | 2017-12-24T07:22:59 | 2017-12-24T07:22:59 | 111,899,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,460 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def mergeKLists(self, lists):
"""
:type lists: List[ListNode]
:rtype: ListNode
"""... | [
"lshuo@amazon.com"
] | lshuo@amazon.com |
6a9a55f22734375ee70c9e3c7cb573722cee4d81 | b56b242c19fc610448952e7420877ff64ba599be | /off.py | 0935fdd547ff44139391cc383361346078535b4e | [] | no_license | brimus-org/RPi | c3379c4927c717731f25c693d686a54038bfcc65 | 8cd37f1a41ca776c727eb7b7f027d5b974874c59 | refs/heads/master | 2022-12-08T09:57:35.733067 | 2022-12-05T04:49:22 | 2022-12-05T04:49:22 | 72,362,046 | 0 | 1 | null | 2022-05-26T23:02:59 | 2016-10-30T16:48:44 | Python | UTF-8 | Python | false | false | 249 | py | #!/usr/bin/python
import RPi.GPIO as GPIO
relay_pins = {'one':18, 'two':16}
GPIO.setmode(GPIO.BOARD)
GPIO.setwarnings(False)
for relay_pin, board_pin in relay_pins.iteritems():
GPIO.setup(board_pin, GPIO.OUT)
GPIO.output(board_pin, GPIO.HIGH)
| [
"brian@brimus.org"
] | brian@brimus.org |
4fa5099c6eb023c1143c265a0c10b9eb894035fe | b5491823114f523a12f98727554a4c475079c3cb | /venv/day13_contiguous_array.py | b37b79a69d41595008675d08c3972c64688788b0 | [] | no_license | aaron6347/leetcode_April30Days | 2e36f04d2fabd24ab2cfe6c49718fb44201d8732 | a47de1384d7c2d7b6dc832e17431263f410fa8a8 | refs/heads/master | 2022-10-01T03:44:19.553640 | 2020-04-29T13:31:13 | 2020-04-29T13:31:13 | 252,848,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | """day13_contiguous_array.py
Created by Aaron at 13-Apr-20"""
from typing import List
class Solution:
def findMaxLength(self, nums: List[int]) -> int:
mx=0
count=0
dict={0: -1}
for x,val in enumerate(nums):
count-=1 if val==0 else -1
if count in dict:
... | [
"49943930+aaron6347@users.noreply.github.com"
] | 49943930+aaron6347@users.noreply.github.com |
3387f2a5f7b185d05886ac20cd79ccf316dbd9e6 | 79c7848ec89782a1eaf481a61dfb216e25845bfe | /ejercicio1.py | a234ae2893c6b3a848ad603852f2d8fbd87da4d2 | [] | no_license | jronquillog2/Ejercicios-de-practica-Estructura-de-datos- | c7b400013d09a4275abc0b4cd2d9f3ce4f5761bb | 21dad00cf573a72271b17951ecc877817ffaacff | refs/heads/main | 2023-08-24T12:44:16.286836 | 2021-09-18T21:30:55 | 2021-09-18T21:30:55 | 407,971,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | import os
print("""***********************************************
Veamos si el numero que ingreso es par o impar
***********************************************""")
numero = int (input ("Ingresa un numero: "))
if numero%2==0:
print ('El numero es par')
else:
print ('El numero es impar')
print ()
os.s... | [
"noreply@github.com"
] | noreply@github.com |
4a66f501d21dc0e21b25cd557749a229c108d7bf | f85ce2baf753d65e8666bbda062acbdb0ccdb5ad | /leetcode/venv/lib/python2.7/site-packages/pyutil/common/multi_proxy.py | 4464833378477d0125b57f50987802b986064008 | [] | no_license | KqSMea8/PycharmProjects | 2a9d3fa59d08c77daf63be427da27695d4dea471 | c592d879fd79da4e0816a4f909e5725e385b6160 | refs/heads/master | 2020-04-14T11:54:56.435247 | 2019-01-02T10:15:36 | 2019-01-02T10:15:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | # coding=utf-8
__author__ = 'qiukun'
class MultiProxy():
"""
typical usage:
p = MultiProxy([a, b])
对 p 的方法调用会应用到 a, b,返回 b(最后一个对象)对应方法的返回值
e.g.
buf = p.r()
p.write()
"""
def __init__(self, objs):
"""
:param objs: a iterator of objs to be proxyed.
:return: th... | [
"zhangyifeng@bytedance.com"
] | zhangyifeng@bytedance.com |
e38da11db7b7db90bea298e085262116fa938bd7 | d08630bf4d289491d1d12acc66a8064af159c2a4 | /main.py | d987ab1d257dcc3dc27af455378d6bd48fc16353 | [] | no_license | mauricioarauujo/Line-Following-Robot-OpenCV | 1ed8d7054aadb67a98ebd7a6b4fc281f9c81adaa | e017fa78e8538f5278ff62dc829f7a6cbf5300a3 | refs/heads/main | 2023-02-26T17:53:57.629771 | 2021-01-27T16:53:36 | 2021-01-27T16:53:36 | 333,495,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py | import cv2
from funcoes import TrataImagem
def teste_img(img_path):
img = cv2.imread(img_path)
img = cv2.resize(img, (320, 240))
Direcao,QtdeLinhas = TrataImagem(img)
info_direcao = "Direcao : " + str(Direcao)
info_linhas = "Quantidade de Linhas : " + str(QtdeLinhas)
cv2.putText(im... | [
"noreply@github.com"
] | noreply@github.com |
09b61a4a638303e4515403bfab686636298aa68e | f4b536c0a2a40aa1f345ad19b3e681c49f0ab8a2 | /Cap17/ejer17_03.py | 117f1dee5252360db19251e0aa9953ee27184702 | [] | no_license | miguelcaste/cursoPython | 32e00bbb05a16ac537137142984092c9ae36f282 | 25f65a31248d3b46eb08b14a941917fdc1a86b2f | refs/heads/master | 2020-08-22T10:01:51.096330 | 2019-10-22T08:12:09 | 2019-10-22T08:12:09 | 216,370,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,025 | py | # -*- coding: utf-8 -*-
"""
Código fuente de ejemplos y ejercicios del libro
"Curso de Programación Python"
(C) Ediciones Anaya Multimedia 2019
Autores: Arturo Montejo Ráez y Salud María Jiménez Zafra
"""
class Planta:
""" Clase Planta, con atributos básicos """
def __init__(sel... | [
"secreto747@hotmail.com"
] | secreto747@hotmail.com |
e2aee50faf573f69f4da698009ae61a0a82aeba5 | 4dec3992820c5f381410a05e827b0753477099c1 | /app_dir/main/post_functions.py | 2f8e9042ab7d131a36f8332b5f867407d07ebfcd | [] | no_license | shakiz/eud_environment_4_0 | 5e4d19ba456a9e0ea2b343eaf6feaabe44842b86 | dbe10bcc7a06619f007a96757b81035816595608 | refs/heads/master | 2021-07-11T14:44:25.583072 | 2020-10-22T14:44:58 | 2020-10-22T14:44:58 | 213,449,397 | 4 | 2 | null | 2019-12-28T07:52:06 | 2019-10-07T17:49:15 | Python | UTF-8 | Python | false | false | 10,539 | py | from __future__ import print_function
import json
from django.http import HttpResponse, JsonResponse, request
from googleapiclient import errors
from httplib2 import Http
from oauth2client import file, client, tools
from apiclient import discovery
from oauth2client import client
from oauth2client import tools
from oau... | [
"activities335@gmail.com"
] | activities335@gmail.com |
116c8f86cfaa52e4e72d3024334d871d5eb5ebab | 8311a0bcf3f2126d622f928483ce2ea9d6a7cb0d | /Code/Matthew/django/mysite/polls/migrations/0001_initial.py | 967a82248a77534828deedc67a2aec779b4c3227 | [] | no_license | guam68/class_iguana | 857247dca0ff732d11f7fb0d3dc761ec83846c94 | e4359d32dfe60423a643c21df5636669016ad2c0 | refs/heads/master | 2020-05-01T06:33:22.611127 | 2019-03-13T23:07:41 | 2019-03-13T23:07:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | # Generated by Django 2.1.5 on 2019-02-07 18:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Choice',
fields=[
... | [
"flux2341@gmail.com"
] | flux2341@gmail.com |
aa59fe19a4acba2c251b00e81b73e30f348144c8 | 9e20f7e71faa2853516f88ee7672e1323d12e8f7 | /seq_lda/algorithms/__init__.py | d3ed380d3428aab45ed45e014fe016bca4131374 | [] | no_license | e2crawfo/seq_lda | 3270a07781369d318c0cf2e75cdbfee96423c52d | ebe3caea127575f6e54884bf0d32ac6d4a876d4e | refs/heads/master | 2020-09-17T18:55:19.562861 | 2017-03-28T16:10:52 | 2017-03-28T16:10:52 | 67,877,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | from .markov_lda import generate_markov_chains
from .lda import LDA
from .mssg import MSSG, SingleMSSG
from .baseline import OneByOne, Aggregate
| [
"eric.crawford@mail.mcgill.ca"
] | eric.crawford@mail.mcgill.ca |
d2e9fa7e362c0442160d5e6dbfb3618d5a9aa775 | 85eb26b6c5c77ddbf77dc7dec8e8758c2364e0cc | /rating/admin.py | 92c26ae3fec9eeef080b0b85388ed976b57c747d | [] | no_license | koutbo6/djc_2ndproj | 3e5cdd0defaad78ef3076b6a374de7002d0140e1 | 743bb91f46cbc34ac9a794cae46358bec352cb5a | refs/heads/master | 2021-01-25T05:35:50.536669 | 2015-03-24T08:06:20 | 2015-03-24T08:06:20 | 16,167,927 | 0 | 0 | null | 2014-03-04T13:40:44 | 2014-01-23T09:24:24 | Python | UTF-8 | Python | false | false | 478 | py | from django.contrib import admin
from .models import Product, Rating
class RatingAdmin(admin.ModelAdmin):
raw_id_fields = ('product', )
class ProductAdmin(admin.ModelAdmin):
# Fields to show in list view
list_display = ('name', 'url', 'category', )
# Fields we can filter on
list_filter = ('catego... | [
"m.almarzouq@kbsoft.com.kw"
] | m.almarzouq@kbsoft.com.kw |
585c14c951b5877f44b9d6206f75653ccf5d08b0 | b991be1a9d50a5be503fda0439d2c120f0a1a610 | /Django_member_add_field/accounts/views.py | 5ef693376b1ecb2188b28af53286687bd658c040 | [] | no_license | qkrrkgus14/QuantGo | 37ff31d36455fb13bc51d273000e78f59a12ce32 | 49b013e055ed10d1596a1d087e5c6b14a82f6c9a | refs/heads/master | 2021-01-20T07:35:33.268365 | 2018-10-24T09:45:03 | 2018-10-24T09:45:03 | 101,545,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | #accounts/views.py
from django.conf import settings
from django.shortcuts import redirect, render
from django.contrib.auth.decorators import login_required
from django.contrib.auth.forms import UserCreationForm
from .forms import SignupForm
#임시 홈페이지 view, accounts 앱에는 홈페이지 구성 필요없음
#다른 앱 만들지 않았고 보여드리기 위함
def homepage(... | [
"qkrrkgus15@gmail.com"
] | qkrrkgus15@gmail.com |
6481479940152de71ce36d4b6ae71b5df19bb45d | 4c11038b5393e154223888ed64b1eb72e1446884 | /introduction/P0/Task3.py | 0dd7ad0688811e4a67ea67f29c8256041f20f3ac | [] | no_license | elliebui/technical_training_class_2020 | bbe56b142b6ec49e001f2689890cb5e5744f6272 | 2746c2d5eb9deed80325e330cdb5f8ebb12b2ec8 | refs/heads/master | 2022-10-31T13:56:02.493372 | 2020-06-20T17:50:38 | 2020-06-20T17:50:38 | 249,451,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,076 | py | """
Read file into texts and calls.
It's ok if you don't understand how to read files.
"""
import csv
with open('texts.csv', 'r') as f:
reader = csv.reader(f)
texts = list(reader)
with open('calls.csv', 'r') as f:
reader = csv.reader(f)
calls = list(reader)
# PART A
def extract_area_code(number):
... | [
"ellie@gotitapp.co"
] | ellie@gotitapp.co |
ccccc364d5e5480a14cd01e9facbb6cb9445987c | 3e24611b7315b5ad588b2128570f1341b9c968e8 | /pacbiolib/pacbio/pythonpkgs/pbtranscript/lib/python2.7/site-packages/pbtranscript/ice/make_input_fasta_fofn.py | 77356562bf1686d47a5b7653eb24734ce3d41869 | [
"BSD-2-Clause"
] | permissive | bioCKO/lpp_Script | dc327be88c7d12243e25557f7da68d963917aa90 | 0cb2eedb48d4afa25abc2ed7231eb1fdd9baecc2 | refs/heads/master | 2022-02-27T12:35:05.979231 | 2019-08-27T05:56:33 | 2019-08-27T05:56:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,072 | py | #! python
"""Given input.fofn, for each movie.bas|bax.h5 file in the fofn,
call pls2fasta to generate a movie.bax|bas.h5.fasta file in a
specified directory, and then trim both ends of each read in fasta
files. Finally, add all these fasta files to fasta_fofn
(e.g., input.fasta.fofn).
"""
import logging
import sys
imp... | [
"409511038@qq.com"
] | 409511038@qq.com |
03682fd76a256924aec87d008f42f326914cc1a7 | d8da8ea55659e893d890917045c21f412c068738 | /recipes/migrations/0014_auto_20170907_0228.py | a83bc18836f2b0b0f0f9acfb42d3199b61edf6fd | [] | no_license | ellenmccullagh/mealplanner | da1dde5f4ec9a83590e199abd1d15abbf541f158 | 367c13b6de3a4083c3cf6de4921ff8f1f806f085 | refs/heads/master | 2021-01-19T19:45:10.452767 | 2017-09-07T02:33:32 | 2017-09-07T02:33:32 | 101,207,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-09-07 02:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recipes', '0013_remove_recipeingredient_ammount_text'),
]
operations = [
mi... | [
"ellenmccullagh@gmail.com"
] | ellenmccullagh@gmail.com |
b2dbd956720c0a0fee257e67a5c7ec6c003ba574 | 98e98abd5d8f6fe5383044e515b54d0398d31447 | /strings/15_longest_common_prefix_in_an_array.py | 2fd38c4387603043beeb98e810ac9ce64b57abaf | [] | no_license | Vissureddy2b7/must-do-coding-questions | c5116d2fa1ea515c6944e5a4a0c9bb94883bd38b | e8a4ba7d70d51584bc1d79bcc33cb3f802479c87 | refs/heads/master | 2021-07-22T19:08:20.554593 | 2017-11-02T08:32:50 | 2017-11-02T08:32:50 | 113,808,904 | 1 | 0 | null | 2017-12-11T03:43:29 | 2017-12-11T03:43:28 | null | UTF-8 | Python | false | false | 866 | py | # Input:
# 2
# 4
# geeksforgeeks geeks geek geezer
# 3
# apple ape april
# Output:
# gee
# ap
t = int(input())
for _ in range(t):
k = int(input())
string_arr = [ele for ele in input().split(" ")]
if k == 1:
print(string_arr[0])
continue
arr = []
small_str_len = len(string_arr[0]... | [
"priyatham.v@cricbuzz.com"
] | priyatham.v@cricbuzz.com |
f46e943b3560d96ae15c41db64f86f4863e55f8b | af167fd89212aaa12254df0cd5c1518ffb4fb988 | /chapter6/if_elif_use.py | ea8f14f81a37bb32bc576394a933d3763fb60a90 | [] | no_license | liuyuzhou/learnpythontoproject | e7bf0c2dc7b92f6ac69d49ae5f6603dc51c04441 | a87691ffd199ba62ad8ceb6ae409b873697c804d | refs/heads/master | 2023-04-09T21:07:04.000642 | 2021-04-19T04:37:25 | 2021-04-19T04:37:25 | 310,868,552 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | if (num := 10) > 10:
print('num的值大于10')
elif 0 <= num <= 10:
print('num的值介于0到10之间')
else:
print('num的值小于0')
| [
"lyz@lyzdeMacBook.local"
] | lyz@lyzdeMacBook.local |
99b4337e7934e957fe1496cda64778117b102922 | bc2a85e8dd9244f89e2f1801cc19d570a87c74ed | /Leetcode/Algorithms/Easy/Arrays/MeetingTime.py | 4e389ed460c2d8ac9a19f0e4c01beffd544cb5ce | [] | no_license | christian-miljkovic/interview | 1cab113dbe0096e860a3ae1d402901a15e808e32 | 63baa1535b788bc3e924f3c24a799bade6a2eae3 | refs/heads/master | 2023-01-11T14:53:09.304307 | 2020-02-04T17:35:12 | 2020-02-04T17:35:12 | 193,549,798 | 0 | 0 | null | 2023-01-05T05:56:15 | 2019-06-24T17:28:50 | Python | UTF-8 | Python | false | false | 1,944 | py | """
Time Planner
Implement a function meetingPlanner that given the availability, slotsA and slotsB, of two people and a meeting duration dur, returns the earliest time slot that works for both of them and is of duration dur. If there is no common time slot that satisfies the duration requirement, return an empty array... | [
"cmm892@stern.nyu.edu"
] | cmm892@stern.nyu.edu |
c0c2166d1a614fb9c14325a21fda4c3df736ef1f | 3b9338d99cf8090387418e32ca81617f072c39fb | /waflib/extras/dumbpreproc.py | bc4b2d04061ab96a7da92066adb4f81e8c95e0e8 | [] | no_license | sillsdevarchive/wsiwaf | 8ca14c286bafceb9ee6fad740b64ad7131282dc3 | 2dcddafc3602a7220acbe995df4ba85abb06b767 | refs/heads/master | 2020-12-30T17:10:21.701380 | 2017-05-12T05:12:17 | 2017-05-12T05:12:17 | 91,052,898 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2010 (ita)
"""
Dumb C/C++ preprocessor for finding dependencies
It will look at all include files it can find after removing the comments, so the following
will always add the dependency on both "a.h" and "b.h"::
#include "a.h"
#ifdef B
#include "b.h"
... | [
"tnagy1024@f0382ac9-c320-0410-b3f0-b508d59f5a85"
] | tnagy1024@f0382ac9-c320-0410-b3f0-b508d59f5a85 |
987fa66a52474194186e6d244ee565863549eaf6 | 53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61 | /.history/EMR/EMRryzd_2_20190507094011.py | d2f51d07e0695ada05beddc4e3e39e063c14d700 | [] | no_license | cyc19950621/python | 4add54894dc81187211aa8d45e5115903b69a182 | d184b83e73334a37d413306d3694e14a19580cb0 | refs/heads/master | 2020-04-11T20:39:34.641303 | 2019-07-02T12:54:49 | 2019-07-02T12:54:49 | 162,078,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,283 | py | #-*- coding: UTF-8 -*-
#本文件用于数据清洗
import time
import math
import os
import sys
import os, os.path,shutil
import codecs
import EMRdef
import re
emrtxts = EMRdef.txttq(u'D:\DeepLearning ER\EHRryzd')#txt目录提取
hxjb = open(r'D:\python\EMR\hxjbml.txt',errors="ignore")#呼吸疾病目录
hxjbdic = hxjb.readlines()#读行
ryzd=[]
for emrtxt... | [
"1044801968@qq.com"
] | 1044801968@qq.com |
f1e22e913228c9b6efa69cc8b4a29b3187cfb868 | 4167ac3c4a5fe2711d811532fde04beb2153fb5e | /project1.py | ae9a62fd1bae91633fcbbd36a20e11ed2e574166 | [] | no_license | naveen-droid/Python | d37dcfc0403fb599a30b7744c40a0b617d2120a5 | 5d019ecd5fc3ae080b45667ccf13096d2137fe0d | refs/heads/master | 2022-11-26T20:46:09.042826 | 2020-08-06T17:20:10 | 2020-08-06T17:20:10 | 285,614,181 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,514 | py | #create a file
"""
steps->
#open a file
#give name+extension
#click enter """
fo=open("D:\\exm.txt",'w')
fo.write("Hello!!!")
#to write multiple lines
# create a list of item.
line_list=["How are you? \n","How is the weather there? \n"]
fo.writelines(line_list)
#update a file
"""
steps->
To u... | [
"noreply@github.com"
] | noreply@github.com |
c7ba52178b5a6294d93dde138ff43a8cc3b71604 | 8b0fe8316d93cc67ec9afc7ff5ba4e5b80374af6 | /setup.py | 9c77c09f7a7538209f3eb68ecf0fe94023aea924 | [
"MIT"
] | permissive | krsh-37/Medical-Chatbot | f571461a6ae640685db684c0ed19c88f760241d9 | a3e362f275676300fb6455806a83ce5db1dc4707 | refs/heads/master | 2023-01-07T05:40:04.232503 | 2020-05-12T22:14:47 | 2020-05-12T22:14:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | import os
import subprocess
import time
from psutil import process_iter
from signal import SIGTERM
from dotenv import load_dotenv
from termcolor import colored
def killProcesses():
try:
for proc in process_iter():
for conns in proc.connections(kind='inet'):
if conn... | [
"elvisejsondsouza57@gmail.com"
] | elvisejsondsouza57@gmail.com |
2f5102451ece6f62c9f6c1752656e585b759e574 | 3d7d131fafa4198671c211317457d2f3d1f13465 | /Sample code/WebScraper/webScraping.py | 05891bf0ba790b186cb553c9d0d1c619e0838673 | [] | no_license | felix-hh/Sample-Code | fbbc45a2a343d87957f1f2a66f78a785a6564df0 | 3285c0789aaa62d35af1d011d79361761946dfc2 | refs/heads/master | 2020-09-16T05:25:58.041867 | 2019-11-23T23:36:13 | 2019-11-23T23:36:13 | 223,666,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | import webbrowser, requests, bs4, sys
search = " ".join(sys.argv[1:])
| [
"noreply@github.com"
] | noreply@github.com |
be6ac3323527ef02eb9d8a966231f7f830aaed04 | 43ff15a7989576712d0e51f0ed32e3a4510273c0 | /tools/pocs/bugscan/exp_885.py | 701317e53735eabbc5a8dcc364e6082aba740f46 | [] | no_license | v1cker/kekescan | f2b51d91a9d6496e2cdc767eb6a600171f513449 | 3daa1775648439ba9e0003a376f90b601820290e | refs/heads/master | 2020-09-19T16:26:56.522453 | 2017-06-15T02:55:24 | 2017-06-15T02:55:24 | 94,495,007 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | # -*- coding: utf-8 -*-
from dummy import *
from miniCurl import Curl
curl = Curl()
#/usr/bin/python
#-*- coding: utf-8 -*-
#Refer http://www.wooyun.org/bugs/wooyun-2015-0110861
#__Author__ = 上善若水
#_PlugName_ = 08CMS_sql Plugin
#_FileName_ = 08CMS_sql.py
def assign(service, arg):
if service == "08cms"... | [
"liyueke@huobi.com"
] | liyueke@huobi.com |
7cf4dea5926d44f885cecba2b0883eed7e3bdea5 | 26fb7dd213f4f911a2422634873905a92d15b31e | /data/convert_metro_yolo_to_retinanet.py | 52a9b26c183ab79a9ade58937bb2628098c8b715 | [] | no_license | dreamway/pytorch-retinanet | f958a22f04ddf8db584a41898910d3159c4c52e0 | 42c2bd7064165d97dbe52ce5d0c3f5d011775e19 | refs/heads/master | 2020-03-23T07:54:52.921443 | 2018-08-08T11:03:54 | 2018-08-08T11:03:54 | 141,296,803 | 2 | 0 | null | 2018-07-17T13:54:34 | 2018-07-17T13:54:34 | null | UTF-8 | Python | false | false | 1,831 | py | import shutil
import os
import glob
yolo_anno_dir = './metro/ImageSets/'
origin_jpegimgs_dir = './metro/JPEGImages/'
target_retina_dir = './retina-metro/'
import cv2
#width = 1920
#height = 1080
width = height = 416
target_train_file = './metro_trainval.txt'
def convert_yolo_to_VOC(yolo_fmt):
## Convert from ((... | [
"jingwenlai@163.com"
] | jingwenlai@163.com |
4363b54545714302d39c3238cac7ae35c56bbd90 | 3b3dbdcc63f86b581c86ce061b05826f4779a062 | /02211504919_VARUNVERMA_ASSIGNMENT_3.py | 834a3e8580c55399dcf103e5433bc98fcbaf1152 | [
"MIT"
] | permissive | varunverma760/assignments | 95e7b88031a003c6374af7c38ff2e1db64200ea6 | e38dafd13666e4fc05813e28bcfc26ca1c11a4bc | refs/heads/main | 2023-06-30T19:32:13.903864 | 2021-07-29T07:02:26 | 2021-07-29T07:02:26 | 390,009,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | for Number in range (1, 101):
count = 0
for i in range(2, (Number//2 + 1)):
if(Number % i == 0):
count = count + 1
break
if (count == 0 and Number != 1):
print(" %d" %Number, end = ' ') | [
"noreply@github.com"
] | noreply@github.com |
ceacc00316792c5da2ae16a156d907e35f394d0a | 584ccd55127b337d7db9f3efdd0841f6a130d1c4 | /binance.py | 7fa87024ce0fc2c60506de29b315b5c26c38361e | [] | no_license | LouisB739/orynbinance | d9fd6122323aa35ec33c7f4c7a5410fb5f32c82f | f17c389d9ce11b6d707fab6ae1e06255c25d1853 | refs/heads/master | 2020-08-23T14:58:22.867877 | 2019-11-07T16:05:49 | 2019-11-07T16:05:49 | 216,645,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,094 | py | import time
import json
import hmac
import hashlib
import requests
from urllib.parse import urljoin, urlencode
load_dotenv()
SECRET_KEY = 'DG7lgFt7IOdBboatACSbTqB4ip5cjqeaFpKpAkdSneYep64jYVngx4dJu9FbQSwV'
BASE_URL = 'https://api.binance.com'
API_KEY = os.getenv('BINANCE_API_KEY')
headers = {
'X-MBX-APIKEY': API_K... | [
"l2525b@gmail.com"
] | l2525b@gmail.com |
e20173b5beefb56372fbe00096887d3b82481a41 | c048db77e48a95b9ce5a0fc26ba2f6d7d65ac4ca | /blog/migrations/0002_post_image.py | 74bee18abb3e88d54aa4c9382027ab13d729cca8 | [] | no_license | csesa-shirazu/django-telegram-send-message | 4b5cf79a98f61a44a92e1f8e632a61f9e159c7fb | c4509466668506f34e0f2f92ece600c5d52e17f9 | refs/heads/master | 2020-04-25T00:06:06.958122 | 2019-02-24T17:26:14 | 2019-02-24T17:26:14 | 172,367,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | # Generated by Django 2.0.9 on 2019-02-23 11:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='post',
name='image',
field=mod... | [
"mohamadbastin@gmail.com"
] | mohamadbastin@gmail.com |
843a758bbc8cbb2345292b2c01cc1aa088f017c1 | 2e996d6870424205bc6af7dabe8685be9b7f1e56 | /code/processing/20180416_r1_O2_DBL_titration_flow/analysis.py | dc042537c928aecefafd074475400c7461d122e9 | [
"CC-BY-4.0",
"MIT"
] | permissive | minghao2016/mwc_mutants | fd705d44e57e3b2370d15467f31af0ee3945dcc2 | 0f89b3920c6f7a8956f48874615fd1977891e33c | refs/heads/master | 2023-03-25T03:56:33.199379 | 2020-06-26T20:09:00 | 2020-06-26T20:09:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import glob
import sys
sys.path.insert(0, '../../../')
import mut.viz
import mut.thermo
colors = mut.viz.pub_style(return_colors=True)
colors = list(colors.values())[::2]
# Set the experiment constants.
DATE = 20180416
RUN_NO = 1
MUTANT = 'DBL'
OP... | [
"NathanB@dhcp-2-212.caltech.edu"
] | NathanB@dhcp-2-212.caltech.edu |
043d7c2d33a3caed4dcd1de83693770fc94e8648 | 185efa93a14723b15443f0d3f1679460749930e5 | /pyvenusgps/__init__.py | 91d4cae55f1d17c30a822637964781d01505e4b3 | [] | no_license | zawadsoon/pyvenusgps | 0a6a217674ba051e67b193ece8d913c68d42f5dd | 4c8091db0b0372fe6f37da4794f93f9bf6051550 | refs/heads/master | 2020-04-06T19:40:06.354443 | 2018-11-15T20:06:56 | 2018-11-15T20:06:56 | 157,744,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | from .venus_gps import VenusGPS
from .message_parser import MessageParser
| [
"zawadsoon@gmail.com"
] | zawadsoon@gmail.com |
d37396c0820430ebea34e13e710b7d62c26e5327 | 0aa11b674b1d6ced07f2f3682ffadbbd35caa25c | /roster_project/settings.py | 5e736961bbef68c0239855406cd66f06d03ae74d | [
"MIT"
] | permissive | krishnaprasanthg/roster-wizard | 2b5675ea2283884600298df3805cc9c470a4602b | 85106e25d3a2a10ac3dc6579eab24391781cd07a | refs/heads/master | 2022-12-04T12:54:15.718881 | 2020-08-25T02:02:19 | 2020-08-25T02:02:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,829 | py | """
Django settings for roster_project project.
Generated by 'django-admin startproject' using Django 2.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
impor... | [
"greg.cowell@gmail.com"
] | greg.cowell@gmail.com |
566bee6a596be1e00e9a1cbf9bd2ff3e49a432d1 | e58b9aac45bc5ecac1839d6670784d06b40d9450 | /src/json_expr.py | ff022f603edfcd399f3c2a9e86621b0d62535a74 | [] | no_license | kglavin/AppAccelerationProto | 131174f3a1f6fd966a3f6fb8ae8fb9ae072e8c44 | 2abc45e7023c37964f557313ef375ceee2b82d1b | refs/heads/master | 2022-02-19T08:26:05.465384 | 2019-09-06T21:24:35 | 2019-09-06T21:24:35 | 206,172,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py |
import json
import struct
if __name__ == "__main__":
shared_secret = b'here is a secret'
id = 1111
h = hash(shared_secret + str(id).encode())
a = { 'id': id, 'host': 'www.google.com', 'port': 443, 'user':'kglavin', 'hss': h}
s = json.dumps(a)
l = len(s)
print(s, l)
magic = 1234
st = struct.pack('hh',magic,... | [
"kglavin@gmail.com"
] | kglavin@gmail.com |
a490ea4aeb8ad688b1f4ddf4de67a082663ecf5e | d7a0445eba055633b7fba6ba27f671ec1a1e10d4 | /tests/chef/test_api.py | 23b9e9e158c86ccf9723e35af7d5389d60fe5277 | [
"MIT"
] | permissive | semio/ddf_utils | 454f9042ab0cd23e70e410ca74bed170ccf4e9ae | 3346bc0677f59d84a7887153d99f96ad1abdf7ba | refs/heads/master | 2022-05-26T04:38:59.326218 | 2022-05-15T05:37:26 | 2022-05-15T05:37:26 | 56,195,874 | 3 | 1 | MIT | 2018-03-20T02:20:08 | 2016-04-14T00:46:02 | Python | UTF-8 | Python | false | false | 9,420 | py | """testing chef api"""
import os
import tempfile
import pytest
from ddf_utils.chef.api import Chef, ingredient_from_dict, run_recipe
from ddf_utils.chef.exceptions import ChefRuntimeError, IngredientError
from ddf_utils.chef.model.ingredient import ConceptIngredient, EntityIngredient, DataPointIngredient
wd = os.p... | [
"prairy.long@gmail.com"
] | prairy.long@gmail.com |
f39fa2ab78115bdbba24fcc80358fea956d06fd7 | ec0859395abd7b18841f378df2bf7e2dd0e07975 | /dao/RecommendDao.py | 6c7abf89a9f9b551d16c14c067d97b5c0543fd92 | [] | no_license | herbertguoqi/drivercommend | fa99741fea3d8a5425ab3838e98a6b62a91537d3 | 2521886eba3ec3dee95716a6399da4054a12e4b8 | refs/heads/master | 2020-03-30T03:34:09.926369 | 2018-10-07T04:04:39 | 2018-10-07T04:04:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,991 | py | # -*- coding: utf-8 -*-
from model.Recommend import Recommend
from sqlalchemy import create_engine, text, func
from sqlalchemy.orm import sessionmaker
import time
class RecommendDao(object):
def __init__(cls, Recommend):
cls.Recommend = Recommend
engine = create_engine("mysql+pymysql://r... | [
"guoqi47@163.com"
] | guoqi47@163.com |
3764f245460f93818a4c736fdf6ab4e29e73db48 | b0b797a9774326f78b950803db0f089126c91178 | /src/models.py | 79c9e2bbbc92baaa79cf570216dc39302a7bc5ff | [] | no_license | AlinaGalenina/ML_HOMEWORK1 | 6e7359f7b887c3bdba6942ed01c6bbf953aa6a9f | 73a1199360f362e6e4377bdce4f15603d50067d6 | refs/heads/master | 2022-12-29T13:24:47.997998 | 2020-10-09T19:13:03 | 2020-10-09T19:13:03 | 302,645,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,336 | py | from tqdm import tqdm, tqdm_notebook
from .stat_funcs import *
from .common import in_ipynb
class LinearRegressionWithGd:
def __init__(self):
self.betas = []
self.bias = 0
self.epoch = 0
self.learning_rate = 0.05
self.batch_size = 10
def __regression(self, x):
... | [
"galienina99@mail.ru"
] | galienina99@mail.ru |
9b90f2c929a53028011062b039a2768caf7a97a0 | 7381042b89af4ca26a275569f02065bb5d928ef8 | /course/migrations/0008_auto_20210413_1037.py | b50c2613c805eedbb6c46a64f9e6b0235c256505 | [] | no_license | Thooooor/SourceHub | 19b420dd42320241420fbff174b54eed38c44417 | 119756bbf678d0365e654b2c69b5e36bfa68a1fa | refs/heads/master | 2023-04-03T06:58:28.961505 | 2021-04-13T15:18:26 | 2021-04-13T15:18:26 | 355,985,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | # Generated by Django 3.1.7 on 2021-04-13 10:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course', '0007_auto_20210413_0905'),
]
operations = [
migrations.AlterField(
model_name='course',
name='semesters',
... | [
"46197373+Thooooor@users.noreply.github.com"
] | 46197373+Thooooor@users.noreply.github.com |
271dad85cc99d1fa818b59459c7c0d3fb1f1bdd0 | 175d6cff12514da71aafef6b9ff48dd56a87db2d | /alveus/ribbon.py | 1c317cfa8a107f005e2676b9980a1ba3186d2250 | [
"MIT"
] | permissive | FrederikLehn/alveus | d309eea98bd36f06709c55a18f0855f38b5420a9 | 71a858d0cdd8a4bbd06a28eb35fa7a8a7bd4814b | refs/heads/main | 2023-06-26T02:29:59.236579 | 2021-07-30T11:07:17 | 2021-07-30T11:07:17 | 391,029,935 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 34,103 | py | # generic imports ------------------------------------------------------------------------------------------------------
import types
# wxPython imports -----------------------------------------------------------------------------------------------------
import wx.lib.agw.ribbon as rb
from wx.lib.agw.gradientbutt... | [
"noreply@github.com"
] | noreply@github.com |
50b1797f49583a611d09a229b8a4df9926322ba1 | c8662fd1ec17efcd6f48eb4da4685e5a3ce6d2d1 | /accounts/migrations/0006_auto_20200820_2310.py | b437012f6ff339937a071c9912499e6e956c1a5a | [] | no_license | devasenan134/SwarnaKalanjiyam | b6a895bd4fb890706df39c1fbe7a3737f1441030 | c3ca8f9e408f3ea2ef6ac8dee44115767493f82f | refs/heads/main | 2023-09-04T01:30:47.242193 | 2021-09-18T04:21:36 | 2021-09-18T04:21:36 | 407,753,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # Generated by Django 2.2.7 on 2020-08-20 17:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0005_auto_20200725_1712'),
]
operations = [
migrations.AlterField(
model_name='useraccount',
name='adhar... | [
"devasenan.murugan@gmail.com"
] | devasenan.murugan@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.