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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f383d554c135fc392f72f27540010b2c2a96e753 | 743da4642ac376e5c4e1a3b63c079533a5e56587 | /build/lib.win-amd64-3.6/fairseq/modules/adaptive_softmax.py | 1c60d09568cbafd7a449a66bea1936644528f85f | [
"MIT"
] | permissive | tmtmaj/Exploiting-PrLM-for-NLG-tasks | cdae1b6e451b594b11d8ecef3c1cd4e12fe51c9b | e8752593d3ee881cf9c0fb5ed26d26fcb02e6dd5 | refs/heads/main | 2023-06-16T08:26:32.560746 | 2021-07-14T17:50:19 | 2021-07-14T17:50:19 | 371,899,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,028 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import operator
import functools
import torch
import torch.nn.functional as F
from fairseq.modules.quant_noise import quant_noise
... | [
"qkrwjdgur09@naver.com"
] | qkrwjdgur09@naver.com |
310ce2c33c38531a7348178612c9a6507ab65fb8 | de46d637de67d6b2e633d7223c8449c2f2bed06f | /m01.py | 08f83aadd42287c8a32c61d95f56742055222198 | [] | no_license | brryyb/crawler | 56b58677ea8ac7b4af94d85211de85d89151faf8 | 990783cac4c01bb644e3d0aedbe1c7988614f839 | refs/heads/main | 2023-04-09T01:30:40.970271 | 2021-04-28T13:27:59 | 2021-04-28T13:27:59 | 358,171,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | import pymongo
mongo_client = pymongo.MongoClient('mongodb://127.0.0.1:27017')
#print(mongo_client.server_info()) #判断是否连接成功
db = mongo_client['zhihu']
coll = db['questions']
d = coll.find({'qid':32189846})
c = d.count()
print(d.next()['title']) | [
"1151596323@qq.com"
] | 1151596323@qq.com |
215350b8ba658e9fd6f6dd005be25a144c8032e1 | 1c91270fc9bf5d2944cab3b84196f8f0793fdbf1 | /src/model/mapsed.py | 46ff3ad39b7cfeaf2752caef019e1adea968785f | [
"MIT"
] | permissive | echoyi/MAPSED | d0a19fb1f0e60ea35265cbe28d6e77a14af3ff3a | 98452e0101bc907c63bcf03666a3de955ebfb2ce | refs/heads/main | 2023-08-18T11:13:59.082309 | 2021-10-11T20:00:26 | 2021-10-11T20:00:26 | 416,068,549 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | import torch.nn as nn
import torch
import torch.nn.functional as F
from src.model.encoder import Encoder
from src.model.decoder import Decoder
class MAPSED(nn.Module):
def __init__(self, vae, latent_shape=(4,3,3), m=5, n=3, lambda_contrast=1, contrast ='L2',lambda_MAE=1):
super(MAPSED, self).__init__()
... | [
"suiyiamy@gmail.com"
] | suiyiamy@gmail.com |
6e820d1d5f5954963c01bd964aa9c66f883d00d7 | 61dcd9b485bc5e6d07c4adf14f138eabaa9a23b5 | /evennumberedexercise/Exercise6_24.py | 2b58b016281f39f12c87f0eed9c9473c43981ad8 | [] | no_license | bong1915016/Introduction-to-Programming-Using-Python | d442d2252d13b731f6cd9c6356032e8b90aba9a1 | f23e19963183aba83d96d9d8a9af5690771b62c2 | refs/heads/master | 2020-09-25T03:09:34.384693 | 2019-11-28T17:33:28 | 2019-11-28T17:33:28 | 225,904,132 | 1 | 0 | null | 2019-12-04T15:56:55 | 2019-12-04T15:56:54 | null | UTF-8 | Python | false | false | 946 | py | def main():
count = 1
i = 2
while count <= 100:
# Display each number in five positions
if isPrime(i) and isPalindrome(i):
print(i, end = " ")
if count % 10 == 0:
print()
count += 1 # Increase count
i += 1
def isPrime(... | [
"38396747+timmy61109@users.noreply.github.com"
] | 38396747+timmy61109@users.noreply.github.com |
26c09af3c8d940821f4738dc53fabb4e746fbe63 | 7b475586d089f7da385bf125c2e3eb135e04edb7 | /petfactory/rigging/cable_rig/util/blend_positions.py | 22989c0ef708774888682adc9f3c0dc2185bd21a | [] | no_license | EriLee/petfactory_maya_scripts | e3085654f36fcb56b95601b4f801da9d4d990a8a | ba002212d61c94e87579fdbc5968282713b895b6 | refs/heads/master | 2021-01-18T08:00:47.123047 | 2015-03-30T08:10:35 | 2015-03-30T08:10:35 | 33,191,651 | 2 | 2 | null | 2015-03-31T14:57:41 | 2015-03-31T14:57:41 | null | UTF-8 | Python | false | false | 948 | py | pm.openFile('/Users/johan/Documents/Projects/python_dev/scenes/empty_scene.mb', f=True)
ctrl = pm.circle(ch=False)[0]
crv = pm.curve(d=3, ep=[(0,0,0), (5,5,0)])
crv_shape = crv.getShape()
# use a vector product node to get a local position to world position
vector_prod = pm.createNode('vectorProduct')
# set to point... | [
"johan@petfactory.se"
] | johan@petfactory.se |
37fa578da37f5e4d30811702cf02171e05fcab25 | 8e65928ef06e0c3392d9fa59b7b716f941e933c3 | /python/leetcode/playground/built-in-functions/bool/bool.py | d16f648de09fd46fda6b3f360438a9ee714eeeb9 | [] | no_license | KoryHunter37/code-mastery | 0c79aed687347bfd54b4d17fc28dc110212c6dd1 | 6610261f7354d35bde2411da8a2f4b9dfc238dea | refs/heads/master | 2022-02-24T10:34:03.074957 | 2019-09-21T19:24:57 | 2019-09-21T19:24:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # bool([x])
# Return a Boolean value of True or False.
# Items are False if they are False, Zero, None, or an Empty Collection.
# > True
print(bool(True))
# > True
print(bool(True or False))
# > False
print(bool(1 and 0))
# > False
print(bool([]))
# > True
# Even though the only element is an empty list, because ... | [
"koryhunter@gatech.edu"
] | koryhunter@gatech.edu |
988de8db92e7a10b3e6dd7bcbef6acf85aa61a4f | bfb0c07b2674f64395fe9234d8fa2c644a126582 | /Flask/g_wifi/g_wifi/cwlan.py | 76611daedd058a32d70e9003099665ce4a10b37b | [] | no_license | bcbobin/Flask-app | f131d3c2c106865e4bf94bd2be909f4aedcec6b0 | 90a25ec43dac66dafbc4ae48a8ebefa86a399d77 | refs/heads/master | 2020-04-16T21:26:05.318066 | 2019-03-25T14:38:58 | 2019-03-25T14:38:58 | 165,925,562 | 0 | 0 | null | 2019-03-25T14:38:59 | 2019-01-15T21:21:45 | HTML | UTF-8 | Python | false | false | 2,316 | py | # Created by Bogdan Bobin
# Last Updated February 19/19
# Version 0.7.0
################################################################
import cgi, cgitb
import sys , traceback
#for system interaction
import sys
#for http interaction
import json
import urllib
#for reading excel data, pandas requires xlrd
#import... | [
"bogdan3964@hotmail.com"
] | bogdan3964@hotmail.com |
eb5d10fe443009630273d8441e3e8a05bf1e6e0e | 54b41d77617849a77354934a6b62c3ed2cfd231b | /Chapter2/Case_study/menu.py | 2fd9622cac77dd8e8761c81b561949bc14c5a835 | [] | no_license | Chino57/python_object_oriented_programming | b52a09e3c5c95f469cbc1cf246af2eaabce813e6 | 108add39c52f62e84666b082599d4fdeae4e7f00 | refs/heads/master | 2020-06-06T02:25:18.036584 | 2019-06-30T18:48:46 | 2019-06-30T18:48:46 | 192,612,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,851 | py | import sys
from notebook import Notebook
class Menu:
"""Display a menu and respond to choices when run"""
def __init__(self):
self.notebook = Notebook()
self.choices = {
"1": self.show_notes,
"2": self.search_notes,
"3": self.add_note,
"4": self... | [
"pernin.julien@gmail.com"
] | pernin.julien@gmail.com |
fcb2b13bbe87a50f815f9f8969bd729afae761ce | 6a8aef47b701898d6805aeb3a4c47af2c9fb7c22 | /PR_sept9.py | f699eddffcf634f0752df14d10e7a3a2e60b1d21 | [] | no_license | stephendoty826/reading | 3f7e1e9048b09b6b50d992dd255e5b47849bb70f | 2be7c44286ef95aa613c867468592dcb2c0c4cec | refs/heads/main | 2023-08-06T14:04:53.647835 | 2021-10-02T13:04:44 | 2021-10-02T13:04:44 | 412,798,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | # To Do List
# todos = ["pet the cat", "go to work", "shop for groceries", "go home", "feed the cat"]
# todos.extend(["binge watch a show", "go to sleep"])
# add_todo = input("Please add a todo to your list. To exit, press Enter. ")
# while add_todo != "":
# todos.append(add_todo)
# count = 1
# print("\n... | [
"stephendoty826@yahoo.com"
] | stephendoty826@yahoo.com |
013828da34812312109f6a6d4d56bcc9cabb1128 | 39d4e5a2687c0f2e10d580f96c5d207debad9c52 | /model/CoinAsset.py | f2a1b4a283b2d5ba715d765f92eec5f60ed7abbc | [] | no_license | mratose/cryptoAppComparison | 7d8a9ff1328dfb1684b9084b998d334fa7f5fae2 | 4168a097b83dd3cbd9aa3fe8490fd699f317b545 | refs/heads/master | 2022-08-16T04:50:58.025127 | 2020-05-19T08:14:05 | 2020-05-19T08:14:05 | 263,580,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | class CoinAsset:
def __init__(self, asset_id, name, type_is_crypto, data_start,
data_end, data_quote_start, data_quote_end, data_orderbook_start, data_orderbook_end,
data_trade_start, data_trade_end, data_symbols_count, volume_1hrs_usd,
volume_1day_usd, volume_1mth... | [
"olajire.atose@gmail.com"
] | olajire.atose@gmail.com |
9214eed34cce1626804f3fb053f01667c2901288 | 47673df0b8760818eccdaf2bb839b3911590a808 | /Reorder.py | 4e636a138f3067e02450a08797debd4c8f01d49a | [] | no_license | mrrocketraccoon/Fusion360-to-SDF-Exporter | 87516238dccc76698bd1f3d3132f6e81fe8498b9 | ed7dde71c12de677733df4f3a890a0a4565beeac | refs/heads/master | 2021-08-08T14:16:10.317828 | 2017-11-10T13:40:03 | 2017-11-10T13:40:03 | 110,250,713 | 2 | 0 | null | 2017-11-10T13:36:19 | 2017-11-10T13:36:19 | null | UTF-8 | Python | false | false | 18,131 | py | import adsk.core
import adsk.fusion
import traceback
#import os.path
import xml.etree.ElementTree as ET
import math
import xml.dom.minidom as DOM
import os
## @package SDFusion
# This is an exporter for Autodesk Fusion 360 models to SDFormat.
#
# This can be loaded as an addon in Fusion 360.
# It exports all rigid gro... | [
"noreply@github.com"
] | noreply@github.com |
86a043a3a84571bfb640be0a1695deb0b98650e6 | 4d76450e30717d66358d7764e9bdded842dc6174 | /bayes_opt.py | 78ee3cb2c14c27b165366c71088f72a902e16929 | [] | no_license | rlyapin/bayes_opt | 6f4ab6d9082c3c5977eb42971186d2643002a45c | a17495ec7e66218a42b860d581c7dbff38f8fd44 | refs/heads/master | 2021-05-11T19:59:39.097753 | 2018-05-15T21:11:30 | 2018-05-15T21:11:30 | 117,428,020 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,315 | py | # This script implements class for run Bayesian Optimizations
# For now it is implemented with EI as an acqusition function
# More acquisition functions may follow
import math
import numpy as np
import scipy as sp
import scipy.stats
from gp import GP
# Dummy class just to hold details of MCMC
class MCMCSampler:
... | [
"lyapin.rk@gmail.com"
] | lyapin.rk@gmail.com |
bf7f887b2f4afed4e0b2e789b0184e14ede98e7f | f75b6408c867c9e6a559cedf5d0e9e7b6757794e | /main.py | 419a1bc27c4b62c1be234328ebd11470038ef200 | [
"MIT"
] | permissive | om1ji/my-bot | 7480ea0eb7194ffddae285d2d2dec8abc3823e29 | ed108a305c6a957e371b33b930db0653754f1846 | refs/heads/main | 2023-03-05T14:07:59.691758 | 2021-02-09T19:27:07 | 2021-02-09T19:27:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,044 | py | import config
import telebot
import random
from telebot import types
bot = telebot.TeleBot(config.token)
query = []
greetings = ['Привет', 'привет', 'прив', 'пр', 'Дарова', "дарова", "Даров", "даров", "Дороу", "дороу", "здарова", "Здарова", "Здаров", "здаров", "Прувэт", "прувэт"]
omeja_v = ['Омиджи', "Омежа"... | [
"noreply@github.com"
] | noreply@github.com |
d17cf53c623fa6d7bd0d5d74da87667c85fca93f | f730a1fc0fe7021d68cec973125d605c10ac7a64 | /code/camera.py | b9bfb55be94621c6619c04db7f15b9de8a045fcd | [] | no_license | wwxFromTju/TJU_AR_alpha0.1 | 47a248b6861dfcdc47a9eefd86250d616a4d71f8 | e435424943846a7812e22afb7ca66a5065d70aec | refs/heads/master | 2021-04-12T11:29:44.434154 | 2016-07-27T10:20:59 | 2016-07-27T10:20:59 | 64,299,053 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | #!/usr/bin/env python
# encoding=utf-8
from scipy import linalg
class Camera(object):
"""
相机的类
"""
def __init__(self, P):
"""
初始化相机类
"""
self.P = P
# 标定矩阵
self.K = None
# 旋转矩阵
self.R = None
# 平移矩阵
self.t = None
# ... | [
"wxwang@tju.edu.cn"
] | wxwang@tju.edu.cn |
60925646feb8473a3fff7eec5ed67860e4efff65 | aea8fea216234fd48269e4a1830b345c52d85de2 | /fhir/resources/STU3/tests/test_episodeofcare.py | 2a6f7c5f3886e9275ff0a301dc3bf923e2cac14a | [
"BSD-3-Clause"
] | permissive | mmabey/fhir.resources | 67fce95c6b35bfdc3cbbc8036e02c962a6a7340c | cc73718e9762c04726cd7de240c8f2dd5313cbe1 | refs/heads/master | 2023-04-12T15:50:30.104992 | 2020-04-11T17:21:36 | 2020-04-11T17:21:36 | 269,712,884 | 0 | 0 | NOASSERTION | 2020-06-05T17:03:04 | 2020-06-05T17:03:04 | null | UTF-8 | Python | false | false | 4,568 | py | # -*- coding: utf-8 -*-
"""
Profile: http://hl7.org/fhir/StructureDefinition/EpisodeOfCare
Release: STU3
Version: 3.0.2
Revision: 11917
Last updated: 2019-10-24T11:53:00+11:00
"""
import io
import json
import os
import unittest
import pytest
from .. import episodeofcare
from ..fhirdate import FHIRDate
from .fixtures... | [
"connect2nazrul@gmail.com"
] | connect2nazrul@gmail.com |
3745cebaea80ac051eadde49e0750ff0cf7da96c | 09a65b3f22854e580a74669435b975b97f317d4a | /No Coffee No Code/chicobentojr/tri-du.py | bb2d974c8c48e8ccc0f0d56ead61af531660aed9 | [] | no_license | chicobentojr/pre-maratona-ifrn | 89df901461e8015ad328fbfc13ece4ee5ab6e329 | e8bf1686ab0652d0cea26eacaada658c8dd28b54 | refs/heads/master | 2021-01-22T23:10:54.104086 | 2016-09-09T03:49:41 | 2016-09-09T03:49:41 | 67,566,387 | 0 | 0 | null | 2016-09-07T02:53:48 | 2016-09-07T02:53:48 | null | UTF-8 | Python | false | false | 179 | py | if __name__ == '__main__':
first, second = [int(x) for x in input().split(' ')]
if first == second or first > second:
print(first)
else:
print(second)
| [
"francisco.bento.jr@hotmail.com"
] | francisco.bento.jr@hotmail.com |
9eaa19c9d5828a8c9d3014e6f598ade1b040dc26 | 8be39cae865fa2163c131a34051c4867ad0350a0 | /examples/quickhowto2/app/views.py | 965acaaf1bbf79ecf7beb5b956b8ac0d380fcf32 | [
"BSD-3-Clause"
] | permissive | ben-github/Flask-AppBuilder | fd13f694457ef4fbc8c73f8b0b90083dc5b978bc | e52947f3e4494a84017bf101b19823df91a41448 | refs/heads/master | 2021-01-17T17:52:19.125926 | 2015-01-09T18:13:30 | 2015-01-09T18:13:30 | 25,661,891 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,050 | py | import calendar
from flask import redirect
from flask_appbuilder import ModelView, GroupByChartView, aggregate_count, action
from flask_appbuilder.models.sqla.interface import SQLAInterface
from flask_appbuilder.models.generic.interface import GenericInterface
from flask_appbuilder.widgets import FormVerticalWidget, Fo... | [
"danielvazgaspar@gmail.com"
] | danielvazgaspar@gmail.com |
2ce9c7d6e64cc29146bdcc4a83f1918f560de7a4 | 0ee19e1fecf00e464d19c6fcee04f20302986a05 | /api/urls.py | f347d248c40fe3f59d966e5e9688805986a0d2c4 | [] | no_license | arnavsingh31/Todo_App | cfa6c71d5f553276e489a8be246a60511d34714d | ef1de7a3ae75890719b52b57b2cb1bd9c0ae5f75 | refs/heads/master | 2023-04-01T13:42:39.928676 | 2021-04-01T12:49:08 | 2021-04-01T12:49:08 | 353,697,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.apiOverview, name="api-overview"),
path('task-list/', views.taskList, name="task-list"),
path('task-detail/<str:task_id>/', views.taskDetail, name="task-list"),
path('task-create/', views.taskCreate, name="task-create"),
... | [
"arnav@wrath.com"
] | arnav@wrath.com |
b580ef8a45894dddb42df5fb7d06b62f3b76b132 | f062afcfc7da5ef1fae49ef1dbdb33a0edf83086 | /p1/s4.py | d8bbea3c9058c2c8f140987d5430214feaefa723 | [] | no_license | harvestcore/pyweb | 473ea66c9b5dea22836dde966709ee5102330b9e | dbf6b762c33205f33f1ee9daf80dade56880a9f2 | refs/heads/master | 2020-04-01T18:51:53.108458 | 2018-12-18T18:47:10 | 2018-12-18T18:47:10 | 153,520,059 | 0 | 1 | null | 2021-10-10T20:50:33 | 2018-10-17T20:32:54 | Python | UTF-8 | Python | false | false | 666 | py | #!/usr/bin/env python3
import os
def fib(n):
if n <= 1:
return n
else:
return fib(n - 1) + fib(n - 2)
if __name__ == '__main__':
nombre, salida = input("Entrada: "), input("Salida: ")
archivoSalida = 0
if os.path.isfile(salida):
os.remove(salida)
archivoSalida = o... | [
"aagomezies@gmail.com"
] | aagomezies@gmail.com |
25b1e11ccb86911371d26d18321fc749230e8a50 | ee0c647d3b279654fcca178e2453386a22c2b130 | /app1/migrations/0002_auto_20180117_0403.py | 52951e7728781fb5dde37130e4595707800b6093 | [] | no_license | wntbrian/django1 | c85bdb13a5ce9249bfb6fff7012e68a05a53b541 | c0b49967e954b8186498f837016a3da538172d9d | refs/heads/master | 2021-09-24T10:17:02.346568 | 2018-10-08T01:13:43 | 2018-10-08T01:13:43 | 117,347,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | # Generated by Django 2.0.1 on 2018-01-17 04:03
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('app1', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='artist',
o... | [
"savladimirov@outlook.com"
] | savladimirov@outlook.com |
b8fc0ce65141983f44c8f120c97563e136c8f859 | 028ddc5e85d89c26f8320b70d8ffe80f3d5aec52 | /src/UQpy/dimension_reduction/hosvd/__init__.py | d8afbfb86c2a6ecffe7096d3d4283d48de3b91ba | [
"MIT"
] | permissive | SURGroup/UQpy | 3b516706e9072c6fac80da0bdfbd23e2193f5844 | 9e98a6279aa5a2ec2d6d4c61226c34712547bcc6 | refs/heads/master | 2023-09-04T03:38:35.294389 | 2023-08-04T12:55:02 | 2023-08-04T12:55:02 | 112,795,497 | 215 | 70 | MIT | 2023-09-14T14:18:22 | 2017-12-01T23:05:13 | Python | UTF-8 | Python | false | false | 72 | py | from UQpy.dimension_reduction.hosvd.HigherOrderSVD import HigherOrderSVD | [
"dimtsap@hotmail.com"
] | dimtsap@hotmail.com |
986b5eef319190bbecc0933f46b6cd7507f813a3 | d49c8215cecb13b4f744287d02c22051aa29cbc4 | /gyoseki/migrations/0003_auto_20191103_1208.py | ec0648591d4a66b4686d26d55eea5f5642af80cd | [
"MIT"
] | permissive | yamaken1343/gyoseki-archive | 5bd3d2c684e52918888e9a2bbd9132675884d9c2 | 2dbe9629676799d68cedc701e95efc13d2f95ee1 | refs/heads/master | 2021-08-06T16:29:19.432481 | 2020-03-10T04:54:56 | 2020-03-10T04:54:56 | 245,939,343 | 1 | 0 | MIT | 2021-03-19T23:10:48 | 2020-03-09T03:54:23 | Python | UTF-8 | Python | false | false | 1,125 | py | # Generated by Django 2.2.3 on 2019-11-03 03:08
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('gyoseki', '0002_auto_20190905_1848'),
]
operations = [
migrations.CreateModel(
name='Language',... | [
"yamaken1343@gmail.com"
] | yamaken1343@gmail.com |
ac338cfc3c89a67ea205a8d928a5c67a6e1c9083 | f52c6dd8723d6d539f2124732a1c0ced75f64c67 | /UCI RegChecker/main.py | b5154113ea129e0ed3695c4a11e7a5eabcd0a80d | [] | no_license | scienz/UCI_RegChecker | 44bc811b856baec99eb6b22c309a907fd583cbf5 | e80adc35c7782f4bbf15a58a52383ef41437b1bf | refs/heads/master | 2020-07-23T08:23:28.572241 | 2019-09-10T07:57:44 | 2019-09-10T07:57:44 | 207,498,437 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | from website import app
if __name__ == "__main__":
app.run(debug = True)
| [
"noreply@github.com"
] | noreply@github.com |
0cdaae4efa973bf48bb9119247628fc2710ea0f4 | 5a01ac2c9ffff853576d8796362932482ae42ff4 | /custom_components/colorfy/__init__.py | ddf9b6941d739d0a2dd2ac40baf60b4b65b5df23 | [
"Apache-2.0"
] | permissive | peaster/colorfy | b7ab6f602e4f5ec45dd9a27b1a75a511281b681b | ecdd71d61e478d208b852cd40a24e910f7e5ece0 | refs/heads/master | 2023-03-03T12:15:38.344281 | 2021-02-14T00:23:28 | 2021-02-14T00:23:28 | 338,696,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | from homeassistant import core
async def async_setup(hass: core.HomeAssistant, config: dict) -> bool:
"""Set up the Colorfy component."""
# @TODO: Add setup code.
return True
| [
"peasterbrooks@perfectsensedigital.com"
] | peasterbrooks@perfectsensedigital.com |
b27215479e3d24d61d6359a06b0f73e10f8e5cd5 | 9f3213d44c9b8a296f7009377f11c5e5a911b751 | /ps1/Assignment 1: Coinflip/main.py | 09568582f362d9acf0cbda2359b859e4157c021d | [] | no_license | dcordoba/CordAcademy-Python-Assignments | fd7224cd9c1e2f30726294fffeb42131511de431 | bc08fa90ca88037e406c93b2bd4a4eed0d72961c | refs/heads/master | 2016-09-10T23:24:10.084334 | 2014-10-28T06:05:07 | 2014-10-28T06:05:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | """Simulates the flipping of a coin. When this program is run, a coin will be
flipped until 'HEADS' is achieved the given amount of tiems.
The flip_coin method is provided for you. You will use this method to 'flip' a
coin until you get the desired number of 'HEADS' in a row.
After each flip, you should print the res... | [
"david.cordoba222@gmail.com"
] | david.cordoba222@gmail.com |
c6d0ba4381285740fadc5f4ec42aab9a196a5fdb | 1f999da1e948d9a7e8330e4fb2826ff08fb9a7ac | /generate-dataset/dataset-from-prosite.py | 102a4835504cd6152935c058b413cdbfbc3a4076 | [
"MIT"
] | permissive | kalininalab/rinminer | c6c7748a0e2a3dae0a050b68ff5cc12353335f9d | 5fcbbcf6cc3d8d6343a83b2cbea6154f3350eff0 | refs/heads/master | 2023-05-02T20:17:56.264070 | 2021-05-02T14:49:45 | 2021-05-02T14:49:45 | 261,425,189 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,159 | py | #!/usr/bin/python3
import argparse
import os, sys
import re
import gzip
import errno
from Bio import SeqIO
import pisces
import tempfile
import shutil
from urllib.request import urlretrieve
def pattern_to_regex(pattern):
pattern = pattern.replace('-','')
pattern = re.sub('\[([^[]*)>([^]]*)\]', '([\g<1>\g<2>]|... | [
"skeller@mpi-inf.mpg.de"
] | skeller@mpi-inf.mpg.de |
f52733a5e4b5b8f4b1f1749c808892ba40ca8891 | 72f4e03942f45939fbd95068e538ef29061efa31 | /room_access/controllers/user_controller.py | bf02ab8045afbf8e897bc8a1b04f7d6aaf99e2a7 | [] | no_license | MarkerViktor/tpu_room_access_via_telegram | 6d3cb094c9093928c5013fd24501224f8464f310 | 3cce75f8d1802b98024c31dc85b3805cc85f7c6c | refs/heads/master | 2023-03-18T02:39:02.731979 | 2021-03-19T22:27:05 | 2021-03-19T22:27:05 | 288,744,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,037 | py | import re
from typing import Tuple
from telebot import types
from room_access.app import bot
from room_access.services import user_service, exceptions
from room_access.controllers.utils import admin_required
@bot.message_handler(commands=['users_list'])
@admin_required
def users_list(message: types.Message):
""... | [
"MarkerViktor@outlook.com"
] | MarkerViktor@outlook.com |
b4524a2c6c4dec9afdd81e0de0712e0042927eb8 | 3950cb348a4a3ff6627d502dbdf4e576575df2fb | /.venv/Lib/site-packages/numba/np/ufunc/sigparse.py | a54df0e25537c1d62b56201d92da6306fa0fa4ba | [] | no_license | Bdye15/Sample_Programs | a90d288c8f5434f46e1d266f005d01159d8f7927 | 08218b697db91e55e8e0c49664a0b0cb44b4ab93 | refs/heads/main | 2023-03-02T04:40:57.737097 | 2021-01-31T03:03:59 | 2021-01-31T03:03:59 | 328,053,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | import tokenize
import string
def parse_signature(sig):
'''Parse generalized ufunc signature.
NOTE: ',' (COMMA) is a delimiter; not separator.
This means trailing comma is legal.
'''
def stripws(s):
return ''.join(c for c in s if c not in string.whitespace)
def tok... | [
"brady.dye@bison.howard.edu"
] | brady.dye@bison.howard.edu |
21badb5ac99248ea98316bd4a2e48df1b9fd38e5 | 155649b574de128db3379bd9d1961de84944cc11 | /venv/bin/wheel | 71efa28a920f8bfc0fe7caa30a4b3c36dc128d4b | [] | no_license | priyambansal/SIH | a28231e51150c17426e961b85060f890e21ff8d3 | 77412cc972db7758c051ed40407397b0f8f0f5d8 | refs/heads/master | 2021-04-06T13:22:15.165531 | 2018-06-06T08:32:04 | 2018-06-06T08:32:04 | 125,324,960 | 2 | 0 | null | 2018-03-27T18:58:31 | 2018-03-15T06:52:48 | Python | UTF-8 | Python | false | false | 232 | #!/home/ananya/SIH/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"keshariananya@gmail.com"
] | keshariananya@gmail.com | |
49cca9864699de57f4f43c3760ffbbd5a13e5479 | a140f5ebfe2e589cb699243c947636ac00017a95 | /compute/openstack.py | 990debc528e945cf7f8ad36c11d752dbf83c6020 | [
"MIT"
] | permissive | wspspring/cephci | b0f8562361a109d53558ab2c297c049024b2f2ac | 24145df7c415287215ba11e614646f533faaa4ac | refs/heads/master | 2023-08-31T15:52:07.984900 | 2021-10-08T11:31:24 | 2021-10-08T11:31:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,648 | py | """Support VM lifecycle operation in an OpenStack Cloud."""
import logging
import socket
from datetime import datetime, timedelta
from time import sleep
from typing import List, Optional, Union
from uuid import UUID
from libcloud.compute.base import Node, NodeDriver, NodeImage, NodeSize
from libcloud.compute.drivers.o... | [
"ckulal@redhat.com"
] | ckulal@redhat.com |
bc0ad0f7ec39d42a50304cbfb1480cfe527a4b4f | d4df738d2066c5222080e043a95a9b230673af81 | /course_512/3.6_API/problem_3.6.4.py | fd758a474fa3c86d4e73a0aa1cafbcef08e81973 | [] | no_license | kazamari/Stepik | c2277f86db74b285e742854f1072897f371e87f5 | bf0224a4c4e9322e481263f42451cd263b10724c | refs/heads/master | 2021-05-04T19:06:02.110827 | 2018-03-26T09:06:09 | 2018-03-26T09:06:09 | 105,513,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,756 | py | '''
В этой задаче вам необходимо воспользоваться API сайта artsy.net
API проекта Artsy предоставляет информацию о некоторых деятелях искусства, их работах, выставках.
В рамках данной задачи вам понадобятся сведения о деятелях искусства (назовем их, условно, художники).
Вам даны идентификаторы художников в базе Artsy... | [
"maha_on@yahoo.com"
] | maha_on@yahoo.com |
f5c721c8f68c4f1e1acca8588ea9de5a6ee51dab | 379fc4e0e98a7575b93ca4f60d1301adb5c155e3 | /morphling/cape_modules/signatures/app_presence_reg.py | d7f28470c2b5fe638565059e17200fd2e57e422d | [] | no_license | vangeance666/morphling_all | 7c386551dd09835268d1caf9c645cf76ede4d078 | 288b69b3e47f4585decfba980889b365d717d0ab | refs/heads/main | 2023-06-29T02:22:29.070904 | 2021-08-02T12:51:50 | 2021-08-02T12:51:50 | 391,045,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,890 | py | import json
import os
import re
from configs.config import *
from .signature import Signature
class AppPresenceReg(Signature):
name = "app_presence_reg"
description = "To extract chocolatey packages to install based on registry keys found"
severity = -1
categories = ["context"]
authors = ["boomer... | [
"1902132@sit.singaporetech.edu.sg"
] | 1902132@sit.singaporetech.edu.sg |
f989b3d66de8c67aa344abf7820979188fa72ac8 | ea9f2bb8ba03ac8dff039c448d6288eed7b05b16 | /src/main/python/DataPrep.py | 33277344da1ba958f9b8606e58da6939b2ad95dc | [] | no_license | brightlaboratory/ACT | dfda62ba4d3fef838c30f3f36c29f469e942f64a | 230ac112edf8a858271af8e06aeb31b62919d19a | refs/heads/master | 2018-09-25T05:01:30.979479 | 2018-06-08T19:29:02 | 2018-06-08T19:29:02 | 120,819,696 | 0 | 0 | null | 2018-02-27T18:26:45 | 2018-02-08T21:23:10 | Python | UTF-8 | Python | false | false | 10,652 | py | import random, math, datetime, os
import numpy as np
class DataProperties:
def __init__(self, cohort, gender_odds_ratio, pt_odds_ratio, ptt_odds_ratio, platelet_odds_ratio, doa_rate=0.15,
male_ratio=0.75, pt_abnormal=0.27, ptt_abnormal=0.08, plat_abnormal=0.04):
self.gender_odds_ratio =... | [
"noreply@github.com"
] | noreply@github.com |
3c47cdbf8f7591b872a295e5e0c15b6b9822385f | b0a3d41497860ebde9ce7cf42b4155f29a8cc93f | /tensorflow/QuestionAPart2_async.py | 614554eff8efe51720838b2981f2242ae71b9c0f | [] | no_license | Sripradha-karkala/Big-Data-CS744 | 9437141532d90bf62468c12ec00bf8a568fdc480 | b4337c391e9f262163c9baba16582a8efe56c45c | refs/heads/master | 2021-08-28T15:41:29.331336 | 2017-12-12T17:24:34 | 2017-12-12T17:24:34 | 105,720,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,357 | py | import tensorflow as tf
import os
import pdb
import time
import logging
# number of features in the criteo dataset after one-hot encoding
logging.basicConfig(level=logging.INFO, filename="output_async", filemode="a+",
format="%(asctime)-15s %(levelname)-8s %(message)s")
tf.app.flags.DEFINE_inte... | [
"skarkala@wisc.edu"
] | skarkala@wisc.edu |
ac603ff1c371454b11cf128921790f5144556df2 | 7af161332a67d905b33e6517a89c723f1725a378 | /unidade8/fila_de_atendimento_de_pacientes/fila_de_atendimento_de_pacientes.py | 803b8f9228ac8477cfd4749cfc0d8d1b6acdf4c5 | [] | no_license | Itamar-Farias/TST_P1_UFCG | f4839a18d18d3c5cecdf329a8fc576349c1bc2f9 | c02a0f3911f5cada6aa1d38d211e364ac0527075 | refs/heads/master | 2023-04-06T10:27:06.281918 | 2021-04-08T12:48:45 | 2021-04-08T12:48:45 | 355,337,389 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | # coding: utf-8
# Itamar da Silva Farias 115210021
# Programação I
fila_unica = raw_input().split()
n = int(raw_input())
quantidade_por_medico = len(fila_unica) / n
nova_fila = []
for i in range(len(fila_unica)):
| [
"81915356+Itamar-Farias@users.noreply.github.com"
] | 81915356+Itamar-Farias@users.noreply.github.com |
c2471403aa320202deac3015c37cb0a0ac6e08a3 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/storage/v20190601/get_private_endpoint_connection.py | 198ad11aa90ab756d8d0907c319a4050996605d9 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,983 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | noreply@github.com |
ba1fa2b4ccb40d50a75e7fc2f2a9890a12d5bd1d | b5ebdcde6f13f7fcf077c5f95da4df41755f0b16 | /course2/week3/mbox.py | cd3847411b706f04f09f7bba065696562b9e5a38 | [] | no_license | jimtheguy/PY4E | da2207caccb7d5f99878784ac3201fbe0b269bfd | 8f399fe5ace65ba7b7322a938cc0b1ad126e5bfe | refs/heads/main | 2022-12-30T08:39:47.092263 | 2020-10-21T06:36:50 | 2020-10-21T06:36:50 | 305,027,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | # Jim R
# Write a program that prompts for a file name, then opens that file
# and reads through the file, looking for lines of the form:
# X-DSPAM-Confidence: 0.8475
# Count these lines and extract the floating point values
# from each of the lines and compute the average of those
# values and produce an outpu... | [
"jamesrouse85@gmail.com"
] | jamesrouse85@gmail.com |
3d36334691ca67c3f7782449abe5a247bde7633c | 4d0afce4377752b2574f82911d21a1e7bab6973b | /tests/test_nothing.py | de347ec344c3be96ee31dfe47731670ab34462de | [] | no_license | Sunshard/csbot | a8546d1dc91a3614ad586a8709be6dfcc09a9ab7 | 6975ebf517ff82f68894a7f52498cfc6cc778621 | refs/heads/master | 2021-01-15T16:47:09.356787 | 2012-04-21T14:32:18 | 2012-04-21T14:32:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | import unittest
class TestNothing(unittest.TestCase):
def test_nothing(self):
self.assertEquals(True, True)
| [
"alan.briolat@gmail.com"
] | alan.briolat@gmail.com |
25bc3be33edf11b325941a166313b77fcd34b28a | cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc | /Python Books/Machine-Learning-Python/9781118961742_all code files/06/simpleBagging.py | 72c83810c832b413e58d7f6b9fbb92e5a85022e9 | [] | no_license | theGreenJedi/Path | df24fca355590efef0c6cb5c52e7216c6b5d2464 | b5ed2805dbb046480929e49e550bfd8af5bb4d6f | refs/heads/master | 2023-07-27T14:23:37.694546 | 2021-07-16T01:38:55 | 2021-07-16T01:38:55 | 87,686,563 | 8 | 2 | null | 2023-07-11T22:49:03 | 2017-04-09T05:57:30 | Jupyter Notebook | UTF-8 | Python | false | false | 2,973 | py | __author__ = 'mike-bowles'
import numpy
import matplotlib.pyplot as plot
from sklearn import tree
from sklearn.tree import DecisionTreeRegressor
from math import floor
import random
#Build a simple data set with y = x + random
nPoints = 1000
#x values for plotting
xPlot = [(float(i)/float(nPoints) - 0... | [
"GreenJedi@protonmail.com"
] | GreenJedi@protonmail.com |
e3da9b2baf69f616f5058aad74c9ea3a57688241 | 61d6fea82d4f130b7bac8a530dd002b978971987 | /venv/bin/django-admin | cdc281f372db89f952df5c45d00c4164631836bd | [] | no_license | wellingtonasilva/inventory | 0fefbf023821c60f1741136af31a6d2581235220 | 53cce948163a0c21025ea2f418886533fc30cd23 | refs/heads/master | 2020-04-18T05:54:27.937105 | 2019-01-24T03:33:39 | 2019-01-24T03:33:39 | 167,296,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | #!/home/wellingtonasilva/wsilva/desenvolvimento/inventory/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line()... | [
"wellingtonasilva@gmail.com"
] | wellingtonasilva@gmail.com | |
e1972021e769dad89f8661aa299f9df61c0a7e04 | 6ecd5864b59e50bb2a2163a8e2e40696cbc96f51 | /first_app/migrations/0010_bio_profile_pic.py | a32f9a51bf9523782acbf0e728a6cba6ce8758f3 | [] | no_license | nohmichel/WeHike | ad27bc48496e0071fbdaf14e60f0172af1809870 | c62a38a188f5009d055158591605ce47cb75de6e | refs/heads/main | 2023-04-20T04:34:43.679818 | 2021-05-03T03:52:16 | 2021-05-03T03:52:16 | 355,797,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | # Generated by Django 3.1.7 on 2021-04-28 19:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('first_app', '0009_trailfam'),
]
operations = [
migrations.AddField(
model_name='bio',
name='profile_pic',
... | [
"nohmichel@gmail.com"
] | nohmichel@gmail.com |
d6d7f92508e62da4625da30c26b6f39c90ee11ac | 8022f4f327fbd02cee9288147689b165658b52fe | /learn_django-master/web_config/urls.py | 4e6d1a1e45aae982289613e6262cba551ce568e9 | [] | no_license | kiiney/Develop-CIKIM | d69a37a37c11a782edb8855a43fe84a44fb8187a | 419fa42d4e61c9f411d5c81048ac7ce77d3ce7cd | refs/heads/master | 2022-12-19T19:01:29.755754 | 2020-10-14T06:17:15 | 2020-10-14T06:17:15 | 303,906,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,919 | py | """web_config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"737jinifltcrew@gmail.com"
] | 737jinifltcrew@gmail.com |
1f60945be81d540128e6d2e147649ee8591c498f | 9d1e70e9e53dfcd19b0a1ede0e451bc5784132d6 | /day25/notes.py | 454f398e37d6d03e9eb12537f4564491b2a66dbe | [] | no_license | dmartinm95/Python-Bootcamp | bba32d2a22e7afef0592168ada9a84a2f91485aa | e13e1d0eb493ebce4b7f7e3fb4c10212b1c1b19a | refs/heads/master | 2023-08-15T07:15:23.440526 | 2021-10-14T17:02:07 | 2021-10-14T17:02:07 | 364,425,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py | # Day 25: Working with CSV Data and the Pandas Library
# import csv
# with open("day25\weather_data.csv") as file:
# data = csv.reader(file)
# temperatures = []
# for row in data:
# if row[1] != "temp":
# temperatures.append(int(row[1]))
# print(temperatures)
import pa... | [
"dmartinm1995@gmail.com"
] | dmartinm1995@gmail.com |
ffe934d1e29b84ffd554a5850fbc7df173f2951d | 597bc9c9c84861cdcb6e72505c9765b27dcca97a | /dcp/benchmark/ellipses.py | f95fec22316020af9cc166f5ebc9a2c148f5720d | [] | no_license | mschmidt25/deep-capsule-prior | 46b5b19bd5fd184321f6d6c0e70316b724b76f98 | 09b953911b201bffa7189b8e0276814dd876ecbc | refs/heads/master | 2023-06-10T09:26:35.553549 | 2021-06-28T07:56:41 | 2021-06-28T07:56:41 | 379,515,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,696 | py | import argparse
from dival import DataPairs
from dcp.reconstructors import get_reconstructor
from dcp.utils.helper import load_standard_dataset
from dcp.utils.plot import plot_reconstructors_tests
from dcp.utils.helper import set_use_latex
set_use_latex()
def get_parser():
"""Adds arguments to the command"""
... | [
"schmiddie3@live.de"
] | schmiddie3@live.de |
b3cbcb1d5bbbf22e60bf51058c034822d2297c4c | f8da830331428a8e1bbeadf23345f79f1750bd98 | /msgraph-cli-extensions/beta/search_beta/azext_search_beta/vendored_sdks/search/_configuration.py | 76b296b982dacd86747b02dc4fa3d3ca51ea1334 | [
"MIT"
] | permissive | ezkemboi/msgraph-cli | e023e1b7589461a738e42cbad691d9a0216b0779 | 2ceeb27acabf7cfa219c8a20238d8c7411b9e782 | refs/heads/main | 2023-02-12T13:45:03.402672 | 2021-01-07T11:33:54 | 2021-01-07T11:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,605 | py | # coding=utf-8
# --------------------------------------------------------------------------
# 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 Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
ac395c91283444e2dc581c9fa8210b27030a6524 | 85c618a75b722b7f3111c44262871bca4a9d0f8f | /tests/modifiedMexicanHatTest15.py | 283a1ab95dd30cf96ef9d964a2c93f524aee9aad | [
"CC0-1.0"
] | permissive | yaukwankiu/armor | 1969ba0fb850f8cec80f7f25f0c2d6cf1bc8dc22 | 6c57df82fe3e7761f43f9fbfe4f3b21882c91436 | refs/heads/master | 2020-05-18T09:17:13.654568 | 2014-12-12T00:08:49 | 2014-12-12T00:08:49 | 20,916,678 | 1 | 0 | null | 2014-07-15T06:20:22 | 2014-06-17T08:54:34 | Python | UTF-8 | Python | false | false | 7,765 | py | # modified mexican hat wavelet test.py
# spectral analysis for RADAR and WRF patterns
# NO plotting - just saving the results: LOG-response spectra for each sigma and max-LOG response numerical spectra
# pre-convolved with a gaussian filter of sigma=10
import os, shutil
import time, datetime
import pickle
imp... | [
"yaukwankiu@gmail.com"
] | yaukwankiu@gmail.com |
87688702886fce9b13c846c38449557febb2ac55 | 62980971f2742c0a1d541326b8eba555fe26f15c | /core/interviewquest/array_rotation.py | 4b1e6dab086730e040f46e1de0452c2f41790800 | [] | no_license | gsaukov/python-machine | 343a874b27b08f33bf8184ff7b66b3f1e43f79c3 | 2b814608d1e45a1cdff546726f71472943397360 | refs/heads/master | 2021-07-24T10:27:26.699455 | 2020-05-22T15:55:25 | 2020-05-22T15:55:25 | 176,815,098 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py |
def arr_rotation(arr1, arr2):
if len(arr1) != len(arr2):
return False
head = []
tail = []
move = 0
for n in arr1:
if n == arr2[move]:
tail.append(n)
move += 1
else:
head.append(n)
tail.extend(head)
return tail == arr2
print(arr... | [
"georgy.saukov@wirecard.com"
] | georgy.saukov@wirecard.com |
6b30fe3caac3fffcc402a8552c72efc350f09b96 | ccdeae68e468ad399a89181c37bba4490bcdc259 | /scripts/bestExpressions_L_TOP26_WM_LASSO_1.py | a7b9e93f86d34a509b96ab60a1ac2df818dabe1d | [] | no_license | jameshughes89/NonlinearModelsFMRI-2 | 19262d4494aa6adc0e9bd9592069ad6b757dda6b | a507a41d0a0a728d02616023aea0e66fafc1c387 | refs/heads/master | 2021-09-06T17:05:38.086733 | 2018-02-07T15:19:23 | 2018-02-07T15:19:23 | 109,417,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,587 | py | from math import *
def funcL_WM_100307(v0,v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26,v27,v28,v29): return -3.09574729849e-13 * 1 + 0.0 * v0 + 0.0 * v1 + 0.0 * v2 + 0.0 * v3 + 0.0897641196145 * v4 + 0.0 * v5 + 0.0 * v7 + -0.0 * v8 + 0.0 * v9 + 0.0 * v11 + 0.0 * v12 + ... | [
"JamesHughes89@Gmail.com"
] | JamesHughes89@Gmail.com |
e9e5e6e687c30ced5b9a3832b25c4729706fe8eb | ba7c2e1d5e90ac8f5e5bc3d9791230f3c53ce418 | /WaterSaver/settings.py | 790c4c418443ed3e7c0bc1f74b702a1ea105faea | [] | no_license | gurus848/WaterSaver-DjangoServer | 3c05c66f7c29b347fdfad3385dbd997c2d48ba0d | 8c66160eb12569190ecd7b27c2cb2c2d3664e211 | refs/heads/master | 2021-06-26T00:17:27.769243 | 2017-09-10T08:35:47 | 2017-09-10T08:35:47 | 103,015,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,337 | py | """
Django settings for WaterSaver project.
Generated by 'django-admin startproject' using Django 1.11.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... | [
"gurus848@gmail.com"
] | gurus848@gmail.com |
ff1897f0e2b6d877bc8c04dcf518687c6a2f8c8b | 293c68c6774239f3dec355199187992ecd9f8ca8 | /Cloud Computing 2017/Spark/Question-2.py | 25c2c9e8cf2eb92cd92d189bd3cdea4b0ad62569 | [] | no_license | Sohone-Guo/The-Unversity-of-Sydney | 8ff1b3041a72e6020f44b0df59175bc7aefa6d75 | fec72310cb09db3a3fae1d575a037bd7d32cc92f | refs/heads/master | 2020-04-08T18:12:25.693092 | 2018-11-29T02:49:08 | 2018-11-29T02:49:08 | 159,597,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,185 | py | '''
spark-submit --num-executors 3 q2.py
'''
from pyspark import SparkContext
import numpy as np
import math
def measure_filter(record): # Selected the valid measurement
data = record.strip().split(',')
sample,FSC,SSC = data[0],data[1],data[2]
if FSC != 'FSC-A': # If this is a tilte
if int(FSC) >... | [
""
] | |
0eb8e8fed9f7fdf7bfc7d385c153922343e728db | b882fc60004324ad892edf2b93cac2b59c36dfc9 | /redturtle/sqlcontents/config.py | c1b91bdf3c73afa55f2f698b14f683b5b12ce29c | [] | no_license | RedTurtle/redturtle.sqlcontents | 7c31e5e6d9d9dc23f9dddd447a2282c7e4d0a1da | 91456a493c7b6c10568962e11d1c15e2256b1c83 | refs/heads/master | 2021-01-02T22:58:20.935910 | 2013-07-29T10:10:39 | 2013-07-29T10:10:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | """Common configuration constants
"""
PROJECTNAME = 'redturtle.sqlcontents'
ADD_PERMISSIONS = {
# -*- extra stuff goes here -*-
'SQLQuery': 'redturtle.sqlcontents: Add SQLQuery',
'SQLFolder': 'redturtle.sqlcontents: Add SQLFolder',
}
| [
"alessandro.pisa@redturtle.it"
] | alessandro.pisa@redturtle.it |
4496d5f07d39a193ef3fbfd8710da46756d19ecc | c62dbc5715fe80e106a666a8f7a6aeb051d0b40e | /analytical_solution.py | 016425a97e584c740f05ad933c74f8b757d5a4e2 | [] | no_license | mishaukr7/MM_LAB_5 | 14ebb2c8553cfb1f1b13293e6160294fb2684a9c | 610a623d1a63ddf0c231575c2b78c4fc1bb4a454 | refs/heads/master | 2021-08-23T15:16:34.096484 | 2017-12-05T09:03:46 | 2017-12-05T09:03:46 | 113,076,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | import math
def analytical_method_find_solution_free(t0, N0, r, T):
N = []
time = []
for t in range(t0, T+1):
N_new = N0*math.exp(r*(t-20))
N.append(N_new)
time.append(t)
return time, N
def analytical_method_find_solution_limited(t0, N0, r, k, T):
N = []
time = []
... | [
"mishaukr22@gmail.com"
] | mishaukr22@gmail.com |
f0e8094819090389a3da4a67e32863077e67c2a4 | 8f93ae4a6fa1a6a4330be9387009424606e39012 | /analyticResults_func.py | 698aae9ce68fe797523f5205163f41846d9abf2a | [] | no_license | RonTeichner/filtering_vs_smoothing | 541dd7bfa4da438ac53220808c803e5afa135792 | 1a4240cee890fe6b7b91f7b16ba3a21311d879bb | refs/heads/master | 2022-10-19T22:52:57.379666 | 2022-03-13T10:16:17 | 2022-03-13T10:16:17 | 248,265,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,265 | py | import numpy as np
import matplotlib.pyplot as plt
from filterpy.kalman import KalmanFilter, update, predict, batch_filter
from filterpy.common import Q_discrete_white_noise, kinematic_kf, Saver
from scipy.linalg import solve_discrete_are, solve_discrete_lyapunov
from scipy.spatial.distance import mahalanobis as scipy_... | [
"ron.teichner@campus.technion.ac.il"
] | ron.teichner@campus.technion.ac.il |
4b2fa6673d63d5e719510a8281c35d5055a55f66 | b3d552675b36cb88a1388fcfc531e497ad7cbee9 | /qfpython/apps/news/templatetags/news_filters.py | 3a666825994e57a123163079c2f8ecd8013170d7 | [
"LicenseRef-scancode-mulanpsl-1.0-en",
"MulanPSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gaohj/1902_django | 3cea1f0935fd983f25c6fd832b103ac5165a2e30 | 822af7b42120c6edc699bf97c800887ff84f5621 | refs/heads/master | 2022-12-11T10:02:50.233398 | 2019-11-26T08:33:38 | 2019-11-26T08:33:38 | 209,241,390 | 2 | 0 | null | 2022-12-08T07:28:24 | 2019-09-18T07:05:48 | Python | UTF-8 | Python | false | false | 957 | py | from datetime import datetime
from django import template
from django.utils.timezone import now as now_func,localtime
register = template.Library()
@register.filter
def time_since(value):
if not isinstance(value,datetime):
return value
now = now_func()
timestamp = (now-value).total_seconds()
i... | [
"gaohj@163.com"
] | gaohj@163.com |
275ef639bc3efd7cae47bd89b1b51f5ce0d524aa | 07798124d82a1f6fc86bfe9c71c8ed7a0d8f8988 | /CodeSignal/firstDuplicate.py | 30a561833c76f2c4dad9efa659b4a55722d5fb10 | [] | no_license | ksjksjwin/practice-coding-problem | 84ced9e5cf65978a8193fa3b21956595491fb465 | 1e692ae6fcc154f173018f5bf274154a949c9ed7 | refs/heads/master | 2022-12-03T02:31:02.715835 | 2020-08-25T21:49:30 | 2020-08-25T21:49:30 | 262,863,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | '''
Given an array a that contains only numbers in the range from 1 to a.length, find the first duplicate number for which the second occurrence has the minimal index. In other words, if there are more than 1 duplicated numbers, return the number for which the second occurrence has a smaller index than the second occur... | [
"ksjksjwin@gmail.com"
] | ksjksjwin@gmail.com |
54340785999a0d6852c8fbb31d023e36b67ae999 | aedd30e4f4c230722ada171ed11c22e693324f3c | /LDay_100_SpiralMatrix.py | 972cf2c7034d08860f1f18e50195b135a81911e3 | [] | no_license | loetcodes/100-Days-of-Code---PythonChallenge-01 | 173afb7241bfd2c8f43fde0bbe072c597b0fb756 | b186bfa0ba74bd72edcd7ef8065f026c579b0cc4 | refs/heads/master | 2021-07-21T03:59:51.806004 | 2020-06-01T23:36:47 | 2020-06-01T23:36:47 | 176,126,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | """
Day 100 - Spiral Matrix
Leetcode - Medium
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.
Example 1:
Input:
[
[ 1, 2, 3 ],
[ 4, 5, 6 ],
[ 7, 8, 9 ]
]
Output: [1,2,3,6,9,8,7,4,5]
Example 2:
Input:
[
[1, 2, 3, 4],
[5, 6, 7, 8],
[9,10,11,12]
]
Out... | [
"46016065+lulets@users.noreply.github.com"
] | 46016065+lulets@users.noreply.github.com |
156130cd7d52ce78d3ffe0cfb0f1316f7548cdbf | d125c002a6447c3f14022b786b07712a7f5b4974 | /tests/functional/intfunc/math/test_ceil_01.py | 97611af9f2cd0d2d47f57bfbf85d1844845159dc | [
"MIT"
] | permissive | FirebirdSQL/firebird-qa | 89d5b0035071f9f69d1c869997afff60c005fca9 | cae18186f8c31511a7f68248b20f03be2f0b97c6 | refs/heads/master | 2023-08-03T02:14:36.302876 | 2023-07-31T23:02:56 | 2023-07-31T23:02:56 | 295,681,819 | 3 | 2 | MIT | 2023-06-16T10:05:55 | 2020-09-15T09:41:22 | Python | UTF-8 | Python | false | false | 707 | py | #coding:utf-8
"""
ID: intfunc.math.ceil
TITLE: CEIL( <number>)
DESCRIPTION:
Returns a value representing the smallest integer that is greater than or equal to the input argument.
FBTEST: functional.intfunc.math.ceil_01
"""
import pytest
from firebird.qa import *
db = db_factory()
test_script =... | [
"pcisar@ibphoenix.cz"
] | pcisar@ibphoenix.cz |
e4e3718ba742d3e3651c307b8f760f019146916f | d6be5892131194e6ce46f09bc1bdab5f7f0b3d07 | /Week07/word_search_II.py | 693869d2a4a541336c9a5acdb5950b0838cda268 | [] | no_license | twoknowapes/algorithm010 | d2ba47084835d5bc800c38bdd08d27f886c21662 | 4686956781982fe8c81d37db6fbefec5ed77157a | refs/heads/master | 2022-12-04T03:04:17.107552 | 2020-08-21T09:38:38 | 2020-08-21T09:38:38 | 270,298,274 | 0 | 0 | null | 2020-06-07T12:23:18 | 2020-06-07T12:23:17 | null | UTF-8 | Python | false | false | 2,431 | py | import collections
from typing import List
dx = [-1, 1, 0, 0]
dy = [0, 0, -1, 1]
END_OF_WORD = '#'
class Solution:
def findWords(self, board: List[List[str]], words: List[str]) -> List[str]:
if not board or not board[0]: return []
if not words: return []
self.res = set()
# 构建 Tr... | [
"1007845131@qq.com"
] | 1007845131@qq.com |
ac5d720e1bfc20f5f698a3d339518a31eda1c75f | 14357a24d1db7e14e1bc6eb5c98ff85b50292257 | /文件/python-100-days练习/@property@setter.py | ba5ff41c4004affe8ff078e5b2f92abc436627ed | [] | no_license | wenxin8/Lenrning | 5b08cb814517fc0706c43fefae2c127ee2ec604b | a0a10c8d94773417e8363caed5dae7306de72e5c | refs/heads/master | 2021-04-20T07:43:24.378949 | 2020-05-04T13:44:36 | 2020-05-04T13:44:36 | 249,666,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 30 17:28:34 2020
@author: zhong
"""
class Student:
def __init__(self, name, age):
self.__name = name
self.__age = age
@property # 访问器
def name(self):
return self.__name
@name.setter # 修改器
def name(self, name):
... | [
"62378308+wenxin8@users.noreply.github.com"
] | 62378308+wenxin8@users.noreply.github.com |
031c7116657578383ab8dc215dca02a632155237 | 6b63e7c602588ad7f607cf5f1d1ca3eef6b3d54a | /Week_01/[26]删除排序数组中的重复项.py | d494f66852a41f478e0cec0f3ee39ae7f1d6c794 | [] | no_license | Jnewgeek/-algorithm015 | 5e497d89e0b51d39721e8f16955a3a25821d5ce5 | 8f7f1cfbe9f750a70c94c765ca22477f133f3a38 | refs/heads/master | 2022-12-31T13:50:46.785824 | 2020-10-26T13:48:11 | 2020-10-26T13:48:11 | 289,710,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | # 给定一个排序数组,你需要在 原地 删除重复出现的元素,使得每个元素只出现一次,返回移除后数组的新长度。
#
# 不要使用额外的数组空间,你必须在 原地 修改输入数组 并在使用 O(1) 额外空间的条件下完成。
#
#
#
# 示例 1:
#
# 给定数组 nums = [1,1,2],
#
# 函数应该返回新的长度 2, 并且原数组 nums 的前两个元素被修改为 1, 2。
#
# 你不需要考虑数组中超出新长度后面的元素。
#
# 示例 2:
#
# 给定 nums = [0,0,1,1,1,2,2,3,3,4],
#
# 函数应该返回新的长度 5, 并且原数组 nums 的前五个... | [
"jiangjun1102@hotmail.com"
] | jiangjun1102@hotmail.com |
67f12dfd5286bc7e93edff337e196619dbd993d3 | 4a293d52ad10b23e50fd6fa6cc27eef1cb8b8abc | /config.py | ac3459c4c05c3107d3326aca8789247f6c89ffae | [
"MIT"
] | permissive | tws0002/Saya | ef9aef951ab4417f99860577bb5448b73bcd4a06 | a8cb1ab8bd0a66545746095b50efd359469488b9 | refs/heads/develop | 2021-06-18T19:52:40.056919 | 2017-06-23T17:08:30 | 2017-06-23T17:08:30 | 104,034,300 | 1 | 0 | null | 2017-09-19T06:16:06 | 2017-09-19T06:16:06 | null | UTF-8 | Python | false | false | 1,397 | py | import yaml
import os
import platform
_CURRENTPATH = os.path.dirname(os.path.realpath(__file__))
def getLauncherConfig():
if os.environ.get('SAYA_CONFIG_PATH'):
config_file = os.path.join(os.environ.get('SAYA_CONFIG_PATH'), 'saya.yaml')
f = open(config_file, 'r')
CONFIG = yaml.load(f)
... | [
"auratus.lemma@gmail.com"
] | auratus.lemma@gmail.com |
ede7da990163194be761b4be64835d394d704b58 | 8a6f0aa713ee5992fa9462c3dac0666d329c61b2 | /src/virlHost/models.py | d2791066179480756f51328759c87775dbe1af4e | [] | no_license | titopluto/vlabs-server | 6632e2f49b097d688989465264972976734f1d2e | 830cc86d8aaf32ee6339e57a0ed6007688e7ccf3 | refs/heads/master | 2022-05-25T02:03:35.881734 | 2019-07-21T18:48:40 | 2019-07-21T18:48:40 | 192,233,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,372 | py | from random import randint
import datetime
from django.conf import settings
from django.db import models
from django.utils.translation import ugettext_lazy as _
from virtualLab.models import VirtualLab
from simulation.models import Simulation
from simulation.constants import LAB_PER_VIRL, MAX_BAD_FLAG
LAB_PER_VIRL =... | [
"b.tito@dal.ca"
] | b.tito@dal.ca |
28960a2c252af82f0524c93a693e9b16dcce2b01 | 8ae6bc0b9da3be2b5c29b258bc981d0863499773 | /venv/bin/f2py3.9 | 8702a65ceebf63f9e1fa24f542a6fa1f4c9032bf | [] | no_license | p123hx/rel | 60fd34331af02464922316efa9e283fa7a148f27 | a9c9a385b66a243ec53ad550cbcc29654193e152 | refs/heads/master | 2023-08-23T04:49:01.242609 | 2021-10-22T23:59:42 | 2021-10-22T23:59:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | 9 | #!/Users/bj/PycharmProjects/pythonProject1/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from numpy.f2py.f2py2e import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"p123hx@gmail.com"
] | p123hx@gmail.com |
c44888b51398e66bd24229ba196d35bab9e6acdb | 7abc56728aace2fa848d1bc7f30bc6d9f9aeaab8 | /megamenu/apps.py | 688f7a1346ccb062ffc8dc6b4bccf7efff163b57 | [] | no_license | elyasa7/TMWCMS | f31e78ff18c7cba43e0f37d67dd78046e8509b9b | f12d8ab1e5066b6bf89273e923863dbb9a9ae1fe | refs/heads/master | 2020-03-22T13:33:53.098637 | 2018-07-08T06:57:40 | 2018-07-08T06:57:40 | 140,116,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class MegamenuConfig(AppConfig):
name = 'megamenu'
| [
"ilyas.j@open.tm"
] | ilyas.j@open.tm |
c679d012c33bf1ca2342b1a1f8505f495ac23103 | c6b0be6821851484097d508e4db26813a5ffe009 | /urlsmod/urlsmod/settings.py | 36e374a28736f2869f727e0fe32cbf12bd90cc76 | [] | no_license | salmanshaik-470/all_django | c6b2badd850f0c7284ee302e1ad06559f2b21eb3 | 4220ffb7fcc2a5bc6abdbc2c0f0ecd20505b6a85 | refs/heads/master | 2023-06-25T03:45:05.212427 | 2021-07-28T13:30:08 | 2021-07-28T13:30:08 | 387,466,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,346 | py | """
Django settings for urlsmod project.
Generated by 'django-admin startproject' using Django 3.2.
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/
"""
import os
from ... | [
"ss21100@corp.ojas-it.com"
] | ss21100@corp.ojas-it.com |
69a8b88a7232530093bf5fbd65ab346492437fbc | 95367a7a88df25ed3aaaeb7c26427749fa814868 | /prog1/guia1/ej4.py | a095bab65dbb4ed2260eb5668edb0ef3c50fa1a8 | [] | no_license | levleonhardt/guias_Programacion1 | e83c27ba3594572842cf116e9d8e915d7cf27fd2 | c43a77ee13a4c1a49a22eafdfe77c4c16d120abd | refs/heads/main | 2023-09-04T07:37:39.441676 | 2021-10-15T05:20:09 | 2021-10-15T05:20:09 | 365,112,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | #Nombre de alumno: Leonardo Roman Leonhardt
#Leer dos números y decir cuál es el mayor.
num1 = float(input("\n Inserte un número: "))
num2 = float(input("\n Inserte otro número: "))
if (num1 > num2):
print("\n" + str(num1) + " es mayor que " + str(num2))
elif (num1 < num2):
print("\n" + str(num1) + " es meno... | [
"levleonhardt@gmail.com"
] | levleonhardt@gmail.com |
98acee6af1eb61d11c2f8b30039dd8a68e1f2ff4 | e8a9bdcf91350cf0371ebe5a1e481a29017d906b | /apps/message/apps.py | 199cdc9265cfd3bdb2e5a8d6f63f899130ff15f7 | [] | no_license | 0xiaobao0/wx_sm_app | 1082ab8da6aac849eb559479574326c9b27f740d | dd5cbdce04da65fa958ada3b8bf6184cfd73804d | refs/heads/master | 2022-12-19T17:50:50.614377 | 2019-08-12T10:42:46 | 2019-08-12T10:42:46 | 178,772,978 | 0 | 0 | null | 2022-12-08T01:48:27 | 2019-04-01T02:41:45 | Python | UTF-8 | Python | false | false | 122 | py | from django.apps import AppConfig
class MessageConfig(AppConfig):
name = 'message'
verbose_name = '用户消息' | [
"1920566573@qq.com"
] | 1920566573@qq.com |
e92090672df6dbc77947cca8dd3f20b98894a501 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_2/rffada002/question2.py | 5ad1e0412877bdf376192722edcf2c9130f0adb5 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,664 | py | print ("Welcome to the 30 Second Rule Expert")
print ("------------------------------------")
print ("Answer the following questions by selecting from among the options.")
seen=input("Did anyone see you? (yes/no)\n")
if (seen == 'no'):
sticky=input("Was it sticky? (yes/no)\n")
if (sticky == 'no'):
... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
6442fef7126244ecc2d657e3a8f8f29b07ab0672 | 2db555aa649389e377d85dd33b09bf30bf3a58c8 | /sh/m.py | 598c11242b3d67b8412c221a55a69cc7492c9150 | [] | no_license | sinoory/django-jobfind | 21c91e78087f374af87491b1995f09ce1e78215d | da7dc57dbe861f2b2551e1a4a616d0c5f4d51d3c | refs/heads/master | 2022-11-21T02:43:25.206491 | 2020-07-19T05:34:39 | 2020-07-19T05:34:39 | 264,134,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,126 | py | # -*- coding:utf-8 -*-
#!/usr/bin/python
import sys,os,traceback,time
sys.path.append(os.path.join(os.path.dirname(__file__),"../pypub/utility"))
sys.path.append(os.path.join(os.path.dirname(__file__),"../pypub/web"))
from webLogin import LoginBroser
from getPage import HtmlReader
from QtPage import Render,WebkitRender... | [
"sinoory@126.com"
] | sinoory@126.com |
5abe4a61676d8ca77cb32b913e0f0f2306942f13 | 679183a38194a3f51924d12e39e623373acf0c4c | /api/urls.py | 9303f84b9b7f78d922ae29bab863db0a3cbbda2b | [] | no_license | kuldeepyaduvanshi/djangorestapi_using_thirdparty_app | d7a9381f906290387db7bd82177fca5651df3b3e | d756957214710ffa17128b321629e0383559206d | refs/heads/master | 2023-06-29T11:17:35.929257 | 2021-08-11T08:33:40 | 2021-08-11T08:33:40 | 394,861,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | from django.contrib import admin
from django.urls import path
from api import views
urlpatterns = [
path('',views.index,name="home"),
]
| [
"kuldeepyaduvanshi03@gmail.com"
] | kuldeepyaduvanshi03@gmail.com |
c9fc713cf2794caa1273263e919685f3a03babad | 1da9c9cb2142ed110249e1cdba2833510ebf44c0 | /setup.py | d4a34ca47e8434a952b358672b4b9b7cbc2a736d | [
"BSD-3-Clause"
] | permissive | greggyNapalm/firebat-overlord | a1f9226e646b7d0db7f2c94a4b5e2e0e24010b7a | 01d6850c3ba09aa6b82b41ec0df1686d2fd76ec4 | refs/heads/master | 2020-05-18T10:57:15.491842 | 2013-02-12T07:33:58 | 2013-02-12T07:33:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
if not hasattr(sys, 'version_info') or sys.version_info < (2, 7, 0, 'final'):
raise SystemExit("Firebat-manager requires Python 2.7 or later.")
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
#from firemanage... | [
"gregory.komissarov@gmail.com"
] | gregory.komissarov@gmail.com |
6d164cfc391db5ee4400cf4280c951a39b8e146a | 443585e4fc146308b18bc2f9234d0947da38d3e5 | /practice/yj/csv/Quiz2.py | cc4f15f0435d1e5ad3b650c79dc1a5fe19b07be9 | [] | no_license | ggyudongggyu/20201208commit | b524c4a7fb241cacaacffa5882c55d1d0ccba11f | fbb58a8ed06f454a2a79a9b8c75deabaec62b317 | refs/heads/master | 2023-02-02T21:59:51.518218 | 2020-12-24T14:32:21 | 2020-12-24T14:32:21 | 319,578,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | from matplotlib.pyplot import *
title('plot graph')
plot([1, 2, 3, 4], [10, 20, 30, 40], marker='.', color= 'green', label = '1st')
plot([1, 2, 3, 4], [30, 15, 25, 10], marker= '^' ,color = 'pink', label = '2nd')
# plot([1, 2, 3, 4], [15, 25, 15, 25], linestyle= '-.' ,color = 'red', label = '3rd')
# plot([1, 2, 3, 4], ... | [
"donggyu0219@gmail.com"
] | donggyu0219@gmail.com |
dd1baa59268b60d7d8e6c9a30dd4be4fd8fe01c2 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/infra/rtclusterpol.py | 1b736c601de6b4c7027d78510986ca0e568afc10 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 4,589 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
432518836c6dafda96f0ab65cbeec918fc3356c6 | 36dd2c72c876422fd6bd2a6853cf7d4165235497 | /rlscope/parser/exceptions.py | 13ce2ce4cbae77dfda884ee9d4ae478f7d32d560 | [
"Apache-2.0"
] | permissive | UofT-EcoSystem/rlscope | 2f83030c0b04099c5e98e344c4c36bd3f2b52c5b | cdd9bbdc2a3a832be24f20105b8c9fe28149cb63 | refs/heads/master | 2023-04-14T07:35:46.763061 | 2021-04-07T23:16:17 | 2021-04-07T23:16:17 | 161,432,140 | 42 | 1 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | """
RL-Scope related errors and exceptions.
"""
class RLScopeConfigurationError(Exception):
"""
Error raised when the host/container isn't properly configured.
For example:
- installation dependency missing
"""
pass
class RLScopeAPIError(Exception):
"""
Error raised when the rlscope us... | [
"jagleeso@gmail.com"
] | jagleeso@gmail.com |
9e78017150168223104eb9f48f00ba6c175ac6d7 | 5abb0468becfa788e039d6643d974bee6200a9c5 | /venv/bin/pip3 | 617555e50e924f0566f92f9e6eed25af19ec1d63 | [] | no_license | riyadeb4321/flaskproject | 40358ff33ddb369979f1b951979b59deb5afbb0e | 7d0783144d54795cda9ab59f295e8da6f2587606 | refs/heads/master | 2020-07-10T04:13:03.507846 | 2019-08-24T14:40:09 | 2019-08-24T14:40:09 | 204,164,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | #!/home/riya/flaskproject/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"riya.deb.fiem.cse16@teamfuture.in"
] | riya.deb.fiem.cse16@teamfuture.in | |
4864a29f82a72dfdd99d5f5cff7e8974e1509df4 | 5c192be6b95e996d64de3230cfeac081bb2d470f | /app/lib/email_address.py | 1904f23f104f3974198b9d569a62af1bc4274e6f | [] | no_license | AlexanderPease/personal-crm | fb78f77b8923b32f13b38cc6da41a8f8cf4e723f | b57122b34e6765ed28ad5e281666355b0e3ec5d5 | refs/heads/master | 2023-01-24T15:08:35.777894 | 2019-06-19T19:12:46 | 2019-06-19T19:12:46 | 178,596,749 | 1 | 0 | null | 2023-01-13T23:15:25 | 2019-03-30T18:32:40 | Python | UTF-8 | Python | false | false | 825 | py | from email.utils import parseaddr
def valid_email(email_str):
"""Returns a valid email address or False"""
ea = parseaddr(email_str)[1]
if not ea or ea == '' or '@' not in ea or '.' not in ea or not ea.split('@')[0]:
return False
return ea
def clean_email(email_str):
"""Cleans email addr... | [
"zander@nomadhealth.com"
] | zander@nomadhealth.com |
140ef2d0fecf4cdd25d71b775c70a000324b70fc | 59bdad3fb33332b8d05f07107dcae45b6f9ba662 | /actividad_economica/models.py | c9ccd0e856045eb6458f3ea003ff83aeb7a30e62 | [] | no_license | dyronrh/hcmfront-for-test | 8bbad6ab75fd82fa84d75fa942e4d39033080934 | 911d97dffc3f788c0419233535a5e782cca776a5 | refs/heads/master | 2020-04-28T07:14:37.110512 | 2019-03-11T22:38:58 | 2019-03-11T22:38:58 | 175,084,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | from django.db import models
# Creando el modelo Actividad economica.
class ActividadEconomicaClass(models.Model):
actividad = models.CharField(max_length=50,null=True, blank=True)
def __str__(self):
return self.actividad
| [
"dyronrh@yahoo.es"
] | dyronrh@yahoo.es |
b08938d6aba6b5a1c75b63fb7c5acdf3789f9d01 | 2851eb68d4d8fc29270220cddedf4c15c6957ea9 | /badge_earning/api/v1/urls.py | 65c59ee0a4faa6e2124ee9038b50d91e80ae87c8 | [
"MIT"
] | permissive | andela-Taiwo/Badge-Earning | 8431ad9c75fedc79de37f36378c38eaafbb72a28 | 8d9073b552410391b2b54b6c7b4a2e71ae0632eb | refs/heads/master | 2023-03-02T17:12:19.514588 | 2021-01-03T15:08:32 | 2021-01-03T15:08:32 | 289,453,005 | 0 | 0 | MIT | 2021-02-11T06:44:14 | 2020-08-22T08:48:54 | Python | UTF-8 | Python | false | false | 1,303 | py | from dj_rest_auth.registration.views import (
RegisterView,
SocialAccountDisconnectView,
SocialAccountListView,
)
from django.conf.urls import include, url
from django.urls import path
from rest_framework.routers import DefaultRouter
from rest_framework_simplejwt.views import TokenRefreshView
from badge_ea... | [
"sokunbitaiwo82@gmail.com"
] | sokunbitaiwo82@gmail.com |
daaf7110d0464d08291fb7f7a191cb8182631fa6 | 27040f0d537c1898c9f1fce4db68b24588840987 | /7. Reverse Integer.py | 834d39db9bf66caba7c2392e1009abf6fb37a850 | [] | no_license | xtanmaygarg/LeetCodeSolutions | 0197474e92d4ef14676342d00933e764f8b29581 | 5fd06d2f0da222977c1ae6e4d219a682b3596341 | refs/heads/master | 2021-06-14T09:39:37.795785 | 2020-12-04T10:44:07 | 2020-12-04T10:44:07 | 254,488,075 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | class Solution:
def reverse(self, x: int) -> int:
if x >= 0:
res = int(str(x)[::-1])
else:
res = -int(str(x)[1:][::-1])
if -2**31 <= res <= (2**31-1):
return res
return 0
| [
"xtanmaygarg@gmail.com"
] | xtanmaygarg@gmail.com |
c06c0274c985e9910fbd0062bf51e90b28498d7d | f337b4a80e11cd7071fe39b201f763d626702ba6 | /my_venv/lib/python3.6/hashlib.py | 44e407e2641079c8b185a49dee260ac3088cb349 | [] | no_license | zonakostic/lab_002 | 56d01953d0361cc9edc44d82c2343783ca0fc27d | 58c6f2cb3d512aac719fbced2c7c4e475b876015 | refs/heads/master | 2020-03-28T15:03:40.610861 | 2018-09-12T23:03:01 | 2018-09-12T23:03:01 | 148,551,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | /Users/zonakostic/anaconda3/lib/python3.6/hashlib.py | [
"zonakostic@g.harvard.edu"
] | zonakostic@g.harvard.edu |
d1b5a7fbeabcc5a841ca89087e84b297227bde56 | 0701e6b42e5c90c7592a2a2a7a82bee6081e73d7 | /training_script/cifar10_keras_sm_tf2_solution.py | b95fbbe72c87bcbf0db66f7e1dc45b7d96094e09 | [
"MIT-0"
] | permissive | gonsoomoon-ml/tensorflow-in-sagemaker-workshop | 2cbcfd5fe073a8b6c1179d87f64c5819b713357d | 88b534afdf3058a211c5f28cb4ec96a344e57635 | refs/heads/master | 2021-02-07T20:55:35.754708 | 2020-03-02T13:05:02 | 2020-03-02T13:05:02 | 244,076,111 | 0 | 0 | NOASSERTION | 2020-03-01T02:51:36 | 2020-03-01T02:51:35 | null | UTF-8 | Python | false | false | 10,135 | py | # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# 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... | [
"daekeun@amazon.com"
] | daekeun@amazon.com |
7cd5bf667dfd5853848da023118f67243641925b | e1adcd0173cf849867144a511c029b8f5529b711 | /ros_ws/Archive/ProductFiles20180213/positionControlPackage.py | c6e35e7f5eaadfa197321d29d10af5ea39366fea | [] | no_license | adubredu/cartbot_arm_subsystem | 20a6e0c7bacc28dc0486160c6e25fede49f013f2 | 3e451272ddaf720bc7bd24da2ad5201b27248f1c | refs/heads/master | 2022-01-04T23:01:25.061143 | 2019-05-14T16:45:02 | 2019-05-14T16:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,466 | py | import argparse
import sys
import struct
import time
import json
import rospy
from math import *
from std_msgs.msg import (
UInt16,
)
from StringIO import StringIO
import baxter_interface as baxter
import speech_recognition as SR
from geometry_msgs.msg import (
PoseStamped,
Pose,
Point,
Quate... | [
"alphonsusbq436@gmail.com"
] | alphonsusbq436@gmail.com |
eca84022f847a571fc5c438f677b1dcb3f53d265 | 2f8acb743e653d63a88e37a37a95cc09ca856ecc | /LuizaLabsManagerEmployee/wsgi.py | 1d55bb5c6ed69dceb204a33be16607e2d969f25a | [
"MIT"
] | permissive | sillaslima/labs-manager | 9cc67b0af63e479ece1136597bc7dc67d38d2966 | c5cf3bee7d5299cdfdd689e4f8ed737551f9ff07 | refs/heads/master | 2022-05-07T19:21:02.326255 | 2019-08-14T21:35:18 | 2019-08-14T21:35:18 | 202,422,388 | 0 | 0 | null | 2022-04-22T22:10:20 | 2019-08-14T20:37:16 | Python | UTF-8 | Python | false | false | 425 | py | """
WSGI config for LuizaLabsManagerEmployee project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefa... | [
"sillas.lima@semparar.net"
] | sillas.lima@semparar.net |
3061d53096759d45f9136d8e0763ad7bd3bfe32e | a7f9f363af0971555b6f23dbf5ba07d009e5332c | /hair_removal/src/datasets/melanoma_dataset.py | 6187c897aedb4a502f00378e9ad1d38da3ac53df | [] | no_license | gkrry2723/2020_summer_proj-master | 0320e385ed5b3b757cb008af9220a7d062f4844c | ea24616b13c811295e891b41c58ff587b9322f97 | refs/heads/main | 2023-08-16T08:53:01.466163 | 2021-10-08T02:32:44 | 2021-10-08T02:32:44 | 331,607,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,768 | py | import torch
import pandas as pd
import numpy as np
from torch.utils.data import Dataset
from PIL import Image
class MelanomaDataset(Dataset):
"""Melanoma dataset"""
def __init__(self, csv_file, root_dir, label_type='target', img_format='dcm', transform=None):
"""
Args:
csv_file (... | [
"noreply@github.com"
] | noreply@github.com |
1f8d7a2527100b7160bb303a90d246c683700667 | d79ab29338f0eb6ecd8dfa19f0ca2f756fd74029 | /envkey/__init__.py | acbb1dbdbe4d1f1513a48992379e221c5029ddc3 | [
"MIT"
] | permissive | rajeshv23/envkey-python | 5e774a10790ee8f7fc890e95329934b3007a7a14 | 9e05d704fb921c710606f27fda2ecf9dac2b15f0 | refs/heads/master | 2021-01-05T10:54:59.698509 | 2019-06-12T14:23:35 | 2019-06-12T14:23:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from .loader import load
from .fetch import fetch_env
load(is_init=True)
__all__ = ['load', 'fetch_env'] | [
"dane.schneider@gmail.com"
] | dane.schneider@gmail.com |
1c0c56639b1172b5288228661379263b7e8f9db6 | 6e7845c694517a1eb0d7444692e2bd11e5495e43 | /api/testing/test_prediction.py | 110b13203c36874799d8f71ae472001a0de3d8b8 | [] | no_license | DataDima90/flask-ml-api | f8b354134e0348b4a3d770faa35215720f87361d | bd94a16fe6cd9a34d7e9efeb19c05ac3749bfe30 | refs/heads/main | 2023-03-29T07:27:12.754910 | 2021-03-27T13:48:21 | 2021-03-27T13:48:21 | 352,057,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | # tests/test_prediction.py
from api.endpoints.prediction import prediction_api
from flask import Flask
import pytest
import json
app = Flask(__name__)
app.register_blueprint(prediction_api)
@pytest.fixture
def client():
with app.test_client() as client:
yield client
def test_predict_single(client):
... | [
"dima.wilhelm@naska.io"
] | dima.wilhelm@naska.io |
ac929574147f1bb88f631ebadaddaf5330d57ace | 58e1c6613e4c6c70e30bb8936d66dc6122f83bdb | /weechat_otr_test/test_is_a_channel.py | adb862377fe5092088271dfc5435564e5b3aec5d | [] | no_license | fauno/weechat-otr | 56ad77aac263dca47094fad33c9791d4f44602ed | 649025f5a0876a096be475bba7a6e4271b833156 | refs/heads/master | 2020-12-25T09:18:23.974057 | 2014-06-12T06:36:28 | 2014-06-12T06:36:28 | 21,006,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | # -*- coding: utf-8 -*-
# pylint: disable=invalid-name
# pylint: disable=missing-docstring
# pylint: disable=too-many-public-methods
from __future__ import unicode_literals
from weechat_otr_test.weechat_otr_test_case import WeechatOtrTestCase
import weechat_otr
class IsAChannelTestCase(WeechatOtrTestCase):
def... | [
"matthewm@boedicker.org"
] | matthewm@boedicker.org |
9af4f8b44b935d8e148465590a7901bc74ffdc8d | 562d731d32a44b6822e821fa41fc53208cea5577 | /users/views.py | 5e7ad7699f96082419f9fef474d631442545e42f | [] | no_license | bmugenya/CSC-314 | b768b0eed7c79a79e343e5ee20b45c967f8e6c98 | 62ce610bc1c02f21daffeb4676721e0751af1c3d | refs/heads/master | 2021-05-07T20:17:18.466875 | 2021-04-01T16:05:14 | 2021-04-01T16:05:14 | 108,950,643 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.contrib.auth import login, logout, authenticate
from django.contrib.auth.forms import UserCreationForm
# Create your views here.
def logout_view(request):
"""Log the user out.... | [
"bmugenya@gmail.com"
] | bmugenya@gmail.com |
0e953c23f56192a0680bb9e254029e7402f14cae | 2c9d5c092dbb0ec9e980bc429c3fd63d27c679ef | /homeassistant/components/zwave_js/addon.py | ff74b5d5a44efff55355670cf638e92c0ac4cc8d | [
"Apache-2.0"
] | permissive | zachowj/home-assistant | bbc3ecdf6981dc21522ea0d0db66b7accdba0a7d | f3b2624be30b650a8a385e37f04ad7151deced3d | refs/heads/dev | 2023-02-24T11:27:46.415182 | 2021-06-03T21:12:39 | 2021-06-03T21:12:39 | 238,241,447 | 2 | 0 | Apache-2.0 | 2023-02-22T06:15:52 | 2020-02-04T15:41:18 | Python | UTF-8 | Python | false | false | 11,009 | py | """Provide add-on management."""
from __future__ import annotations
import asyncio
from dataclasses import dataclass
from enum import Enum
from functools import partial
from typing import Any, Callable, TypeVar, cast
from homeassistant.components.hassio import (
async_create_snapshot,
async_get_addon_discover... | [
"noreply@github.com"
] | noreply@github.com |
0e18abbe0b8a0be143611eb5d59788e2524487c5 | 8a615e83114c5a9ee9a284220b87b626fddc4671 | /mySimpleprograms in python/days.py | beaefd9a7efa36f88409e5cce3a0e84484b037ba | [] | no_license | MandeepKaurJS/The-Tech-Academy-Basic-Python-Projects | 9854efdb89a294573d72719d83578f471f2ab0ed | d6f8ffce6498b6b791428a109cb15a2be786816e | refs/heads/master | 2020-06-01T15:15:20.032783 | 2019-06-28T05:16:19 | 2019-06-28T05:16:19 | 190,828,207 | 0 | 0 | null | 2019-06-28T05:16:20 | 2019-06-08T00:32:43 | Python | UTF-8 | Python | false | false | 514 | py | user_number=int(input("Enter a Number from 1 to 7"))
#print("%s"%user_number)
days_list=["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"]
if user_number == 1:
print(days_list[0])
elif user_number == 2:
print("TUSEDAY")
elif user_number == 3:
print("WEDNESDAY")
elif user_number =... | [
"mandeep.kaur.fr@gmail.com"
] | mandeep.kaur.fr@gmail.com |
159b57720ecd59dcfb35dbe8f6725768b0565fba | 2d99db071269a5b1b7da7dab0459a355522ded4b | /_lecture_document/Day 5/Lab Guide/lab4-problem2.py | 9229e5f1f3f4d6d0ded3c6a79587397befeff7df | [] | no_license | golfz/practical-ai | 48b425fe5bcdf3d52582b990f95be01ecf92eb1e | 81f71eab57e1f5e1325fd3f2c9ddb1d4ae6b9e6d | refs/heads/master | 2020-04-24T22:19:03.703838 | 2019-07-31T07:16:07 | 2019-07-31T07:16:07 | 172,307,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,548 | py | import pandas as pd
from sklearn.preprocessing import normalize
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
'''
Step 1: Read the dataset using pandas.
'''
pokemon_dataset = pd.read_csv('data/pokemon.csv')
'''
Step 2: Access a certain groups of columns using pandas for preparing (X, y).
Supp... | [
"surattikorn@gmail.com"
] | surattikorn@gmail.com |
12b3726cba31229d764be3c11437acb79618d2a3 | c88fd16dcc783ffab364177e5afdac99e574dd65 | /tests/test_summarize_dataframe.py | 202491970498322840354eb012a75f250e3b5473 | [] | no_license | fbraza/summarize_dataframe | dee6bc158fda41eb999367d1e31f67cefdceee79 | 7ed8bdde5c98df63c824b37d75ad0c1d64f6970a | refs/heads/master | 2023-06-01T16:20:53.842020 | 2021-06-24T06:37:08 | 2021-06-24T06:37:08 | 354,495,653 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | import unittest
import pytest
import pandas as pd
from summarize_dataframe.summarize_df import data_summary, display_summary
class TestDataSummary(unittest.TestCase):
def setUp(self):
# initialize dataframe to test
df_data = [[1, 'a'], [2, 'b'], [3, 'c']]
df_cols = ['numbers', 'letters']
... | [
"fbraza@tutanota.com"
] | fbraza@tutanota.com |
46d944beef6079c4d3518b3105d0f79157014dfa | 0c212aa63d07e84fbad849d15f2ee6a72aea82d2 | /15-spider/p13.py | fcfbb928f0fd41d01739b51f9036b23262c58709 | [] | no_license | flyingtothe/Python | e55b54e1b646d391550c8ced12ee92055c902c63 | 064964cb30308a38eefa5dc3059c065fcb89dd9f | refs/heads/master | 2021-08-06T19:44:42.137076 | 2018-12-03T12:15:15 | 2018-12-03T12:15:15 | 145,518,863 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | from urllib import request, parse
from http import cookiejar
# 创建 cookiejar 实例
cookie = cookiejar.CookieJar()
# 生成 cookie 管理器
cookie_handler = request.HTTPCookieProcessor(cookie)
# 生成 http 管理器
http_handler = request.HTTPHandler()
# 生成 https 管理器
https_handler = request.HTTPSHandler()
# 创建请求管理器
opener = request.buil... | [
"heidemeirenai@163.com"
] | heidemeirenai@163.com |
d1403ebe159acabb0daa5f9392428450c8e9d73e | 9656af0e8280324a4de3cf64bd397d5549628777 | /Scripts/createfontdatachunk.py | 549756c0cf49cd2d52d1b1d8d97566cdf6b556cc | [] | no_license | Nikolay-Pomytkin/big_boys_video_game | c769590ff5d123580dea815e20dd14823da0cca9 | 073d7fa63e95590e499a90223f5a542339404278 | refs/heads/master | 2022-10-27T13:02:13.618713 | 2016-11-19T16:14:03 | 2016-11-19T16:14:03 | 74,219,174 | 0 | 1 | null | 2022-10-10T23:04:48 | 2016-11-19T16:08:59 | Python | UTF-8 | Python | false | false | 607 | py | #!c:\users\nik_000\documents\python\projects\big_boys_video_game\scripts\python.exe
from __future__ import print_function
import base64
import os
import sys
if __name__ == "__main__":
# create font data chunk for embedding
font = "Tests/images/courB08"
print(" f._load_pilfont_data(")
print(" ... | [
"nikolayp2800@gmail.com"
] | nikolayp2800@gmail.com |
fb839be61c29dbf63e2633a26521e8fd2e0d1133 | 46cafc95660fbc649216bc2271a922f4c489eccd | /tema_1.2.py | bb12b3adf3ef9a5ddc4ba58be8270cc916973d38 | [] | no_license | Grabizza/tema_1 | 239e7b54d0beb607b225d8e9d732fb191c3c9474 | 52ad7d718e01ca0edad564c7d5f62b311276652c | refs/heads/master | 2022-04-11T20:14:39.746085 | 2020-03-16T13:25:27 | 2020-03-16T13:25:27 | 247,708,355 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | # Creati un program in care utilizatorul sa introduca un numar. Validati daca acest
# numar este par sau impar si afisati un raspuns in acest sens.
# Programul nu functioneaza cu numere zecimale
a = input("Introduceti un numar: ")
if (int(a) % 2 > 0):
print("Numarul introdus este un numar impar!")
input("Apas... | [
"61665390+Grabizza@users.noreply.github.com"
] | 61665390+Grabizza@users.noreply.github.com |
932637e46ef4564e1850299505bc6c286fc15825 | 54dbc8867cf72aa6eb0449c5f44c4dbd14a4d557 | /configurations/example_minimal.py | bad835c0b41a898071757d5bf729c120ab352b9d | [
"MIT"
] | permissive | tazlarv/lteval | c904e9f543d499039b3f447f04f560898528dc8b | 6d79a625bffa164ffe762bbec3987a972a1c91c6 | refs/heads/master | 2023-01-03T07:17:59.218686 | 2020-10-21T13:55:49 | 2020-10-21T13:55:49 | 283,720,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | # Example - minimal usable configuration file in practice.
# Everything possible is omitted with the exception
# of website generation and displaying.
configuration = {
"webpage_generate": True, # OPTIONAL, default: False
"webpage_display": True, # OPTIONAL, default : False
}
scenes = ["cbox_classic"]
ren... | [
"tazlarvojtech@gmail.com"
] | tazlarvojtech@gmail.com |
c0089e67997d88be464e6b04eeaf4bbbe364cdb3 | 5ed59fac1c7c3815108b9c38b3fb24b03f514151 | /simulants/legacy/mass_composite_video.py | a9ae7ee029b76e87ac91162777ca2a496872f1ac | [] | no_license | atomicguy/simulants | de3f95c5bd4493752b73397ecaac78ce6d7f92cb | 30f362b320470594d3869f04ec00b8f37ce06729 | refs/heads/master | 2023-01-12T18:22:07.271286 | 2021-04-22T05:29:27 | 2021-04-22T05:29:27 | 152,873,703 | 2 | 0 | null | 2022-12-26T20:54:00 | 2018-10-13T13:17:43 | Python | UTF-8 | Python | false | false | 1,630 | py | import os
import json
import subprocess
import sys
import time
from joblib import Parallel, delayed
def write_token(token_path, content):
with open(token_path, 'w') as token_file:
token_file.write(content)
def write_error(work_item, exception):
print('write_error')
with open('comp.err.log', 'a'... | [
"adam@atompowered.net"
] | adam@atompowered.net |
4eaa7f324046e854009289219642971b5edd0a83 | 900cd8db2a05dce62760151885be603b3ee36195 | /src/profiles/migrations/0001_initial.py | 50cc7ff4cee2e0d0fef9c4f38295f1192a3d8c28 | [] | no_license | hariharan-manoharan/fulcrumbook | b12428d937f24eb3ef70afb4277fa50147ebef25 | 56a5ec18186fbe8f198552ad487653e8da539b8c | refs/heads/master | 2021-01-23T01:01:28.028190 | 2017-03-24T09:29:13 | 2017-03-24T09:29:13 | 85,862,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-03-18 17:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='profile'... | [
"hariharan.manoharn@fulcrum.net"
] | hariharan.manoharn@fulcrum.net |
e46fc5f4b765a7d6786e1085828e918b4375b3e0 | ff9b8215ce836fcf2cf30ec35ccf26f8b2b10b69 | /py/ex39.py | 78f1b30fb66d44c2ccba3f591eb15376ca5593c6 | [] | no_license | wpfalive/learnpython | e8080b17a83975311b675b88d17e5b9ff9b68016 | bedea4cdeea79be297590ac3b95791ffce32fd06 | refs/heads/master | 2021-07-05T18:56:04.039709 | 2017-09-26T16:03:02 | 2017-09-26T16:03:02 | 103,671,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | class Song(object):
"""docstring for Song."""
def __init__(self, lyrics):
self.lyrics = lyrics
def sing_me_a_song(self):
for line in self.lyrics:
print line
happy_day = Song(["Happy birthday to you",
"I don't want to get sued",
"So I'll stop ... | [
"1643700595@qq.com"
] | 1643700595@qq.com |
45d6c57c09a0dbd68c7ef8bb19df5062456ee3eb | ffc2101e693041c09fe84f3409ce0c756056b73e | /NomticketDjangoAPP/core/migrations/0004_auto_20210424_1639.py | c104c8b5547afd5c7f724dab655b895f87f41f7f | [] | no_license | NukeroSempai/NomTicket_Django | 5dce041e002d74fcd62a71185db4708906dd03fb | e8dcb88b75fae46c1a98a0d6fd7a2a96f457faf0 | refs/heads/main | 2023-04-17T05:52:25.180873 | 2021-04-27T23:47:56 | 2021-04-27T23:47:56 | 354,626,786 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | # Generated by Django 3.1.2 on 2021-04-24 20:39
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('CORE', '0003_auto_20210424_1303'),
]
operations = [
migrations.AddField(
model_name='informe_ticket... | [
"williams.parra.parra@gmail.com"
] | williams.parra.parra@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.