blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M โ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 โ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 โ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a1fd04150e2df747a09eb1f551b262a2e160f5b4 | 36c00fe2afff4818c937e312ce0c6a79f35e2a77 | /7-kyu/reverse-words/python/solution.py | 107e51e135f24323d7113ce7f0bcdbbd24cff6c5 | [] | no_license | p-lots/codewars | 0a67b6ee4c91180ff78c648421b9d2d64463ddc3 | 535faeee475c6b398124d6f5002b0e111406e8bb | refs/heads/master | 2023-08-23T22:14:33.635011 | 2023-08-23T13:30:37 | 2023-08-23T13:30:37 | 195,320,309 | 0 | 0 | null | 2023-05-09T19:25:50 | 2019-07-05T01:40:15 | Python | UTF-8 | Python | false | false | 85 | py | def reverse_words(text):
return ' '.join(word[::-1] for word in text.split(' ')) | [
"paul.calotta@gmail.com"
] | paul.calotta@gmail.com |
1483a7fc4dd3bd86a8bf52283e9408cab2f23767 | 5145773cf66978c2ea449fe5b3b125d1b363361b | /4-HeaderExchange/producer.py | 7942e1f6678ad779b55ca7de4223a741449cecc7 | [] | no_license | MoeinGhbh/RabbitMQ-Type | 62a0e297e914e88de56cdee2c893b36659e069c9 | 011e2368b2250393295ea9f0b42f397656b626a3 | refs/heads/master | 2022-07-18T07:03:09.385269 | 2020-05-20T17:36:11 | 2020-05-20T17:36:11 | 265,569,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,330 | py | #!/home/ubd/anaconda3/envs/test_env/bin/python
import json
import pika
import sys
if len(sys.argv) < 4:
print("Call syntax: python SCRIPT_NAME PRODUCER_NAME MESSAGE_STRING HEADERS_VALUES")
exit()
producerName = sys.argv[1]
messageText = sys.argv[2]
headersValues = sys.argv[3:]
connection = pika.BlockingConne... | [
"="
] | = |
83cc96a40f65ef2ec4447aa30734347ee89efba7 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/classification/Gluon_ResNet50_v1b_for_PyTorch/timm/utils/clip_grad.py | 08d87f99e8c2c67f5a29b445f1e53bfd8c5a212c | [
"Apache-2.0",
"MIT",
"CC-BY-NC-4.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 1,415 | py | # Copyright 2019 Ross Wightman
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
8c845b5cd02687c170cbbbc4d79dc39d69c912cb | d210853ba6d1f3b5383a09e1b553c19083d78014 | /geo/backend/delivery/migrations/0008_deliverypickpoint.py | 904ed647eda3b40aff2a045c20036106af2d58a4 | [] | no_license | Hagen013/presidentwatches | f252c7995e39f6cffb6608e43f555abc32f6a9fc | b9ca72aef1db01262675274c83a5c5dff4d6e2da | refs/heads/master | 2022-12-17T08:45:15.541869 | 2019-12-29T17:48:56 | 2019-12-29T17:48:56 | 162,160,435 | 0 | 0 | null | 2022-12-08T01:49:45 | 2018-12-17T16:36:05 | HTML | UTF-8 | Python | false | false | 2,139 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-12-25 16:53
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('kladr', '0001_initial'),
('delivery', '0007_deliver... | [
"="
] | = |
18c616bb07a09bb2bc5c408dd2006960ffaad576 | 63dc2b63afa8848842470c52f10b9066445f239c | /manage.py | c281068744a6d18bb1595aa256bc0bb90e717125 | [] | no_license | wanderchan/hospital | 724a5e03ef8d9d2fea8ef3da80646aefe9bdbd73 | 887a668f7d93f8271908facb37b4c6fef67e9700 | refs/heads/master | 2020-03-18T23:39:11.071002 | 2018-05-30T09:09:24 | 2018-05-30T09:09:24 | 129,866,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "biyesheji.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"you@example.com"
] | you@example.com |
ea3c672c2a79572cd0dd8b3564ad661cfdee586f | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /external/chromium_org/chrome/common/extensions/docs/server2/cron_servlet.py | efdab71fa6c7af2f2a7368db1856c7c81899b02c | [
"BSD-3-Clause",
"MIT"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | Python | false | false | 11,814 | py | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
import traceback
from app_yaml_helper import AppYamlHelper
from appengine_wrappers import (
GetAppVersion, IsDeadlineExceededError, logse... | [
"karun.matharu@gmail.com"
] | karun.matharu@gmail.com |
4456273aa82c8258872064b3a763b75cc4e52ad6 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2494/60617/259151.py | a17472a016cee01b922df70d039e6105a2e794df | [] | 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 | 910 | py | def reversePair():
arr=eval(input())
print(merge(arr, 0, len(arr)-1))
def merge(arr, l , r):
count=0
if l>=r:
return count
mid=(l+r)//2
count+=merge(arr, l, mid)
count+=merge(arr, mid+1, r)
j=mid+1
for i in range(l, mid+1):
while j<=r and arr[i]>arr[j]*2:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
9d45f8122dec0c08974e10ec061fc337c8e6c17d | 901b7d6e062d1cef5b48743c54953edae39a83ff | /backend/UserPost/migrations/0009_userpost_privacy.py | b60633a0256dfe938307b03eb8f0eea0aefb0fed | [] | no_license | KaziMotiour/U-Profile-Social-media | e1104e266ab22cac70c60ecd1f0fb2d33eb26961 | 81dedeb4e16e4045ac84bf261bd512e429e6186f | refs/heads/master | 2023-06-09T00:28:24.390944 | 2021-06-29T17:00:13 | 2021-06-29T17:00:13 | 324,720,540 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | # Generated by Django 3.1.5 on 2021-03-08 14:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('UserPost', '0008_auto_20210119_0307'),
]
operations = [
migrations.AddField(
model_name='userpost',
name='privacy',
... | [
"kmatiour30@gmail.com"
] | kmatiour30@gmail.com |
1c1cbb6fb019eda07db42749db4ea05edbf16e23 | af3ec207381de315f4cb6dddba727d16d42d6c57 | /dialogue-engine/test/programytest/storage/stores/sql/dao/test_map.py | d6ab20b3339a3459a181367867d45e52a42215eb | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mcf-yuichi/cotoba-agent-oss | 02a5554fe81ce21517f33229101013b6487f5404 | ce60833915f484c4cbdc54b4b8222d64be4b6c0d | refs/heads/master | 2023-01-12T20:07:34.364188 | 2020-11-11T00:55:16 | 2020-11-11T00:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | [
"cliff@cotobadesign.com"
] | cliff@cotobadesign.com |
0cad79d129e122280773519919929db546c04b35 | d6a43cbb975c0d5dd2465d6f09c43767d35c121a | /tests/data/full.atom.py | 9296e0f4f1015c1a3f5fe7650a6966818e2ae740 | [
"BSD-3-Clause"
] | permissive | lemon24/reader | a76f5fd3f8dbf9d86e3627bbf9a60732414721cb | 5e1682c9bfa36d341c03ab804adfb95cfc53f26e | refs/heads/master | 2023-08-17T00:38:03.405077 | 2023-08-16T21:11:25 | 2023-08-16T21:11:25 | 115,272,183 | 349 | 24 | BSD-3-Clause | 2022-06-20T19:37:32 | 2017-12-24T15:36:43 | Python | UTF-8 | Python | false | false | 2,327 | py | import datetime
from reader import Content
from reader import Enclosure
from reader._types import EntryData
from reader._types import FeedData
feed = FeedData(
url=f'{url_base}full.atom',
updated=datetime.datetime(2003, 12, 13, 18, 30, 2),
title='Example Feed',
link='http://example.org/',
author=... | [
"damian.adrian24@gmail.com"
] | damian.adrian24@gmail.com |
a8b98c7f070d0e848c24f545f4bbe15d3ad0aeea | 892dd32ee0be7135cd33c875b06dcc66307dcc99 | /automation/MPTS/sample/TSMOnly.py | e8f67c541b758ced10e2ead3362d47a562c65066 | [] | no_license | cloudbytestorage/devops | 6d21ed0afd752bdde8cefa448d4433b435493ffa | b18193b08ba3d6538277ba48253c29d6a96b0b4a | refs/heads/master | 2020-05-29T08:48:34.489204 | 2018-01-03T09:28:53 | 2018-01-03T09:28:53 | 68,889,307 | 4 | 8 | null | 2017-11-30T08:11:39 | 2016-09-22T05:53:44 | Python | UTF-8 | Python | false | false | 3,749 | py | import json
import requests
import time
#NoofAccounts=_MyValue_
#NoofTSMs=_MyValue_
#NoofNFSVolumes=_MyValue_
#NoofISCSIVolumes=_MyValue_
#### Function(s) Declaration Begins
def sendrequest(url, querystring):
#print url+querystring
response = requests.get(
stdurl+querystring, verify=False
)
... | [
"karthik.s@cloudbyte.com"
] | karthik.s@cloudbyte.com |
1e98faea29ed35a5e871fd179b7c6cfae81638ac | 61187748235cc5fd13f85d7227ec9c35b260729b | /djangocms_blog/south_migrations/0016_auto__add_field_blogconfigtranslation_object_name.py | 22c47d916326d4ee5388ac0a63699c53f272884a | [] | no_license | cluster-master/djangocms-blog | e5c71446f93a1fc54c1cacdc69d2dc5dfea36868 | 52f46f797641a2d9d2498a6cdb4739c008eb5ea9 | refs/heads/develop | 2021-01-14T14:02:34.526321 | 2016-01-04T12:49:47 | 2016-01-04T12:49:47 | 47,971,627 | 0 | 0 | null | 2015-12-14T11:39:54 | 2015-12-14T11:39:54 | null | UTF-8 | Python | false | false | 19,616 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
from djangocms_blog.settings import get_setting
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'BlogConfigTransla... | [
"i.spalletti@nephila.it"
] | i.spalletti@nephila.it |
8021b7fcb0d5d9321c202c7efa6aa736d098d313 | 2f9c2bb2c8d32368f90ef798c08848cec4ea2ebd | /tests/unit/flow/test_asyncflow.py | 5cf46aaf6c1d714e2dbd80eeda95f8804342fc62 | [
"Apache-2.0"
] | permissive | automation555/jina | 9e0aafd9d894bd5995f091ea0f8566a9ed0f781d | 337526c00265190fc45235b80df10c0a75b51c09 | refs/heads/master | 2023-06-03T04:33:18.460871 | 2021-06-17T08:51:21 | 2021-06-17T08:51:21 | 377,765,051 | 0 | 0 | Apache-2.0 | 2021-06-17T08:55:30 | 2021-06-17T08:50:48 | Python | UTF-8 | Python | false | false | 5,500 | py | import asyncio
import time
import numpy as np
import pytest
from jina import Document, Flow
from jina.flow.asyncio import AsyncFlow
from jina.logging.profile import TimeContext
from jina.types.document.generators import from_ndarray
from jina.types.request import Response
from tests import validate_callback
num_docs... | [
"rajashree.patil@embold.io"
] | rajashree.patil@embold.io |
cd9ba9cd628293fc4ec5050ca228e80392fb1503 | e2992452a3c52f4cbbc64e1686128ad464b71d16 | /libMe/util/EncodeUtil.py | f03ef111ddbb46dd976e0044504b8005c05cc0da | [] | no_license | MaGuiSen/studyScrapy | 6b84605a15027ffc24501d690666f419ebb379fd | 03604bafe19e55db12677a4af388c8a9198ca572 | refs/heads/master | 2021-01-17T04:30:23.858217 | 2017-08-30T01:50:08 | 2017-08-30T01:50:08 | 95,433,695 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | # -*- coding: utf-8 -*-
def getCoding(strInput):
"""
่ทๅ็ผ็ ๆ ผๅผ
"""
if isinstance(strInput, unicode):
return "unicode"
try:
strInput.decode("utf8")
return 'utf8'
except:
pass
try:
strInput.decode("gbk")
return 'gbk'
except:
pass
def... | [
"1059876295@qq.com"
] | 1059876295@qq.com |
a47b02fdaab7172d06df7b342db19356ab519101 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /4_set/ๆปๅจๆฟๆขๆดๆฐ/Distinct Coin Sums.py | a98649e5d5c1c416fb9cc5913814f3c670f65be5 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | class Solution:
def solve(self, coins, quantities):
"""Return the number of distinct coin sum values you can get by using non-empty group of these coins."""
dp = set([0])
for index, coin in enumerate(coins):
ndp = set()
for pre in dp:
for count ... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
92fa1609950bf1451a3c35e5f8b6d7ea0e503658 | 67117705720a3e3d81253ba48c1826d36737b126 | /Wk10_STRANDS/evaluate_random.py | 5fd8aa91b959b382d35421fe4925a13425d89ebb | [] | no_license | pyliut/Rokos2021 | 41f0f96bc396b6e8a5e268e31a38a4a4b288c370 | 70753ab29afc45766eb502f91b65cc455e6055e1 | refs/heads/main | 2023-08-13T17:29:30.013829 | 2021-09-26T19:01:35 | 2021-09-26T19:01:35 | 382,092,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 1 15:15:57 2021
@author: pyliu
"""
import pandas as pd
import numpy as np
import scipy as sp
import time
import random
from random_prior import *
from evaluate_prior import *
def evaluate_random(edge,df_test, df_train, filename_train = "tsc_map.yaml",
... | [
"noreply@github.com"
] | pyliut.noreply@github.com |
cce02dbf8c91ec4ea667196ff84e70b817f7c157 | b08870f8fe7b3cf1bbab3c52a7bacbb36ee1dcc6 | /verp/stock/doctype/quick_stock_balance/quick_stock_balance.py | 34d21c079b2527cb9d590283dc3ba5f86886df3f | [] | no_license | vsadminpk18/verpfinalversion | 7148a64fe6134e2a6371470aceb1b57cc4b5a559 | 93d164b370ad9ca0dd5cda0053082dc3abbd20da | refs/heads/master | 2023-07-13T04:11:59.211046 | 2021-08-27T06:26:48 | 2021-08-27T06:26:48 | 400,410,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.model.document import Document
from verp.stock.utils import get_stock_balance, get_stock_... | [
"admin@vespersolutions.tech"
] | admin@vespersolutions.tech |
6f7e66a72531e3e9d15c5337c50890545e6c8b34 | ffc1cc3bb7b68335b115122fdc7924fc4e31d528 | /pro42.py | c6c957f50c694f62e26d9d6bbc341b486cd588f5 | [] | no_license | Rihanashariff/swathi24 | dba1dd3c3d2ff583ae431b432e0ef262bfeb3ac3 | 2b0d21f2febdd2a563e8f0affeebd5ca7a5821b8 | refs/heads/master | 2020-07-02T05:28:32.199982 | 2019-06-29T08:22:10 | 2019-06-29T08:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | #split arra
n,k=map(int,input().split())
l=list(map(int,input().split()))
if k==1:
print(min(l))
elif k==2:
print(max(l[0],l[n-1]))
else:
print(max(l))
| [
"noreply@github.com"
] | Rihanashariff.noreply@github.com |
eb754b8caa1a4935595aabf735b2d83766c294f8 | c5f58af61e3577ded52acda210f4f664651b598c | /template/mmdetection/configs/legacy_1.x/mask_rcnn_r50_fpn_1x_coco_v1.py | b089c0d4ad86f3f7240624bb3b70c23518049957 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hojihun5516/object-detection-level2-cv-02 | 0a4ee5cea9a77ef5d43fb61a4b37fe3a87cb0eac | bc8a08286935b31b8e7e597c4b1ca2cbbaeb9109 | refs/heads/master | 2023-08-31T09:50:59.150971 | 2021-10-16T15:00:19 | 2021-10-16T15:00:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | _base_ = [
"../_base_/models/mask_rcnn_r50_fpn.py",
"../_base_/datasets/coco_instance.py",
"../_base_/schedules/schedule_1x.py",
"../_base_/default_runtime.py",
]
model = dict(
rpn_head=dict(
anchor_generator=dict(type="LegacyAnchorGenerator", center_offset=0.5),
bbox_coder=dict(typ... | [
"hojihun5516@daum.net"
] | hojihun5516@daum.net |
dc5c63b9b7018214aec3114408ab7a45adf6bb20 | e5cb4f8e6a350b511080e28a4acb4f5fd264f5f9 | /emission/core/wrapper/confirmedtrip.py | 3d6357e93f31c0b398c5fbf82d183913e3bd25db | [
"BSD-3-Clause"
] | permissive | jf87/e-mission-server | cde78e92badc640f307e979bd044da814c31de02 | 2e5fb715b6b9ec88c2c938de08a659d11fac34a6 | refs/heads/master | 2021-08-09T00:08:58.838672 | 2021-06-21T08:31:22 | 2021-06-21T08:31:22 | 163,435,995 | 0 | 0 | BSD-3-Clause | 2020-08-09T13:32:08 | 2018-12-28T17:50:22 | Jupyter Notebook | UTF-8 | Python | false | false | 1,095 | py | from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
from builtins import *
import emission.core.wrapper.trip as ecwt
import emission.core.wrapper.wrappe... | [
"shankari@eecs.berkeley.edu"
] | shankari@eecs.berkeley.edu |
5e8021a95005100a27855482ebdecd37028530ca | 15fbf63eedc5a19836ff198bd2b80117e356955a | /stickerfinder/telegram/callback_handlers/report.py | 738bd113d52daf995eb74a28b3ab42892717e2cd | [
"MIT"
] | permissive | drmhdh/sticker-finder | cf2656160bee45d1b51ddda130a766f48fecfe8a | 688656a4b67c1e5057c0d1dc5b21201f0466b7ab | refs/heads/master | 2022-01-26T14:39:45.366537 | 2019-05-02T20:32:11 | 2019-05-02T20:32:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,608 | py | """Module for handling sticker set voting task buttons."""
from stickerfinder.models import Task
from stickerfinder.helper.maintenance import check_maintenance_chat
from stickerfinder.helper.callback import CallbackResult
from stickerfinder.helper.telegram import call_tg_func
from stickerfinder.helper.keyboard import g... | [
"arne@twobeer.de"
] | arne@twobeer.de |
1928029f64bfc831e014cbfda0d1844428cc4025 | 524591f2c4f760bc01c12fea3061833847a4ff9a | /arm/opt/ros/kinetic/lib/python2.7/dist-packages/shape_msgs/msg/_SolidPrimitive.py | cd7fab91d3d5ac29f8339b1ff910e358710e246d | [
"BSD-3-Clause"
] | permissive | Roboy/roboy_plexus | 6f78d45c52055d97159fd4d0ca8e0f32f1fbd07e | 1f3039edd24c059459563cb81d194326fe824905 | refs/heads/roboy3 | 2023-03-10T15:01:34.703853 | 2021-08-16T13:42:54 | 2021-08-16T13:42:54 | 101,666,005 | 2 | 4 | BSD-3-Clause | 2022-10-22T13:43:45 | 2017-08-28T16:53:52 | C++ | UTF-8 | Python | false | false | 5,767 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from shape_msgs/SolidPrimitive.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class SolidPrimitive(genpy.Message):
_md5sum = "d8f8cbc74c5ff283fca29569ccefb45d"
_type... | [
"simon.trendel@tum.de"
] | simon.trendel@tum.de |
752b3698e3219d1ca10929b4519afa6a755b629c | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_210/139.py | f73e8657befbc6ae924e000ab345415d1206ec8b | [] | 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 | 699 | py | from math import pi
f = open('ans.txt', 'w')
c = int(input())
for i in range(1,c+1):
c, j = map(int, input().split())
if (c == 1 and j == 0) or (j == 1 and c == 0):
a, b = map(int, input().split())
f.write(f"Case #{i}: 2\n")
elif c == 2 or j == 2:
a, b = map(int, input().split())
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
7b651e837a4110a20976f6d98064b699397c31ba | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-8344.py | 644eb649e65a97fd424f5ddf28558341f9fda473 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,292 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
28759365923d8f64d0f27f0cc86e033caa637517 | ebc7607785e8bcd6825df9e8daccd38adc26ba7b | /python/baekjoon/2.algorithm/implementation/๋ฐฑ์ค_์ฒญ์๋
_์์ด.py | ec642c5b7e07bf253b3c70c6b6aca33a2a3575c5 | [] | no_license | galid1/Algorithm | 18d1b72b0d5225f99b193e8892d8b513a853d53a | 5bd69e73332f4dd61656ccdecd59c40a2fedb4b2 | refs/heads/master | 2022-02-12T07:38:14.032073 | 2022-02-05T08:34:46 | 2022-02-05T08:34:46 | 179,923,655 | 3 | 0 | null | 2019-06-14T07:18:14 | 2019-04-07T05:49:06 | Python | UTF-8 | Python | false | false | 2,421 | py | import sys, copy
def get_fish_idx(x, y, fish_list):
for idx, fish in enumerate(fish_list):
if fish[2][0] == x and fish[2][1] == y:
return idx
# ํด๋น ์ขํ์ ๋ฌผ๊ณ ๊ธฐ๊ฐ ์๋ ๊ฒฝ์ฐ
return -1
def is_valid(x, y):
return 0 <= x < 4 and 0 <= y < 4
def move_fishes(sx, sy, fish_list):
global ds
... | [
"galid1@naver.com"
] | galid1@naver.com |
a247dd35bfeefdfd7695bf5a39e69db77ff084f0 | fc61c9d899ef9c8ddadac0875ab738df28be272e | /python/python-online-lec/ch4/python_advanced/ch04-01.py | cee48df2e2ff9a08a9daa072f373c86f7ad177cc | [
"MIT"
] | permissive | hbyyy/TIL | 4908b91d880df268f5f7b8a43703f673183f2e8b | e89ae2913a8a38eb7f480a9ec2324c3ac11e309e | refs/heads/master | 2022-12-21T04:34:13.896078 | 2021-05-24T13:19:57 | 2021-05-24T13:19:57 | 219,916,943 | 0 | 0 | MIT | 2022-12-12T05:15:04 | 2019-11-06T05:12:55 | Jupyter Notebook | UTF-8 | Python | false | false | 215 | py | # first class function
print(set(dir(iter([1,2,3,4,5]))) - set(dir(range(10))) )
def factorial(n: int) -> int:
if n == 1:
return n
return n * factorial(n-1)
print([*map(factorial, range(1, 6))])
| [
"qjaduddl94@gmail.com"
] | qjaduddl94@gmail.com |
d0b6e06ab67e1a7dec9b3228f774cbce4c4df7db | e59e711e81536f027b10f7033a698ab9e39d489c | /Geometry/CaloEventSetup/python/HFNoseTopology_cfi.py | 031fe99595ff33182b0da4158489904226849541 | [
"Apache-2.0"
] | permissive | AndreaBellora/cmssw | 73e5f668dfd188bfedcb532b2bd364c486561b03 | 26cf1918ad4133f8178e303a68d97fc58fbeac9f | refs/heads/master | 2023-07-20T11:44:57.079220 | 2018-07-31T12:08:32 | 2018-07-31T12:08:32 | 143,017,412 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | import FWCore.ParameterSet.Config as cms
#
# This cfi should be included to build the HGCal Topologies
#
HFNoseTopologyBuilder = cms.ESProducer("HGCalTopologyBuilder",
Name = cms.string("HFNoseSensitive"),
Type = cms.int32(6)
... | [
"sunanda.banerjee@cern.ch"
] | sunanda.banerjee@cern.ch |
8cadcdab49c891621863861846c7f5fde5ecd503 | bebba3fb1dfc13a2220f06997c4bc8da42ef8e87 | /smashlib/ipy3x/nbconvert/exporters/exporter.py | d26742223d298ae99c2575eefc7c9c1304833070 | [
"MIT"
] | permissive | mattvonrocketstein/smash | b48b93c3419637f615c7ac3386b04ae756e1fadc | 98acdc27ab72ca80d9a7f63a54c0d52f126a8009 | refs/heads/master | 2021-01-18T23:23:59.340206 | 2016-07-14T01:28:17 | 2016-07-14T01:28:17 | 2,813,958 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,329 | py | """This module defines a base Exporter class. For Jinja template-based export,
see templateexporter.py.
"""
from __future__ import print_function, absolute_import
import io
import os
import copy
import collections
import datetime
from IPython.config.configurable import LoggingConfigurable
from IPython.config import... | [
"matthewvonrocketstein@gmail-dot-com"
] | matthewvonrocketstein@gmail-dot-com |
a802683d34b658d3d0748f9a476e3ecdc62a1c39 | 5864e86954a221d52d4fa83a607c71bacf201c5a | /carbon/common/lib/markdown/extensions/def_list.py | 4f0de89912416b74ca84996e379a5edc82dfedb1 | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,372 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\carbon\common\lib\markdown\extensions\def_list.py
import re
import markdown
from markdown.util import etree
class DefListProcessor(markdown.blockprocessors.BlockProcessor):
RE = re.compile('(^|\\n)[ ]{0,3}:[ ]{1,3}(.*?)(\\n|$)')
... | [
"le02005@163.com"
] | le02005@163.com |
7c87c227337384c92c3b5bf13a083449e40b2b7e | a982d8f9fd99c4af077dcafc1092a0f3779d9b39 | /web_pjt/web_pjt/articles/views.py | 1390a35c247ee3cc9ccd0f2dabc9c68159866dd9 | [] | no_license | do-park/DDDJ | cbe4586a583618b616eaab19014ba16e69b38f06 | 22b53bb4822d7e0b61f5a8226bbadb9b9cb20ea0 | refs/heads/master | 2023-01-12T14:30:16.303107 | 2020-11-07T16:09:11 | 2020-11-07T16:09:11 | 273,131,598 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,077 | py | from django.shortcuts import render, redirect, get_object_or_404
from .models import Article, Comment
from movies.models import Movie
from .forms import ArticleForm, CommentForm
from django.contrib.auth.decorators import login_required
from django.core.paginator import Paginator
from datetime import timedelta
import da... | [
"dohee.pa@gmail.com"
] | dohee.pa@gmail.com |
e61c31f37c9964c7ffd39869a8d2ecb2b8a7ced8 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_alibis.py | d0171b2a3add283c5bec1d670d6db8781a0e1ca8 | [
"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._alibi import _ALIBI
#calss header
class _ALIBIS(_ALIBI, ):
def __init__(self,):
_ALIBI.__init__(self)
self.name = "ALIBIS"
self.specie = 'nouns'
self.basic = "alibi"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
38be2c172ab1d3154432b59199e2a909e3901223 | 3c982f9e570f8185770adbfb0540e22f6d0f3c28 | /mp_calc/virtenv/lib/python3.8/site-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py | 06baf7e8706b5da9a647febad28a88751277f730 | [
"MIT"
] | permissive | azkmee/fip_powerx_mini_projects | 48bcf4adca952e70dcb61603eb5ac60522dafebc | fbf3385f11893160770896236ee012927cb092d4 | refs/heads/master | 2023-07-11T03:01:43.433303 | 2021-08-04T13:42:31 | 2021-08-04T13:42:31 | 392,509,672 | 0 | 0 | MIT | 2021-08-04T13:42:32 | 2021-08-04T01:37:54 | Python | UTF-8 | Python | false | false | 23,983 | py | import os
import sys
import traceback
from _pydev_bundle.pydev_imports import xmlrpclib, _queue, Exec
from _pydev_bundle._pydev_calltip_util import get_description
from _pydevd_bundle import pydevd_vars
from _pydevd_bundle import pydevd_xml
from _pydevd_bundle.pydevd_constants import (IS_JYTHON, dict_iter_items, NEXT_... | [
"kaiying.fu@gmail.com"
] | kaiying.fu@gmail.com |
e6fac2153aac284d9530a47ff933793ad517f344 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/keyvault/v20180214/secret.py | 982008275fc51e43c717bc589bec037402e201f5 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 10,674 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
5f7d39150e878a66ec23e062dd7d70b9bcd804e6 | 2af1e6357f51d0d08b1a991e2bd922b7bdc8c0b6 | /baekjoon/not_accepted/1167 ํธ๋ฆฌ์ ์ง๋ฆ_floyd-warshall_2.py | 40e4929db54865cabac4b0a5397d10b91363bfe1 | [] | no_license | grasshopperTrainer/coding_practice | 530e9912b10952c866d35d69f12c99b96959a22d | d1e5e6d6fa3f71f1a0105940fff1785068aec8b0 | refs/heads/master | 2023-06-01T13:30:15.362657 | 2021-06-08T08:40:15 | 2021-06-08T08:40:15 | 267,359,225 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | # reducing memory usage
# time out
from sys import stdin
def solution(N, routes):
MAX = 10_000
tree = {}
for r in routes:
depart = r[0]
it = iter(r[1:])
for n in it:
tree[(depart, n)] = next(it)
for m in range(1, N+1):
for i in range(1, N+1):
fo... | [
"grasshoppertrainer@gmail.com"
] | grasshoppertrainer@gmail.com |
6a03f62b4905e3c7d1cdbf69926f721ac85d51c6 | 3344e1489e1c8616181314a6524ff593f642c2c9 | /dl/chapter2/or_func.py | 6a2fcb88fe740c410fecab9cb1a821c2f0694d73 | [] | no_license | 21nkyu/dl | 2f0fb8405f7e10bd02e31efa9334921b8df97f97 | cdcbd3a2bedaa4542d7dbacbf027396fc70ce3f4 | refs/heads/main | 2023-08-31T16:38:36.615165 | 2021-11-03T15:20:22 | 2021-11-03T15:20:22 | 422,246,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | import numpy as np
def or_func(x1, x2):
x = np.array([x1, x2])
w = np.array([0.5, 0.5])
b = -0.2
tmp = np.sum(x*w)+b
if tmp <= 0:
return 0
return 1 | [
"adele7178@naver.com"
] | adele7178@naver.com |
eb9292b595bef60e166068873d143b42ad54a2d8 | e86dbbe3f0650b4d1f4039211e4702859b6b5bfa | /pyscf/delta_scf/scf_s.py | aff04e8034bf02661bdd32a2210175d2181c7620 | [] | no_license | sapatha2/cuo | 07a568b021b69e6448763d232b5f63857f9e2932 | 006b190ae29de0af24c0fd905186ccda0c9ade94 | refs/heads/master | 2020-03-24T02:01:50.269432 | 2019-06-14T17:52:53 | 2019-06-14T17:52:53 | 142,359,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,932 | py | #PySCF input file for CuO calculations
import json
from pyscf import gto,scf,mcscf, fci,lo,ci,cc
from pyscf.scf import ROHF,ROKS,UHF,UKS, addons
import numpy as np
import pandas as pd
df=json.load(open("trail.json"))
charge=0
#Additional states
S=[1,1,1,1,1]
symm_dict=[
{'A1':(5,5),'E1x':(3,3),'E1y':(3,... | [
"sapatha2@illinois.edu"
] | sapatha2@illinois.edu |
c4cdc5f902e454c3555367530422548c79313419 | 319d66c48f51e3d98e9df953d406a6f545b72363 | /Python/TwoStrings.py | 93cdab9452eab2fbcc476f7b088f5e8746fc5d76 | [
"Apache-2.0"
] | permissive | WinrichSy/HackerRank-Solutions | 291bc7a32dc4d9569d7028d6d665e86869fbf952 | ed928de50cbbbdf0aee471630f6c04f9a0f69a1f | refs/heads/master | 2022-07-18T15:43:48.865714 | 2020-05-16T00:21:56 | 2020-05-16T00:21:56 | 255,453,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | #Two Strings
#https://www.hackerrank.com/challenges/two-strings/problem
#!/bin/python3
import math
import os
import random
import re
import sys
# Complete the twoStrings function below.
def twoStrings(s1, s2):
s1_set = list(set(s1))
s2_set = list(set(s2))
for i in s1_set:
if i in s2_set:
... | [
"winrichsy@gmail.com"
] | winrichsy@gmail.com |
970a27ad5a6f180d6f567b10a24309540a2f364f | 45de3aa97525713e3a452c18dcabe61ac9cf0877 | /src/secondaires/familier/types/barre_attache.py | 697fc617228ad33fb007e25b34c48b074ec5d852 | [
"BSD-3-Clause"
] | permissive | stormi/tsunami | 95a6da188eadea3620c70f7028f32806ee2ec0d1 | bdc853229834b52b2ee8ed54a3161a1a3133d926 | refs/heads/master | 2020-12-26T04:27:13.578652 | 2015-11-17T21:32:38 | 2015-11-17T21:32:38 | 25,606,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,565 | py | # -*-coding:Utf-8 -*
# Copyright (c) 2014 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# lis... | [
"kredh@free.fr"
] | kredh@free.fr |
7be2abeab2df7f1d5bc04459eee30d4129b87489 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/atomic/integer/Schema+Instance/NISTXML-SV-IV-atomic-integer-fractionDigits-1-1.py | 8d454b0ee6aa32933dfcdcb7ea28358723d58032 | [
"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 | 298 | py | from output.models.nist_data.atomic.integer.schema_instance.nistschema_sv_iv_atomic_integer_fraction_digits_1_xsd.nistschema_sv_iv_atomic_integer_fraction_digits_1 import NistschemaSvIvAtomicIntegerFractionDigits1
obj = NistschemaSvIvAtomicIntegerFractionDigits1(
value=-999999999999999999
)
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
28c4653058cf8e268d6f9df167b0f7f1436718d3 | 5f9ebed60f6f2568b7c4a34505ff9e36b77968f3 | /figure_paper_xpol_composites.py | 7ef77c6a90cb4f682d27bf7c45b258a63c37460c | [] | no_license | rvalenzuelar/xpol_vis | 3497b990694f033c711b7a4e2f0c199d46567efd | 181fd831afaafa7e7018a2425b0ee9b2a820f649 | refs/heads/master | 2020-04-05T14:09:37.028300 | 2018-04-26T20:20:32 | 2018-04-26T20:20:32 | 50,193,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,449 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 22 11:50:10 2016
@author: raul
"""
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import xpol_tta_analysis as xta
import numpy as np
import mpl_toolkits.axisartist as AA
import matplotlib as mpl
from matplotlib.gridspec import GridSpecFromSubplotSp... | [
"raul.valenzuela@colorado.edu"
] | raul.valenzuela@colorado.edu |
14ae6c673eef938af1474c912a457a9e27db17f9 | 2cb3447b55b3a298ba744f2fe67aaae16938c66d | /xmldirector/plonecore/demo/xmldocument.py | 36c34ddcd099b1a6dd349501b5b31e08ddfeddd3 | [] | no_license | tecumsehmaverick/xmldirector.plonecore | e2bc8fe0c065f73bd27438184cf4552c2df668e8 | 30f28878d6de1ffd1baf2fa0e6d903a7da204c7b | refs/heads/master | 2020-12-28T20:30:29.720830 | 2015-01-23T17:01:34 | 2015-01-23T17:01:34 | 29,760,631 | 0 | 1 | null | 2015-01-24T01:01:02 | 2015-01-24T01:01:02 | null | UTF-8 | Python | false | false | 1,337 | py | # -*- coding: utf-8 -*-
################################################################
# xmldirector.plonecore
# (C) 2014, Andreas Jung, www.zopyx.com, Tuebingen, Germany
################################################################
"""
A sample Dexterity content-type implementation using
all XML field types.
"... | [
"yet@gmx.de"
] | yet@gmx.de |
8dc8c99c234c8352a74622536467e1147f3e3197 | 474c7eab287cb3ebd3788a1cac72a6dffa9941bc | /Leetcode/ana.py | 5747471217ef057955d52e3a9d2c7d38e609badf | [] | no_license | shenlant314/Reptile | bf85b7d8e19defa65a6a30140732bf37222e98da | 42f5ea8681f8c477de9db109e9a0d5dba2dfccae | refs/heads/master | 2023-04-17T06:07:52.455713 | 2021-04-19T23:39:02 | 2021-04-19T23:39:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jan 4 20:54:36 2020
@author: Lee
"""
from pymongo import MongoClient
import pandas as pd
from pyecharts import options as opts
from pyecharts.charts import Geo,Line,WordCloud,Pie,Parallel,PictorialBar,Bar,Polar
from pyecharts.globals import ChartType, SymbolType
pd.set_op... | [
"870407139@qq.com"
] | 870407139@qq.com |
e95e5d6df88dae462e0f7709393296bff7e29fa5 | 9d131148c2189f73e63b76c7a097cd4cd64ee18f | /analyze.py | 1e3e75212c4eaa4f94c68423f94ae41c15889a9d | [] | no_license | osmmaz/Twitter_Analytics | 2e6f51b5f6be58d4dd0d6474c9a1b309b85cb099 | 829a27a038a5ff8270378cace4bfaa4b6a778bb9 | refs/heads/master | 2020-04-15T00:43:18.497042 | 2017-08-26T14:55:46 | 2017-08-26T14:55:46 | 164,250,306 | 1 | 0 | null | 2019-01-05T20:51:56 | 2019-01-05T20:51:56 | null | UTF-8 | Python | false | false | 5,441 | py | '''
Author: Adil Moujahid
Description: Script for analyzing tweets to compare the popularity of 3 programming languages: Python, Javascript and ruby
Reference: http://adilmoujahid.com/posts/2014/07/twitter-analytics/
'''
import json
import pandas as pd
import matplotlib.pyplot as plt
import re
def word_in_text(word,... | [
"bossi.ernestog@gmail.com"
] | bossi.ernestog@gmail.com |
32f0ebd68a4cf905217afbd34ce240f7c6c03b8e | 5a42ce780721294d113335712d45c62a88725109 | /project/graphdata/module/yiyiyuan/model/yi_loan_flows.py | df4e31090b6b58f8024d0997f2403261bc3c5356 | [] | no_license | P79N6A/project_code | d2a933d53deb0b4e0bcba97834de009e7bb78ad0 | 1b0e863ff3977471f5a94ef7d990796a9e9669c4 | refs/heads/master | 2020-04-16T02:06:57.317540 | 2019-01-11T07:02:05 | 2019-01-11T07:02:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | # -*- coding: utf-8 -*-
# ๆณจๆ่ฟ้ไฝฟ็จไบ้ฟ้ไบๆฌๅฐๅบ็้่ฎฏๅฝ
# sqlacodegen mysql://root:123!@#@127.0.0.1/xhh_test --outfile yyy.py --flask
from lib.application import db
from .base_model import BaseModel
class YiUserLoanFlow(db.Model, BaseModel):
__bind_key__ = 'own_yiyiyuan'
__tablename__ = 'yi_user_loan_flows'
id = db.... | [
"wangyongqiang@ihsmf.com"
] | wangyongqiang@ihsmf.com |
b706a298261f243da96e72be47215ae11ce4a86f | 4a9dada02c749e9e5277fe1e35357d7b2b28ad5c | /้กพๅคฉๅช2018010980/ๆไฝ็ณป็ปๅฎ้ช/ไฝไธ2.py | 780d1e608f2afcdbef5a6f093500ede8eb25ba41 | [] | no_license | wanghan79/2020_Option_System | 631cc80f52829390a128a86677de527472470348 | f37b870614edf7d85320da197d932df2f25a5720 | refs/heads/master | 2021-01-09T13:10:05.630685 | 2020-07-10T03:30:39 | 2020-07-10T03:30:39 | 242,312,271 | 13 | 9 | null | 2020-07-04T16:13:11 | 2020-02-22T09:12:56 | Python | UTF-8 | Python | false | false | 308 | py | # !/usr/bin/python3
# -*- coding: UTF-8 -*-
"""
Author: Ty.Gu
Purpose: os.system
Created: 24/6/2020
"""
# ไฝไธ2. ้็จpython่ฏญ่จๅฎ็ฐwindowsๅฝไปค่ก่ฐ็จ๏ผๆ็คบ๏ผ้็จPythonๅ
็ฝฎๅทฅๅ
ทๅ
os.system
import os
os.system('cd D:\\QQ & mkdir test' )
a = os.system('python ไฝไธ1.py')
print(a)
| [
"noreply@github.com"
] | wanghan79.noreply@github.com |
111386fe4bfdf0ed187f70cc4815af53d87d2cf4 | 0274c84e6bf546a325ba2a981426a9cad33cdcfc | /pycoin/ecdsa/Curve.py | c022efb03779d2035b240e74c8c42f2d5b4d640b | [
"MIT"
] | permissive | jaschadub/pycoin | 2cc646461415d68b69ae5a0c4496c6a6b37740e2 | 1e8d0d9fe20ce0347b97847bb529cd1bd84c7442 | refs/heads/master | 2021-07-05T05:31:47.734966 | 2019-03-16T18:33:47 | 2019-03-16T18:33:47 | 140,237,273 | 0 | 0 | MIT | 2019-03-16T18:41:54 | 2018-07-09T05:51:01 | Python | UTF-8 | Python | false | false | 5,076 | py | # Adapted from code written in 2005 by Peter Pearson and placed in the public domain.
from .Point import Point
def _leftmost_bit(x):
# this is closer to constant time than bit-twiddling hacks like those in
# https://graphics.stanford.edu/~seander/bithacks.html
assert x > 0
result = 1
while resul... | [
"him@richardkiss.com"
] | him@richardkiss.com |
67e7af372c2ef8efcd69e1cb3b3609ff36a04e9b | ed491b7539193c30ffefcc52af276f77fc98f979 | /train_LSTM.py | bf356af65321d25c10d22c36291f2a455380ec77 | [
"Apache-2.0"
] | permissive | FredHuang16/cnn-lstm-bilstm-deepcnn-clstm-in-pytorch | fb5dcb345379deadc632a43f73a53c436a02ea42 | 8ef5b1321cf79063ee4b146c7502a31815e9f33b | refs/heads/master | 2021-01-16T00:46:33.781766 | 2017-08-10T06:51:21 | 2017-08-10T06:51:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,640 | py | import os
import sys
import torch
import torch.autograd as autograd
import torch.nn.functional as F
import torch.nn.utils as utils
import random
import shutil
random.seed(336)
torch.manual_seed(1234)
def train(train_iter, dev_iter, test_iter, model, args):
if args.cuda:
model.cuda()
optimizer = torch.... | [
"bamtercelboo@163.com"
] | bamtercelboo@163.com |
da2e3cb7bc9bcca1f4ca59c793fb86ef425b338d | 0b2833b1b129d72ff805e3d775df00f79f421bfb | /parse_noise.py | 53bbdcb73f13007c68694e2313de58134e3b8308 | [] | no_license | xssChauhan/torino-noise | 95f2d8b8c9937c3135221f53da990716c010be38 | 10d58bdea11dc0a716e22ea325b901a4b6b59191 | refs/heads/master | 2023-05-31T16:52:34.217809 | 2021-06-27T19:56:43 | 2021-06-27T19:56:43 | 380,284,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | import pandas as pd
import numpy as np
from datetime import datetime
from datetime import time
def read_noise_csv(file):
df = pd.read_csv(file, delimiter=";", skiprows=list(range(8)))
return df
def combine_date_hour(row):
date = row["Data"]
hour = row["Ora"]
parsed_date = datetime.strptime(... | [
"shikhar.chauhan@live.com"
] | shikhar.chauhan@live.com |
90734113d3bb75eb87aa511a4584a9e3234f7918 | 625d113273cf9bd6474e8ac12cd8afe2e4f8d50b | /Disposable Teleports.py | 9147fab6c0a205e64c33d3d93de55a5efabb3f8e | [] | no_license | hrvach/CheckiO | 9e4b04cf93c8f4da7bd61b55a3cf9bdcaea0836f | d25bbdb3b33441f45f4b587fd2a651c5c086484a | refs/heads/master | 2020-03-25T02:25:57.273381 | 2018-08-02T12:13:28 | 2018-08-02T12:13:28 | 143,289,238 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | def checkio(teleports_string):
teleports, paths = {frozenset(i) for i in teleports_string.split(',')}, []
def walk(station, links, path):
if len(set(path)) == 8 and station == '1':
paths.append(path+station)
for link in filter(lambda x: station in x, links):
walk(next(it... | [
"github@hrvoje.org"
] | github@hrvoje.org |
60fe823701b35b1c4581a56117b8f31fd2dd832e | 7d6bc1812e5ab4f55c53ae168a6f2317b35e037c | /l10n_cl_hr_payroll/model/hr_bonus.py | 2485352eca5af3bda8f1f15699506ec45a91e6c5 | [] | no_license | suningwz/ODOO13-3 | f172c2e16d2d3310f7c0cf88ff5b0fb5f1e1d15c | 527732e22807be0d6a692ab808b74794cb027914 | refs/heads/master | 2022-12-15T10:19:51.328186 | 2020-09-17T22:16:14 | 2020-09-17T22:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,491 | py | from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
RO_STATES = {'draft': [('readonly', False)]}
class HrBonusSheet(models.Model):
_name = 'hr.bonus.sheet'
_description = 'Hoja de Bonos RRHH'
_inherit = ['mail.thread']
_order = 'date_issue desc, name desc, id desc'
... | [
"adrt271988@gmail.com"
] | adrt271988@gmail.com |
7fda55dbef1e0a4b55a7c58ca917e5e021f7952d | 5d28c38dfdd185875ba0edaf77281e684c81da0c | /dev/update_ml_package_versions.py | 4d3487199c6883792b944628ee0461737a34b53a | [
"Apache-2.0"
] | permissive | imrehg/mlflow | 3a68acc1730b3ee6326c1366760d6ddc7e66099c | 5ddfe9a1b48e065540094d83125040d3273c48fa | refs/heads/master | 2022-09-24T05:39:02.767657 | 2022-09-20T00:14:07 | 2022-09-20T00:14:07 | 244,945,486 | 1 | 0 | Apache-2.0 | 2020-03-04T16:11:54 | 2020-03-04T16:11:53 | null | UTF-8 | Python | false | false | 3,569 | py | """
A script to update the maximum package versions in 'mlflow/ml-package-versions.yml'.
# Prerequisites:
$ pip install packaging pyyaml
# How to run (make sure you're in the repository root):
$ python dev/update_ml_package_versions.py
"""
import argparse
import json
from packaging.version import Version
import re
im... | [
"noreply@github.com"
] | imrehg.noreply@github.com |
0184f7b0157794daaa04d557ec2d252d71771506 | 13625dd7375297b066ccd69d6c229e9a1535c9b2 | /payment/migrations/0002_auto_20201222_1654.py | 0b3a4704493f451e693f9d894903346df0675eeb | [] | no_license | rajman01/investfy | 9d5fa3ed7593ec13db575016fc839664630318af | a4c8bf16ba7a1ce38d1370e4779284a4d6426733 | refs/heads/main | 2023-09-01T19:10:18.411861 | 2023-08-28T02:30:23 | 2023-08-28T02:30:23 | 320,408,218 | 0 | 1 | null | 2023-08-28T02:30:24 | 2020-12-10T22:46:03 | null | UTF-8 | Python | false | false | 592 | py | # Generated by Django 3.1.3 on 2020-12-22 15:54
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('payment', '0001_initial'... | [
"alameenraji31@gmail.com"
] | alameenraji31@gmail.com |
b0b869cbd233806fd2ad95371f63f04ff9c5a250 | 634514a9c10e32051964b179cc807d089d31124e | /S2l/Thesis_Ch3/Exp1_reach3dof/Scripts/gym_test_random.py | 4aef80b71d849bb60fdb335eafc4e754e3b2312f | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | leopauly/Observation-Learning-Simulations | 34009872a1f453ffc4ae7ddced7447a74ff704c4 | 462c04a87c45aae51537b8ea5b44646afa31d3a5 | refs/heads/master | 2021-08-04T10:55:42.900015 | 2021-07-05T13:41:09 | 2021-07-05T13:41:09 | 129,761,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,872 | py | #### Random agent in gym env
##Imports
import numpy as np
import gym
import matplotlib.pyplot as plt
## Defining env
env = gym.make('Pusher3DOFReal-v1')
env.switch=-5
env.initialize_env()
#env = gym.make('Pusher7DOF-v1')
print(env.observation_space.shape[0])
print(env.action_space.shape[0])
## Defining vars
LR = 1e... | [
"meetleopauly@yahoo.com"
] | meetleopauly@yahoo.com |
04b46a126c8d2fbabf65762af4d074ed560955e1 | 644bcdabf35261e07c2abed75986d70f736cb414 | /python-project/Maths/plot9.py | 3fc9fd26fdfdbe4a19540be4d5d84ac23ece7649 | [] | no_license | matcianfa/playground-X1rXTswJ | f967ab2c2cf3905becafb6d77e89a31414d014de | 67859b496e407200afb2b1d2b32bba5ed0fcc3f0 | refs/heads/master | 2023-04-03T11:56:15.878757 | 2023-03-24T15:52:37 | 2023-03-24T15:52:37 | 122,226,979 | 5 | 20 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | import matplotlib.pyplot as plt
import numpy as np
x = [ 1, 3, 2, 1]
y = [ 2, 3, 1, 3]
plt.scatter(x,y)
plt.show()
| [
"noreply@github.com"
] | matcianfa.noreply@github.com |
70dde7f0aba2392ea2ae24df204e883b3e0f9b2a | 1f177b5e7bdaca49076c6ff806f5e2be9a86e834 | /algorithm/190121_array/practice_01.py | e802a0b6dc1111ee6056bb6ebc4cea381642c8ca | [] | no_license | silverlyjoo/TIL | 9e19ba407a9dc82c231e66e352f1c7783e767782 | 98a139770a6d19598d787674bcf20d2fe744ced0 | refs/heads/master | 2021-08-17T02:10:35.101212 | 2019-08-26T08:21:32 | 2019-08-26T08:21:32 | 162,099,046 | 6 | 1 | null | 2021-06-10T21:20:36 | 2018-12-17T08:32:39 | Jupyter Notebook | UTF-8 | Python | false | false | 530 | py |
arr = [[1,3,4,5,9],[10,11,2,13,14],[15,6,7,8,16],[17,18,12,19,20],[21,22,23,24,25]]
# arr.append(map(int, input().split()))
arr = [[0 for ze in range(5)] for ro in range(5)]
for i in range(5):
arr[i] = list(map(int, input().split()))
def iswall(testX, testY):
if testX < 0 or testX >=5:
return Fals... | [
"silverlyjoo@gmail.com"
] | silverlyjoo@gmail.com |
9322317b4bb5487ab61113643c8fa3661466d872 | 491dd5a8f7f53ff05e4efc599bd6f32e840c8806 | /scripts/compose_api.py | 222b4da5e4e41e1d6039090fbf5b875e0c36ec6e | [
"CC0-1.0"
] | permissive | forgeRW/WALKOFF | 9b50ffa4eff42286d709c1f13069f836a3af59b5 | 52b688f427e5360f7acab6cdae701fe67f7a0712 | refs/heads/master | 2021-01-17T04:25:21.154843 | 2018-02-06T19:39:27 | 2018-02-06T19:39:27 | 82,941,065 | 0 | 0 | null | 2017-02-23T15:29:03 | 2017-02-23T15:29:03 | null | UTF-8 | Python | false | false | 1,390 | py | import logging
import os
import sys
sys.path.append(os.path.abspath('.'))
from walkoff.config import paths
logger = logging.getLogger(__name__)
def read_and_indent(filename, indent):
indent = ' ' * indent
with open(filename, 'r') as file_open:
return ['{0}{1}'.format(indent, line) for line in fil... | [
"Tervala_Justin@bah.com"
] | Tervala_Justin@bah.com |
045662700cb8d10239ea775433abc0ace3cb9c57 | c71b00b530efe7e8fe4e666b9156ff30976bd72d | /_draft/coordtransform/coordtransform.py | e917e065e6bf08cbb18cf2aff5008487a6d0c4a0 | [
"MIT",
"BSD-3-Clause"
] | permissive | IfeanyiEkperi/autopew | af714537d3438100d01d3c988930fa3e8d270581 | 964c379f7e3a7b15259672df37629baee46e158c | refs/heads/master | 2020-08-15T12:14:01.165061 | 2019-10-15T16:08:27 | 2019-10-15T16:08:27 | 215,340,368 | 0 | 0 | NOASSERTION | 2019-10-15T16:02:54 | 2019-10-15T16:02:53 | null | UTF-8 | Python | false | false | 3,094 | py | import logging
import itertools
from autopew.transform import (
affine_from_AB,
transform_from_affine,
inverse_affine_transform,
)
class CoordinateTransform(object):
library = []
def __init__(self, source, dest, *args, **kwargs):
self.forward = None
self.reverse = None
se... | [
"morgan.j.williams@hotmail.com"
] | morgan.j.williams@hotmail.com |
e7f8f5e7cca6d1c74426ec28482859f35ce8c31f | e68a59efcf3591a7efedb2f66d26d0f01607e288 | /simulator/main.py | 07df44ae9e227d6cdcb934e3c3462ced3d185252 | [] | no_license | fagan2888/core-1 | efc0fb9e4a3139c1174d7caf539163f34b966898 | 97930712b71ebdb6ad587a2dee2bf6b8ac0dbac7 | refs/heads/master | 2020-12-01T22:46:18.836996 | 2017-12-15T16:43:30 | 2017-12-15T16:43:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,633 | py | from flask import Flask, url_for
from flask import jsonify
from flask import request
from connectivity.bitstamp_api import BitstampAPI
from constants import SIMULATOR_REPLAYER_DATA_FILE
from constants import SIMULATOR_USE_REPLAYER, API_URL_V2_TICKER
from constants import TRADING_DEFAULT_CURRENCY_PAIR
from simulator.lo... | [
"premy@reactive.co.jp"
] | premy@reactive.co.jp |
4a4a7d6aa42fc38b95683641c7ce780278223e45 | fff94a56c2992b6930d9964f63dba1ddb32c3193 | /setup.py | 5c6206248384bc36faeeb5f551001680e81a22bd | [
"MIT"
] | permissive | veltzer/pylogconf | fb94ee0bf16168ab7d169b10038fa28f72df5f3b | b1a965fa25199768ad1432990ac6ec8d9bb9ac5e | refs/heads/master | 2023-07-06T11:12:30.656069 | 2023-07-01T14:40:27 | 2023-07-01T14:40:27 | 78,429,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,519 | py | import setuptools
def get_readme():
with open('README.rst') as f:
return f.read()
setuptools.setup(
# the first three fields are a must according to the documentation
name="pylogconf",
version="0.0.37",
packages=[
"pylogconf",
],
# from here all is optional
descriptio... | [
"mark.veltzer@gmail.com"
] | mark.veltzer@gmail.com |
1e45b04e9cbebb6d6b50aa7b99ef5585e8af6788 | 23bc70263cc5355a247dd242d9dc35fb64d1ffbc | /portfoliyo/tests/view/users/test_forms.py | 12ec9945d65a75e37e0b901ac5174ffc64df7832 | [] | no_license | sdevani/portfoliyo | c8abd2c7328a4a7b75d630db5ff74f2e20bbd749 | e85ae37ccbc404a26751539ea756fce484b2db62 | refs/heads/master | 2021-01-16T23:01:27.906389 | 2013-04-26T19:29:34 | 2013-04-26T19:29:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,808 | py | """Tests for user-related forms."""
from django.test.utils import override_settings
from portfoliyo.tests import factories, utils
from portfoliyo.view.users import forms
class TestRegistrationForm(object):
"""Tests for RegistrationForm."""
base_data = {
'name': 'Some Body',
'email': 'some@exa... | [
"carl@oddbird.net"
] | carl@oddbird.net |
4bc4e9d63a5d83d6aa54557c80f837a7946c8875 | a97f60aaa261a0e54f674c2bd1587694c41fd50d | /bitsofpluto.py | 89c242e1333178b1686d146641168d9a19c5a9ac | [] | no_license | asears/bitsofpluto | 7c4bef986740d4518972e3c1c8418db97e173600 | 1cb6a80a9863e429693640b36608e6f2b360895e | refs/heads/master | 2020-11-26T10:34:50.752896 | 2019-09-16T07:15:00 | 2019-09-16T07:15:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,617 | py | #!/usr/bin/env python
# encoding: utf-8
"""
Twitter bot. Tweeting a different bit of Pluto every six hours.
Photo by NASA's New Horizons spacecraft.
https://www.nasa.gov/image-feature/the-rich-color-variations-of-pluto/โฆ
"""
from __future__ import print_function
import argparse
import os.path
import random
import sys
... | [
"hugovk@users.noreply.github.com"
] | hugovk@users.noreply.github.com |
6c3f7cf99c6ff475862e67b3741ac051d547d733 | 0db97db08743783019efe022190f409d22ff95bd | /aliyun/api/rest/Rds20130528DescribeSecurityIpsRequest.py | 8fba72f95fde069ab59928950cd9bfc12d5138d4 | [
"Apache-2.0"
] | permissive | snowyxx/aliyun-python-demo | 8052e2a165f1b869affe632dda484d6ca203bd9b | ed40887ddff440b85b77f9b2a1fcda11cca55c8b | refs/heads/master | 2021-01-10T03:37:31.657793 | 2016-01-21T02:03:14 | 2016-01-21T02:03:14 | 49,921,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | '''
Created by auto_sdk on 2014.10.21
'''
from aliyun.api.base import RestApi
class Rds20130528DescribeSecurityIpsRequest(RestApi):
def __init__(self,domain='rds.aliyuncs.com',port=80):
RestApi.__init__(self,domain, port)
self.DBInstanceId = None
def getapiname(self):
return 'rds.aliyuncs.com.Describ... | [
"snowyxx@126.com"
] | snowyxx@126.com |
b3f8a8af7f853575ba3e3f9c063337ec7292bf2e | 2f91251d41f32346f2f6eb5f0a6e957f253f005f | /bit manipulation/python/leetcode289_Game_of_Life.py | 02b9f64191bcfdb7a15dd241bf098483a1844fea | [
"Apache-2.0"
] | permissive | wenxinjie/leetcode | 8a5f666a1548d0d205cea09cb87fc2c65aec2b58 | c459a01040c8fe0783e15a16b8d7cca4baf4612a | refs/heads/master | 2020-03-24T21:56:00.662969 | 2018-09-06T21:25:58 | 2018-09-06T21:25:58 | 143,058,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,228 | py |
# According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970."
# Given a board with m by n cells, each cell has an initial state live (1) or dead (0). Each cell interacts with its eight neighbors (horizont... | [
"wenxinjieinnyc@gmail.com"
] | wenxinjieinnyc@gmail.com |
fae288441e708509afa743d412bbf58f5f5f1d63 | 6c37d1d2437a08e43b13d621d4a8da4da7135b3a | /yt_dlp/extractor/gotostage.py | 112293bef56c46a7ec238dacf85905690703b07e | [
"Unlicense",
"GPL-2.0-or-later",
"MPL-2.0",
"BSD-3-Clause",
"GPL-3.0-or-later",
"LGPL-2.1-only",
"BSD-2-Clause",
"MIT"
] | permissive | yt-dlp/yt-dlp | be040bde10cc40258c879c75ab30215686352824 | d3d81cc98f554d0adb87d24bfd6fabaaa803944d | refs/heads/master | 2023-09-05T21:15:21.050538 | 2023-09-05T20:35:23 | 2023-09-05T20:35:23 | 307,260,205 | 52,742 | 5,376 | Unlicense | 2023-09-14T05:22:08 | 2020-10-26T04:22:55 | Python | UTF-8 | Python | false | false | 2,727 | py | from .common import InfoExtractor
from ..compat import compat_str
from ..utils import (
try_get,
url_or_none
)
import json
class GoToStageIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?gotostage\.com/channel/[a-z0-9]+/recording/(?P<id>[a-z0-9]+)/watch'
_TESTS = [{
'url': 'https://www.go... | [
"noreply@github.com"
] | yt-dlp.noreply@github.com |
ea7239225feecb34fa333d4d532077816030969f | 312a86122cd08be0a8b7d0aacf87c8445aa6dead | /cmsplugin_blog/migrations/0007_auto__del_pygmentsplugin__chg_field_entry_tags.py | 19ebbd3218c864309e4b6d9f986286c701b081bb | [] | no_license | arnaudbenard/fle-website | f4cbaaa10d96de6eca9a18a5ba558480892d268d | d90d6be9909cd962ca22c72b3af8c43966a33e71 | refs/heads/master | 2021-01-21T01:33:37.534567 | 2013-05-21T22:16:12 | 2013-05-21T22:16:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,214 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
pass
def backwards(self, orm):
pass
models = {
'cms.cmsplugin': {
'Me... | [
"jamalex@gmail.com"
] | jamalex@gmail.com |
cf4a5ac19de8240a8e03404df64ae4461030be7d | b6ff7b98079bcc8e7d8ad248e2de1f61bfabc0db | /multiples_sum_average.py | 296bbc63022fdf2e0973adcce247a959ee3cfd83 | [] | no_license | bakker4444/multiples_sum_average | 4b55808276dcd853d8688e255581c363b6c4cabb | efbc13dda3cc3459b44e0eb853dcb1f11ddca767 | refs/heads/master | 2020-03-09T08:35:48.384936 | 2018-04-09T00:17:45 | 2018-04-09T00:17:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # Multiples
# Part 1 - print odd numbers from 1 to 1000
for i in range(1, 1001, 2):
print i
# Multiples
# Part 2 - print all the multiples of 5 from 5 to 1,000,000
for i in range(5, 1000001, 5):
print i
# Sum List
# Create a program that prints the sum of all the values in the list
a = [1, 2, 5, 10, 255, 3]
p... | [
"bakker4444@gmail.com"
] | bakker4444@gmail.com |
f8aaa4290c282f8bce6f11f9e721a671c7ceb6bc | 696dec6a8d1eba189d36049afedec36da47c08f3 | /dataset_utilities/_core_utils/_unet_attn.py | e87f1eef42bece2a971fe9aa3e96cd671e454917 | [] | no_license | JoelRaymann/polyp-segmentation | d99079f56bb3ae0886fb4c610c4abcc420137781 | 38da6c8bf47df2d2382d31f04faf63649b7d8ab0 | refs/heads/master | 2023-04-10T06:17:34.720237 | 2021-04-14T22:04:36 | 2021-04-14T22:04:36 | 358,053,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | """
Script Implementing U-Net Attention dice's data generator core functionality and all its helper functions
"""
# Import necessary packages
import tensorflow as tf
# Handling U-Net Attention dice
def _load_data_unet_attn(img, seg):
"""
Function to prepare the images and return the data in accordance with t... | [
"joelraymann@gmail.com"
] | joelraymann@gmail.com |
73530b2a28d38e95cc3955cb0f50ddd9f0985ef7 | e6208febf7e34d4108422c6da54453373733a421 | /sdks/python/client/argo_workflows/model/downward_api_projection.py | 49898a74dfbb383ff0787b357d3e85234f9e5841 | [
"Apache-2.0"
] | permissive | wreed4/argo | 05889e5bb7738d534660c58a7ec71c454e6ac9bb | 41f94310b0f7fee1ccd533849bb3af7f1ad4f672 | refs/heads/master | 2023-01-22T05:32:12.254485 | 2022-01-27T21:24:45 | 2022-01-27T22:02:22 | 233,143,964 | 0 | 0 | Apache-2.0 | 2023-01-17T19:04:43 | 2020-01-10T22:56:25 | Go | UTF-8 | Python | false | false | 11,464 | py | """
Argo Server API
You can get examples of requests and responses by using the CLI with `--gloglevel=9`, e.g. `argo list --gloglevel=9` # noqa: E501
The version of the OpenAPI document: VERSION
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from ... | [
"noreply@github.com"
] | wreed4.noreply@github.com |
a5636d5656eb4187372f3d8f24142e7df9c7fa89 | 74473f650f36ad78d8eee801dcbdea8a4825d4a2 | /voltron/remote_debugger.py | 49b88fea297b75670aad50a41c662f1e7ac3c45f | [] | no_license | buttslol/voltron | f2a20d808ca165feaee80d3f6350695a4b7334fc | 1b00674276acd465ca69b78d6ea91aa9467ed92f | refs/heads/master | 2021-01-16T21:40:23.455224 | 2013-10-12T11:36:38 | 2013-10-12T11:36:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | import pdb
import socket
import sys
# Trying to debug a quirk in some code that gets called async by {ll,d}db?
#
# from .remote_debugger import Rdb
# Rdb().set_trace()
#
# Then: telnet localhost 4444
socks = {}
# Only bind the socket once
def _sock(port):
if port in socks:
return socks[port]
s = soc... | [
"richo@psych0tik.net"
] | richo@psych0tik.net |
f64a3a28daa398d4d3500352ba4349bb2d82e861 | a404f504febdc835b69b72c4ac28b153885fc119 | /DungeonsKitgard/KithgardBrawl/KithgardBrawl3.py | edd41caf028501808f7009ea6568177cec161633 | [] | no_license | Chaboi45/CodeCombat | 6093a2eae29ef00c0c277653c4ffd075c9e2ac4c | 6e008a94e65bb72ca9292e303d391a4142de16f5 | refs/heads/master | 2021-07-02T23:24:52.050154 | 2017-09-21T07:42:21 | 2017-09-21T07:42:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,233 | py | while True:
enemys = hero.findEnemies()
index = 0
closest_soldier = None
soldier_dist = 999
closest_archer = None
archer_dist = 999
closest = None
dist = 999
close_count = 0;
priority = None
while (index < len(enemys)):
distance = hero.distanceTo(enemys[index])
... | [
"vadim-job-hg@yandex.ru"
] | vadim-job-hg@yandex.ru |
1970ad0f37eea983e19e8edfa26c8d95bbb9dd45 | 70450f0c551adf47b450468e424f4f90bebfb58d | /dataclasses/resources/test/test_I3RecoPulseSeriesMapMask_pybindings.py | ef13165679e0c4ac5ba061bf58050c184596e4c9 | [
"MIT"
] | permissive | hschwane/offline_production | ebd878c5ac45221b0631a78d9e996dea3909bacb | e14a6493782f613b8bbe64217559765d5213dc1e | refs/heads/master | 2023-03-23T11:22:43.118222 | 2021-03-16T13:11:22 | 2021-03-16T13:11:22 | 280,381,714 | 0 | 0 | MIT | 2020-07-17T09:20:29 | 2020-07-17T09:20:29 | null | UTF-8 | Python | false | false | 2,626 | py | #!/usr/bin/env python
import unittest
import sys
from icecube import icetray,dataclasses
class I3RecoPulseSeriesMapMaskTest(unittest.TestCase):
def setUp(self):
self.frame = icetray.I3Frame(icetray.I3Frame.Physics)
pulses = dataclasses.I3RecoPulseSeriesMap()
key1 = icetray.OMKey(42, 7)
vec = dataclasses.I3R... | [
"aolivas@umd.edu"
] | aolivas@umd.edu |
d405f7741c1355404c6409d8713c69c2ea95bd5b | d873f3e6c322c930068711e795bfc635ed98fd6a | /mainapp/dao/Product/ProductImageDao.py | 2b71855d6d277ecf129805bf13f3abe5a28ce74d | [] | no_license | trunganhvu/personalweb | 3d912366045448b20ec9b7722e9190197cef4f61 | b7afc1a32665e578cbd546b1d2c375597b060914 | refs/heads/master | 2023-08-18T04:30:40.302843 | 2021-09-30T15:46:24 | 2021-09-30T15:46:24 | 401,062,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | from mainapp.model.ProductImage import ProductImage
from datetime import datetime
from django.utils import timezone
def get_all_image_in_product(product_id):
"""
Get all image in product
"""
list_image = ProductImage.objects.filter(product_id=product_id)
return list_image
def get_one_image_in_prod... | [
"vutrunganh1@gmail.com"
] | vutrunganh1@gmail.com |
e36ef19e8a22954393d4d6945028df91e13e2086 | 2432996ac1615cd36d61f0feeff8a359d2b438d8 | /env/lib/python3.8/site-packages/PyInstaller/hooks/rthooks/pyi_rth_glib.py | c8a30ed042ca186466fa26d6db022c72d8a049d1 | [
"Apache-2.0"
] | permissive | Parveshdhull/AutoTyper | dd65d53ece7c13fbc1ead7ce372947483e05e2e3 | 7fabb30e15b770d790b69c2e4eaf9bbf5a4d180c | refs/heads/main | 2023-05-08T14:10:35.404160 | 2023-05-07T20:43:15 | 2023-05-07T20:43:15 | 315,415,751 | 26 | 18 | Apache-2.0 | 2023-05-07T20:43:16 | 2020-11-23T19:13:05 | Python | UTF-8 | Python | false | false | 560 | py | #-----------------------------------------------------------------------------
# Copyright (c) 2015-2020, PyInstaller Development Team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# The full license is in the file COPYING.txt, ... | [
"parvesh.dhullmonu@gmail.com"
] | parvesh.dhullmonu@gmail.com |
a899d1f17d27c6ae466745f8cc745c25c5c96fe5 | dbeb1e145eba012a200073038d8a8965ae0c6f5d | /MachineLearning/MLaPP/MixtureModels/mixGaussMLvsMAP.py | 29000b8f1da18391afd40be017477335f1fe0a4f | [] | no_license | hellJane/Python_DataAnalysis | b7027cb9d8e75a98b5626a58ee85b64f62c54c9c | 966ee5d732e074e9d124333f13d3e3e23ade1edc | refs/heads/master | 2021-05-17T01:57:24.092791 | 2017-12-01T15:32:32 | 2017-12-01T15:32:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,409 | py | import numpy as np
import scipy.stats as ss
import scipy.linalg as sl
import sklearn.preprocessing as sp
import matplotlib.pyplot as plt
from mixGaussFit import *
np.random.seed(0)
# Generate Data, fixed K = 3
def MakeCov(origMat, D):
m11 = origMat
m21 = np.zeros((D - 2, 2)) # origMatๅฟ
้กปไธบ(2, 2)
... | [
"noreply@github.com"
] | hellJane.noreply@github.com |
4787e27cc0386dadaba83b52ae9fea1ba5f0e346 | 7d502a6501c404bdb856c9bc8cde2ae0ee853d7a | /detectron2/utils/visualizer.py | b2e97a2fcbfa479904054b9c73214a73daa01944 | [
"Apache-2.0"
] | permissive | yonatanTaranis/detectron2 | fb5f7e51cf93e2b0cd9df4f0ad20d6c51a21adea | d760e9fd34863ad68a05a4e370ac1d1082a24804 | refs/heads/master | 2020-09-09T18:11:00.944915 | 2019-11-20T15:49:09 | 2019-11-20T15:49:09 | 221,522,308 | 0 | 1 | Apache-2.0 | 2019-11-20T15:49:11 | 2019-11-13T18:09:02 | null | UTF-8 | Python | false | false | 44,893 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import colorsys
import logging
import math
import numpy as np
from enum import Enum, unique
import cv2
import matplotlib as mpl
import matplotlib.colors as mplc
import matplotlib.figure as mplfigure
import pycocotools.mask as mask_util
import torch
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
994b6e8a30b8b059f3ada223aba127b030d365e9 | fafb89a3552e4dbb47d134966462ef5f3f37f576 | /KEMP/v0.7_pml/fdtd3d/naive/pml.py | f6409279223ecf31ef52a0051bacb14a914258ca | [] | no_license | EMinsight/fdtd_accelerate | 78fa1546df5264550d12fba3cf964838b560711d | a566c60753932eeb646c4a3dea7ed25c7b059256 | refs/heads/master | 2021-12-14T03:26:52.070069 | 2012-07-25T08:25:21 | 2012-07-25T08:25:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,491 | py | from __future__ import division
import numpy as np
from kemp.fdtd3d.util import common
from fields import Fields
class Pml:
def __init__(self, fields, directions, npml=50, sigma_max=0.5, kappa_max=1, alpha_max=0, m_sigma=3, m_alpha=1):
common.check_type('fields', fields, Fields)
common.check_type... | [
"kh.kim@kiaps.org"
] | kh.kim@kiaps.org |
2235fd21f94d6254b3b1d3e5f3b629814f5968d0 | 3eff0ac549dd24fbade02d63c3a541ab88db1e5b | /ultimate_python/piglatin/piglatin/urls.py | 36974b0b38594cf07ff90f2517eda8e50821e820 | [] | no_license | lisaolson/udemy | 618410fb548db864b7878de5a2231e8293daa2ad | f40f947f6f79d692748f3efba02176fb360f0c4e | refs/heads/master | 2020-03-28T20:14:23.028759 | 2018-09-18T19:45:32 | 2018-09-18T19:45:32 | 149,051,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py |
from django.conf.urls import url
from django.contrib import admin
from . import views
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^$', views.home, name='home'),
url(r'^translate/', views.translate, name='translate'),
url(r'^about/', views.about, name='about'),
]
| [
"olson.lisa94@gmail.com"
] | olson.lisa94@gmail.com |
ddf8b17e1cfddfb7814b90814bc8b3951bbd659a | e2081f2f873825a3cc8b529614eb784f5cf5e8c5 | /permutations2.py | 01b9d9cb4078de5aa049df6d087af9df69cca105 | [] | no_license | yilinanyu/Leetcode-with-Python | 17b454058c673381dbafa5a2a154c4e84b449399 | a55d2a3e383f858477170effbf8f6454e5dfd218 | refs/heads/master | 2021-01-21T04:55:31.025194 | 2016-07-11T20:10:18 | 2016-07-11T20:10:18 | 36,630,923 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | class Solution:
# @param num, a list of integer
# @return a list of lists of integers
def permuteUnique(self, num):
length = len(num)
if length == 0: return []
if length == 1: return [num]
num.sort()
res = []
previousNum = None
for i in range(length):
... | [
"ly783@nyu.edu"
] | ly783@nyu.edu |
1be5bd328ca7a8254b806833e9502b03feb20333 | e71ecfe679dd8c800e8b0960d4ba68e19401a4fc | /get_actual_news_from_rss_ya/webserver/common.py | 7a3cea0336a59bdd1034fefde3a6b74098048a66 | [] | no_license | igizm0/SimplePyScripts | 65740038d36aab50918ca5465e21c41c87713630 | 62c8039fbb92780c8a7fbb561ab4b86cc2185c3d | refs/heads/master | 2021-04-12T10:48:17.769548 | 2017-06-15T18:53:04 | 2017-06-15T18:53:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,908 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
# # TODO: ะบะพัััะปั ะดะปั ะฒะธะฝะดั, ะดะปั ะธัะฟัะฐะฒะปะตะฝะธั ะฟัะพะฑะปะตะผ ั ะธัะบะปััะตะฝะธัะผะธ
# # ะฟัะธ ะฒัะฒะพะดะต ัะฝะธะบะพะดะฝัั
ัะธะผะฒะพะปะพะฒ ะฒ ะบะพะฝัะพะปั ะฒะธะฝะดั
# # ะะพะทะผะพะถะฝะพ, ะฝะต ัะพะปัะบะพ ะดะปั ะฒะธะฝะดั, ะฝะพ ะธ ะดะปั ะปัะฑะพะน ะฟะปะฐััะพัะผั ััะพะธั ะธัะฟะพะปัะทะพะฒะฐัั
# # ััั ะฝะฐัััะพะนะบั -- ะผะฐะปะพ ะบะฐะบะธะต ะฟัะพะฑะปะตะผั ะผะพะณัั ะฒั... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
ffe374573d512fb90b5fbf3f362cd00fdf9f63c2 | d8820bda3cfa93151255cd07290332dd50cb3ae4 | /videos/utils.py | 0b223f7d5fe234e867666b39f953345d0cede7cb | [] | no_license | defance/video-app | 249aae4f81a4b89ce4b8ddadbf43332a05beb137 | c8c3128dbd41a651d26cba0022d80bb644eaaf8a | refs/heads/master | 2021-01-23T06:20:29.072852 | 2017-06-01T07:32:00 | 2017-06-01T07:32:00 | 93,020,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,495 | py | from __future__ import unicode_literals
from collections import defaultdict
from django.core.files.storage import DefaultStorage
from django.utils.translation import pgettext_lazy as _p, ugettext_lazy as _u
from re import search as re_search
from subprocess import check_output
from .models import Video
TIME_DICT = {... | [
"defance@gmail.com"
] | defance@gmail.com |
1576cbb5260f834bd650b40249ce45e746869d66 | a1614311937bae5204e171b2a3481fb31e61a490 | /media/codigos/32/32sol427.py | 77e953054cf12ce07ea6e205c0bbb2eb137e0364 | [] | no_license | alexandre146/avaliar | 8d406100ed72f10292a0580edac50ad061ad92e9 | 3daf247ca68962086592a356e013b07fa1569afe | refs/heads/master | 2020-03-21T03:09:29.493919 | 2018-07-23T11:41:38 | 2018-07-23T11:41:38 | 137,883,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | f = float(input())
c=(f-32) * 5/9
print ("%1.2f" %c)
| [
"alexandre146@gmail.com"
] | alexandre146@gmail.com |
659fef29c9cd67a7f70fdb47f11176ca70521932 | 4c76c88f6421abb52a9e68ae48d33f32b0fcf5af | /google_api/run.py | b8dd4c7394f9e5d4177cc85794e3d903ab8a0d13 | [
"Apache-2.0"
] | permissive | aperturetechnology/starthinker | 76ba1d8883dbcf32eff4164f57f4342d0b912b70 | fd2d70e39f05cb29afc65b8a78ea38441e1e2b9a | refs/heads/master | 2020-04-09T22:19:14.752457 | 2018-11-27T13:52:49 | 2018-11-27T13:52:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | ###########################################################################
#
# Copyright 2018 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org... | [
"kenjora@kenjora-macbookair.roam.corp.google.com"
] | kenjora@kenjora-macbookair.roam.corp.google.com |
f0a35b9b28d1264951cbe6cb5db8880991747ed4 | d6d5a3e94b7c9762a08b9c6e986ea5c4d78bcd64 | /problems/543/test.py | 49f8f23776892759d236a9495951ad1a13303c91 | [] | no_license | neuxxm/leetcode | 46a9c247982834d769731b06cb9e9587f68702a5 | fd6c8082f81bcd9eda084b347c77fd570cfbee4a | refs/heads/master | 2023-02-10T22:37:18.966470 | 2021-01-07T08:48:50 | 2021-01-07T08:48:50 | 265,777,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
#16:18-16:21
def f(x, z):
if x == None:
return 0
l = f(x.left, z)
r = f(x.right, z)
t = l + r
if t > z[0]:
z[0] = ... | [
"neuxxm@gmail.com"
] | neuxxm@gmail.com |
ac0286e178de05ae2d4c2c5440ca018bc646c444 | 0e51d1be69b26a4bc2020db597b187b8b4784614 | /OOP Prep Exam 22 Aug 2020/project/rooms/room.py | eb117f0a7b64c7b6aefe8313f1b8fd37421631cb | [] | no_license | dplamen/04_Python_OOP | 81dbc21095ca776d9ce034dbe9959ca4903c8d82 | cb0880a70c903e252958587d7051527527f57af4 | refs/heads/main | 2023-09-03T03:15:28.313039 | 2021-11-13T16:51:27 | 2021-11-13T16:51:27 | 427,719,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | from project.appliances.appliance import Appliance
from project.people.child import Child
class Room:
def __init__(self, name, budget, members_count):
self.family_name = name
self.budget = budget
self.members_count = members_count
self.children = []
self.expenses = 0
@... | [
"plamenkostov@gmail.com"
] | plamenkostov@gmail.com |
aa0ed51e33bc948e2bb33149fca8c8d598babdae | 3902cee7d59ef823a4839576f984c63452dd0d23 | /Code/pso_v1_1.py | be60b6b90cb4669afa4acc58f3b006da7e8f8314 | [
"MIT"
] | permissive | zaman13/Particle-Swarm-Optimization-PSO-using-Python | 36a6f2afcf69fdd6d790b2f3a7f11a6a00a849d9 | 0b43df807182de993be4675cf683676f43531dd3 | refs/heads/master | 2023-01-12T07:23:37.686017 | 2022-12-27T04:06:28 | 2022-12-27T04:06:28 | 255,481,106 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,627 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Apr 11 17:48:18 2020
@author: Mohammad Asif Zaman
Particle swarm optimization code
- General code, would work with fitness function of any dimensions (any no. of parameters)
- Vectorized fast code. Only one for loop is used to go over the iterations. Calculations
over all ... | [
"39745895+zaman13@users.noreply.github.com"
] | 39745895+zaman13@users.noreply.github.com |
337ede14a2180d4c5958f83d5e10ef2915d5266b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/295/66182/submittedfiles/testes.py | 3d79ec34943c90627f64c66fde2d551806cdeeb5 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
print("Marlon Anderson Leandro de Lima Filho")
print("19")
print(11+1037)
print(9*35+160)/5
print("2.356,1925")
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
294e700bd5ebe76fe25fc3abeb124fb10fea0aae | 123e2e28017973eefedaffb273cb3a5164f582c5 | /tests/integrations/helpers.py | 68f57836c2a9a1c3fe727dc6531340c2feed0752 | [
"MIT"
] | permissive | pythonindia/junction | ef4c0bf64f8c396edd2407f6d91444ab60a36b02 | 208d1757bf39c4727cf78b52cd2285e902eec84d | refs/heads/master | 2023-08-17T09:30:50.961028 | 2023-08-10T06:44:34 | 2023-08-10T06:44:34 | 27,966,694 | 209 | 226 | MIT | 2023-08-10T06:44:35 | 2014-12-13T16:40:17 | Python | UTF-8 | Python | false | false | 241 | py | # -*- coding: utf-8 -*-
def assert_template_used(response, template_name):
res = False
for template in response.templates:
if template.name == template_name:
res = True
break
assert res is True
| [
"me@kracekumar.com"
] | me@kracekumar.com |
92531f86d7ff93e73ab54d1ab9712ecb3d1b4f22 | 67cf6d0e91253107a7d3a3dd879a31dcc1f5b36f | /0x0F-python-object_relational_mapping/3-my_safe_filter_states.py | 0bf2a4dcb156ae06009396d036ad114a99052c05 | [] | no_license | nzomobrian/holbertonschool-higher_level_programming | dd1646a2b8ccf21ecf41c39efbe8f7dac2771065 | 908ec393c1a3591dde500c10e8eb9c73e35d57f8 | refs/heads/master | 2023-03-19T00:16:15.893949 | 2020-05-15T00:55:06 | 2020-05-15T00:55:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | #!/usr/bin/python3
# Lists all states that match the argument given without injection
import sys
import MySQLdb
if __name__ == "__main__":
db = MySQLdb.connect(host="localhost", port=3306, user=sys.argv[1],
passwd=sys.argv[2], db=sys.argv[3])
cur = db.cursor()
cur.execute("SELECT i... | [
"keener4christ@gmail.com"
] | keener4christ@gmail.com |
14d2fd5064686d8fcb86c06141f63c75e0dbfe99 | 8a82a83655f118208692e55d7804d9fa480ad4b6 | /src/dg/python_nlp/homework/ch09.py | df71319e81e7ee778a578cc8328adc2ac31535aa | [] | no_license | xenron/sandbox-da-python | 0814159da9a91923e4b66c5e40057e381f765e96 | ab8f1c0d57fdc6006355f613012b84165068c315 | refs/heads/master | 2020-04-12T05:41:33.182110 | 2016-12-14T22:57:33 | 2016-12-14T22:57:33 | 60,324,979 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,933 | py | # -*- coding: utf-8 -*-
from nltk.corpus import wordnet as wn
import nltk
from nltk.corpus import *
from matplotlib import pylab
from nltk import word_tokenize
import re
import jieba
import jieba.posseg
import jieba.analyse
from nltk.corpus import brown
import nltk
#2. โ Write a tag pattern to match noun phrases cont... | [
"xenron@hotmail.com"
] | xenron@hotmail.com |
88003732df9aca53f2788ef6179f052a5afd181e | 52585c8d95cef15199c18ba1a76899d2c31329f0 | /01Learn Python The Hard Way/11_input.py | f05f4e063f81a0eb96aa73d24c9841a108683cd7 | [] | no_license | greatabel/PythonRepository | c7a952257303a21083ed7d535274c339362bd126 | 836fcdd3f5c1b150122302685104fe51b5ebe1a3 | refs/heads/master | 2023-08-30T15:56:05.376391 | 2023-08-26T03:34:14 | 2023-08-26T03:34:14 | 29,392,599 | 33 | 6 | null | 2023-02-14T13:33:21 | 2015-01-17T13:54:58 | Python | UTF-8 | Python | false | false | 428 | py | print "How old are you?",
age=raw_input()
print "how tall are your?",
height=raw_input()
print "how much do you weight?",
weight=raw_input()
print "So, you're %r old, %r tall and %r heavy." % (
age, height, weight)
print "How old are you?"
age=raw_input()
print "how tall are your?"
height=raw_input()
print "how much d... | [
"greatabel1@126.com"
] | greatabel1@126.com |
0c674243effa19ac035cb6a58cd3db0be2c5155b | 25d2afe5d12fe58a97da7b51e23fdc55929e38f5 | /create_nt_error_subset_results.py | 1ebafa06051b3e413a1190b4c64414c17a83fbab | [] | no_license | apmoore1/tdsa_comparisons | 071396efe0c5e0bad297119d2ce48bf0c1cbb42f | ba613afece15239e6a38f277c455a035739f0b2d | refs/heads/master | 2021-06-23T16:00:49.803589 | 2021-05-25T09:32:53 | 2021-05-25T09:32:53 | 225,565,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,623 | py | from pathlib import Path
import pandas as pd
from target_extraction.data_types import TargetTextCollection
from target_extraction.analysis.sentiment_error_analysis import (ERROR_SPLIT_SUBSET_NAMES,
error_split_df, PLOT_SUBSET_ABBREVIATION,
... | [
"andrew.p.moore94@gmail.com"
] | andrew.p.moore94@gmail.com |
f9bda7505e7d23ead634575aa13665b1f86033de | c619ea6c1663c6ba0614b4dd63806cda5489adee | /wwtool/datasets/utils.py | 40da33f74a28ed219dced7e76fd44b7122a94162 | [] | no_license | ZhangRuixiang-WHU/wwtool | 35107e36fc4cce892c6d0c096ee90cbf8e1eeb97 | be87af3ad49a3befb331b2530e0cfdd5dd479a4a | refs/heads/master | 2020-12-02T15:26:22.383469 | 2019-12-25T15:02:42 | 2019-12-25T15:02:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,558 | py | import os
import numpy as np
import shutil
import wwtool
def shuffle_dataset(origin_dataset_dir, trainval_dir, test_dir, trainval_rate=0.8, image_format='.png', label_format='.txt', seed=0):
"""Generate trainval and test sets from origin set by copying files randomly.
Arguments:
origin_dataset_d... | [
"jwwangchn@outlook.com"
] | jwwangchn@outlook.com |
c96aa409b3a94b535c64d972fe0c0378789259a7 | 3e37c4e8b5c9a432183da2629484decd0e6fc088 | /KiBuzzard/dialog/dialog_text_base.py | f008fbe0b24f56bfc9b0d70cf83cd44bae0009bc | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | robin7331/KiBuzzard | c1c1f58af04a7f8deee1314f4c32293895690737 | 079327a3c2f152fef4566aee0fe07b90e72de856 | refs/heads/main | 2023-04-03T00:52:23.941163 | 2021-04-13T00:12:59 | 2021-04-13T00:12:59 | 356,836,698 | 0 | 0 | MIT | 2021-04-11T10:26:57 | 2021-04-11T10:26:56 | null | UTF-8 | Python | false | false | 9,696 | py | # -*- coding: utf-8 -*-
###########################################################################
## Python code generated with wxFormBuilder (version 3.9.0 Apr 11 2021)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################
... | [
"greg.davill@gmail.com"
] | greg.davill@gmail.com |
157478c0e27dedf77864a8acc05f49de4067093d | 40f4908483b98fc4f370ff4f2d520e1284d045b3 | /phase02/immortals_repo/harness/pymmortals/generated/com/securboration/immortals/ontology/fm/feature/featureselectioncriterion.py | 9cab2e071f0f03b3b5559b965410bbe4239d1247 | [] | no_license | TF-185/bbn-immortals | 7f70610bdbbcbf649f3d9021f087baaa76f0d8ca | e298540f7b5f201779213850291337a8bded66c7 | refs/heads/master | 2023-05-31T00:16:42.522840 | 2019-10-24T21:45:07 | 2019-10-24T21:45:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | from enum import Enum
# noinspection PyPep8Naming
class FeatureSelectionCriterion(Enum):
SELECT_ALL = 'SELECT_ALL'
SELECT_ZERO_OR_MORE = 'SELECT_ZERO_OR_MORE'
SELECT_ONE_OR_MORE = 'SELECT_ONE_OR_MORE'
SELECT_EXACTLY_ONE = 'SELECT_EXACTLY_ONE'
| [
"awellman@bbn.com"
] | awellman@bbn.com |
434de5a96c6a7a561dffb0b43c686a35b6c46e0e | d7b89e6090759d242f0afc8fd5d9f5200c17371a | /20190904/BOJ_12100_kyeong.py | 384dd43ab88deea6efbc4bf457ad2d902a7dedd8 | [] | no_license | JISU-JEONG/algorithm- | 545c5f758d2ca15d2d59a706ab75be8fb71e39a6 | 02ff7df63dd8a8518005d37a2edec67d158ae6db | refs/heads/master | 2020-09-13T14:15:59.919347 | 2019-11-19T23:57:40 | 2019-11-19T23:57:40 | 222,812,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,745 | py | import sys
sys.stdin = open('12100.txt')
from pprint import pprint
from itertools import product as pd
from copy import deepcopy
def rotate(a):
n = len(a)
copy = [[0] * n for _ in range(n)]
for i in range(n):
for j in range(n):
copy[j][n-1-i] = a[i][j]
return copy
def push(a):
... | [
"jindex2411@naver.com"
] | jindex2411@naver.com |
c1158f4b21ea5e89da3ac0828829fe99d4e66d9f | 4d1cc7c794039d31044eb94e38ab2ce4e4d62a72 | /0x0B-python-input_output/5-to_json_string.py | 451186994587818da5fcf46fb5179ba0ced72e8d | [] | no_license | icculp/holbertonschool-higher_level_programming | 2aca8f9df999b8931fb77280cb96ec16d9dffe07 | 698792cdc9096a17f2da0212d33518fda76b5213 | refs/heads/master | 2022-12-21T21:07:58.720950 | 2020-09-25T00:33:44 | 2020-09-25T00:33:44 | 259,339,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | #!/usr/bin/python3
"""
Task 5 Module
"""
import json
def to_json_string(my_obj):
"""
returns json representation of string object
"""
return json.dumps(my_obj)
| [
"icculp@gmail.com"
] | icculp@gmail.com |
fe2598c389279bc2342d80a08973218dd6bba537 | c2de8119d4347fc34fd101b1e98588f3624a1f0a | /bestiary/schema.py | bff17176857457dc1ff50c9a15fbccc921772d29 | [
"Apache-2.0"
] | permissive | claytondaley/swarfarm | d2b44628fda3d6c14046ea177337cfa42e87c3db | 10c0d381ab6d29d98c8cb88070a034f41d4028b6 | refs/heads/master | 2020-04-03T13:00:15.997376 | 2019-04-05T17:53:03 | 2019-04-05T17:53:03 | 155,271,052 | 0 | 0 | Apache-2.0 | 2018-10-29T19:44:30 | 2018-10-29T19:44:29 | null | UTF-8 | Python | false | false | 7,623 | py | import graphene
from graphene import relay
from graphene_django.filter import DjangoFilterConnectionField
from graphene_django.types import DjangoObjectType
from .api_filters import MonsterFilter, SkillFilter
from .models import Monster, LeaderSkill, Skill, SkillEffect, SkillEffectDetail, Source, ScalingStat, MonsterC... | [
"peter@porksmash.com"
] | peter@porksmash.com |
9aff49686506d7d1a151a9dc5a4b2d8284b5c1ff | 01d390ba1ecdf8475ff6bc7655f3b1c86f4a4c10 | /phonepad_combinations.py | 9fc14da6f01a514e02f152208e6d0cb73ef4b0cf | [] | no_license | IkeyBenz/InterviewProblems | c7feb520119f15d18a21108720229c3d0b9b4951 | 55171fc49d30ae21f58000ea14d2a40f1a81d019 | refs/heads/master | 2020-06-02T15:36:44.466766 | 2020-05-12T00:49:47 | 2020-05-12T00:49:47 | 191,211,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | letters = {
'1': '',
'2': 'abc',
'3': 'def',
'4': 'ghi',
'5': 'jkl',
'6': 'mno',
'7': 'pqrs',
'8': 'tuv',
'9': 'wxyz',
'0': ' '
}
# Ikey's Way
def combos(nums, curr=[]):
if len(nums) == 0:
return curr
if len(curr) == 0:
return combos(nums[1:], list(lett... | [
"ikey.benz@gmail.com"
] | ikey.benz@gmail.com |
d7133de348ab246f13ca3e1239122d3158674487 | 1f7fce552cc68731f683ded3f831e8f4650c7197 | /Axis16/Axis16/wsgi.py | 5139839645ceae062b39e5a7f5253511300b6776 | [] | no_license | tanaypatil/axis-website | 3985068cf1c52bb038b7174cbdf938b8b4084c03 | b5eda2906150a38b1bb0daf8b23c9194572b849c | refs/heads/master | 2020-06-13T03:14:05.855948 | 2019-06-30T13:12:11 | 2019-06-30T13:12:11 | 194,514,303 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for Axis16 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [
"tanaypatil197@gmail.com"
] | tanaypatil197@gmail.com |
2e991e0e4ef010d0049ff75e77aae840060ece57 | 577a40ff1c84d28b88a9ade84d265587d28ed2a3 | /0715/02.TextProcessingAPI.py | 708becb6d522488c2c631c2e45a37169303e25c6 | [] | no_license | bosl95/MachineLearning_Note | b167c182fcf5186f6466b8b062cde83b076b0b04 | 934714c5a62e4864f2b5338153c3aaeb3363abe9 | refs/heads/master | 2022-12-06T20:58:20.457567 | 2020-09-05T16:18:11 | 2020-09-05T16:18:11 | 279,835,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,812 | py | # STEP 1
from keras.preprocessing.text import Tokenizer
samples = ['The cat sat on the mat.','The dog ate my homework.']
# ๊ฐ์ฅ ๋น๋๊ฐ ๋์ 1000๊ฐ์ ๋จ์ด๋ง ์ ํํ๋๋ก tokenizer ๊ฐ์ฒด ์์ฑ
tokenizer = Tokenizer(num_words=1000) # ์๋์ผ๋ก ๋จ์ด๋ง๋ค ๋ฒํธ๋ฅผ ๋ถ์ฌํ๋ ์ฌ์ ์์ฑ.
tokenizer.fit_on_texts(samples)
# STEP 2. ๋ฌธ์์ด์ ์ ์ ์ธ๋ฑ์ค์ ๋ฆฌ์คํธ๋ก ๋ณํ
sequences = tokenize... | [
"bosl95@naver.com"
] | bosl95@naver.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.