blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75c0615c374382484f2465bf88eac27a1919acd2 | 31d10be1bd37fe037f36134b80a089f746086e69 | /C_CaptchaBinaryzation.py | 24dbb0ac55279ac72832cfee3525954ebda2aa3e | [] | no_license | ipxplay/CaptchaRecognition | de4d9411f62862a4ab4b30cc2403b3a55fc35916 | a283a69da39121261de1103da311e1288960dbc5 | refs/heads/master | 2020-05-16T04:16:48.937682 | 2019-04-20T03:56:20 | 2019-04-20T03:56:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | from PIL import Image
import os
def binaryzation(image):
threshold = 128 # 阈值,在0~255取值,越大越接近白色
width = image.size[0]
height = image.size[1]
image_array = image.load()
for x in range(width):
for y in range(height):
if image_array[x, y] >= threshold:
... | [
"noreply@github.com"
] | ipxplay.noreply@github.com |
f7863b634ba4afdfcda2da57856af0e4cb9c2f82 | 57b423223a77b713db18e62a0f936edde768ba0e | /Ex_PygalDemo/dice_visual.py | 8bc879f72bcee5a665a945a240973a6e1db47a74 | [] | no_license | beenlyons/dataAnalysis | 980ff2b1a3d592ec13c0657e2087e58da9e04ac1 | abd2f1f0474edb8d9f5e509002a4030acef960a1 | refs/heads/master | 2020-03-17T19:59:38.912245 | 2018-05-18T01:44:37 | 2018-05-18T01:44:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | from Ex_PygalDemo.die import Die
import pygal
# 创建两个骰子
die_1 = Die()
die_2 = Die()
# 投掷骰子多次, 并将结果存入一个列表中去
results = []
for roll_num in range(1000):
result = die_1.roll() + die_2.roll()
results.append(result)
# 分析结果
frequencies = []
max_result = die_2.num_sides + die_1.num_sides
for value in range(2, max_result... | [
"1335682725@qq.com"
] | 1335682725@qq.com |
c2a7984c672209a8770e637e54b2f6cb06104785 | 428d315f31fe04f12235244f796e7cc6140e4680 | /static/tiles/createtiles.py | 469917191aedaadb7d686f8ea96e9b56449809f9 | [] | no_license | peterbe/gaffwall | a0233a2a9bab7f32734083a4c166985ff8d129b5 | 68f40c0c67db65fd86cf746b1746fc7dd1c4a81c | refs/heads/master | 2021-01-01T15:59:57.860717 | 2011-01-06T01:13:20 | 2011-01-06T01:13:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,469 | py | #!/usr/bin/env python
import logging
import shutil
import os
from PIL import Image
LOG_FILENAME = 'tiler.log'
logging.basicConfig(filename=LOG_FILENAME,
level=logging.DEBUG)
def generate_tiles(base_image, size, zoom, point=None, save_directory=None):
as... | [
"peter@fry-it.com"
] | peter@fry-it.com |
c9255d6daf5ede13987b0e13b69a1815a0a1978c | 4912c8be7225cfe36cbb9c1511b7e472749b4269 | /tests/core/middleware/test_middleware_result.py | 5ae7a461f2e53788628c455583e7c09417cd0420 | [
"MIT"
] | permissive | nariman/concord | 7f572c4de2800137ba26b93ef96de5b8f07104e1 | f7e9f9d05288b41a4725bffd6636bffd2d774397 | refs/heads/dev | 2023-04-09T12:48:55.506884 | 2018-11-18T13:18:14 | 2018-11-18T13:18:14 | 95,794,226 | 0 | 0 | MIT | 2021-04-29T19:12:17 | 2017-06-29T15:54:23 | Python | UTF-8 | Python | false | false | 1,502 | py | """
The MIT License (MIT)
Copyright (c) 2017-2018 Nariman Safiulin
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modif... | [
"woofilee@gmail.com"
] | woofilee@gmail.com |
ac30cf6be4ee828b04e5e3c94a1dde35657467a6 | 3364e2d0884c69dae183f3872ab70b4ee47ee18e | /blog/urls.py | 6a1b63c01808155fbc352d4e01b65dc2b089ea80 | [] | no_license | MichaelLiaoFeng/sae-blog | d874682a856a4656586ab7d0623fd5ca79b092ab | 6533dd531c4b7a093fbaa9dc8bae61c6c4b2d535 | refs/heads/master | 2020-05-17T19:22:21.596183 | 2014-04-26T14:38:39 | 2014-04-26T14:38:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.conf.urls.static import static
from django.conf import settings
from filebrowser.sites import site
# Uncomment the next two lines to enable the admin:
from django.contrib import... | [
"name.michael.l@gmail.com"
] | name.michael.l@gmail.com |
1286cc4f1ea5a639c41dd026c0ced84a440dc88f | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1237-141/sdB_PG_1237-141_lc.py | d2479ff4825fb387622fe336fbb0056cf6d66a68 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[189.985708,-14.413278], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_PG_1237-141 /sdB_PG_1237-141_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __nam... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
a5983923a9a99c6545300d6f0651e7501d64ed6d | f95a6085e9d8247637f8cac8436657b46b7f888b | /Unit3/assignment4.py | 4d199c5e46e602c9e108e7ab2d3502d2279939b8 | [] | no_license | vmayoral/cs373-code | 4b65ca7fe39ec2c2d06dbf0ac906e09ed8b7bab2 | 3a65b9b38b7ff7112050cb1a49eea64696110941 | refs/heads/master | 2020-04-08T08:33:03.894225 | 2012-03-26T21:40:59 | 2012-03-26T21:40:59 | 3,585,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,703 | py |
# --------------
# USER INSTRUCTIONS
#
# Write a function in the class robot called move()
#
# that takes self and a motion vector (this
# motion vector contains a steering* angle and a
# distance) as input and returns an instance of the class
# robot with the appropriate x, y, and orientation
# for the given motion.
... | [
"v.mayoralv@gmail.com"
] | v.mayoralv@gmail.com |
6084e98698ef23eaf775a72086eaeb3ba1528eed | 5477c7ed0e67c1fa973d05adae4ae2369511d79e | /sqs_consumer/testing.py | 5b7a2e5dade8fdb439d4dd6a9eff2a10007318ef | [
"BSD-3-Clause"
] | permissive | gjo/sqs_consumer | 635d1a804bf662be46271b2430180431e9c63acd | 8a5f2ad11b293297a37840140161fcb105bcd620 | refs/heads/master | 2021-07-08T22:07:01.379422 | 2016-11-08T11:16:36 | 2016-11-08T11:16:36 | 33,021,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,686 | py | # -*- coding: utf-8 -*-
import logging
from mock import Mock
from zope.interface import classImplements
from .interfaces import IApplication, IMessage, ITransport, IWorker
logger = logging.getLogger(__name__)
# http://programmaticallyspeaking.com/mocking-zope-interfaces.html
def _iface_mock(iface):
"""
:ty... | [
"gjo.ext@gmail.com"
] | gjo.ext@gmail.com |
1b25e140876b304583f62bf4f1a799e1726b29b5 | 339c61a88691ebad76d818673297967a52d6b8b8 | /utils.py | a7c199441bf9775d71899e92b00ecf222a5a4f38 | [
"MIT"
] | permissive | RyanWhitell/Deep-Learning-for-Music-Recommendation | 269dc36e3807a965695ff09f2d0d963fea888e8e | 019feb61896ca1d5ab87e71910f3f31fcb6b08fe | refs/heads/master | 2020-04-26T19:43:59.623766 | 2020-02-04T19:16:28 | 2020-02-04T19:16:28 | 173,784,848 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,472 | py | import os
import numpy as np
from sklearn import metrics
import matplotlib.pyplot as plt
import itertools
import keras
from keras.models import Sequential, Model
from keras.layers import Conv2D
import torch
import torch.nn as nn
import torch.nn.functional as F
from torchsummary import summary
import math
... | [
"ryanwhitell@hotmail.com"
] | ryanwhitell@hotmail.com |
b9197d8540c36bc11b798d2530940cd59de288f0 | 9340bb810b996c6296078200ba4320aad34b297a | /runtests.py | 45cc48368c5bd4bdb2b8a53510a939cb14c27b75 | [
"BSD-2-Clause"
] | permissive | resmio/django-sendgrid | fa2a66b6df676549d07174b95316c9a254b10b19 | 4abbc6a5d426000b6e546be1d934b69e97ab3577 | refs/heads/master | 2022-02-01T01:49:00.154453 | 2022-01-26T07:57:48 | 2022-01-26T07:57:48 | 20,224,087 | 8 | 11 | BSD-2-Clause | 2022-01-21T07:14:10 | 2014-05-27T15:01:01 | Python | UTF-8 | Python | false | false | 1,644 | py | #!/usr/bin/env python
import sys
import os
import django
from django.conf import settings
if not settings.configured:
# Choose database for settings
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:'
}
}
test_db = os.environ.... | [
"jann.kleen@freshx.de"
] | jann.kleen@freshx.de |
3fa2ada0f15c38d61cdd038610a73009669e0897 | ffb72f901652b05b7afa6ef6861ce75f819b38be | /spark_work_1_28.py | 1149d07039f0b1d7c6f3d8103f64f7356f7bce05 | [] | no_license | enaj1125/Insight_project_2017 | f8080d7de0f9c1c079a5924e3e34e21ee3752d2c | ffcd99cce26ae5b6ab35d06e54d784e103c647ac | refs/heads/master | 2021-01-11T16:15:14.000425 | 2017-02-09T00:23:40 | 2017-02-09T00:23:40 | 80,049,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py | import pyspark
import sys
import json
from pyspark import SparkConf, SparkContext
from elasticsearch import Elasticsearch
conf = SparkConf().setAppName("YanJ_app").setMaster("spark://ip-172-31-1-12:7077")
sc = SparkContext(conf = conf)
# Input files
textFile = sc.textFile("s3n://timo-twitter-data/2015/05/01/00/30.jso... | [
"noreply@github.com"
] | enaj1125.noreply@github.com |
7f74516731d4590aaa29094755644a564edeece0 | e167965757b28e56fb9c09edf508e83b87b64535 | /tests/test_schema.py | 012011812727005fbd0cce15ae342ca308f6e0fa | [
"MIT"
] | permissive | pOctav/starlette-jsonapi | b284a315a9a7ff1e2053b4cc71bf6867f51b3a55 | bec6a1fb5f19f1a6d48174aba1e7999ebd7670e5 | refs/heads/master | 2022-12-08T13:32:28.695724 | 2020-07-18T14:59:45 | 2020-07-18T14:59:45 | 280,895,286 | 0 | 0 | null | 2020-07-19T15:33:21 | 2020-07-19T15:33:20 | null | UTF-8 | Python | false | false | 3,349 | py | import pytest
from marshmallow_jsonapi import fields
from starlette.applications import Starlette
from starlette_jsonapi.resource import BaseResource
from starlette_jsonapi.schema import JSONAPISchema
def test_schema_urls(app: Starlette):
class TResource(BaseResource):
type_ = 'test-resource'
TResour... | [
"vladstefanmunteanu@gmail.com"
] | vladstefanmunteanu@gmail.com |
547e254f2d69e00cdc87d6d3926109a7cae6eaea | e481d33cd77bd51d7e489e49415a04c860a4099b | /0x08-python-more_classes/6-rectangle.py | 9c1879b41a7e6553c462d7a19d6e9daedc8556cc | [] | no_license | ksualcode/holbertonschool-higher_level_programming | ece13504176a6f95a34e000043a9cd63a832b398 | b151454adcd3b3e182bafe94a6ab1580a5630d5c | refs/heads/main | 2023-07-27T04:34:05.428218 | 2021-09-14T20:42:20 | 2021-09-14T20:42:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,995 | py | #!/usr/bin/python3
" Module that creates a rectangle "
class Rectangle:
"""
Creates a rectangle class
"""
number_of_instances = 0
def __init__(self, width=0, height=0):
""" Constructor method """
self.width = width
self.height = height
Rectangle.number_of_instance... | [
"2758@holbertonschool.com"
] | 2758@holbertonschool.com |
43720931ad61ccde99c8de7cd7a620bdb65d9248 | e05f8d36c70336a8714cc260c02fe85ecee2e62e | /subject/cmd/api.py | 7de04f2ed78f5b7f5b7b8f1e897949b0bc88a7ae | [
"Apache-2.0"
] | permissive | laoyigrace/subject | eafa442b5d9ebf83c78a01ce3bb5d088d08d620d | e6ed989fdc250917a19788112b22322b73b3550f | refs/heads/master | 2021-01-11T00:06:54.790751 | 2016-10-24T02:13:32 | 2016-10-24T02:13:32 | 70,754,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,253 | py | #!/usr/bin/env python
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2011 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file ... | [
"yibo_grace@163.com"
] | yibo_grace@163.com |
6945be5828ba5a3cb5e7ddeffbf005e2959775e1 | 9026fa54f4e5f636fff252686f4fd019198e81c7 | /algorithms/utils/torch.py | 3e732c4f390e6f35276f4e7912f54054b7044c56 | [
"MIT"
] | permissive | ZikangXiong/ToyRLAlgorithms | 7c44f7fbf4c0f0e9b235c7774de1a2f415d3df31 | 6b54a3a845fdc227b1fb619f4a682859a36060fc | refs/heads/master | 2023-03-19T12:48:02.980975 | 2021-03-11T05:25:49 | 2021-03-11T05:25:49 | 339,210,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | import torch as th
def change_optim_lr(optim: th.optim.Optimizer, lr):
for param_group in optim.param_groups:
param_group["lr"] = lr
def grad_clip(model, clip_val):
for param in model.parameters():
param.grad.data.clamp_(-clip_val, clip_val)
def polyak_update(original_model, target_model, ... | [
"zikangxiong@icloud.com"
] | zikangxiong@icloud.com |
30adef4a3467a6d90dfc793d1c1c8c875ceb2ba1 | 52c93868150e17ce39b021907076954fccfce060 | /myshop/myshop/urls.py | c8c1942c7df10e724c93bea5e91d739f464cce0b | [] | no_license | Abdeljalil97/shop_app | 22bbdf78abc4b7006565c73f5eda771ade254202 | 6aa26519bd84610476598ea378ca54c2ef3d1026 | refs/heads/main | 2023-07-24T14:27:39.055245 | 2021-09-02T10:33:13 | 2021-09-02T10:33:13 | 402,379,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | """myshop URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"abdeljalilbensoudane97@gmail.com"
] | abdeljalilbensoudane97@gmail.com |
d7b3aa5dbfc539c9679fb4770e347c3a9c923b17 | 3df8b0c2963c66e5068d95b3721ec70647bb63f1 | /Week8Assignment1.py | 3af8a48d21bbd9fa6a2223a2ead10a1d898e7bec | [] | no_license | jcidras/Coursera | d5ec02d1dc127bd3492e09493cd24c3bad6803e6 | 48149a005c023ffd3732d229058fb178e5e7fb11 | refs/heads/master | 2016-09-05T22:52:58.785670 | 2015-04-06T18:09:19 | 2015-04-06T18:09:35 | 32,801,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | words = []
fname = raw_input("Enter file name: ")
try:
fh = open(fname)
except:
print "Cannot open file."
for line in fh:
line = line.rstrip()
wordsInLine = line.split(' ')
for word in wordsInLine:
if word not in words:
words.append(word)
words.sort()
print words | [
"jcidras@me.com"
] | jcidras@me.com |
ad66e95a0dbe9085608b81fcdc6ac357b678332d | 462e0b4a7b271c288e99f6c9ac5882b7dd27e6a5 | /quiz.py | d93bd9e89300c948ed2a633ffcc9940e72fe5ed3 | [] | no_license | dennyhong96/learn-python | 7c08f2fc7cfce86043fcd5b969b086d98d6f8cea | 2177d8fa8495b0d3468e11e5407c47adec6e7ab8 | refs/heads/master | 2022-11-17T16:41:39.206535 | 2020-07-10T01:54:21 | 2020-07-10T01:54:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | from Question import Question
question_prompts = [
"What color are apples?\n(a) Red/Green\n(b) Purple\n(c) Orange\n\n",
"What color are Bananas?\n(a) Teal\n(b) Magenta\n(c) Yellow\n\n",
"What color are strawberries?\n(a) Yellow\n(b) Red\n(c) Blue\n\n",
]
questions = [
Question(question_prompts[0], "a"... | [
"haiyanghong@Haiyangs-iMac.local"
] | haiyanghong@Haiyangs-iMac.local |
e3934fd38de621d01fbd6fe77f1e2441b445abb7 | 58ba995b5d430246d28f1cf048fdae83808bf71d | /src/classes/model/SketchCodeModel.py | b018c1a233308ec39985de3fae95710f40ee0ee8 | [] | no_license | sarvasvkulpati/PageBasic | 039b7677fe047695f458ac1334c978feded0ec94 | f4978b3ba58fe5417e85c5a2fa9b242bb9e0f856 | refs/heads/master | 2020-04-17T11:24:35.567398 | 2019-01-21T05:06:17 | 2019-01-21T05:06:17 | 166,539,390 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,489 | py | from __future__ import absolute_import
from keras.models import Model, Sequential, model_from_json
from keras.callbacks import ModelCheckpoint, CSVLogger, Callback
from keras.layers.core import Dense, Dropout, Flatten
from keras.layers import Embedding, GRU, TimeDistributed, RepeatVector, LSTM, concatenate , Input, Re... | [
"sarvasvkulpati@gmail.com"
] | sarvasvkulpati@gmail.com |
fc2a5c414be6f24fb81993bd57bacd41c5ff4ece | d46577a83f627dd46c9f6ffe8aab8d432da34999 | /src/ghutil/cli/milestone/open.py | 6fa11e5ac06bdaa89d5f3b1e4fcfd05dee7a6929 | [
"MIT"
] | permissive | jwodder/ghutil | 4426872613aa080db33d948c7eb6521e9ad0d151 | 763ab2a4b33292b0a5538df38a7bda2e408e3632 | refs/heads/master | 2023-01-07T10:14:41.878228 | 2022-12-26T22:09:19 | 2022-12-26T22:09:19 | 91,839,769 | 6 | 1 | null | 2017-08-21T15:04:10 | 2017-05-19T19:40:57 | Python | UTF-8 | Python | false | false | 342 | py | import click
from ghutil.types import Repository
@click.command()
@Repository.option(
"-R",
"--repo",
"--repository",
"repo",
help="Repository to which the milestone belongs",
)
@click.argument("milestone")
def cli(repo, milestone):
"""Open a milestone"""
repo.milestone(milestone).patch(js... | [
"git@varonathe.org"
] | git@varonathe.org |
8d7fe868b6b0bcc163e60dbcbbbdebd3155b7ba2 | 20a53d9a52f839ddec0cacff6ac12b63626c9548 | /phonopy/interface/dftbp.py | aa082ea33c7ec05e0f8db2d0d85df9a67d5ab5d0 | [] | permissive | ntq1982/phonopy | 339c6756c38cd7301167fc26fa117afdf1343b90 | fc73c9ba8815180bff8428174495c157d9444c68 | refs/heads/master | 2021-09-25T01:00:58.826347 | 2021-09-15T07:50:17 | 2021-09-15T07:50:17 | 238,440,992 | 0 | 0 | BSD-3-Clause | 2020-02-05T12:06:21 | 2020-02-05T12:06:20 | null | UTF-8 | Python | false | false | 6,577 | py | # Copyright (C) 2015 Atsushi Togo
# All rights reserved.
#
# This file is part of phonopy.
#
# 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
# notic... | [
"benjamin.hourahine@strath.ac.uk"
] | benjamin.hourahine@strath.ac.uk |
df673618a14a4adaaa4757a50d9f63bde011f0b3 | 6f7ef265722d442c8ea782a2af6fb957a6b36865 | /mozdns/models.py | d8c54db69672c478387617cc3c9f78fe34bd61dc | [] | no_license | Marlburo/inventory | 751149a0085c8ec8ef82d81ca6e1edc79d4a293d | bb2aa99e41f532c35eda47a210a12be134ca62c0 | refs/heads/master | 2021-01-22T16:38:58.901807 | 2015-01-28T15:37:07 | 2015-01-28T15:37:07 | 33,836,752 | 1 | 0 | null | 2015-04-12T22:39:12 | 2015-04-12T22:39:10 | null | UTF-8 | Python | false | false | 9,439 | py | from django.core.exceptions import ObjectDoesNotExist, ValidationError
from django.db import models
import mozdns
from mozdns.domain.models import Domain
from mozdns.view.models import View
from mozdns.mixins import ObjectUrlMixin, DisplayMixin
from mozdns.validation import validate_first_label, validate_name
from moz... | [
"uberj@onid.orst.edu"
] | uberj@onid.orst.edu |
9a0329062e8d096820e8bc53ae2c7631b65eacbf | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnconventu.py | 2bcf29cae970aba9fb65a9069b495efd0c277ce3 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 175 | py | ii = [('ShawHDE.py', 1), ('ClarGE.py', 1), ('DaltJMA.py', 1), ('WadeJEB.py', 1), ('CoopJBT.py', 1), ('SoutRD2.py', 1), ('MackCNH.py', 1), ('DequTKM.py', 1), ('BeckWRE.py', 9)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
48cc31dbeacf007c6f1773c6ddbbf598a018c38d | 33374c7d37fa7027ef6d86c0afa9bb0833cea1bd | /src/tests/test_influx_logs.py | 8ea73a744551c44fb24966eb4bb6eefd6b54a255 | [
"MIT"
] | permissive | optimuspaul/themis | 8a86f11a63a8b3b029017e2dd3c525b964e0b478 | e088315cdae7e915aece8af9965914c4c89bd776 | refs/heads/master | 2020-12-11T09:22:58.983644 | 2015-10-22T19:50:09 | 2015-10-22T19:50:09 | 44,275,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | import logging
import unittest
import uuid
from themis.log import TSData
from tests import influx
class TestEmit(unittest.TestCase):
def test_emit_001(self):
logger = logging.getLogger(__name__)
tag = uuid.uuid4()
measurement = "test.themis.emit.{0}".format(tag)
td = TSData(measu... | [
"paul@decoursey.net"
] | paul@decoursey.net |
abf408ac905e606fd464fe14a63a5afca7ee754b | 1581d6667c7534ff3413348d3e643fac43aa92ec | /07-06.py | 3ea2d30197f71c51940cc99bb781e136e7993c2a | [
"MIT"
] | permissive | Michael-E-Rose/Woolridge_IntroEconometrics_Solutions | a3d72051d4ec2140e11b8e807cc3f5195b8dc6dc | 8d56856ba7e0efc9ef66011af555df389409414d | refs/heads/master | 2022-06-18T05:25:36.206499 | 2020-04-23T17:32:26 | 2020-04-23T17:32:26 | 239,853,791 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | """Python script for C6, Chapter 7 of Wooldridge: Intr. Economometrics"""
import pandas as pd
import statsmodels.formula.api as smf
import numpy as np
import statsmodels.api as sm
# Read in df
file = "./data/sleep75.dta"
df = pd.read_stata(file)
print(df.head())
print(">>>>")
# i)
print("Results for men:")
dfmen = d... | [
"carolin.formella@web.de"
] | carolin.formella@web.de |
ec404df2e18a084d728987b46dd0434c5cfe01f1 | d25e581e62ca383bbefbd4dc8e460625922126e1 | /w select/utils/options.py | d9c9a28561a6661b9b46e1bed488c8d07cda47a9 | [] | no_license | GowayGoway/Federated-Learning | 60c589fa6aabba37bf0d5f445620df79c7944197 | 24674cd3f4e0a1810e3b62fb20bb8dee9223923f | refs/heads/main | 2023-06-18T06:08:19.227761 | 2021-07-19T03:24:39 | 2021-07-19T03:24:39 | 372,105,380 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,078 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Python version: 3.6
import argparse
def args_parser():
parser = argparse.ArgumentParser()
# federated arguments
parser.add_argument('--epochs', type=int, default=10, help="rounds of training")
parser.add_argument('--num_users', type=int, defaul... | [
"noreply@github.com"
] | GowayGoway.noreply@github.com |
1059dd02112d27e3e8c595fd50f49e552c76655e | 400957aa41d1de8572a4708e78482fc94529b483 | /python/ccpnmr/update/temp/python__temp_ccpnmr__temp_analysis__temp_popups_EditExperiment.py | 356ebd27583509eb820a4c40384b5871974f37f2 | [] | no_license | bopopescu/ccpnmr2.4-2 | c3e4323b73ad56a631db0ac3bef6c4df802ace08 | c39ed7f0a840be006543d1c6bd1e4ccb37376962 | refs/heads/master | 2022-11-21T23:59:53.507265 | 2016-09-21T01:53:44 | 2016-09-21T01:53:44 | 282,246,114 | 0 | 0 | null | 2020-07-24T14:52:05 | 2020-07-24T14:52:04 | null | UTF-8 | Python | false | false | 110,065 | py |
"""
======================COPYRIGHT/LICENSE START==========================
EditExperiment.py: Part of the CcpNmr Analysis program
Copyright (C) 2003-2010 Wayne Boucher and Tim Stevens (University of Cambridge)
=======================================================================
The CCPN license can be found in... | [
"pigeonfeng@gmail.com"
] | pigeonfeng@gmail.com |
704dcd8dcdbc31cfe46bdd55ec4093ec4fe5e5d3 | 5d271f987365c22ce3c3a4c2bbe63697bfec5bd7 | /manage.py | 74f787b176d847c2a586328508743cbc862622a6 | [] | no_license | CCowens93/project_4 | 2f5c57db858221747b7ad1ea210bab70ed46c34e | 025146c2f86cf01ec8b2e9ef62da122c11a2db88 | refs/heads/master | 2022-02-12T01:26:37.381167 | 2019-12-11T21:23:12 | 2019-12-11T21:23:12 | 224,011,131 | 0 | 0 | null | 2021-09-22T18:11:08 | 2019-11-25T18:05:26 | JavaScript | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'wellness_project.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rai... | [
"cassandracowens93@gmail.com"
] | cassandracowens93@gmail.com |
9d34e91d6cfc0b1259b7ebb93596b35090238932 | 771608a893fcd90da7414730bb5c6f90ec286884 | /model.py | 11f19ff081d37c4ba58ef770b0b9d9a95a93a706 | [
"MIT"
] | permissive | aheadlead/PyTetris | fc03463cada21926e0b116cd11250baa3a6fb8c9 | 681c932699867203a57317e3365dd51e19c727f7 | refs/heads/master | 2021-01-22T06:45:15.542615 | 2015-04-07T03:08:59 | 2015-04-07T03:08:59 | 33,247,929 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,161 | py | #!/usr/bin/env python
# coding=utf-8
__author__ = 'weiyulan'
from exception import *
from timer import Timer
from random import choice, randint
from threading import Thread, Lock
from sys import stderr
from copy import deepcopy
# 难度常量
#
# 难度与方块下落的间隔时间有关系,也与分数计算有关系。
DIFFICULTY = {'so easy': {'interval': 3, 'score_fac... | [
"aheadlead@dlifep.com"
] | aheadlead@dlifep.com |
5fb0d972d6642aaba5be0b90b8fbdfa1dc89a4b9 | 2947efe1efd6e19981d0aa5c55dfc5f3700b8a1b | /segm/eval/miou.py | eff9501d15cfce65950eea3de7c75009fa185cff | [] | no_license | srdg/segmenter | f71effdade6d11da5ab041cadcb283123e9f1126 | 4f8a4435ea67c8611c5180edc7bec1d24f7342ad | refs/heads/master | 2023-08-01T12:55:21.474549 | 2021-09-14T16:19:46 | 2021-09-14T16:19:46 | 402,280,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,027 | py | import sys
import click
from pathlib import Path
import yaml
import numpy as np
from PIL import Image
import shutil
import torch
import torch.nn.functional as F
from torch.nn.parallel import DistributedDataParallel as DDP
from segm.utils import distributed
from segm.utils.logger import MetricLogger
import segm.utils.... | [
"rstrudel@gmail.com"
] | rstrudel@gmail.com |
94358be1fc47c6d41306692c5fcb12bf08bfbe8d | caba0ed4459dbec2faf2ea0a4d08e207b6315d1b | /lib/3d_visualization.py | 951ac7c7b63f953bf76c386b0f52dba0e38f9ce4 | [] | no_license | ZhaoQii/CSC-AI-Study-Group-Project | 8ea7475aefde899cc4e307c643e9dce3a0273865 | 1534c97357d4036002090339836c4068fd467438 | refs/heads/master | 2021-07-07T07:13:19.053647 | 2017-10-05T15:44:44 | 2017-10-05T15:44:44 | 105,844,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib import style
style.use("ggplot")
from mpl_toolkits.mplot3d import Axes3D
from pylab import *
def ThreeD_Visualization(X, real_labels):
colors = ['g','r','c','y','b','m','black','purple','orange','brown']
fig = figure()
ax = fig.gca(proje... | [
"noreply@github.com"
] | ZhaoQii.noreply@github.com |
e679e27af8377c625974f3edc4c2c03dbc054b70 | 754c47dcd6e944caeeb529c6a68eaa1fc5f5de76 | /my_wifie_django_taobao/products_app/views/goods_view.py | b165a4f762bede27069ba5e293889ca76e2988ad | [] | no_license | B9527/my_wifie_django_taobao | 2b506575374d08e9a9df1aa30e1b7fccaf2ec3e1 | e8485b9ca61ff5c3303e0e1b1cf49c9464550c33 | refs/heads/master | 2020-09-26T15:48:13.416740 | 2019-12-27T03:13:33 | 2019-12-27T03:13:33 | 226,285,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,977 | py | #! /usr/bin/env python
# -*- coding:utf-8 -*-
"""
__title__ = ''
__author__ = 'BY'
__mtime__ = '2019/12/4'
"""
from django.http import HttpResponse
from django.http import JsonResponse
from myshop.settings import local_url_host
from products_app.models import Products, Category, ProductsImage
from django.views import ... | [
"1335239218@qq.com"
] | 1335239218@qq.com |
fafcd1b833fa564d2038d2f4ef4dd091990df367 | d6674d40b5afe4b6ba8d8fef558890c5dad8e309 | /music.py | 55a21a9daca497d464188239d23fac29a420da46 | [] | no_license | IamNaN/music | 9c3094ab129e448c3253b21205efd87da7c28da0 | 9396c482a4335be212240dddbe7410957fd1f002 | refs/heads/master | 2021-05-15T05:45:55.503104 | 2017-12-28T07:06:44 | 2017-12-28T07:06:44 | 115,595,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,132 | py | #!/usr/bin/env python
# ssh -R 52698:localhost:52698 root@10.0.1.9
# password: musicbox
# rmate music.py
# rmate music.ini
# rmate /opt/musicbox/startup.sh
# rmate /music/playlists/ROTS.m3u
# rmate /var/log/musicbox_startup.log
# rmate /etc/rc.local
#
import RPi.GPIO as GPIO
import os
import time
import ConfigParser
L... | [
"dgerton@gmail.com"
] | dgerton@gmail.com |
3356bb672f605644398d97b58d23466904bbf6dd | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/sympy-1.0-py27_0/lib/python2.7/site-packages/sympy/matrices/sparsetools.py | 06bbafda94526ec6da0c43903ff143073c10c3b5 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 1,246 | py | from __future__ import print_function, division
from sympy.core.compatibility import range
from sympy import SparseMatrix
def _doktocsr(dok):
"""Converts a sparse matrix to Compressed Sparse Row (CSR) format.
Parameters
==========
A : contains non-zero elements sorted by key (row, column)
JA : ... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
1bdf3446c8ad0cf38eaa3de1da247fad10e2b25a | 22603ac91c4113bac013de7a1ba669077e11729f | /Searching/find_max_in_array_first_increasing_then_decreasing.py | b838728fb3633b18a2d92f2235c35934f4995e8b | [] | no_license | edyoda/DSA-with-Rudrangshu-310321 | 14e522a4c5251bb7148d22c61cc3a018f2adbde1 | 2c2e0a9e51b73ea2d52a62a175c06d757eafdb20 | refs/heads/main | 2023-04-07T05:20:47.474823 | 2021-04-24T15:29:23 | 2021-04-24T15:29:23 | 353,604,283 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | def findMaximum(arr, low, high):
if low == high:
return arr[low]
if high == low + 1 and arr[low] >= arr[high]:
return arr[low]
if high == low + 1 and arr[low] < arr[high]:
return arr[high]
mid = (low + high)//2 #low + (high - low)/2;*/
if arr[mid] > arr[mid + 1] and arr[mid] > arr[mid - 1]:
retu... | [
"rudrangshu.das@gmail.com"
] | rudrangshu.das@gmail.com |
8edad1734bc355ec7f461b5b068362f8717f7cf4 | 2bd851979ca23b1289cffb2304be2b4a0d612328 | /0x02-python-import_modules/5-variable_load.py | 0f647da7c672bdca27d67c4b6576fd88cf102cfe | [] | no_license | fikepaci/alx-higher_level_programming | 6fdeda0a538147483a401e95fb1ac70b3b1da87b | 66f15e86c5ba40a26e8a889ed87546b1e43ac1b5 | refs/heads/master | 2023-05-01T05:47:42.465608 | 2021-05-12T17:13:42 | 2021-05-12T17:13:42 | 319,888,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | #!/usr/bin/python3
if __name__ == "__main__":
from variable_load_5 import a
print("{:d}".format(a))
| [
"pacifiquemachine@gmail.com"
] | pacifiquemachine@gmail.com |
96a8b3631b2441f86f62ee118a1bc9ef58b0ca16 | fdb0e068aaa12199a61f09177b9d1c4bbe7a1969 | /misc_functs.py | 89beb39096c80ccce8fdca02244b2ccf0e70d479 | [] | no_license | emiudeh/Project-Statistical_Natural_Language_Processing | e9936a64937a7f4dc1ad37534724f207e527b5f7 | 3752635bbf038dc151e0119c5912e733a00425fd | refs/heads/master | 2020-05-30T09:58:26.795466 | 2019-05-31T21:37:51 | 2019-05-31T21:37:51 | 189,661,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,151 | py | import collections
# File with miscellaneous functions used to handle nouns in task2.py
# Ignore umlauted characters
def umlauted(char1, char2):
same = {'ā': 'a', 'ō': 'o', 'ē': 'e', 'ī': 'i', 'ū': 'u'}
if char1 in same and same[char1] == char2:
return True
if char2 in same and same[char2] == char... | [
"noreply@github.com"
] | emiudeh.noreply@github.com |
0780ef8728b4dc930bc979222c530958e034d200 | 0b7e49c48971330c37d0eff9bfdeb03973a12fe0 | /app.py | e7942756af9acc78e976b4a21bd0b96666bc769a | [] | no_license | Rohithyeravothula/Markup-UI | 99dd121fb125e2b9bf585339eddad8c4cf070dd2 | 420693bda6634d5c143fe54217253b45d1d57726 | refs/heads/master | 2021-03-19T16:02:10.438924 | 2017-10-19T23:11:45 | 2017-10-19T23:11:45 | 106,876,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | from flask import Flask
from flask import request
from flask import render_template
app = Flask(__name__)
@app.route('/', methods=['GET'])
def home():
return render_template("index.html")
@app.route('/document', methods=['GET'])
def get_document():
docId = request.args.get("id")
return "document with id " + doc... | [
"rohithiitj@gmail.com"
] | rohithiitj@gmail.com |
aa24bfe7c2a20f5fdcd30858d2a3052d5b72e047 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03838/s751440828.py | bca7e9d63e5acfca8551c9d1c6da13b60eef5ce5 | [] | 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 | 391 | py | import sys
readline = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 8)
INF = float('inf')
MOD = 10 ** 9 + 7
def main():
x, y = map(int, readline().split())
if x * y >= 0:
if x < y:
print(y - x)
else:
print(x - y + 2 if x * y > 0 else x - y + 1)
else:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
072d0f66c15746e5a318b7f51e6453973b8e2be5 | dadc3e0df62e9a0876138623ef5c311d0dafcda3 | /Python Assignment 2/prg2.py | 10010f652814364fbaa89017c2b3cdadcc376036 | [] | no_license | Simran0401/Python-Django-LPU | 9987fb3888cb81263c632b572ef5013377e61210 | e6558c1d7bc8a33369c4378e2e0502fdc83eb7bf | refs/heads/main | 2023-06-02T17:27:56.107048 | 2021-06-20T09:59:30 | 2021-06-20T09:59:30 | 373,412,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | '''
Q2. Print all odd numbers and even numbers between 1 to 100
'''
start = 1
end = 100
print("All odd numbers from 1 to 100 are:")
for i in range(start, end + 1):
if(i % 2 != 0):
print(i, end = " ")
print("\n")
print("All even numbers from 1 to 100 are:")
for i in range(start, end + 1):
if(i % 2 ==... | [
"simrandas0401@gmail.com"
] | simrandas0401@gmail.com |
a7b858ecd17b16a70e8c47d93ad6977a3c5a1af9 | fa35b9b97ebc9bb3eed940d83f5d06bb5e0237ef | /App/errors/__init__.py | 53aed05bb31815a3275387dfcabb6a02798fbf80 | [] | no_license | qinyang-bao/Shopify_Api | 9d19c7bbd38e669929cc644e7ba3e4c981d1cef9 | 7e3c7ebd64a2ccb15fe99f703f845b70b6732f52 | refs/heads/master | 2022-12-22T13:51:13.694925 | 2019-03-02T23:29:07 | 2019-03-02T23:29:07 | 150,023,900 | 1 | 0 | null | 2022-12-08T02:54:11 | 2018-09-23T20:42:50 | Python | UTF-8 | Python | false | false | 96 | py | from flask import Blueprint
bp = Blueprint('errors', __name__)
from App.errors import handlers | [
"q7bao@edu.uwaterloo.ca"
] | q7bao@edu.uwaterloo.ca |
91b1c7687c5d44deed1a42842d28e8f92f94d1c1 | 2adebb657870d7af4d4b01560f898da555def8af | /naloge/2016/dn1/test/LukaLajovic/cheapmatrix.py | b0c9bc246ba4ae3f6f943923f92c7bd154306542 | [
"MIT"
] | permissive | lukalajovic/PSA1 | 3181b1c92a8f4220ff626656c456c9180e98a38a | 046701e1156096a25373eb1e9d8fd9f078532922 | refs/heads/master | 2020-12-24T14:09:32.033917 | 2016-12-26T18:40:05 | 2016-12-26T18:40:05 | 76,550,969 | 0 | 0 | null | 2016-12-26T18:40:06 | 2016-12-15T10:43:42 | Python | UTF-8 | Python | false | false | 5,468 | py | # -*- coding: utf-8 -*-
from .slowmatrix import SlowMatrix
class CheapMatrix(SlowMatrix):
"""
Matrika s prostorsko nepotratnim množenjem.
"""
#izvede mnozenje te matrike z drugo
#parameter nova je matrika ki se jo spremijna
def dm(self,druga,nova=None):
n=self.nrow()
m=self.nco... | [
"noreply@github.com"
] | lukalajovic.noreply@github.com |
3c271f34c10b2767e3531eb63ec9f63933f48b00 | f26e5592d46676675d8b92d7ac03f4aa8dfd7f2e | /users/migrations/0004_auto_20200528_1017.py | f82df93d5fcb0444857c11c9d089054eabf965ed | [] | no_license | nkouki98/django-blog | 5dad6f5b4d1ee8f5339d10c5118b3a822c6a0c61 | 877418f0d29917cd6ef4c0ea85e3b6892f25f990 | refs/heads/master | 2022-11-27T05:07:04.638544 | 2020-08-03T14:31:36 | 2020-08-03T14:31:36 | 267,048,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | # Generated by Django 3.0.6 on 2020-05-28 10:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0003_auto_20200528_0900'),
]
operations = [
migrations.AlterField(
model_name='customuser',
name='email',
... | [
"farhan1998@live.com"
] | farhan1998@live.com |
ea54dfd466048f67b7e78228e9ace2787bd816e3 | 6a245c01d87a75f4719006e3d741e7819fa7825e | /apps/taiga/back/django/taiga/taiga_contrib_github_extended_auth/services.py | d7c931c446ffa743d3f4c86928a0fba4e46f092c | [
"Apache-2.0"
] | permissive | BCDevOps/openshift-components | 8f6365dfc37a7e749116fc0d0f0d99bb75e44e68 | 0ae3ba611c677056360943b47c95fb25b0ad74a0 | refs/heads/master | 2023-04-11T21:08:26.235077 | 2020-11-26T22:01:58 | 2020-11-26T22:01:58 | 52,387,849 | 9 | 28 | Apache-2.0 | 2020-11-26T22:01:59 | 2016-02-23T20:04:46 | Python | UTF-8 | Python | false | false | 3,873 | py | from taiga_contrib_github_auth import connector
from taiga_contrib_github_auth.services import github_register
from taiga.auth.services import make_auth_response_data
from urllib.parse import urljoin
from django.conf import settings
import logging
import requests
from taiga.base import exceptions as exc
logger = loggi... | [
"shea.phillips@gmail.com"
] | shea.phillips@gmail.com |
aff5d23268e689afe37f9ab11d1375ee684ae6bc | e9d4070993cbf2a2df0f0e4e0fae320c1331d439 | /Assignments/Lab 03/primenum.py | f2a77350bacc898f6ce5251340908338d7433329 | [] | no_license | dennywachira/Bootcamp | d7ab70be5452318dcee4c953a9d73eae0c281b62 | 0e98ced8d58a8c9b742cf95e928283a34263f29f | refs/heads/main | 2023-07-23T17:18:56.715820 | 2021-08-31T12:17:12 | 2021-08-31T12:17:12 | 385,849,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | #printing prime numbers using for loop
for x in range(0,100):
if x>1:
for i in range(2,x):
if (x%i==0):
break
else:print(x)
| [
"denniz.wachira@gmail.com"
] | denniz.wachira@gmail.com |
b7b97d0aefd294d357c39e6a2c805e82c3b297f8 | 92b2b0f75b1525edd4a054cb0f7db2c3941cadc0 | /kaitai/python/kaitai_sbp/ssr.py | 51bd34091262eb09bbc051807190782dbc7a708b | [
"MIT"
] | permissive | swift-nav/libsbp | d3463cf77a5a701328d2a151ce166fd6ea7fe3e2 | c4daa6fff203c7c26d7ab06234755a14085458f4 | refs/heads/master | 2023-08-31T02:09:46.844536 | 2023-08-28T17:20:02 | 2023-08-28T17:20:02 | 26,985,599 | 73 | 117 | MIT | 2023-09-04T23:13:49 | 2014-11-22T02:02:43 | C | UTF-8 | Python | false | false | 29,328 | py | # This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
from .gnss import *
import kaitaistruct
from kaitaistruct import KaitaiStruct, KaitaiStream, BytesIO
if getattr(kaitaistruct, 'API_VERSION', (0, 9)) < (0, 9):
raise Exception("Incompatible Kaitai Struct Python API:... | [
"noreply@github.com"
] | swift-nav.noreply@github.com |
428b3420fa6e2b8ea2b2f3fc5889ff9f6ca35207 | 89744412683f818356c0db394b8f1cb9c5235b40 | /02_列表和元组/list_集合.py | 0db22c71458cf12717b7d7941751813b76a46047 | [] | no_license | pleuvoir/python-tutorial | a84835ae1d62446fd54eab2c3a69407ed68e2ba8 | 9785bcf06956bc73c86ce0ab83f5e82e6ab2c3e5 | refs/heads/master | 2022-04-26T12:07:45.050277 | 2020-05-02T07:21:14 | 2020-05-02T07:21:14 | 245,397,536 | 0 | 0 | null | 2020-04-08T13:00:25 | 2020-03-06T11:01:50 | Python | UTF-8 | Python | false | false | 1,170 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# 定义集合
a = [1, 2, [3, 4], 5]
"""增加元素"""
a.append(6)
print(a) # [1, 2, [3, 4], 5, 6]
"""两个空的集合是相等的"""
empty_list1 = []
empty_list2 = []
print(empty_list1 == empty_list2) # True
# 判断列表是不是空
if not empty_list1:
print('is empty') # 为空
else:
print('is not empty')... | [
"fuwei@daojia-inc.com"
] | fuwei@daojia-inc.com |
ca82545eeabbbaccd5dba5dcb3b7cae40e22558a | c23a4970a5f596326f69d282c01582acdaf00a24 | /shop/carts/carts.py | 2fe8675235b204b935f20a865779157a2d4707c3 | [] | no_license | miftahcoiri354/flask_ecommerce | 7917f10040f1fb1f74626d787ec84e0619c123a4 | 79751c729fb2662b7302624f7bdfc7ed245eaaac | refs/heads/main | 2023-03-04T12:25:40.715772 | 2021-02-19T09:57:45 | 2021-02-19T09:57:45 | 339,663,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,814 | py | from flask import redirect, render_template, url_for, flash, request, session, current_app
from shop import db , app
from shop.products.models import Addproduct
from shop.products.routes import brands, categories
import json
def MagerDicts(dict1,dict2):
if isinstance(dict1, list) and isinstance(dict2,list):
... | [
"miftahcoiri354@gmail.com"
] | miftahcoiri354@gmail.com |
517b72f16ed6285858a7fc9ac76b0de4fe68e469 | cc98fc664002361105e34d388b267589a788f9ee | /Apriori Algorithm/apriori.py | 3894e3132f519d363aa541d4a027523362059b64 | [] | no_license | ShreenidhiN/Data-Mining | 42ee7f4418145b88e031301c063f2006d49697bd | d84bdf07514bf7873707a8ca02569524fb2192bc | refs/heads/main | 2023-04-22T06:54:22.112093 | 2021-05-06T16:14:42 | 2021-05-06T16:14:42 | 343,116,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,877 | py | from itertools import combinations
import pandas as pd
def count_singletons(filePath):
n_buckets = 0
c1 = {}
with open(filePath) as f:
for line in f:
bucket = line.split(" ")
if '\n' in bucket: bucket.remove('\n')
for item in bucket:
itemset = fro... | [
"shreenidhin23@gmail.com"
] | shreenidhin23@gmail.com |
b0acb77910bf7cf31a0ffac8243c4a59273c8843 | da86a8cd3fff6cc982ccff09c86746bfd08f8af8 | /scripts/test-script.py | e9da1232659e47cce16a9e23481d97203acade81 | [
"Apache-2.0"
] | permissive | milebril/Temporal-SBMC-extension | ea86bd80b799f3791ae642ce6825e8eecc7e657e | 57c56b73786e49d233facffde4ba80f212a00fa8 | refs/heads/master | 2023-04-18T20:19:40.488398 | 2021-05-05T07:28:24 | 2021-05-05T07:28:24 | 308,298,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | import os
import argparse
import shutil
import tempfile
import time
import pyexr
import torch as th
import numpy as np
from torch.utils.data import DataLoader
import skimage.io as skio
from multiprocessing import Pool, JoinableQueue, cpu_count, Process
import ttools
from denoise import denoise
import sbmc
inputs =... | [
"milebril1@hotmail.com"
] | milebril1@hotmail.com |
1fb6bb92aff933a2a2c035f31eee5bb3a02ff373 | 37d21b78f712be90e56d2704c686b64e6b5aab97 | /jULIE_recordings/jULIE_recording_setting.py | 61cd87ea1a53e75850786f251929e06367df9252 | [] | no_license | warnerwarner/bash_scripts | 844ad7ed10a0ff0e1c7ac9a90c58de9779331c8f | a1efc61778b959c654e5a671a547586afaeba535 | refs/heads/master | 2021-02-26T03:27:30.160488 | 2020-09-17T16:44:16 | 2020-09-17T16:44:16 | 245,492,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | import sys
sys.path.append('/home/camp/warnert/neurolytics')
import threshold_recording as tr
import matplotlib.pyplot as plt
import numpy as np
dir_index = int(list(sys.argv)[1])
dirs = ["/home/camp/warnert/working/Recordings/2018_general/181205/2018-12-05_18-17-18",
'/home/camp/warnert/working/Recordings/20... | [
"tom.p.a.warner@gmail.com"
] | tom.p.a.warner@gmail.com |
d3299a4987bd52c90b6123ec61084b03178ec140 | 866e3bd4b148a7c8f5af1ace397c1c82c9683fed | /STR/opencv-text-recognition/text_recognition.py | 6b3744a6e080cfdd2f8d1bfac8d9230b558b6be4 | [] | no_license | GYLee1618/MARTH | e908a4d297477adfc7f5681372d2640b57d6013e | b895eaaa38743ad1acb36a5f13607d182848accc | refs/heads/master | 2020-04-01T15:50:27.435716 | 2019-04-26T20:09:50 | 2019-04-26T20:09:50 | 153,354,105 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,557 | py | # USAGE
# python text_recognition.py --east frozen_east_text_detection.pb --image images/example_01.jpg
# python text_recognition.py --east frozen_east_text_detection.pb --image images/example_04.jpg --padding 0.05
# import the necessary packages
from imutils.object_detection import non_max_suppression
import numpy as... | [
"ialb998@gmail.com"
] | ialb998@gmail.com |
b54c8a31ae3f67f7f13df8c43907dc2d37fcfb92 | c69e4cf8e3ff7fb9b0dd180065e7b3fbc49dea0f | /encoder.py | 1326037a6ddd833e6f8f1a361b0f5c0ee2d38f55 | [] | no_license | fontysrobotics/AGV_control_ROS_MCU | f20d2e272f5ace86cc81f72cf6536a3e1b5d4677 | d8160ecea303845d0e55954d7af41e77c92dfaf3 | refs/heads/master | 2023-06-13T23:08:56.765907 | 2021-07-09T08:06:33 | 2021-07-09T08:06:33 | 369,505,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,773 | py | import board
import time
from digitalio import DigitalInOut, Direction, Pull
import rotaryio
from pwmio import PWMOut
import math
class motor_enc():
# Encoder resolution: 48 counts per motor shaft revolution
# Gear ratio: 30:1
def __init__(self, enc_pin_A, enc_pin_B):
# self.encoder = rotaryio.Increment... | [
"quirineengbers@teamrembrandts.com"
] | quirineengbers@teamrembrandts.com |
cdbd0d9436036542fab660fed27a6a9af604f0d5 | 67c0d7351c145d756b2a49e048500ff361f7add6 | /xpresso/ai/admin/controller/authentication/ldap_manager.py | 7bfcf63d0ab790a42497df4cd589343641ea9831 | [] | no_license | Krishnaarunangsu/XpressoDataHandling | ba339ae85b52e30715f47406ddb74966350848aa | 0637a465088b468d6fdb6d1bb6f7b087547cec56 | refs/heads/master | 2020-06-27T19:58:43.358340 | 2019-08-29T16:59:08 | 2019-08-29T16:59:08 | 200,035,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,034 | py | __all__ = ['LdapManager']
__author__ = 'Srijan Sharma'
from xpresso.ai.core.logging.xpr_log import XprLogger
from xpresso.ai.core.utils.xpr_config_parser import XprConfigParser
import ldap
import ldap.modlist as modlist
class LdapManager():
"""
Creates a class to perform LDAP operations i.e. authenticating u... | [
"arunangsutech@gmail.com"
] | arunangsutech@gmail.com |
91daa9eb50f7dcfd4c5a62ce370d6c24252cb435 | d71a5202e396c90a03e6d091b6537cba2c39c4af | /zinnia/tests/views.py | 296dfa5df018061296d5b9d68a22e3ba7e54e658 | [
"BSD-3-Clause"
] | permissive | kelsta/django-blog-zinnia | 7616de493b8ef3ec13acbb3943407839e2ea504f | 4b72619c93519456677bf9a1cd996d6ae0d029f8 | refs/heads/master | 2020-12-30T19:23:39.673992 | 2011-04-05T13:57:02 | 2011-04-05T13:57:02 | 1,402,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,450 | py | """Test cases for Zinnia's views"""
from datetime import datetime
from django.test import TestCase
from django.contrib.auth.models import User
from django.contrib.sites.models import Site
from django.template import TemplateDoesNotExist
from django.utils.translation import ugettext_lazy as _
from zinnia.models import... | [
"fantomas42@gmail.com"
] | fantomas42@gmail.com |
3b7be3e7b1b0af7eeb2bb0fc441591be9c5bef7d | fabc11016d9bf3be41df03fe9a76053b905cede6 | /showcase_backend/projects/migrations/0007_merge.py | f0521f52c18bfaa61860ceb4601182d183bf79d9 | [] | no_license | eluciano11/showcase-backend | ee48b681fa2ea63be8dbeae7d316fed5fe410378 | a046c59ebd48eddecacb75bf09c593d29248ec57 | refs/heads/develop | 2016-09-09T23:49:28.180670 | 2015-03-01T14:00:00 | 2015-03-01T14:00:00 | 28,466,872 | 2 | 0 | null | 2015-02-11T14:32:25 | 2014-12-25T01:33:55 | Python | UTF-8 | Python | false | false | 299 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('projects', '0006_auto_20150123_0113'),
('projects', '0005_auto_20150120_0347'),
]
operations = [
]
| [
"jpadilla1@users.noreply.github.com"
] | jpadilla1@users.noreply.github.com |
0443caff8d52c15be2d25b2895615ab1a0edbb8e | ac00afbcefb76cbe271e0cdff5526f8aa1c71da7 | /lifxlanexamples/sniffer.py | a80dc84329492f4cc9b955e3936720a5ea0d4e70 | [] | no_license | redding1/lifxcontrol | 3aaeea6fb34a4021e9d23af6af8a9871d1fa512b | afb894a9057d7870a877aff61688c48e1f6d4875 | refs/heads/master | 2021-01-10T05:06:22.118785 | 2015-11-09T12:09:57 | 2015-11-09T12:09:57 | 45,006,408 | 2 | 0 | null | 2015-11-09T12:09:58 | 2015-10-27T00:21:02 | Python | UTF-8 | Python | false | false | 1,486 | py | #!/usr/bin/env python
# sniffer.py
# Author: Meghan Clark
# Listens to broadcast UDP messages. If you are using the LIFX app to control a bulb,
# you might see some things.
from socket import socket, AF_INET, SOCK_DGRAM, SOL_SOCKET, SO_REUSEADDR, SO_BROADCAST, timeout
from lifxlan import *
from time import time
class... | [
"matthewreddin@gmail.com"
] | matthewreddin@gmail.com |
1e0997427e3255e41b59d8fce3dfb08af2d054f8 | aaafa161d2f507249dfb984a1d322f803c927177 | /python/tll/config.pyx | 3ebd441cc9e77a301056c3bddb532142cfc68130 | [
"MIT"
] | permissive | shramov/tll | 4daf76af334c877b99a3f964a66536a1072aa3e7 | 72338ff3dcc351666ed86a814ebf093491820dc1 | refs/heads/master | 2023-08-17T13:06:39.833241 | 2023-08-16T08:12:10 | 2023-08-17T06:40:47 | 204,337,361 | 7 | 2 | MIT | 2021-11-04T19:54:37 | 2019-08-25T18:59:54 | C++ | UTF-8 | Python | false | false | 10,491 | pyx | #!/usr/bin/env python
# vim: sts=4 sw=4 et
from .buffer cimport *
from .config cimport *
from .s2b cimport *
from cpython.ref cimport Py_INCREF, Py_DECREF
from libc.errno cimport ENOENT
from libc.stdlib cimport malloc
from libc.string cimport memcpy
from .conv import getT
from .error import TLLError
__default_tag =... | [
"psha@nguni.psha.org.ru"
] | psha@nguni.psha.org.ru |
04326309a2f691efb6a25b07619b9636fcc15d74 | b15e9e84cf248f69dd6c046f19828da6327bf0f6 | /Personalenv/bin/isort | 53537ec29a93146b3364935bf526395414d1c59c | [] | no_license | Hanker00/PersonalWebsite | fc7bb36a1a1a90125c37c82e774d30cfc63b9137 | 2757e6db9d61c47afd3c8d5c941032334b6638a8 | refs/heads/master | 2020-04-10T15:23:15.838056 | 2019-01-11T07:20:23 | 2019-01-11T07:20:23 | 161,107,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | #!/Users/timothyn/Documents/PersonalWebsite/Personalenv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from isort.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nilsson.timothy@gmail.com"
] | nilsson.timothy@gmail.com | |
b1359e0855558c1f67da78c708cd51127a79c159 | abf3a3712cf12d1de4b2657e7dd38063d2f83534 | /test_deconvolve_crop_reconvolve_algorithm.py | 47729761146dceaac7dc4207817ab7539992c94a | [] | no_license | anupgp/ephys_analysis | 2876ca4371c5ced8b7d3db4e6c068bdf284b54b1 | 888ace8a440509de6007bd8e8cacdf6f0e5ddf81 | refs/heads/master | 2021-08-11T06:33:37.531018 | 2021-08-08T00:16:06 | 2021-08-08T00:16:06 | 246,890,724 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py | from ephys_class import EphysClass
import numpy as np
from matplotlib import pyplot as plt
import pandas as pd
import os
import re
ephysdatapath="/Volumes/GoogleDrive/Shared drives/Beique Lab DATA/Ephys Data/Olympus 2P/Anup/"
ophysdatapath="/Volumes/GoogleDrive/Shared drives/Beique Lab DATA/Imaging Data/Olympus 2P/Anu... | [
"anupgp@gmail.com"
] | anupgp@gmail.com |
1d0319089d855a7689fd5f2fbff4a88ceda7d1b9 | c42624a4207fcf4e92dfc1b854bba4d8d47413e3 | /txt2pinyin.py | 7a9e3466b95041ac4fc196efd93cfe7f57868fe0 | [] | no_license | Jiff-Zhang/labToDo | 545106f0f73e9445760b638f492cf6c6df3deae4 | bbec1fbb5162b2c6e80da390e18df12c9acce39a | refs/heads/master | 2021-09-04T21:55:57.726009 | 2018-01-22T08:38:29 | 2018-01-22T08:38:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,242 | py | # -*- encoding: UTF-8 -*-
import sys
import re
from pypinyin import pinyin, Style
consonant_list = ['b', 'p', 'm', 'f', 'd', 't', 'n', 'l', 'g', 'k',
'h', 'j', 'q', 'x', 'zh', 'ch', 'sh', 'r', 'z',
'c', 's', 'y', 'w']
def pinyinformat(syllabel):
'''format pinyin to system's fo... | [
"src_dis@163.com"
] | src_dis@163.com |
e0c4964c2b67277616700f6906273b9c35a62822 | 578a567fc0d18dfc03098f3860c2fdc446258d10 | /assig4.py | 24e2c0f9de12bbc84ca46f73fbb31b3761a4e67f | [] | no_license | 321910303027/assig.py | 6afa338f79451757a32378882c90dc72d62fceb9 | da88bcd826be0694bdaef572122a6dcb551aa3c2 | refs/heads/master | 2022-11-04T21:21:37.856086 | 2020-07-02T05:22:15 | 2020-07-02T05:22:15 | 276,554,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py |
b = {1: 'a', 2: 'b', 3: 'c', 4: 'd'}
print(len(b)) | [
"noreply@github.com"
] | 321910303027.noreply@github.com |
c2dead0ca11828c797760a9bc8cec2504b67abbd | 05fe579c12f0013ce83a106083ddb66ace5e8f47 | /mindinsight/modelarts/adapter_notebook/__init__.py | b57e85b5889e5f1b2c2549ee4f0f1ff4a7f132cb | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSD-3-Clause"
] | permissive | mindspore-ai/mindinsight | 59d3f47144ada9a12d2c82d9826ad5f5288aed78 | a774d893fb2f21dbc3edb5cd89f9e6eec274ebf1 | refs/heads/master | 2023-07-22T22:46:43.075617 | 2023-07-17T11:26:58 | 2023-07-17T11:26:58 | 250,692,948 | 224 | 24 | Apache-2.0 | 2020-12-29T12:22:51 | 2020-03-28T01:58:56 | Python | UTF-8 | Python | false | false | 801 | py | # Copyright 2019 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"9107532+xiaocongcong666@user.noreply.gitee.com"
] | 9107532+xiaocongcong666@user.noreply.gitee.com |
2bb6baded6434e580fa772bd583a638141d05369 | a3312431229bcb710e592986dd09617806cb1baf | /mysite/settings.py | 31ca1cb4a7733aa962d3627055ad99e808603c2c | [] | no_license | hane1818/Django-Girls | 09416a97bb0465a0d5b96385d0cfddc92f1fa71c | b5ffa065ccb65bfc48c8d3800d101bf23472c64d | refs/heads/master | 2021-01-10T11:04:00.945313 | 2015-10-06T11:45:35 | 2015-10-06T11:45:35 | 43,746,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,703 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths i... | [
"hane0131@gmail.com"
] | hane0131@gmail.com |
6f3d0ff6e741110c553962a4b39ef175db211f25 | 4d3f1884b9aa6cc15b599151c56d7c07ea30d2a9 | /AutomaticMultipleDatabases/AutoMultDataDemo/app2/models.py | 821d6b5d92102e94c871c655cd3b2acca0371025 | [] | no_license | WangYyyyy/DjangoAutomaticDatabaseRouting | a203f6cac73087a0a72bfc999c01cacc173800df | 6155ed6018a535929811ee31ddb1144c8c93af2b | refs/heads/master | 2020-06-27T16:21:49.285702 | 2017-07-13T01:51:15 | 2017-07-13T01:51:15 | 97,065,490 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from django.db import models
# Create your models here.
class App2Model(models.Model):
line1 = models.CharField(max_length=50)
line2 = models.CharField(max_length=50)
line3 = models.IntegerField()
| [
"5877156@qq.com"
] | 5877156@qq.com |
1fe074e8abfc274c977fd83d5c91793d3514d173 | 22c0904569696140ea68ad76011314be1ccf8ae8 | /myApp/migrations/0001_initial.py | 75f422a25fccbf5deb155f66e5df2cfcb1812dfd | [] | no_license | LuizBoina/WebScraping | 734c0876ed25f916fbe636b388880f189a7bea40 | e0393a25167decd2c3e039eee450bac308b58423 | refs/heads/master | 2022-12-13T03:28:53.313387 | 2020-03-21T22:28:38 | 2020-03-21T22:28:38 | 249,071,816 | 0 | 0 | null | 2022-12-08T03:51:27 | 2020-03-21T22:27:16 | Python | UTF-8 | Python | false | false | 554 | py | # Generated by Django 3.0.4 on 2020-03-21 19:17
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Search',
fields=[
('id', models.AutoField(a... | [
"lipeboina.boina@hotmail.com"
] | lipeboina.boina@hotmail.com |
44d6f0b9112f8e9441f77e4a96fe7f53f4cb6499 | 9e6bd9c1c9b775471b9573dfce29e21f737f0a0d | /app/api/v2/models_v2/models.py | 52bcd78e340a4063ec7f8b6acc24c9a6ed179044 | [] | no_license | sylviawanjiku/Store_Manager_Api_v2 | c3510c06fa3f4d660b7ab51564fff31486f62786 | d8385828b1eca0eda90c777a6fa52915b46e7f45 | refs/heads/develop | 2022-12-10T04:48:38.615057 | 2018-11-02T12:25:28 | 2018-11-02T12:25:28 | 154,459,958 | 1 | 0 | null | 2022-05-25T00:35:07 | 2018-10-24T07:46:37 | Python | UTF-8 | Python | false | false | 12,083 | py | from werkzeug.security import generate_password_hash, check_password_hash
import psycopg2
from psycopg2 import extras, connect
# local imports
from flask import current_app
class Data_base:
""""database connection model"""
def __init__(self):
self.db_host = current_app.config['DB_HOST']
self... | [
"sylviakatherine22@gmail.com"
] | sylviakatherine22@gmail.com |
752ea36f1314b2805b1d1b909b1fd8d9bf264848 | 43ec1c06825a39c31b976906f7bded21c19b6019 | /google/cloud/talent_v4beta1/types/completion_service.py | 7dbd241555f611a65bf5c9548fd643089fc1d7d7 | [
"Apache-2.0"
] | permissive | renovate-bot/python-talent | b70b036c9d5a6b2887ef428fca853940df067c4b | 0413f5114256b8a8c2c157b33aa0cbc1eb9feca5 | refs/heads/master | 2023-06-07T05:27:59.879356 | 2021-08-30T16:12:17 | 2021-08-30T16:12:17 | 238,039,237 | 0 | 0 | Apache-2.0 | 2020-02-03T19:01:22 | 2020-02-03T19:01:22 | null | UTF-8 | Python | false | false | 5,044 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | renovate-bot.noreply@github.com |
dee8d64aff5b170d25bc626d7d2c905942ea54a1 | 2aa9f05b6136ae82b25f25f51d3f7f5291cc9e8d | /src/security.py | 1f3c91e4665cc8f201c76c968cc67d1e5c0fdcd7 | [] | no_license | popovegor/povodochek | 98792573e0fb137b767001082b0a6a2258932768 | 4d218b04264582140b1e223169afe91d0a6068a3 | refs/heads/master | 2022-09-03T11:29:21.932029 | 2014-10-01T12:31:06 | 2014-10-01T12:31:06 | 8,465,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from werkzeug.security import generate_password_hash, \
check_password_hash
def hash_password(pwd):
return generate_password_hash(pwd)
def check_password(pwd_hash, pwd):
return check_password_hash(pwd_hash, pwd) | [
"root@egor-pc-povodochek.ri.domain"
] | root@egor-pc-povodochek.ri.domain |
b0489090abf122939c8f4de0122cc7acd26f5b43 | 167d211594951aeaafe08a01d3172238462902c3 | /django/seminar2/assignment2/survey/urls.py | b28ebe0f9e1ff9a43d0ce101d3ec23e440b815fa | [] | no_license | dongjangoon/19.5-rookies | 50458b15160cc9aadcb686a9a7e2ae64db0fb9e8 | d847e28a7ecc1258a951628c685c32fe84bd7d87 | refs/heads/master | 2023-08-27T21:22:24.981421 | 2021-11-14T16:56:58 | 2021-11-14T16:56:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | from django.urls import include, path
from rest_framework.routers import SimpleRouter
from survey.views import OperatingSystemViewSet, SurveyResultViewSet, top_50
app_name = 'survey'
router = SimpleRouter()
router.register('survey', SurveyResultViewSet, basename='survey')
router.register('os', OperatingSystemViewSet,... | [
"wlgur7238@snu.ac.kr"
] | wlgur7238@snu.ac.kr |
06b889d5e925efb566ec29ec9a08378211f8ba80 | c0973d6939ef419ed3d261d95167d537499a553a | /OnePy/constants.py | 541ebf3a5bc8a3618a0828c529779f52a22aca7d | [
"MIT"
] | permissive | mj3428/OnePy | 0c6e4be9b4bb36ae66b566dfa85cd44bae2a07de | 8dc13fc21502daa5786aecaa4451ccba32fc8a14 | refs/heads/master | 2020-04-05T10:28:33.550915 | 2018-11-08T04:07:05 | 2018-11-08T04:07:05 | 134,518,682 | 0 | 0 | MIT | 2018-05-23T05:38:12 | 2018-05-23T05:38:11 | null | UTF-8 | Python | false | false | 859 | py | from enum import Enum
class ActionType(Enum):
Buy = 'Buy'
Sell = 'Sell'
Short = 'Short'
Cover = 'Cover'
Exit_all = 'Exit_all'
Cancel = 'Cancel'
class OrderType(Enum):
Market = 'Market'
Limit = 'Limit'
Stop = 'Stop'
Trailing_stop = 'Trailing_stop'
Limit_pct = 'Limit_pc... | [
"chenjiayicjy@126.com"
] | chenjiayicjy@126.com |
eb0dd808b12a66e0297e9f4db5f0228fd397cb14 | 31fce98c1f0c271f39e3d321dfd099ac0b00105a | /Machine-Learning/svm.py | 63bb0eb2eb7dc39fde1809fa31ff383948aad9a5 | [] | no_license | aung2phyowai/MI-BCI_ML | b4024c9472904b32d45f73728f7bf4131d129189 | 0a728c1230ad47bc1e5586101d7d634296048da9 | refs/heads/master | 2023-06-23T18:44:47.811555 | 2021-07-24T09:48:10 | 2021-07-24T09:48:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,874 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 27 23:14:24 2019
@author: omi
"""
from sklearn import svm
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.metrics import classification_report,confusion_matrix
eeg_data=pd.read_csv("E:... | [
"mmiah131145@bscse.uiu.ac.bd"
] | mmiah131145@bscse.uiu.ac.bd |
a7f8c158febbe9dc1db2d51925d25ffd77c09d63 | f88dc13215e988a4bd8606add59605f9b7a001ef | /Gui/Test/SampleQDialog.py | 558c7a1c9077f195dcdc12fff734bd01d6011cb5 | [] | no_license | whitePenumbra/SARdrone | ebcaf5b3f8577198f28af604b4aef18b549e227b | d91b957f04459340dd3b8ce701ca240ffff0b948 | refs/heads/master | 2020-12-18T11:42:40.529090 | 2020-06-29T03:34:59 | 2020-06-29T03:34:59 | 235,364,643 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,715 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'SampleQDialog.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.s... | [
"saballoamiel@gmail.com"
] | saballoamiel@gmail.com |
b7fea66f0718d33279aa223bcfb2ff4cdc38d704 | ebb56da73d9585f83b088d6c9db98a1b525392ed | /server/storageusers/main/models.py | 0c1aca1ef46ac25fb168b902f6ddbe5e8ee6738c | [] | no_license | MuraHika/SplicingRNA | 03cac8b348deb5031c4f3e9bb967b706455a26d6 | c69c4f7f5dc73ef8376a86f719dd1d4cb9e7fb98 | refs/heads/main | 2023-05-12T05:10:17.807016 | 2021-06-03T19:44:17 | 2021-06-03T19:44:17 | 373,615,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,769 | py | from django.db import models
from django.conf import settings
from django.core import validators
from django.contrib.auth.models import AbstractBaseUser
from django.contrib.auth.models import PermissionsMixin
from django.contrib.auth.models import BaseUserManager
import jwt
import random
from datetime import datetime... | [
"kima.bright@mail.ru"
] | kima.bright@mail.ru |
30debb2b661504201123dbaf25d48166d3d2ceed | 2776195dc0863f5e43c5394767f1f950ce7672bb | /twitchbot/command_whitelist.py | 72f3c340143f0e18145e5165b26a8fbb963d21f3 | [
"MIT"
] | permissive | sharkbound/PythonTwitchBotFramework | a5e6f55c89a0639cb8e3dd16b99bb6388ee5f5f8 | 3d9aff994d531272d53b869c3dac6602b04a9d70 | refs/heads/master | 2023-09-04T06:34:44.456338 | 2023-08-16T21:32:58 | 2023-08-16T21:32:58 | 134,095,615 | 111 | 47 | MIT | 2023-09-14T20:40:04 | 2018-05-19T20:24:24 | Python | UTF-8 | Python | false | false | 1,237 | py | from typing import List
from .config import cfg
__all__ = [
'command_whitelist_enabled',
'whitelisted_commands',
'remove_command_from_whitelist',
'add_command_to_whitelist',
'is_command_whitelisted',
'reload_whitelisted_commands',
'send_message_on_command_whitelist_deny',
]
def send_mess... | [
"laptopblaster@gmail.com"
] | laptopblaster@gmail.com |
9c140560e878ac2eb94474966729d562927829a5 | 1302a9807b75ec383a9dd7608a62910533fa0a10 | /lung_cancer_detection/data/nodule.py | 3c0edc979521420c1cad9dde9fca7f11518aa528 | [] | no_license | HanXiaoyou/lung-cancer-detection | b0e8d9bbcc2289a8e4ca62a865c0f26e3417cdf2 | a5ff17aaeb420236456b45fb6eda0e9788a9728c | refs/heads/master | 2023-06-24T20:16:45.770284 | 2021-07-28T09:03:04 | 2021-07-28T09:03:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,515 | py | import os
import random
from pathlib import Path
from typing import Dict, Optional, Sequence, Tuple
import numpy as np
import pytorch_lightning as pl
from monai.data import Dataset, PersistentDataset, list_data_collate
from monai.transforms import (AddChanneld, CenterSpatialCropd, Compose,
... | [
"felix@felixpeters.me"
] | felix@felixpeters.me |
e019a88e40c96e48c5c022e57cc08499dc193e39 | d6c117812a618ff34055488337aaffea8cf81ca1 | /scenes/SceneMovingComplexObjects.py | 72215bb54c43b5a908ca09beb9e2a058a32f6954 | [] | no_license | c0ns0le/Pythonista | 44829969f28783b040dd90b46d08c36cc7a1f590 | 4caba2d48508eafa2477370923e96132947d7b24 | refs/heads/master | 2023-01-21T19:44:28.968799 | 2016-04-01T22:34:04 | 2016-04-01T22:34:04 | 55,368,932 | 3 | 0 | null | 2023-01-22T01:26:07 | 2016-04-03T21:04:40 | Python | UTF-8 | Python | false | false | 1,251 | py | # coding: utf-8
# https://forum.omz-software.com/topic/2531/animation-of-complex-objects
from scene import *
import ui
class MyScene(Scene):
def draw(self):
startx = 20
starty = 20
length = 100
width = 200
... | [
"itdamdouni@gmail.com"
] | itdamdouni@gmail.com |
b33d12b7b484a4ab60fb7387c55714c1af7da98b | 3ed6c8176ece7d368f388f9598c87e9b0735d287 | /Q12.py | bac7ff51625a815adb3b35631caab1d8529a06e5 | [] | no_license | PhamKhoa96/pandas | 8373e3494c54427ca8b94ad2b2f4b9ca5c59f253 | 59a31291e6b9f2938ca74f92a451cf88f0037b9c | refs/heads/master | 2022-12-17T22:07:45.413536 | 2020-09-22T09:40:15 | 2020-09-22T09:40:15 | 297,603,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 26 18:08:11 2020
@author: phamk
"""
import numpy as np
import pandas as pd
df = pd.read_excel('Superstore.xls')
#df = pd.read_csv('Superstore.csv')
df2 = df.pivot_table(index=['Category' , 'Sub-Category'], aggfunc={'Sales': np.sum, 'Profit': np.sum})
df2['Ratio'] = df... | [
"="
] | = |
b4c9caae26d89dc0881150a7570cc45e61117797 | 2d5e825aeadffd9b99e7ad27d18324e791bff609 | /source/openwarpgui/bundled/paraview.app/Contents/Python/vtk/web/testing.py | 2003ce26b02f49bf8db7ed8febe101c26a49b51e | [
"Apache-2.0"
] | permissive | binod65/OpenWARP | fe6ea495be8a8db9f74b52bd1335e10e86fe8c87 | 566c024def1695f196124287cc41976f1e609983 | refs/heads/master | 2021-01-18T12:29:24.685442 | 2016-09-24T14:21:13 | 2016-09-24T14:21:13 | 68,737,943 | 0 | 0 | null | 2016-09-24T14:24:32 | 2016-09-20T17:46:11 | Python | UTF-8 | Python | false | false | 29,542 | py | r"""
This module provides some testing functionality for paraview and
vtk web applications. It provides the ability to run an arbitrary
test script in a separate thread and communicate the results back
to the service so that the CTest framework can be notified of the
success or failure of the test.... | [
"binit92"
] | binit92 |
324129f2df389187ece896e98fe0893e6c5bb427 | 062aa3b492cee3042a50b3e1ed524b49452aa95d | /apps/budgets/models.py | da184b62c0e921944c733cc3f72cacd736b501a1 | [] | no_license | andresow/SICAPD | c3258767aba620c661305fe84ed36f96b42d8f2b | ab047460325c048044f9a85098052129ce1c2ffc | refs/heads/main | 2023-02-04T18:17:28.733526 | 2020-10-02T14:06:20 | 2020-10-02T14:06:20 | 300,633,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,427 | py | from django.db import models
from django.forms.fields import DateField
class Bussines(models.Model):
# user = models.ForeignKey(Nodes, null=True, blank=True, on_delete=models.CASCADE)
name = models.CharField(max_length=100, unique=True)
nit = models.CharField(max_length=100, unique=True)
description =... | [
"andres.serrato@correounivalle.edu.co"
] | andres.serrato@correounivalle.edu.co |
36b0dfedbde47dbdd0fbbb96eb13ca88de1d0468 | 4e21454de5c5b373fab45fe41c65ada8d13bffc8 | /musiques/regexp/expreg1.py | 64ce4c66d93c26de909dda6b76f498e9cde9c212 | [] | no_license | mamagalubru/python | 5b8c03ff13ec34cabb01a92a36f5ce7f361e7655 | e7cccec79257b5d1d14d70795fbeea6ebf1430ad | refs/heads/master | 2021-08-24T10:31:02.526807 | 2017-12-09T06:55:26 | 2017-12-09T06:55:26 | 112,942,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | #!C:\Python34\python.exe
#-*- coding: utf-8 -*-
''' il faut toujours commencer petit, construire brique par brique '''
# import du module adéquat
import re
# initialisation de la chaine de test
string = "TEfdsST Test TEdSTtest TEST"
# initialisation de la chaine de recherche
regexp = "(TEST)"
# test d... | [
"noreply@github.com"
] | mamagalubru.noreply@github.com |
6a5a1e8d3edb3b03cd56bc7af1ff161a61def715 | 15248595074a9165402bff44ae21331b4dbf8025 | /demo/nodes_data.py | 057f2992d9c876f7065f9f2e99e18a787a4f1c69 | [] | no_license | Hyyudu/mgl_api | ecabd1802632768a63b6a07c6dafb5f48f1dc6c6 | e3b8c16ad9f30b511727ad0fd4d62e0817715dfb | refs/heads/master | 2020-03-11T16:13:13.960767 | 2018-08-18T14:59:01 | 2018-08-18T14:59:01 | 130,109,775 | 1 | 3 | null | 2018-08-16T18:25:33 | 2018-04-18T19:08:03 | Python | UTF-8 | Python | false | false | 1,979 | py | node_names = {"hull": "Корпус", "march_engine": "Маршевый двигатель", "shields": "Щиты"}
param_names = {
"radiation_def": "Радиационная защита",
"desinfect_level": "Уровень дезинфекции",
"mechanical_def": "Механическая защита",
"weight": "Масса",
"volume": "Объем",
"thrust": "Тяга",
"thrust... | [
"hyyudu@gmail.com"
] | hyyudu@gmail.com |
fa908ca1cbd019bdee113d7e0752453a93d32e45 | 52017ca16e38ccedda18053c374b82ab7961557c | /logfile2sqldb2.py | 7f162959d84adbc98bb49d0cc474fa85a909522d | [] | no_license | ubx/canlog-correct-ts | 2ec7a38c0e8369d15e4ca743297891845c091fbf | 53e91a3ee76c4a9cc98d6be88e63671fd9ef30f1 | refs/heads/master | 2023-08-01T14:18:55.087986 | 2021-09-14T09:26:32 | 2021-09-14T09:26:32 | 406,295,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,930 | py | #!/usr/bin/env python
# coding: utf-8
"""
Import a can-bus logfile into sqlite3 db.
Note: don't forget to add an index to ts field:
sqlite3 -line log-data.db 'CREATE unique INDEX ts_idx ON messages (ts);'
"""
from __future__ import absolute_import, print_function
import sqlite3
import sys
import argparse
from dat... | [
"andreas.luethi@gmx.net"
] | andreas.luethi@gmx.net |
77417b95d8e039d76c30d7899ff7fdb9a2d761e3 | 4a512701620b812e72f0bdf2d70a06d47b810cb3 | /src/portafolio_app/apps.py | f94c108f3e823a7f05abe76a833a958daa01bd06 | [
"MIT"
] | permissive | kmacho16/Portafolio-Django | 7f734abda1592f5f4fae9c245b59d57ff8b5684e | 2a4409dbf5c904ad146cd00734b8e7cf4993ec2a | refs/heads/master | 2022-10-22T18:51:27.693530 | 2017-04-25T21:03:13 | 2017-04-25T21:03:13 | 89,301,018 | 0 | 2 | MIT | 2022-10-01T03:36:02 | 2017-04-25T00:54:47 | Python | UTF-8 | Python | false | false | 102 | py | from django.apps import AppConfig
class PortafolioAppConfig(AppConfig):
name = 'portafolio_app'
| [
"Videos"
] | Videos |
824b38d43ef4dfb3c81559322218ad104da11564 | b99061bd825d2486b663dfa43a394d375ee9d7c9 | /src/plansys2_turtlesim/launch/noplan_example.launch.py | bacc3d3bdfb09d5fa8e773f3ab0a3c6ae54c0200 | [
"Apache-2.0"
] | permissive | devis12/ros2_ws_src | 6e7ab53b5a66bbbb8aa87a58ba6d3f9320d50a42 | 3a3552a2240767a2d6776c424681b70cad83e989 | refs/heads/main | 2023-06-15T04:43:04.635330 | 2021-07-02T10:04:38 | 2021-07-02T10:04:38 | 361,429,298 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | from launch import LaunchDescription
from launch_ros.actions import Node
def generate_launch_description():
ld = LaunchDescription()
turtlesim = Node(
package="turtlesim",
executable="turtlesim_node"
)
remap_mykill_srv = ("master_kill", "eat")
spawn_turtles = Node(
packag... | [
"devisdalmoro@gmail.com"
] | devisdalmoro@gmail.com |
e3f744b8f38c24fa0e6c5172b34e030e993c24ed | 6c26a9bd075d3d54a307d7c1e5a0bc67b50df8c2 | /python_intermediate/python3/09_convert_birth.py | 30e29cff21e2d39d7c5f1c16223b0736e767edda | [] | no_license | marialobillo/dataquest | 86efc49c0339c07e6263d428b5ecd2f80d395ecb | 49e8b653adf23a12fb9eb6a972d85bc1797dba0a | refs/heads/master | 2021-08-28T08:01:36.301087 | 2017-12-11T16:02:18 | 2017-12-11T16:02:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | for row in legislators:
parts = row[2].split('-')
try:
birth_year = int(parts[0])
except Exception:
birth_year = 0
row.append(birth_year)
| [
"maria.lobillo.santos@gmail.com"
] | maria.lobillo.santos@gmail.com |
eb4dc7337dcb18b1bf04a50f56b47ba5e8d1282a | b5afbb78aa0e5259e00687b02c891bd186fb068c | /detector.py | ce6afab1accf4bc62118076e68342ec99a6f84eb | [] | no_license | idanbuller/BullCrack | a21a2b5e8fca9c087b7d31bc12475c6bf88b4575 | 42c9c91c45f09b94d4c920763a5136b992f2da6b | refs/heads/master | 2022-11-25T07:02:24.929960 | 2020-07-24T14:12:11 | 2020-07-24T14:12:11 | 282,235,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | import re
HASH_TYPE_REGEX = {
re.compile(r"^[a-f0-9]{32}(:.+)?$", re.IGNORECASE): ["MD5"],
re.compile(r"^[a-f0-9]{64}(:.+)?$", re.IGNORECASE): ["SHA-256"],
re.compile(r"^[a-f0-9]{128}(:.+)?$", re.IGNORECASE): ["SHA-512"],
re.compile(r"^[a-f0-9]{56}$", re.IGNORECASE): ["SHA-224"],
re... | [
"noreply@github.com"
] | idanbuller.noreply@github.com |
779b8ec6257873ac5253cce4489f3ef673ddf560 | 15656b9c1aff60d1c9c85712f5cbe4ffee40a588 | /chapter3/power.py | e397464539fb33310a7f629f6d0b789e8d8ea84b | [] | no_license | Super-Louis/key2offer | 23dceffc40253d013874074f629bc2a321dc21a3 | 341cc50773ad0614eb5e9eaeeed2dd1d8858bde9 | refs/heads/master | 2022-12-25T16:30:50.643487 | 2020-09-30T14:39:09 | 2020-09-30T14:39:09 | 299,948,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | # -*- coding: utf-8 -*-
# Author : Super~Super
# FileName: power.py
# Python : python3.6
# Time : 18-10-2 16:16
"""
题目十六:数值的整数次方
实现函数power, 求base的n次方
"""
def power(base, exp):
# 代码完整性
if base == 0 and exp < 0:
raise RuntimeError
if base == 0 and exp >= 0:
return 0
if exp == 0:
... | [
"liuchao15@xiaomi.com"
] | liuchao15@xiaomi.com |
415aaa59ff9c0d19c55e3d6bf2d9e60bb5cc54dd | 4566360f507441e994171c5c349b6f8f83619414 | /msk/__main__.py | 81c0145e348d1e1c9f9de8c89f8375e9ecf7f76a | [
"Apache-2.0"
] | permissive | KathyReid/mycroft-skills-kit | 48951fffb0308160a6301d270a5562e829f4caa2 | bf8859869034134b66645b9f798a7b8af1c332a9 | refs/heads/master | 2020-03-19T10:22:12.055473 | 2018-06-06T15:13:12 | 2018-06-06T15:22:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,590 | py | # Copyright (c) 2018 Mycroft AI, Inc.
#
# This file is part of Mycroft Light
# (see https://github.com/MatthewScholefield/mycroft-light).
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
... | [
"matthew331199@gmail.com"
] | matthew331199@gmail.com |
f62e5b821207c19165f276f316ece8645c9a718a | 91c6942f6d82c614c4006b405e9107396db3ba13 | /tests/mvc_vf_product/other/compare/test_space_compair.py | fcd45e69eed7011ecdcfcb1d0284899f13a5eb55 | [] | no_license | WJJPro/nmc_verification | 51ff6128abf62efdfdc90577bf2723bb532df1fd | 488b06468f7be559c43c127c819e4a8fd08e3f68 | refs/heads/master | 2021-02-08T06:17:30.977303 | 2020-02-24T01:53:20 | 2020-02-24T01:53:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | from nmc_verification.nmc_vf_product.base.space_compare import *
import nmc_verification.nmc_vf_base as nvb
grid = nvb.grid([73,135,0.25],[18,53,0.25])
#grid = nvb.grid([110,120,0.25],[20,45,0.25])
data_fo = nvb.io.read_griddata.read_from_nc('I:/ppt/ec/grid/rain24/BT18070108.024.nc')
#nvb.set_coords(data_fo,dtime= [2... | [
"liucouhua@163.com"
] | liucouhua@163.com |
a7cb757e88826ac4688f3015dc656cb6576717dc | a1465eddf03203c704df4ee8ebd1e58d6cd3e09a | /Final proyect/GUI-Examples/app.py | bc49a7ccdb6e29d0ef803992a65730beaa7a3ce9 | [] | no_license | dtapian94/numericalMethods | 02bd8fdea6223eb92732536c1976f48108ae3173 | f4c384a3ebc1890e06f641b15ec01122b92c8943 | refs/heads/master | 2021-08-08T04:54:47.736225 | 2018-11-26T19:41:32 | 2018-11-26T19:41:32 | 146,498,988 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | from kivy.app import App
from kivy.uix.screenmanager import ScreenManager, Screen
from kivy.uix.dropdown import DropDown
class Menu(BoxLayout):
pass
class BracketAndClosedMethods(BoxLayout):
pass
class MenuApp(App):
def build(self):
root = ScreenManager()
root.add_widget(Menu())
root.add_widget(BracketAndC... | [
"eugenio.leal.333@gmail.com"
] | eugenio.leal.333@gmail.com |
5866de6756a1868129d74cb1d3b2a55187fdd30b | 781f408fd9dc9fd111d5ac47009ab580636625e5 | /examples/test_window_switching.py | ae716575c6b862f53b84476de77172fcbcf51085 | [
"MIT"
] | permissive | doiteachday/SeleniumBase | fb003257b63e157b734d2b34a9c5794d74748322 | 8ded5fac84b85f1d4f43384d0836dbf4a1fc390e | refs/heads/master | 2023-04-10T10:13:50.372864 | 2021-05-04T02:51:43 | 2021-05-04T02:51:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | """
Sometimes tests open new tabs/windows, and you'll need
to switch to them first in order to interact with them.
The starting window is window(0). Then increments by 1.
"""
from seleniumbase import BaseCase
class TabSwitchingTests(BaseCase):
def test_switch_to_tabs(self):
self.open("data:tex... | [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
a3fb783c2f4748e486c8c1020d9480c1df098e2c | 31266820a547fbe85fbb3a47cbee3cf052a9f2b7 | /hello_world.py | 35c5c1ab12843c16d80ee724e11e6559e1b7938f | [] | no_license | JaiTorres13/Python_Practice | b272ec65ec404713c1d3be3c768fc94d9a0dfe49 | 3b7babae05cbb6d43beb5f892424a762c9f1118a | refs/heads/master | 2020-03-10T20:13:11.215711 | 2018-04-15T01:04:11 | 2018-04-15T01:04:11 | 129,565,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | """
First Python Class I've created.
Practicing with print method.
"""
print("Hello World!")
print()
message = "Hello Python"
print(message)
print()
message = "I will rule the world"
print(message)
print(message.upper())
print()
sum_num = 10 + 2
print(sum_num)
print()
screech = "legend of zelda"
print(screech.... | [
"jainel.torres@upr.edu"
] | jainel.torres@upr.edu |
3bf48bc5482d25603c821893ec51cb3b9b9ade29 | 5c95077c2d1a01ac7c2834c126f1b277b4fa64c9 | /qa/rpc-tests/invalidateblock.py | 4759a2c1d771a4471f004ccb97251cc5af85b177 | [
"MIT"
] | permissive | itgoldcoins/itgoldcoins | 335209e8bdecefe883335e8aab138ff665463b8c | 2373f5877d8294063ac89ff106d7fe2347b2f5cb | refs/heads/master | 2020-04-26T04:12:26.268230 | 2019-03-03T01:43:40 | 2019-03-03T01:43:40 | 173,294,052 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,127 | py | #!/usr/bin/env python2
# Copyright (c) 2014-2015 The Itgoldcoins Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test InvalidateBlock code
#
from test_framework.test_framework import ItgoldcoinsTestFramework
f... | [
"fantasyfatey@gmail.com"
] | fantasyfatey@gmail.com |
e49ff9b52e0f8a30dac020a3c7b080d333e92588 | 85a1d522b4917ae7235f7637ee0ca262c79e402d | /lexconvert.py | 969841d0d4de5f3f9b763cda6570c70d096277c0 | [] | no_license | leecody/Trans-Actor | 63b51cc2ed3a720e8724a13cd97e76e7dbc753d1 | a54f296bc4eeb6cc22d459b27b1d0911471b3636 | refs/heads/master | 2020-12-25T14:14:20.187596 | 2016-08-24T17:43:38 | 2016-08-24T17:43:38 | 66,484,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165,750 | py | #!/usr/bin/env python
"""lexconvert v0.24 - convert phonemes between different speech synthesizers etc
(c) 2007-16 Silas S. Brown. License: GPL"""
# Run without arguments for usage information
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public... | [
"leejcody@gmail.com"
] | leejcody@gmail.com |
0379d4bbe345fe0dbca192d0ac27043c4d7b4f57 | 6e423cddd8698bc662bcc3208eb7a8fdb2eb0d72 | /mcenter_client/tests/mcenter_server_api/encoder.py | 9cb35bd7d768a99107b103b4881feb672e2e089a | [
"Apache-2.0"
] | permissive | theromis/mlpiper | 7d435343af7b739767f662b97a988c2ccc7665ed | 738356ce6d5e691a5d813acafa3f0ff730e76136 | refs/heads/master | 2020-05-05T04:44:00.494105 | 2019-04-03T19:53:01 | 2019-04-03T22:02:53 | 179,722,926 | 0 | 0 | Apache-2.0 | 2019-04-05T17:06:02 | 2019-04-05T17:06:01 | null | UTF-8 | Python | false | false | 612 | py | from connexion.apps.flask_app import FlaskJSONEncoder
import six
from mcenter_server_api.models.base_model_ import Model
class JSONEncoder(FlaskJSONEncoder):
include_nulls = False
def default(self, o):
if isinstance(o, Model):
dikt = {}
for attr, _ in six.iteritems(o.openapi_... | [
"lior.amar@parallelmachines.com"
] | lior.amar@parallelmachines.com |
1779c30030ca6febb2833e99d27a6cde0844200c | d2874ae74c83303d04520f0b79d8fe6eba87fd81 | /ex8.py | e728e2a94219f629793b0cea5d1cd51aed1cd233 | [] | no_license | lakshmipraba/New-one | 0036639203b1d06960e90aa366eaae8b8bb043f4 | 8347ec7b7317e15bdeb7544f9a2ea42e2ccf231d | refs/heads/master | 2020-04-29T03:23:25.008782 | 2014-02-06T15:58:09 | 2014-02-06T15:58:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | formatter="%r %r %r %r"
print formatter % (1,2,3,4)
print formatter % ("one","two","three","four")
print formatter % (True,False,False,True)
print formatter % (formatter,formatter,"formatter",formatter)
print formatter %("i had this thing.",
"that you could type up right.",
"but it did't sing.",
"so i said goodnight.")... | [
"lakshmipraba@users.noreply.github.com"
] | lakshmipraba@users.noreply.github.com |
eb2d843edd7819c4b6b0efc4fbe526ac08e3bcaa | 243adc83bbb79277509d042165bfc1ec15626849 | /RandomQG/settings.py | 6b3ba1d38dd6dc13b0c9b2a45d48bd7a1fc9d875 | [] | no_license | Rohith-Bellamkonda/RandomQuotesGenerator | d80f554da8134054e9f5baf8ed548c13603e1ea1 | 3d07135527c1176cebe3bff132818285d0b6ecd0 | refs/heads/main | 2023-06-28T09:47:30.381503 | 2021-07-27T09:14:48 | 2021-07-27T09:14:48 | 389,919,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,292 | py | """
Django settings for RandomQG 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... | [
"Rohith4560@gmail.com"
] | Rohith4560@gmail.com |
a837cdef15b5851a122127c2ff923cef5050feda | cb7a446b35e05c3dc11cf0df8510e5dcdcd40703 | /test.py | 398718b007dd1f0776110266cf1df83492cfba5e | [] | no_license | iampaavan/Udemy-Python-Data-Structures-Algorithms | 8a59082eed4605571c7859a53878d7a38dca11d9 | 9fd685504a799202234e7364d44dc688df871241 | refs/heads/master | 2020-06-04T17:47:40.499407 | 2019-06-25T19:31:24 | 2019-06-25T19:31:24 | 192,130,929 | 0 | 0 | null | 2019-06-27T19:47:58 | 2019-06-15T23:02:51 | Python | UTF-8 | Python | false | false | 1,875 | py | nums = [4, 5, 1, 8, 2]
length = len(nums)
L, R, answer = [0]*length, [0]*length, [0]*length
class Solution:
def productExceptSelf(self, nums):
# The length of the input array
length = len(nums)
# The left and right arrays as described in the algorithm
L, R, answer =... | [
"noreply@github.com"
] | iampaavan.noreply@github.com |
e454ce2d0c662cd6193e06cb607a0575506a8faf | c70327483ad0f71756cb77d60649497a91dfe1b4 | /scrape_the_names.py | 2fbb59d9e72eea61f77e1ac017ff6c30715dabcb | [] | no_license | ilkeroralkasim/name_generation | e081f688b64d9464bf76675174b18ec989485c5e | abc4dc4183eed51c8bac9ff2fb3613e9c68a75c5 | refs/heads/master | 2022-09-11T07:18:13.619947 | 2020-05-16T22:50:20 | 2020-05-16T22:50:20 | 264,542,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | import requests
import pandas as pd
from bs4 import BeautifulSoup
import os
import random
import time
name_list = []
urls = ['https://www.behindthename.com/names']
urls = urls + [urls[0] + '/' + str(i) for i in range(2, 78)]
filenames = ['page' + str(i) + ".txt" for i in range(77)]
f_u = zip(urls, filenames)
for ur... | [
"ilker.oralkasim@gmail.com"
] | ilker.oralkasim@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.