blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
089a72d393f80d9edfc8e61a7dfbfce118eb3090 | 21590487701d2dcbe1a1c1dd81c6e983f7523cb6 | /opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/view.py | 28f7b4fe08779f08d905507fbc87a5b0d4907dab | [
"Apache-2.0"
] | permissive | open-telemetry/opentelemetry-python | 837199e541c03cff311cad075401791ee2a23583 | d8490c5f557dd7005badeb800095cb51b553c98c | refs/heads/main | 2023-08-26T06:47:23.837997 | 2023-08-17T22:35:13 | 2023-08-17T22:35:13 | 185,478,926 | 1,361 | 668 | Apache-2.0 | 2023-09-14T20:48:40 | 2019-05-07T21:13:30 | Python | UTF-8 | Python | false | false | 6,371 | py | # Copyright The OpenTelemetry 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 in ... | [
"noreply@github.com"
] | open-telemetry.noreply@github.com |
ac08f6261540d61606e9d0662c5697f306f0e938 | 26cb67f6111ac7e372c085da2413018b1eb8ac03 | /ch01/mnist_simple_nn.py | 494e0fa19d5e07b19679331895afb72e547939f7 | [] | no_license | prakharchoudhary/Deep-Learning-With-Keras | 19697288e2f7c73f04298708d5a6d2ea828a80df | 06be2eb555b61bc6e884cc3723bcab26bcf56551 | refs/heads/master | 2021-09-04T01:24:21.497713 | 2018-01-14T01:44:07 | 2018-01-14T01:44:07 | 110,025,589 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,632 | py | from __future__ import print_function
import numpy as np
import os
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers.core import Dense, Activation
from keras.optimizers import SGD
from keras.utils import np_utils
np.random.seed(1671)
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
# netw... | [
"prakhar2397@gmail.com"
] | prakhar2397@gmail.com |
c2a3a5f82d48fe741854aa936d64f6e12b1e3ec9 | f19891e0ca7f038eadd13023a9bece2d356cd3ae | /mycomments/views.py | 95450ba5b25c9b739629669e2c1d76d0025611ca | [] | no_license | yangjufo/Personal-Website | 472f3b1d7a659b1412efa5b9f8b5f919abe32701 | 371acc3499d95e6a8977136ee99344f1a64cc272 | refs/heads/master | 2023-07-25T09:23:47.233295 | 2023-05-10T02:57:26 | 2023-05-10T02:57:26 | 161,396,911 | 3 | 0 | null | 2023-07-06T00:09:50 | 2018-12-11T21:37:17 | CSS | UTF-8 | Python | false | false | 1,487 | py | from django.shortcuts import render, get_object_or_404, redirect
from myblog.models import Post
from myprojects.models import Project
from .forms import PostCommentForm, ProjectCommentForm
def post_comment(request, post_pk):
post = get_object_or_404(Post, pk=post_pk)
if request.method == 'POST':
for... | [
"yangjufo@gmail.com"
] | yangjufo@gmail.com |
ee47fcfdf7a59f221d9969062fb255d6a6681ada | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/zope.index-Zope-3.2.1/zope.index/topic/interfaces.py | cbdcc8c606b9467acce77a49a2fdef85fec318c8 | [
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0"
] | permissive | germanfriday/code-examples-sandbox | d0f29e20a3eed1f8430d06441ac2d33bac5e4253 | 4c538584703754c956ca66392fdcecf0a0ca2314 | refs/heads/main | 2023-05-30T22:21:57.918503 | 2021-06-15T15:06:47 | 2021-06-15T15:06:47 | 377,200,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,798 | py | ##############################################################################
#
# Copyright (c) 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SO... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
fa9d903d5396f85df5627e200ca209ae558bc194 | 0d0cf0165ca108e8d94056c2bae5ad07fe9f9377 | /27_Machine_Learning_with_PySpark/4_Ensembles_And_Pipelines/delayedFlightsWithGradientBoostedTrees.py | 9de7abcfeab1b9f58f5255be9554eff99d04cc37 | [] | no_license | MACHEIKH/Datacamp_Machine_Learning_For_Everyone | 550ec4038ebdb69993e16fe22d5136f00101b692 | 9fe8947f490da221430e6dccce6e2165a42470f3 | refs/heads/main | 2023-01-22T06:26:15.996504 | 2020-11-24T11:21:53 | 2020-11-24T11:21:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | # Delayed flights with Gradient-Boosted Trees
# You've previously built a classifier for flights likely to be delayed using a Decision Tree. In this exercise you'll compare a Decision Tree model to a Gradient-Boosted Trees model.
# The flights data have been randomly split into flights_train and flights_test.
# Instr... | [
"noreply@github.com"
] | MACHEIKH.noreply@github.com |
4d12ffae44bbe6022dbfa96ed98457df680a2200 | b656a1e124e5ece94a163c3cca1de8d8e70efd20 | /twip/plot.py | 6a9cafd62b2623b57dd81c39028f8ce075b43529 | [
"MIT"
] | permissive | zuxfoucault/twip | 3a456bdfdb4cb92f57399a3a02429e2eab94b75e | 8d276f30362f5f78d1761bc7249f621e6f86c994 | refs/heads/master | 2020-12-25T13:33:21.144259 | 2016-06-07T04:05:32 | 2016-06-07T04:05:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,979 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Plot functions like scatter_matrix and double-histograms"""
from __future__ import print_function, division
# from past.builtins import basestring
import json
import os
import logging
from collections import Mapping
from itertools import product
import datetime
import ... | [
"github@totalgood.com"
] | github@totalgood.com |
36fc8913d91d327993f77840c214a9f843d9fcb4 | 8fef8af953e8dafde78c671e8ee9813d08ab2d60 | /strings/Easy/find_duplicates.py | 12bc45e728ec2cfae818691c431cca5b61333813 | [
"MIT"
] | permissive | htrahddis-hub/DSA-Together-HacktoberFest | 037b009c744863070e0f1b61167c18f9101335f2 | a5c6165c449c5b5b91e56815f2a38d5fd23bf354 | refs/heads/main | 2023-08-23T18:52:55.654386 | 2021-10-17T15:45:14 | 2021-10-17T15:45:14 | 418,180,825 | 1 | 0 | MIT | 2021-10-17T15:56:21 | 2021-10-17T15:56:21 | null | UTF-8 | Python | false | false | 351 | py | from collections import Counter
def calc_char_freq(string):
freq_count = Counter(string)
#print(freq_count)
#print(freq_count.keys())
for key in freq_count.keys():
if freq_count.get(key) > 1:
print("(" + key + ", " + str(freq_count.get(key)) + ")")
myStr = 'Hello World. Let’s learn DS... | [
"dsrao0712@gmail.com"
] | dsrao0712@gmail.com |
43b84b14b189c4954bb13d5371c06e1c0f50eb22 | 8a6cf531ed72310d7114237407302ef075171937 | /ores/scoring_systems/__init__.py | ba61b56ea203c54f40bd7b8909fd15c742c58266 | [
"MIT"
] | permissive | ureesoriano/ores | 64a7f3c8a8917fe33449302c55cff23952a5719c | dda9db6c8737d12acbae5b0d43938d93c9e7ea8e | refs/heads/master | 2020-03-17T21:54:12.610518 | 2018-05-20T08:36:13 | 2018-05-20T08:36:13 | 133,980,352 | 0 | 0 | MIT | 2018-05-18T16:43:18 | 2018-05-18T16:43:18 | null | UTF-8 | Python | false | false | 225 | py | from .scoring_system import ScoringSystem
from .single_thread import SingleThread
from .process_pool import ProcessPool
from .celery_queue import CeleryQueue
__all__ = [ScoringSystem, SingleThread, ProcessPool, CeleryQueue]
| [
"aaron.halfaker@gmail.com"
] | aaron.halfaker@gmail.com |
fe983a1b1b3fa99006ce8cd9827b2a2735e71c87 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/192/usersdata/267/70602/submittedfiles/al6.py | 35e4de59840cc412a740ba5edebdfc41a479e7d8 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | # -*- coding: utf-8 -*-
n=int(input("Forneça um número: "))
#REPETIÇÃO
i=2
div=0
print()
print()
while i<n:
if (n%i)==0:
div=div+1
i=i+1
print(div)
if div>0:
print("NÃO É PRIMO")
else:
print("É PRIMO")
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
4c0da37d6a0a7c57fb7c36e23ba15e05bfb39223 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/fractions_20200802115423.py | 06f0a5b0b4bf9444a2a5a7cc6b016ea95a9796ae | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | def fractions(numerator,denominator):
if denominator == 0 :
return str(numerator)
number = numerator / denominator
if numerator % denominator == 0:
return str(numerator // denominator)
newStr = str(number)
print(newStr)
largeStr = newStr.split(".")
if len(largeStr[1]) > 1:
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
aa7983cc344204bb68f7c905587ff50d61e3320d | f0e0c1637f3b49fd914410361c3f1f3948462659 | /Python/Regex and Parsing/validating_roman_numerals.py | 6e6e70c00a2a5dadfd455ab5441aff6701e5c06a | [] | no_license | georggoetz/hackerrank-py | 399bcd0599f3c96d456725471708068f6c0fc4b1 | a8478670fcc65ca034df8017083269cb37ebf8b0 | refs/heads/master | 2021-09-18T07:47:32.224981 | 2018-07-11T09:24:49 | 2018-07-11T09:24:49 | 111,611,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | # http://www.hackerrank.com/contests/python-tutorial/challenges/validate-a-roman-number
import re
str = input()
pattern = r'^M{0,3}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$'
print(bool(re.search(pattern, str)))
| [
"GeorgG@haufe.com"
] | GeorgG@haufe.com |
511a20420067239ae966f105b7dc8469af80faf0 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/InnerDetector/InDetDigitization/FastTRT_Digitization/share/TRT_Digitization_jobOptions.py | dabd823dd8cfdaf5cf08b314808d3c024438f673 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | ###############################################################
#
# TRT Digitization
#
#==============================================================
from Digitization.DigitizationFlags import jobproperties
from AthenaCommon.AlgSequence import AlgSequence
job = AlgSequence()
from AthenaCommon.CfgGetter import getAl... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
b0bfb4b1de7723ff6f2da7d92bd4c40bb9712c1f | b5fabc6c6de064690f8d4ee423001cf9365a3d9f | /flash/text/seq2seq/summarization/cli.py | ced60edc545de164c5b61c473d99c11b39d5cbc8 | [
"Apache-2.0"
] | permissive | dmarx/lightning-flash | 021dfd76bde6e30309f14feb5853020b0babe90d | 4cda031c1f9c8d8754fd36b5720d2a5a7d866765 | refs/heads/master | 2023-09-06T06:24:29.856354 | 2021-11-24T23:38:14 | 2021-11-24T23:38:14 | 422,352,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,815 | py | # Copyright The PyTorch Lightning team.
#
# 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 i... | [
"noreply@github.com"
] | dmarx.noreply@github.com |
6500ddcef45ebb60f4859b4e18e90d126ff762a4 | cf14275eb2ad7a50da0f482ead52e12168e7de6f | /gs27_SerachFilter/gs27_SerachFilter/settings.py | 2779df72d0bd677fe4f7d0b7da2ff1a51fbee6bd | [] | no_license | balamurali1/Environment | 319c4087de011949f405d78a43a15b45b04efb05 | f5312d56f102423cfb11900cfa99775ffa4f67c5 | refs/heads/master | 2023-09-04T06:56:20.449830 | 2021-10-30T09:13:00 | 2021-10-30T09:13:00 | 420,183,269 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,417 | py | """
Django settings for gs27_SerachFilter project.
Generated by 'django-admin startproject' using Django 3.2.7.
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... | [
"balamurali1@gmail.com"
] | balamurali1@gmail.com |
7308f3706181e418776a05680b7eeb0949a38651 | 43a1e9c15132398433ef1bd941e49eb0372136e6 | /day30/re_ex/findall_ex.py | 3adeee7d9bbb535c13bf69d27566c50c934f5cd0 | [] | no_license | dlatnrud/pyworks | 3eaf253f7e9cf74e6504770885e4a63fd1c4e293 | 745ae5c6a85015800d049176b7d5aeb0df0f000a | refs/heads/master | 2023-08-12T16:14:50.936403 | 2021-10-15T00:48:04 | 2021-10-15T00:48:04 | 402,286,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | # findall()함수 - 내용을 리스트로 반환
import re
str = "Two is too"
m1 = re.findall("T[ow]o", str)
print(m1)
m2 = re.findall("T[ow]o", str, re.IGNORECASE) # 대,소문자 허용
print(m2)
pat = re.compile("T[^o]o")
m3 = re.findall(pat, str)
print(m3) | [
"dlatnrud2268@naver.com"
] | dlatnrud2268@naver.com |
76e1b899a9413afa79402e6df099cb153c5158f4 | 4f8ac283115a41e057f86b99147e94776b9ee08a | /Arrays/chocolate_distribution_problem.py | 66cee3f886eb35f3a65910c19e87fdee63aa6b1a | [] | no_license | Saswati08/Data-Structures-and-Algorithms | 107d6582c749c7f4fa7fb951ad2930f37bbbe3b7 | 1338aafa79b5f908ed4e0a5c842fcd12f0bd4d9c | refs/heads/master | 2022-12-17T02:30:39.409611 | 2020-09-09T13:43:06 | 2020-09-09T13:43:06 | 275,190,376 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | #Given an array A of positive integers of size N, where each value represents number of chocolates in a packet. Each packet can have variable number of chocolates. There are M students, the task is to distribute chocolate packets such that :
#1. Each student gets one packet.
#2. The difference between the number of cho... | [
"saswati18015@iiitd.ac.in"
] | saswati18015@iiitd.ac.in |
972ed5c80889b58b8ccdd0a5c149b1bb5b46135c | 6b9840743e961a9ce2f264848247d450f0c9f399 | /subarray/maximum_product_subarray.py | 55f4ee956ddcd1417e2ca6d2ae5154d297e08afa | [] | no_license | jingjinghaha/LeetCode | 699a91a511b3886efd217ab36c21414bf059f767 | 4b3944ae13ccf20e9df252f3c434f6600878293c | refs/heads/master | 2021-08-26T06:39:02.481065 | 2017-11-21T21:52:33 | 2017-11-21T21:52:33 | 105,195,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | '''
Find the contiguous subarray within an array (containing at least one number) which has the largest product.
For example, given the array [2,3,-2,4],
the contiguous subarray [2,3] has the largest product = 6.
'''
class Solution(object):
def maxProduct(self, nums):
"""
:type nums: List[int]
... | [
"wufangjing1018@gmail.com"
] | wufangjing1018@gmail.com |
04d6b37a3d4041db6e899f10a2a460f6146896c3 | d3308f888e9bb43647f03e8bdecbe37b90bcfcc8 | /main.py | 7b21b62fdec1886cb8299a0ce7b1d6b55a9ab8a6 | [
"MIT"
] | permissive | AndreMiras/p4a-service-sticky | 2b83b9fcecf8b4bc7297119969c87eede457e192 | 68e2d4d6a3dd712368610e7c1e2618c14ff39bb8 | refs/heads/master | 2020-03-28T12:44:23.134229 | 2018-09-14T18:16:39 | 2018-09-14T18:16:39 | 148,329,241 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | from kivy.app import App
from kivy.uix.label import Label
from kivy.utils import platform
class MyApp(App):
def build(self):
self.start_service()
return Label(text='Hello world')
def start_service(self):
if platform == 'android':
from jnius import autoclass
pa... | [
"andre.miras@gmail.com"
] | andre.miras@gmail.com |
0fcb8df1f46d278fd02afacb9968518050f8b6b6 | 95cdf7753fc4022be239666a902df217a93f7125 | /po_selenium_1/page_object/search_page.py | 198d9d6dedd1e8cb677692edd19e8665eec3ad7f | [] | no_license | he9mei/python_appium | ffe1b872d3732b9e8510da0dd24f7a791c534be0 | 9fc5dcb67769d2d103756b9fca82d2cfeae40e72 | refs/heads/master | 2022-06-01T03:24:36.821931 | 2022-05-22T07:55:58 | 2022-05-22T07:55:58 | 223,714,095 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | from selenium.webdriver.common.by import By
from po_selenium_1.base.base_page import Base
from time import sleep
class Search(Base):
#定位元素
search_input_box=(By.ID,"kw")
search_button=(By.ID,"su")
def input_text(self,text):
self.locator_element(*self.search_input_box).send_keys(text)
def c... | [
"396167189@qq.com"
] | 396167189@qq.com |
ed4048b89ae310e1f702b436107098dee49631f7 | cd6fc5c18bbda744c87ca684e2cc2201bae8f01d | /salesforce/models.py | 1436a6b1d9c6ddcb3f447233eab0a9c97dba4a1c | [
"Apache-2.0"
] | permissive | apankit2490/django-heroku-connect-sample | ee8c88101ec1cbdb01d5fb7c286b28728931afdd | a5b2d8e5abf5dff23880e38c03dad42db26ebd56 | refs/heads/master | 2021-03-15T00:19:37.662820 | 2020-03-12T11:08:34 | 2020-03-12T11:08:34 | 246,806,943 | 0 | 0 | Apache-2.0 | 2020-03-12T10:32:10 | 2020-03-12T10:32:10 | null | UTF-8 | Python | false | false | 456 | py | from heroku_connect.db import models as hc_models
class User(hc_models.HerokuConnectModel):
sf_object_name = 'User'
username = hc_models.Text(
sf_field_name='Username', max_length=80)
email = hc_models.Email(sf_field_name='Email')
department = hc_models.Text(
sf_field_name='Department... | [
"info@johanneshoppe.com"
] | info@johanneshoppe.com |
c039a38c35baaa8d09e5bf7663c377cabbdc0e2e | b4bc264e22469db4af12fb33fc7df33a1c4dde73 | /soln.py | 4967413c2554a9c1453d497a87f200e1fb0d9bf7 | [] | no_license | GoodnessEzeokafor/computation_with_python | 6d3e420e7de7275acf4efa3b3896473e3933f9c9 | e6f8e7215513c9e00fb94618aee34293388facca | refs/heads/master | 2020-04-03T23:07:18.412780 | 2018-10-31T20:30:35 | 2018-10-31T20:30:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | if __name__ == '__main__':
x = int(input("Enter a value for x: "))
pwr = 1
root = 0
while pwr <= 6 and pwr > 0:
pwr += 1
while root ** pwr < abs(x):
root += 1
if root ** pwr == abs(x):
print("Root of", str(x), 'is', root, "Raised to the power", pwr)
| [
"gootech442@gmail.com"
] | gootech442@gmail.com |
baaab178a23fdd519ba959e71d0c6bdb8bdb716c | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/scitbx/examples/bevington/SConscript | 2e74a3ae0bf59255a434640ed2839adb375c2ae7 | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 1,512 | import libtbx.load_env
import os
Import("env_base", "env_etc")
try:
env_etc.eigen_dist = os.path.abspath(os.path.join(libtbx.env.dist_path("boost"),"../eigen"))
if os.path.isdir(env_etc.eigen_dist):
env_etc.eigen_include = env_etc.eigen_dist
env_etc.scitbx_ex_bev_common_includes = [
env_etc.eigen_inc... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com | |
7797fced9b8e71e1679b05d62c84f622537d3d51 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adverbs/_together.py | f85f759ad26eafe0be70aa27693660958a3c3bb0 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py |
#calss header
class _TOGETHER():
def __init__(self,):
self.name = "TOGETHER"
self.definitions = [u'with each other: ', u'If two people are described as together, they have a close romantic and often sexual relationship with each other: ', u'If two people get together or get it together, they start a sexual rela... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
09931c88d478bb7afea7997aed64f06e7c71c573 | f95d2646f8428cceed98681f8ed2407d4f044941 | /Demo-spider/So/So/items.py | 5ce9e500728b3f3b9344e8ebba47bfec3ee185db | [] | no_license | q2806060/python-note | 014e1458dcfa896f2749c7ebce68b2bbe31a3bf8 | fbe107d668b44b78ae0094dbcc7e8ff8a4f8c983 | refs/heads/master | 2020-08-18T01:12:31.227654 | 2019-10-17T07:40:40 | 2019-10-17T07:40:40 | 215,731,114 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class SoItem(scrapy.Item):
# define the fields for your item here like:
# 图片的链接
imgLink = scrapy.Field()
| [
"C8916BA958F57D5A740E38E94644A3F8@i-search.com.cn"
] | C8916BA958F57D5A740E38E94644A3F8@i-search.com.cn |
76efe8b92384a5af9bdfbc43be166f2f3c7e3924 | 90b2b0d37414be6396751f81fbebcdad1be6b8d5 | /EthiopiaDrought/CMIP_CHIRPS_AnomalyMapGen原始值_Big.py | 0a6f1203fd49a7d8f75a093fe47e27ee3b5a82d0 | [] | no_license | Simonhong111/ETDROUGHT | 19b0196deb0c5c8e1796efee4f33002b21b1d885 | edf8b7d88df44a07805d1c4c1240325a7394f059 | refs/heads/master | 2022-12-21T04:59:08.653864 | 2020-09-27T20:38:47 | 2020-09-27T20:38:47 | 299,108,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,306 | py | from osgeo import gdal,osr,ogr
import os
import glob
import numpy as np
import pandas as pd
import h5py
from netCDF4 import Dataset
from dateutil import rrule
from datetime import *
from matplotlib import cm
from matplotlib import pyplot as plt
from scipy import signal
def clipbyshp(input_raster,output_ra... | [
"1475598891@qq.com"
] | 1475598891@qq.com |
8c009da5987b3bef9516c1d41d407c1ccd6bc38b | 1b36425f798f484eda964b10a5ad72b37b4da916 | /posthog/version_requirement.py | 0f60d553e762ee5e8c4450613318c424c29fb318 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dorucioclea/posthog | 0408baa2a7ae98e5bea352c516f741ddc17c0a3e | 8848981baf237117fb22d28af0770a0165881423 | refs/heads/master | 2023-01-23T11:01:57.942146 | 2023-01-13T09:03:00 | 2023-01-13T09:03:00 | 241,222,000 | 0 | 0 | MIT | 2020-02-17T22:34:37 | 2020-02-17T22:34:36 | null | UTF-8 | Python | false | false | 2,562 | py | from typing import Tuple
from semantic_version.base import SimpleSpec, Version
from posthog import redis
class ServiceVersionRequirement:
accepted_services = ("clickhouse", "postgresql", "redis")
def __init__(self, service, supported_version):
if service not in self.accepted_services:
s... | [
"noreply@github.com"
] | dorucioclea.noreply@github.com |
3e255fea45c3779e4727fe3eb7188f372c11c3b8 | 9e518397a2cff3778f9dd878cda1ce21fb07625f | /neerc_secna/otbor/B.py | b1483841794d6004d40d33700031c3f32c8fc5c1 | [] | no_license | sabal202/python_examples | 24f8e2f5ff739bdfc0d1289df92340fe9af4df7c | 3149c0a7bbef2468af6b41547285b483634bd54b | refs/heads/master | 2021-09-15T06:06:19.101712 | 2018-05-27T14:56:26 | 2018-05-27T14:56:26 | 106,803,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | import sys, codecs
save_stdin = sys.stdin
save_stdout = sys.stdout
sys.stdin = codecs.open("input.txt", "r", "utf-8")
sys.stdout = codecs.open("output.txt", "w+")
A, B = list(map(int, input().split()))
d, D = list(map(lambda x: int(x) * 2, input().split()))
if (d + D <= A and D <= B and d <= B) or (d + D <= B and D ... | [
"sabal2000@mail.ru"
] | sabal2000@mail.ru |
f6ce172b147c249bb6a9181d1c64a593f1def82a | bc316db4565812f2fd5059eeb4e3ecc35c79d387 | /backend_Django/Famesta/user/migrations/0001_initial.py | 6c512f432134d1c25b649473994c3638e0c03d78 | [] | no_license | koko-js478/Famesta-Django-Angular | 734268dd42a862a54512da6ae78fbe31845ceb1b | fdce83eb2b34cb6d79888bd6b76bcf1087726588 | refs/heads/master | 2022-11-18T13:38:05.741016 | 2020-07-17T11:06:31 | 2020-07-17T11:06:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,440 | py | # Generated by Django 3.0.4 on 2020-04-24 15:04
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permission... | [
"vipin.s0106@gmail.com"
] | vipin.s0106@gmail.com |
cf9436d5386fa786cd32acbb1451fc6d82a3f513 | ba6ac9acfbf969eac1d6f3e06e9ce8174fef1cfd | /geotrek/common/tests.py | 0092ccb32071025ae2a1369709005b0a60f3bbca | [
"BSD-2-Clause"
] | permissive | camillemonchicourt/Geotrek | 550e71917ff577ccd99506432fde55d731c59475 | c33eac7e4479e3aa5b16608c0aa7665c4a72e9a1 | refs/heads/master | 2023-08-03T13:16:51.929524 | 2014-11-28T16:16:21 | 2014-11-28T16:16:21 | 24,842,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,231 | py | import os
import mock
from django.db import connection
from django.test import TestCase
from django.core.urlresolvers import reverse
from django.core.exceptions import ImproperlyConfigured
from django.utils.translation import ugettext_lazy as _
from mapentity.tests import MapEntityTest
from mapentity.factories impor... | [
"mathieu.leplatre@makina-corpus.com"
] | mathieu.leplatre@makina-corpus.com |
d5dbcabfadb8cc38120372091a58c65e23ff7255 | 26e91aead18d0fad6f5ce8fc4adf7d8e05a2f07f | /tests/conftest.py | a94894f8648ab8cbb1d8712e158818e09e0db0b3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | leathe/byceps | 40c1f8a1aab3521fcac45d88eab6364d448d4e67 | cd0c618af63fed1cd7006bb67da46eac0ddbb1c7 | refs/heads/master | 2020-12-02T09:02:51.087511 | 2019-12-14T17:00:22 | 2019-12-14T17:00:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,700 | py | """
:Copyright: 2006-2019 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from contextlib import contextmanager
import pytest
from byceps.database import db as _db
from tests.base import (
CONFIG_FILENAME_TEST_ADMIN,
CONFIG_FILENAME_TEST_PARTY,
create_app,
)
from tests.database... | [
"homework@nwsnet.de"
] | homework@nwsnet.de |
f3f4e7b4d6bb31ad3f298ce7c8d443695db45611 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stdlib/_weakrefset.pyi | da09442e855b1ddffe67d28cdbb7f2b6a731e8ff | [
"Apache-2.0",
"MIT"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 2,428 | pyi | import sys
from _typeshed import Self
from collections.abc import Iterable, Iterator, MutableSet
from typing import Any, Generic, TypeVar, overload
if sys.version_info >= (3, 9):
from types import GenericAlias
__all__ = ["WeakSet"]
_S = TypeVar("_S")
_T = TypeVar("_T")
class WeakSet(MutableSet[_T], Generic[_T])... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
dbd2f762dae4423f27820ac4782babbb9d8f41d8 | 3f85a2b5ebaf040d295bd5d98c49b59e9ea82643 | /extract_descriptors_geodesc.py | ce0cf6c6e966046ab612c5d2dbab7f9653de40fc | [
"Apache-2.0"
] | permissive | vcg-uvic/image-matching-benchmark-baselines | 6b69d0db384c4af90b431f421077aa0f8e1ec04f | 01510c4d2c07cad89727013241a359bb22689a1b | refs/heads/master | 2021-01-04T00:35:04.375020 | 2020-10-01T17:19:54 | 2020-10-01T17:19:54 | 292,169,250 | 19 | 1 | Apache-2.0 | 2020-10-01T17:19:56 | 2020-09-02T03:29:45 | null | UTF-8 | Python | false | false | 5,578 | py | import torch
import numpy as np
import argparse
import h5py
from tqdm import tqdm
import os
import sys
import shutil
import json
from utils import cv2_greyscale, cv2_scale, np_reshape, str2bool, save_h5
import tensorflow as tf
import torchvision.transforms as transforms
sys.path.append(os.path.join('third_party', 'ge... | [
"ducha.aiki@gmail.com"
] | ducha.aiki@gmail.com |
2da1b9389ad3071e3d6bd9941f97d72328c39759 | c91e100abe2e978edf282f112500727da82e0e53 | /uf/application/tiny_bert.py | 368dbb119e752195615b0cbdc5e86963143a4f4b | [
"Apache-2.0"
] | permissive | BestJex/unif | 868e3ed2514130b1193c2a7c813e988ee126bd9d | b53bf8fc85e57544300066a44bf72cbcc9d1ed56 | refs/heads/master | 2023-02-15T10:40:23.054436 | 2021-01-14T01:59:46 | 2021-01-14T01:59:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,144 | py | # coding:=utf-8
# Copyright 2020 Tencent. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | [
"luv_dusk@163.com"
] | luv_dusk@163.com |
e4d84220fec6d1432eb4d623104c8cf64db1db63 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /rk4nyFSXc6vcSWMWH_6.py | 84098467fb04579fe5d0e7c7fced0ba71dfd64d9 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | """
Create a function that returns `True` if each pair of adjacent numbers in a
list shares **at least one digit** and `False` otherwise.
### Examples
shared_digits([33, 53, 6351, 12, 2242, 44]) ➞ True
# 33 and 53 share 3, 53 and 6351 share 3 and 5, etc.
shared_digits([1, 11, 12, 13, 14, 15, 16]) ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a4135b3aedd4b7c041f2620410e29f99faf58cac | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/59/usersdata/260/51107/submittedfiles/testes.py | 007a28c43199c2fc38a6a06062c357e5f4774cee | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
#!/usr/bin/python
anterior=0
maior=1
for i in range(1,4,1):
q=int(input("digite o número de alunos"))
if maior>anterior:
maior=q
dia=i
else:
maior=anterior
anterior=q
dia=dia
print(maior)
print(dia) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
032beed1aaa62756956dc2bbad2019e01ac5cdf5 | dd4551e1670307d0d69ead23ac7f9c5c2c5f2ead | /deployer/hosts/models.py | 83d2d3e38c7c5512842a911b9ba0ff4e67226a9f | [
"MIT"
] | permissive | GaretJax/docker-deployer | 7cccf3e43913fbd2e264c283ce786c4f4c2006f2 | 51632aec0d8496d8a1449c9d349bdcaaac2b7ebd | refs/heads/master | 2021-01-01T19:39:10.300854 | 2013-12-12T22:56:31 | 2013-12-12T22:56:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | from sqlalchemy import Column, Integer, String, Unicode, Enum
from sqlalchemy.ext.declarative import declarative_base
import docker
Base = declarative_base()
class Host(Base):
__tablename__ = 'host'
id = Column(Integer(), primary_key=True)
name = Column(Unicode(120), nullable=False, unique=True)
u... | [
"jonathan.stoppani@wsfcomp.com"
] | jonathan.stoppani@wsfcomp.com |
2410812fdfa3464676ad197639ab969859afeae3 | 5dc7b0a3a167b47449fc42c6aa06afb3e90958a8 | /tabletop/mutations/add_like.py | a2692b0914201eac45a156e9c19c3aec16e27846 | [
"Apache-2.0"
] | permissive | dcramer/tabletop-server | 59ae330075d55ddb371fb75d77e5e35fb376c410 | 062f56d149a29d5ab8605e220c156c1b4fb52d2f | refs/heads/master | 2022-12-09T12:55:22.755395 | 2018-12-23T23:42:14 | 2018-12-23T23:43:06 | 147,248,700 | 8 | 0 | Apache-2.0 | 2022-12-08T02:53:14 | 2018-09-03T20:07:20 | Python | UTF-8 | Python | false | false | 1,535 | py | import graphene
from django.db import IntegrityError, transaction
from tabletop.models import Checkin, Follower, Like, Player
from tabletop.schema import CheckinNode
class AddLike(graphene.Mutation):
class Arguments:
checkin = graphene.UUID(required=True)
ok = graphene.Boolean()
errors = graphen... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
c0517b2255e4a1fefea1928e57671b64921d04d7 | a99f2f8f48d6dc92efe1f2d7f43744f0a29b37af | /scripts/black_check_all_files.py | ba07d34cdd668d3f399b4494e46d02d2d85aec96 | [
"Apache-2.0"
] | permissive | dibir-magomedsaygitov/bezier | ee766d3c96772cfc63387eb879d648b76c378e6a | a3c408d11133aa1b97fb6dd673888cf56f03178e | refs/heads/main | 2023-03-06T12:56:09.286932 | 2021-02-19T06:35:07 | 2021-02-19T06:35:07 | 339,666,352 | 0 | 0 | Apache-2.0 | 2021-02-17T09:09:11 | 2021-02-17T09:09:10 | null | UTF-8 | Python | false | false | 1,247 | py | # 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"daniel.j.hermes@gmail.com"
] | daniel.j.hermes@gmail.com |
56020e4562c60ebb49e476821a488c1339953083 | cca5ceb42b09e567d79fcb46f298757c1ff04447 | /Regex/Regex.py | 34a23181d334168f8319133e9251ec3f9db671fb | [] | no_license | NishantGhanate/PythonScripts | 92933237720e624a0f672729743a98557bea79d6 | 60b92984d21394002c0d3920bc448c698e0402ca | refs/heads/master | 2022-12-13T11:56:14.442286 | 2022-11-18T14:26:33 | 2022-11-18T14:26:33 | 132,910,530 | 25 | 15 | null | 2022-12-09T09:03:58 | 2018-05-10T14:18:33 | Python | UTF-8 | Python | false | false | 200 | py | import re
strs = "how much for the maple syrup? $20.99? That's ricidulous!!!"
print (strs)
nstr = re.sub(r'[?|$|.|!]',r'',strs)
print (nstr)
nestr = re.sub(r'[^a-zA-Z0-9 ]',r'',nstr)
print (nestr)
| [
"nishant7.ng@gmail.com"
] | nishant7.ng@gmail.com |
0ddc86138b7313aad58583072743980f5e566324 | 5a1f77b71892745656ec9a47e58a078a49eb787f | /8_Cloudrip_Mountain/406-Ice_Hunter/ice_hunter.py | 58b5baabd0cff4452a02850a6abe2cfd489b632a | [
"MIT"
] | permissive | ripssr/Code-Combat | 78776e7e67c033d131e699dfeffb72ca09fd798e | fbda1ac0ae4a2e2cbfce21492a2caec8098f1bef | refs/heads/master | 2020-06-11T20:17:59.817187 | 2019-07-21T09:46:04 | 2019-07-21T09:46:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | def isSubstring(word, substring):
rightEdge = len(word) - len(substring) + 1
for i in range(rightEdge):
for j in range(len(substring)):
shiftedIndex = i + j
if word[shiftedIndex] != substring[j]:
break
if j == substring.length - 1:
retu... | [
"katik.hello@gmail.com"
] | katik.hello@gmail.com |
d017c0f4c68283f91d8a47a98eea1325e3cc4141 | 8355bc4e1ad1a863124c1d80d4a00b28ef587b48 | /src/probnum/filtsmooth/particle/__init__.py | 3fdca5b768e006a0859165d52eb29b2daaec3587 | [
"MIT"
] | permissive | probabilistic-numerics/probnum | af62f04253a08da71174e5c1b7d733deb1914eee | af410278783069542610d16b10ba12d2940a05a6 | refs/heads/main | 2023-08-31T05:12:08.877238 | 2023-06-19T20:34:15 | 2023-06-19T20:34:15 | 218,856,084 | 384 | 56 | MIT | 2023-09-10T18:52:24 | 2019-10-31T20:29:11 | Python | UTF-8 | Python | false | false | 1,055 | py | """Particle filtering and smoothing."""
from ._importance_distributions import (
BootstrapImportanceDistribution,
ImportanceDistribution,
LinearizationImportanceDistribution,
)
from ._particle_filter import ParticleFilter, effective_number_of_events
from ._particle_filter_posterior import ParticleFilterPos... | [
"noreply@github.com"
] | probabilistic-numerics.noreply@github.com |
41e88f29211ba316030073872fbe6ea667ddd084 | bd72c02af0bbd8e3fc0d0b131e3fb9a2aaa93e75 | /Array/largest_number_at_least_twice_of_thers.py | 794293dfb4e072fa3e632cfb4bff9e6e6a02f634 | [] | no_license | harvi7/Leetcode-Problems-Python | d3a5e8898aceb11abc4cae12e1da50061c1d352c | 73adc00f6853e821592c68f5dddf0a823cce5d87 | refs/heads/master | 2023-05-11T09:03:03.181590 | 2023-04-29T22:03:41 | 2023-04-29T22:03:41 | 222,657,838 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | class Solution:
def dominantIndex(self, nums: List[int]) -> int:
m = max(nums)
if all(m >= 2*x for x in nums if x != m):
return nums.index(m)
return -1 | [
"iamharshvirani7@gmail.com"
] | iamharshvirani7@gmail.com |
73fb25ca4e2010ce6540f4549878673898f8e503 | fe5cfc4e1d6dd7bdff2421a446f1caf59080ba8b | /Formatieve opdracht 2a.py | e74b429f8fde0da1c15ae6e10331d19599f9e57b | [] | no_license | wail0152/Groeps-project-SP | ac581bdd6966744cb1f308c78473e11309d3a9ad | 2a0c6f0c416d537cfd3c70a2792e11bc11b644aa | refs/heads/master | 2021-01-08T02:18:11.239557 | 2020-03-20T15:17:22 | 2020-03-20T15:17:22 | 241,882,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | from pymongo import MongoClient
client = MongoClient('localhost', 27017)
db = client["huwebshop"]
collection = db["products"]
# opdracht 1
print(collection.find_one())
# opdracht 2
for product in collection.find():
if product["name"][0] == "R":
print(product)
break
# opdracht 3
total = 0
count =... | [
"abou.w@hotmail.com"
] | abou.w@hotmail.com |
09c6c4c342509a39e0e119c284668e7f80173dc9 | 81b424a71b6c1f812172706940ffdbefa055cb1e | /src/posts/forms.py | 53f8314b23d1e5a86bcf28ecc71f5cabaed00e6a | [] | no_license | SheraramPrajapat1998/social | 5297b0b9330ce6c9e3ca829b80736c38a5b10e8d | 800c1069bd34ec29d8d38f5d6541195f4a1bcdba | refs/heads/main | 2023-01-02T09:21:22.701531 | 2020-10-26T11:21:10 | 2020-10-26T11:21:10 | 306,550,200 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | from django import forms
from .models import Post, Comment
class PostModelForm(forms.ModelForm):
content = forms.CharField(widget=forms.Textarea(attrs={'rows':3}))
class Meta:
model = Post
fields = ('content', 'image', 'draft')
class CommentModelForm(forms.ModelForm):
body = forms.CharField(label='', ... | [
"sheraramprajapat1998@gmail.com"
] | sheraramprajapat1998@gmail.com |
173677f88950da617a43ee3596cea41b8221987a | c22130d238d1ba666360512690aa34a081265a56 | /tests/conftest.py | f9e575a9bb12c8dac2b370b7ae94820b00db8687 | [
"Apache-2.0"
] | permissive | jre21/pip-api | 18a617df1b1e7ea47cab6189e03e2e0a8387bcbf | 6824afa634484eca258b2f757a35b7df8ebf56d7 | refs/heads/master | 2020-05-18T22:05:50.449003 | 2019-04-18T21:48:52 | 2019-04-18T21:48:52 | 184,681,684 | 0 | 0 | null | 2019-05-03T01:17:58 | 2019-05-03T01:17:57 | null | UTF-8 | Python | false | false | 3,728 | py | import os
import shutil
import subprocess
import pytest
import pretend
import virtualenv
from packaging.version import Version
import pip_api
@pytest.yield_fixture
def some_distribution(data):
return pretend.stub(
name="dummyproject",
version=Version('0.0.1'),
location=None,
fil... | [
"di@users.noreply.github.com"
] | di@users.noreply.github.com |
89f8bfaca42042451a02a4bc0286675c3fa0c88b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_stepsister.py | 785d4bedada0a17e1be885ba2ab3060c2fa72908 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py |
#calss header
class _STEPSISTER():
def __init__(self,):
self.name = "STEPSISTER"
self.definitions = [u"not your parents' daughter, but the daughter of a person one of your parents has married"]
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def ... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
20cb73a5410ddff3ce09ea988d5106fda6fa9256 | ca3a49676cdf1016b2d729f0432b451d35b7a281 | /alignment/find_bug/find_zero.py | cfbc24c9c73c08a0f7bf1a8a92db8e733c169afd | [
"MIT"
] | permissive | SquareandCompass/code-align-evals-data | 3bb71b605316f56bb27466f23706a329f3fb4938 | 97446d992c3785d6605f1500b2c9b95d042e7b9c | refs/heads/main | 2023-06-19T12:47:56.277363 | 2021-07-21T00:22:56 | 2021-07-21T00:22:56 | 640,147,842 | 0 | 1 | null | 2023-05-13T06:22:30 | 2023-05-13T06:22:29 | null | UTF-8 | Python | false | false | 1,819 | py | import math
def poly(xs: list, x: float):
"""
Evaluates polynomial with coefficients xs at point x.
return xs[0] + xs[1] * x + xs[1] * x^2 + .... xs[n] * x^n
"""
return sum([coeff * math.pow(x, i) for i, coeff in enumerate(xs)])
def find_zero(xs: list):
""" xs are coefficients of a polynomia... | [
"barnes@openai.com"
] | barnes@openai.com |
57cbf879b779e435d92573ec4c7ed7ff90a1352e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04031/s250903075.py | bd3904ccba81d40d8b99f6b4a120b9f518756e75 | [] | 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 | 195 | py | import copy
N = int(input())
a = list(map(int,input().split()))
res = 1e+9
for i in range(min(a),max(a)+1):
tmp = copy.copy(a)
res = min(res,sum(map(lambda x:(x-i)**2,tmp)))
print(res)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4ac45c70b73e1044d9eb87df9ed9491b76fdb5a2 | df94279aa2e1d0f1f87717382607adf59ec338e5 | /tests/test_checks.py | 3db8163e89a15105fa4de640d9d217a9fc7ce642 | [
"MIT"
] | permissive | kshitizlondon/django-rest-registration | 54ce439a95cecab2e198df22ee9904c823b2c943 | 3ef0f76852339b2bb28b046e75d155b265e98649 | refs/heads/master | 2021-05-30T13:19:06.757902 | 2016-02-20T01:38:48 | 2016-02-20T01:38:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | from django.apps import apps
from django.test import TestCase
from django.test.utils import override_settings
from rest_registration.checks import __ALL_CHECKS__
def simulate_checks():
app_configs = apps.app_configs
errors = []
for check in __ALL_CHECKS__:
errors.extend(check(app_configs))
re... | [
"apragacz@o2.pl"
] | apragacz@o2.pl |
3df2238151ac5c4e71e2182dab170a980f32853c | 2b832e5d3d88b25998f44d21fdb3fa40c2072a9e | /init/__init__.py | ec7c2c8411e9208be5b3876ba422c410529ec258 | [
"MIT"
] | permissive | lijunzhe123/Automation | 387536505e0b77fd9cc1d7dc9d017dc1268925eb | 18122ce2c5debe485fab7dac5f8007f4b7b2d51f | refs/heads/main | 2023-06-17T10:04:51.296922 | 2021-07-10T17:58:56 | 2021-07-10T17:58:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | #!/usr/bin/env python3
# -*- encoding: utf-8 -*-
'''
@author: yuejl
@application:
@contact: lewyuejian@163.com
@file: __init__.py.py
@time: 2021/7/1 0001 11:21
@desc:
''' | [
"lewyuejian@163.com"
] | lewyuejian@163.com |
591431203c8e4436f2d0abecbc73f02535107f29 | 181af10fcf40b824fe92d3b8f72fd15d6d1490c2 | /Biweekly Contests/51-100/biweek 81/2316. Count Unreachable Pairs of Nodes in an Undirected Graph/Count Unreachable Pairs of Nodes in an Undirected Graph.py | bfd038fff7908d9bd18f9a7332ddca90dd47a17b | [] | no_license | wangyendt/LeetCode | 402c59a0b7b7f5b3a672231ea5dad8056ade36af | 4a3ba15284c45b2d8bf38306c8c8526ae174615c | refs/heads/master | 2023-08-10T06:27:54.995152 | 2023-08-10T02:22:27 | 2023-08-10T02:22:27 | 176,651,399 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,516 | py | #!/usr/bin/env python
# -*- coding:utf-8 _*-
"""
@author: wangye(Wayne)
@license: Apache Licence
@file: Count Unreachable Pairs of Nodes in an Undirected Graph.py
@time: 2022/06/25
@contact: wang121ye@hotmail.com
@site:
@software: PyCharm
# code is far away from bugs.
"""
from typing import *
import collecti... | [
"905317742@qq.com"
] | 905317742@qq.com |
f9041f73bbd606275af0d91489a6b957b3a6c766 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_tenures.py | fb887b226bc8618187ae5b9a4b258c01cd9015aa | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py |
#calss header
class _TENURES():
def __init__(self,):
self.name = "TENURES"
self.definitions = tenure
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['tenure']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8f962f8206e5bdccf6696bb7996ff5b51df6ad4a | db3bdaa3a47d2d55077335a66c5f4abbc7a00c46 | /mmseg/models/decode_heads/sep_aspp_head.py | 71881890bd5fd59d79063f05c57f5a1deb18f5cd | [
"Apache-2.0"
] | permissive | ZidanMusk/mmsegmentation | ef0316ab752e6818d306c23190402be3a6d1f3b4 | a2738fd9befee1a30aaecd60ec997394e439a542 | refs/heads/master | 2022-12-16T07:38:01.446100 | 2020-09-22T06:56:13 | 2020-09-22T06:56:13 | 297,679,279 | 1 | 0 | Apache-2.0 | 2020-09-22T14:43:53 | 2020-09-22T14:43:52 | null | UTF-8 | Python | false | false | 3,487 | py | import torch
import torch.nn as nn
from mmcv.cnn import ConvModule
from mmseg.ops import DepthwiseSeparableConvModule, resize
from ..builder import HEADS
from .aspp_head import ASPPHead, ASPPModule
class DepthwiseSeparableASPPModule(ASPPModule):
"""Atrous Spatial Pyramid Pooling (ASPP) Module with depthwise sepa... | [
"xvjiarui0826@gmail.com"
] | xvjiarui0826@gmail.com |
0b897a87c4a4e0d22925c747937978849ff1003a | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /Sourcem8/pirates/npc/DistributedBossSkeleton.py | d44c27baae259995fbc08bd4e9e32a7e6dc1e7d2 | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,463 | py | from pandac.PandaModules import Vec4
from direct.directnotify import DirectNotifyGlobal
from pirates.npc.DistributedNPCSkeleton import DistributedNPCSkeleton
from pirates.pirate import AvatarTypes
from pirates.pirate.AvatarType import AvatarType
from pirates.npc.Boss import Boss
class DistributedBossSkeleton(Distribut... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
350ef7b96542adba818035827a6af008b844667b | 8bbeb7b5721a9dbf40caa47a96e6961ceabb0128 | /python/552.Student Attendance Record II(学生出勤记录 II).py | 68d48fe97cf00da57671f8a114e3c6ccd4b0c288 | [
"MIT"
] | permissive | lishulongVI/leetcode | bb5b75642f69dfaec0c2ee3e06369c715125b1ba | 6731e128be0fd3c0bdfe885c1a409ac54b929597 | refs/heads/master | 2020-03-23T22:17:40.335970 | 2018-07-23T14:46:06 | 2018-07-23T14:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,290 | py | """
<p>Given a positive integer <b>n</b>, return the number of all possible attendance records with length n, which will be regarded as rewardable. The answer may be very large, return it after mod 10<sup>9</sup> + 7.</p>
<p>A student attendance record is a string that only contains the following three characters:</p>... | [
"lishulong@wecash.net"
] | lishulong@wecash.net |
186415bd46ca8420d00a0aacc730035e12e8ce8d | 8839bd1f2e35726b6c8066985690fa2fa86b09a6 | /3.pyWiFi-ESP32/1.基础实验/3.外部中断/main.py | 9c1d42d2b004cdca0e1196e1b3548f1c7a342666 | [
"MIT"
] | permissive | elektrik-elektronik-muhendisligi/MicroPython-Examples-1 | a9532b06aba470f7f26f841929f4fb145549f70b | f7b08e95ff73e3417af21918c9c6bcf2f83281c6 | refs/heads/master | 2021-05-25T22:58:36.207098 | 2020-04-01T09:50:53 | 2020-04-01T09:50:53 | 253,956,073 | 1 | 0 | null | 2020-04-08T01:39:46 | 2020-04-08T01:39:45 | null | UTF-8 | Python | false | false | 564 | py | '''
实验名称:外部中断
版本:v1.0
日期:2019.8
作者:01Studio
说明:通过按键改变LED的亮灭状态(外部中断方式)
'''
from machine import Pin
import time
LED=Pin(2,Pin.OUT) #构建LED对象,开始熄灭
KEY=Pin(0,Pin.IN,Pin.PULL_UP) #构建KEY对象
state=0 #LED引脚状态
#LED状态翻转函数
def fun(KEY):
global state
time.sleep_ms(10) #消除抖动
if KEY.value()==0: #确认按键被按下
state =... | [
"237827161@qq.com"
] | 237827161@qq.com |
3012477f1ca7fff4bcdccebbb3b2f1d13a1c2a2f | b72c37e3ccda507b231649cddd5c7845c6c34ba1 | /PythonBasic/Day10/function_as_args2.py | 44001eefb340bda50ed40e27c1db4166a3779e32 | [] | no_license | ljrdemail/AID1810 | 51c61c255b5c5efc1dc642b46691a614daedd85e | b417bd831bc1550ab953ce7ca23f54e34b8b2692 | refs/heads/master | 2020-04-24T09:45:14.781612 | 2019-02-21T11:26:49 | 2019-02-21T11:26:49 | 171,866,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | def goodbye(L):
for x in L:
print("再见:", x)
def hello(L):
for x in L:
print("你好:", x)
def fx(fn, L): #把fn的地址和列表传入fx函数
fn(L)
fx(hello, ["Tom", "Jerry", "Spike"])
fx(goodbye, ["上海", "北京", "深圳"])
| [
"root"
] | root |
04bfded95f84d96c0feaca84c444f9bc97c4ed3a | d86add94a5848a1901c62235f969e8d17d9e1ad6 | /app/lib/base/decorators.py | 1a7076aac5058fcc2bbc6b7dc9c99ee181511f40 | [
"MIT"
] | permissive | Excloudx6/SnitchDNS | 3a948623892d1ffbd2118ac40df8acaad86e6578 | 8f76a76618a3609ec35c5be678b87e90254c8ed2 | refs/heads/master | 2023-07-26T04:48:38.837761 | 2021-09-15T08:52:39 | 2021-09-15T08:52:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | from functools import wraps
from flask_login import current_user
from flask import redirect, url_for, flash
from app.lib.base.provider import Provider
def admin_required(f):
@wraps(f)
def wrapped_view(**kwargs):
if not current_user.admin:
flash('Access Denied', 'error')
return ... | [
"p@vel.gr"
] | p@vel.gr |
b4d1c962f462d9cc40b3d0cc9ec0404af28563a9 | dac498d66ec02ad9b52c4c3b074b3bd68d4aee00 | /joke/loginmanage.py | 03a1eb4f16b6ff60ac65b5f0db38735ca588dd4e | [] | no_license | wangjian2254/haha | 3f95c22166af0495098783a40cd1a5d5326cc6e6 | d856cf43bbb12d49334078432a74cbe1ef47cf98 | refs/heads/master | 2016-09-05T20:41:38.188010 | 2014-03-22T11:22:24 | 2014-03-22T11:22:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,468 | py | #coding=utf-8
#author:u'王健'
#Date: 13-3-5
#Time: 下午10:15
import uuid
from google.appengine.api import memcache
from models.model import User, UserJoke
__author__ = u'王健'
def setLogin(web,username):
uid=str(uuid.uuid4())
memcache.set('webusername'+uid,username,36000)
setCookie='webusername='+uid+';'
... | [
"wangjian2254@gmail.com"
] | wangjian2254@gmail.com |
6bb1f5033d2d517256fda85186b3a4fc5bf68207 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5708284669460480_0/Python/mediocrates/gcj_2015-1c-2.py | 1597de67f4d6a70b0464fc4c0f21cd8646e2efde | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | with open('B-small-attempt0 (1).in', 'r+b') as f:
T = int(f.readline().strip())
for i in range(1, T+1):
K, L, S = map(int, f.readline().strip().split())
keyboard = f.readline().strip()
target = f.readline().strip()
isPossible = all([c in keyboard for c in target])
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
e7e66df3e2d78baff5e392317914cea6f33e6618 | 30a4b8b4c5212f8915f67900e46784645753bf4e | /tests/test_lists.py | 72127d4dcfe993099a529a218a5a8823f9b95244 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | isabella232/omb-pdf | dff06168295f5527d95f0090084645e2e15a41e7 | 5a35757b848097525a920d53789c7ee5c10bc87e | refs/heads/master | 2021-08-30T22:02:32.610174 | 2017-12-19T15:37:43 | 2017-12-19T15:37:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,203 | py | import pytest
from ombpdf.document import OMBListItem, OMBListItemMarker
from ombpdf.lists import annotate_lists
from . import bbox
def test_annotate_lists_works(m_16_19_doc):
lists = annotate_lists(m_16_19_doc)
assert str(lists[1][1][0]).startswith('1. Transitioning to')
assert lists[1][1][0].annotati... | [
"varmaa@gmail.com"
] | varmaa@gmail.com |
7f10811d561a8b3d8b400aa566c595d11bfa2ea3 | dc49f1f89faee6ffe601f4736e2b4cf329533413 | /ihome/ihome/apps/homes/migrations/0003_auto_20191018_1622.py | fda2094bfb999259c62f661e58cd348ce0325dee | [
"MIT"
] | permissive | woobrain/ihome | 416d8e50feff48f4a60a7a3d473f14aea4cb0b0d | fbc7230fe6d445b2a258c49c48297258ae702bb3 | refs/heads/master | 2022-12-10T07:39:55.743400 | 2019-11-16T00:46:23 | 2019-11-16T00:46:23 | 222,025,889 | 0 | 0 | MIT | 2022-12-08T05:33:31 | 2019-11-16T00:42:25 | JavaScript | UTF-8 | Python | false | false | 679 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2019-10-18 08:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('homes', '0002_auto_20191018_0818'),
]
operations = [
migrations.AlterField... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
5cadbfa4c5708cf50e83d0555f318b11263bee7c | 77e64a1f810bb860db97e961f168cc0ddb223f62 | /pyEX/premium/valuengine/__init__.py | 22c09f54002b45789877f03c8e866888c3d88457 | [
"Apache-2.0"
] | permissive | cjwang/pyEX | 4ae4b86ddac0dda904925c553fa0b9ff81b68032 | 1b5f40f80110afaa4809ea48fac067033c7bdf89 | refs/heads/main | 2022-12-25T07:11:48.252227 | 2020-10-08T23:34:46 | 2020-10-08T23:34:46 | 303,057,426 | 1 | 0 | Apache-2.0 | 2020-10-11T06:30:53 | 2020-10-11T06:30:53 | null | UTF-8 | Python | false | false | 986 | py | # -*- coding: utf-8 -*-
from ...common import _expire, _getJson, _strOrDate, PyEXception, _EST
@_expire(hour=10, tz=_EST)
def valuEngineStockResearchReport(symbol='', date=None, token='', version=''):
'''ValuEngine provides research on over 5,000 stocks with stock valuations, Buy/Hold/Sell recommendations, and fo... | [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
e45d99f58316dd2351f525153acd26a7e81eb9fe | f99f97415a8724725c06ac59b4f666da2c63ec8a | /xtobjdis/xtcmjoin.py | 44df2222bb932c72dbe2cff964161a9629caf857 | [] | no_license | 0x90/esp-arsenal | 46687deb10013ed3e23ceae8cc3d034d8961fb0f | 532981ed3db9c6bc4ebf31e8f7648fcc19161007 | refs/heads/master | 2021-01-19T05:33:28.508899 | 2018-03-25T03:05:57 | 2018-03-25T03:05:57 | 64,477,601 | 38 | 19 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | #!/usr/bin/python3
# This is just a very simple script to join multiple callmaps (as produced by
# xtobjdis' --callmap option) into a single callmap file.
#
# Usage: xtcmjoin FILE [FILE ...] > OUTFILE
import sys
import json
result = []
for filename in sys.argv[1:]:
with open(filename, 'r') as f:
mapdata ... | [
"oleg.kupreev@gmail.com"
] | oleg.kupreev@gmail.com |
53f3e7f478137c6f5cb03fb22558b4516505538f | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D03B/PAYMULD03BUN.py | 91e305f8ec40f20fedc33f39c8f07c2935f1d7e3 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 4,550 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD03BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 1, MAX: 1},
{ID: 'BUS', MIN: 0, MAX: 1},
{ID: 'RFF'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
fffe146a9e2ae5ae2283c75d729f19fd877f14c6 | 9bc228372e586a1f90bb0685c43e744be9638ecd | /17_채희찬/session6/urls.py | ce559f08de38289a2e3964961e0b272ef33101aa | [
"MIT"
] | permissive | LikeLionSCH/9th_ASSIGNMENT | 3e58862a76e3232aed7e19e8939da23330ff2e22 | c211995ad12f404833ffec7fd80e1229b82a3bfa | refs/heads/master | 2023-07-03T10:27:11.843177 | 2021-08-02T14:52:02 | 2021-08-02T14:52:02 | 379,633,279 | 7 | 18 | MIT | 2021-08-02T14:52:03 | 2021-06-23T14:36:59 | Python | UTF-8 | Python | false | false | 1,055 | py | """Wordcount URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"eqholic1125@gmail.com"
] | eqholic1125@gmail.com |
ee4c7018e5253c22f4e97f666ec9a0b775ef5fd2 | 2ffd079c34cb07c738f7e5f703764fed68f2c8c0 | /Solutions/Two_Sum.py | 025439a768f1e31efc4d638706fcb4b6a55591ac | [] | no_license | WuIFan/LeetCode | bc96355022c875bdffb39c89a2088457b97d30ab | 689a100ada757bc20334d5f0084587af3039ca7b | refs/heads/master | 2022-05-24T07:13:01.023733 | 2022-04-03T15:26:23 | 2022-04-03T15:26:23 | 202,471,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | from typing import List
class Solution:
def twoSum(self, nums: List[int], target: int) -> List[int]:
dist = {}
for i in range(len(nums)):
if target-nums[i] in dist:
return [dist[target-nums[i]],i]
else:
dist[nums[i]] = i
nums = [3,2,4]
target =... | [
"denny91002@gmail.com"
] | denny91002@gmail.com |
a3b11172d56239193079f99126e5cc6c17beb1e5 | ffef4697f09fb321a04f2b3aad98b688f4669fb5 | /tests/ut/python/parallel/test_auto_parallel_parameter_cast.py | 67b8f98fafae2e9e31cdf5acd09a7555abb621ec | [
"Apache-2.0",
"AGPL-3.0-only",
"BSD-3-Clause-Open-MPI",
"MPL-1.1",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"MPL-2.0",
"LGPL-2.1-only",
"GPL-2.0-only",
"Libpng",
"BSL-1.0",
"MIT",
"MPL-2.0-no-copyleft-exception",
"IJG",
"Z... | permissive | Ewenwan/mindspore | 02a0f1fd660fa5fec819024f6feffe300af38c9c | 4575fc3ae8e967252d679542719b66e49eaee42b | refs/heads/master | 2021-05-19T03:38:27.923178 | 2020-03-31T05:49:10 | 2020-03-31T05:49:10 | 251,512,047 | 1 | 0 | Apache-2.0 | 2020-03-31T05:48:21 | 2020-03-31T05:48:20 | null | UTF-8 | Python | false | false | 3,339 | py | # Copyright 2019 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"leon.wanghui@huawei.com"
] | leon.wanghui@huawei.com |
27db6175564c85ec104ba403cd5ea540c3cab21a | b77eda8a67f78293f3f0f978609adf45575ceb5f | /array/Ratndeep/one diff in adj of number.py | f4a2112387b1631979700d1e7501fac298609643 | [
"MIT"
] | permissive | Nagendracse1/Competitive-Programming | 8b02c7688968f4930c913dc410087a1fa59bcaa8 | 325e151b9259dbc31d331c8932def42e3ab09913 | refs/heads/master | 2023-02-02T23:08:55.036635 | 2020-12-18T18:22:24 | 2020-12-18T18:22:24 | 313,898,641 | 0 | 0 | MIT | 2020-12-18T18:22:25 | 2020-11-18T10:25:51 | Python | UTF-8 | Python | false | false | 437 | py | n = int(input())
if n<=10:
for i in range(1,n):
print(i,end=" ")
print()
else:
for i in range(1,11):
print(i,end=" ")
for i in range(11,n):
cur_num = str(i)
x=0
flag=0
while x<len(cur_num)-1:
if abs(int(cur_num[x])-int(cur_num[x+1]))!=1:
... | [
"ratndeepk07@gmail.com"
] | ratndeepk07@gmail.com |
da7638e2212c3a2b53231e334473866942779e5c | 4b81a7e86fe4e05b2486898bd55d52639b698626 | /backend/owldock/asgi.py | d3b8e258718ac7b10a44700bafde268d579a87ff | [] | no_license | dandavison/_owldock | 94c910b172fa495bb769268c196c5131c7e02127 | 196e849cb70de44523132e67659f8344f8d5cc0a | refs/heads/main | 2023-08-18T19:54:42.782049 | 2021-08-01T21:42:56 | 2021-08-01T22:02:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for owldock project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"dandavison7@gmail.com"
] | dandavison7@gmail.com |
e5c4ea9d17294066863dc8214c33a66ee2e8b975 | 2bcf18252fa9144ece3e824834ac0e117ad0bdf3 | /zpt/trunk/site-packages/zpt/_pytz/zoneinfo/Africa/Niamey.py | 2178ea142d80e6415e700bac8425e15173ef0498 | [
"MIT",
"ZPL-2.1"
] | permissive | chadwhitacre/public | 32f65ba8e35d38c69ed4d0edd333283a239c5e1d | 0c67fd7ec8bce1d8c56c7ff3506f31a99362b502 | refs/heads/master | 2021-05-10T14:32:03.016683 | 2010-05-13T18:24:20 | 2010-05-13T18:24:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | '''tzinfo timezone information for Africa/Niamey.'''
from zpt._pytz.tzinfo import DstTzInfo
from zpt._pytz.tzinfo import memorized_datetime as d
from zpt._pytz.tzinfo import memorized_ttinfo as i
class Niamey(DstTzInfo):
'''Africa/Niamey timezone definition. See datetime.tzinfo for details'''
zone = 'Africa/N... | [
"chad@zetaweb.com"
] | chad@zetaweb.com |
09d041280896c1ee198a80238f9ad95a2df9f978 | aa7ae21225d64a4e37eb5a012aa6ee97d87cba83 | /util/dos_cmd.py | e2bbd9cbbfb484102bee10d18b7fd03f90d3b89b | [] | no_license | turkey66/appium_test | 68c912cb75ab0939c958b742da7de71057bd2702 | 7bd8750ebbda32b7b8a9d71baa5f58d1c8731000 | refs/heads/master | 2020-03-31T04:45:22.662529 | 2018-10-07T08:20:42 | 2018-10-07T08:20:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | # -*- coding: utf-8 -*-
import os
#print(os.system('adb devices'))
#print(os.popen('adb devices').readlines())
class DosCmd:
def excute_cmd_result(self, command):
result = os.popen(command).readlines()
result_list = [_.strip() for _ in result if _ != '\n']
return result_list
def excute_... | [
"eric@example.com"
] | eric@example.com |
7bc2f1e7d3cec2211fa40741253ce2bb2a920932 | 8076124f4087781e0513dbe09c0f43dc6a861ab0 | /src/sentry/api/endpoints/organization_event_details.py | 2cc0b8ef5760f3904c9ab431b2383f87eb5624be | [
"BSD-2-Clause"
] | permissive | sharmapacific/sentry | 75e3356f87cb5a1e812e0974b081fd47852dfe33 | fceabe7cb84de587fe05b2c36edc013058e7e55a | refs/heads/master | 2020-08-19T00:13:48.748983 | 2019-10-17T17:09:06 | 2019-10-17T17:09:06 | 215,851,537 | 1 | 0 | BSD-3-Clause | 2019-10-17T17:43:49 | 2019-10-17T17:43:49 | null | UTF-8 | Python | false | false | 4,005 | py | from __future__ import absolute_import
from rest_framework.response import Response
from sentry.api.bases import OrganizationEventsEndpointBase, OrganizationEventsError, NoProjects
from sentry.api.event_search import get_reference_event_conditions
from sentry import eventstore, features
from sentry.models.project imp... | [
"noreply@github.com"
] | sharmapacific.noreply@github.com |
0e2e77f0904ddd2648285841826ec0d31e236762 | 6b51a2e7fab5021364023bad6ef4a26116dcc260 | /get_allelic_number_based_on_SNP2.0.py | 09ee88347b0db45aaa5f1aea9674e249c85de93d | [
"MIT"
] | permissive | dikingchen/bioscript | 4f43f377bc2e9eb7d3bb515a8dec9a1df23fb98a | 86d35c571b5805aa89a2c6aa689b8eac39e2cfb0 | refs/heads/master | 2020-03-27T14:59:41.675964 | 2018-09-03T02:39:42 | 2018-09-03T02:39:42 | 146,691,965 | 0 | 0 | MIT | 2018-09-03T01:31:44 | 2018-08-30T03:41:18 | null | UTF-8 | Python | false | false | 7,527 | py | #!/usr/bin/env python3.4
'''
#-------------------------------------------------------------------------------
#Author:WangYu (wang_yu@nwsuaf.edu.cn)
#Time: 2016/3/10
#Version: 2.0
#useage: get allelic numbers based on SNP from sam file
#-------------------------------------------------------------------------------
'... | [
"you@example.com"
] | you@example.com |
da85b5a7defc853de8ed8df3a737b37d94c89891 | 60b48df762a515a734cfbedd7ca101df43f04824 | /rllib/models/utils.py | c1d7a8c440fdf58315d4fe72d00694f962f57cab | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | LuBingtan/ray | a02b13c4dceab2b0d54870fd3abae5c11bae916e | 298742d7241681ee1f307ec0dd3cd7e9713a3c7d | refs/heads/master | 2023-03-05T16:32:35.596725 | 2022-06-05T23:21:53 | 2022-06-05T23:21:53 | 223,334,544 | 0 | 1 | Apache-2.0 | 2023-03-04T08:56:53 | 2019-11-22T06:01:51 | Python | UTF-8 | Python | false | false | 6,220 | py | from typing import Optional
from ray.rllib.utils.annotations import DeveloperAPI
from ray.rllib.utils.framework import try_import_jax, try_import_tf, try_import_torch
@DeveloperAPI
def get_activation_fn(name: Optional[str] = None, framework: str = "tf"):
"""Returns a framework specific activation function, given... | [
"noreply@github.com"
] | LuBingtan.noreply@github.com |
ba28c5109dcaa0ec2044193eb17e562af519cbb8 | 48c6aa99481961c607b415d6f6bd5318e91e9ab6 | /backend/migrations/0001_initial.py | cad6cdb78903e47d836135c73a029f71eea274f5 | [] | no_license | shedolkar12/viandManagement | 56ba107c9971a42960825392d55f11ae03b72efa | 3b20ba416e91610b421b16233aa7131d00e40c38 | refs/heads/master | 2022-12-15T20:07:11.427862 | 2020-09-24T11:27:40 | 2020-09-24T11:27:40 | 298,006,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,741 | py | # Generated by Django 2.2 on 2020-09-23 21:26
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissions'),
]
operation... | [
"harshal95iitk@gmail.com"
] | harshal95iitk@gmail.com |
6553745f4461a17292f48f1043ea00178287eb2a | 1ed27591e9eb95c356d53307160b515b60a824d1 | /baidu2.py | d1d4d4cf9651f130fa515b2d31992ee6a9bdb3d1 | [] | no_license | tianjingang/python | a6003729e7c8676ddcc90014474a369cd0e28cea | 62aa54c441be55864b91eb3896ec14ed616c9052 | refs/heads/master | 2020-07-05T11:01:58.558083 | 2017-01-17T06:00:06 | 2017-01-17T06:00:06 | 74,121,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | #!C:\Python27\python.exe
# -*- coding: UTF-8 -*-
print
#引入模块
import urllib
import urllib2
import re
import MySQLdb
#定义类
class News:
#init
def __init__(self):
self.url="http://news.baidu.com/"
#getpage
def getpage(self):
url=self.url
request=urllib2.Request(url)
resp... | [
"email@example.com"
] | email@example.com |
f4bf5cb1cf2c7f122cb8c01816a9def27baf8a74 | a39d0d1f0e257d0fff5de58e3959906dafb45347 | /Lutts/Processes/fork_count.py | 25d96ae9bddd34a2a8aad5e8e733978b46f610cd | [] | no_license | Twishar/Python | 998d7b304070b621ca7cdec548156ca7750ef38e | 1d1afa79df1aae7b48ac690d9b930708767b6d41 | refs/heads/master | 2021-09-23T14:18:36.195494 | 2018-09-24T12:33:36 | 2018-09-24T12:33:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | import os, time
def counter(count): #вызывается в новом процессе
for i in range(count):
time.sleep(1) #имитировать работу
print('[%s]=> %s' % (os.getpid(), i))
for i in range(5):
pid = os.fork()
if pid !=0: ... | [
"stognienkovv@gmail.com"
] | stognienkovv@gmail.com |
bbb33c0727b60e87c3658ebc6ce0886d4a58b524 | 7911da973079f325a515cd2ee66f7590a9f32e48 | /guvi/python/play135.py | 99c2b4ac3c9f564c1529d71aadbd44115722da6d | [] | no_license | Ponkiruthika112/Guvi | 5d2ff3dcf55d6c52c0f09a1e577d8b11632c7a92 | 319e5b4dab5654fabc25ef15c1d528f76d833c15 | refs/heads/master | 2020-04-21T06:05:03.581658 | 2018-08-02T05:53:48 | 2018-08-02T05:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | n=int(input())
st=input().strip().split(" ")
a=[]
for x in range(n):
a.append(int(st[x]))
k=(n//2)
for x in range(k):
for y in range(x+1,k):
if a[x]>a[y]:
t=a[x]
a[x]=a[y]
a[y]=t
for x in range(k,n):
for y in range(x+1,n):
if a[x]<a[y]:
t=a[x]
... | [
"noreply@github.com"
] | Ponkiruthika112.noreply@github.com |
da3d984bfab997a7b36288abf5ba5f1900bfe93e | 377ec156e459f70ad32e625de2dde2672736dd06 | /Exercises/Cookbook/Class/repr.py | e266988a291aa5a71f7afef458477051e37ff740 | [] | no_license | tsonglew/learn-python | b657cc34d3e27993ec0dcce152796bea43224d4f | edbf0b5d24bf0e2d9ad7aa5811c7d3aa0a66b57c | refs/heads/master | 2021-06-13T13:46:35.199562 | 2017-04-14T16:57:38 | 2017-04-14T16:57:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | #-*- coding: utf-8 -*-
class Pair:
def __init__(self, x, y):
self.x = x
self.y = y
def __repr__(self):
# 0指的是self本身
return 'Pair({0.x!r}, {0.y!r})'.format(self)
def __str__(self):
return '({0.x!s}, {0.y!s})'.format(self)
# !r 格式化代码指明输出使用__repr__()代替默认的__str__()
#... | [
"417879751@qq.com"
] | 417879751@qq.com |
559998185cce7b9fd7c63d970b8c66a55d1ce247 | 1ffe032eb68b63a50cdde6000c210f457d62b96d | /h2o-py/tests/testdir_algos/gbm/pyunit_cv_carsGBM.py | 0c097ec5dbf776045d69928870408bb9f7c81548 | [
"Apache-2.0"
] | permissive | moidin/h2o-3 | 979e287ef9ea9a7dc4d7167e03687aede81d91d5 | 8b5e36d326042b8c42bfe7503bd4d7eaf25c3ee3 | refs/heads/master | 2021-01-21T03:20:43.617128 | 2015-07-28T21:03:10 | 2015-07-28T21:03:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,100 | py | import sys
sys.path.insert(1, "../../../")
import h2o
import random
def cv_carsGBM(ip,port):
# read in the dataset and construct training set (and validation set)
cars = h2o.import_frame(path=h2o.locate("smalldata/junit/cars_20mpg.csv"))
# choose the type model-building exercise (multinomial classificat... | [
"eric.eckstrand@gmail.com"
] | eric.eckstrand@gmail.com |
603da445ac12eeebe5c185c910c9d46f51f201af | f9248ec00b661ee4790a780b7adaec79c0d68ec8 | /grades.py | 09573f0951c24c2e883ecb6e5ae49df72fa72cc2 | [] | no_license | michaelzh17/6001_Python | 0ec463f02840bf3162cd3247d76494d1592e82e3 | 53833604db4d769f71e63044813e3500f3e0fb6f | refs/heads/master | 2021-01-11T22:31:17.832117 | 2018-12-21T10:34:18 | 2018-12-21T10:34:18 | 78,979,863 | 0 | 0 | null | 2017-04-06T02:54:57 | 2017-01-15T00:07:38 | Python | UTF-8 | Python | false | false | 1,876 | py | #!/usr/bin/env python3
class Grades(object):
def __init__(self):
"""Create empty grade book"""
self.students = []
self.grades = {}
self.isSorted = True
def addStudent(self, student):
"""Assumes: student is of type Student
Add student to the grade book""... | [
"macalzhang@gmail.com"
] | macalzhang@gmail.com |
c6cac383f77c6c1693c64b0e517cf0ac0cc0fb30 | e7659b2e0d731c6bfd0d9d5bdcbf718dc727c6f2 | /francisco-topo/time_results/unused/rep_atk_def_socket/plot_ruio.py | 40a880a6b644cf5a848913ba76915a55f4089efa | [
"Apache-2.0"
] | permissive | ComitUniandes/ICS-SDN | aa3de9fbd84795db8a97d45e2ec2325c1dd1091a | fa1df31849dbe26264eabc1aa58ebda2f79ca698 | refs/heads/master | 2020-03-29T15:01:32.736612 | 2018-09-23T23:09:41 | 2018-09-23T23:09:41 | 150,041,157 | 1 | 0 | Apache-2.0 | 2020-06-16T04:45:40 | 2018-09-24T01:27:20 | Matlab | UTF-8 | Python | false | false | 558 | py | """Plot the solution that was generated by differential_equation.py."""
from numpy import loadtxt
from pylab import figure, plot, xlabel, grid, hold, legend, title, savefig
from matplotlib.font_manager import FontProperties
import sys
t, x1, x2 = loadtxt(sys.argv[1] , unpack=True)
figure(1, figsize=(6, 4.5))
xlab... | [
"None"
] | None |
70ba7e6bc909228908287f95ee119ba9f529c6bc | 60618d48e09a140926d97b01cb9b6f76fcc65703 | /python scrapy/exe/leihanduanzhi.py | c0cdd7db61b734ecf26474362ae24ff43d36fe9f | [] | no_license | Incipe-win/Python | ca8f36cc8785eb13512f71a3cf10149d4e1b855e | 5bab36b90591c74dedb6ead3484a279b90a1bcbd | refs/heads/master | 2021-01-07T08:11:42.293541 | 2020-12-06T09:17:02 | 2020-12-06T09:17:02 | 241,629,236 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | import requests
import re
import time
import json
class LeiHan:
def __init__(self):
self.url = "https://wengpa.com/neihan/page/{}/"
self.headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"}
... | [
"whc_9_13@163.com"
] | whc_9_13@163.com |
f1fc92350ae73a85dfb83e7c728d24488d718271 | 58afefdde86346760bea40690b1675c6639c8b84 | /leetcode/number-of-ways-to-wear-different-hats-to-each-other/383145521.py | f06c2d20c1f1da056ad81377ed81c6257a6d85c6 | [] | no_license | ausaki/data_structures_and_algorithms | aaa563f713cbab3c34a9465039d52b853f95548e | 4f5f5124534bd4423356a5f5572b8a39b7828d80 | refs/heads/master | 2021-06-21T10:44:44.549601 | 2021-04-06T11:30:21 | 2021-04-06T11:30:21 | 201,942,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | # title: number-of-ways-to-wear-different-hats-to-each-other
# detail: https://leetcode.com/submissions/detail/383145521/
# datetime: Wed Aug 19 17:22:41 2020
# runtime: 512 ms
# memory: 33.8 MB
from functools import lru_cache
class Solution:
def numberWays(self, hats: List[List[int]]) -> int:
MOD = 10 **... | [
"ljm51689@gmail.com"
] | ljm51689@gmail.com |
978ad01a5dc43f071400139d7bc9530b9f303226 | 5e9ed7cb1e68c4169dd20f5f90b2aaa49d7dfd9b | /php/generate_php_zip.py | c744e1de7514d53b3cdf623e752656ca146c4a7a | [] | no_license | suchja/generators | 1c7fb780dc2646963920454ebf24622f01c56748 | f27a81f0f92b1aac236a83caaa28d02d717e77fd | refs/heads/master | 2020-12-11T03:34:45.014886 | 2015-10-08T10:27:53 | 2015-10-08T10:27:53 | 43,313,739 | 0 | 0 | null | 2015-09-28T16:48:51 | 2015-09-28T16:48:51 | null | UTF-8 | Python | false | false | 4,647 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
PHP ZIP Generator
Copyright (C) 2012-2015 Matthias Bolte <matthias@tinkerforge.com>
Copyright (C) 2011 Olaf Lüke <olaf@tinkerforge.com>
generate_php_zip.py: Generator for PHP ZIP
This program is free software; you can redistribute it and/or
modify it under the terms ... | [
"matthias@tinkerforge.com"
] | matthias@tinkerforge.com |
03964fb3216ad6f1c86627096d8738333dec22d1 | 0e25538b2f24f1bc002b19a61391017c17667d3d | /cwmipermanentevents/win_cwmilogfileconsumer.py | c69452cebe0f859b26463dfa731e7627a8d22ca4 | [] | no_license | trondhindenes/Ansible-Auto-Generated-Modules | 725fae6ba9b0eef00c9fdc21179e2500dfd6725f | efa6ac8cd2b545116f24c1929936eb8cc5c8d337 | refs/heads/master | 2020-04-06T09:21:00.756651 | 2016-10-07T07:08:29 | 2016-10-07T07:08:29 | 36,883,816 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,484 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# <COPYRIGHT>
# <CODEGENMETA>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, ... | [
"trond@hindenes.com"
] | trond@hindenes.com |
90c2fddb780d56fa8b68031a4c4a2df33e49ba7e | 40aa8243e28eaecc895e0187e1e12e3b66195003 | /Practice/Boson/test_boson.py | 933bd1a84eda6f2354fa6a1c2b83de558c9c33e6 | [] | no_license | Toruitas/Python | 94c5dc82736914203e8b712055b824796816c145 | 2d1ea9cdad9501ae9d934c90d516a5a846d2a631 | refs/heads/master | 2016-09-05T20:10:41.584677 | 2015-06-01T03:14:51 | 2015-06-01T03:14:51 | 17,966,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | __author__ = 'Stuart'
# Problem 2: Unit test for P1
import unittest
from Boson import problem_one
class BooleanTestCase(unittest.TestCase):
"""test for utility_function"""
def test_problem_one(self):
self.assertTrue(problem_one("banana","banana"))
self.assertTrue(problem_one("banana","ananab"... | [
"Toruitas@gmail.com"
] | Toruitas@gmail.com |
3a62ad2d16767e6c24472f55cc2057293d9560f7 | be8dc68a5be1a8095a278be74090dce963745f8b | /models/vae.py | 82e9df59da3b00ecf12fb9eff3b7e89c31ad2c67 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | drclab/piVAE | 63fd571cbd3de0b8b6aa72f113682d4281864fd7 | 5bfa1e27db948419b750f5f123f5504ffdceeaec | refs/heads/master | 2023-03-16T17:23:08.644786 | 2020-05-09T15:00:39 | 2020-05-09T15:00:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,266 | py | # ---------------------------------------------------------
# TensorFlow piVAE Encoder & Decoder Models
# Licensed under The MIT License [see LICENSE for details]
# Written by Lukas Adam
# Email: gm.lukas.adam@gmail.com
# ---------------------------------------------------------
# Imports
import tensorflow as tf
impor... | [
"="
] | = |
a43cbe95848f28880ff7f48739f8500f9ad2aa6c | 5a563285d26ab10f4e6015c85095eba30ba12af2 | /project/urls.py | 2a33b9388ab33a5ea2975335dd51e0602e6e7361 | [] | no_license | pavelm2007/kitchen | e41e2433edad1e6156accfab5d5994612c80551d | 6edd44da568d7b50e48ce02e147e3cfd2fc9de4d | refs/heads/master | 2016-09-11T03:19:08.852036 | 2014-05-15T08:18:04 | 2014-05-15T08:18:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,344 | py | from django.conf.urls import patterns, include, url, handler403, handler404, handler500
from django.views.generic import TemplateView
from django.conf import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from common.views import Main_Page
admin.autodiscover()
urlpatte... | [
"pavelm2007@yandex.ru"
] | pavelm2007@yandex.ru |
ab54e3c9de2e501e90955a96567f79fe65e8fcbf | 74f1bb2c16870e140c33dc94f828f58ce042ff57 | /octopus/modules/es/autocomplete.py | f7e7085a68574d5623949193cd344ec54f65778c | [
"Apache-2.0"
] | permissive | richard-jones/magnificent-octopus | 1c4fee308732920b5521be7c998890fd23d48aa2 | 4a65f5a3e919af61887302d2911849233347f18f | refs/heads/develop | 2022-07-25T20:53:02.234255 | 2019-02-19T12:22:56 | 2019-02-19T12:22:56 | 22,357,685 | 2 | 3 | NOASSERTION | 2022-07-06T19:15:17 | 2014-07-28T20:58:11 | Python | UTF-8 | Python | false | false | 5,180 | py | from octopus.core import app
import esprit
import json
from flask import Blueprint, request, abort, make_response
from octopus.lib import webapp, plugin
blueprint = Blueprint('autocomplete', __name__)
@blueprint.route("/term/<config_name>")
@webapp.jsonp
def term(config_name):
# get the configuration
acc =... | [
"richard@cottagelabs.com"
] | richard@cottagelabs.com |
ea94102712e8d3cd81b0d8b4856498f34aca7df8 | 575b01bd3e73bb9bc27b364eb5bd83a64cb33ab4 | /common/holdout_validator.py | a66c297ee611c707ab1abc0b46688f49c6a21a63 | [] | no_license | backonhighway/kaggle_avito | 18c4f6b2a618b6f2e3b5279e10e2c31a312f5e66 | a281de87e0ad143be4a6154b0bbe5485ffe5a321 | refs/heads/master | 2020-03-22T01:29:48.895056 | 2018-07-01T07:30:41 | 2018-07-01T07:30:41 | 139,308,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,311 | py | import os, sys
ROOT = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../../'))
sys.path.append(ROOT)
APP_ROOT = os.path.join(ROOT, "avito")
import pandas as pd
import numpy as np
from dask import dataframe as dd
from sklearn import metrics
from avito.common import pocket_logger
class Holdo... | [
"pocketsuteado@gmail.com"
] | pocketsuteado@gmail.com |
49569796f88c9e934e3ab46f264c4f58235edcb0 | 0fc1ba5ecb2d8eac5533890c0c1df2034e42eeff | /s10/prim.py | 81a073206dd364a9c691d7990cf25108bb9fa633 | [] | no_license | oscarburga/tutorias-complejidad-algoritmica-2021-1 | 00c8d017ed63d10378b7ba543096564082ef3d3c | c2ad9c27e082de442e739f61264f19160ade9c07 | refs/heads/master | 2023-06-12T07:16:26.528929 | 2021-07-04T21:00:03 | 2021-07-04T21:00:03 | 354,336,135 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | #!/usr/bin/python3.7
import heapq as pq
n, m = map(int, input().split())
adj = [[] for _ in range(n)]
for _ in range(m):
x, y, w = map(int, input().split())
x -= 1
y -= 1
adj[x].append((y, w))
adj[y].append((x, w))
inf = 10**18
# c[v]: peso minimo de arista para llegar al vertice v
# vis[v]: Tru... | [
"oscarburga2001@gmail.com"
] | oscarburga2001@gmail.com |
d29dc13396fdfe0a132ebcbde835e7013aaba222 | eee1a4000e8736bcef9853d4e2710ca7be8e3d7b | /venv/Scripts/pip3-script.py | 25d063346151324143e8f4d535499a95944c9023 | [] | no_license | Arthur31Viana/PythonExercicios | d6f7abb095998e07979a9c9bbf20b8ff66fc6979 | 98131674917e4817a93f087f175b4409ca5dfce6 | refs/heads/master | 2020-05-31T19:18:58.415486 | 2019-06-05T19:12:32 | 2019-06-05T19:12:32 | 190,454,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | #!"C:\Users\Arthur Viana\PycharmProjects\PythonExercicios\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw... | [
"arthur.ae@hotmail.com"
] | arthur.ae@hotmail.com |
245742df1422fa3bec36e727a9a5d80955f8149d | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/common/Lib/plat-os2emx/pwd.py | 825ea8cf5665e6059450fe6c0db523dfb50ba7f4 | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 5,260 | py | # 2017.08.29 21:58:59 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/plat-os2emx/pwd.py
"""Replacement for pwd standard extension module, intended for use on
OS/2 and similar systems which don't normally have an /etc/passwd file.
The standard Unix password database is an ASCII text file with 7 fie... | [
"info@webium.sk"
] | info@webium.sk |
950fad18c2a225efd004c79b4d6d495227942058 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/aio/operations/__init__.py | 7ccc7d9fe9732634f0ef0d8f8f90cade815703ed | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 2,982 | 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 ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
f94c13e58621ea442f0dfae7b2e78c0974899738 | 4127a99269737c4640e53bad9b32c2c2f7f172d3 | /iptw/plot_hr_paxlovid.py | 74b25db7c3dc5970f0384670c6c4fb4eabe49265 | [] | no_license | calvin-zcx/pasc_phenotype | 0401d920b3cc441405abe9e689672415d57fd984 | 40efce36581721cd91e599ea6e61429fe7ac1f67 | refs/heads/master | 2023-08-31T04:41:34.823658 | 2023-08-30T16:07:52 | 2023-08-30T16:07:52 | 446,634,747 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,692 | py | import os
import shutil
import zipfile
import pickle
from sklearn.manifold import TSNE
import matplotlib.pyplot as plt
import matplotlib.ticker as tck
import re
import numpy as np
import csv
from collections import Counter, defaultdict
import pandas as pd
from misc.utils import check_and_mkdir, stringlist_2_str, stri... | [
"calvin-zcx@users.noreply.github.com"
] | calvin-zcx@users.noreply.github.com |
67cb893902b540be6e12e1bc3bd8c73472f214f4 | d93159d0784fc489a5066d3ee592e6c9563b228b | /DQMOffline/Alignment/python/LaserAlignmentT0ProducerDQM_cfi.py | 1675986f0f636cb6341974c581dbac1f366e7727 | [] | permissive | simonecid/cmssw | 86396e31d41a003a179690f8c322e82e250e33b2 | 2559fdc9545b2c7e337f5113b231025106dd22ab | refs/heads/CAallInOne_81X | 2021-08-15T23:25:02.901905 | 2016-09-13T08:10:20 | 2016-09-13T08:53:42 | 176,462,898 | 0 | 1 | Apache-2.0 | 2019-03-19T08:30:28 | 2019-03-19T08:30:24 | null | UTF-8 | Python | false | false | 1,532 | py | import FWCore.ParameterSet.Config as cms
LaserAlignmentT0ProducerDQM = cms.EDAnalyzer( "LaserAlignmentT0ProducerDQM",
# specify the input digi collections to run on
DigiProducerList = cms.VPSet(
cms.PSet(
DigiLabel = cms.string( 'ZeroSuppressed' ),
DigiType = cms.string( 'Processed' ),
DigiPr... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
a03f9af926025114147e26a598beb8f111dfd873 | 8a42be3f930d8a215394a96ad2e91c95c3b7ff86 | /Build/Instalation/GeneralDb/Marathon/MarathonTests_1.1/linux_HSQLDB_Edit/TestCases/Y1_NamedFldTests/Create_GroupLayoutMenu2/AA3_CreateFlds3b.py | 2fd7a65fc5b90510224a03237363295796ce21fd | [] | no_license | java-tools/jrec | 742e741418c987baa4350390d126d74c0d7c4689 | 9ece143cdd52832804eca6f3fb4a1490e2a6f891 | refs/heads/master | 2021-09-27T19:24:11.979955 | 2017-11-18T06:35:31 | 2017-11-18T06:35:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,097 | py | useFixture(default)
def test():
java_recorded_version = '1.6.0_22'
if window('Record Editor'):
select_menu('Record Layouts>>Edit Layout')
click('New2')
select('RecordDef.Record Name_Txt', 'zx1xzFLDg1')
select('RecordDef.Description_Txt', 'Group Test 1')
click('Insert')
select('RecordFieldsJ... | [
"bruce_a_martin@b856f413-25aa-4700-8b60-b3441822b2ec"
] | bruce_a_martin@b856f413-25aa-4700-8b60-b3441822b2ec |
c2b3af64857c45375bda0713aa8fd0f641facdd7 | 0cfb5831a748ebd46e438e3ad7e7a09c1d196499 | /com/chapter_06/section_02/task_6.2.4_dictionaryMod.py | 6bebe76bd8bd605135584f6b46ed551709e71f0d | [] | no_license | StevenGeGe/pythonFromIntroductionToPractice01 | 7cfe8cdb4bc5c0ddbe25b44976231d72d9e10108 | 9d2ba499056b30ded14180e6c4719ee48edd9772 | refs/heads/master | 2023-02-15T04:08:59.878711 | 2020-12-28T13:27:55 | 2020-12-28T13:27:55 | 310,980,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# @Time : 2020/11/17 20:24
# @Author : Yong
# @Email : Yong_GJ@163.com
# @File : task_6.2.4_dictionaryMod.py
# @Software: PyCharm
# 字典的修改
alien_0 = {'color': 'green'}
print("The alien is " + alien_0['color'] + ".")
# 输出: The alien is green.
alien_0['color'] = 'yel... | [
"Yong_GJ@163.com"
] | Yong_GJ@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.