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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cdf830ae3e0835a12624bfd2c5ef4c83e633a614 | 313afbb1ea19f2266571870c7461f2591e30ea7b | /src/lab/lab01/z_7_macierze.py | e11a427c91a7ab0da9a9a38c400254c006be1ae9 | [] | no_license | tborzyszkowski/LogikaProgramowania | 89201a76ddc60692ffccaf7c4c7b17d4e1e2c0e8 | cceb161a6ff5933d2acc31f15879cafcf03b285b | refs/heads/master | 2022-06-23T18:41:29.460094 | 2022-06-17T16:18:29 | 2022-06-17T16:18:29 | 250,095,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | from random import random
N = 2
m1 = [
[(1 if i == j else 0) for j in range(N)]
for i in range(N)
]
m2 = [[int(random() * 100) for y in range(N)] for x in range(N)]
print("m1:")
for row in m1:
print(row)
print("\n-----------\n")
print("m2:")
for row in m2:
print(row)
print("\n----------... | [
"t.borzyszkowski@gmail.com"
] | t.borzyszkowski@gmail.com |
2e80e028db2b748647fa57e8c02cd4029b2f9c93 | 27b3c7f8e144a3f6f4699e49d7df85c2918b3b23 | /customlogger/custom_logger.py | a00a7935d53ac335c2646f71ecfd4cfe3e79646e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | deresmos/customlogger | ddf0aabba7435816a5e160474e3545758cc078a4 | 6f6bbda8caeaa27a15d4981732ac7e57a525ea6f | refs/heads/master | 2021-07-18T21:50:54.808304 | 2018-06-28T06:08:01 | 2018-06-28T06:08:01 | 98,201,131 | 1 | 1 | MIT | 2018-06-05T14:55:59 | 2017-07-24T14:40:55 | Python | UTF-8 | Python | false | false | 5,725 | py | # imports {{{1
import logging
import os
from os.path import expanduser
from colorlog import ColoredFormatter
from customlogger.only_filter import OnlyFilter
from customlogger.run_rotating_handler import RunRotatingHandler
# }}}
class CustomLogger:
# class variable {{{1
NOTSET = logging.NOTSET
DEBUG = l... | [
"deresmos@gmail.com"
] | deresmos@gmail.com |
809595d1fa3df5a45abcab47ef7dd4d58698b915 | 8af8544612d10260d1eaf4c613e599aaafc8f4c7 | /cal/admin.py | 48bd114c5a689fcc66e2fa9e1edc167617f235d1 | [] | no_license | Noeuclides/djangocalendar | 46979e7249adc94c449b7bd54888f752936a9a46 | 4a7fed9ae73989190c8b1f620de81af48248b788 | refs/heads/master | 2023-07-31T21:42:25.638017 | 2020-06-22T22:32:15 | 2020-06-22T22:32:15 | 273,511,608 | 0 | 0 | null | 2021-09-22T19:16:05 | 2020-06-19T14:20:39 | Python | UTF-8 | Python | false | false | 1,114 | py | from django.contrib import admin
from cal.models import *
class EventAdmin(admin.ModelAdmin):
list_display = ('id', 'title', 'grade')
list_display_links = ('id', 'title', 'grade')
class ChallengeAdmin(admin.ModelAdmin):
list_display = ('id', 'name', 'grade')
list_display_links = ('id', 'name', 'grade'... | [
"euclidesnoeuclides@gmail.com"
] | euclidesnoeuclides@gmail.com |
0a45a862d3c529f57cce59103290f55dc8ab44f8 | 057fde8a8ab9622a3524cb880c7ace5a15c0f355 | /set7/70.py | 4b1fb8e3c9d5e4a6348aeeaf197facb1e7fb3b10 | [] | no_license | ramyasutraye/Guvi_Python | e9ba6eb812ec8014214dce77d710ce230bbb8020 | 2fed3c460185fbf7bcf64c068084bcdb7d840140 | refs/heads/master | 2020-04-23T19:30:21.003061 | 2018-05-25T10:43:14 | 2018-05-25T10:43:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | a=int(input("Enter any number:"))
for i in range(0,a):
num=2**i
if num>a:
print(num)
break
if a==2:
print("4")
elif a==1 or a==0:
print("2")
| [
"noreply@github.com"
] | ramyasutraye.noreply@github.com |
4fd5d0b3cf69ec3401158708578acd35b429b996 | 242f1dafae18d3c597b51067e2a8622c600d6df2 | /src/0000-0099/0005.manacher.py | fb347e485f03f4f36cd8545c32505243e8a5b10e | [] | no_license | gyang274/leetcode | a873adaa083270eb05ddcdd3db225025533e0dfe | 6043134736452a6f4704b62857d0aed2e9571164 | refs/heads/master | 2021-08-07T15:15:01.885679 | 2020-12-22T20:57:19 | 2020-12-22T20:57:19 | 233,179,192 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | class Solution:
def longestPalindrome(self, s: str) -> str:
"""Manacher Algorithm.
"""
n = 2 * len(s) + 1
# augmented s with #
ss = lambda s, i: s[(i - 1) // 2] if i % 2 else '#'
# c: center of palindrome with rightmost position
c = 0
# r: right of palindrom with rightmost position
... | [
"gyang274@gmail.com"
] | gyang274@gmail.com |
bc576f8ef94ce910cccb8942737b54d6b3bf8daa | c071eb46184635818e8349ce9c2a78d6c6e460fc | /system/python_stubs/1336907795/Scripts/_testbuffer.py | 706a5b806e0bdf4a96417ae23fce495550448982 | [] | no_license | sidbmw/PyCharm-Settings | a71bc594c83829a1522e215155686381b8ac5c6e | 083f9fe945ee5358346e5d86b17130d521d1b954 | refs/heads/master | 2020-04-05T14:24:03.216082 | 2018-12-28T02:29:29 | 2018-12-28T02:29:29 | 156,927,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,549 | py | # encoding: utf-8
# module Scripts._testbuffer
# from C:\Users\siddh\PycharmProjects\Introduction to Python\.idea\VirtualEnvironment\Scripts\_testbuffer.pyd
# by generator 1.145
# no doc
# no imports
# Variables with simple values
ND_FORTRAN = 4
ND_GETBUF_FAIL = 64
ND_GETBUF_UNDEFINED = 128
ND_MAX_NDIM = 128
ND_PI... | [
"siddharthnatamai@gmail.com"
] | siddharthnatamai@gmail.com |
e7567675022bdbdfd9b443dd0209766b03578342 | 9f2ea36883c5fbd2b96132917e4939d5f99de400 | /flask_mongo_profiler/contrib/flask_admin/formatters/lookup.py | c500c2d56a60f9c56a9b70753024b9727317fc00 | [
"MIT"
] | permissive | eduflow/flask-mongo-profiler | 80803111e1c4e5a817401d1339571c8475c9b84c | a267eeb49fea07c9a24fb370bd9d7a90ed313ccf | refs/heads/master | 2023-05-27T01:58:24.860787 | 2018-12-15T21:16:57 | 2018-12-15T21:18:54 | 154,967,856 | 0 | 0 | MIT | 2023-05-22T21:35:44 | 2018-10-27T13:31:26 | Python | UTF-8 | Python | false | false | 1,265 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from flask import Markup
from ..helpers import get_list_url_filtered_by_field_value
def search_field_formatter(view, context, model, name):
filter_url = get_list_url_filtered_by_field_value(view, model, name)
filter_applied = F... | [
"tony@git-pull.com"
] | tony@git-pull.com |
4e4334450f22bbbdb6cbd28d91bea30372bf64eb | 8fa938eddcc75eb7dff1f2055c49cb3817a00c63 | /String/ex49.py | 60dfa2055e3999b694cd7c97f3c9dca529ba9fc5 | [] | no_license | jayhebe/w3resource_exercises | f27109759d112b0611574aa70eb378ace447c2a0 | b29aa7c806f6021a8988e83bb9f674522a41380d | refs/heads/master | 2020-05-07T09:23:24.039271 | 2020-01-30T15:05:06 | 2020-01-30T15:05:06 | 180,374,062 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | def get_vowels(char_str):
return [ch for ch in char_str if ch in "aeiouAEIOU"]
if __name__ == '__main__':
print(get_vowels("w3resource"))
| [
"jayhebe1983@sina.com"
] | jayhebe1983@sina.com |
d6285ad479fd73931af9354c270848582cab80b4 | d3b829dc03641fba2a57c816891a021ab7d5b505 | /fluent_contents/migrations/0001_initial.py | d713326b77ede1588edb67715503f41e8d68659b | [
"Apache-2.0"
] | permissive | django-fluent/django-fluent-contents | 7af8c0782f1e99832cae6c4f1ed3d99e72097199 | 5577567303d29b56fd48128c22c7dc5d8b2c7476 | refs/heads/master | 2023-02-21T01:44:34.935089 | 2021-11-17T08:55:16 | 2021-11-17T08:58:26 | 3,145,163 | 84 | 18 | Apache-2.0 | 2023-02-15T20:50:09 | 2012-01-10T12:54:57 | Python | UTF-8 | Python | false | false | 4,207 | py | import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("contenttypes", "0001_initial")]
operations = [
migrations.CreateModel(
name="ContentItem",
fields=[
(
"id",
... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
2f6e18a5f4ba8b0456377676821bca0328fe208c | 8311a0bcf3f2126d622f928483ce2ea9d6a7cb0d | /Code/Matthew/python/bogosort.py | 8a5e8b1541f2a5351db02b7bfa5859e5544947c6 | [] | no_license | guam68/class_iguana | 857247dca0ff732d11f7fb0d3dc761ec83846c94 | e4359d32dfe60423a643c21df5636669016ad2c0 | refs/heads/master | 2020-05-01T06:33:22.611127 | 2019-03-13T23:07:41 | 2019-03-13T23:07:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,570 | py |
# import random
# def bubble_sort(nums):
# for i in range(len(nums)):
# for j in range(len(nums)-1):
# if nums[j] > nums[j+1]:
# nums[j], nums[j+1] = nums[j+1], nums[j]
#
# nums = [random.randint(0,99) for i in range(100)]
# print(nums)
# bubble_sort(nums)
# print(nums)
impor... | [
"flux2341@gmail.com"
] | flux2341@gmail.com |
8f425fd16f7d5aded1fbfb08578f898f5cecf18f | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-alloydb/samples/generated_samples/alloydb_v1beta_generated_alloy_db_admin_generate_client_certificate_async.py | f1d54b369e792a9e23c7159b0cbbd6d2a0c78430 | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 1,940 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
5f7225a8bb8465174507e5765718f14c91635f9b | 2d9a3ce2a04190d0032e8a298829022260b1d76b | /indra/databases/biolookup_client.py | a8ac55265ff756883e26106fd0c97136b94d074f | [
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | sorgerlab/indra | f127a0f9bdd2d3f48df14575883fd31e2f4de4bf | 6d6ca1174792b6c5a05cbf3afcb9f138fabcec6a | refs/heads/master | 2023-08-21T13:25:54.654995 | 2023-06-11T16:46:41 | 2023-06-11T16:46:41 | 22,848,436 | 158 | 61 | BSD-2-Clause | 2023-08-30T21:47:59 | 2014-08-11T17:44:05 | Python | UTF-8 | Python | false | false | 1,316 | py | """A client to the Biolookup web service available at http://biolookup.io/."""
from typing import Dict
import requests
URL = 'http://biolookup.io/api/lookup/'
def lookup_curie(curie: str) -> Dict:
"""Look up a CURIE in the Biolookup web service.
Parameters
----------
curie :
The CURIE to loo... | [
"ben.gyori@gmail.com"
] | ben.gyori@gmail.com |
0797c311f47d452f7d067ce093d1a6ac6666d7b9 | d178ecd2d3511fcd98aca731ada1aa0fec0e15a1 | /prog_count/grader.py | dca9b796081c90aeae9a3b3000b81e8f76932a68 | [] | no_license | 0xBADCA7/easyctf-iv-problems | 165cca68e2bad788604dab4b15c644e994c7fa85 | 7037fe557df97cd85b3eada672ef44a356236522 | refs/heads/master | 2020-08-13T21:16:26.114580 | 2018-02-21T06:15:40 | 2018-02-21T06:15:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from itertools import combinations as comb
n, s = map(int, input().split())
nums = [int(u) for u in input().split()]
t = 0
for i in range(1, len(nums) + 1):
for c in comb(nums, i):
if sum(c) == s:
t += 1
print(t) | [
"failed.down@gmail.com"
] | failed.down@gmail.com |
19d84cb48523b1f33dfbbc80555e822ae0d9177b | 9cfdfe633dfb2755955f9d356fdd0a9601089955 | /account_auth/tests/test_veiws.py | cc19cd637b9384f9d338cf62d7f16a79d4b53583 | [] | no_license | DimAntDim/ResumeBuilder | cec597ba4b857d98147e2f5f6831bd3c93c83c80 | 0507d5d9c44936d892df280015f7c6d8e630f55b | refs/heads/main | 2023-08-21T08:03:43.327868 | 2021-11-03T19:43:04 | 2021-11-03T19:43:04 | 394,882,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | from account_auth.forms import RegisterForm
from django.contrib.auth import get_user_model
from django.test import TestCase
from django.urls import reverse
UserModel = get_user_model()
class RegisterViewTest(TestCase):
def test_register_render_template(self):
response = self.client.get(reverse('register'... | [
"66394357+DimAntDim@users.noreply.github.com"
] | 66394357+DimAntDim@users.noreply.github.com |
9a9a5e1a87e823fb31274cc803479e5f9f48c592 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /day_or_point/say_good_work.py | e57f94898800ec38a14522b3b0c3743ae46ef192 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py |
#! /usr/bin/env python
def use_few_part_over_bad_hand(str_arg):
important_number(str_arg)
print('thing')
def important_number(str_arg):
print(str_arg)
if __name__ == '__main__':
use_few_part_over_bad_hand('great_year')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
04f06111126887806589e20ae3df08a21ef35dab | 683a90831bb591526c6786e5f8c4a2b34852cf99 | /CodeSignal/Interview/Backtracking/2_WordBoggle.py | 56777e11c7b04f10d9d347dd0cc392adb21fe6d6 | [] | no_license | dbetm/cp-history | 32a3ee0b19236a759ce0a6b9ba1b72ceb56b194d | 0ceeba631525c4776c21d547e5ab101f10c4fe70 | refs/heads/main | 2023-04-29T19:36:31.180763 | 2023-04-15T18:03:19 | 2023-04-15T18:03:19 | 164,786,056 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | import copy
# https://app.codesignal.com/interview-practice/task/v3uf4PGocp2CH62nn/description
# Tag(s): Backtracking, recursion
def print_board(board):
for row in board:
print(row)
deltas = [
(-1, 0), (-1, -1), (-1, 1), (0, -1),
(0, 1), (1, 0), (1, -1), (1, 1)
]
def explore(board, word, i, j, k):... | [
"davbetm@gmail.com"
] | davbetm@gmail.com |
8137538c751572157b1a44dc0c0f97368389f271 | f9cce83d8259f53686ed545cf301d6e72258ea90 | /mynewproject/mynewproject/settings.py | 2a6d9179c5e65c306eeb698650876c6ff4e54220 | [] | no_license | ir4y/docker-workshop | dc649e53598d9fc237348aab64ccd3b5141bc12e | 9e6f7f2445bf4b4ac1c416f83488a8d840d64db6 | refs/heads/master | 2020-12-24T22:06:12.190270 | 2016-04-22T20:53:22 | 2016-04-22T20:53:22 | 56,765,105 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,123 | py | """
Django settings for mynewproject project.
Generated by 'django-admin startproject' using Django 1.9.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import ... | [
"ir4y.ix@gmail.com"
] | ir4y.ix@gmail.com |
15bc8407519a5501e2d0687a01ae6c171ec545ed | 051c3ee44478265c4510530888335335ec9f7fdf | /ML_Applications/SVM/experiments_(MRs_on_Mutants)/digitsData/RBFKernel/Mutants/MR1-permuteFeatures/r5/DigitRecognitionApp_5.py | 99860b4f108cd70b0936ce937a2f1954c2cf2a6a | [] | no_license | PinjiaHe/VerifyML | b581c016012c62d8439adfce0caef4f098b36d5e | 3bd7c49e45720c1cdfe0af4ac7dd35b201056e65 | refs/heads/master | 2020-03-25T19:40:39.996370 | 2018-01-30T08:58:58 | 2018-01-30T08:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,197 | py | """
Created on Fri May 26 15:20:01 2017
#Digit Recognition for V & V
#Following note added by Raghu
Note:
1. The actual digits data from the http://archive.ics.uci.edu/ml/datasets/Pen-Based+Recognition+of+Handwritten+Digits is different than the one referred in this sklearn example
2. For more info, refer this link ... | [
"anurag.bms@gmail.com"
] | anurag.bms@gmail.com |
53f18e3d6324766217bd33e5f7c5df5c74d01171 | 7e98a3fc246547cc93ce2a93f39410aac38f8dd3 | /bag/tests/test_urls.py | c6fc2dc10f4a6c80e6986f82a633ff10c1e9cdec | [] | no_license | kydzoster/huntinteriors | 53b5d064f05010c71c70d72a6148494226980287 | 4439c652d74d9b5553abc67d4bbac73b33b42336 | refs/heads/main | 2023-02-04T03:14:50.250492 | 2020-12-16T13:22:31 | 2020-12-16T13:22:31 | 301,401,449 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | from django.test import TestCase
from django.urls import reverse, resolve
from bag.views import view_bag, add_to_bag, adjust_bag, remove_from_bag,\
success
class TestUrls(TestCase):
def test_view_bag_url_is_resolved(self):
url = reverse('view_bag')
print(resolve(url))
self.assertEqual... | [
"kydzoster@gmail.com"
] | kydzoster@gmail.com |
4511418ac6a1ba4d051b347cf150a798e4753afa | 644d9ef18713e4cb5d4c3b53301bd7276dcdf477 | /api/programs/serializers/courses/__init__.py | 0420ef42cac21787e67976e0cca760e59a01bd92 | [] | no_license | alexhernandez-git/django-classline | 6cb5bcd268248999e18037f58c4ed30012d51915 | 49fcf0c6d735a56eaebc17d04be52dab91ca4c3a | refs/heads/master | 2023-03-18T07:10:08.770066 | 2021-03-04T22:24:09 | 2021-03-04T22:24:09 | 287,985,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | from .languages import *
from .prices import *
from .courses import *
from .blocks import *
from .block_tracks import *
from .items import *
from .item_tracks import *
from .contents import *
from .item_questions import *
from .item_answers import *
from .items_viewed import *
from .materials import *
from ... | [
"vlexhndz@gmail.com"
] | vlexhndz@gmail.com |
81b3c1a604d12b227bc601a62060b3b20494c030 | c03d7a4e03c581d4be98b6363003cddb9c213ec0 | /registration/migrations/0017_auto_20181122_2208.py | 3e33472466085ca31c4186c48ec9f60a73f4368e | [] | no_license | hernandavidc/plataforma | b333e4f06290713072d8dc609c27d4ce8af1d9df | 4316e2a59db76e74f1e6106958631ad4a7a653c7 | refs/heads/master | 2020-04-06T17:08:21.019355 | 2019-04-09T04:41:00 | 2019-04-09T04:41:00 | 157,648,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | # Generated by Django 2.1 on 2018-11-23 03:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('registration', '0016_auto_20180910_1209'),
]
operations = [
migrations.AlterField(
model_name='veterinaria',
name='lat... | [
"hernandavidc@hotmail.com"
] | hernandavidc@hotmail.com |
5d0900423f187a722e7b4784a10d242cb508eaa3 | f4309766d0292d6ae06344221b667603fda206ec | /backend/apps/user/views.py | f23bb486e4b7eca9c5f74b758711e4d8d7606f82 | [] | no_license | tom2jack/Journey | dff0181ef8939a9edf52987a2439563ca0c4342d | cb7bbca759c3d27815fde0d1697c2184b31b2aac | refs/heads/master | 2022-02-23T05:43:58.602808 | 2019-10-08T08:27:36 | 2019-10-08T08:27:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,632 | py | from django.shortcuts import render
from rest_framework import status
from rest_framework.response import Response
from rest_framework import viewsets
from django.db.models import Q
from rest_framework import filters
from user.models import *
from user.serializers import *
from user.permissions import CustomerPremissio... | [
"977983452@qq.com"
] | 977983452@qq.com |
c334f9d5fe148729774e785a96feae949de4f060 | 5e48f770f975ea0ae166cd662576baa36150cb41 | /booking/migrations/0002_auto_20170725_2313.py | c1abc8a5cb7e36b285b6bc51fe62541f7d726ae7 | [] | no_license | Ngahu/Booking | df5a7b2e346bf497bc340e4ee3e6e7184c40d235 | 3187bb4a34225364181f0409344457c43f20b338 | refs/heads/master | 2021-01-01T19:54:20.069252 | 2017-07-29T08:25:32 | 2017-07-29T08:25:32 | 98,717,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-25 23:13
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('booking', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"jamaalaraheem@gmail.com"
] | jamaalaraheem@gmail.com |
9ed940e62e4b3bfdf9750564804b04975687106f | 73c01a3f052f8ef63890ec3c2e28403ad41e9a71 | /td/models/driver.py | cd23468080d6a1f5b364dd8199d0b29945d90f9f | [] | no_license | Jokey90/aho | 4c007c65c819efb726a732a8f36067c5a0226100 | 8bcd41e9ef7d40f07499429f385d4fec590636f6 | refs/heads/master | 2020-03-21T22:28:36.395996 | 2018-06-29T09:25:05 | 2018-06-29T09:25:05 | 139,128,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | from django.db import models
class Driver(models.Model):
from main.models import Employee
class Meta:
verbose_name = 'Водитель'
verbose_name_plural = 'Водители'
emp = models.OneToOneField(verbose_name='Сотрудник', to=Employee, blank=False, null=False)
comment = models.CharField(verbo... | [
"Kishkurno_AS@dsdf.cds.ru"
] | Kishkurno_AS@dsdf.cds.ru |
fffc65720d6f0a1225f7ffb51fb0f9b5c0ebfc98 | 7ac223c9aaa46b2533e08928354f72dd03873e64 | /rentals/migrations/0001_initial.py | 47ae12267ae8e66afa4ec9c23d0eea29018c24b3 | [] | no_license | Kyeza/RentalMangementSystem | 9f6e75ffe634510755dbe78fe74f4ef270b5bef5 | 862490d4be6683e40b81384eb4b7dadad35019cc | refs/heads/master | 2023-04-30T06:20:11.281096 | 2019-05-23T20:40:29 | 2019-05-23T20:40:29 | 188,166,783 | 1 | 0 | null | 2023-04-21T20:31:55 | 2019-05-23T05:24:47 | Python | UTF-8 | Python | false | false | 1,426 | py | # Generated by Django 2.2.1 on 2019-05-23 09:53
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category'... | [
"kyezaarnold63@gmail.com"
] | kyezaarnold63@gmail.com |
5ef05dd99cd88c1d6387005f2eb546494a1bd520 | fdc2fbb1b9e75a6ce5adacec29aae7482c999135 | /_api/public_api/services/routes.py | f90cad4b74402610f779b7f832b7fd98866cebad | [
"MIT"
] | permissive | bellyfat/membership_and_affiliate_api | b37411a1244fc7d6bf721b6d36ec87b57845169f | 41fb9f5a0c37c1ac5636122c61e98ddaf9c569ff | refs/heads/master | 2023-07-12T17:07:28.399407 | 2021-08-24T13:04:02 | 2021-08-24T13:04:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | """
**Public facing Services API**
"""
__author__ = "mobius-crypt"
__email__ = "mobiusndou@gmail.com"
__twitter__ = "@blueitserver"
__github_repo__ = "https://github.com/freelancing-solutions/memberships-and-affiliate-api"
__github_profile__ = "https://github.com/freelancing-solutions/"
from typing import Optiona... | [
"mobiusndou@gmail.com"
] | mobiusndou@gmail.com |
ffcf8c9e3bd602c62149a42dac33d47fc5c7fa0a | 4dd695521343d56ff943e8c1768343d7680714e3 | /experiments/scripts_auto_closedset_braccent/config_iVector_400_fold1.py | 34cd51f887e4c284adc8d7e44663401d7056f6b5 | [] | no_license | natharb/environment | ea659ee541f6473e92b5b30c549e52b66f47b280 | 86e6cee6e01d2370abeb7c55a2c8a15001735919 | refs/heads/master | 2021-09-28T02:39:02.222966 | 2018-11-13T12:03:34 | 2018-11-13T12:03:34 | 139,762,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | #!/usr/bin/env python
# vim: set fileencoding=utf-8 :
#Nathália Alves Rocha Batista (nathbapt@decom.fee.unicamp.br)
import sys
sys.path.insert(0, '.')
import bob.bio.spear
import bob.bio.gmm
import numpy
import scipy.spatial
temp_directory = './results/closedset_braccent/iVector/400/fold_1/temp/'
result_directory = ... | [
"nathbapt@decom.fee.unicamp.br"
] | nathbapt@decom.fee.unicamp.br |
da3449f427e0b24db486c59bdd24e486619c9e1f | 117f066c80f3863ebef74463292bca6444f9758a | /data_pulling/tax/example.py | 4fdcefef7f117c22146461f85385ac5b612cdb24 | [] | no_license | cottrell/notebooks | c6de3842cbaeb71457d270cbe6fabc8695a6ee1b | 9eaf3d0500067fccb294d064ab78d7aaa03e8b4d | refs/heads/master | 2023-08-09T22:41:01.996938 | 2023-08-04T22:41:51 | 2023-08-04T22:41:51 | 26,830,272 | 3 | 1 | null | 2023-03-04T03:58:03 | 2014-11-18T21:14:23 | Python | UTF-8 | Python | false | false | 1,854 | py | import pandas as pd
import numpy.random as nr
import numpy as np
class PandasPiecewiseLinear():
# dodgy, thing to do piecewise opt
# this is not useful really, you would need to create some n-d simplex thing ... probably a package that does this
def __init__(self, x, y):
""" no extrap """
s... | [
"cottrell@users.noreply.github.com"
] | cottrell@users.noreply.github.com |
e75b8889a6c0498c6a7e72f280cba8ce56c72660 | 3249577773cf18e5c09ea36de62477ddb43b662b | /Python/django/user_login/apps/dojo_ninjas/views.py | 6f0f71058c7279e806c4f9481c8dec2b16a697ee | [] | no_license | HollinRoberts/code | 5394abe2a7c42bbbe83d8f64a99c50a52f05792b | 8026522ab169c4174037fdf1b271de60b75d79bf | refs/heads/master | 2021-01-01T16:12:11.674680 | 2017-10-18T21:08:10 | 2017-10-18T21:08:10 | 97,786,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
def index(request):
print 'here'
return render(request,'dojo_ninjas/index.html') | [
"hollinroberts@gmail.com"
] | hollinroberts@gmail.com |
41d999a5e04ca98fc1bea1f05e638bc5a92839e2 | b891f38eb12eeafdbcec9deee2320acfaac3a7ad | /0x0A-python-inheritance/100-my_int.py | 641a3669fbc5bd16550b3e3d1c87db16add73a55 | [] | no_license | davixcky/holbertonschool-higher_level_programming | bb112af3e18994a46584ac3e78385e46c3d918f6 | fe4cd0e95ee976b93bd47c85c2bc810049f568fa | refs/heads/master | 2023-01-11T00:41:03.145968 | 2020-09-22T22:55:53 | 2020-09-22T22:55:53 | 259,390,611 | 0 | 5 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | #!/usr/bin/python3
'''Module for advanced'''
class MyInt(int):
'''Rebel class'''
def __eq__(self, other):
'''Override == operator'''
return not (self is not other)
def __ne__(self, other):
'''Override != operator'''
return (self is not other)
| [
"dvdizcky@gmail.com"
] | dvdizcky@gmail.com |
cade239b0ece789edff3420e5fd5b30a5452ddee | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/era5_scripts/01_netCDF_extraction/erafive902TG/134-tideGauge.py | 5cfea7896c09776590870458447a906f23f3c666 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,595 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 01 10:00:00 2020
ERA5 netCDF extraction script
@author: Michael Tadesse
"""
import time as tt
import os
import pandas as pd
from d_define_grid import Coordinate, findPixels, findindx
from c_read_netcdf import readnetcdf
from f_era5_subsetV2 import subsetter
def extrac... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
b31979f988725cf694bfbad19ec793def2e31147 | 88e8e28b58092d5ba051582930c156872b9565a5 | /unews/unews/items.py | ecc7fba0c3ac1e5fd2ade006f035a54de44947d0 | [] | no_license | dorahero/crawlers | b8a4a1c2592e817b365d56a87bee021d29598810 | 88e134fdd2493330622848f931638aabd6c906fe | refs/heads/master | 2023-02-19T07:54:54.945144 | 2021-01-23T09:13:42 | 2021-01-23T09:13:42 | 276,884,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class UnewsItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
title = scrapy.Field()
text = scrapy.Field()
time = scrap... | [
"dorahero2727@gmail.com"
] | dorahero2727@gmail.com |
23c71b0d50b91315b570e7451f6325c9285a753a | 021dcf39f7cfb303ff427d7344026004f9d4cfdd | /bookit/geo/models/area.py | a95118209730353550ebf7ebe4ccac7d64d64fed | [
"MIT"
] | permissive | kamranhossain/bookit | dfaca266b93e0ee8a50e88a2a7702a6f5ece35f1 | 4189a0ed620d7a595de2c113bb3a2d435d66d5f0 | refs/heads/master | 2021-05-11T23:36:00.630917 | 2017-08-16T20:30:33 | 2017-08-16T20:30:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from django.db import models
class Area(models.Model):
name = models.CharField(
max_length=140
)
def __str__(self):
return self.name
| [
"aniruddha@adhikary.net"
] | aniruddha@adhikary.net |
d29d5c2be6de0c5ffb14a35773221396e731327d | 627cca9406c31ce30c493ff7502f79eb4c57eee3 | /xcha/wallet/wallet_user_store.py | 599b6716d9fb71d4e7865a65ef4cc60d9f06933f | [
"Apache-2.0"
] | permissive | blockchiansea/xcha-blockchain | 40c6d36813f671e94316a522904238f495f39f6b | 7de0ba89056236e30069aef12fe25843f6093bcf | refs/heads/master | 2023-07-26T02:36:57.654196 | 2021-09-06T06:04:21 | 2021-09-06T06:04:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,788 | py | from typing import List, Optional
import aiosqlite
from xcha.util.db_wrapper import DBWrapper
from xcha.util.ints import uint32
from xcha.wallet.util.wallet_types import WalletType
from xcha.wallet.wallet_info import WalletInfo
class WalletUserStore:
"""
WalletUserStore keeps track of all user created walle... | [
"xchanet@gmail.com"
] | xchanet@gmail.com |
5dc79f13f7a92a35dd46e4a129b04ec494cea9fc | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/nist_data/atomic/id/schema_instance/nistschema_sv_iv_atomic_id_max_length_4_xsd/__init__.py | 2ea09c36077f1939d69de901a715d7c02f4faea0 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 263 | py | from output.models.nist_data.atomic.id.schema_instance.nistschema_sv_iv_atomic_id_max_length_4_xsd.nistschema_sv_iv_atomic_id_max_length_4 import (
NistschemaSvIvAtomicIdMaxLength4,
Out,
)
__all__ = [
"NistschemaSvIvAtomicIdMaxLength4",
"Out",
]
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
ace1317e4d350f5245822cf11849f62bbcfe6a10 | ae9f0a71576cf2d9f46f684ae412c741261c9ded | /tests/plugins/shortcircuit.py | 8403b68ec141b5afb308aa44d94754063b583f46 | [
"MIT"
] | permissive | sugarchain-project/lightning | 95adf492b2f5d3b4c20170b17a7e556b9b3abbd1 | c73e21e099ca2f5ed02afae316f477e8a1fd1280 | refs/heads/master | 2020-08-05T17:02:38.936348 | 2019-10-04T08:56:23 | 2019-10-04T08:56:23 | 212,624,853 | 2 | 2 | NOASSERTION | 2019-10-03T16:20:19 | 2019-10-03T16:20:18 | null | UTF-8 | Python | false | false | 231 | py | #!/usr/bin/env python3
from lightning import Plugin
plugin = Plugin()
@plugin.hook("htlc_accepted")
def on_htlc_accepted(onion, htlc, plugin, **kwargs):
return {"result": "resolve", "payment_key": "00" * 32}
plugin.run()
| [
"rusty@rustcorp.com.au"
] | rusty@rustcorp.com.au |
d8f90ee6ddf75cf52f82aca971d5e66cc8a69bad | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/T/tlevine/landbank_branches.py | e7046f1be1fbea8d12176b46f65cc7ee7138faf7 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,898 | py | from scraperwiki.sqlite import save
from scraperwiki import swimport
keyify=swimport('keyify').keyify
from lxml.html import fromstring
from urllib2 import urlopen
URL='http://www.landbank.co.za/contact/branches.php'
from time import time
strip_address = swimport('strip_address').strip_address
DATE=time()
def main():
... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
04e72e6c7258fd53dbcd5d95b249789f8fd864f3 | c5b738612c1ecbce0583a327032db1e6c339de0b | /bv-av互转工具/bv_av.py | f9638358b8b57e57698495513ae8afc32d628271 | [
"BSD-2-Clause"
] | permissive | helloworldSB/Gear-s-toolBox-archive | c766d27e45a9eb9a99dfa360ac68a0ac1c93d8c7 | 40bc05cbb0060ecc3d9f941276c9caccbe1b8d82 | refs/heads/master | 2023-01-01T00:38:31.211587 | 2020-10-16T12:43:25 | 2020-10-16T12:43:25 | 306,789,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,831 | py | class av_bv_cls:
def __init__(self):
self.table='fZodR9XQDSUm21yCkr6zBqiveYah8bt4xsWpHnJE7jL5VG3guMTKNPAwcF'
self.tr={}
for i in range(58):
self.tr[self.table[i]]=i
self.s=[11,10,3,8,4,6]
self.xor=177451812
self.add=8728348608
def dec(self,x):... | [
"noreply@gitee.com"
] | noreply@gitee.com |
c3c32b313e00e643cc818413d71b1bfdc3db915c | eee3a183136bdebed599249604b63f0b0f02ba71 | /pyrates/ui.py | 095ed9079bf11379368972be213dff233665f534 | [] | no_license | gutomaia/pyrates | 3971d332a0977a8d130c0836e86c3368a8531a8b | a81ef57c368e1341a0e09b548a94f27801f89546 | refs/heads/master | 2021-06-29T12:53:56.033594 | 2017-09-20T19:00:45 | 2017-09-20T19:00:45 | 104,124,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,567 | py | import wx, sys, os, pygame
### PYGAME IN WX ###
# A simple test of embedding Pygame in a wxPython frame
#
# By David Barker (aka Animatinator), 14/07/2010
# Patch for cross-platform support by Sean McKean, 16/07/2010
# Patch to fix redrawing issue by David Barker, 20/07/2010
# Second window demo added by David Barker,... | [
"guto@guto.net"
] | guto@guto.net |
5279d2be8c763659dcb6380332b42896fbc7aadf | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /P.O.R.-master/pirates/band/BandConstance.py | 3084b1fafdd7057904fb44feb8192cad6b7ec899 | [] | 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,244 | py | outcome_ok = 0
outcome_declined = 9
outcome_not_online = 10
outcome_already_invited = 11
outcome_already_in_Band = 12
outcome_full = 13
outcome_recently_invited = 14
MAX_BAND_MEMBERS = 12
BandMakeEvent = 'BandMakeEvent'
BandAddEvent = 'BandAddEvent'
BandSetCaptainEvent = 'BandSetCaptainEvent'
BandRemoveEvent = 'BandRem... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
c85814fada2df5966221b0945bc1ba5ac1480924 | 095521582f598b65b76f222d8c1acbcaca0c24bf | /output_raw/output_input_Lx1Ly1.py | 6fc5163f524ebec0cbe9a033d06a5b0d688ee15f | [
"MIT"
] | permissive | ryuikaneko/itps_contraction | cf07e41d32e93c10db6ebeb1c4f5246b238e737b | 10816fb6c90d77f5a3b2f804ab22573d1d676eb4 | refs/heads/master | 2020-08-28T23:05:00.262183 | 2020-08-03T01:04:22 | 2020-08-03T01:04:22 | 217,847,703 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | def Contract_scalar_1x1(\
t0_2,t1_2,t2_2,\
t0_1,t1_1,t2_1,\
t0_0,t1_0,t2_0,\
o1_1\
):
##############################
# ./input/input_Lx1Ly1.dat
##############################
# (o1_1*(t1_1.conj()*((t2_1*(t2_0*t1_0))*(t1_1*((t0_0*t0_1)*(t0_2*(t2_2*t1_2)))))))
# cpu_cost= 6.04e+10 ... | [
"27846552+ryuikaneko@users.noreply.github.com"
] | 27846552+ryuikaneko@users.noreply.github.com |
86f698f7d8d5c7cfd608eaafe79d63a8b0eb18e9 | 4111ca5a73a22174f189361bef654c3f91c3b7ed | /Lintcode/Ladder_all_A_OA/1563. Shortest path to the destination.py | 48bee8bb3ef8e656816609bf09cf2f8d0f824c98 | [
"MIT"
] | permissive | ctc316/algorithm-python | 58b541b654509ecf4e9eb8deebfcbdf785699cc4 | ac4580d55e05e93e407c6156c9bb801808027d60 | refs/heads/master | 2020-03-16T06:09:50.130146 | 2019-08-02T02:50:49 | 2019-08-02T02:50:49 | 132,548,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | class Solution:
"""
@param targetMap:
@return: nothing
"""
def shortestPath(self, targetMap):
n = len(targetMap)
m = len(targetMap[0])
from queue import Queue
q = Queue()
q.put((0, 0))
visited = [[False for _ in range(m)] for __ in range(n)]
... | [
"mike.tc.chen101@gmail.com"
] | mike.tc.chen101@gmail.com |
ee81b899c6541035f84172ed6bdc9122b5c2ad05 | 58ca1aedfd2c2c43ce3f71e7877f92c51d41adf8 | /filter_boost.py | 7eb7dd7c85ddbaf8c0158ea3ec0773068f690eb8 | [] | no_license | seaun163/DeepSLAM | 00d88ee00367987cb4b7a57db3b0bedafeeb4e68 | a038772bd7de897fb8253214813bfab09e31d62f | refs/heads/master | 2021-01-25T08:19:28.198277 | 2016-10-18T19:11:32 | 2016-10-18T19:11:32 | 93,752,917 | 1 | 0 | null | 2017-06-08T13:32:24 | 2017-06-08T13:32:24 | null | UTF-8 | Python | false | false | 4,391 | py | import numpy as np
import h5py
import scipy.sparse
import scipy.io
from constants import *
import ipdb
import os
import pickle
# frame length, which also dictates the delay being frame capture and feedback
# because of forward_fit
# which isn't even in the report...
flen = DEE
flen_2 = 3
dt = EPSILON
st = 0.75 #kind o... | [
"saubin@uwaterloo.ca"
] | saubin@uwaterloo.ca |
9358246c129bb1d8b1e564a81ba419196d73a04a | 30f6633a24d799fddd51672c528e4baee649d8cd | /6.01/designLab09/simulator/core/search/search.py | 11d2ff11f60cd14eada34c78bd6c767fc197f676 | [] | no_license | Rajpratik71/mit-courses | e12c864435a1af2c8b7034af956fd2f53d559cfc | 86a06a3192e17230a05c5c7beeed5699df73be22 | refs/heads/master | 2023-06-22T21:05:37.240985 | 2023-01-26T06:44:49 | 2023-01-26T06:44:49 | 192,182,074 | 0 | 2 | null | 2023-04-05T04:00:47 | 2019-06-16T11:15:24 | TeX | UTF-8 | Python | false | false | 3,299 | py | """
Search infrastructure.
Credit to Chapter 7 of MIT 6.01 notes
(http://mit.edu/6.01/www/handouts/readings.pdf).
"""
__author__ = 'mikemeko@mit.edu (Michael Mekonnen)'
from constants import PRINT_FAIL_REASON
from core.data_structures.priority_queue import Priority_Queue
class Search_Node:
"""
Representation... | [
"wangjohn@mit.edu"
] | wangjohn@mit.edu |
70be3975013551c5c951c1f9da8444e2c6273397 | 9eb48a3b8d5b1127012579a818ad349d21df2414 | /Django2.6/djusers2/djusers2/urls.py | cb92ccbd44dd9b5cf5eef70172579be1432e0fdf | [] | no_license | rahulsayon/Django1-to-Django-1.8 | b864deb46529c29a6cd424e3c9f1e99baa8942af | 2f4ae9343b631ff53caa50c8a822c7b4718c5512 | refs/heads/master | 2022-12-11T17:02:24.183982 | 2020-09-06T15:31:02 | 2020-09-06T15:31:02 | 293,305,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | """djusers2 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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-base... | [
"rahulsayon95@gmail.com"
] | rahulsayon95@gmail.com |
808034c7ccf8082a00e739cd27d0b9f1e4d28040 | c4af06a090818ea05b3e6c11866406b4a5d3378a | /diary/tests/test_views.py | d75d629eb6e2caf9d9a6ef65d1557b70f5eb02f1 | [] | no_license | shige-horiuchi/private_diary | c88adff27bf4208ca7451bff841e5f300ac64d0a | e8b3cb63129c73d6c98f530ef543c19b02a5e79c | refs/heads/master | 2021-01-03T19:03:29.599143 | 2020-02-21T06:51:37 | 2020-02-21T06:51:37 | 240,201,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,717 | py | from django.contrib.auth import get_user_model
from django.test import TestCase
from django.urls import reverse_lazy
from ..models import Diary
class LoggedInTestCase(TestCase):
"""各テストクラスで共通の事前準備処理をオーバーライドした独自TestCaseクラス"""
def setUp(self):
"""テストメソッド実行前の事前設定"""
# テストユーザーのパスワード
se... | [
"shige33717@gmail.com"
] | shige33717@gmail.com |
2210cba8d3da1e4a07b474131e7a1c9266cffc5a | 35522da66f15ee51a251b008b39d3457e70cf7de | /web/nut/models/NUTInput.py | cc23dbe18e3c2bb3285d3337197789cb5d7fa33c | [] | no_license | yeleman/nut | 34d74e72d137903285f3938f3165cefb45afb7ea | 5e68ae23df6c4d77a055dfbe85ae37a9fcdc4cd0 | refs/heads/master | 2016-09-06T03:19:55.898651 | 2012-02-06T18:30:25 | 2012-02-06T18:30:25 | 2,733,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | #!/usr/bin/env python
# encoding=utf_8
# maintainer: rgaudin
from django.db import models
from django.utils.translation import ugettext_lazy as _, ugettext
class NUTInput(models.Model):
""" Input """
class Meta:
app_label = 'nut'
verbose_name = _(u"Input")
verbose_name_plural = _(u"... | [
"rgaudin@gmail.com"
] | rgaudin@gmail.com |
8d48f45e0e6026af661aef287d578466e41d8245 | d22db204c665d16847447551cedc07756d357eb2 | /hydrus/client/gui/ClientGUICore.py | 11dfa96ae748ebcb4c2a0789eebcbcacc9172d7b | [
"WTFPL"
] | permissive | Suika/hydrus | 9d5070d47c328b7054a9699de310ce580e563528 | 4b2b15e152e4bed900aa972c7d4b27f7bf242f29 | refs/heads/master | 2023-05-28T00:32:50.364999 | 2023-05-10T20:22:34 | 2023-05-10T20:22:34 | 237,063,790 | 1 | 2 | NOASSERTION | 2022-10-29T22:36:54 | 2020-01-29T19:23:21 | Python | UTF-8 | Python | false | false | 2,153 | py | from qtpy import QtCore as QC
from qtpy import QtGui as QG
from qtpy import QtWidgets as QW
from hydrus.core import HydrusConstants as HC
from hydrus.client.gui import ClientGUIMenus
class GUICore( QC.QObject ):
my_instance = None
def __init__( self ):
QC.QObject.__init__( self )
... | [
"hydrus.admin@gmail.com"
] | hydrus.admin@gmail.com |
d7a93b3db19f615ebcdd0ac1d10a919df7fbe912 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03946/s474179666.py | 715113807ff685cf063ff9f19abb2a900c2d1f50 | [] | 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 | 609 | py | n,t=map(int,input().split())
a=list(map(int,input().split()))
diff_v=0
max_a_v=0
max_a_pos=[]
aa=set([])
bb=set([])
for i in range(1,len(a)):
index=len(a)-i-1
if max_a_v<a[index+1]:
max_a_v=a[index+1]
max_a_pos=[index+1]
elif max_a_v==a[index+1]:
max_a_pos.append(index+1)
if ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9fc53d2f86b48376293a5a058d7bc51c042f9954 | 432a8d6bc8ad5af9cb5585c2184b05f58e842285 | /realestate/utils/lib.py | 4d27c004e2ffb49fcfc1a66ea242da7599daace1 | [] | no_license | 314casso/estate-agent | 963e2a909ac9b190253d8ee40a69947cf19b1261 | ccd07bd599dc51251523cf5e4ea6991b1d0d529d | refs/heads/master | 2022-03-21T04:37:44.946548 | 2022-03-15T19:29:06 | 2022-03-15T19:29:06 | 4,037,752 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,169 | py | # -*- coding: utf-8 -*-
from estatebase.models import LayoutFeature
_capital_letters = {
u'А': u'A',
u'Б': u'B',
u'В': u'V',
u'Г': u'G',
u'Д': u'D',
u'Е': u'E',
u'Ё': u'E',
u'Ж': u'Zh',
u'З': u'Z',
u'И': u'I',
u'Й': u'Y',
u'К': u'K',
u'Л': u'L',
u'М': u'M',
u... | [
"picasso75@yandex.ru"
] | picasso75@yandex.ru |
7f5db971fd478bb2ddf727c5947c78c2ad8f595f | ef50ddb13bc1e21e0feb7ccef228d7593a67924a | /vize/130401064.py | cbb6d848233adc660af1fb03870ab2d065225646 | [
"Unlicense"
] | permissive | nyucel/blm2010 | 8577ffda17312b41545ad4b9e2fef10b99bd3d8e | 544df2b5c946fba1864c4c6c3a6e349d0f10d18e | refs/heads/master | 2022-11-16T16:12:50.811339 | 2020-06-27T11:10:55 | 2020-06-27T11:10:55 | 259,298,537 | 3 | 155 | Unlicense | 2020-06-27T11:10:57 | 2020-04-27T11:49:35 | Python | UTF-8 | Python | false | false | 2,622 | py | # Süleyman Baltacı - 130401064
# -*- coding: utf-8 -*-
import numpy as np
def RMSE(pred, target):
err = np.subtract(target, pred)
return (np.mean(err**2))**0.5
# veri dosyasi acilir
f = open("veriler.txt")
# veriler okunur, varsa bos satirlar silinir
data = f.readlines()
if "\n" in data: dat... | [
"necdetyucel@gmail.com"
] | necdetyucel@gmail.com |
628f41c51f58945e9f1e879863efe51d95e39ea8 | cdf38bcd5f8a1f383a6c3b7d427382c3b83d4831 | /users/schema.py | e49405ee50228175e5c6b66cdf5d7415c987d34b | [] | no_license | profmcdan/real-estate-api | 95725947f8893fbdf37156e2dc0055cd64e4f75e | 44fe874151844139dc1f912128534565a6cfc029 | refs/heads/master | 2023-08-09T07:15:25.400049 | 2019-10-19T20:05:44 | 2019-10-19T20:05:44 | 216,026,644 | 0 | 0 | null | 2023-07-22T19:08:33 | 2019-10-18T13:09:48 | Python | UTF-8 | Python | false | false | 1,247 | py | from django.contrib.auth import get_user_model
import graphene
from graphene_django import DjangoObjectType
from graphql import GraphQLError
class UserType(DjangoObjectType):
class Meta:
model = get_user_model()
class CreateUser(graphene.Mutation):
user = graphene.Field(UserType)
class Argument... | [
"danielale9291@gmail.com"
] | danielale9291@gmail.com |
bd0ff58733337b54a62c497740f531e4ad1eb6c9 | e972e39c4580ce0099eb905c1922b501dce54901 | /update/manager.py | 425234f3f256bc175b8da462919582e9e8e6f79b | [
"Apache-2.0"
] | permissive | y-du/module-update-service | cf8070e1fa842ea7767fb8315b2bb1bd377ff623 | 34de1474ab26cd8f590d93809ddf1376a62d8b49 | refs/heads/master | 2022-09-12T09:21:12.200249 | 2020-05-25T18:46:26 | 2020-05-25T18:46:26 | 266,853,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,985 | py | """
Copyright 2020 Yann Dumont
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 wr... | [
"42994541+y-du@users.noreply.github.com"
] | 42994541+y-du@users.noreply.github.com |
f3cb3e73b19d480a327c9c4be7db3b599096e61e | 9918208c80a3c396d8a1e13783d501d60dbc2050 | /integration_tests/conftest.py | 3fb8ef70a199bdfdb9c0ef602f656687b6fc764c | [] | no_license | benjimin/digitalearthau | 2d3010be76fad0d0b6b4854dbbad07e98254b239 | 5098bf3c88627cad78a8caa5ab703c586c17a6f7 | refs/heads/develop | 2022-02-27T07:36:16.009689 | 2017-09-14T05:51:27 | 2017-09-14T05:51:27 | 103,460,937 | 0 | 0 | null | 2017-09-13T23:10:15 | 2017-09-13T23:10:15 | null | UTF-8 | Python | false | false | 3,552 | py | import itertools
import logging
import os
from contextlib import contextmanager
from pathlib import Path
import pytest
import shutil
import yaml
import digitalearthau
from datacube.config import LocalConfig
from datacube.index._api import Index
from datacube.index.postgres import PostgresDb
from datacube.index.postgr... | [
"jez@stulk.com"
] | jez@stulk.com |
3035b1f0f246ca1584d7f6b2f6e66ffe09a73ff8 | 07f34b776ac30e0e5e431730826eba0b324c5ad6 | /fleet/deploy/template_manager.py | b8cfdc6736c8d9fdebaaed15d5a81f4add8297d2 | [
"MIT"
] | permissive | chrismcguire/fleet-py | bc54bd3293fcf5f921149ea412fe80ae8a9201bf | be8fdfc09e70110a8169add6a682e19d46ef6252 | refs/heads/master | 2021-01-17T09:24:16.390100 | 2015-08-13T22:55:16 | 2015-08-13T22:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | __author__ = 'sukrit'
from pkg_resources import resource_string
BUNDLED_TEMPLATE_PREFIX = "bundled://"
RAW_TEMPLATE_PREFIX = "raw://"
def fetch_template(template_url):
if template_url.startswith('http://') or \
template_url.startswith('https://'):
pass
if template_url.startswith(BUNDL... | [
"sukrit007@gmail.com"
] | sukrit007@gmail.com |
b03a754744d2e92f98ee97643c8249fbd63105f3 | 20f951bd927e4e5cde8ef7781813fcf0d51cc3ea | /fossir/core/db/sqlalchemy/__init__.py | a5540829307aa4983312efca38ece0cfeda969e1 | [] | no_license | HodardCodeclub/SoftwareDevelopment | 60a0fbab045cb1802925d4dd5012d5b030c272e0 | 6300f2fae830c0c2c73fe0afd9c684383bce63e5 | refs/heads/master | 2021-01-20T00:30:02.800383 | 2018-04-27T09:28:25 | 2018-04-27T09:28:25 | 101,277,325 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | # This file is part of fossir.
# Copyright (C) 2002 - 2017 European Organization for Nuclear Research (CERN).
#
# fossir is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (a... | [
"hodardhazwinayo@gmail.com"
] | hodardhazwinayo@gmail.com |
ae21bc2c5a6ff8248e3231bbae691421738545f1 | 0cb970785a746a30f9b44b3e5234157818688197 | /listsFolder/sort.py | 16f655fb2a7ec882998f946257dc9b5209e1ce96 | [] | no_license | charan2108/pythonprojectsNew | 4255bbb81b6cf0d47c51c131ed93a0bb331a669c | b2f273d44937ec576daa0235d0d0326ff5149bf8 | refs/heads/main | 2023-05-03T16:55:33.242693 | 2021-05-26T11:18:17 | 2021-05-26T11:18:17 | 371,001,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | cars = ['ferrari', 'ford', 'benz', 'audi', 'lamb']
print(cars)
cars.sort()
print(cars)
#reverse
cars = ['ferrari', 'ford', 'benz', 'audi', 'lamb']
print(cars)
cars.sort(reverse=True)
print(cars) | [
"sumacharan.adabala@gmail.com"
] | sumacharan.adabala@gmail.com |
d134bb106b4a554dcd7baf533c2c404fd5273d94 | cfc49e6e65ed37ddf297fc7dffacee8f905d6aa0 | /modulo_counter.py | 5717eeb441ff429c28ab838b66ead40db1c14c04 | [] | no_license | IfDougelseSa/cursoPython | c94cc1215643f272f935d5766e7a2b36025ddbe2 | 3f9ceb9701a514106d49b2144b7f2845416ed8ec | refs/heads/main | 2023-06-12T16:51:29.413031 | 2021-07-07T00:20:53 | 2021-07-07T00:20:53 | 369,268,883 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | """
Módulo Collections - Counter(Contador)
Collections -> High-performance Container datetypes
Counter -> Recebe um iterável como parâmetro e cria um objeto do tipo Collections Counter que é parecido
com um dicionário, contendo como chave o elemento da lista passado como parâmetro e como valor a quantidade
de ocorrẽ... | [
"doug_ccortez@outlook.com"
] | doug_ccortez@outlook.com |
1c4c018ec89c29b3fc8cded55da8088b460dfabd | 923a14dd594191d77e30465027ece8371f28a7a6 | /web-serpng/code/serpng/routers.py | 40ae10220712dfe584223b7dc6fce22c9e272418 | [] | no_license | alyago/django-web | 3af7b3389df59104eaf5e50ed9cc2c3e730fed7f | da3073eec6d676dfe0164502b80d2a1c75e89575 | refs/heads/master | 2021-01-10T19:33:45.425520 | 2013-11-21T09:43:37 | 2013-11-21T09:43:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | # Copyright (c) 2012, Simply Hired, Inc. All rights reserved.
"""Database Router"""
class SHRouter(object):
def db_for_read(self, model, **hints):
if model.__module__.startswith("autocomplete.models"):
return 'autocomplete'
else:
None
class AllowSyncDBRouter(object):
... | [
"oleg@simplyhired.com"
] | oleg@simplyhired.com |
7e332c7f55f2003b9937427a4820c249e496d06f | 306555b6f10ce4d64caca22c4a291a5ac6337e07 | /Gaussian_Process.py | a9ae6361738bc3536a29d8302b8fce228b8be27e | [] | no_license | BerenMillidge/GPs | 1b107a265bb77452d2bb9a4a0854ae1b398ae6b7 | 3a8824c7c39a48d827ff098556bc23406cc7faad | refs/heads/master | 2022-03-27T10:58:32.282459 | 2017-09-28T15:02:39 | 2017-09-28T15:02:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py |
from __future__ import division
import numpy as np
from kernels import*
default_kernel = Kernel("exponential_kernel", [0.01])
class GP:
def __init__(self, dataprovider, kernel = default_kernel):
self.dataprovider = dataprovider
self.kernel = kernel
def one_d_prior(self,data_vector):
N = len(data_vector)
... | [
"noreply@github.com"
] | BerenMillidge.noreply@github.com |
acc8860470b0001df7b8ae5651c2f43957062c25 | ab9b1505a9f57d28cb12b853f14c7d00d34c36c5 | /cursopython/pythonteste/aula21ambiente02.py | 99e2618b048a734f08e61eb2d64041cd1d63e1f6 | [
"MIT"
] | permissive | AtilaCosta87/Python | 610a1170c8a043e09c3580f18a048181cfbc8348 | b4eea7885d16df80feecc4c699a8348ca13a80c2 | refs/heads/master | 2022-05-27T04:24:40.469166 | 2020-04-25T02:08:23 | 2020-04-25T02:08:23 | 258,666,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | def soma(a=0, b=0, c=0):
"""
-> Faz a soma de três valores e mostra o resultado na tela.
:param a: O primeiro valor
:param b: O seguando valor
:param c: O terceiro valor
Função criada por Átila Costa na aula do canal CursoemVideo
"""
s = a + b + c
print(f'A soma vale {s}', end='')
... | [
"atila_costa87@hotmail.com"
] | atila_costa87@hotmail.com |
6644c8aa6bde8b175f454eb1aa510bbe1314618c | cebc80d0d9dcdd0b2458f4d2105dcc489d2079ee | /setup.py | 2d85325bff794a58bf51d88e285b8a390c7235ac | [] | no_license | Gilles86/flogiston | 1bd1fafc1a4a1efc5369293db34bcd0d4ce16582 | 62f27cdc4e740855c18139ff402face543bc5c92 | refs/heads/master | 2016-09-05T09:06:40.993535 | 2015-11-23T13:37:58 | 2015-11-23T13:37:58 | 29,321,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | #!/usr/bin/env python
#from distutils.core import setup
from setuptools import setup
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration(None, parent_package, top_path)
config.add_subpackage('flogiston')
return config
def mai... | [
"Gilles.de.Hollander@gmail.com"
] | Gilles.de.Hollander@gmail.com |
5c3ec9b8bca633c0b13497f11002177fbd589d58 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_151/ch22_2020_09_09_18_55_45_398877.py | 949d4f34161a93ae72b7f3993ee0a87fd3a1d540 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | def reduction(x, y):
f = round((365 * x * y * 10) / (60 * 24), 0)
return f
a = int(input('cigarros p/ dia '))
b = int(input('fuma a quantos anos '))
c = reduction(a, b)
print(c) | [
"you@example.com"
] | you@example.com |
128902adf28d2ffa058348060bc4cb5b09cddc8a | 5eb97d15b975c3ef3de10401594f31c502e04de4 | /YeNet-Tensorflow/testSRM.py | f04d18729452e84e6c517654c59ebc785251e5bd | [] | no_license | coriverchen/Steganalysis | 863f133f506afa9e8400d2c14acee833d942d51f | f7844698bff217ff206b9a3de15ccec708951c83 | refs/heads/master | 2022-03-30T10:25:30.118715 | 2019-11-29T04:21:59 | 2019-11-29T04:21:59 | 256,136,538 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 8 14:33:16 2019
@author: Lee
"""
import numpy as np
SRM_Kernels = np.load('SRM_Kernels.npy')
print(SRM_Kernels[:1]) | [
"870407139@qq.com"
] | 870407139@qq.com |
c48d547a02107433a9ba668d5a79b1c1374499e5 | 03f1a716d426dcb7b5d77b9050e6332ab0726a9f | /nn6/__init__.py | 724f5c4d6039bd7f245d65cd0740ea1f63523eab | [
"MIT"
] | permissive | brice291/nn6 | 8e8688179834dfea3bd8d1f453e1135bfb6c5e45 | 9c7ca32514aa121ad36504f0c11177d8989660ae | refs/heads/master | 2022-04-03T02:00:13.599236 | 2019-12-02T09:20:16 | 2019-12-02T09:20:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | import numpy as np
from numpy.linalg import norm
# 函數 f 對變數 k 的偏微分: df / dk
def df(f, p, k, step=0.01):
p1 = p.copy()
p1[k] = p[k]+step
return (f(p1) - f(p)) / step
# 函數 f 在點 p 上的梯度
def grad(f, p, step=0.01):
gp = p.copy()
for k in range(len(p)):
gp[k] = df(f, p, k, step)
return gp
# 使用梯度下降法尋找函數最低點
def gd(f,... | [
"ccckmit@gmail.com"
] | ccckmit@gmail.com |
850ac07380673e3ec79b314d5c5c986d50092181 | f0a44b63a385e1c0f1f5a15160b446c2a2ddd6fc | /examples/transform_ucs.py | ee0962d84cada4759f9a40046f14c79071c8b632 | [
"MIT"
] | permissive | triroakenshield/ezdxf | 5652326710f2a24652605cdeae9dd6fc58e4f2eb | 82e964a574bcb86febc677bd63f1626318f51caf | refs/heads/master | 2023-08-17T12:17:02.583094 | 2021-10-09T08:23:36 | 2021-10-09T08:23:36 | 415,426,069 | 1 | 0 | MIT | 2021-10-09T21:31:25 | 2021-10-09T21:31:25 | null | UTF-8 | Python | false | false | 4,940 | py | # Copyright (c) 2020-2021 Manfred Moitzi
# License: MIT License
import pathlib
import math
import ezdxf
from ezdxf import zoom
from ezdxf.math import UCS, Vec3
OUTDIR = pathlib.Path("~/Desktop/Outbox").expanduser()
NARROW = "OpenSansCondensed-Light"
X_COUNT = 7
Y_COUNT = 7
DX = 2
DY = 2
def add_circle(msp, ucs):
... | [
"me@mozman.at"
] | me@mozman.at |
35d2c662fbb29329f46cc039d12df65fcc2e402e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_337/ch78_2020_04_12_01_52_05_952994.py | 618d2e41901705a68a61d1e4af17bec9060603e5 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | nome = input('Nome?')
atletas = {}
i = 0
while nome != 'sair':
a = float(input('aceleração?'))
atletas[nome] = a
nome = input('Nome?')
if i == 0:
vence = a
i+= 1
valores = atletas.values()
dic = {}
for i in valores:
tempo = (200/i)**(1/2)
for k in atletas.keys():
if atletas[... | [
"you@example.com"
] | you@example.com |
6da4091fd8ac8ad313d1b7259bd84c569f0a6e08 | 920f0fbb7064f2017ff62da372eaf79ddcc9035b | /lc_ladder/company/amzn/oa/Search_A_2D_Matrix.py | 617d0c9cea04baca4bd662f4ceb49c9887b4a548 | [] | no_license | JenZhen/LC | b29a1c45d8c905680c7b4ad0017516b3dca80cc4 | 85219de95e41551fce5af816b66643495fe51e01 | refs/heads/master | 2021-06-03T10:03:02.901376 | 2020-08-05T19:44:48 | 2020-08-05T19:44:48 | 104,683,578 | 3 | 1 | null | 2020-08-05T19:44:50 | 2017-09-24T23:30:35 | Python | UTF-8 | Python | false | false | 1,980 | py | #! /usr/local/bin/python3
# Requirement
# Example
# 写出一个高效的算法来搜索 m × n矩阵中的值。
#
# 这个矩阵具有以下特性:
#
# 每行中的整数从左到右是排序的。
# 每行的第一个数大于上一行的最后一个整数。
# 样例
# 考虑下列矩阵:
#
# [
# [1, 3, 5, 7],
# [10, 11, 16, 20],
# [23, 30, 34, 50]
# ]
# 给出 target = 3,返回 true
#
# 挑战
# O(log(n) + log(m)) 时间复杂度
"""
Algo: Binary Search
D.S.:
Solutio... | [
"jenzhen.nyc89@yahoo.com"
] | jenzhen.nyc89@yahoo.com |
8fccf7816b9470fb84f1a4004f158f26b3e9010d | fa165cdb86defd6d6131ac763c38d6875c4ebec8 | /manage.py | e472a9b3db0e0dfb7893cce4f0d989c49fb87545 | [] | no_license | HongHanh120/generate-image-captcha | 3f93665393eae0df41c2bafdb2e02a1d9dd29da4 | 144aae5fed9e15c670d8eda9501e53d7dc252256 | refs/heads/main | 2023-05-16T05:41:52.215234 | 2021-06-01T19:18:17 | 2021-06-01T19:18:17 | 354,935,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'generate_captcha.settings')
try:
from django.core.management import execute_from_command_line
ex... | [
"lehonghanh.120@gmail.com"
] | lehonghanh.120@gmail.com |
d7ca2662615309dffb8694f7333f7b13866cb74a | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1/kcrt/A.py | 8a78979fdd4d2249fd6b2449edec65b0d5a74bda | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 371 | py | # -*- coding: utf-8 -*-
T = int(input())
for t in range(T):
N = int(input())
if N == 0:
result = "INSOMNIA"
else:
n = 0
digits_seen = set()
while len(digits_seen) != 10:
n += N
for x in str(n):
digits_seen.add(x)
result = str(n... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
497971334d48da8fa1c01f649fa7eedf0c06d2a2 | b83ac23819fd7ba998563f2ad870405bdd07cc2b | /experiments/util/util.py | 5911d151f027ca6f96b5121f25011c81af5f76ec | [
"MIT"
] | permissive | Limmen/gym-idsgame | 699abd2894bce15108f1606f5fb71f612dd7ba03 | d10830fef55308d383c98b41b34688a7fceae357 | refs/heads/master | 2023-09-01T17:32:16.768138 | 2023-08-22T12:00:53 | 2023-08-22T12:00:53 | 247,794,752 | 49 | 12 | MIT | 2021-04-21T07:50:06 | 2020-03-16T19:00:27 | Python | UTF-8 | Python | false | false | 3,889 | py | """
Utility functions for experiments with the idsgame-env
"""
import io
import json
import jsonpickle
import logging
import time
import argparse
import os
from gym_idsgame.config.client_config import ClientConfig
def create_artefact_dirs(output_dir: str, random_seed : int) -> None:
"""
Creates artefact direct... | [
"kimham@kth.se"
] | kimham@kth.se |
c83e2817d9a860680a5a11fdeadfb2a9d45c9037 | 1793aac7856809ed8e121955056154de50a2ae8f | /c07_pycon_tw/p14_digit_stack.py | 51b37d4dba55ac1dce6921328221a67bb068261c | [] | no_license | ZpRoc/checkio | fe4af88f116f75f8197cd31d857ae5262615b6af | 126647f8971732bdf13d49092df178654dee889b | refs/heads/main | 2023-03-22T23:52:37.330312 | 2021-03-10T02:28:56 | 2021-03-10T02:28:56 | 335,871,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | # ---------------------------------------------------------------- #
# Digit Stack
# Take the one off the top of the pile!
# (Numbers)
# ---------------------------------------------------------------- #
# ---------------------------------------------------------------- #
# -----------------------------------... | [
"zheng_roc@163.com"
] | zheng_roc@163.com |
5f477bed338ceb2d6e833ae8f6b79e32aa1680ee | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_sneers.py | a803280a36259a958b364c4e672bcfc2c97f2596 | [
"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 | 231 | py |
from xai.brain.wordbase.nouns._sneer import _SNEER
#calss header
class _SNEERS(_SNEER, ):
def __init__(self,):
_SNEER.__init__(self)
self.name = "SNEERS"
self.specie = 'nouns'
self.basic = "sneer"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
291ab02ed979348e94062f8dfa48aa3b87c29f40 | af5c8d742226965ef73cf761782f0825fb374b7c | /string_format/parcela.py | 21d6fe1122398071d26d21ef974fc71e743cdae5 | [] | no_license | Zahidsqldba07/PythonExamples-1 | 002e99d2581c05bfb8a1766caff12991f55e11bb | a9f5bbc58cc6941a73c537b3a22d812cc9081785 | refs/heads/master | 2023-03-16T08:40:43.781000 | 2019-01-11T04:33:03 | 2019-01-11T04:33:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | # coding: utf-8
# Passagem Aérea
# (c) Héricles Emanuel, UFCG, Programação 1
milhas = float(raw_input())
aliquota = float(raw_input())
valor_passagem = (milhas * aliquota) + 51.00
print "Valor da passagem: R$ %.2f" % valor_passagem
#Formas de Pagamento
# À vista
pag_vista = valor_passagem * 0.75
# Em 6 parcelas... | [
"noreply@github.com"
] | Zahidsqldba07.noreply@github.com |
2facbb1ce7570c8227c25a19f561d45f47185148 | 8ef5a09d76a11c56963f18e6a08474a1a8bafe3c | /leet_code/1446. Consecutive Characters.py | 9379134d01e057544f21fef8f3b8eec1ee75c106 | [] | no_license | roiei/algo | 32c4677649c7666db148f6183fbfbf66c8b1969f | ae8bb8bf4ae4026ccaf1dce323b4098547dd35ec | refs/heads/master | 2022-04-01T19:21:27.768675 | 2022-02-19T06:15:29 | 2022-02-19T06:15:29 | 169,021,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py |
import time
from util.util_list import *
from util.util_tree import *
import copy
import heapq
import bisect
import collections
class Solution:
def maxPower(self, s: str) -> int:
if not s:
return 0
cur = s[0]
mx = cnt = 1
for i in range(1, len(s)):
... | [
"hyoukjea.son@hyundai.com"
] | hyoukjea.son@hyundai.com |
2f1a3d7401b312b6b3dbbeef3cacb792e34eb756 | 206e54f4ad23386a08b634dbf1c5bc691ef76390 | /build/scripts-3.6/4scanner | 80627675ba7ac052fa3161208bd2848b3dfb8f4e | [
"MIT"
] | permissive | Python3pkg/4scanner | f604cd0e265ec96f39116270c5dedb67f4d9b7d1 | 7e647081fd6a4fb7baff1a5fd11e2cdc3d22bd20 | refs/heads/master | 2021-01-21T09:14:32.962898 | 2017-05-18T19:38:38 | 2017-05-18T19:38:38 | 91,650,218 | 0 | 0 | null | 2017-05-18T04:56:17 | 2017-05-18T04:56:17 | null | UTF-8 | Python | false | false | 1,866 | #!/usr/local/opt/python3/bin/python3.6
import argparse
import os
import scanner
import time
def main():
# Arguments parsing and validation
parser = argparse.ArgumentParser()
parser.add_argument("keywords_file",
help="file with the keywords to search for")
parser.add_argument("... | [
"raliclo@gmail.com"
] | raliclo@gmail.com | |
c20ef58d20f34d8cb7e2c6df7c4607975c74d86e | 2dadf0fb64c52655704d9231b8039fc0343c5e88 | /py_wake/tests/test_blockage_models/test_selfsimilarity.py | f7695f796c9dfe4810417efb6ead3f6cf6b334b5 | [
"MIT"
] | permissive | luqidndx/PyWake | 45377245e8d35db3c7b33b27ef11b812db0a6ada | 3d046eb14c4597de49ac2fee3771b8e0e68820ad | refs/heads/master | 2022-07-02T01:40:28.575907 | 2020-05-13T16:51:42 | 2020-05-13T16:51:42 | 259,701,236 | 0 | 0 | MIT | 2020-04-28T17:06:59 | 2020-04-28T17:06:58 | null | UTF-8 | Python | false | false | 5,796 | py | import pytest
import matplotlib.pyplot as plt
import numpy as np
from py_wake.deficit_models import SelfSimilarityDeficit
from py_wake.deficit_models.no_wake import NoWakeDeficit
from py_wake.deficit_models.noj import NOJDeficit
from py_wake.examples.data import hornsrev1
from py_wake.examples.data.hornsrev1 import Ho... | [
"mmpe@dtu.dk"
] | mmpe@dtu.dk |
fedd53070c0b4a1d64e61591d4c69662132cb765 | 7b55cfc4ffa7678e4c7b8f2312831ebbd549e54f | /proj1/tests/other-tests/oskis-angels_tests/regexperts_tests/test-proj1 | afb5b61b6d7e62ec1bf967ca1639a3a68c36a002 | [] | no_license | czchen1/cs164-projects | 0d330efef85421e611a436b165428ba0ddfb3512 | a04cafbcaafd32e518227dacf89a6d7837bf9f57 | refs/heads/master | 2020-03-27T04:03:31.727524 | 2018-08-23T21:43:46 | 2018-08-23T21:43:46 | 145,909,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,436 | #!/usr/bin/env python3
# Test compiler against suite of Python programs. Requires that pyunparse be
# on the path.
import os, sys, re
from subprocess import Popen, PIPE
from getopt import getopt, GetoptError
def Usage():
print('''
Usage: test-proj1 [ --errors ] [ --compiler=COMPILER ] [ --retain ] \
... | [
"czchen@mit.edu"
] | czchen@mit.edu | |
e7e0c38178d388d789d1caec87893f7825006c74 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/L/lk_morgan/molecular_spectroscopy_data_3.py | e22a7abf2fdbca5d126d00da9a5629182b65adc7 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,992 | py | ###########################################################################################
# We use a ScraperWiki library called pdftoxml to scrape PDFs.
# This is an example of scraping a simple PDF.
###########################################################################################
import scraperwiki
import... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
061e7dda33dcb2c2fb0db6cad3aee933e290bf59 | b1bc2e54f8cd35c9abb6fc4adb35b386c12fe6b4 | /toontown/src/coghq/LobbyManager.py | a7cc7848ebf5356ae4059739f695cbf473e47cec | [] | no_license | satire6/Anesidora | da3a44e2a49b85252b87b612b435fb4970469583 | 0e7bfc1fe29fd595df0b982e40f94c30befb1ec7 | refs/heads/master | 2022-12-16T20:05:13.167119 | 2020-09-11T16:58:04 | 2020-09-11T17:02:06 | 294,751,966 | 89 | 32 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | from pandac.PandaModules import *
from toontown.toonbase import ToontownGlobals
from direct.distributed import DistributedObject
from direct.directnotify import DirectNotifyGlobal
from toontown.toonbase import TTLocalizer
class LobbyManager(DistributedObject.DistributedObject):
notify = DirectNotifyGlobal.directNo... | [
"66761962+satire6@users.noreply.github.com"
] | 66761962+satire6@users.noreply.github.com |
bf4dfb85175642bde5e44e837f015463e1b8fed7 | 036a41c913b3a4e7ae265e22a672dd89302d3200 | /1201-1300/1237/1237_Python_1.py | 7e07569009a051950622f77e1c5934eb19a13fe8 | [] | no_license | ChangxingJiang/LeetCode | e76f96ebda68d7ade53575354479cfc33ad4f627 | a2209206cdd7229dd33e416f611e71a984a8dd9e | refs/heads/master | 2023-04-13T15:23:35.174390 | 2021-04-24T05:54:14 | 2021-04-24T05:54:14 | 272,088,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | from typing import List
class CustomFunction:
def f(self, x, y):
return x + y
class Solution:
def findSolution(self, customfunction: 'CustomFunction', z: int) -> List[List[int]]:
idx1 = 1
idx2 = 1000
ans = []
while idx1 <= 1000 and idx2 >= 1:
if customfunc... | [
"1278729001@qq.com"
] | 1278729001@qq.com |
b35153d84b3d5de30ced8c149b72bb65a1168607 | 1ba5c90292dbed982a23167fd083dd2cf29f6d8d | /bin/boliau-filter | 5a2dda5ecd69ac3fffc88b2999546c11e061382c | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | hychen/boliau | 8d99a331056ef18001cae5503084624c1e43618c | 618e4557c7b4a3d97c9926b1d7e691291472ff7c | refs/heads/master | 2021-01-01T17:37:25.012545 | 2013-08-16T09:58:58 | 2013-08-16T09:58:58 | 7,454,169 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | #!/usr/bin/env python
# -*- coding: utf-8 -*
#
# File: boliau-filter
#
# Copyright (C) 2012 Hsin-Yi Chen (hychen)
# Author(s): Hsin-Yi Chen (hychen) <ossug.hychen@gmail.com>
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Soft... | [
"ossug.hychen@gmail.com"
] | ossug.hychen@gmail.com | |
338ab5824090a54458b92bcebc0868ff7bbea5b4 | 61eec9771de17885af1f817ddf7df8eaa1fdd168 | /build/robmovil_msgs/catkin_generated/generate_cached_setup.py | 116ed7667ac27a834209aaf5ce7318f3a3bf28e8 | [] | no_license | jrr1984/TP_FINAL_ROBOTICA | c1ce681b5ea4ca4fea7bfcde00fb289dc81842df | 46988eccec3d8e11f56a6e6e43315d446ded12e7 | refs/heads/master | 2020-03-28T21:26:39.339951 | 2018-09-17T16:42:14 | 2018-09-17T16:42:14 | 149,156,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"juanreto@gmail.com"
] | juanreto@gmail.com |
fc075357702383e855d1b916cb2ef66b92f99214 | 7fdac5209f86de756b9a8123a0911b70738eceeb | /pySDC/tests/test_tutorials/test_step_1.py | 50d02c63344d3cb3b66cf680ff3d9c731d6e2d36 | [
"BSD-2-Clause"
] | permissive | Parallel-in-Time/pySDC | edc66e399f6066effc5aaa376883e88e06b5332b | 1a51834bedffd4472e344bed28f4d766614b1537 | refs/heads/master | 2023-08-30T23:17:56.017934 | 2023-08-30T05:42:00 | 2023-08-30T05:42:00 | 26,165,004 | 30 | 31 | BSD-2-Clause | 2023-09-14T06:40:13 | 2014-11-04T10:56:53 | Jupyter Notebook | UTF-8 | Python | false | false | 524 | py | import pytest
@pytest.mark.base
def test_A():
from pySDC.tutorial.step_1.A_spatial_problem_setup import main as main_A
main_A()
@pytest.mark.base
def test_B():
from pySDC.tutorial.step_1.B_spatial_accuracy_check import main as main_B
main_B()
@pytest.mark.base
def test_C():
from pySDC.tutori... | [
"r.speck@fz-juelich.de"
] | r.speck@fz-juelich.de |
43019e739fd97a9d55793a78ce5e2ae210eff614 | 8876406eaef11bff8566b54746ca2a7fae3525db | /setup.py | 4c3c25f64e6ea9d2e13bd8210b73d610353940d2 | [
"BSD-3-Clause"
] | permissive | remibergsma/cs | 19e0ba4b9ea5c97329e743577d1c8cb10aa593d2 | de004f6aa08ee8fc0dc342b334a2731b8c5be964 | refs/heads/master | 2020-12-28T20:30:43.209507 | 2015-06-03T08:40:13 | 2015-06-03T08:40:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | # coding: utf-8
from setuptools import setup
with open('README.rst', 'r') as f:
long_description = f.read()
setup(
name='cs',
version='0.6.8',
url='https://github.com/exoscale/cs',
license='BSD',
author=u'Bruno Renié',
description=('A simple yet powerful CloudStack API client for '
... | [
"brutasse@gmail.com"
] | brutasse@gmail.com |
8059df45728dd522b8eaf9bfac6c0b962d0f7839 | 0667af1539008f9c6c0dcde2d3f50e8bbccf97f3 | /source/rttov_test/profile-datasets-py/standard54lev_nogas/006.py | 29fa4a49fa333f38babeedbd3040338a5c6cfdcf | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bucricket/projectMAScorrection | bc6b90f07c34bf3e922225b2c7bd680955f901ed | 89489026c8e247ec7c364e537798e766331fe569 | refs/heads/master | 2021-01-22T03:54:21.557485 | 2019-03-10T01:47:32 | 2019-03-10T01:47:32 | 81,468,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,904 | py | """
Profile ../profile-datasets-py/standard54lev_nogas/006.py
file automaticaly created by prof_gen.py script
"""
self["ID"] = "../profile-datasets-py/standard54lev_nogas/006.py"
self["Q"] = numpy.array([ 1.42610400e+00, 2.25740200e+00, 3.03034000e+00,
3.69967200e+00, 4.31610400e+00, 4.7... | [
"bucricket@gmail.com"
] | bucricket@gmail.com |
14fb6d53004b22663463f0d74039ca56e3a85c52 | 8bd6b0784de9a1e6a39d0f5f23f2d8fb50c73d49 | /MethodRefine-Rand/logistics/MethodRefine/logistics_benchmark-low/testing/testing_39.py | 11af675b7493eb76367a40c8454e27bc462ca562 | [] | no_license | sysulic/MethodRefine | a483d74e65337dff4bc2539ce3caa3bf83748b48 | adbb22d4663041d853d3132f75032b7561bf605c | refs/heads/master | 2020-09-14T10:45:55.948174 | 2020-05-01T09:13:59 | 2020-05-01T09:13:59 | 223,104,986 | 3 | 2 | null | 2020-04-27T11:01:36 | 2019-11-21T06:33:16 | Python | UTF-8 | Python | false | false | 1,654 | py | #!/usr/bin/env python
# coding=utf-8
import sys
sys.path.insert(0, './')
from logistic import *
import new_tihtn_planner
state0 = new_tihtn_planner.State('state0')
allow = False
state0.loc = {'truck1':('city1','loc1'),'truck2':('city2','loc1'),'truck3':('city3','loc1'),'truck4':('city4','loc1'),'truck5':('city5','l... | [
"526552330@qq.com"
] | 526552330@qq.com |
a196daf132349155bf416fdc4b57e570c83a009f | 7f5ca987c51ffd49b3cba3ffa3e719fc2b8606aa | /classtest1.py | 1160fea16133893b6bfb38a6943c5b03ddd0e5dc | [] | no_license | Yao-Phoenix/TrainCode | 1134b995fddb3d3556fdce05c3219a875b08f6d3 | 2227a70ad5389207af7a84114a5413be3ec2ada2 | refs/heads/master | 2020-09-13T03:56:02.235742 | 2019-12-17T03:48:00 | 2019-12-17T03:48:00 | 222,648,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | class UserData:
def __init__(self,id,name):
self.id = id
self._name = name
class NewUser(UserData):
@property
def name(self):
return self._name
@name.setter
def name(self, value):
if len(value) <= 3:
print("ERROR")
return
self._name ... | [
"493867456@qq.com"
] | 493867456@qq.com |
e72c98c5a54cc288211b129dfa01220fda615b8c | 2e935ca936976d2d2bd4e785e2f3f29c63771542 | /ExPy11205.py | fba7158c4dd56aa10949bc9293c983dc7ae0a0a6 | [] | no_license | zoro6908/PY_acamedy | 4a370e866fef19f6d2e7697eb809352b6ac703f5 | 460d26639f7bd8cf2486950dc70feae6a2959ca0 | refs/heads/master | 2023-04-26T18:10:44.691326 | 2021-05-25T00:11:02 | 2021-05-25T00:11:02 | 298,425,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | # 파이썬 기초부터 활용까지 (2020.09)
# [12과] 엑셀 작업
# 정렬방식 / 폰트지정 / 선긋기 : styles 객체의 Alignment, Font, Border, Side 클래스 이용
import openpyxl
# from openpyxl.styles import Alignment, Font, Border, Side
from openpyxl.styles import *
wb = openpyxl.Workbook()
ws = wb.active
ws['B3'] = 'Hello'
ws['B3'].font = Font(name = 'HY헤드라인M',
... | [
"zoro6908@naver.com"
] | zoro6908@naver.com |
cfe2b636fcb88772b97e8c84b97d910528fa961f | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/keras/engine/training_v1.py | ed875cfba01676d954377d3288f63abbfad0c678 | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | version https://git-lfs.github.com/spec/v1
oid sha256:1eee4b42243c8bc161538de91452850d0486f84aae8e4c4cc9987a3c09eb1557
size 137398
| [
"business030301@gmail.com"
] | business030301@gmail.com |
16d42264f14e0df27c1fd16e5ca5faa78c9249da | f504fc2714ed09c3bc1e84dfe67c04af585b8700 | /Player.py | 69028cc93fd718f9f797d04ae68fa470de7516b0 | [] | no_license | MasumTech/OOP-Concept-in-Python | 04c88a28c2c8bf7ed0231c0da223f216177a07f9 | 7a0a9e214003c759a84e2e28bf8b4702b2e3ced8 | refs/heads/master | 2020-12-15T16:06:36.909927 | 2020-01-20T19:04:19 | 2020-01-20T19:04:19 | 235,169,330 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | class Player:
minAge = 18
maxAge = 50
def __init__(self,name,age):
self.name = name
self.age = age
| [
"masumrezadiu@gmail.com"
] | masumrezadiu@gmail.com |
70617f3d7d699cb8fa1781509963bc430072ca0c | b3217e2bb6e72fbcb15df99b5c6c10ea4731a5b7 | /anheng/2020NewYear/pwn/unctf_EasyShellcode/pwn1.py | 331c88293dc6c22ceb2553d7c395ca0eef05c56f | [] | no_license | CrackerCat/ctf-6 | 5704de09eda187e111c7719c71e0a81c5d5c39e3 | aa7846548451572fe54a380dc8d367a0132ad2ec | refs/heads/master | 2023-01-28T06:18:01.764650 | 2020-12-07T12:05:20 | 2020-12-07T12:05:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | #!/usr/bin/python
#coding=utf-8
#__author__:TaQini
from pwn import *
local_file = './pwn1'
local_libc = '/lib/x86_64-linux-gnu/libc.so.6'
remote_libc = local_libc # '../libc.so.6'
is_local = False
is_remote = False
if len(sys.argv) == 1:
is_local = True
p = process(local_file)
libc = ELF(local_libc)
e... | [
"742954809@qq.com"
] | 742954809@qq.com |
2523fb189b949d3b82eaec95c265a2e1f0967c70 | 48faee5b845e43e6c102cb027f43c8b886ecaa5e | /accounts/admin.py | 70ffd71bf72808920c9ff285ffcdb97d3c0f9675 | [] | no_license | hornLK/LonedayAdmin | 66c0a8b978967a0144a216f621c872a6d2197229 | 36ba3fe763788423801ad5ab14462624114da804 | refs/heads/master | 2022-12-26T06:57:47.675915 | 2018-05-15T13:08:34 | 2018-05-15T13:08:34 | 131,375,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,184 | py | from django.contrib import admin
from django import forms
from django.contrib.auth.models import Group
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from accounts.models import UserInfo,Permission,Role
class UserCreationForm(forms.Mode... | [
"bjlkq546449541@gmail.com"
] | bjlkq546449541@gmail.com |
dd095298a9afc68335157cb824950644c08ba41d | aee144770c8f4ec5987777aebe5b064e558fc474 | /doc/integrations/pytorch/parlai/tasks/squad2/build.py | 094ee646331483740208e88da52a11b78a65a498 | [
"CC-BY-SA-3.0",
"MIT",
"Apache-2.0",
"AGPL-3.0-only"
] | permissive | adgang/cortx | 1d8e6314643baae0e6ee93d4136013840ead9f3b | a73e1476833fa3b281124d2cb9231ee0ca89278d | refs/heads/main | 2023-04-22T04:54:43.836690 | 2021-05-11T00:39:34 | 2021-05-11T00:39:34 | 361,394,462 | 1 | 0 | Apache-2.0 | 2021-04-25T10:12:59 | 2021-04-25T10:12:59 | null | UTF-8 | Python | false | false | 1,480 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# Download and build the data if it does not exist.
import parlai.core.build_data as build_data
import os
from ... | [
"noreply@github.com"
] | adgang.noreply@github.com |
5c38ea20e9d5d8f3e31e5d4bd17e1440db4f3d73 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/contrib/keras/api/keras/metrics/__init__.py | 6e02c1674ee83334cbe7062ab4c5e87eda1d47c4 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:0a12f3b7372d5432f0d79f402b4769a59e1d06dc405da5210bbf689cb36fa0e2
size 2230
| [
"github@cuba12345"
] | github@cuba12345 |
67ccb1475ec05c04027a13cfadd67b4b28e9004e | cb8d1db4af4401b019775132fe92f3eae4cb92df | /_unittests/ut_cli/test_cli_file_helper.py | b24c031f8bd1ec2a412e0fabd6edd470918e6747 | [
"MIT"
] | permissive | Pandinosaurus/pyquickhelper | 041d6c6d2832845bd89027ffaab333239efc3959 | 860ec5b9a53bae4fc616076c0b52dbe2a1153d30 | refs/heads/master | 2023-07-24T12:27:25.700277 | 2023-07-17T07:02:34 | 2023-07-17T07:02:34 | 169,426,142 | 0 | 0 | MIT | 2023-07-17T07:53:04 | 2019-02-06T15:17:53 | Jupyter Notebook | UTF-8 | Python | false | false | 1,549 | py | """
@brief test tree node (time=7s)
"""
import sys
import os
import unittest
from io import StringIO
from pyquickhelper.loghelper import fLOG, BufferedPrint
from pyquickhelper.pycode import get_temp_folder
from pyquickhelper.__main__ import main
class TestCliFileHelper(unittest.TestCase):
def test_cli_fi... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
51142e7b8d3e124bfee304c104a86f3a4b396682 | f8ffa8ff257266df3de9d20d95b291e393f88434 | /Python from scratch/Warsztaty/Warsztaty01/zad01.py | 33e1c3878f88c9c49cec628e9e7d3339b1b0c28c | [] | no_license | janiszewskibartlomiej/Python_Code_Me_Gda | c0583c068ef08b6130398ddf93c3a3d1a843b487 | 7568de2a9acf80bab1429bb55bafd89daad9b729 | refs/heads/master | 2020-03-30T05:06:26.757033 | 2020-03-02T08:53:28 | 2020-03-02T08:53:28 | 150,781,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | ekwipunek = {'pieniądze':158.40,
'sprzęt':['kompas', 'latarka', 'śpiwór'],
'prowiant':['jabłko', 'woda', 'batonik', 'batonik']}
print('Lista ekwipunku to: ', ekwipunek)
print('Harcesz kupił karimatę za 29.99 zł')
ekwipunek['pieniądze'] = ekwipunek['pieniądze'] - 29.99
ekwipunek['sprzęt'].a... | [
"janiszewski.bartlomiej@gmail.com"
] | janiszewski.bartlomiej@gmail.com |
1c6026e1dbb38669cf355d1ec7f80ae280b72c1f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_wagering.py | 3ad88745da9973ac13e723d2d10defa24d8be66f | [
"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 | 235 | py |
from xai.brain.wordbase.nouns._wager import _WAGER
#calss header
class _WAGERING(_WAGER, ):
def __init__(self,):
_WAGER.__init__(self)
self.name = "WAGERING"
self.specie = 'nouns'
self.basic = "wager"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
db604c59ed67ae9680c1fe9108853daaf57af74b | 3d5958a79c02fe885324956bfead037999c73c7a | /trimesh/io/stl.py | 32912d8f687bcee9809cc8e06c6380fe138bfba6 | [
"MIT"
] | permissive | Mambix/trimesh | def56d14994076cfcc24e3c3d67d5e27bea5bb49 | 99d01909a1f4cf56d777a8339a6c2443cf37d6b8 | refs/heads/master | 2020-05-27T21:20:11.800221 | 2017-03-02T00:57:53 | 2017-03-02T00:57:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,643 | py | import numpy as np
# the exception raised if an STL file object doesn't match its header
class HeaderError(Exception):
pass
# define a numpy datatype for the data section of a binary STL file
_stl_dtype = np.dtype([('normals', np.float32, (3)),
('vertices', np.float32, (3, 3)),
... | [
"mik3dh@gmail.com"
] | mik3dh@gmail.com |
480d9a66e2a6c4e56d92084f3b27f5626c89d12a | f9b5c37a098ed940d943415aadda130c13271754 | /dailyfresh/f_goods/migrations/0003_auto_20180619_2120.py | 47da203ab64800d2950a865ce0879526e9bf7ef2 | [] | no_license | duanHongPy/django | cd00fe819576741a7c1860ea420275129d759d67 | 3fee019b3d8d50218410366d62eac29700f9e69a | refs/heads/master | 2020-03-19T23:28:01.420061 | 2018-06-21T02:53:19 | 2018-06-21T02:53:19 | 137,007,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-19 13:20
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('f_goods', '0002_auto_20180619_1910'),
]
operations = [
migrations.RemoveFi... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.