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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f75415b1c72053fc87600193f00e473c7bf954b2 | 0e94b21a64e01b992cdc0fff274af8d77b2ae430 | /pytorch/pytorch_11.py | 543d14d0138a272ccdee73aae7aae9665c94940a | [] | no_license | yangnaGitHub/LearningProcess | 1aed2da306fd98f027dcca61309082f42b860975 | 250a8b791f7deda1e716f361a2f847f4d12846d3 | refs/heads/master | 2020-04-15T16:49:38.053846 | 2019-09-05T05:52:04 | 2019-09-05T05:52:04 | 164,852,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,777 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 3 16:08:22 2019
@author: natasha_yang
@e-mail: ityangna0402@163.com
"""
#大的数据可以压缩传输下载之后再解压还原
import torch
import torch.nn as nn
from torch.autograd import Variable
import torch.utils.data as Data
import torchvision
import matplotlib.pyplot as plt
import numpy as np
##... | [
"ityangna0402@163.com"
] | ityangna0402@163.com |
251b9960cc43b1d787b4b9b6168c4e25c2192138 | c4bb6b11e9bec547bca18cf3f1c2ac0bcda6d0b0 | /halld/test/resource.py | 17cc4c6b89c88ace5893dbaa716b05ec7a8980e4 | [] | no_license | ox-it/halld | 43e8fb38a12977bc4f2323a18fdae42683c5a494 | 917012265548b76941658a56ec83dfe2cafc8e4a | refs/heads/master | 2021-01-16T01:01:26.355534 | 2015-05-05T20:36:08 | 2015-05-05T20:36:08 | 16,612,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,645 | py | import json
import unittest
from rest_framework.test import force_authenticate
from .base import TestCase
from .. import models
from .. import response_data
class ResourceListTestCase(TestCase):
def create_resources(self):
# Will be defunct by default.
self.defunct_resource = models.Resource.crea... | [
"alexander.dutton@it.ox.ac.uk"
] | alexander.dutton@it.ox.ac.uk |
12b6cb094a4322a405a3ee6b7bc100899285342d | ade82efdb6dfaa402ea5999698de10b29ba142c0 | /30DaysOfCode/day26-nested-logic.py | 57968d3c73a6952bb69ae3f066ae5174146ab56d | [] | no_license | markronquillo/programming-challenges-and-algorithms | 057747a3a9311d61b9a8f7bf6048ea95bb533a2e | 0deb686069cd82bd0c7d0bf7e03aabd7f1359da3 | refs/heads/master | 2021-01-12T05:18:23.637189 | 2017-12-02T14:45:29 | 2017-12-02T14:45:29 | 77,906,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py |
act_date = input()
exp_date = input()
def compute(act_date, exp_date):
act_day, act_month, act_year = [int(x) for x in act_date.split(' ')]
exp_day, exp_month, exp_year = [int(x) for x in exp_date.split(' ')]
if act_year > exp_year:
return 10000
elif act_month > exp_month:
if act_year < exp_year:
... | [
"markronquillo23@gmail.com"
] | markronquillo23@gmail.com |
43352cd049ced563696e7de3b487e343123b42d3 | 42f6b269f1baa87e295bd2281fb5a7e975b21ac7 | /04.For_Loop/03.More_Exercises/probe.py | 9909f6841f03786bf4604e4523fdbc5ad29f3626 | [] | no_license | Tuchev/Python-Basics---september---2020 | 54dab93adb41aa998f2c043f803f4751bbc8c758 | 8899cc7323611dd6eed00aa0550071a49dc72704 | refs/heads/main | 2023-06-19T11:48:11.607069 | 2021-07-15T13:33:02 | 2021-07-15T13:33:02 | 386,295,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | n = int(input())
even_sum = 0
odd_sum = 0
for number in range(1, n + 1):
current_number = int(input())
if number % 2 == 0
even_sum += current_number
else:
odd_sum += current_number
| [
"noreply@github.com"
] | Tuchev.noreply@github.com |
01d3dbef5745f091babf67730a13213939cded7b | 245b92f4140f30e26313bfb3b2e47ed1871a5b83 | /airflow/providers/google_vendor/googleads/v12/services/types/bidding_seasonality_adjustment_service.py | 9627a896feddaeef267b36c368273ea14a1ac92e | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ephraimbuddy/airflow | 238d6170a0e4f76456f00423124a260527960710 | 3193857376bc2c8cd2eb133017be1e8cbcaa8405 | refs/heads/main | 2023-05-29T05:37:44.992278 | 2023-05-13T19:49:43 | 2023-05-13T19:49:43 | 245,751,695 | 2 | 1 | Apache-2.0 | 2021-05-20T08:10:14 | 2020-03-08T04:28:27 | null | UTF-8 | Python | false | false | 7,069 | py | # -*- coding: utf-8 -*-
# Copyright 2022 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"
] | ephraimbuddy.noreply@github.com |
2727043746f5618d29fb60b6cdf111942c7228a5 | 82762d776e2400948af54ca2e1bdf282885d922c | /581. 最短无序连续子数组.py | 8bc3cb543d1ee49d622254c2d89f338667666d2e | [] | no_license | dx19910707/LeetCode | f77bab78bcba2d4002c9662c122b82fc3c9caa46 | 624975f767f6efa1d7361cc077eaebc344d57210 | refs/heads/master | 2020-03-17T02:50:46.546878 | 2019-06-25T09:22:13 | 2019-06-25T09:22:13 | 133,208,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | class Solution(object):
def findUnsortedSubarray(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
nums2 = sorted(nums)
if nums == nums2:
return 0
i = 0
while nums[i] == nums2[i]:
i += 1
j = -1
while nums[j]... | [
"dx19910707@qq.com"
] | dx19910707@qq.com |
6a28f4f34572bb5d2680de4aa8031dcde01e6e9f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02846/s115010620.py | 03e500ab3f57d88caf928fb9d1dd60d08d26c229 | [] | 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 | 409 | py | t1, t2 = map(int, input().split())
a1, a2 = map(int, input().split())
b1, b2 = map(int, input().split())
ave_a = t1 * a1 + t2 * a2
ave_b = t1 * b1 + t2 * b2
if ave_a < ave_b:
(a1, a2), (b1, b2) = (b1, b2), (a1, a2)
ave_a, ave_b = ave_b, ave_a
if ave_a == ave_b:
print('infinity')
exit()
half, all = t1... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8943983fe54f8f93c3c1901374f3d729d104c32a | 79f871eccb9e7c87d60575b7147ec464964b010d | /api/tests/core/test_resource_paginated_datasets.py | a3f9185c1e43d855fff960be9f90b0e3feccd716 | [] | no_license | lucassimon/upload-datasets | 2c0e4d2945204503e8eefda5934eb8ca03561d1b | 02f2b7324f389b1940ee60c886650cb04dd5e80e | refs/heads/master | 2023-01-12T07:14:13.175505 | 2019-12-08T21:41:17 | 2019-12-08T21:41:17 | 226,594,431 | 0 | 0 | null | 2023-01-05T02:32:22 | 2019-12-08T00:33:52 | Python | UTF-8 | Python | false | false | 1,225 | py | import pytest
from unittest import mock
from apps.core.models import Dataset
from .factories import DatasetFactory
from tests.utils import replace_id_to_take_snapshot
class TestDataset:
def setup_method(self):
DatasetFactory.reset_sequence()
def teardown_method(self):
Dataset.objects.delete(... | [
"lucassrod@gmail.com"
] | lucassrod@gmail.com |
17f33729a06fe96c12e6d2add6182124fa44708c | 184f13269249b08e5b62444ece10af8a3a35c9a5 | /python_nlp_explorations_chatbot_keywords_extraction/article_3_keyword_extraction_nlp_spacy/05_kw_extractor_spacy_linguistic_features.py | b09b4d1d37e43a4303f452073fb8f9226411fc4c | [
"MIT"
] | permissive | bflaven/BlogArticlesExamples | 3decf588098897b104d429054b8e44efec796557 | aca40bb33f1ad4e140ddd67d6bb39bdd029ef266 | refs/heads/master | 2023-09-04T16:57:57.498673 | 2023-09-01T13:14:12 | 2023-09-01T13:14:12 | 42,390,873 | 9 | 4 | MIT | 2023-03-02T22:39:06 | 2015-09-13T09:48:34 | HTML | UTF-8 | Python | false | false | 5,184 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
"""
cd /Users/brunoflaven/Documents/02_copy/_000_IA_bruno_light/_my_article_python-explorations/git_repo_python_explorations_nlp/article_3_keyword_extraction_nlp_spacy/
python 05_kw_extractor_spacy_linguistic_features.py
"""
import spacy
from collections import Counter... | [
"bflaven@gmail.com"
] | bflaven@gmail.com |
3f9ffcbd11f2b59511325d196baa1f17d53eccc4 | ae69d0402e48f07752dbe9b37d3e814fb314f0ba | /scripts/rltest/main.py | ebb6d94ab31a37bbfecaf9971e9335802be7a4b1 | [] | no_license | mfkasim1/deepmk | e07600828ec929fc397516f90abbfd86f7ac56c2 | 392964790d67d0f02b981aaba2d887c3f5a14551 | refs/heads/master | 2023-04-26T07:57:30.286946 | 2021-05-25T08:08:26 | 2021-05-25T08:08:26 | 147,033,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | import deepmk
import torch
import gym
import torch.nn as nn
import torch.optim as optim
import torch.optim.lr_scheduler as lr_scheduler
import deepmk.rl.dataloaders as rlloader
from deepmk.rl.trainers import QLearn
from deepmk.rl.actors import QNet
from deepmk.rl import train, show
# set up the training components
env... | [
"firman.kasim@gmail.com"
] | firman.kasim@gmail.com |
736d0d735cacf199d75cdf98f81f5ed5fd8aa6fb | 380a47268c5975473a2e7c38c747bc3bdbd981b1 | /benchmark/third_party/DeepSpeed/deepspeed/autotuning/tuner/cost_model.py | 0cdcef6483b4417e033f6e130c81eba7dc7b7d47 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | FMInference/FlexGen | 07aa9b1918c19b02077e13ad07e76840843810dd | d34f7b4b43ed87a374f394b0535ed685af66197b | refs/heads/main | 2023-07-24T02:29:51.179817 | 2023-07-21T22:38:31 | 2023-07-21T22:38:31 | 602,270,517 | 6,821 | 411 | Apache-2.0 | 2023-07-07T22:59:24 | 2023-02-15T21:18:53 | Python | UTF-8 | Python | false | false | 1,723 | py | from .utils import *
try:
import xgboost as xgb
except ImportError:
xgb = None
class XGBoostCostModel():
def __init__(self, loss_type, num_threads=None, log_interval=25, upper_model=None):
assert xgb is not None, "missing requirements, please install deepspeed w. 'autotuning_ml' extra."
... | [
"sqy1415@gmail.com"
] | sqy1415@gmail.com |
63601989f71d582a2eec18528e01b6995527a9de | 2aba62d66c2c622bdc148cef451da76cae5fd76c | /exercise/learn_python_dm2039/ch30/ch30_6.py | 2d0948851697dcf6dd8ee2c7187bb6e577979064 | [] | no_license | NTUT-109AB8011/crawler | 6a76de2ab1848ebc8365e071e76c08ca7348be62 | a703ec741b48d3af615a757fed7607b1f8eb66a6 | refs/heads/master | 2023-03-26T22:39:59.527175 | 2021-03-30T03:29:22 | 2021-03-30T03:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | # ch30_6.py
import datetime
deltaTime = datetime.timedelta(days=100)
timeNow = datetime.datetime.now()
print("現在時間是 : ", timeNow)
print("100天後是 : ", timeNow + deltaTime)
| [
"terranandes@gmail.com"
] | terranandes@gmail.com |
513aefbd73b1950b907fd41d6a90aed13b4154f3 | 71d3555e12cb53ea81b097dfdf760d4aae8830d9 | /triton_transformer/transformer.py | cec34fb30038a73fac4b467207a3d7c094c4c56a | [
"MIT"
] | permissive | armheb/triton-transformer | 35cc60d8842503a71f43545007ff83197a93dc43 | 21b8490848ff00906b4e688e22017508580e5ec7 | refs/heads/main | 2023-08-27T14:37:36.483284 | 2021-10-04T21:39:35 | 2021-10-04T21:39:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,166 | py | import torch
from torch import nn, einsum
import torch.nn.functional as F
from einops import rearrange
from triton_transformer.layernorm import layernorm
from triton_transformer.softmax import softmax
from triton_transformer.cross_entropy import cross_entropy_fn
from triton_transformer.bmm import fused_relu_squared
fr... | [
"lucidrains@gmail.com"
] | lucidrains@gmail.com |
d2de17bafbf275d1cf8507a86b58db7f9b8add31 | 12f006a0e5d75ef2349d4ae519c1c9cac5309761 | /Solution_907_4.py | 9329286bdef8e1420f5479bdb78e3ee8c2f75bfd | [] | no_license | TimothySjiang/leetcodepy | c613db16282eade713e01b7d641c0f5b341ec84b | ef64e46b8833a684b8b0355ce576b767a0e03596 | refs/heads/master | 2020-07-01T14:48:35.953841 | 2020-01-12T06:19:44 | 2020-01-12T06:19:44 | 201,199,810 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | class Solution:
def sumSubarrayMins(self, A: List[int]) -> int:
res = 0
s = []
A = [0] + A + [0]
for i, x in enumerate(A):
while s and A[s[-1]] > x:
j = s.pop()
k = s[-1]
res += A[j] * (i - j) * (j - k)
s.append(... | [
"shjiang@ucdavis.edu"
] | shjiang@ucdavis.edu |
3eadf25d4ee4c8cd157ea0d95e9b6ef32ddf51ea | 0062a19abf334cdb8e7927270106b9ca496ba42e | /boxOffice/admin.py | 88bcf3e8dcb677f3c83572f05a05697efb6f6936 | [] | no_license | Dawinia/movie_backend | 177099d35c5a8f6e89851a3e1e662563d24c242a | 650aa4d7540bc02639a0832069cc540e6c3df3bc | refs/heads/master | 2022-04-22T01:35:54.886991 | 2020-04-23T17:21:30 | 2020-04-23T17:21:30 | 258,153,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | from django.contrib import admin
from .models import BoxOffice, MovieInfo
# Register your models here.
class BoxOfficeAdmin(admin.ModelAdmin):
fieldsets = [
(None, {'fields': ['yearRate', 'crawlDate']}),
('movieInfo', {'fields': ['movieId', 'movieName', 'releaseInfo']}),
('boxOfficeInfo',... | [
"dawinialo@163.com"
] | dawinialo@163.com |
56c198953033a0f78f55db2c3afa95d0de6787e9 | 0c084555ac64297faacf2a62df80b7caf3fc8822 | /mygene.info/src/hub/dataload/sources/entrez/unigene_upload.py | cc9caeafb5aaa0749dddab7917463902f7283c54 | [
"Apache-2.0"
] | permissive | NCATS-Tangerine/MyGeneBeacon | ae59b3a49142fe8da57d421a3494000c61cbc35e | 5c70d986d522ee9d9b709784afe992e315a5b76e | refs/heads/master | 2021-05-13T18:05:44.020677 | 2018-01-09T18:58:06 | 2018-01-09T18:58:06 | 116,851,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | from .parser import Gene2UnigeneParser
import biothings.hub.dataload.uploader as uploader
class EntrezUnigeneUploader(uploader.MergerSourceUploader):
name = "entrez_unigene"
main_source = "entrez"
def load_data(self, data_folder):
self.parser = Gene2UnigeneParser(data_folder)
self.parser... | [
"lhannest@sfu.ca"
] | lhannest@sfu.ca |
cd01e7265b05f24764a2257ba093d8968d37c3f9 | 5d08402e56855d55d0f14ff7642f27e01cadcced | /listing/migrations/0011_auto_20210112_0908.py | dcc94ef6a06111b4ef4ed8b9ac93d7f9c3d52654 | [] | no_license | crowdbotics-apps/test-23821 | 783d757965931f35819343bf57627265dfa5f6e5 | 5cf465eabbd921055d31ac38b54693aa581713a5 | refs/heads/master | 2023-02-12T15:23:18.370076 | 2021-01-14T00:46:16 | 2021-01-14T00:46:16 | 329,440,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | # Generated by Django 2.2.17 on 2021-01-12 09:08
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('listing', '0010_merge_20210112_0906'),
]
operations = [
migrations.CreateModel(
name='ListingP... | [
"dawarsardar786@gmail.com"
] | dawarsardar786@gmail.com |
9119d3d91838e00e3ab736b6c6f7daa0efe4acd9 | 70cf354a5eb38ddaf6e594b162706f3b38925647 | /02-03/todolist/todolist/settings.py | ebbe5f45ca6c4125016ff65607df10be584ea861 | [] | no_license | hanifmisbah/PythonDjango-Practice-Coding | 0051c73c67ddfa9d49e47b1fd77b798b253275bb | e15de23fd1d7f4b118f7149d6d6ff3b25f898b82 | refs/heads/master | 2022-12-25T00:13:09.855630 | 2020-10-05T10:50:13 | 2020-10-05T10:50:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,120 | py | """
Django settings for todolist project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"hanifmisbah97@gmail.com"
] | hanifmisbah97@gmail.com |
0ae12e49362282d60fe111f7b96ed887d37a6046 | 4c2da39f554f6fb5a92c6ceb886fa5305e085b8c | /mylar/torrent/clients/qbittorrent.py | 6cb1c28065af55d5e0b3ebc6952df6db6b4e290b | [] | no_license | ferretcomp/mylar | c48520f69d43e92145bdcc9c17fd3ef735bf9b0b | 2b2687361b3decadc65b10f1b8319dad165698ea | refs/heads/master | 2021-04-15T08:15:09.923411 | 2018-01-17T20:55:24 | 2018-01-17T20:55:24 | 94,567,775 | 0 | 0 | null | 2017-06-16T17:41:55 | 2017-06-16T17:41:55 | null | UTF-8 | Python | false | false | 5,014 | py | import os
import mylar
import base64
import time
from mylar import logger, helpers
from lib.qbittorrent import client
class TorrentClient(object):
def __init__(self):
self.conn = None
def connect(self, host, username, password):
if self.conn is not None:
return self.connect
... | [
"evilhero@gmail.com"
] | evilhero@gmail.com |
fcaf80bdda5cd0b6b0ce65c9fb6246ac8ad6e44f | dbc0202e6a002fae4d86a0b16649af0cc1577b4e | /app/newsh.py | 489d0f8eff1e569c83b5d60dd3031a701929a349 | [] | no_license | huangchao20/CheckPackage | c8613efd844e7ac20cfaf090590b341d1241702f | c2ddddd2578a2b15044573261520f29b3f110450 | refs/heads/master | 2020-04-16T21:56:48.858233 | 2019-01-23T00:39:16 | 2019-01-23T00:39:16 | 165,946,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | import os
import re
def createNewSh(str1):
print("开始组建sh脚本")
print("str1=[%s]" % str1)
if os.path.isfile(str1):
pass
def openfile(dpath, filename):
"""
:function:将命令添加到sh脚本里面
:param dpath:
:param filename:
:return:
"""
if os.path.splitext(filename)[1] == ".sh":
... | [
"842713855@qq.com"
] | 842713855@qq.com |
a460369a6cb9776a2850ebfd39f7e10664457c89 | e5d5fa28999bcc6c642bb42dda93afd38e272b81 | /LeetCode/28. Find the Index of the First Occurrence in a String/solve4.py | 6bdbe92c17e5dbadf39ec79dae682ed9224d6700 | [] | no_license | chiahsun/problem_solving | cd3105969983d16d3d5d416d4a0d5797d4b58e91 | 559fafa92dd5516058bdcea82a438eadf5aa1ede | refs/heads/master | 2023-02-05T06:11:27.536617 | 2023-01-26T10:51:23 | 2023-01-26T10:51:23 | 30,732,382 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | class Solution:
def strStr(self, haystack: str, needle: str) -> int:
N, prev, pos = len(needle), -1, -1
fallback = [-1] * N
for i in range(1, N):
while prev >= 0 and needle[i] != needle[prev+1]:
prev = fallback[prev]
if needle[i] == needle[prev+1]:
... | [
"chiahsun0814@gmail.com"
] | chiahsun0814@gmail.com |
b6930afe6a1a7a309ead3c407c3baa734f28d9c1 | 951500339f5887590fbf83a900dc633887402580 | /examples/06-classes.py | 38f77b461d46ceb82464e6b518e669ca42ae5a97 | [] | no_license | Tanwuld/skillbox-chat | abfd4b6a888c84ee6274ace42e295508594887ef | 4218bebe40167549bee5e6ee45f5b9623f84ef03 | refs/heads/master | 2020-09-29T04:47:45.834886 | 2019-12-12T15:59:37 | 2019-12-12T15:59:37 | 226,955,034 | 1 | 0 | null | 2019-12-12T15:59:39 | 2019-12-09T19:52:57 | Python | UTF-8 | Python | false | false | 1,253 | py | # Created by Artem Manchenkov
# artyom@manchenkoff.me
#
# Copyright © 2019
#
# Объектно-ориентированного программирование, использование классов и объектов
#
# Простой класс с переменными
class Person:
first_name: str
last_name: str
age: int
person1 = Person()
person1.first_name = 'John'
person1.la... | [
"artyom@manchenkoff.me"
] | artyom@manchenkoff.me |
ef3b7fb16a5b900b2a8336fd5516cad4bdbbb9dd | c2163c653ba589ea610733250230ab4b57ab7d6a | /doc/uses/EPSCs-and-IPSCs/smooth histogram method/04.py | 6d67cefc7771ee5cfdad63b64fa73f9b4ad96701 | [
"MIT"
] | permissive | harshadsbs/SWHLab | 6ff57f816f252da888f5827e9ea677e696e69038 | a86c3c65323cec809a4bd4f81919644927094bf5 | refs/heads/master | 2021-05-20T12:24:55.229806 | 2018-12-14T03:18:38 | 2018-12-14T03:18:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,568 | py | """
MOST OF THIS CODE IS NOT USED
ITS COPY/PASTED AND LEFT HERE FOR CONVENIENCE
"""
import os
import sys
# in case our module isn't installed (running from this folder)
if not os.path.abspath('../../../') in sys.path:
sys.path.append('../../../') # helps spyder get docs
import swhlab
import matplotlib.pyplot as ... | [
"swharden@gmail.com"
] | swharden@gmail.com |
9e46dea8c726e6b556c22797629ff6ce5462f2a9 | 9aaa39f200ee6a14d7d432ef6a3ee9795163ebed | /Algorithm/Python/507. Perfect Number.py | ec25990fcf6a4ba827dcadc6c1d1b4da2a527a0f | [] | no_license | WuLC/LeetCode | 47e1c351852d86c64595a083e7818ecde4131cb3 | ee79d3437cf47b26a4bca0ec798dc54d7b623453 | refs/heads/master | 2023-07-07T18:29:29.110931 | 2023-07-02T04:31:00 | 2023-07-02T04:31:00 | 54,354,616 | 29 | 16 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # -*- coding: utf-8 -*-
# @Author: WuLC
# @Date: 2017-03-31 23:48:21
# @Last modified by: WuLC
# @Last Modified time: 2017-03-31 23:49:23
# @Email: liangchaowu5@gmail.com
# naive solution
class Solution(object):
def checkPerfectNumber(self, num):
"""
:type num: int
:rtype: bool
... | [
"liangchaowu5@gmail.com"
] | liangchaowu5@gmail.com |
fb18b89e34d8324bd64c7a65ddc675258ea78b59 | d838bed08a00114c92b73982a74d96c15166a49e | /docs/data/learn/Bioinformatics/input/ch6_code/src/Stepik.6.3.ExerciseBreak.CountUniqueReversalsFor100SyntenyBlocks.py | ebdc61515fc02e393e9c4f69178b127ff28b5644 | [] | no_license | offbynull/offbynull.github.io | 4911f53d77f6c59e7a453ee271b1e04e613862bc | 754a85f43159738b89dd2bde1ad6ba0d75f34b98 | refs/heads/master | 2023-07-04T00:39:50.013571 | 2023-06-17T20:27:05 | 2023-06-17T23:27:00 | 308,482,936 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | # Poorly worded question. Here's my crack at rewording it: What's the maximum number of unique reversals possible on a
# permutation of length 100? So for example, assume you have a permutation of length 2: [+A, +B]...
#
# reverse 1: [+A, +B] to [-A ,+B]
# reverse 2: [+A, +B] to [+A, -B]
# reverse range 1-2: [+A, +B]... | [
"offbynull@gmail.com"
] | offbynull@gmail.com |
a1232a7431c67b8eab70fd33da37c300d8418e45 | 000002c39ac5c00f1f70d7667d772d3acbe95680 | /batchtest.py | 6b500f8323c871c4a0d69f28526dc462ca91a247 | [] | no_license | ag8/shapes | ab0dcfa1d46c412faf63c421edec9a0165eb5090 | c6b38eca3a50b8a31ab7ccec11158e4a99fb628b | refs/heads/master | 2020-12-03T06:36:40.435743 | 2017-07-07T01:23:23 | 2017-07-07T01:23:23 | 95,675,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | from __future__ import print_function
import tensorflow as tf
f = ["f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8"]
l = ["l1", "l2", "l3", "l4", "l5", "l6", "l7", "l8"]
fv = tf.constant(f)
lv = tf.constant(l)
rsq = tf.RandomShuffleQueue(10, 0, [tf.string, tf.string], shapes=[[],[]])
do_enqueues = rsq.enqueue_many([fv... | [
"andrew2000g@gmail.com"
] | andrew2000g@gmail.com |
f7eadefbc3b67fe920ef3ab321a31c5a0f3b62e9 | 67e817ca139ca039bd9eee5b1b789e5510119e83 | /Tree/[662]Maximum Width of Binary Tree.py | de96b2b77ecccee00510b6deba357ba2222af7b4 | [] | no_license | dstch/my_leetcode | 0dc41e7a2526c2d85b6b9b6602ac53f7a6ba9273 | 48a8c77e81cd49a75278551048028c492ec62994 | refs/heads/master | 2021-07-25T21:30:41.705258 | 2021-06-06T08:58:29 | 2021-06-06T08:58:29 | 164,360,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,541 | py | # Given a binary tree, write a function to get the maximum width of the given tr
# ee. The maximum width of a tree is the maximum width among all levels.
#
# The width of one level is defined as the length between the end-nodes (the le
# ftmost and right most non-null nodes in the level, where the null nodes between... | [
"dstch@163.com"
] | dstch@163.com |
aaac2a8d988a604a4d19efaa994359ce8a18e87f | aaa6ae528d66e711f41699d6b6ee79fa059be4f8 | /satchmo/shipping/modules/tieredweightzone/migrations/0002_auto_20190417_1857.py | 693f7226b1d816c86b07f97d97552a1cbf02d836 | [
"BSD-2-Clause"
] | permissive | ToeKnee/jelly-roll | c23e1eac1c2983ede4259bd047578c404a8c72e0 | c2814749c547349ff63415bdc81f53eb1215c7c0 | refs/heads/master | 2020-05-21T22:34:00.399719 | 2020-02-03T20:20:02 | 2020-02-03T20:20:02 | 33,657,967 | 0 | 1 | null | 2015-07-21T20:36:13 | 2015-04-09T08:37:28 | Python | UTF-8 | Python | false | false | 1,617 | py | # Generated by Django 2.1.7 on 2019-04-17 18:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tieredweightzone', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='carrier',
name='delivery',
... | [
"tony@ynottony.net"
] | tony@ynottony.net |
a9c83352baf1af5398777f9338af863c8f4e6112 | bc25016fdae676eb7b000e59b8e823da6fefe157 | /servo/stm32uart.py | d0758b97afd2735e62bd0b36b9621b37d3a6cf0f | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mmind/servo-hdctools | b275d98e8c71b46cfc326aad774ce83b29b55d58 | c7d50190837497dafc45f6efe18bf01d6e70cfd2 | refs/heads/master | 2020-06-24T20:41:19.110569 | 2016-11-28T13:04:07 | 2016-11-28T13:04:07 | 74,622,430 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,724 | py | # Copyright 2016 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Allow creation of uart/console interface via stm32 usb endpoint."""
import errno
import exceptions
import logging
import os
import pty
import select
im... | [
"chrome-bot@chromium.org"
] | chrome-bot@chromium.org |
5252b25fafef0707d008c0d81a0299eea6cd5383 | 169e75df163bb311198562d286d37aad14677101 | /tensorflow/tensorflow/python/kernel_tests/where_op_test.py | 17575da6f1bf2c226a67419b4bc8156f70f6dedc | [
"Apache-2.0"
] | permissive | zylo117/tensorflow-gpu-macosx | e553d17b769c67dfda0440df8ac1314405e4a10a | 181bc2b37aa8a3eeb11a942d8f330b04abc804b3 | refs/heads/master | 2022-10-19T21:35:18.148271 | 2020-10-15T02:33:20 | 2020-10-15T02:33:20 | 134,240,831 | 116 | 26 | Apache-2.0 | 2022-10-04T23:36:22 | 2018-05-21T08:29:12 | C++ | UTF-8 | Python | false | false | 5,579 | py | # Copyright 2015 The TensorFlow Authors. 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 applica... | [
"thomas.warfel@pnnl.gov"
] | thomas.warfel@pnnl.gov |
9cb4ecfd020a49a4c42e9f0db47935b6e84e0704 | 13a4df75e81ee4330a197340a300ec0755247a93 | /Strings/4.balanceStrings.py | 7e038243f1e6a517488ccb561510ce15d9197e87 | [] | no_license | ltfafei/py_Leetcode_study | d22955380bf9f134bc9cb215fea73ec4f9ea94cf | 0fd1bca56a621001cf9093f60941c4bfed4c79a5 | refs/heads/master | 2023-07-13T18:15:59.098314 | 2021-08-30T15:11:17 | 2021-08-30T15:11:17 | 363,597,757 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,147 | py | #!/usr/bin/python
# Env: python3
# Rewrite by afei_0and1
'''
4.1、平衡字符串
现在输入一个只包含L和R的字符串,并其中L与R的个数是相等的。符合这种输入条件的字符串称之为”平衡字符串“。
要求通过编程对输入的平衡字符串进行分割,尽可能多的分割出平衡字符串子串,并将可以得到的子串数量返回。
例如:输入:RLLRRRL,将返回结果:3,其可以分割成:RL、LLRR和RL;输入:LLLRRR将返回结果:1,因为其只能分割
出LLLRRR。
'''
def balanceStrings(string):
res = 0 #最终组合结果
lc = 0... | [
"m18479685120@163.com"
] | m18479685120@163.com |
854703fda0ce649f68979599bf1e07ee0f3ca0ee | 40125ea7386e269bbae2425a318a3fd2e8571cb3 | /src/ie/urls_library.py | d191538ba4416aa1650b93c462b5b0788bef5722 | [
"MIT"
] | permissive | compressore/moc | bb160a308562e6e57fe4300a8d8a6ee00a59e785 | 8e05e3e60d2d2c7534e0c659b6ed0743e9189f6b | refs/heads/master | 2023-02-11T18:13:44.096427 | 2021-01-06T11:08:02 | 2021-01-06T11:08:02 | 327,283,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | """ Project-specific URL Configuration
See urls.py for more information
"""
from django.contrib import admin
from django.urls import include, path
from django.conf import settings
from core.admin import admin_site
current_site = "library"
urlpatterns = [
path("admin/", admin_site.urls),
path("tinymce/", ... | [
"paul@penguinprotocols.com"
] | paul@penguinprotocols.com |
aca32633a7afe077270b8ec6cb5ecd7dd189ccc3 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/sacremoses/__init__.py | 48cc9af42c69614012407cbaee0083bb18bc67f6 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:4b560216eecc87542d164c228258494730d7eeb75b4bddbd9bf242ff0b88cfb8
size 196
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
c664d8e4031d11d62a0818bb29281830bbbd6ece | a6194c0c20dc09a115f54ebd6a02fbbb55e206e8 | /dqn_agent/q_network.py | 3970d8bc020f04f36e19d8113c5b9155449e1612 | [] | no_license | Rowing0914/tf_agent_investigation | c1149c1b7371c070ef8513e7bf0fd63a48d33cee | dbce3862abf12a21115e67e6391314f8d866b658 | refs/heads/master | 2020-08-13T13:53:58.249071 | 2019-10-14T07:56:40 | 2019-10-14T07:56:40 | 214,979,265 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,205 | py | from __future__ import absolute_import, division, print_function
import gin, tensorflow as tf
from tf_agents.networks import encoding_network, network
def validate_specs(action_spec, observation_spec):
del observation_spec
flat_action_spec = tf.nest.flatten(action_spec)
if len(flat_action_spec) > 1:
... | [
"kosakaboat@gmail.com"
] | kosakaboat@gmail.com |
49e463ea9d2c04cee39afcce3719c6f9c650dad7 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/netapp/volumes/replications/reverse.py | 8cd797fd2d4a34131e35fbbbbdc0477a66f1efbb | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 3,224 | py | # -*- coding: utf-8 -*- #
# Copyright 2023 Google LLC. 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 requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
8c8158918e991fc5c7b0286a8c393cab6a256e10 | 0bde5f7f09aa537ed1f4828d4e5ebee66475918f | /h2o-py/tests/testdir_algos/rf/pyunit_custom_metrics_pubdev_5088.py | 2a91952de3807564ef0b33cc1b40b49fbe8907f1 | [
"Apache-2.0"
] | permissive | Winfredemalx54/h2o-3 | d69f1c07e1f5d2540cb0ce5e6073415fa0780d32 | dfb163c82ff3bfa6f88cdf02465a9bb4c8189cb7 | refs/heads/master | 2022-12-14T08:59:04.109986 | 2020-09-23T08:36:59 | 2020-09-23T08:36:59 | 297,947,978 | 2 | 0 | Apache-2.0 | 2020-09-23T11:28:54 | 2020-09-23T11:28:54 | null | UTF-8 | Python | false | false | 1,637 | py | import sys
sys.path.insert(1, "../../../")
import h2o
from tests import pyunit_utils
from tests.pyunit_utils import CustomMaeFunc, CustomRmseFunc,\
assert_correct_custom_metric, regression_model, multinomial_model, binomial_model
from h2o.estimators.random_forest import H2ORandomForestEstimator
# Custom model me... | [
"noreply@github.com"
] | Winfredemalx54.noreply@github.com |
0cb7704f335aa1089c00787ef0e0221b9dfc20c3 | b316c1d1e57ca197b0b24625b5ceede12905a979 | /tango_with_django_project/tango_with_django_project/urls.py | 67adf6c79e5fb3c4505ed3c1b74f796dcb90e178 | [] | no_license | JayWelborn/Rango | 962ed888e33c591074c80cbf07f77edca2d4d821 | 41c832c9bc791f910b948fe9026cd41fc12cf129 | refs/heads/master | 2021-01-22T22:16:35.134729 | 2017-09-22T19:05:02 | 2017-09-22T19:05:02 | 92,766,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | """tango_with_django_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, nam... | [
"jesse.welborn@gmail.com"
] | jesse.welborn@gmail.com |
19e82b23b4f97c9a1c1bd88fe98d27f73b01476b | 3faf4b9fb76145b2326446bc6bc190a5712b3b62 | /Algorithms/0695 Max Area of Island.py | cdc720cba3b793eb17af5a9da0ce13bc619edfd6 | [] | no_license | cravo123/LeetCode | b93c18f3e4ca01ea55f4fdebceca76ccf664e55e | 4c1288c99f78823c7c3bac0ceedd532e64af1258 | refs/heads/master | 2021-07-12T11:10:26.987657 | 2020-06-02T12:24:29 | 2020-06-02T12:24:29 | 152,670,206 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | # Solution 1, DFS
class Solution:
def dfs(self, i, j, grid, m, n):
area = 1
grid[i][j] = 0
for di, dj in [[-1, 0], [1, 0], [0, -1], [0, 1]]:
x, y = i + di, j + dj
if 0 <= x < m and 0 <= y < n and grid[x][y] == 1:
area += self.dfs(x, y, grid, m... | [
"cc3630@columbia.edu"
] | cc3630@columbia.edu |
c3f9cd2060490f4c7f83b91a605c42694ee81a49 | ee92057a8ebc91ba90d8055a9bece25d24211499 | /kattis/maximum-points-you-can-obtain-from-cards/maximum-points-you-can-obtain-from-cards.py | 5705a97eb87d0bfc290539344a5fe68a41a69367 | [] | no_license | KendrickAng/competitive-programming | ce0a4f44f592f295c2f8cd7e854139f18fb8853a | f9768a2020f801b8e4787cc853398b8258a0bf09 | refs/heads/master | 2022-05-29T07:21:32.607089 | 2022-04-24T16:35:14 | 2022-04-24T16:35:14 | 254,402,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | class Solution:
def maxScore(self, cardPoints: List[int], k: int) -> int:
# calculate prefix sums
n = len(cardPoints)
prefix = [0]
for i in range(n):
tmp = prefix[-1] + cardPoints[i]
prefix.append(tmp)
#print(prefix)
# move fixed slidi... | [
"kendrick.wh@outlook.com"
] | kendrick.wh@outlook.com |
37b64b825968043ad9deba9d9b7b60f106080bfb | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/coderByte_20200518233550.py | ef8c2488afe45ffa8446a7d96de9b95d1352174d | [] | 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 | 516 | py |
def QuestionsMarks(str):
a,b = 0,0
for i in range(len(s)-1):
for j in range(i,len(s)):
if s[i].isdigit() and s[j].isdigit() and int(s[i])+int(j[i]) == 10:
a,b = i,j
new = s[a+1:b+1]
if new.count('?') == 3:
return 'true'
else:
return 'false'
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
ddaa9fc9222adb6cea73a896b2bad36c63421164 | 17993dcca87d490bc9841437309f309a5592ab38 | /Codes/linear_regression/exercise/face_solution.py | 3ee098e36b1d89f939fdf469515fb53525213a62 | [] | no_license | dreamlikexin/machine_learning | bc86ea15ef8552ad1be78a5bc65fb74a2cdb274e | 850e87025270847210b6ad188d2da181983a72c7 | refs/heads/master | 2022-01-16T09:51:20.538340 | 2019-06-19T16:27:26 | 2019-06-19T16:27:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | import numpy as np
import matplotlib.pyplot as plt
from sklearn.datasets import fetch_olivetti_faces
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
data = fetch_olivetti_faces()
data = data.images.reshape((len(data.images), -1))
n_pixels = data.shape[1]
X = data[... | [
"wanglei@wanglei-mbp.local"
] | wanglei@wanglei-mbp.local |
1a7a8fdd1634fdda99eea85a2692323fb7209a0f | a411a55762de11dc2c9d913ff33d2f1477ac02cf | /lte/gateway/python/integ_tests/s1aptests/test_ipv6_non_nat_dp_ul_tcp.py | 43041ea8822b77bd9e137145804ac43a2c93d85f | [
"BSD-3-Clause"
] | permissive | magma/magma | 0dc48c1513d9968bd05fb7589f302c192b7c0f94 | 0e1d895dfe625681229e181fbc2dbad83e13c5cb | refs/heads/master | 2023-09-04T09:31:56.140395 | 2023-08-29T13:54:49 | 2023-08-29T13:54:49 | 170,803,235 | 1,219 | 525 | NOASSERTION | 2023-09-07T17:45:42 | 2019-02-15T04:46:24 | C++ | UTF-8 | Python | false | false | 4,053 | py | """
Copyright 2022 The Magma Authors.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES O... | [
"noreply@github.com"
] | magma.noreply@github.com |
f26cfb2eec843676ac2c9085e502fcee2b1f71ce | 43842089122512e6b303ebd05fc00bb98066a5b2 | /dynamic_programming/213_house_robber_ii.py | 2b579f56defc49ef1f5790ac7012f6ace3142db0 | [] | no_license | mistrydarshan99/Leetcode-3 | a40e14e62dd400ddb6fa824667533b5ee44d5f45 | bf98c8fa31043a45b3d21cfe78d4e08f9cac9de6 | refs/heads/master | 2022-04-16T11:26:56.028084 | 2020-02-28T23:04:06 | 2020-02-28T23:04:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py |
"""
213. House Robber II
Medium
627
18
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are arranged in a circle. That means the first house is the neighbor of the last one. Meanwhile, adjacent houses have security system ... | [
"maplesuger@hotmail.com"
] | maplesuger@hotmail.com |
24e705f289cc6429a70f3dce754c533a3befe52e | 991d0b40a9ddb5ea6a72e3c018a74c6135792909 | /freenodejobs/admin/views.py | 9d6fb0fbcfa91721fbec85b8e0219cf6646f0888 | [
"MIT"
] | permissive | freenode/freenodejobs | 9afe699713efb915f5008c1ee2299a25604ab351 | 235388c88ac6f984f36cd20074542e21369bcc8b | refs/heads/master | 2021-06-11T05:09:14.255759 | 2019-10-22T13:46:44 | 2019-10-22T13:46:44 | 128,451,423 | 4 | 5 | MIT | 2021-03-18T20:31:54 | 2018-04-06T19:16:05 | JavaScript | UTF-8 | Python | false | false | 2,306 | py | from django.contrib import messages
from django.shortcuts import render, redirect, get_object_or_404
from freenodejobs.jobs.enums import StateEnum
from freenodejobs.utils.paginator import AutoPaginator
from freenodejobs.utils.decorators import staff_required
from freenodejobs.jobs.models import Job
from .forms impor... | [
"chris@chris-lamb.co.uk"
] | chris@chris-lamb.co.uk |
86b92b8f212a1e0ccacfc949fefe1da3ffb5b062 | 6dd5bfe305bfc8d7fccf1f9bd6b3ec2250fc574c | /tensorflow_probability/python/bijectors/cholesky_outer_product_test.py | 12b437fe8c7502373507a9937c4af664181bef2f | [
"Apache-2.0"
] | permissive | snehil03july/probability | dd38cf7abba01b6702362476150d67092ce754b2 | 5f576230f1e261a823e20a49c442ff38c8f381d3 | refs/heads/master | 2020-03-28T10:24:46.378464 | 2018-09-08T22:34:22 | 2018-09-08T22:34:25 | 148,106,347 | 1 | 0 | Apache-2.0 | 2018-09-10T06:01:26 | 2018-09-10T06:01:26 | null | UTF-8 | Python | false | false | 6,045 | py | # Copyright 2018 The TensorFlow Probability 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 o... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
59225ea2848e31f2eec61a545e3c036792b4f7a2 | 6db515644769c94166d2023b05c1f5ea57d3df51 | /blog/migrations/0001_initial.py | 090c4757842dddd9a2cb5656d58f7707b24683fb | [] | no_license | toastding/footprint | fe7da2340e826438d1cb17d18a5b1bdf2018d8a0 | e9af8163706efdce8e5732e9dfaedd6ecb2fb445 | refs/heads/master | 2022-11-17T22:38:40.539558 | 2020-07-12T04:43:37 | 2020-07-12T04:43:37 | 278,774,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,386 | py | # Generated by Django 3.0.8 on 2020-07-11 08:56
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL)... | [
"ding02211995@gmail.com"
] | ding02211995@gmail.com |
9f08f99d478449a90db4b6dd7d4a9e87595f22d8 | 1316cd6763e784811c769c1de577235c921af0de | /Widgets/Striptool/setup.py | 3766198b8ae55d1005c727f74a195f038871b27f | [] | no_license | VELA-CLARA-software/Software | a6fb6b848584e5893fd6939a447d23134ce636cc | 2e2a88ac0b2b03a495c868d2e11e6481e05097c3 | refs/heads/master | 2023-02-05T07:40:58.260798 | 2023-01-27T09:39:09 | 2023-01-27T09:39:09 | 69,860,536 | 7 | 3 | null | 2021-04-07T14:17:07 | 2016-10-03T10:20:46 | Mathematica | UTF-8 | Python | false | false | 312 | py | from distutils.core import setup
setup(
name='Striptool',
version='1.1',
packages=[''],
url='',
license='',
author='jkj62',
author_email='james.jones@stfc.ac.uk',
description='Strip tool widget for PyQt4',
install_requires=['pyqtgraph>=0.10.0','numpy','peakutils>=1.0.3'],
)
| [
"james.jones@stfc.ac.uk"
] | james.jones@stfc.ac.uk |
a508e4bb0d77eab214532f5da0b2c7c0c380210a | c068f19f14749c7e29a5450871da81d0e4b57348 | /inasilentway/collection.py | d0443b44fd449af559bde16b95b272f8985e3139 | [] | no_license | davidmiller/inasilentway | 42b94adea60143a70e7fa82ecd8504fa6a1142f1 | c88ccd1cc0f79aa167f8a2ff082a20a043d64556 | refs/heads/master | 2022-12-10T11:47:51.052379 | 2021-01-22T12:41:33 | 2021-01-22T12:41:33 | 161,032,907 | 0 | 0 | null | 2022-12-08T01:29:25 | 2018-12-09T11:38:22 | HTML | UTF-8 | Python | false | false | 5,074 | py | # """
# Collection utilities
# """
# import pickle
# import time
# import ffs
# import discogs_client as discogs
# from inasilentway import utils
# HERE = ffs.Path.here()
# CACHE_PATH = HERE / '../data/collection.pickle'
# def get_collection():
# if CACHE_PATH:
# with open(CACHE_PATH.abspath, 'rb') as ... | [
"david@deadpansincerity.com"
] | david@deadpansincerity.com |
8571d468f570736fbf2eb36541b40bad5f1b0fee | 1599f9a44e5ec492c019036195a769fa3ed9e04b | /tests/test_api/test_v1/test_views/test_index.py | 652ea7f07f022c95414ee40b62085c394159254c | [] | no_license | Mikaelia/AirBnB_clone_v3 | 63b70a2c8874e9d6d6e60ab3c6b2d1511136303a | f628759076ccdd2e5aecf61c8d079505b4d17412 | refs/heads/master | 2020-03-26T22:31:17.315057 | 2018-10-09T01:10:30 | 2018-10-09T01:10:30 | 145,465,466 | 0 | 0 | null | 2018-08-29T19:19:21 | 2018-08-20T20:09:48 | Python | UTF-8 | Python | false | false | 1,334 | py | #!/usr/bin/python3
"""
Unit Test for api v1 Flask App
"""
import inspect
import pep8
import web_flask
import unittest
from os import stat
import api
module = api.v1.views.index
class TestIndexDocs(unittest.TestCase):
"""Class for testing Hello Route docs"""
all_funcs = inspect.getmembers(module, inspect.isfu... | [
"328@holbertonschool.com"
] | 328@holbertonschool.com |
f7a3f1a1e14e46defed815dd909775f9fd84d89e | 0d5de943909877c01b485d8a918d8bef0cf9e196 | /plugins/RemoveTriggerArea/PluginRemoveTriggerArea.py | db28cd82e00fc81726f38db0b6d1c935c1c47617 | [
"MIT"
] | permissive | baverman/scribes-goodies | 31e2017d81f04cc01e9738e96ceb19f872a3d280 | f6ebfe62e5103d5337929648109b4e610950bced | refs/heads/master | 2021-01-21T10:13:08.397980 | 2013-09-25T16:33:05 | 2013-09-25T16:33:05 | 854,207 | 2 | 1 | null | 2013-09-25T16:33:05 | 2010-08-22T03:12:39 | Python | UTF-8 | Python | false | false | 802 | py | from scribes.helpers import Trigger, TriggerManager
import subprocess
from gettext import gettext as _
name = "Remove trigger area plugin"
authors = ["Anton Bobrov <bobrov@vl.ru>"]
version = 0.1
autoload = True
class_name = "TriggerAreaPlugin"
short_description = "Removes trigger area"
long_description = "Removes trig... | [
"bobrov@vl.ru"
] | bobrov@vl.ru |
ba725d409c9ca8e433e32f76419bbea9c92d6199 | 6cad5c613306789b9bd6387c2e7af02515b1c0ad | /django_document/inheritance/migrations/0002_auto_20171011_0700.py | 0ba7650807e9ff33a1802862fd91abed05693195 | [] | no_license | Isaccchoi/django_document_project | ead5eb7b2e932ae5401d5a3cdb3672d3dfd8f9f5 | 980f25c98f99994e6148af16ed82ae4f12d50870 | refs/heads/master | 2021-05-08T06:12:51.261138 | 2017-10-13T05:14:58 | 2017-10-13T05:14:58 | 106,355,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-11 07:00
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('inheritance', '0001_initial'),
]
operations = [
... | [
"isaccchoi@naver.com"
] | isaccchoi@naver.com |
b76703edb54f9d342ff986b4ad2451ffd03e6498 | f281c9ecd48aedd30469cfbd556bc3319cd8419d | /sendmail/src/main.py | 0b5456e505640bb912ccd4735ffc2480b6fa88dd | [] | no_license | youerning/blog | 5d5edeb4f836d233a4119796f38fc4e33531714e | 59c3704cf5a77bba70a48a5d09db9b165ea59d4b | refs/heads/master | 2023-08-31T04:08:16.461923 | 2023-08-27T01:28:39 | 2023-08-27T01:28:39 | 114,074,235 | 183 | 105 | null | 2023-05-05T02:36:52 | 2017-12-13T04:35:00 | HTML | UTF-8 | Python | false | false | 6,488 | py | # -*- coding: UTF-8 -*-
# @author youerning
# @email 673125641@qq.com
import sys
import base64
import smtplib
from email.header import Header
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.mime.image import MIMEImage
from collections import defaultdict
from io import By... | [
"673125641@qq.com"
] | 673125641@qq.com |
7b59d635ceceda572349f0002f30d490b644440d | 8f8d9428c68aa6bb1e6d131c505c217403979955 | /Python/0053. 螺旋三角.py | 442375ec79cdb6f9c5f503f591d033fb29160d4a | [] | no_license | yang4978/Huawei-OJ | fb3799c0f807b853fcfd4574b809fed5740fc6ea | ea3cccb2b070545574fadd64aecd38f73804361d | refs/heads/main | 2023-04-17T22:04:44.526675 | 2021-04-30T03:40:26 | 2021-04-30T03:40:26 | 337,046,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,343 | py | # If you need to import additional packages or classes, please import here.
def func():
# please define the python3 input here.
# For example: a,b = map(int, input().strip().split())
# please finish the function body here.
# please define the python3 output here. For example: print().
while True:
... | [
"noreply@github.com"
] | yang4978.noreply@github.com |
30a24d477498b4413500a53839689643274b89e7 | 4fc73cbe9e79974cde44d674b7c810edc9b07cd2 | /puyopuyoall/feverclass.py | ebb79ed88aef6c45b799c740ea0ede9ca7610cc8 | [] | no_license | yuufujikata2/Games | 36fbcdfbba976cc6b1850fd5f950bf269f81248d | abc2177023653247ebe1abb9cab172db31d038dc | refs/heads/master | 2020-07-30T14:07:54.466545 | 2019-09-23T03:39:56 | 2019-09-23T03:39:56 | 210,257,943 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py |
class Fever():
def __init__(self):
self.haichi=[[0 for i in range(8)] for j in range(15)]
self.fegauge=0
self.fetime=15
self.fehantei=None
self.ferensasuu=5
def feverin(self,field,ferensatane):
self.haichi=[[s for s in m] for m in field.haichi]
self.fehantei=True
field.haichi=[[s... | [
"yuu.1201.soccer.f@gmail.com"
] | yuu.1201.soccer.f@gmail.com |
a67a7e3853351430549f23b2546bf23d0b9996aa | d6c84c8d2568fdbf898f0f477f0f666ad5769f53 | /polybot/planning.py | 64baebd4e075375fdba645e5bae56a431858ddad | [
"Apache-2.0"
] | permissive | cwang344/polybot-web-service | ae533535e834da10da3b4ddff1a458f89d9dbb89 | 0aebb082829e0a8b4ac4a6d15c5da3f4458ab143 | refs/heads/master | 2023-07-18T07:03:05.577043 | 2021-08-20T14:47:51 | 2021-08-20T14:47:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,617 | py | """Definition for the class that runs the optimization routine.
We describe the policy for starting new runs by implementing a
`Colmena <http://colmena.rtfd.org/>`_ Thinker class.
"""
import random
from pathlib import Path
from typing import Dict, Callable, Union
import requests
from colmena.redis.queue import Client... | [
"ward.logan.t@gmail.com"
] | ward.logan.t@gmail.com |
0c5ed03200eea5fa07824fedb9ecfa87e7fe52e8 | a563a95e0d5b46158ca10d6edb3ca5d127cdc11f | /tccli/services/iotexplorer/v20190423/help.py | dff03e15e9ea50a3d1125332751988261fcb441f | [
"Apache-2.0"
] | permissive | SAIKARTHIGEYAN1512/tencentcloud-cli | e93221e0a7c70f392f79cda743a86d4ebbc9a222 | d129f1b3a943504af93d3d31bd0ac62f9d56e056 | refs/heads/master | 2020-08-29T09:20:23.790112 | 2019-10-25T09:30:39 | 2019-10-25T09:30:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,925 | py | # -*- coding: utf-8 -*-
DESC = "iotexplorer-2019-04-23"
INFO = {
"ModifyStudioProduct": {
"params": [
{
"name": "ProductId",
"desc": "产品ID"
},
{
"name": "ProductName",
"desc": "产品名称"
},
{
"name": "ProductDesc",
"desc": "产品描述"
},
... | [
"tencentcloudapi@tencent.com"
] | tencentcloudapi@tencent.com |
84c6951f02125c18e80e44560c2b69348c7b7a14 | 45a0434de7cb5aaf51f372a9ea39c2e62528e8d7 | /decoder_hier_fsoftmax_v1.py | bbba0b4556ec3440adaff9eb6a5e5f96ff1e0890 | [] | no_license | hongtaowutj/Seq2Seq-Keyphrase-Generation | 44b5b24f3af7a85c24fc5ef231c53c1dac7e48ff | 6f2d08222b108b543b7628b32e98480f2e3a32b0 | refs/heads/master | 2020-03-27T10:43:09.941194 | 2018-07-23T07:21:35 | 2018-07-23T07:21:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,457 | py | import os
import sys
sys.path.append(os.getcwd())
import numpy as np
from datetime import datetime
import time
import tensorflow as tf
from keras.models import Model
import keras.backend as K
from keras.models import load_model
from keras.utils import to_categorical
from utils.data_connector import DataCon... | [
"i.nimah@tue.nl"
] | i.nimah@tue.nl |
b03e63e83a8119e43592f779267c3e1089933a42 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /vaufKtjX3gKoq9PeS_17.py | 188c5344f01609d7777059c7e888e3ce3952cdbd | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py |
def ohms_law(v, r, i):
if r and i and not v:
ans = round(r * i, 2)
elif v and i and not r:
ans = round(v / i, 2)
elif v and r and not i:
ans = round(v / r, 2)
else:
ans = 'Invalid'
return ans
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
bba7fcd21ff8aad07745a06ba5cf7bec4ede0975 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/1601.py | 4a308e37f8e46ee749375c4c4f01d664c3823c76 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | #!/usr/bin/env python
import sys
def main(argv=None):
if argv is None:
argv = sys.argv
T = int(sys.stdin.readline())
for t in xrange(T):
vrow = int(sys.stdin.readline())
cards1 = []
for i in xrange(4):
row = sys.stdin.readline()
if i == vrow - 1:
cards1 = map(int, row.split(" "))
vrow =... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
c4fd6c0e6b2e2d046e2e8e8768f03f52b6748480 | bb7d5f000de07cc2c458a64fd275f3b14701dea2 | /examples/Lottery.py | 3c002d7320f7fe471e8334c122caa8f4f5162c79 | [
"MIT"
] | permissive | timmy61109/Introduction-to-Programming-Using-Python | 201d532a5c041ed045939c10909de0426a6e8be7 | bcbfd8d66173f5adfa1553103a692c02500e7896 | refs/heads/master | 2022-12-12T22:07:56.647918 | 2022-11-23T19:13:48 | 2022-11-23T19:18:46 | 210,872,428 | 0 | 6 | MIT | 2021-11-21T12:58:47 | 2019-09-25T14:58:14 | Python | UTF-8 | Python | false | false | 811 | py | import random
# Generate a lottery
lottery = random.randint(0, 99)
# Prompt the user to enter a guess
guess = eval(input("Enter your lottery pick (two digits): "))
# Get digits from lottery
lotteryDigit1 = lottery // 10
lotteryDigit2 = lottery % 10
# Get digits from guess
guessDigit1 = guess // 10
guessDigit2 = gue... | [
"38396747+timmy61109@users.noreply.github.com"
] | 38396747+timmy61109@users.noreply.github.com |
02f7ab0bee68cd454347bcc87f684b94c7b503e2 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2111/60832/263214.py | 493b6cd70cdd6be8f9b3626e503bb4888b869bfb | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | n = int(input())
x = 2
i = 1
while i < n:
num = x
while num % 5 == 0:
num = num // 5
while num % 3 == 0:
num //= 3
while num % 2 == 0:
num //= 2
if num == 1:
i += 1
x += 1
print(x - 1) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
348dc2478aef4fefed9ef1a05d40b69aab88803f | 853c6a09af16fd4dd8a53efa8bde631e63315b59 | /BOJ BF/sum_subsequence.py | e1c9ee7e1ffa0b4065c89119d04a4ff13f4ba0ac | [] | no_license | Areum0921/Abox | 92840897b53e9bbab35c0e0aae5a017ab19a0500 | f4739c0c0835054afeca82484769e71fb8de47c8 | refs/heads/master | 2021-12-13T11:16:33.583366 | 2021-10-10T08:09:50 | 2021-10-10T08:09:50 | 176,221,995 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | # 콤비네이션 안쓰고 리스트 안에 있는 숫자들을 조합하여 더할 수 있는 모든 경우의 값
# set 안쓰고 중복을 방지하고싶으면 False 배열을 만들고, 결과값 인덱스를 True 바꾸는 식으로 사용.
N=int(input())
s=list(map(int,input().split(" ")))
sum_list=[]
def dfs(x,y):
if(x==N):
sum_list.append(y)
return
dfs(x+1,y)
dfs(x+1,y+s[x])
dfs(0,0)
# 결과물 sum_list.sort()하면 None... | [
"a90907@gmail.com"
] | a90907@gmail.com |
fe0604f50c4cfe8fa89dbadfb87823935a8e5e5f | 3591ab22e1cc0fc1362f909017a8aa5c2b53bd92 | /FundNoticeSpiders/BoYangInvestNotice.py | e5c41b22ec6938b39b38abc013bcd7137d30f716 | [] | no_license | Wnltc/ggscrapy | ef7e9559ce6140e7147f539778e25fc7f6cbee4c | bf929112e14b875a583803fe92980fe67129bdac | refs/heads/master | 2023-03-15T22:00:45.377540 | 2018-06-06T02:19:14 | 2018-06-06T02:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,911 | py | # -*- coding: utf-8 -*-
from datetime import datetime
from urllib.parse import urljoin
from scrapy.utils.response import get_base_url
from FundNoticeSpiders import GGFundNoticeItem
from FundNoticeSpiders import GGFundNoticeSpider
class BoYangInvestNoticeSpider(GGFundNoticeSpider):
name = 'FundNotice_BoYangInvest... | [
"songxh@go-goal.com"
] | songxh@go-goal.com |
68a35022c085f4199fb83aa56e770d6c7eae54af | 3c119c145a00fbfc3b2d8841a3b9280fa4bc1da8 | /commons/utils/es_.py | 63a4ef747e86519b04ef4e015eb307990362ff25 | [] | no_license | disenQF/GoodsServer | 5cd54786d8c9b3444ffad38057fc62ebade87d3a | de7207b8fba0e60315ae7458978e210b325f305e | refs/heads/master | 2022-12-11T04:37:12.975547 | 2019-04-01T02:21:15 | 2019-04-01T02:21:15 | 177,748,032 | 3 | 1 | null | 2022-12-08T04:55:20 | 2019-03-26T08:45:59 | JavaScript | UTF-8 | Python | false | false | 2,861 | py | import pymysql
import requests
from pymysql.cursors import DictCursor
from FoodsAdminServer.settings import DATABASES
# 哪些数据添加到搜索引擎
sql = """
select c.name as cate_name,
f.id, f.name,f.price,f.image
from t_category c
join t_foods f on (c.id=f.category_id)
"""
HOST = 'localhost' # ES 的服务器地址
PORT = 9200 ... | [
"610039018@qq.com"
] | 610039018@qq.com |
eccfa6654ec3fb088a7177d281c098151f918970 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2491/58758/260329.py | 584afe2be11bf0d64307db2c872bcfd9c6c35ace | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | nums1 = eval(input())
nums2 = eval(input())
nums1.sort()
nums2.sort()
ans = []
for i in nums1:
try:
ind = nums2.index(i)
nums2.remove(i)
ans.append(i)
except Exception:
continue
print(ans)
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
38cd18e7d9ad3e43327fd7219a1a4dd1428fc53e | 35dbd536a17d7127a1dd1c70a2903ea0a94a84c2 | /src/sentry/integrations/custom_scm/repository.py | 2667d60c50a84c2264e0af4de028c4fb0a2556f5 | [
"Apache-2.0",
"BUSL-1.1"
] | permissive | nagyist/sentry | efb3ef642bd0431990ca08c8296217dabf86a3bf | d9dd4f382f96b5c4576b64cbf015db651556c18b | refs/heads/master | 2023-09-04T02:55:37.223029 | 2023-01-09T15:09:44 | 2023-01-09T15:09:44 | 48,165,782 | 0 | 0 | BSD-3-Clause | 2022-12-16T19:13:54 | 2015-12-17T09:42:42 | Python | UTF-8 | Python | false | false | 1,797 | py | from django.http import Http404
from rest_framework.request import Request
from rest_framework.response import Response
from sentry.api.serializers import serialize
from sentry.models import Integration, Repository
from sentry.plugins.providers import IntegrationRepositoryProvider
class CustomSCMRepositoryProvider(I... | [
"noreply@github.com"
] | nagyist.noreply@github.com |
7115f457ba5937098412a7e1070fbe84366470d4 | 87ba55b289f5bf0451e03384ceb0531ddc7016eb | /setup.py | d2206a7e07f97300c5228c15c96ece87a2991229 | [
"Apache-2.0"
] | permissive | ck196/TensorFlowASR | 5e8e57c6f62947e97d968bb9153784394bd5846b | 16c81282f08fc31b08156bb179d59eea3daaf120 | refs/heads/main | 2023-03-28T07:34:45.623636 | 2021-05-22T13:18:08 | 2021-05-22T13:18:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | # Copyright 2020 Huy Le Nguyen (@usimarit)
#
# 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 t... | [
"nlhuy.cs.16@gmail.com"
] | nlhuy.cs.16@gmail.com |
ceb964674032bd1ac4980a9a892671fa4f5d22d1 | 57a054c03419607bd0dad1c50b0692430a9ace40 | /home/migrations/0002_load_initial_data.py | f58c19e4fde560d2607585826423571fef1e099b | [] | no_license | crowdbotics-apps/project-1-25765 | a4c1d1cfff2378a7633cb1429303008a9301a8fa | 148acaf70e78f03c9428a73a5c4e1c60deb13da4 | refs/heads/master | 2023-04-10T13:40:54.952083 | 2021-04-18T19:49:15 | 2021-04-18T19:49:15 | 359,238,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "Project_1"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
fe372976873228e0ed042f92dc498e7f69260681 | c839961aeab22795200d9edef9ba043fe42eeb9c | /data/script869.py | 6c72307996165323f1b6da8a8eb5e4ccbe7c4420 | [] | no_license | StevenLOL/kaggleScape | ad2bb1e2ed31794f1ae3c4310713ead1482ffd52 | 18bede8420ab8d2e4e7c1eaf6f63280e20cccb97 | refs/heads/master | 2020-03-17T05:12:13.459603 | 2018-05-02T19:35:55 | 2018-05-02T19:35:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,142 | py |
# coding: utf-8
# # Intro
# **This is Lesson 7 in the [Deep Learning](https://www.kaggle.com/learn/machine-learning) track**
#
# The models you've built so far have relied on pre-trained models. But they aren't the ideal solution for many use cases. In this lesson, you will learn how to build totally new models.... | [
"adithyagirish@berkeley.edu"
] | adithyagirish@berkeley.edu |
b91f4fe7546cb810a246edc25d61c27d766888e2 | c1a5a5779fa3cebee65d23d0216549f09fdffda5 | /508saver.py | f3f0e4d8410b7357f37db8805df69b203d2f6961 | [] | no_license | greenmac/python-morvan-tensorflow | b0821825f8857d969d4d60437334f8fbb2ca18aa | 0abd63e74b3f5a54f82337fb8deaf4edecef294f | refs/heads/master | 2020-04-11T06:20:28.315996 | 2019-01-08T13:57:27 | 2019-01-08T13:57:27 | 161,578,306 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | # https://morvanzhou.github.io/tutorials/machine-learning/tensorflow/5-06-save/
# https://github.com/MorvanZhou/tutorials/blob/master/tensorflowTUT/tf19_saver.py
import tensorflow as tf
import numpy as np
# //////////
# ## Save to file
# ## remember to define the same dtype and shape when restore
# W = tf.Variable([[1... | [
"alwaysmac@msn.com"
] | alwaysmac@msn.com |
930a3906ee90eb771f1a686e1d0ba722cc78cf13 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_135/ch88_2020_05_06_11_49_20_934805.py | e6bba1cfd6fb8a4323e72c322207bfb9927fdc3b | [] | 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 | 596 | py | class Retangulo:
def __init__(self, inferior_esquerdo, superior_direito):
self.inferior_esquerdo = inferior_esquerdo
self.superior_direito = superior_direito
def calcula_perimetro(self):
lado_x = superior_direito.x - inferior_esquerdo.x
lado_y = superior_direito.y - inferior_esq... | [
"you@example.com"
] | you@example.com |
e9a6a86f1f9c97aeebc0645f9143517e6480c3a1 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_95/1367.py | 0cf8ef40104ecb429f0cbaab2ce61a8013ecb146 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | # Google Code jam Problem A Speaking in Tongues
# Apr. 13, 2012
# Python 3.2.3
import sys
import string
def ReadRules(d):
encrypted = 'ejp mysljylc kd kxveddknmc re jsicpdrysi rbcpc ypc rtcsra dkh wyfrepkym veddknkmkrkcd de kr kd eoya kw aej tysr re ujdr lkgc jv y e q z'
original = 'our language is... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
09df8a06e99dac1e29ef731782777407116b0ea2 | 9463b87c683fdada077cacca542998e19557f1e5 | /其他教学参考/随书源码/CH1.2-P015“百鸡百钱”问题.py | 8b5e3d725cc8267233b4d85feabb7731ed0b0688 | [] | no_license | hongm32/2020design | fa3d9e06b0e91be30784f3ad78bf65cbcfb3550b | 34b6a3c6a2740f049134eada1fbab6cacc154b0d | refs/heads/master | 2023-07-25T10:34:23.708781 | 2021-09-05T01:08:28 | 2021-09-05T01:08:28 | 303,857,648 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | # “百鸡百钱”问题
# 是一个有名的数学问题,出自《张丘建算经》。其内容是:
# 公鸡5文钱1只,
# 母鸡3文钱1只,
# 小鸡3只1文钱,
# 用100文钱买100只鸡,其中公鸡、母鸡和小鸡都必须有,
# 问公鸡、母鸡和小鸡各多少只?
money = 100 # 一共100文钱
num = 100 # 一共100只鸡
cock_price = 5 # 公鸡价格5文
hen_price = 3 # 母鸡价格3文
chick_price = 3 # 3只小鸡1文
for cock_num in range(1, money // cock_price + 1): # 公鸡只数可能为1-20
for hen_n... | [
"XHM,1024cj"
] | XHM,1024cj |
54fd5dc3bc286cccf4c6d9ba9a7ddc091dcb1d07 | 4b0c57dddf8bd98c021e0967b5d94563d15372e1 | /run_MatrixElement/test/crabConfigFiles/crab_STopT_T_JESUp_cfg.py | c094b1e645d7a28aef753031438be4d92f8c137b | [] | no_license | aperloff/TAMUWW | fea6ed0066f3f2cef4d44c525ee843c6234460ba | c18e4b7822076bf74ee919509a6bd1f3cf780e11 | refs/heads/master | 2021-01-21T14:12:34.813887 | 2018-07-23T04:59:40 | 2018-07-23T04:59:40 | 10,922,954 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = 'run_MatrixElement_STopT_T_JESUp'
config.General.transferOutputs = True
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName = 'PrivateMC'
config.JobType.s... | [
"aperloff@physics.tamu.edu"
] | aperloff@physics.tamu.edu |
556b24d6265074e5934dfa15c924c83202d587df | ff5d50f40629e50794a1fd4774a9a1a8ce3a2ecd | /controles/migrations/0001_initial.py | 5a23d36747b966a639429842817c16424b62b0fd | [] | no_license | thiagorocha06/mairimed | 0d9de3db03ff073de431c0d40e16b3c1c5b1d3fe | 6705e36b52410823c04b41db58e8f0b6b3f30b85 | refs/heads/master | 2022-12-13T07:37:49.619189 | 2018-12-30T16:03:49 | 2018-12-30T16:03:49 | 109,196,690 | 0 | 0 | null | 2022-12-08T02:23:39 | 2017-11-01T23:56:20 | Python | UTF-8 | Python | false | false | 2,743 | py | # Generated by Django 2.0.7 on 2018-10-18 21:50
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"thiagorocha06@gmail.com"
] | thiagorocha06@gmail.com |
16528ea339ae9b698b0ceb7e36bc37dfd763c35a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_293/ch147_2020_04_26_03_40_37_343598.py | ffa76dab8a358a07959763021cc31259573a94f1 | [] | 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 | 256 | py | def mais_frequente(lista):
dic = {}
mais_freq = 0
for e in lista:
if e not in dic:
dic[e] = 1
else:
dic[e] += 1
if mais_freq < dic[e]:
mais_freq = dic[e]
a = e
return a | [
"you@example.com"
] | you@example.com |
22b207801f06c41467931b863d2751b9314ccccd | 6ed01f4503fc9de234a561c945adff7cf4b1c81b | /ncar_lib/lib/frameworks.py | d00ac877a2c94b3b7ffa1bceab14ddcb9f7de3be | [] | no_license | ostwald/python-lib | b851943c913a68424a05ce3c7b42878ff9519f68 | 9acd97ffaa2f57b3e9e632e1b75016549beb29e5 | refs/heads/master | 2021-10-28T06:33:34.156095 | 2021-10-21T23:54:49 | 2021-10-21T23:54:49 | 69,060,616 | 0 | 1 | null | 2018-06-21T16:05:30 | 2016-09-23T21:04:46 | Roff | UTF-8 | Python | false | false | 6,986 | py | """
classes for reading library_dc and webcat XML records
"""
import os, sys, re, codecs
from JloXml import XmlRecord, XmlUtils
import globals
class NCARRec (XmlRecord):
"""
assumes a flat metadata structure (all fields are children of docRoot)
"""
field_list = None
id_field = None
description_field = None
x... | [
"ostwald@ucar.edu"
] | ostwald@ucar.edu |
7d2b7099645047f346ca3482c84e6f3449782ee8 | 767e864a1b1a2722b4952fb5034a776064b2ef64 | /sentry_youtrack/youtrack.py | 392e297142606b6935d89406888fa5f14f6bb367 | [] | no_license | pombredanne/sentry-youtrack | 18403a9c218e65bc044cfa6244f1fe63fd298638 | 1d1b11aeaf63299c8b1aa83a814d708c23d9cb8a | refs/heads/master | 2021-01-22T09:09:55.134392 | 2013-11-04T22:50:08 | 2013-11-04T22:50:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,022 | py | import requests
from BeautifulSoup import BeautifulStoneSoup
class YouTrackError(Exception):
pass
class YouTrackClient(object):
LOGIN_URL = '/rest/user/login'
PROJECT_URL = '/rest/admin/project/<project_id>'
PROJECTS_URL = '/rest/project/all'
CREATE_URL = '/rest/issue'
ISSUES_URL = '/rest/i... | [
"adam@bogdal.pl"
] | adam@bogdal.pl |
ad0979e6aca66c863e3842d3e0935bfb6eda761d | 58afefdde86346760bea40690b1675c6639c8b84 | /leetcode/dice-roll-simulation/395113484.py | 4bebf6dda3ade473f97b66109b045114c3d4405d | [] | 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 | 833 | py | # title: dice-roll-simulation
# detail: https://leetcode.com/submissions/detail/395113484/
# datetime: Sun Sep 13 22:57:31 2020
# runtime: 120 ms
# memory: 14 MB
class Solution:
def dieSimulator(self, n: int, rollMax: List[int]) -> int:
MOD = 10 ** 9 + 7
dp =collections.deque([[1] * 6 for i in rang... | [
"ljm51689@gmail.com"
] | ljm51689@gmail.com |
714411dc03e2aaedad3968d900b044a60fada680 | 189e14e07571b4d5720f01db73faaaef26ee9712 | /dj/dj/settings.py | e0d57bfd76c00098690ab693bede6126bd0d0bff | [] | no_license | italomaia/mylittlework | d7e936fa3f24f40ea6a95e7ab01a10208036f439 | f6d0aacec46f8c2adb429626fff0532e8939b8b8 | refs/heads/master | 2021-01-19T19:13:48.605376 | 2017-04-10T02:01:10 | 2017-04-10T02:01:10 | 86,644,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,208 | py | """
Django settings for dj project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
# Bui... | [
"italo.maia@gmail.com"
] | italo.maia@gmail.com |
1f1772421914f015926ea0d471a316d3cdc7ee23 | 766da3ffcbd26e7f58d711f5b0e7312cb365e9fb | /framework/utils/time_meter.py | d1d9c26db12e5b47cb70fb745317ca636bd3c553 | [
"MIT"
] | permissive | RobertCsordas/ndr | 1277b353eb61267e023b671072730bdc7e779ca5 | da20530dfb4336deddfbe5e79d62e72d1dc2580e | refs/heads/master | 2023-09-02T22:38:57.601098 | 2021-11-19T09:52:23 | 2021-11-19T09:52:23 | 414,588,414 | 20 | 4 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | import time
class ElapsedTimeMeter:
def __init__(self):
self.reset()
def start(self):
self.start_time = time.time()
def _curr_timer(self) -> float:
if self.start_time is None:
return 0
return time.time() - self.start_time
def stop(self):
self.sum... | [
"xdever@gmail.com"
] | xdever@gmail.com |
e8eab1a20e20aaa2466c43899cd2dbc957cfe1d7 | e3afb1720da16d9437b58ee3839e6184f521d9ee | /05_POST/main.py | 0a316d92d7b61e1ce6515e37c63d58b583fe4ed9 | [] | no_license | jaisenbe58r/APIs_Python | 1517d0bafa7a97bd460292514784105b9b005529 | afae603b2a2df86e65b06b9967c4960835767ae5 | refs/heads/master | 2021-04-11T12:43:16.883269 | 2020-03-21T17:05:26 | 2020-03-21T17:05:26 | 249,022,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | import requests
import os
import json
if __name__ == '__main__':
url = "https://httpbin.org/post"
payload = {'nombre':'Jaime', 'curso':'python', 'nivel':'intermedio'}
response = requests.post(url, data = json.dumps(payload))
if response.status_code == 200:
print(response.content) | [
"jsendra@autis.es"
] | jsendra@autis.es |
1b68bf740ed1005e4796f4811ed3a0fb17945fc6 | f8bbdfb112618136fc4adccb03ce25fbfc48bff5 | /panel/module/management_ranking/CustomProcesses/ScoreCompilingProcess.py | 7f3e9d1df3d356a08670fc04958730bb997eec4e | [] | no_license | lazypanda10117/CICSA-Ranking-Platform | 160973987b533ede6e0b94af29b5bc85646b2bc0 | d5f6ac64a1f85c3333c71a7d81749b49145b9a16 | refs/heads/master | 2022-12-09T23:21:28.649252 | 2020-04-28T22:53:07 | 2020-04-28T22:53:07 | 133,093,367 | 3 | 2 | null | 2021-09-22T17:51:39 | 2018-05-11T22:14:01 | Python | UTF-8 | Python | false | false | 1,607 | py | from django.shortcuts import redirect
from django.shortcuts import reverse
from misc.CustomFunctions import RequestFunctions
from api.model_api import EventAPI
from api.model_api import SummaryAPI
from panel.module.base.block.CustomProcesses import AbstractBaseProcess
class ScoreCompilingProcess(AbstractBaseProcess)... | [
"jeffreykam0415@gmail.com"
] | jeffreykam0415@gmail.com |
1a58f3399d6440b08b067dfb5c463b434e8e21a5 | 6a423fba995b1106086998477eb2bbd1953d3e70 | /js_events/cms_menus.py | 8bf76b09548418fb76b73807dc14013811acb02c | [] | no_license | compoundpartners/js-events | c94addf5c3d4440ed3d170b1232d753120b92262 | 3d2798c6e197cce96d246305642fed1002ce67f7 | refs/heads/master | 2023-08-09T05:52:03.545468 | 2023-07-24T15:06:36 | 2023-07-24T15:06:36 | 170,514,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,773 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
try:
from django.core.urlresolvers import NoReverseMatch
except ImportError:
# Django 2.0
from django.urls import NoReverseMatch
from django.utils.translation import (
get_language_from_request,
ugettext_lazy as _,
)
from cms.menu_ba... | [
"evgeny.dmi3ev@gmail.com"
] | evgeny.dmi3ev@gmail.com |
c5af36d24bce66eace96ce089931f566d69ce2bc | 7860d9fba242d9bdcb7c06c32ee4064e4a7fa2f1 | /litex_boards/platforms/trenz_max1000.py | 9772cf7130da1dc27fbf2845ca2f848cf350ffce | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | litex-hub/litex-boards | ef1f200fd6d34c96621f4efa094ede874f4c34ab | b92c96b3a445fde31037f593a40fe621f85cb58c | refs/heads/master | 2023-09-03T15:09:11.198560 | 2023-08-30T15:22:11 | 2023-08-30T15:22:11 | 191,191,221 | 291 | 283 | BSD-2-Clause | 2023-09-03T20:32:58 | 2019-06-10T15:09:10 | Python | UTF-8 | Python | false | false | 4,043 | py | #
# This file is part of LiteX-Boards.
#
# Copyright (c) 2019-2021 Antti Lukats <antti.lukats@gmail.com>
# SPDX-License-Identifier: BSD-2-Clause
#
# http://trenz.org/max1000-info
from litex.build.generic_platform import *
from litex.build.altera import AlteraPlatform
from litex.build.altera.programmer import USBBlaste... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
b8d06a8e1b6fd0756d5f515307ecef361a32c7f9 | 4bd555bc662b8182a2e7644976bfdb00ed5e1ebe | /PythonistaAppTemplate/PythonistaKit.framework/pylib_ext/sympy/logic/utilities/dimacs.py | bc3b091d40e5b4892e961122c7f6f09c982cc07c | [] | no_license | fhelmli/homeNOWG2 | a103df1ef97194dec9501dbda87ec1f7c111fb4a | e794fd87b296544542fd9dc7ac94c981c6312419 | refs/heads/master | 2020-04-04T13:40:20.417769 | 2019-01-30T21:41:04 | 2019-01-30T21:41:04 | 155,970,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,742 | py | #import pythonista
"""For reading in DIMACS file format
www.cs.ubc.ca/~hoos/SATLIB/Benchmarks/SAT/satformat.ps
"""
from __future__ import print_function, division
from sympy.core import Symbol
from sympy.logic.boolalg import And, Or
import re
def load(s):
"""Loads a boolean expression from a string.
Exa... | [
"tberk@gmx.at"
] | tberk@gmx.at |
57ed5ba90da3aa7395be14a2b86bb1c3a1d84f41 | 10c9ef03f6916f9596d18ecc28c0c73f548017ad | /manage.py | e59608d55b3e953ea1e3a79cf395e6127c56395b | [] | no_license | WinningAddicted/website-Django | 2127756b1b9ca6389e79822f9df59207ea9a1d46 | 79bef48f408df9123d28840fba1179710a9f7b38 | refs/heads/master | 2021-01-11T01:10:12.765425 | 2016-10-25T13:07:59 | 2016-10-25T13:07:59 | 71,049,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "yatharth.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"="
] | = |
296fcbafb9e14304b02ae171edcc38f915888c75 | 59f0fde411ca668b874fa6fa6001069b9146f596 | /src/blog/migrations/0001_initial.py | 84fd012107ea912917ff84da08179642506c4756 | [] | no_license | nabilatajrin/django-blog-application | 4c256755fc31b41f609b44a5329fb128d46c5fa1 | 7971f8f7d8b3b442fbd4530bc0f32dff7865adcc | refs/heads/master | 2020-12-06T16:09:00.310415 | 2020-11-03T05:37:34 | 2020-11-03T05:37:34 | 232,503,248 | 0 | 0 | null | 2020-01-08T07:24:39 | 2020-01-08T07:19:38 | Python | UTF-8 | Python | false | false | 474 | py | # Generated by Django 2.2 on 2020-01-09 01:40
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Blog1Post',
fields=[
('id', models.AutoField(... | [
"nabilatajrin@gmail.com"
] | nabilatajrin@gmail.com |
339639d4a52ad804b5f0d74045f5f8bc6b486ab6 | c94f888541c0c430331110818ed7f3d6b27b788a | /ak_05b080ffa82d4d06b1e7a357a34277ba/python/setup.py | 3c6ee05721510fdc60c55feb4c7cd7b6f1706b3b | [
"Apache-2.0",
"MIT"
] | permissive | alipay/antchain-openapi-prod-sdk | 48534eb78878bd708a0c05f2fe280ba9c41d09ad | 5269b1f55f1fc19cf0584dc3ceea821d3f8f8632 | refs/heads/master | 2023-09-03T07:12:04.166131 | 2023-09-01T08:56:15 | 2023-09-01T08:56:15 | 275,521,177 | 9 | 10 | MIT | 2021-03-25T02:35:20 | 2020-06-28T06:22:14 | PHP | UTF-8 | Python | false | false | 2,650 | py | # -*- coding: utf-8 -*-
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"Li... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
bce1e3aee1f648f85291bf76517e5522f6502ef0 | 3af6960c805e9903eb27c09d8bc7ebc77f5928fe | /problems/0056_Merge_Intervals/__init__.py | 5304b1da2e9a95667938b3f5520a802216339283 | [] | no_license | romain-li/leetcode | b3c8d9d4473eebd039af16ad2d4d99abc2768bdd | 5e82b69bd041c2c168d75cb9179a8cbd7bf0173e | refs/heads/master | 2020-06-04T20:05:03.592558 | 2015-06-08T18:05:03 | 2015-06-08T18:05:03 | 27,431,664 | 2 | 1 | null | 2015-06-08T18:05:04 | 2014-12-02T12:31:58 | Python | UTF-8 | Python | false | false | 298 | py | ID = '56'
TITLE = 'Merge Intervals'
DIFFICULTY = 'Hard'
URL = 'https://oj.leetcode.com/problems/merge-intervals/'
BOOK = False
PROBLEM = r"""Given a collection of intervals, merge all overlapping intervals.
For example,
Given `[1,3],[2,6],[8,10],[15,18]`,
return `[1,6],[8,10],[15,18]`.
"""
| [
"romain_li@163.com"
] | romain_li@163.com |
cf139f390e7f58784c0fcf319c590eff3ad17f0e | 556403cb93b2fdd464c3aef4cba4f1c3dc42e9d7 | /AutomationProject/demo/getTestname.py | 1e04817bef4bb45df162c33780e2b5c0aac891af | [] | no_license | msivakumarm/PycharmProjects | 4d90a0105f334f2393d30fe46dc650808002b4fd | 7d84194a576f9ec8356ff272642d07dbddc48d42 | refs/heads/master | 2020-09-06T14:42:12.945424 | 2019-11-08T11:42:14 | 2019-11-08T11:42:14 | 219,989,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | import inspect
# functions
def whoami():
return inspect.stack()[1][3]
def myfunc():
x=whoami()
print(x)
myfunc() | [
"sivakumarm.mamillapalli@gmail.com"
] | sivakumarm.mamillapalli@gmail.com |
949d8a85b10490cceaf3bf00e17d2898bd3f6164 | 48d820d4bd6a433c2b0fdb0dcb7657b62db050bf | /Training_Work/ODOO_C_MODULE_BACKUPS/new_app/controllers/controllers.py | 3d7cfd1ee67329ccccc1c9ed2fdf8fe04ca77a97 | [] | no_license | dhruv-aktiv/training_task_data | 1a30580a512aa4831fb547b250faffff11f7e008 | 3d8b25ca812e876a484d387fc57272257322c85f | refs/heads/master | 2023-06-07T07:06:04.193576 | 2021-07-01T04:37:13 | 2021-07-01T04:37:13 | 381,908,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # -*- coding: utf-8 -*-
# from odoo import http
# class NewApp(http.Controller):
# @http.route('/new_app/new_app/', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/new_app/new_app/objects/', auth='public')
# def list(self, **kw):
# return http.request.r... | [
"dhruv.s@icreativetechnolabs.com"
] | dhruv.s@icreativetechnolabs.com |
3b6a96c0a23de192aef4979a78648815eb239d92 | 992eeae8bb54ac7eb258994049e74474f090eb36 | /13. Exam Prep Questions/08. SoftUni Past Exams/03. Mobile Operator.py | dc6f231cff698f876d138de9b09d21bcfbc97dc0 | [] | no_license | elenaborisova/Python-Basics | 4ae856ee50a543479902467167f3b8f8169284b8 | b7476e3c25c2448f4f12a29e16f20caa10b72038 | refs/heads/main | 2023-01-04T17:17:17.091347 | 2020-10-26T22:56:11 | 2020-10-26T22:56:11 | 307,164,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | contract_duration = input() # one or two years
contract_type = input() # small middle large or extralarge
mobile_data_added = input() # yes or no
number_of_months = int(input())
contract_price = 0
if contract_duration == "one":
if contract_type == "Small":
contract_price = 9.98
elif contract_type == "... | [
"elenaborrisova@gmail.com"
] | elenaborrisova@gmail.com |
d1b6fae5395dae27e6940600476a13e19aa1ece8 | 38a9eda76b10e0cceafc4a255f79c22df8847001 | /logrec/dataprep/split/samecase/random_word_selector_for_splitting.py | a48b3453b655ee7984a4fe21c6ecacb18a091c73 | [
"MIT"
] | permissive | hlibbabii/log-recommender | 4272bb1c91c5c213ee4944930584af713da01c6d | 03c975da4029676acb2c29f5915e30b2b29fce6c | refs/heads/master | 2022-12-21T06:28:04.702117 | 2020-03-27T11:39:30 | 2020-03-27T11:39:30 | 123,821,082 | 2 | 1 | MIT | 2022-11-22T03:57:00 | 2018-03-04T19:25:35 | Python | UTF-8 | Python | false | false | 3,689 | py | import logging
import math
import os
import random
import re
from collections import defaultdict
from logrec.dataprep import base_project_dir
logger = logging.getLogger(__name__)
base_dataset_dir = f'{base_project_dir}/nn-data/devanbu_no_replaced_identifier_split_no_tabs_new_splits3_under_5000_15_percent/'
path_to_l... | [
"hlibbabii@gmail.com"
] | hlibbabii@gmail.com |
1d06373897f48a555acb6a7d135865bc7e91c296 | a7f16c95f973905e880ad4dc277fbba890486654 | /wildlifecompliance/migrations/0156_merge_20190404_1353.py | d96e85d324a57c0b6ffd2aafb82f55f0ed27fe98 | [
"Apache-2.0"
] | permissive | dbca-wa/wildlifecompliance | 9e98e9c093aeb25dbb7ff8d107be47e29bcd05e1 | cb12ad9ea1171f10b5297cdb7e1eb6ea484e633d | refs/heads/master | 2023-08-08T14:37:05.824428 | 2023-07-31T02:57:23 | 2023-07-31T02:57:23 | 232,276,030 | 1 | 17 | NOASSERTION | 2023-07-31T02:57:24 | 2020-01-07T08:12:53 | Python | UTF-8 | Python | false | false | 361 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2019-04-04 05:53
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('wildlifecompliance', '0155_merge_20190329_1202'),
('wildlifecompliance', '0153_auto_20190401... | [
"brendan.blackford@dbca.wa.gov.au"
] | brendan.blackford@dbca.wa.gov.au |
74b80d103cc37eb12487e7e844178fe41b54c302 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3_neat/16_0_3_mjsull_question3.py | b771467002762d05249323aa63a62a9f07232319 | [] | 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 | 3,080 | py | import sys
out_file = open(sys.argv[2], 'w')
from math import sqrt
def mrange(start, stop, step):
while start < stop:
yield start
start += step
def is_prime(num):
if num == 2:
return True
if (num < 2) or (num % 2 == 0):
return False
return all(num % i for i in mrange(... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
5917a97739223f8f73a354d07010fcee9adf413b | 9848a719ddfdd21b5fe1fa2f55da290c0f6952dc | /find-positive-integer-solution-for-a-given-equation.py | b82f8bf6dc218a2aad30c5ddee48ba089412517b | [] | no_license | maomao905/algo | 725f7fe27bb13e08049693765e4814b98fb0065a | 84b35ec9a4e4319b29eb5f0f226543c9f3f47630 | refs/heads/master | 2023-03-13T12:38:55.401373 | 2021-03-25T01:55:48 | 2021-03-25T01:55:48 | 351,278,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,885 | py | """
binary search
O(XlogY)
"""
from typing import List
"""
This is the custom function interface.
You should not implement it, or speculate about its implementation
"""
class CustomFunction:
# Returns f(x, y) for any given positive integers x and y.
# Note that f(x, y) is increasing with respect to bo... | [
"maoya.sato@gmail.com"
] | maoya.sato@gmail.com |
935e4d71d8e2cc2d2787b422938bbc1c20cbd6cd | a451c9f6b4e0fad4efdc7440e6a180fbed580a15 | /DB_lab1/randomize_db.py | 5e1d4b4a9d2b5511379e642aa8d0c96c90898ab2 | [] | no_license | serhiisad/DB-labs-2018 | 0124c6b997ad641fb952e62f9caee6e63ff0459f | 8316d2ce6a7cfa2b45a567d4e981260435893d44 | refs/heads/master | 2020-03-29T19:51:52.931565 | 2018-12-27T20:54:52 | 2018-12-27T20:54:52 | 150,284,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | import rand_data.parser as parser
from database import Database as db
from datetime import *
import names
import random
from entities.entities import *
from database import Database
def get_random_name():
return names.get_full_name()
def get_rand_boolean():
return random.choice([True, False])
def get_rand_da... | [
"serhiisad.kpi@gmail.com"
] | serhiisad.kpi@gmail.com |
7d01fbe9aa522fa6202068b4dedf8344b95f56ea | a46fc5187245f7ac79758ae475d4d865e24f482b | /edit_distance/edit_distance.py | 5dd8b9754dc67ee9bc34183673021cd15ce19585 | [] | no_license | narnat/leetcode | ae31f9321ac9a087244dddd64706780ea57ded91 | 20a48021be5e5348d681e910c843e734df98b596 | refs/heads/master | 2022-12-08T00:58:12.547227 | 2020-08-26T21:04:53 | 2020-08-26T21:04:53 | 257,167,879 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | #!/usr/bin/env python3
class Solution:
''' Levenshtein distance '''
def minDistance(self, word1: str, word2: str) -> int:
m, n = len(word1), len(word2)
dp = [[0] * (n + 1) for _ in range(m + 1)]
for i in range(1, m + 1):
dp[i][0] = i
for j in range(1, n + 1):
... | [
"farruh1996@gmail.com"
] | farruh1996@gmail.com |
f7ab2d6e05b9a9ae4214f93604ca92b85456a336 | e14372adf86d3c4f9e73c9f7111db3215c696c3d | /3.算法小抄/排序/10.排序算法总结.py | dc74972ad4d1b42d5b3b41139e6b38b0038e6a8a | [] | no_license | hewei-bit/PYTHON_learning | 71ddd7560a52575528547187f4fb40f39a3cbbdb | 18de8e5bdca165df5a5a4b5e0887846593656f4e | refs/heads/master | 2022-12-02T13:38:05.907135 | 2020-08-13T04:57:41 | 2020-08-13T04:57:41 | 261,647,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,620 | py | """
这次收集整理并用Python实现了八大经典排序算法,
包括冒泡排序,插入排序,选择排序,希尔排序,归并排序,快速排序,堆排序以及基数排序。
希望能帮助到有需要的同学。之所以用 Python 实现,
主要是因为它更接近伪代码,能用更少的代码实现算法,更利于理解。
本篇博客所有排序实现均默认从小到大。
"""
from time import *
class sort:
# 一、冒泡排序
"""
冒泡排序的原理非常简单,它重复地走访过要排序的数列,
一次比较两个元素,如果他们的顺序错误就把他们交换过来。
"""
def bubble_sort(self, ary):
... | [
"1003826976@qq.com"
] | 1003826976@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.