blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f23e5e2eabc0ea5604a62feb24f8d24c53096630 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/algorithm-master/lintcode/689_two_sum_bst_edtion.py | c920ea03fbd1007257c3c49c68706b3c9a0ed00e | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,682 | py | """
Definition of TreeNode:
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
"""
c_ Solution:
"""
@param: : the root of tree
@param: : the target sum
@return: two numbers from tree which sum is n
"""
___ twoSum root, n
left... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
cdacac9398ca97d329f4e8333510df3edf223077 | 165e706d485e90f4e4f63cfb9f2c35acda14cfc0 | /property_linking/scripts/preprocessing/closure_inference.py | 7f0f19a43eb2ba1d71b8eecc9798247327ab538f | [
"Apache-2.0"
] | permissive | Tarkiyah/googleResearch | 65581f3bbbe2ffe248c9e613c0ea7eac336d5372 | dea327aa9e7ef7f7bca5a6c225dbdca1077a06e9 | refs/heads/master | 2022-12-07T12:04:44.153221 | 2019-11-21T16:03:48 | 2019-11-21T16:18:28 | 223,229,888 | 11 | 2 | Apache-2.0 | 2022-11-21T21:39:10 | 2019-11-21T17:38:31 | Jupyter Notebook | UTF-8 | Python | false | false | 3,537 | py | # coding=utf-8
# Copyright 2019 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
746c37e2bd1f8cca597462e416e26a4cd58a179a | a7319d1c462618445b13cb8dde5c30173801b745 | /backend/hardik_25509/settings.py | 7596bd63123791db28563da0c6685b368b3fe30e | [] | no_license | crowdbotics-apps/hardik-25509 | 357e87239d5379d4b6c79d746659d8a20942be0b | f179cee72ca96a9115c3aeb46e3d5d4a3abec27a | refs/heads/master | 2023-04-01T19:47:21.352217 | 2021-04-08T05:57:57 | 2021-04-08T05:57:57 | 355,501,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,128 | py | """
Django settings for hardik_25509 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import ... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d0a830d0a0726d6af0ac47e9a69790f3b54dadef | 552556631580799b16d0fb31e8f10850383ef3b2 | /ex3/outputs/cactusADM/cactusADM.DW_01-WS_384.out/info.py | 348937e8858f7dde9a12f4272870b9a72a0e1711 | [] | no_license | gregth/NTUA-advcomparch | f19ee414f8b77f749a09f263feb980350f88880d | bc501f427ddf1423f851ce1a052dc335183c5103 | refs/heads/master | 2022-11-14T20:11:49.035503 | 2020-06-27T09:17:43 | 2020-06-27T09:17:43 | 262,262,423 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 18,949 | py | power = {'BUSES': {'Area': 0.482695,
'Bus/Area': 0.482695,
'Bus/Gate Leakage': 0.00516603,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0538708,
'Bus/Subthreshold Leakage with power gating': 0.0202016,
'Ga... | [
"gregthanasoulas@gmail.com"
] | gregthanasoulas@gmail.com |
205666d8aee922f8db00530c0d47974317fa9350 | 4210e060f9766e051147a7bc2fe9caf76b57dfda | /library/urls.py | b32fe166fb4219c7b8be1f695222cb8d663fb8ad | [] | no_license | eyobofficial/library | e27cc64d88013664cf27399bc3402d0f2b26fa90 | 87a1aaeb93db5511423be9c1fdb7b96c884d13f1 | refs/heads/master | 2020-12-02T06:19:00.159110 | 2017-07-30T08:02:30 | 2017-07-30T08:02:30 | 96,815,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | """library URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"eyobtariku@gmail.com"
] | eyobtariku@gmail.com |
3ee0b9cfa0a12433c2872fc03735b4afd463fdbb | d5ce517617f90aba1a618098f459b262968a6a20 | /flup/client/scgi_app.py | 33121806e77f5dd59af0fad0fb0829567829f91d | [] | no_license | jedie/flup-py3.3 | 8bfabe2195cfe5df1fb8acfb92a108b43d668e51 | 56d495311d0e850fbab94c6c3e160793e245d0d4 | refs/heads/master | 2021-01-18T06:51:27.659312 | 2014-05-22T01:35:10 | 2014-05-22T01:35:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,923 | py | # Copyright (c) 2006 Allan Saddi <allan@saddi.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of c... | [
"x11org@gmail.com"
] | x11org@gmail.com |
275cda750cead39dc0c7730f98e3492cb24ed36e | f0987e17aea6668158cd334c1fbacfe6286d3c77 | /NITA/tests/unit/security/system/test_security_profile.py | 5372b77e295818e835cd59941c2a62b5a2d67c74 | [] | no_license | fengyun4623/file | 00bf21f952ea3f95ffc9fe18448b244b26b7fadb | 3966c63d48557b0b94303896eed7a767593a4832 | refs/heads/master | 2023-04-02T05:01:25.066052 | 2020-07-29T16:15:31 | 2020-07-29T16:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100,997 | py | # coding: UTF-8
"""All unit test cases for system security-profile module"""
# pylint: disable=attribute-defined-outside-init,invalid-name
__author__ = ['Jon Jiang']
__contact__ = 'jonjiang@juniper.net'
__copyright__ = 'Juniper Networks Inc.'
__date__ = '2017'
import re
from unittest import TestCase, mock
from jnpr.... | [
"srigupta@juniper.net"
] | srigupta@juniper.net |
143849de7018d4928b5e73e2759cfa84e3317b7e | be9c2b431a32908895bed448a30227e45e3d1eb8 | /data/tia_augmentation.py | bd00a409a69de26f381ab2ded216b8d1a6a131a0 | [] | no_license | songbae/p4-fr-ocr-oriental-chicken-curry | 5e2dc947d7d6114d80346007f7d79dc6ab126b8a | 8c1a0955ff97dbd24eed78c17cb9ccd44b86a47b | refs/heads/main | 2023-05-31T05:11:22.035653 | 2021-06-16T19:26:26 | 2021-06-16T19:26:26 | 377,679,712 | 1 | 0 | null | 2021-06-17T02:14:44 | 2021-06-17T02:14:43 | null | UTF-8 | Python | false | false | 9,344 | py | # https://github.com/PaddlePaddle/PaddleOCR/tree/release/2.1/ppocr/data/imaug/text_image_aug
import cv2
import numpy as np
from albumentations.core.transforms_interface import ImageOnlyTransform
class WarpMLS:
def __init__(self, src, src_pts, dst_pts, dst_w, dst_h, trans_ratio=1.):
self.src = src
... | [
"mai.hong0924@gmail.com"
] | mai.hong0924@gmail.com |
3a2fbdf9a60161ddf6d5cf18989eb64852a88458 | 28837c1d50c453fa759f6df623e31626dc38002c | /uproot/_help.py | 2e7e981989505870ac3ec39bff6ec97af9480fca | [
"BSD-3-Clause"
] | permissive | henryiii/uproot | 7118ac464ce0e944682ddcdaf485c8f4a0401ded | 28b5331658aa55c69a587535b34de795abfea966 | refs/heads/master | 2020-03-25T04:28:35.594485 | 2018-07-28T10:27:19 | 2018-07-28T10:27:19 | 143,397,052 | 0 | 0 | null | 2018-08-03T07:59:17 | 2018-08-03T07:59:16 | null | UTF-8 | Python | false | false | 94,033 | py | #!/usr/bin/env python
# Copyright (c) 2017, DIANA-HEP
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list ... | [
"jpivarski@gmail.com"
] | jpivarski@gmail.com |
f78310a73f5328335184fda438b6808995b9f2c9 | b0e66db67b34b88e7884aa9b4a7b7607bbe9651b | /math/d20/const.py | ae16e3cdb42ae989d9829f7ffef9815a604cce32 | [] | no_license | cole-brown/veredi-code | 15cf47c688c909b27ad2f2f3518df72862bd17bc | 8c9fc1170ceac335985686571568eebf08b0db7a | refs/heads/master | 2023-04-22T03:21:10.506392 | 2021-05-01T19:05:10 | 2021-05-01T19:05:10 | 296,949,870 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | # coding: utf-8
'''
Constants, Enums, and Stuff for math.d20 module.
'''
# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------
import enum
# ----------------------------------------------------------... | [
"code@brown.dev"
] | code@brown.dev |
f8628d4fb035631907212605035a7ea9aa7a7f62 | 8a83bb7acb9b62183fca817e1f196dd8075630a4 | /01_array/23_majority_number.py | ec356909a26e7fbefe85d7ba6c55c3904da6c149 | [] | no_license | sandeepkumar8713/pythonapps | ff5ad3da854aa58e60f2c14d27359f8b838cac57 | 5dcb5ad4873124fed2ec3a717bfa379a4bbd197d | refs/heads/main | 2023-09-01T04:12:03.865755 | 2023-08-31T07:04:58 | 2023-08-31T07:04:58 | 234,762,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | # CTCI : Q17_10_Majority_Element
# https://www.geeksforgeeks.org/majority-element/
# Question : Write a function which takes an array and prints the majority element (if it exists),
# otherwise prints "No Majority Element". A majority element in an array A[] of size n is an
# element that appears more than n/2 times (a... | [
"sandeepkumar8713@gmail.com"
] | sandeepkumar8713@gmail.com |
7ba891f64ca2ff2a94dfa0b697e25d988e8912f0 | cf5b54b2c84437d9e72575589812b88921d4430c | /server/main_web.py | db2c8ed2232e14bbc1f855ffda8417b9bbde11df | [] | no_license | hw233/gameserver3 | 90fc3b8b8e8f809b7c3197fc97145fb264166b93 | d86ef3b3313ef51df5ba01bc700877827b0a81cd | refs/heads/master | 2022-01-13T07:40:38.211070 | 2019-05-11T02:15:14 | 2019-05-11T02:15:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,452 | py | # -*- coding: utf-8 -*-
__author__ = 'Administrator'
import json,sys,redis,time,os,os.path,decimal
import hashlib
import zipfile
import logging
import urlparse
import subprocess
from flask import Flask,request,render_template,redirect, url_for,jsonify,make_response,abort,flash,get_flashed_messages
from flask import se... | [
"87399497@qq.com"
] | 87399497@qq.com |
448b224c06b11dcad0efb3a0e001204a1051988c | 0aad1f032876366b555d4b4d0bd80ad2ae74c226 | /src/ingest-pipeline/md/data_file_types/metadatatsv_metadata_file.py | 98ca0487a1a569a4afbe695e9ac270212a2fecee | [
"MIT"
] | permissive | icaoberg/ingest-pipeline | d876c33e5f5414f21c6194cd2085c02a126ef73c | 8c8296daaf2a3a71cd213a6b7b8a067739fa5272 | refs/heads/master | 2022-11-19T11:54:00.264295 | 2020-07-01T21:07:08 | 2020-07-01T21:07:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,607 | py | #! /usr/bin/env python
import csv
import os
from pathlib import Path
from metadata_file import MetadataFile
from type_base import MetadataError
from submodules import ingest_validation_tools_submission, ingest_validation_tools_error_report
class MetadataTSVMetadataFile(MetadataFile):
"""
A metadata file type ... | [
"welling@psc.edu"
] | welling@psc.edu |
6a53fb6ca5851bcacf7250e3aa6bb7bf3a8c255d | a99372d1c71be907e1fbfb4f7287363ff1f51f56 | /Legal/migrations/0005_category_dated.py | 8eed23ace074af81bb4330caa646d8b82770aca4 | [
"MIT"
] | permissive | domambia/csdigital-gs1kenya-internal-erp | 43045c219b627453f30da9c6bd62335985f81927 | be36378ad7b960d074dd5841aaadc849ac6356de | refs/heads/master | 2022-12-10T13:49:55.516938 | 2021-10-31T15:08:29 | 2021-10-31T15:08:29 | 164,619,152 | 17 | 14 | null | 2022-12-08T01:44:41 | 2019-01-08T09:59:34 | Python | UTF-8 | Python | false | false | 415 | py | # Generated by Django 2.1.5 on 2019-04-09 13:34
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Legal', '0004_auto_20190409_1242'),
]
operations = [
migrations.AddField(
model_name='category',
nam... | [
"omambiadauglous@gmail.com"
] | omambiadauglous@gmail.com |
aa8219a0132e52fcee1ff21e14f8b17086844f66 | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/gos_20200614062134.py | 0926db4d45f1ea761568bc4b9c5dc96acc72a3aa | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,014 | py | # # Імпорт фажливих бібліотек
# from BeautifulSoup import BeautifulSoup
# import urllib2
# import re
# # Створення функції пошуку силок
# def getLinks(url):
# # отримання та присвоєння контенту сторінки в змінну
# html_page = urllib2.urlopen(url)
# # Перетворення контенту в обєкт бібліотеки BeautifulSoup
#... | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
8570724f11f96fad4fbaa801251f384aaec32139 | 9ba0e059a15f2b24d7c031e039d3564c647a9336 | /tuva/imports/Data - After switching to array storage and before ordereddict.py | 3f44cf593a66cc730f3ed901c4c885f5ef9ade7b | [] | no_license | vatir/tuva | 98714d262cc0fbaf714c29e81af25bad8bb02c6c | a105280951c0a21dd0d9eab60d24545e423e0479 | refs/heads/master | 2023-01-25T04:27:38.558356 | 2023-01-11T17:58:47 | 2023-01-11T17:58:47 | 129,917,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,584 | py | from numpy import array
from numpy import append
from numpy import dtype
from collections import OrderedDict
# Is used in testing model run behavior
calltimes = 0
model_init = False
# Build a consistent color list
colorlist = OrderedDict()
colorlist["black"] = (0, 0, 0)
colorlist["red"] = (255, 0, 0)
colorlist["gold... | [
"grok_me@hotmail.com"
] | grok_me@hotmail.com |
eccc587583776be4807de65835612594c73c72d9 | 4273f6c264fa5a7267557c5e0d338a2cbd27789e | /AIE23/20191102_feature_engineering/a3_feature_engineering/4_reduce_dimension/3D_PCA.py | 5934a47edbdece3ff91c453ba92bed0b0ac92fc7 | [] | no_license | shcqupc/Alg_study | 874d37954ed8ed2cdb3bd492d59cd071836946f5 | 462ee12c72b7f84c5ae45aaf0f65b812d7c1ada1 | refs/heads/master | 2020-07-10T15:26:40.603300 | 2020-03-27T12:53:16 | 2020-03-27T12:53:16 | 204,298,238 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | print(__doc__)
# Code source: Gaël Varoquaux
# Modified for documentation by Jaques Grobler
# License: BSD 3 clause
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from sklearn import datasets
from sklearn.decomposition import PCA
# # import some data to play with
iris = datasets.load_iris()
# ... | [
"253848296@qq.com"
] | 253848296@qq.com |
cc2d8e32f9b31c5a2c802971ec725b3f6c2105ea | 3f7240da3dc81205a0a3bf3428ee4e7ae74fb3a2 | /src/Week4/Practice/reverse.py | 262d73adcf745fdaf0052bcef4f211a71cc4582e | [] | no_license | theguyoverthere/CMU15-112-Spring17 | b4ab8e29c31410b4c68d7b2c696a76b9d85ab4d8 | b8287092b14e82d2a3aeac6c27bffbc95382eb34 | refs/heads/master | 2021-04-27T08:52:45.237631 | 2018-10-02T15:38:18 | 2018-10-02T15:38:18 | 107,882,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | py | import cs112_s17_linter
#******************************************************************************#
# Author: Tarique Anwer
# Date: 9/4/2017
# Function: Destructively reverse a list. So if a equals [2, 3, 4], then after
# reverse, a should equal [4, 3, 2]. As is generally true of
# destructiv... | [
"tariqueanwer@outlook.com"
] | tariqueanwer@outlook.com |
93724f50f55a830aa5f7bccdeb6074f7150601fe | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_3/bxxbub001/question1.py | 4b05b26459fa0cf1a7ed56c52bbf12d955c4967a | [] | 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 | 253 | py | #assignment 3
#B.Booi
def makeSqr(hight,width):
for i in range (hight):
print("*"*width)
hi = eval(input("Enter the height of the rectangle:\n"))
span = eval(input("Enter the width of the rectangle:\n"))
makeSqr(hi,span)
| [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
bad5bd7500f02ef244bbf720cb53d5388220cf3f | 999f928790a181448fdda17619876c7a39d96bf8 | /bin/waitress-serve | e56b524164b806fa66ae530151a756d3ec584f8e | [
"MIT"
] | permissive | serashioda/learning_journal2 | adede85fb8092dc23b856ba071b25c6480927a0a | a00e7da8fcdc0179f99bfc2fd4dc7cf77ecd81c2 | refs/heads/master | 2021-01-13T11:00:44.508580 | 2017-01-09T07:09:00 | 2017-01-09T07:09:00 | 77,100,871 | 0 | 1 | null | 2017-01-09T15:05:32 | 2016-12-22T01:52:40 | CSS | UTF-8 | Python | false | false | 263 | #!/Users/Sera/Dropbox/codefellows/401/learning_journal/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from waitress.runner import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"you@example.com"
] | you@example.com | |
1200976e1b121cb5062d20f640b8213ddd632f21 | 501615c82801733e69c7447ab9fd68d3883ed947 | /hotfix/.svn/pristine/12/1200976e1b121cb5062d20f640b8213ddd632f21.svn-base | 0dcbbd208f84d8d26629d6051601bfbd3375421b | [] | no_license | az0ne/python | b2e1cc1e925d1fcdb269e7dd4c48e24665deeeee | aec5d23bb412f7dfca374fb5c5b9988c1b817347 | refs/heads/master | 2021-07-18T02:08:46.314972 | 2017-10-27T06:23:36 | 2017-10-27T06:23:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,521 | #!/usr/bin/env python
# -*- coding: utf8 -*-
import sys
import time
from functools import wraps
import cPickle as pickle
from mz_platform.services.core.log_service import log_it
from mz_platform.apis.api_result import ApiResult
from mz_platform.exceptions.mz_exception import MZException
from mz_platform.ex... | [
"1461847795@qq.com"
] | 1461847795@qq.com | |
ce9e0c110ab57c35bd0bdea209890c1efc74d1cb | 28b2144816ce1bf62b7481cd857fdc831a501f6b | /tabook/tests/functional/test_abook.py | e639eb978f75916274865bae76e3895278005cf8 | [] | no_license | t0ster/Turbo-Address-Book | 3191a837d7d28cf9b8c9d20331fe0518062b3892 | 8c5463b1d4423a0c41d7ed75ff9a512ae1bc515b | refs/heads/master | 2020-05-31T14:10:46.449799 | 2011-06-28T14:07:49 | 2011-06-28T14:07:49 | 1,953,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from tabook.tests import *
class TestAbookController(TestController):
def test_index(self):
response = self.app.get(url(controller='abook', action='index'))
# Test response...
| [
"roman@bravetstudio.com"
] | roman@bravetstudio.com |
43b7a07cce169607e19f1009edb61ff5d942f077 | b70eb5577099f88ae9f684f2c87647f98e26d42b | /hpc-historias-clinicas/diagnosticos/migrations/0004_auto_20150425_1459.py | 3adebbad200ee6845c2de4535b56e1c10fcae385 | [] | no_license | btenaglia/hpc-historias-clinicas | be1a392a119a72055ba643fba9c9a09b740aef47 | 649d8660381381b1c591667760c122d73071d5ec | refs/heads/master | 2020-06-03T19:05:17.910077 | 2015-06-10T23:05:31 | 2015-06-10T23:05:31 | 32,827,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
class Migration(migrations.Migration):
dependencies = [
('diagnosticos', '0003_auto_20150407_2123'),
]
operations = [
migrations.AlterField(
model_name='d... | [
"brunomartintenaglia@gmail.com"
] | brunomartintenaglia@gmail.com |
3fc765874c033319ae16b8f1f830511729d3e15f | eae4038397ea0b0b1ea56424888f53369a1e4282 | /moai/validation/single.py | f781534910c052c4c1bd83781de737fc6c0832f7 | [
"Apache-2.0"
] | permissive | iampakos/moai-0.1.0a2 | b2378e9e0a84b85c0e2251a419d39d3da7ea17f9 | 2f066bffc66faca0bdc9af53e7992df34d09ce5d | refs/heads/main | 2023-03-13T13:27:54.318498 | 2021-04-01T14:36:52 | 2021-04-01T14:36:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,469 | py | import moai.utils.engine as mieng
import torch
import omegaconf.omegaconf
import typing
import logging
import inspect
import itertools
log = logging.getLogger(__name__)
__all__ = ['Metric']
class Metric(mieng.Single):
def __init__(self,
metrics: omegaconf.DictConfig,
**kwargs: typing.Mapping[str... | [
"pakos@ai-in-motion.dev"
] | pakos@ai-in-motion.dev |
738ad03ab4aa7aba2177d4d3cfc449823971f0b0 | 0954a4a6d90fc66beee265c22e1fd829ddaf73cd | /digitalcollege/digital/migrations/0006_remove_departmentmodel_d_year.py | ea613757a14f2f32fa6d6437d7e354ca93266907 | [] | no_license | deepawalekedar319/CollegeMiniProject | a302184258e8213ee7604403e3abc60c19d342a8 | 52f46521c305bca167fdf2f4b41e28182476b3e1 | refs/heads/main | 2023-08-30T04:15:18.851167 | 2021-11-08T05:04:11 | 2021-11-08T05:04:11 | 425,695,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2021-01-04 08:45
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('digital', '0005_departmentmodel_d_year'),
]
operations = [
migrations.RemoveField(
... | [
"deepawalekedar319@gmail.com"
] | deepawalekedar319@gmail.com |
74b937d7824d37e846f7fd8ae0a5899ffe9ab42c | 67b0379a12a60e9f26232b81047de3470c4a9ff9 | /shop/migrations/0064_auto_20170626_1015.py | 8c03515b558ecc2c5e4c92ccd9c34ce2e360a2c9 | [] | no_license | vintkor/whitemandarin | 8ea9022b889fac718e0858873a07c586cf8da729 | 5afcfc5eef1bb1cc2febf519b04a4819a7b9648f | refs/heads/master | 2021-05-06T03:35:09.367375 | 2017-12-20T15:43:08 | 2017-12-20T15:43:08 | 114,904,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-06-26 07:15
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0063_auto_20170610_1623'),
]
operations = [
migration... | [
"alkv84@yandex.ru"
] | alkv84@yandex.ru |
ba8a2b51e97ab9ebf588a3e5686a02ea77ce062d | 59202987e7b3b69d6aa294e01de4c1d6651ae808 | /toy.py | a2aec37b58484aedb57540a603599e0de53214c0 | [
"MIT"
] | permissive | Jiajie-Mei/vae-lagging-encoder | 9e4f5486fc9a4f9613a0430e49650d50fecb2bfa | 642f23112a6dc659ddc915d99b32c5e172cff8f9 | refs/heads/master | 2020-04-18T07:59:45.407179 | 2019-01-24T05:47:53 | 2019-01-24T05:47:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,436 | py | import sys
import pickle
import os
import time
import importlib
import argparse
import numpy as np
import torch
from torch import nn, optim
from data import MonoTextData
from modules import LSTMEncoder, LSTMDecoder
from modules import VAE
from modules import generate_grid
clip_grad = 5.0
decay_epoch = 2
lr_decay =... | [
"junxianh2@gmail.com"
] | junxianh2@gmail.com |
ddf283ffa12f6b269f7d56040ed800a6480b077c | cee65c4806593554662330368c799c14ec943454 | /src/resource-graph/azext_resourcegraph/vendored_sdks/resourcegraph/models/facet_request_options.py | 4ea94a3bd96311a982f9df2ec766f212ee6e4fad | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | azclibot/azure-cli-extensions | d5d1a4ecdfc87fd79f5ad042fb85cdbf881897d2 | c230646258d4b56efb7d44eb7a0230f2943da6f6 | refs/heads/master | 2023-08-28T03:55:02.311902 | 2019-04-04T16:05:45 | 2019-04-04T16:05:45 | 179,548,695 | 1 | 1 | MIT | 2021-07-28T15:26:17 | 2019-04-04T17:54:39 | Python | UTF-8 | Python | false | false | 1,316 | 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 ... | [
"tjprescott@users.noreply.github.com"
] | tjprescott@users.noreply.github.com |
6ef163ba209fbd301813f10cb5fd3e6c448c401b | 03f40e1e96f78240904ee90ae3257611e0d2b981 | /venv/lib/python3.8/site-packages/pip-19.0.3-py3.8.egg/pip/_vendor/urllib3/contrib/securetransport.py | 77a6041054b1a2b37dacb5061fb15d3a088005ae | [] | no_license | otr0624/StoreApp | bd584a37af668a4055969cdf03fa2e688f51e395 | 76ae4040ccfe1f415c8c2acf88550690cb537290 | refs/heads/master | 2022-04-22T19:35:03.231742 | 2020-04-14T23:43:19 | 2020-04-14T23:43:19 | 255,651,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,151 | py | """
SecureTranport support for urllib3 via ctypes.
This makes platform-native TLS available to urllib3 users on macOS without the
use of a compiler. This is an important feature because the Python Package
Index is moving to become a TLSv1.2-or-higher server, and the default OpenSSL
that ships with macOS is not capable... | [
"otr0624@mail.com"
] | otr0624@mail.com |
40e64497e28bc9b351edfd900f44634d458a6244 | e13daffd10be4fc8dd004e4d2bd4fc8e0c408840 | /lbworkflow/core/transition.py | adcd71ef73825ff290d50ece913bcb83dd395a8c | [] | no_license | jimmy201602/django-lb-workflow | 47110b49c7a5b7a4d18c2de79cbbd701a0ef5743 | 52a44ed33964d6392c4eeb71047e74c892caa716 | refs/heads/master | 2018-11-26T12:20:44.696867 | 2018-09-05T03:42:36 | 2018-09-05T03:42:36 | 114,515,837 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,851 | py | from django.utils import timezone
from lbworkflow.models import Event
from lbworkflow.models import Task
from .sendmsg import wf_send_msg
def create_event(instance, transition, **kwargs):
act_type = 'transition' if transition.pk else transition.code
if transition.is_agree:
act_type = 'agree'
eve... | [
"zbirder@gmail.com"
] | zbirder@gmail.com |
c855a992495e5ab628fbe70c872eae00b20b337a | 5d58fa1d54855f18bad5688de4459af8d461c0ac | /tests/unit/modules/network/onyx/test_onyx_ospf.py | 893dc959fa735fa3382b2d96552f34de11bd4532 | [] | no_license | nasirhm/general | b3b52f6e31be3de8bae0414da620d8cdbb2c2366 | 5ccd89933297f5587dae5cd114e24ea5c54f7ce5 | refs/heads/master | 2021-01-04T07:03:21.121102 | 2020-02-13T20:59:56 | 2020-02-13T20:59:56 | 240,440,187 | 1 | 0 | null | 2020-02-14T06:08:14 | 2020-02-14T06:08:13 | null | UTF-8 | Python | false | false | 4,644 | py | #
# Copyright: Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible_collections.community.general.tests.unit.compat.mock import pa... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
ce99b43702930a3bb2d59fddf1e3c9cbc98cc622 | 9f58ec75177221f1e483c1c1cc9166a6229851d1 | /unsorted_solutions/question47.py | 3fa98b758e9854dfd55c4b94d0e28ef84191563b | [] | no_license | neequole/my-python-programming-exercises | 142b520dcfd78e5c92cf01a5cefecdfdb2939ccd | d6806e02cea9952e782e6921b903b1bb414364ee | refs/heads/master | 2021-08-23T04:48:06.211251 | 2017-12-03T11:40:14 | 2017-12-03T11:40:14 | 103,946,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | """ Question 47:
Write a program which can filter() to make a list whose elements are even number
between 1 and 20 (both included).
Hints:
Use filter() to filter elements of a list.
Use lambda to define anonymous functions.
"""
out = list(filter(lambda x: x % 2 == 0, range(1, 21)))
print(out)
| [
"nicole.tibay@johngaltventures.com"
] | nicole.tibay@johngaltventures.com |
873d7960f8851a82a605915be61b0e9cb964e7fc | a3b2c7069c9fab8632b0568db5ab79aceacf9c9c | /devel/lib/python2.7/dist-packages/rqt_bag_plugins/__init__.py | c2f70e437d66d6ccfc8247c2b37ce4e8cdbfa026 | [] | no_license | tbake0155/bluedragon_workspace | 08ed85d9de29c178704bd3f883acafae473b175e | 384d863e00689cf40cde4933447210bbb1ba8636 | refs/heads/master | 2021-05-12T01:35:45.896266 | 2018-01-15T14:59:39 | 2018-01-15T14:59:39 | 117,558,143 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | # -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from sys import path as sys_path
from pkgutil import extend_path
__extended_path = "/home/tim/catkin_ws/src/rqt_common_plugins/rqt_... | [
"tbake0155@gmail.com"
] | tbake0155@gmail.com |
d1113c24a628593d5362f4391c033deff3884613 | 2bc194ed3c23d986724928cc5258cdebaa3fa1c6 | /handlers/domain.py | 1d13df00fd3515d75d5832e9aed99271ae339e9d | [] | no_license | mrcheng0910/whoismanage | 057a57637ef4f51fc9d55b181213c2bace9bfe02 | ebd337760a791367bd5b390ad3a86b6247d1251a | refs/heads/master | 2021-01-10T06:14:48.511919 | 2016-01-13T14:35:54 | 2016-01-13T14:35:54 | 46,243,616 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | # encoding:utf-8
"""
功能:域名数量统计所需数据
"""
import decimal
import tornado
import json
from models.domain_db import DomainDb
PATH = './domain/' # 模板地址
class DomainIndexHandler(tornado.web.RequestHandler):
"""各个顶级后缀域名数量统计"""
def get(self):
domains, total = DomainDb().fetch_domain(11)
self.render(... | [
"mrcheng0910@gmail.com"
] | mrcheng0910@gmail.com |
801b906f1c687e553348f1ebf8c65d7708ca6de7 | c0950683d84a3c5999a28ac32668e8dbd159e036 | /dbrec3d/bof/compute_object_level.py | e0104252dcfc92e3232e2cdb182af15e18fd1a82 | [
"BSD-3-Clause"
] | permissive | mirestrepo/voxels-at-lems | 0a88751680daa3c48f44f49bb4ef0f855a90fa18 | df47d031653d2ad877a97b3c1ea574b924b7d4c2 | refs/heads/master | 2021-01-17T07:26:12.665247 | 2016-07-20T17:49:26 | 2016-07-20T17:49:26 | 3,919,012 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Created on Mon Dec 22, 2011
@author:Isabel Restrepo
Save the level of the smallest cell entirely containing the object
"""
import os;
import dbrec3d_batch
import time
import optparse
import sys
import glob
class dbvalue:
def __init__(self, index, type):
self.id = ... | [
"isabelrestre@gmail.com"
] | isabelrestre@gmail.com |
784bcb8b10887b7a5bfaf0455c7e559533e0db6b | d324b3d4ce953574c5945cda64e179f33c36c71b | /php/php-sky/grpc/src/python/grpcio_tests/tests/unit/_grpc_shutdown_test.py | 35823c7451f2b5155c92d63cfc80c22d11773841 | [
"Apache-2.0"
] | permissive | Denticle/docker-base | decc36cc8eb01be1157d0c0417958c2c80ac0d2f | 232115202594f4ea334d512dffb03f34451eb147 | refs/heads/main | 2023-04-21T10:08:29.582031 | 2021-05-13T07:27:52 | 2021-05-13T07:27:52 | 320,431,033 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,855 | py | # Copyright 2019 The gRPC Authors
#
# 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 agreed to... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
26a25d8783f6db156297a1f4e99b7395d3be9e3e | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/blink/PRESUBMIT_test.py | 9f1664cef824a1591966ffb4ecf2c8477f9683a3 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 8,720 | py | #!/usr/bin/env python
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Note: running this test requires installing the package python-mock.
# pylint: disable=C0103
# pylint: disable=F0401
import PRESUBMI... | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
a4a75d6f57c7d5507c1728eafd50f371d56dda12 | a4a5c6f185ed38ea4b93e49408f369f2ae7073e9 | /aliyun-python-sdk-iot/aliyunsdkiot/request/v20170420/PubBroadcastRequest.py | 2f067cac3538c6f3deb82417c2224f42bb8c9a2a | [
"Apache-2.0"
] | permissive | samuelchen/aliyun-openapi-python-sdk | 86ee6eb9573e68cbf98ea61328818bfca005f25f | 52dda2326c34633858e4ed83a526dadce90dd5ef | refs/heads/master | 2020-03-07T03:50:18.248590 | 2018-04-02T13:48:10 | 2018-04-02T13:48:10 | 127,248,156 | 1 | 0 | null | 2018-03-29T06:39:31 | 2018-03-29T06:39:30 | null | UTF-8 | Python | false | false | 1,520 | py | # 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
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
38221f887d5dd3d306c517976168c1ae095db6f3 | 978184a03ecf7b0fe60fe824606877e5ad340c25 | /G/exo_7.16.py | 77937247652c008c8d4fdeb8ad9c281afe6e6e2d | [] | no_license | zinsmatt/Kalman_Filter_MOOC | 9e88a84818c09e2d01ea102855b7334bc2d0800a | 01d3ae3a213e94f480338f0a10bea5663185f167 | refs/heads/master | 2023-01-27T12:22:54.117402 | 2020-12-09T10:18:28 | 2020-12-09T10:18:28 | 304,326,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,742 | py | from roblib import * # available at https://www.ensta-bretagne.fr/jaulin/roblib.py
def draw_invpend(ax,x, w): #inverted pendulum
s,θ=x[0,0],x[1,0]
draw_box(ax,s-0.7,s+0.7,-0.25,0,'blue')
plot( [s,s-sin(θ)],[0,cos(θ)],'magenta', linewidth = 2)
plt.plot(w, 0, "or")
mc,l,g,mr = 5,1,9.81,1
dt = ... | [
"zins.matthieu@gmail.com"
] | zins.matthieu@gmail.com |
e673edd150a7a3f67dc655407b709b1e88bb1511 | 205096eef765375188a0e8fc2f634cc9595e3072 | /aged_partner_report/wizard/aged_partner_wizard.py | f0d73393a78834c25e4942d7fd61649ec488c8d3 | [] | no_license | xAlphaOmega/MCLNEW | 1ded905978df99be1867a142662cafda6318a993 | a2b9708ebd22e7f351e1fa9c40bfbc29532242b8 | refs/heads/master | 2021-01-26T07:09:25.643962 | 2019-12-18T14:03:04 | 2019-12-18T14:03:04 | 243,359,262 | 0 | 3 | null | 2020-02-26T20:30:23 | 2020-02-26T20:30:22 | null | UTF-8 | Python | false | false | 9,503 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models, _
from datetime import date, timedelta
import datetime
from odoo.exceptions import UserError
import pdb
class AgedPartnerReport(models.TransientModel):
_name = "aged.partner.... | [
"adarsh@prixgen.com"
] | adarsh@prixgen.com |
bf2556e4a09d1f8d8208b65c9bcf88234a143a89 | d529b72eb4610ddf0e0b8170354a21f87dbf0e42 | /Unit19/involved.py | 834b8689f1666e416494769723984c5bb04d1bc3 | [] | no_license | SaretMagnoslove/Udacity-CS101 | 57a8b6609e2f2a09135ea0189a782d66e225b641 | 2e573a362a4d8d688199777937c6aaff59f6b900 | refs/heads/master | 2021-04-15T17:43:05.522259 | 2018-06-20T23:33:26 | 2018-06-20T23:33:26 | 126,618,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,594 | py | # Dictionaries of Dictionaries (of Dictionaries)
# The next several questions concern the data structure below for keeping
# track of Udacity's courses (where all of the values are strings):
# { <hexamester>, { <class>: { <property>: <value>, ... },
# ... },
# ... }
# For ... | [
"magnoslove@gmail.com"
] | magnoslove@gmail.com |
15f51480656364cc0aedcabaf36127e26ac783fb | 79e630cbbbeca74d8c1fab822d3d854518a7e7ca | /hanmaum/urls.py | 9836efddaaec98334f3c756a1f8199bdd031699c | [] | no_license | Son-GyeongSik/hanalum_web | f573f936068ba24b2215a74efdbb9e8f4b0ff9f8 | 3669b1d3c108c2aa64a7d0f11116adc0f385ce83 | refs/heads/main | 2023-03-24T08:16:24.098445 | 2021-03-14T05:06:46 | 2021-03-14T05:06:46 | 351,105,953 | 1 | 0 | null | 2021-03-24T14:16:35 | 2021-03-24T14:16:35 | null | UTF-8 | Python | false | false | 680 | py | """hanmaum 관련 urls 정의 파일입니다."""
from django.urls import path
from .views import (
edit, index, new, show, introduce, like, dislike, cancle, new_comment
)
app_name = 'hanmaum'
urlpatterns = [
path('', index, name="index"),
path('<int:article_id>', show, name="show"),
path('show/<int:article_id>', show... | [
"singun11@kookmin.ac.kr"
] | singun11@kookmin.ac.kr |
d73707052b010a015388947c1705c99bb8ae15ec | 248c535f3612c646bccadecafdca649fd788bb1f | /.history/app/models_20210927050430.py | 68917ed4d52d586d0562e0b5cd1b52726d578030 | [
"MIT"
] | permissive | GraceOswal/pitch-perfect | 3b923e4de5fff1a405dcb54374a1ba0522232025 | d781c6e0f55c11f2a5e5dceb952f6b2de3c47c3b | refs/heads/master | 2023-08-16T01:42:18.742154 | 2021-10-01T06:59:11 | 2021-10-01T06:59:11 | 410,224,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | from . import db
# connect class user to pitchperfect database
class User(db.Model):
__table__ = 'users'
id = db.Column(db.Integer,primary_key = True)
username = db.Column(db.String(255))
def __repr | [
"graceoswal88@gmail.com"
] | graceoswal88@gmail.com |
2ceafa22468a3657f444a3f7565a74038f94664c | 5199d37699c7c104cd9b00ffecad8f70d0f4f203 | /test_mean.py | 0a5dc585e4ac6a50486572913654dcc0e61bd20c | [
"CC-BY-4.0",
"MIT"
] | permissive | Becksteinlab/workshop_testing | 81b9a85f7a002e6f78666138a9959d51f6949ec1 | e4ee392e6e9bd1f7c429290b8820cfd06a512032 | refs/heads/master | 2020-03-25T12:31:27.376484 | 2018-08-07T00:28:51 | 2018-08-07T00:28:51 | 143,780,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | import pytest
from mean import mean
def test_ints():
num_list = [1,2,3,4,5]
obs = mean(num_list)
exp = 3
assert obs == exp
def test_zero():
num_list=[0,2,4,6]
obs = mean(num_list)
exp = 3
assert obs == exp
def test_double():
# This one will fail in Python 2
num_list = [1,2,3,... | [
"orbeckst@gmail.com"
] | orbeckst@gmail.com |
d4dd8070546b4c3ce4a0fb08d5906e255dcdbe45 | 5bdf195972deec9378d14d1ba37994c0cae9ad7b | /dash-example/data.py | 1489c30d3b5c1e72c23352d1836d108e590bc256 | [
"BSD-2-Clause"
] | permissive | SoftwareDefinedBuildings/mortar-analytics | 42b40067b2c6056430b0cd11889993a10b8428a7 | df48efca45ab2636f53c3b7301bcaa21b6c4e91f | refs/heads/master | 2023-06-08T04:02:21.675221 | 2022-06-26T00:35:46 | 2022-06-26T00:35:46 | 168,413,215 | 20 | 10 | BSD-2-Clause | 2023-02-15T21:33:04 | 2019-01-30T20:50:29 | Python | UTF-8 | Python | false | false | 1,841 | py | import pymortar
import os
import pandas as pd
# use default values (environment variables):
# MORTAR_API_ADDRESS: mortardata.org:9001
# MORTAR_API_USERNAME: required
# MORTAR_API_PASSWORD: required
client = pymortar.Client({})
meter_query = "SELECT ?meter WHERE { ?meter rdf:type/rdfs:subClassOf* brick:Building_Electr... | [
"gtfierro225@gmail.com"
] | gtfierro225@gmail.com |
e7e8676236a60acdb5e6bee1d75bc7710446e73e | bcd711985fe4381f1599b797e6048a27e357f8d1 | /master/action/task_action.py | 938c94dd4ff23cef9563800f6f3c3c0681fe8dd6 | [] | no_license | No-bb-just-do-it/distributed-spider | 5c02847604350f404ca0a1eeea64c0d6e6c7aad8 | e8bf92a742968eb3c7acaede138132cd6ebe18f4 | refs/heads/master | 2020-03-20T22:56:02.742602 | 2018-05-30T03:33:08 | 2018-05-30T03:33:08 | 137,821,517 | 0 | 1 | null | 2018-06-19T00:40:40 | 2018-06-19T00:40:39 | null | UTF-8 | Python | false | false | 1,079 | py | # -*- coding: utf-8 -*-
'''
Created on 2017-12-08 13:52
---------
@summary:
---------
@author: Boris
'''
import sys
sys.path.append('..')
from utils.log import log
import utils.tools as tools
import web
import json
from service.task_service import TaskService
class TaskAction():
def __init__(sel... | [
"boris_liu@foxmail.com"
] | boris_liu@foxmail.com |
4fd550bd7e17bdd66d350b97ce999f08dd31e922 | 7408dd6c91e601133ca6971d84639ce1b4f18622 | /Wikipedia/config.py | 2988e0481aa933b0e9d36b292f7e0b24f9546020 | [] | no_license | theY4Kman/Yakbot-plugins | 72370cff674335e45f18b27418bc5f0cb87f62ca | faac0bd4fb2599c8adf5aab583ce986aafa037c7 | refs/heads/master | 2021-01-01T19:21:03.117097 | 2012-09-17T03:27:57 | 2012-09-17T03:27:57 | 1,045,656 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | #!/usr/bin/env python
# =============================================================================
# Wikipedia
# Copyright (C) 2009 Zach "theY4Kman" Kanzler
# =============================================================================
#
# This program is free software; you can redistribute it and/or modify it unde... | [
"they4kman@gmail.com"
] | they4kman@gmail.com |
671b01f557ba3809a0c9a20394d172e2fced8c3a | 42e4cc242a2be105dae0288d02a08fbd95bb476a | /deepspeed/ops/sparse_attention/sparse_self_attention.py | 6e7d8905e0a806b09216e3c82414f2737c24e7bc | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | afiaka87/DeepSpeed | a49ca48a410190b631a78c392c25359ed4478577 | 83ff549aa365d4fee744074ac0a64f27571ecbc8 | refs/heads/main | 2023-04-14T16:22:37.595209 | 2021-04-12T09:20:06 | 2021-04-12T09:20:06 | 356,466,212 | 2 | 0 | MIT | 2021-04-12T09:20:07 | 2021-04-10T04:09:31 | Python | UTF-8 | Python | false | false | 6,794 | py | """
Copyright 2020 The Microsoft DeepSpeed Team
"""
import torch.nn as nn
from torch.nn.functional import *
import torch
from torch import distributed as dist
from collections import namedtuple
from deepspeed.ops.sparse_attention import MatMul, Softmax, SparsityConfig
import sys
class SparseSelfAttention(nn.Module):... | [
"noreply@github.com"
] | afiaka87.noreply@github.com |
9372e89548779bcfa0783d3c99173d8509b38650 | 9b9f7546c9d4396bae7d9065b81b8c6c163b9a1d | /lectures/physics/old/NumericalIntegration001.py | 37607cf7354c619886000ad237a8df55ca0777eb | [] | no_license | geo7/csci321 | 60db9454fab00fc63624a4fc32c4dd47f02fda41 | 527744c8d76c5c4aceb07e23a1ec3127be305641 | refs/heads/master | 2020-12-28T14:50:17.267837 | 2015-06-03T19:18:53 | 2015-06-03T19:18:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | import numpy as N
import pygame, time
from pygame.locals import *
from pygame.color import *
import numpy as N
from particlesystem import Particle, ParticleSystem
pygame.init()
screen = pygame.display.set_mode((640,480))
background = pygame.Surface(screen.get_size())
background.fill((128,128,255))
def d... | [
"geoffrey.matthews@wwu.edu"
] | geoffrey.matthews@wwu.edu |
c1ec37951f61167493d80dc54208e1b802e5e123 | 45c685884bdb42fb4bf1c2b9e51a9dd732ecc9bb | /component/my_k8s.py | 9bc2db91ea198c836b07a774b0fa7ffc859e656b | [] | no_license | tristan-tsl/devops-demo | dffdb8dac2bf2be7e02bb44e889a16dbdeba5a6b | 369fc1b8458741d7642e280da9a3e283010535b0 | refs/heads/master | 2022-12-26T09:43:07.984118 | 2020-10-02T14:24:15 | 2020-10-02T14:24:15 | 217,187,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,305 | py | # def update_image(url, namespace, service_name, image_id, base_path, username, password):
# return "更新镜像成功"
"""
参考文档: https://k8smeetup.github.io/docs/tasks/administer-cluster/access-cluster-api/
# 得到 apiserver的信息(地址和token)
kubectl config view
"""
from kubernetes import client
# aToken = "QmFzaWMgTlVaRE5qY3hRVUk... | [
"tanshilinmail@gmail.com"
] | tanshilinmail@gmail.com |
1f225e11537f86d1dd4e294e32c67452d7e14b3b | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res_bw/scripts/common/lib/encodings/johab.py | 26ff76bdd673424c1926f41d0305e01c233650fb | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,147 | py | # 2015.11.10 21:35:52 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/encodings/johab.py
import _codecs_kr, codecs
import _multibytecodec as mbc
codec = _codecs_kr.getcodec('johab')
class Codec(codecs.Codec):
encode = codec.encode
decode = codec.decode
class IncrementalEncoder(mbc.Multiby... | [
"info@webium.sk"
] | info@webium.sk |
d1b20f9a7480772ab77e15a32114eb4f078ac4c3 | 42b324291b51b14e284a8c5e14270a4e9446737a | /test50.py | 044d8d1e1b056372dbbabfbd11ebdd9fe49e77e1 | [] | no_license | christinecoco/python_test | 3f7505c85711eb6bff27cbc68bfd3fd9829a843d | 6d6c519e237f1d9e7243e3e6378a0ca44af98439 | refs/heads/master | 2020-05-23T22:26:58.341688 | 2019-05-16T07:23:28 | 2019-05-16T07:23:28 | 186,973,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | #输出一个随机数
import random
print (random.random())#输出0~1之间的随机数
print(random.uniform(10,100))#输出随机数
print(random.randint(12,88))#输出随机整数 | [
"tester@test.com"
] | tester@test.com |
5088263a12593b85007e826590846f8e1201ab69 | f3e0cc142e77445b286234fc751ecae219b75458 | /pyBLE-NRF52840/2.传感器实验/9.MPU6050/lib/adafruit_mpu6050.py | c8fdfa89b7aa49ac5d364822bd1d8bbd85d4ec26 | [
"MIT"
] | permissive | zhangweiIOT/MicroPython_Examples | 9389528b9dd6c8cd8c4f8932b95252a23de684ae | f06a1bee398674ceafebed2aac88d8413cc8abad | refs/heads/master | 2023-08-25T13:45:36.924345 | 2021-10-26T06:49:41 | 2021-10-26T06:49:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,128 | py | # The MIT License (MIT)
#
# Copyright (c) 2019 Bryan Siepert for Adafruit Industries
#
# 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 ri... | [
"237827161@qq.com"
] | 237827161@qq.com |
c96add8b2d99816e9b7bbd12a6f3472ee27bde96 | a8fe24554013e7f759808203899d85f5bc4362b2 | /libcms/apps/zgate/views.py | 67933648ecbb2fc9010c16bdbaf1217415d04348 | [] | no_license | isergey/school_tatar | 035279d392620ce2c7ded3987d9e027eae7d69d5 | 9161b4758469ed90750be60830b4267756710bcf | refs/heads/master | 2023-06-25T23:02:53.290529 | 2023-06-09T16:17:05 | 2023-06-09T16:17:05 | 160,867,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,535 | py | # -*- encoding: utf-8 -*-
import json
from lxml import etree
from lxml import etree as ET
#import xml.etree.cElementTree as ET
import time
import pymorphy
from django.views.decorators.csrf import csrf_exempt
from django.utils.http import urlquote
from django.http import HttpResponse
from django.shortcuts import redire... | [
"dostovalov@gmail.com"
] | dostovalov@gmail.com |
eddf7b80ce3a1109d590bdcb0be8dfc50d353886 | f51c6d0cebb27c377ce9830deec4b727b9b2ee90 | /Databases/Cars/search_cars.py | 082a2af8cdcf0968fe3a65a7f31f1c02452fc7d8 | [] | no_license | dbbudd/Python-Experiments | 1c3c1322583aaaf2016a2f2f3061e6d034c5d1c8 | b6d294bf11a5c92b8578d16aa2f63cc27fc47b07 | refs/heads/master | 2020-04-17T02:21:36.693593 | 2019-01-17T00:18:34 | 2019-01-17T00:18:34 | 166,130,283 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,210 | py | #!/usr/bin/python
print "Content-type: text/html"
print
#import the libraries
import cgi
import cgitb; cgitb.enable()
import sqlite3
import sys
def generate_search_form():
#create a database connection
db = sqlite3.connect("cars.db")
db.row_factory = sqlite3.Row
def select_table_names():
my_d... | [
"dbbudd@gmail.com"
] | dbbudd@gmail.com |
3d5c2d77fae942b3e0fd2c38fd0924121f3af901 | fcde32709c62b8ee86da459bb7c8eee52c848118 | /code/shopping重构/shopping__oo.py | db5da2c77b491014df24d346b47ad7b0669ca33e | [] | no_license | klaus2015/py_base | 6b92d362c3d7dc0e09205a037f4d580381dac94d | ec32c731c1c2f6a0dab87f1d167397e4fa86b8de | refs/heads/master | 2022-07-28T15:49:30.383648 | 2020-05-11T15:31:43 | 2020-05-11T15:31:43 | 261,777,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,543 | py | """
面向对象购物车
"""
class CommodityModel:
"""
商品模型
"""
def __init__(self, id=0, name="", price=0):
self.id = id
self.name = name
self.price = price
class OrderModel:
"""
订单模型
"""
def __init__(self, commodity=None, count=0, id=0):
self.id = id... | [
"598467866@qq.com"
] | 598467866@qq.com |
96fec971efe11e86b54158e7fea61194cf4149a3 | 605356250c655a7f98d5f1158e0ffc94175de4f7 | /devel/lib/python2.7/dist-packages/pal_behaviour_msgs/msg/_PresentationFeedback.py | 534934fdf4e5faf3ce45af26dfa5b94b3334ac79 | [] | no_license | MatthewCallery/msc-tiago-project | 4d3dcf07b7bc6915d2f203bbff46f6c11720ff9f | 8c9e987c45d6152192ba36bb27781e961e7900c3 | refs/heads/master | 2020-11-30T04:17:53.649839 | 2017-07-11T14:38:47 | 2017-07-11T14:38:47 | 96,903,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | /home/mc16766/tiago_public_ws/devel/.private/pal_behaviour_msgs/lib/python2.7/dist-packages/pal_behaviour_msgs/msg/_PresentationFeedback.py | [
"mc16766@it051534"
] | mc16766@it051534 |
95cfde73c373262593894bf88e48c410cdd54843 | 1c2b73f125f4eaa91368f7e334df5cd863288d49 | /backend/team/views.py | 42474eedf73f94651b44532aa139dd648d03b6f3 | [
"MIT",
"Python-2.0"
] | permissive | AroraShreshth/officialWebsite | c178c2debca4900f954b968fff7c24e027868707 | 927fec11bbc4c0d64619c597afca6448075ab430 | refs/heads/master | 2022-07-26T20:33:32.090095 | 2020-05-15T19:38:35 | 2020-05-15T19:38:35 | 264,126,862 | 0 | 0 | MIT | 2020-05-15T07:29:48 | 2020-05-15T07:29:48 | null | UTF-8 | Python | false | false | 320 | py | from django.shortcuts import render
from . import models
from . import serializers
from rest_framework import viewsets, status, mixins, generics
class TeamViewset(viewsets.ModelViewSet):
"""Manage teams in the database"""
serializer_class = serializers.TeamSerializer
queryset = models.Team.objects.all()
| [
"jsparmani@gmail.com"
] | jsparmani@gmail.com |
1796357c17c68508f191567f7f813bac9f15f16a | fc4f97918ac9366837cb05f51091178bbf37ac18 | /1_100.py | f021fc6297e7668b48cdf3f11e3f5492f46f09ed | [] | no_license | zoejane/automate-python | ae72ef7bed291b757ee41d578844c132cd1fc192 | 9c4e8ce69da21dc58e4fc85604d9e1fc848d8c3e | refs/heads/master | 2021-01-10T01:51:23.009746 | 2015-10-24T13:14:09 | 2015-10-24T13:14:09 | 43,808,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | total =0
for num in range(101):
total=total+num
print(total)
| [
"dadac123@gmail.com"
] | dadac123@gmail.com |
1062c0d5c71bc4dbaa811f3566052cabac0d03ee | ac227cc22d5f5364e5d029a2cef83816a6954590 | /applications/physbam/physbam-lib/Scripts/Archives/pd/send/SEND.py | b4c864ff67659bce8ee85087f8d9373e717a587a | [
"BSD-3-Clause"
] | permissive | schinmayee/nimbus | 597185bc8bac91a2480466cebc8b337f5d96bd2e | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | refs/heads/master | 2020-03-11T11:42:39.262834 | 2018-04-18T01:28:23 | 2018-04-18T01:28:23 | 129,976,755 | 0 | 0 | BSD-3-Clause | 2018-04-17T23:33:23 | 2018-04-17T23:33:23 | null | UTF-8 | Python | false | false | 692 | py | #!/usr/bin/python
from pd.common import SOCKET
from pd.common import CONNECT
import sys
import time
import os
import socket
# get arguments
try:
executable,usernames=sys.argv[0],sys.argv[1:]
if len(usernames)<1: raise Exception
except:
print "Usage: %s username"%sys.argv[0]
sys.exit(0)
# read message
... | [
"quhang@stanford.edu"
] | quhang@stanford.edu |
be48d2873844038863df5350d16c2c4d7b9909bd | d7320f2f599d1d81e14aec5f62e9d48ee4fddfa2 | /backend/home/migrations/0006_auto_20201223_0721.py | 7d0d4475d0ff26b29059deb693ab4d68d729a96d | [] | no_license | crowdbotics-apps/mobile-23-dec-dev-17193 | be7f357b35147a9b4264f3b93482b18975e034ce | 632ed98d9fa87fab09c91f41eea01b001fb40dae | refs/heads/master | 2023-02-04T23:41:19.953146 | 2020-12-23T13:37:07 | 2020-12-23T13:37:07 | 323,806,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | # Generated by Django 2.2.17 on 2020-12-23 07:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("home", "0005_auto_20201223_0657"),
]
operations = [
migrations.AddField(
model_name="customtext",
name="hgfhfghfgh"... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d91396c9543f0733ec481f70104b9fda611e763a | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2087/60782/310880.py | d2f4d6c3f49086e711629101477ef83af41c4b20 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | s = input() + input()
if s == '1223':
print(1,end="")
exit()
if s == '1233':
print(1,end="")
exit()
if s == '102':
print(10,end="")
exit()
if s == '4171':
print(22,end="")
exit()
if s == '10999999999999999999':
print(5,end="")
exit()
if s == '100121':
print(100,end="")
ex... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
ed82dc19f66ed20453c997fd6f8758995b776669 | 1427e4719b6ce1b805a553143ed477f2c4b82246 | /Scripts/collect_books.py | 92dcab2f9b0f4dbd81a14a7188a4e178c6baddf1 | [
"BSD-2-Clause"
] | permissive | seatonullberg/PyPPA | cefd9cd6d339386e37527b98b1f0ee79d365ba35 | 0175b38b2c8944d43f8d7b7f07b04f0bb46f8744 | refs/heads/master | 2021-04-06T19:21:53.616408 | 2018-10-18T06:04:01 | 2018-10-18T06:04:01 | 125,278,084 | 0 | 0 | BSD-2-Clause | 2018-10-17T05:56:28 | 2018-03-14T21:52:43 | Python | UTF-8 | Python | false | false | 3,270 | py | # Collect books from the Gutenberg Project as raw text for model training
import requests
from bs4 import BeautifulSoup
import re
import os
import argparse
from tqdm import tqdm
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--data_dir', default=None, help='Path to where book text will ... | [
"seatonullberg@gmail.com"
] | seatonullberg@gmail.com |
70f9a4c9349c7ed93199855e89304f20ea0f2f27 | 913f47c4d9550ff4b766011c4644c8ec534d155e | /24_classes/dz/task_4.py | 0778a079a726b66c64f13b34ff78ac4a1ec54891 | [] | no_license | Kvazar78/Skillbox | b63fd088cbda4484850b375a2a243b99dae02507 | 1ce04ecb935c9f5b06c65665fe12edd50e574294 | refs/heads/main | 2023-06-01T08:12:40.801301 | 2021-06-30T13:54:42 | 2021-06-30T13:54:42 | 312,324,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,187 | py | class Parents:
def __init__(self, name_p, age_p, kids_list=None):
self.name_p = name_p
self.age_p = age_p
self.kids = kids_list if kids_list else []
def about_me1(self):
print(f'Меня зовут {self.name_p}. Мне {self.age_p} лет и у меня', end=' ')
if len(self.kids) == 0:
... | [
"kvazar78@mail.ru"
] | kvazar78@mail.ru |
48571f5d18cfafc14aba1237bbefdae506a4cbb1 | 8af379e5315da9d6389b297e12569f999ec14518 | /05_Statistics/01_statistics.py | 855e8e48cf9063af9c110c3cde3de33b2e3bb7d6 | [] | no_license | frclasso/Apresentacao_Biblioteca_Padrao_Python_Unifebe_2018 | 02af186ce3f08fa8b07d8cb30f49119b51941caf | b1bcca28e620501e89a328a7cdc845fccdcdef54 | refs/heads/master | 2020-04-01T15:33:51.482478 | 2019-01-24T16:57:06 | 2019-01-24T16:57:06 | 153,342,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | #!/usr/bin/env python3
import statistics
agesData = [10,13,14,12,11,10,11,10,15]
print(f"Media: {statistics.mean(agesData)}") # Media/ Average
print(f"Mediana: {statistics.median(agesData)}") # Mediana / Median point
print(f"Moda: {statistics.mode(agesData)}") # Item mais frequemente apresentado
| [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
164cebb007bafcb17fbff858b98ed9ffddb77e37 | 81eceea57d570fa1f9f6468875b1b06b8de9f0f0 | /.history/block_20200624173107.py | 72aa7ba353386e6c996906e9942a81a74d34341a | [] | no_license | digg2414/python-blockchain | fe9cdab754123eddef660c39ffb4c0c6b0e99523 | 36c4df03bdd71dbd58663ee4b16f6a72f02d401f | refs/heads/master | 2022-11-05T01:08:44.229492 | 2020-06-24T23:11:41 | 2020-06-24T23:11:41 | 274,786,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | import time
def mine_block(last_block, data):
"""
Mine a block based on the last_block and the data.
"""
timestamp = time.time_ns()
last_hash = last_block.hash
hash = f'{timestamp} - {last_hash}'
return Block(timestamp, last_hash, hash, data)
def genesis():
"""
"""
class Bl... | [
"JHarold1241@outlook.com"
] | JHarold1241@outlook.com |
944ce648c7f0353cae8b491413725321702c7ccd | 6fbd633d0c7c831ca8217788dcd3e82cd26dd72d | /src/pkgcheck/__init__.py | 385636e544780539029e6d2319996a6fdc7e233f | [
"BSD-3-Clause"
] | permissive | chutz/pkgcheck | b93724cc0c0dd3d17e49c734faf019b2ad67b0c7 | 714c016381b53246b449dd9c3116811e50db744f | refs/heads/master | 2020-09-22T13:46:59.498632 | 2019-12-01T04:05:35 | 2019-12-01T04:06:11 | 225,225,319 | 0 | 0 | BSD-3-Clause | 2019-12-01T20:22:06 | 2019-12-01T20:22:05 | null | UTF-8 | Python | false | false | 45 | py | __title__ = 'pkgcheck'
__version__ = '0.7.1'
| [
"radhermit@gmail.com"
] | radhermit@gmail.com |
a44044d78854bf1937bbcbff50218a05af62ae22 | a720b0b5dafd164e388004c63a9417d242af6d11 | /beemgraphenebase/objects.py | d7f80f472b2939464f6bcc0f648d29d1d1f9c420 | [
"MIT"
] | permissive | anikys3reasure/beem | fe8f91594ff7d3d318ae3f4420fbffc0044ecf92 | d6bfc39afa46e2c8cdedb27eabe2ebe98dd3da68 | refs/heads/master | 2020-03-19T05:10:18.884986 | 2018-06-03T06:25:28 | 2018-06-03T06:25:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,888 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from builtins import str
from builtins import object
from future.utils import python_2_unicode_compatible
from collections import OrderedDict
import json
from beemgraphene... | [
"holger@nahrstaedt.de"
] | holger@nahrstaedt.de |
82e01ddf306af0de0cd44eb3c9bac1c8d54e5648 | fbffe8c375d0f1bded68d7d37d407332f8eebf98 | /binaray_search.py | e6e62a6ed99504b11d4d6a083dd575c193a31f75 | [] | no_license | rheehot/week02-algorithm | f743ae3257589c1421fd1ff057439f516f1fc4fc | 0bd42403065cf96a1b34f9152095670e52cdfdca | refs/heads/master | 2023-02-05T20:43:44.339200 | 2020-12-24T03:37:10 | 2020-12-24T03:37:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | '''
def binaray_search(array, target, start, end):
if start > end:
return None
mid = (start+end)//2
# target을 찾은 경우 인덱스 반환
if array[mid] == target:
return mid
# 중간점의 값보다 찾고자하는 값이 작은 경우 왼쪽 확인
if array[mid] > target:
return binaray_search(array, target, start, mid-1)
... | [
"jeongseo21@gmail.com"
] | jeongseo21@gmail.com |
402aa936f03eebfc6594e20ffd04d00bf655dc5e | 2d67afd40a0425c843aa8643df9f7d5653ad0369 | /python/leetcode/679_24_Game.py | 6ffb7198651f3b682a27ee7c925b68c11546088b | [] | no_license | bobcaoge/my-code | 2f4ff5e276bb6e657f5a63108407ebfbb11fbf64 | 70bdd75b6af2e1811c1beab22050c01d28d7373e | refs/heads/master | 2022-12-23T22:38:10.003058 | 2020-07-02T03:52:43 | 2020-07-02T03:52:43 | 248,733,053 | 0 | 0 | null | 2022-12-10T05:41:57 | 2020-03-20T10:55:55 | Python | UTF-8 | Python | false | false | 835 | py | # /usr/bin/python3.6
# -*- coding:utf-8 -*-
import itertools
class Solution(object):
def judgePoint24(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
if len(nums) == 1:
return abs(nums[0] - 24) < 0.0001
for x in itertools.permutations(nums):
... | [
"378082326@qq.com"
] | 378082326@qq.com |
86853f144a8219477f6bf97079bb8cb4a5a2677d | fae94c0dcb251ea5854e33e81369140ca75cfaf5 | /src/bloombox/schema/shop/v1/ShopService_v1_pb2.py | 8224ee952460abdcdf177193651f5e7d434fb304 | [
"Apache-2.0"
] | permissive | fagan2888/Python | 425654b18055233949aa7e6181e0b2652975e185 | 1b125fbdf54efb390afe12aaa966f093218c4387 | refs/heads/master | 2020-12-13T14:17:59.452500 | 2018-06-18T16:16:30 | 2018-06-18T16:16:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 74,517 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: shop/v1/ShopService_v1.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf impor... | [
"sam@momentum.io"
] | sam@momentum.io |
2b0320378d647c689a4538c2bfa5efe8740ce529 | 73861a871c77c460ccc6fa7662ef63880e69dd4e | /vision/extract.py | 1677208920e14b1b958350c6936e92f7d28057f8 | [
"MIT"
] | permissive | bbengfort/financial-analysis | 7d2822f44407dd0733e49b36f61886afabebe95e | aa5b2d80af0df04f6171ae18c381380964867b98 | refs/heads/master | 2021-01-10T14:06:44.012138 | 2016-01-20T02:25:52 | 2016-01-20T02:25:52 | 47,262,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,550 | py | # vision.extract
# Extracts financial information from Finances.xlsx and writes them to CSVs.
#
# Author: Benjamin Bengfort <bengfort@cs.umd.edu>
# Created: Wed Dec 02 20:41:22 2015 -0500
#
# Copyright (C) 2015 University of Maryland
# For license information, see LICENSE.txt
#
# ID: extract.py [] benjamin@bengfort.... | [
"benjamin@bengfort.com"
] | benjamin@bengfort.com |
d59af3974388b65b5470435d958d55db47734bc1 | 8b3ca44ee3d990233e74655b7131d616094f70c2 | /experiments/sparsity/sameK_drug_sensitivity_gdsc/gaussian_gaussian_ard.py | 9efc1162ab1aaaf6f9e7b0ba0daf1917eab61758 | [] | no_license | zshwuhan/BMF_Priors | 8b8c54271285a72d2085a56a9475c0756f375e67 | 6a600da1c41f1ccde2f2ba99298b40e68fb9910a | refs/heads/master | 2021-05-13T19:10:07.203215 | 2017-12-01T13:30:21 | 2017-12-01T13:30:21 | 116,883,181 | 1 | 0 | null | 2018-01-09T23:36:13 | 2018-01-09T23:36:13 | null | UTF-8 | Python | false | false | 1,370 | py | '''
Measure sparsity experiment on the GDSC drug sensitivity dataset, with
the All Gaussian model (multivariate posterior) wih ARD.
'''
project_location = "/Users/thomasbrouwer/Documents/Projects/libraries/"
import sys
sys.path.append(project_location)
from BMF_Priors.code.models.bmf_gaussian_gaussian_ard import BMF... | [
"tab43@cam.ac.uk"
] | tab43@cam.ac.uk |
832ddd7fd40b5386692cfa20df6d94a139502e50 | 32cb0be487895629ad1184ea25e0076a43abba0a | /LifePictorial/top/api/rest/TmallEaiOrderRefundGoodReturnCheckRequest.py | ce4941fbc54d218c06016543eb1831e1303432ae | [] | no_license | poorevil/LifePictorial | 6814e447ec93ee6c4d5b0f1737335601899a6a56 | b3cac4aa7bb5166608f4c56e5564b33249f5abef | refs/heads/master | 2021-01-25T08:48:21.918663 | 2014-03-19T08:55:47 | 2014-03-19T08:55:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | '''
Created by auto_sdk on 2014-02-10 16:59:30
'''
from top.api.base import RestApi
class TmallEaiOrderRefundGoodReturnCheckRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.company_code = None
self.confirm_result = None
self.confirm_time... | [
"poorevil@gmail.com"
] | poorevil@gmail.com |
5f21d9bb1a6c40517ba06e2c323a7b65004c4df6 | 53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61 | /.history/EMR/age_sex_20190618145358.py | 3e1c90629ae0e75d79668dc2289b3d2582a601eb | [] | no_license | cyc19950621/python | 4add54894dc81187211aa8d45e5115903b69a182 | d184b83e73334a37d413306d3694e14a19580cb0 | refs/heads/master | 2020-04-11T20:39:34.641303 | 2019-07-02T12:54:49 | 2019-07-02T12:54:49 | 162,078,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | # -*- coding:utf-8 -*-
import time
import math
import os
import sys
import os, os.path,shutil
import codecs
import EMRdef
import re
emrtxts = EMRdef.txttq(u'D:\DeepLearning ER\EHR-all')#txt目录提取
for emrtxt in emrtxts:
f = open(emrtxt,'r',errors="ignore")#中文加入errors
emrtxt = os.path.basename(emrtxt)
emrtxt_s... | [
"1044801968@qq.com"
] | 1044801968@qq.com |
a1d2b1c6ef8f9835c41df4bfaac431dfad3a6bdd | e166decefaf4f99510c2389fc5ee01a4a9252054 | /test_mbcf.py | 1efd1cdabf351825550a6df06560c0535c06b487 | [] | no_license | fuhailin/Memory-based-collaborative-filtering | 61ccecab76c259450f7105f34f94dde7340da097 | 65dac5ab14215ec3a7b0d0f89e6d4831cc4d942e | refs/heads/master | 2022-09-21T18:22:57.186339 | 2022-09-01T02:57:46 | 2022-09-01T02:57:46 | 85,299,014 | 45 | 25 | null | 2022-09-01T02:57:47 | 2017-03-17T10:20:42 | Python | UTF-8 | Python | false | false | 121 | py | #coding=utf-8
class TestClass:
def test_one(self):
x = "this"
def test_two(self):
x = "hello"
| [
"hailinfufu@outlook.com"
] | hailinfufu@outlook.com |
72c3ee6ceac0833b76267a754488a2c3ded1d52d | 21034e55eab7fb8f6fb177c170f481bc434166bd | /lagou_requests/lg_job.py | 6b618a992a13dd98f3dde1c3e52497122935d6db | [] | no_license | mengguiyouziyi/lagou | e1475c5184781a47bcd233996c6efb6109ccb8bb | 839f93a31da96355e291ee21a038d0d8da8b25c8 | refs/heads/master | 2021-01-17T18:04:12.988615 | 2017-07-08T10:45:19 | 2017-07-08T10:45:19 | 94,430,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,545 | py | # coding=utf-8
from requests.sessions import session
import requests
import pymysql
import json
from scrapy.selector import Selector
import random, time, datetime
from multiprocessing import Pool
try:
import cookielib
except:
import http.cookiejar as cookielib
cookies = [
'user_trace_token=20170612170648-026cfbd... | [
"775618369@qq.com"
] | 775618369@qq.com |
d35cb142ca658d669d5e931ec54d9e3e60ae2833 | f73fa6ce1b0df4ab5c4b3a37c27e61cf3ab1515c | /authapp/migrations/0002_auto_20210113_1639.py | b07e3d5162238755bc292026d331f526744eedea | [] | no_license | mr-Robot-777/geekshop | 15444f13fc2f97eba88eb0538407cb84635e3d66 | 8f7b2fc17ca7731813e444a3005073aa9ded2799 | refs/heads/master | 2023-02-28T10:01:23.801994 | 2021-02-05T16:14:16 | 2021-02-05T16:14:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | # Generated by Django 2.2.17 on 2021-01-13 11:39
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('authapp', '0001_initial'),
]
operations = [
migrations.AddField(
model_na... | [
"ershgun@mail.ru"
] | ershgun@mail.ru |
69e03027619f9036ca92caea3d6929e383bb11cb | 3dcafd835cc14329d3d95fce96e4553009df1c59 | /mystic/svctools.py | d547f96e03ed22447edd81b49279762c543c3bda | [
"BSD-3-Clause"
] | permissive | silky/mystic | e4856721a6fdb7eaae5e4351c02d486c930352a6 | 369bebe23e3460b37cba4a64d00da7461b6fb028 | refs/heads/master | 2020-12-03T03:50:33.154428 | 2013-10-25T03:22:18 | 2013-10-25T03:22:18 | 15,031,357 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | #!/usr/bin/env python
#
# Patrick Hung.
"""
Simple utility functions for SV-classifications
"""
from numpy import zeros, multiply, ndarray, vectorize, array, dot, transpose, diag, sum
def KernelMatrix(X, k=dot):
n = X.shape[0]
Q = zeros((n,n))
for i in range(n):
for j in range(i, n):
Q... | [
"mmckerns@968178ea-60bd-409e-af13-df8a517b6005"
] | mmckerns@968178ea-60bd-409e-af13-df8a517b6005 |
006ba610db2b9012c049987a6af4aaf9bdbd2252 | 4f1dd1353b83d30e97abbff2c6b531cd538160e3 | /RoboBase.py | 8912a17c7d4874fd362a70e152be6c8b6c926233 | [
"MIT"
] | permissive | titos-carrasco/RoboBase | c089f84f0eb622877f0ed8620aadd18af5109cdd | ac3fe692482a6bd73ad836d56336c76508731f2d | refs/heads/master | 2021-01-13T01:40:40.773039 | 2014-04-18T22:59:34 | 2014-04-18T22:59:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,744 | py | # -*- coding: utf-8 -*-
"""Bluetooth control for a generic Arduino based robot
"""
import serial
import threading
import time
class RoboBase:
"""Class to control the robot
Usage:
robot = DaguCar("/dev/rfcomm0")
if(robot.IsConnected()):
robot.SetMotors(-255, 255)
time.... | [
"titos.carrasco@gmail.com"
] | titos.carrasco@gmail.com |
87302d938e2f55c44d36d63480ba7cc1d616a017 | dbd87fe6e9466c4cada18b037667cfdddc62c193 | /data/AV Connectior/alpha_vantage/cryptocurrencies.py | 4af80e1a7b1669d87d1c5c63d89dc537cb296929 | [] | no_license | alexanu/Python_Trading_Snippets | 74515a40dc63ba50d95bd50330ed05d59b5dc837 | 85969e681b9c74e24e60cc524a952f9585ea9ce9 | refs/heads/main | 2023-06-25T03:27:45.813987 | 2023-06-09T16:09:43 | 2023-06-09T16:09:43 | 197,401,560 | 18 | 17 | null | 2023-02-08T22:25:25 | 2019-07-17T14:05:32 | Jupyter Notebook | UTF-8 | Python | false | false | 2,125 | py | from .alphavantage import AlphaVantage as av
class CryptoCurrencies(av):
"""This class implements all the crypto currencies API calls
Prices and volumes are quoted in both the market-specific currency and USD.
All the functions follow the same call structure :
Keyword Arguments:
symbol: T... | [
"oanufriyev@gmail.com"
] | oanufriyev@gmail.com |
ba349bf428a3ad2f98c1478dcd08138dde07d944 | 76e62ddbfdfba19c80b37e855a4df67672ef0808 | /BIZa/2014/Novikova_J_V/Задача №4. Вариант 34.py | f7c4c6405a63589003c58083cc5a3d9c6a220461 | [
"Apache-2.0"
] | permissive | stasvorosh/pythonintask | 9d30f3cd492e89783b7221402375c1ebe4690baa | 8169ed26510022fe0d589f4013f11749131957df | refs/heads/master | 2021-01-17T16:49:32.778063 | 2016-10-10T14:08:04 | 2016-10-10T14:08:04 | 52,255,539 | 6 | 0 | null | 2016-02-22T07:33:16 | 2016-02-22T07:33:15 | null | UTF-8 | Python | false | false | 1,402 | py | #Задача №4. Вариант 34.
#Напишите программу, которая выводит имя, под которым скрывается Мария Луиза Полякова — Байдарова. Дополнительно необходимо вывести область интересов указанной личности, место рождения, годы рождения и смерти (если человек умер), вычислить возраст на данный момент (или момент смерти). Для хране... | [
"stasyan.v@gmail.com"
] | stasyan.v@gmail.com |
8d9f6e547d53743658efe0b029a51b27da1edc5a | e45b050c8490afeff9b0a7212d46aee6f3227612 | /docs/conf.py | db378e42c4a4b8477c2be5ecd0f6da26ef947925 | [
"MIT"
] | permissive | luzfcb/django-allauth | ec9c089b0e7fe12f903a258e1ebb2e842646c47c | 84e3ba0cc41beebe69bcf380554eb2e96ec2cfad | refs/heads/master | 2021-01-17T21:26:00.998997 | 2013-11-27T16:41:48 | 2013-11-27T16:41:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,802 | py | # -*- coding: utf-8 -*-
#
# django-allauth documentation build configuration file, created by
# sphinx-quickstart on Wed Jun 6 22:58:42 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
... | [
"raymond.penners@intenct.nl"
] | raymond.penners@intenct.nl |
d7b2079f01d6308c91b68f4e7309c6900690d40e | 8f8ac99fd3ed9ceb36778b404f6fdd0b6899d3f4 | /pyobjc-framework-Cocoa/PyObjCTest/test_nsdraggingitem.py | ed2c3d005e4b5cb0bdbcbe99f3b2c1d47e98bb2b | [
"MIT"
] | permissive | strogo/pyobjc | ac4201c7742eb75348328eeecb7eedf4e3458de3 | 2579c5eaf44b0c5af77ee195c417d2c65e72dfda | refs/heads/master | 2023-07-13T00:41:56.448005 | 2021-08-24T06:42:53 | 2021-08-24T06:42:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | import AppKit
from PyObjCTools.TestSupport import TestCase, min_os_level
class TestNSDraggingItem(TestCase):
@min_os_level("10.7")
def testConstants10_7(self):
self.assertIsInstance(AppKit.NSDraggingImageComponentIconKey, str)
self.assertIsInstance(AppKit.NSDraggingImageComponentLabelKey, str)... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
dabad33d58c5bdaefaa03a5af5b3b6a0977109c7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03304/s545763766.py | 0659fb172e79807c2c54e0ef15d6b2bc8fc15172 | [] | 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 | 105 | py | import decimal
n,m,d=map(int,input().split())
print(decimal.Decimal(((2**min(1,d))*(n-d)*(m-1))/(n**2)))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a025c41a715c278a37e8811487827c599e634f77 | 1f0b38e455ec949eb1285437373c496f46900955 | /Figures/early_SMBH_growth/redshift_vs_Mbh_growth_20200323.py | 006f80c26ed4dda1e3927ed1083fee38aa70d5f6 | [] | no_license | d80b2t/JWST_Cycle1 | 87fef5f58fca242e9df7717a609120be1cf01af0 | e6e7618640d4b35cff528304e475fed1ee0231c5 | refs/heads/master | 2021-05-12T19:43:28.468189 | 2020-03-23T17:42:21 | 2020-03-23T17:42:21 | 117,101,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,109 | py | '''
WISE detections and colors of Very High redshift quasars
'''
import math
import numpy as np
from astropy.io import fits
from astropy.io import ascii
from astropy.table import Table
from astropy.table import Table
import astropy.units as u
import matplotlib
import matplotlib.pyplot as plt
from matplotlib import c... | [
"npross@lbl.gov"
] | npross@lbl.gov |
fecce092dd36e224a01aab6a9e1d8b24d5bbf868 | 983ca9afc80dc1bd2cd25e81ec51de8c1fd39394 | /Unit5/5.2/googleSniff.py | 37fc74ef1da2a12b1df291bd03061d1e9e4ea3c1 | [] | no_license | mi1k7ea/Violent-Python | d5630a67cbdc218640d21f58e4081cd6530f32fe | c8048b04e02a6e91aed8e73af36e707b004b115c | refs/heads/master | 2022-11-25T23:06:05.138896 | 2020-08-02T15:03:32 | 2020-08-02T15:03:32 | 284,483,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | #!/usr/bin/python
#coding=utf-8
import optparse
from scapy.all import *
def findGoogle(pkt):
if pkt.haslayer(Raw):
payload = pkt.getlayer(Raw).load
if 'GET' in payload:
if 'google' in payload:
r = re.findall(r'(?i)\&q=(.*?)\&', payload)
if r:
search = r[0].split('&')[0]
search = search.replac... | [
"mi1k7ea@qq.com"
] | mi1k7ea@qq.com |
f79e9655cd13395e6de47f2c80331663af24e8a8 | 96e507cf993e26ea9fdc8586073fb5822b9b5c26 | /ex_1.3_datatype_dictionary.py | 04a3c8058f2e27f2d8fcc3cf01ff3531ba2e92ad | [] | no_license | bhoj001/python_tutorial | eff4bd1becccc80950a3ebd55a1abf26985e9cd5 | de717e518ece9989a8ed90f346374dc6cfaeebfc | refs/heads/master | 2020-12-14T21:33:54.559542 | 2020-03-02T09:47:45 | 2020-03-02T09:47:45 | 234,869,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,427 | py | '''
author: bhoj bahadur karki
date: 2020-jan-19th
purpose : about dictionary in python
Dictionary: Python dictionary is an unordered collection of items.
While other compound data types have only value as an element, a dictionary has a key: value pair.
Dictionaries are optimized to retrieve values when the key is k... | [
"nishantkarki305@gmail.com"
] | nishantkarki305@gmail.com |
c0ce587c985fdba86762d152de058192b4c8fc8a | 43fd8b12dc1b6a2fc7cf4d9b8a80d3f1ae0fac66 | /Test/others/requeset用法.py | 47a0ce9e6eb99ef82864c5610adc2e675068439b | [] | no_license | gxiang666/python_file | e707f829b2c35e6126bea79e299333faabe76b19 | 2ee0f52d53892d193dc83c10564f7326e0bad0da | refs/heads/master | 2022-12-07T04:16:29.166707 | 2019-10-25T02:59:26 | 2019-10-25T02:59:26 | 139,252,161 | 1 | 0 | null | 2022-11-22T02:38:40 | 2018-06-30T13:35:14 | Python | UTF-8 | Python | false | false | 140 | py | import requests
r = requests.get("https://www.bilibili.com/video/av9784617?p=5")
print(r.status_code)
r.encoding = "utf-8"
print(r.content)
| [
"1528357474@qq.com"
] | 1528357474@qq.com |
7371e45ddb1c2902e7bb85f6584abc85dc138382 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03469/s884542061.py | fe4c56bfa8509ab85d7064f736f4b45c11743730 | [] | 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 | 106 | py | s = list(map(str,input().split("/")))
if s[0] == "2017":
s[0] = "2018"
print(s[0]+"/"+s[1]+"/"+s[2]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
adac29ebb4dc4dcbd9bb458b8f74a2dd3f338700 | ca8dc4d5b6168648cf8a842fc27191fec3597a09 | /venv/lib/python3.6/site-packages/statsmodels/tools/tests/test_rootfinding.py | 4b840d33271b1842c9f9faf34a5de074491539f9 | [
"MIT"
] | permissive | iefuzzer/vnpy_crypto | 293a7eeceec18b934680dafc37381d1f5726dc89 | d7eed63cd39b1639058474cb724a8f64adbf6f97 | refs/heads/master | 2020-03-26T20:13:38.780107 | 2018-09-10T06:09:16 | 2018-09-10T06:09:16 | 145,311,871 | 3 | 0 | MIT | 2018-09-10T06:09:18 | 2018-08-19T14:48:32 | Python | UTF-8 | Python | false | false | 2,957 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 23 13:34:19 2013
Author: Josef Perktold
"""
import numpy as np
from statsmodels.tools.rootfinding import brentq_expanding
from numpy.testing import (assert_allclose, assert_equal, assert_raises,
assert_array_less)
def func(x, a):
f = (x ... | [
"panwei303031816@gmail.com"
] | panwei303031816@gmail.com |
becb2f371e27eec0814fc314ec1629220a2c31c2 | ca12625e6d2f3581793694cfc40445a85fc4770b | /bitmex_websocket/_bitmex_websocket.py | 4a5d778dce46cc853d1c0175e929bb37a169943d | [
"MIT"
] | permissive | kelvinxue/bitmex-websocket | ad10c63ed0fb341f23ed9d9511cc235eb8a5f1b1 | 773531943abc71b0e10b2dc5feec58152796c234 | refs/heads/master | 2020-03-21T04:36:10.788915 | 2018-06-21T04:17:41 | 2018-06-21T04:17:41 | 138,117,395 | 0 | 0 | MIT | 2018-06-21T04:02:13 | 2018-06-21T04:02:13 | null | UTF-8 | Python | false | false | 4,072 | py | from bitmex_websocket.auth.api_key_auth import generate_nonce,\
generate_signature
from bitmex_websocket.settings import settings
from pyee import EventEmitter
from urllib.parse import urlparse
from websocket import WebSocketApp
import alog
import json
import ssl
import time
__all__ = ['BitMEXWebsocket']
class ... | [
"jose.oliveros.1983@gmail.com"
] | jose.oliveros.1983@gmail.com |
00164b917dd18b0a31f8dd2c58136718f475bcae | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/rna-transcription/73f4d972b2c74182aa5cae54291062e3.py | 78dc6c4a79f5f91885ccb23cd500e3eb79dd4a86 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 201 | py | conversion_dict = {
'G' : 'C',
'C' : 'G',
'T' : 'A',
'A' : 'U'
}
def to_rna(dna):
converted = ""
for nucleotide in dna:
converted += conversion_dict[nucleotide]
return converted
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
b454d8b153e5548dd92f8da3f9c6ae1b1b9b1b0c | 4ae7e4805e7b9ff0d949da276f59ec63a10b9fbb | /custom_stock_shipwire/__manifest__.py | ad304ece5ecbf8ff7908d58d65f2babd395c68b0 | [] | no_license | h3llopy/sasmar-addons12 | c94acb1994f0e17f245f0ff6b14d2d21b939c314 | 51a3ae074158fbc695711438888a5ec6c982a2fa | refs/heads/master | 2022-04-07T11:38:24.915350 | 2020-03-03T05:44:42 | 2020-03-03T05:44:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': "Stock Configuration Customization For Shipwire Shipping",
'description': "Shipwire installation Option in Stock COnfiguration Screen",
'author': "BrowseInfo",
'website': "https://www.brwoseinfo.... | [
"shubhajit.kushari@browseinfo.in"
] | shubhajit.kushari@browseinfo.in |
0cd10debc2702f4d604aafa5725e36ac4b73485f | 3dc3bbe607ab7b583eb52dbaae86636eb642960a | /tools/data/multisports/format_det_result.py | 84fd78811ee3267ab3beebc4ba497895779781a8 | [
"Apache-2.0"
] | permissive | open-mmlab/mmaction2 | 659c36c6083fd3d9d072e074a8d4b3a50342b9bd | 582b78fd6c3240500d5cacd292339d7d1ddbb056 | refs/heads/main | 2023-08-28T18:14:50.423980 | 2023-08-10T09:20:06 | 2023-08-10T09:20:06 | 278,810,244 | 3,498 | 1,028 | Apache-2.0 | 2023-09-07T06:50:44 | 2020-07-11T07:19:10 | Python | UTF-8 | Python | false | false | 2,169 | py | # Copyright (c) OpenMMLab. All rights reserved.
from argparse import ArgumentParser
import numpy as np
from mmengine import dump, load
from rich.progress import track
from mmaction.evaluation import link_tubes
def parse_args():
parser = ArgumentParser()
parser.add_argument('test-result', help='path of dumpe... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
ce9d8dab3c03c95c47082aca01989154eb9e0553 | 7890d130081829a7c41302066dc1934badb5a474 | /students/lerastromtsova/3/constants.py | f4c293477a6f15e7ba48515caff4b96e7e39d337 | [
"MIT"
] | permissive | sobolevn/itmo-2019 | 3a05592ff8e2e62c1cadfb361914db42f0d39733 | cf39721874edf52deebc7f72f53455f69317f84a | refs/heads/master | 2020-07-21T06:23:08.581693 | 2020-01-24T12:49:59 | 2020-01-24T12:49:59 | 206,768,545 | 4 | 17 | MIT | 2020-04-12T12:52:50 | 2019-09-06T10:14:25 | Python | UTF-8 | Python | false | false | 557 | py | # -*- coding: utf-8 -*-
from contextlib import contextmanager
from datetime import datetime
import pytest
TEST_DIR = 'test_dirs'
FORMAT_CONSTANT = '{0}/{1}'
SCOPE = 'function'
FOLDER = 'folder'
FILE = 'file'
FOLDERS = 'folders'
FILES = 'files'
FILE_NOT_FOUND = pytest.raises(FileNotFoundError)
FILE_EXISTS = pytest.... | [
"mail@sobolevn.me"
] | mail@sobolevn.me |
29c5b059d58988be82fa3c896883f93cde3c55ff | 9cf434b6ee59ab22496ee031fb4ab145bbaff1a2 | /tranque_v1.8.4_source/backend/src/alerts/tests/modules/ef/m2/escenarios_falla/test_eventos_problemas_instrumentacion.py | d1b22280b70a4619588a67b211e25032b7883730 | [] | no_license | oliverhernandezmoreno/SourcesOH | f2ff1a5e3377f0ac1fb8b3153d99d0ee703700b7 | 5d9ca5ab1caceafd4d11207139c9e56210156ef8 | refs/heads/master | 2023-01-05T02:51:25.172103 | 2020-08-27T14:39:34 | 2020-08-27T14:39:34 | 64,422,812 | 0 | 1 | null | 2022-12-30T17:25:10 | 2016-07-28T19:33:44 | JavaScript | UTF-8 | Python | false | false | 1,807 | py | from alerts.tests.modules.ef.ef_controller_base import EFControllerBase
from targets.models import Timeseries
class ProblemasInstrumentacionTestCase(EFControllerBase.TestCase):
def setUp(self):
super().setUp()
target = self.target_object
controller = '.ef.m2.escenarios_falla.eventos_proble... | [
"oliverhernandezmoreno@gmail.com"
] | oliverhernandezmoreno@gmail.com |
c66332176917e79373d21e4ec4db1bc8890df8e4 | fc1141aabffe60455898b014fd8b4a2e8307ce85 | /chapter16_exporting_data/image_exporter.py | 1fdef438720f66da618ab6149297ce98a7ff80e9 | [] | no_license | Karagul/reportlabbookcode | b5bff1609d62fe2bcfb17bfd7b65777121ac175c | e271348d5562f4842b9d1628ef917539a8ebcd5d | refs/heads/master | 2020-09-21T14:58:43.427964 | 2018-12-19T17:40:46 | 2018-12-19T17:40:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | # image_exporter.py
import os
import subprocess
def image_exporter(pdf_path, output_dir):
if not os.path.exists(output_dir):
os.makedirs(output_dir)
cmd = ['pdfimages', '-all', pdf_path,
'{}/prefix'.format(output_dir)]
subprocess.call(cmd)
print('Images extracted:')
pr... | [
"mike@pythonlibrary.org"
] | mike@pythonlibrary.org |
6a395b495a62beb5c2164f0226f0f60938285b99 | 0cf9bb9c50c6efc1bc4a7923f42f6fad79039598 | /Homeworks/HW 09_ Catching Hackers Starter Code/testbadlogindetector.py | 6306b04d23901933d31be7a09293687dcd663448 | [] | no_license | AlbMej/CSE-2050-Data-Structures-and-Object-Oriented-Design | c950bada185823c70370522e0735533b41bd726b | bfbe91d698e650d78c20fd535c45108a8dba1030 | refs/heads/master | 2020-04-25T13:20:57.537243 | 2019-03-12T19:54:04 | 2019-03-12T19:54:04 | 172,806,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,275 | py | import unittest
from badlogindetector import BadLoginDetector
from logentry import LogEntry
class TestBadLoginDetector(unittest.TestCase):
def testinit(self):
BadLoginDetector(3,10)
BadLoginDetector(30,10000)
def testprocess_all_success(self):
log = ['[%d][1.1.1.1][SUCCESS]' % i for i ... | [
"albertomejia295@gmail.com"
] | albertomejia295@gmail.com |
6b509628bae8d7e370d8a30f240ccb933c8a259b | bb5b63774924abe86c2cb0d8a09795fcf1a4d822 | /realtime_chat_app/settings.py | a993b4cb91db8e23f4b5bb0125e7902a99710b73 | [] | no_license | IdenTiclla/realtime_chat_app | 769bf432e993ee79cb93bd54489305db3526f4d5 | d2a5187bb9f257c5e8fefe6735d23e5d0eec64e6 | refs/heads/master | 2023-06-23T17:47:41.766605 | 2021-07-21T21:00:25 | 2021-07-21T21:00:25 | 387,920,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,305 | py | """
Django settings for realtime_chat_app 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/
"""
fr... | [
"iden.ticlla@gmail.com"
] | iden.ticlla@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.