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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e7607e9704c88c53d9835277d1ea1ef9a9502af4 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/pyinstaller/build/lib/PyInstaller/hooks/hook-reportlab.pdfbase._fontdata.py | 4765de6acb08fe810b8f6653f67d9aa9e9d91ae1 | [
"LicenseRef-scancode-other-permissive"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:70c3529a579452cddbe6fe3200d83c2064c7fa3a858851cb516a77177a79c258
size 538
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
d257dfaf805251a449fcec03c06aa55d97d4de0a | 107c161846246ead49747b8257f0bffe57ff3866 | /megabeast/old/test_models.py | 2734639aa5e69b50f99f8ba217e27761079d30f9 | [
"BSD-3-Clause"
] | permissive | BEAST-Fitting/megabeast | e1334786d23d33795bb5f613586fe1615406e102 | b6b9efbe197bde0a5372bc9f09699ad9d3d99886 | refs/heads/master | 2023-06-07T18:14:52.276860 | 2022-02-17T21:25:07 | 2022-02-17T21:25:07 | 111,114,312 | 2 | 11 | null | 2023-05-27T08:09:38 | 2017-11-17T14:44:50 | Python | UTF-8 | Python | false | false | 988 | py | import pytest
from megabeast.mbsettings import mbsettings
from megabeast.singlepop_dust_model import MB_Model
fd_model = {
"Av": {
"name": "gaussian",
"varnames": ["mean", "sigma"],
"varinit": [1.0, 0.25],
"prior": {
"name": "flat",
"var_minmax": [[0.005, 5.... | [
"kgordon@stsci.edu"
] | kgordon@stsci.edu |
a25f71c986a1212e69a747de32c5133c5b78a446 | 733496067584ee32eccc333056c82d60f673f211 | /idfy_rest_client/models/person_navn_adresse.py | 5f7e495f992d7a22d700bd3462ef1b39195572d8 | [
"MIT"
] | permissive | dealflowteam/Idfy | 90ee5fefaa5283ce7dd3bcee72ace4615ffd15d2 | fa3918a6c54ea0eedb9146578645b7eb1755b642 | refs/heads/master | 2020-03-07T09:11:15.410502 | 2018-03-30T08:12:40 | 2018-03-30T08:12:40 | 127,400,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,252 | py | # -*- coding: utf-8 -*-
"""
idfy_rest_client.models.person_navn_adresse
This file was automatically generated for Idfy by APIMATIC v2.0 ( https://apimatic.io )
"""
from idfy_rest_client.api_helper import APIHelper
class PersonNavnAdresse(object):
"""Implementation of the 'Person.NavnAdresse' ... | [
"runes@unipluss.no"
] | runes@unipluss.no |
ec83755d7ceef5096637db15a3827324da7e2c2b | 8311a4bc770d91b802b573b91ccc9c8e03f15123 | /ac/administrative_communication/doctype/assignment_transaction_action/assignment_transaction_action.py | 3c8b30c4d720c9453f81113f640d58aafa2d481c | [
"MIT"
] | permissive | aymenit2008/ac | d6756d32d291255ae4ba6d08700489b27377890f | 8791d86679e10b57417559fcc9ca149321104845 | refs/heads/main | 2023-03-20T21:21:51.168016 | 2021-02-17T08:55:26 | 2021-02-17T08:55:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, Aseel and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class AssignmentTransactionAction(Document):
pass
| [
"frappe@ubuntu.vm"
] | frappe@ubuntu.vm |
f115526fdf25a9871453e6e4fb7ace173904b177 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /YXjx9G5uQ4CdYPuB4_9.py | 2d28dd3b028ee0f16f9bafa9b0ccc53ff8f93765 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | """
**Mubashir** needs your help to compare two lists.
First list `lst1` contains some numbers and second list `lst2` contains
**squared values of numbers given in the first list**.
Create a function which takes these two lists and returns `True` if all square
values are available, `False` otherwise.
lst1 = ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1915d25c38cc211538989aaa0b2bf604b6778c6e | 1619511136a1d861a23f4e8c643916a303ac222c | /apps/blog/models.py | 812adf98991dd66d4cd9c379fbf0b1c81af9a691 | [] | no_license | 2644783865/django2 | 29d00b4faa4169a5969d967e992d22b5285a5817 | 3909bfab85be620d95702eff4db0483b3676ac94 | refs/heads/master | 2020-06-29T00:05:57.622128 | 2019-08-03T08:30:51 | 2019-08-03T08:30:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,911 | py | from django.db import models
from django.db.models.signals import post_save
from django.contrib.auth import get_user_model
# from django.template.defaultfilters import slugify
# from ckeditor.fields import RichTextField # 不包含上传文件
from ckeditor_uploader.fields import RichTextUploadingField # 包含上传文件
from pyquery import... | [
"zhuoqun527@qq.com"
] | zhuoqun527@qq.com |
602eb9121165edb4c2356d3bf98d987ff4c1ae16 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/list_get_element_complex-2.py | 6d104100d4429fa36c29aeb6f7ae3d25c91ca267 | [] | 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 | 199 | py | $Definition
def next_int() -> int:
global next
next = next + 1
return next
def make_list() -> [int]:
return [next_int(), next_int(), next_int()]
print(make_list()[next_int() - 3])
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
2a225dddd9fc8c12c4f1e8857ebbcc1a6a4cc4fc | e6e65a6704c20e6e0288cfc54915ee7ea9e1c0a7 | /1recon/basicVersions/1pipeTrans/networks/modifiedVGG.py | ef58d51640d13f96c41606581d362c196412dd93 | [] | no_license | schatzkara/REU2019 | fbb1f17d860c5d51a7ccae3ba106960d4c733949 | 6de28b5a8992f6122f2e9813de8b92d9e97ccbf3 | refs/heads/master | 2020-06-06T03:50:40.753334 | 2019-11-07T14:11:50 | 2019-11-07T14:11:50 | 192,629,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,172 | py | # phase 3
# modified from https://github.com/pytorch/vision/blob/master/torchvision/models/vgg.py
import torch
import torch.nn as nn
from torchsummary import summary
__all__ = [
'VGG', 'vgg11', 'vgg11_bn', 'vgg13', 'vgg13_bn', 'vgg16', 'vgg16_bn',
'vgg19_bn', 'vgg19',
]
class VGG(nn.Module):
"""
Cl... | [
"36019128+schatzkara@users.noreply.github.com"
] | 36019128+schatzkara@users.noreply.github.com |
39874ed6f673a12d3460b09f8f3745e4cbb3f6ed | 65890d9024b035d997c78a3968c05908df81a9c4 | /sharpy/managers/extensions/__init__.py | 6728d67326888cd4880b83ceb0fe8f4bbd438321 | [
"MIT"
] | permissive | lladdy/sharpy-sc2 | df43a266aa2ad90633b9a9f279fc14529740f30f | cf6f7850add6f8d33d6e7c5ccaf2a619e4838c52 | refs/heads/develop | 2023-08-03T17:49:51.939649 | 2023-07-31T10:04:34 | 2023-07-31T10:04:34 | 227,027,455 | 0 | 0 | MIT | 2023-08-30T08:39:00 | 2019-12-10T04:15:24 | Python | UTF-8 | Python | false | false | 428 | py | from .enemy_army_predicter import EnemyArmyPredicter
from .build_detector import BuildDetector
from .game_analyzer import GameAnalyzer
from .data_manager import DataManager
from .chat_manager import ChatManager
from .memory_manager import MemoryManager
from .archon import ArchonManager
from .heat_map import HeatMapMana... | [
"aki.vanttinen@sedgestudios.com"
] | aki.vanttinen@sedgestudios.com |
8a42f484b703ca5e6d8bacf2c9fbedaa62340aff | c380976b7c59dadaccabacf6b541124c967d2b5a | /.history/src/data/data_20191028083133.py | 1bf93266354860aafa16ec794d7068be824878af | [
"MIT"
] | permissive | bkraft4257/kaggle_titanic | b83603563b4a3c995b631e8142fe72e1730a0e2e | f29ea1773773109a867278c001dbd21a9f7b21dd | refs/heads/master | 2020-08-17T12:45:28.653402 | 2019-11-15T16:20:04 | 2019-11-15T16:20:04 | 215,667,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,814 | py | import pandas as pd
import numpy as np
from typing import Union
from pathlib import Path
from nameparser import HumanName
class ExtractData:
def __init__(self, filename: Union[str, Path], age_bins=None, drop_columns=None):
# """Extract Training Data from file or Path
# Arguments:
# fi... | [
"bob.kraft@infiniteleap.net"
] | bob.kraft@infiniteleap.net |
e13f315fcdd9f188936c67487b7406fc615608c7 | 0add67e1d0c2915caf84c3af5151ca68d9bb5682 | /API_PROJ/asgi.py | 6dbdaac532933c67632230a99da41926e98002b0 | [] | no_license | kamran1231/MOVIE_REST_API | 8b30d9b4ecacd788982a9da35046f9b159037c3e | 677418f94225b60cc486e8027dd381e7d5549239 | refs/heads/master | 2023-05-31T23:17:25.761222 | 2021-06-29T12:20:05 | 2021-06-29T12:20:05 | 380,045,682 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for API_PROJ project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"khanbrother805@gmail.com"
] | khanbrother805@gmail.com |
9596ca94cc905548e8c6637fbd52ec54c10719db | ce79d8a92ddc88ee17ccbfbab273fdb37600da0e | /0140_Word_Break_II.py | 8afc6e7874b25d36b55e63afeae431ff16b40a41 | [
"MIT"
] | permissive | coldmanck/leetcode-python | 5bf5bc489213a5835acc93b047e1b0ff7a1392bc | fd4cf122cfd4920f3bd8dce40ba7487a170a1b57 | refs/heads/master | 2023-06-09T02:30:49.681803 | 2023-05-27T04:01:57 | 2023-05-27T04:01:57 | 249,945,225 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | class Solution:
def wordBreak(self, s: str, wordDict: List[str]) -> List[str]:
memo = {len(s): ['']}
def sentences(i):
if i in memo:
return memo[i]
memo[i] = []
for j in range(i + 1, len(s) + 1):
if s[i:j] in wordDict:
... | [
"coldmanck@gmail.com"
] | coldmanck@gmail.com |
006a2323f3e2a8bfdf5efcc2e45813474d8a20a5 | 5a7abc4537039860c49e9a80219efa759aad1b6f | /tests/providers/aws/services/trustedadvisor/trustedadvisor_errors_and_warnings/trustedadvisor_errors_and_warnings_test.py | e484ead322db370fdda3ad0f146d93ad57f31f8b | [
"Apache-2.0"
] | permissive | sec-js/prowler | d5a06c72f5d7e490bade1167966f83f7a5d7ed15 | f72be9a1e492ad593c9ac267d3ca07f626263ccd | refs/heads/master | 2023-08-31T22:48:33.983360 | 2022-12-22T16:02:28 | 2022-12-22T16:02:28 | 243,866,744 | 0 | 0 | Apache-2.0 | 2022-12-23T12:23:20 | 2020-02-28T22:37:02 | Python | UTF-8 | Python | false | false | 2,973 | py | from re import search
from unittest import mock
from uuid import uuid4
from prowler.providers.aws.services.trustedadvisor.trustedadvisor_service import Check
AWS_REGION = "eu-west-1"
AWS_ACCOUNT_NUMBER = "123456789012"
detector_id = str(uuid4())
class Test_trustedadvisor_errors_and_warnings:
def test_no_detect... | [
"noreply@github.com"
] | sec-js.noreply@github.com |
6bc17ae0f3d584cafcfcbc9be7eb61a854ffef96 | d047fed56a7d1de1d7c32ce83b8d62646fa7d19e | /average_kitne_hai.py | 65f5b01aaddc83e61a33bb02bfb1e308241e38a0 | [] | no_license | shantinavgurukul/listQuestions | 508b6bd489731d5b8a9ba1a27e5b88b1bb27341a | 21f413f65b374e5fa63e0366591895757146d7c7 | refs/heads/master | 2022-11-23T07:56:15.392836 | 2020-08-02T03:51:46 | 2020-08-02T03:51:46 | 284,384,225 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,415 | py | # elements = [23, 14, 56, 12, 19, 9, 15, 25, 31, 42, 43]
# index=0
# # average=0
# list1=[]
# list2=[]
# while(index<len(elements)):
# if(elements[index]%2!=0):
# list1.append(elements[index])
# # list1=list1+1
# average=elements[index]//7
# else:
# list2.append(elements[index])
... | [
"you@example.com"
] | you@example.com |
e574432f721c510f0ea06c7b99ee335b99f78d75 | 091e97bcfe5acc0635bd601aa8497e377b74d41a | /openshift/installer/vendored/openshift-ansible-3.11.28-1/roles/lib_utils/lookup_plugins/openshift_master_facts_default_predicates.py | ddecf9cc6017fc3b0177a74857c0523c116be0e6 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | openshift/openshift-tools | d59b63778f25cb8fb3c7a0253afe22a173e72f9d | e342f6659a4ef1a188ff403e2fc6b06ac6d119c7 | refs/heads/prod | 2023-08-30T01:52:04.108978 | 2022-03-23T21:07:28 | 2022-03-23T21:07:28 | 36,827,699 | 170 | 254 | Apache-2.0 | 2022-06-16T12:11:51 | 2015-06-03T20:09:22 | Python | UTF-8 | Python | false | false | 3,662 | py | # pylint: disable=missing-docstring
from ansible.errors import AnsibleError
from ansible.plugins.lookup import LookupBase
class LookupModule(LookupBase):
# pylint: disable=too-many-branches,too-many-statements,too-many-arguments
def run(self, terms, variables=None, regions_enabled=True, short_version=None,
... | [
"mwoodson@redhat.com"
] | mwoodson@redhat.com |
d48d8dcf7839f5f1eb56a0f65558ff6462b25843 | e18a8c8ed113d51d99ae942204016a883925163d | /25stringchains/trial1.py | 2f432bcc4243c495265c72aa4e256c91f3b7b115 | [] | no_license | saurabh11baghel/dsalgo | e385fc7739c59e8a78a4f7e30d3cedfdfa4eac06 | 88a108bc3ce7ec95ffad8d95079260a2fc5f6e12 | refs/heads/master | 2021-04-30T08:36:56.312035 | 2017-02-20T22:32:40 | 2017-02-20T22:32:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 29 19:04:08 2017
@author: abgoswam
"""
#_words_cnt = int(raw_input().strip())
#_words_i=0
#_words = []
#
#while _words_i < _words_cnt:
# _words_item = raw_input().strip()
# _words.append(_words_item)
# _words_i += 1
#
#print(_words)
#def longestChain(words... | [
"abgoswam@gmail.com"
] | abgoswam@gmail.com |
ea66726c00ea40930cc3627462df3a3a9bac9593 | de470f0bad289ab9e8633a4527a2bf4c14a6b2d9 | /manage-cli/get_sql.py | db028fd8f72b46fd3783c4f3d499549155512d80 | [] | no_license | DingGuodong/kissops | f1a22e557ae6b1ea4366d88ffceb157fb0bb5450 | 06ca11d2082d4d7ae88681fc0456a7502d134b27 | refs/heads/master | 2021-01-11T11:02:33.583667 | 2018-04-17T08:20:06 | 2018-04-17T08:20:06 | 72,810,369 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | #!/usr/bin/python
# encoding: utf-8
# -*- coding: utf8 -*-
"""
Created by PyCharm.
File: LinuxBashShellScriptForOps:get_sql.py
User: Guodong
Create Date: 2017/8/23
Create Time: 16:01
Description:
References: http://luozhaoyu.iteye.com/blog/1510635
"""
import os... | [
"uberurey_ups@163.com"
] | uberurey_ups@163.com |
3d99cb9d17223816aa55786f68bb96c5ee9f812a | 8c917dc4810e2dddf7d3902146280a67412c65ea | /v_7/Dongola/common/account_asset_custom/wizard/account_data_migration.py | d16a9ffe00724622ae063143e33836fc790a1d27 | [] | no_license | musabahmed/baba | d0906e03c1bbd222d3950f521533f3874434b993 | 0b997095c260d58b026440967fea3a202bef7efb | refs/heads/master | 2021-10-09T02:37:32.458269 | 2018-12-20T06:00:00 | 2018-12-20T06:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,631 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"bakry@exp-sa.com"
] | bakry@exp-sa.com |
ed96c6be42b15bb8c1698da40cf12109cdc094d7 | 6440a113597191d3b78aa6b5cae6cea9fb057e2e | /Daily-Grind/73.py | 5c3188a2d7ef2ce664500cd3404c4e1039778d18 | [] | no_license | DarshanGowda0/LC-Grind | 40c162d8894df81ea7124f66daf20f86f327b6cb | f7b9a86797d52ab1057f0300352c0c5670a59bd5 | refs/heads/master | 2023-01-28T01:27:45.195164 | 2020-12-06T03:58:14 | 2020-12-06T03:58:14 | 277,024,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
from collections import deque
class Solution:
def levelOrder(self, root: TreeNode) -> List[List[int]]:
if not root:... | [
"darshan.gowda008@gmail.com"
] | darshan.gowda008@gmail.com |
da1ef01eb25bcea1e1925a60a6dd48a073d52c65 | a1232023595eed48bf3d56c0c1dcb8f05cdc261a | /204. Count Primes/204.py | 3ebfd940c7ef3e38ddb147a2bdf0c8607730b934 | [] | no_license | NKcell/leetcode | 2393ec3f8dc0e26b9ff098a592e4ffa9d7b774b8 | 88dec1c2106950e82819a0dd16425a9ee8fdaca4 | refs/heads/master | 2020-07-24T05:27:42.269903 | 2020-05-06T07:45:07 | 2020-05-06T07:45:07 | 207,814,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | """
超时
def countPrimes(n):
if n < 3:
return 0
if n == 3:
return 1
primes = [2]
re = 1
for i in range(2,n):
flag = 0
for j in primes:
if i%j == 0:
flag = 1
b... | [
"517343690@qq.com"
] | 517343690@qq.com |
996034a8186f4a0272c75010ab385800ae034cad | 9e2d79a2cf1dbeaffe8ef897bb53f94af8b5b68c | /ichnaea/api/locate/tests/test_constants.py | 476eaa06eae7fec95ad3c105304313df9d89e7f8 | [
"Apache-2.0"
] | permissive | amolk4games/ichnaea | a7d1cbd12b6aa5c0d877fca380080b08fcff24b8 | 907c542da05b428c8e994bce1537390e22b3ca58 | refs/heads/master | 2021-01-19T07:21:54.851167 | 2016-04-08T15:20:37 | 2016-04-08T15:21:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,359 | py | from ichnaea.api.locate.constants import DataAccuracy
from ichnaea.tests.base import TestCase
class DataAccuracyTest(TestCase):
def test_compare(self):
self.assertTrue(DataAccuracy.high < DataAccuracy.medium)
self.assertTrue(DataAccuracy.high < DataAccuracy.low)
self.assertTrue(DataAccura... | [
"hanno@hannosch.eu"
] | hanno@hannosch.eu |
095ee990026e24affd14798a17fabcd80698962c | 2560feda0e6875e797571e3992192c1ad9b223ef | /A_CNN_sub_K-32-32-64-128_KS-37-37-37-37_MP-12-22-22-32_DO-2-2-2-2-2_AD.py | 4c6f65a575028004a22f425a7df2a827ad59a62d | [] | no_license | kikivanderheijden/CNN_SoundLoc_NC | 7060945e62973d21e9389659cb38b76e7fe76f7c | c158481524cef6af92487a16a711b00255732762 | refs/heads/master | 2023-02-07T16:20:39.412567 | 2020-12-29T14:50:18 | 2020-12-29T14:50:18 | 319,252,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,989 | py | #------------------------------------------------------------------------------
# Specifications
#------------------------------------------------------------------------------
# specify directories
dir_wrfiles = "/workspace/notebooks/models" # for testing on DSRI
#dir_wrfiles = r"C:\Users\kiki.vanderheijden\Documents\... | [
"Kiki.vanderHeijden@unimaas.nl"
] | Kiki.vanderHeijden@unimaas.nl |
74105e5ec2623d439250e684bf167a4b94637c36 | e9ff112a590a2707e66c518328ba71a4d964846a | /train_scripts/train_img.py | 36a145fe2b40065fa0ddee19383018c080fd1909 | [
"MIT"
] | permissive | n644t031/fastMRI-kspace | 60a6ca9679ede25f0db89f174647a8451a578331 | 4c484b3183e9f06838b5ee108af283611c2e1e77 | refs/heads/master | 2022-08-30T17:19:23.105996 | 2020-05-24T13:55:40 | 2020-05-24T13:55:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,028 | py | import torch
from torch import nn, optim
from pathlib import Path
from utils.run_utils import initialize, save_dict_as_json, get_logger, create_arg_parser
from utils.train_utils import create_custom_data_loaders
from train.subsample import MaskFunc
from data.input_transforms import Prefetch2Device, TrainPreProcessK
... | [
"veritas9872@gmail.com"
] | veritas9872@gmail.com |
6e927067f2f9b821d839a61e0c4bc806d450dca4 | df7b40e95718ac0f6071a0ba571b42efc81cf6de | /configs/cd_stb/liky_base_config.py | b09f7d24727fc477b50af4bc28b1118a4838038e | [
"Apache-2.0"
] | permissive | shinianzhihou/ChangeDetection | 87fa2c498248e6124aeefb8f0ee8154bda36deee | 354e71234bef38b6e142b6ba02f23db958582844 | refs/heads/master | 2023-01-23T20:42:31.017006 | 2023-01-09T11:37:24 | 2023-01-09T11:37:24 | 218,001,748 | 162 | 29 | Apache-2.0 | 2022-11-03T04:11:00 | 2019-10-28T08:41:54 | Python | UTF-8 | Python | false | false | 3,758 | py | _base_ = [
# '../_base_/models/cd_vit.py',
# '../_base_/datasets/two_input.py',
# '../_base_/default_runtime.py',
# '../_base_/schedules/schedule_40k.py'
]
# model settings
norm_cfg = dict(type='BN', requires_grad=True) # TO: BN
model = dict(
type='EncoderDecoder',
pretrained=None,
backbo... | [
"1178396201@qq.com"
] | 1178396201@qq.com |
44f63e331e30929d37a460bce7411a4a6ae31475 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2308/60668/302743.py | 9d04c19613bf9cf13a8648209475e330103ce9a5 | [] | 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 | 211 | py | def trees_5_after(s):
if s=="6 3 9":
print(0)
elif s=="7 4 9":
print(10)
else:
print(s)
if __name__=='__main__':
m,r = input().split()
s = input()
trees_5_after(s) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
280fe52635c663628f4545cf099b820d4a2990b4 | 18dca9a552f5aa9303536613ec39f19cebf6647c | /BM25/BM25IndexingPrograms/index_mag_en_cs_allyears.py | 1133c0c15e7ed385f68695ce4327e05ac3873006 | [
"MIT"
] | permissive | ashwath92/MastersThesis | 9a39ed7eec825ed559d09507721c21bd12e2ab9c | f74755dc0c32f316da3c860dd5dbfa4c9cad97b3 | refs/heads/master | 2021-08-16T12:01:33.282459 | 2020-06-27T16:00:16 | 2020-06-27T16:00:16 | 197,282,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,462 | py | from gensim.parsing import preprocessing
import contractions
from tqdm import tqdm
import pysolr
# IMPORTANT: I'M KEEPING THE REFERENCE IDS IN THE CONTEXTS. SO WHILE CHECKING BM25,
# CONTEXTS WHICH REFER TO THE SAME PAPER MIGHT BE MORE SIMILAR (IF CITATIONS ALREADY
#EXIST)
def clean_text(text):
""" Cleans the tex... | [
"ashwath92@gmail.com"
] | ashwath92@gmail.com |
a944ad7ef3a0746f8e1658a859afad898e97a673 | 56231e5b77a8b743e84e43d28691da36b89a0cca | /platform-tools/systrace/catapult/telemetry/telemetry/internal/platform/tracing_agent/cpu_tracing_agent_unittest.py | f87f00902938107c3301b6fa4b7a40f22fe76d77 | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | cricketclubucd/davisdragons | ee3aa6ad72197c2218660843e03d58c562b965aa | 99d5877377b80d1b20c78cc3c4c6f26795f29b14 | refs/heads/master | 2023-01-30T05:37:45.923195 | 2021-01-27T06:30:25 | 2021-01-27T06:30:25 | 96,661,120 | 2 | 2 | MIT | 2023-01-23T18:42:26 | 2017-07-09T04:32:10 | HTML | UTF-8 | Python | false | false | 5,810 | py | # Copyright 2016 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 json
import sys
import time
import unittest
from telemetry import decorators
from telemetry.internal.platform.tracing_agent import cpu_tracing_agent
f... | [
"jena.suraj.k@gmail.com"
] | jena.suraj.k@gmail.com |
2cf2548ec33a387b618360771da7ed86198cafc8 | 8845a9557ef7a93a4235bc5aff059110c7c0846c | /python_sql/book_scraper.py | baa3c24c9aa47a73c32f47b19104f533080c500d | [] | no_license | Makhanya/PythonMasterClass | c127791337c862bf5c6c8780a1643642d6e99ab6 | 241f48396e59cd20f1a275f15fa6fec3e8676bb6 | refs/heads/master | 2023-07-20T12:44:05.055259 | 2023-07-09T11:20:52 | 2023-07-09T11:20:52 | 86,587,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | import sqlite3
import requests
from bs4 import BeautifulSoup
# Request URL
response = requests.get("http://books.toscrape.com/catalogue/category/books/history_32/index.html")
soup = BeautifulSoup(response.text, "html.parser")
books = soup.find_all("article")
for book in books:
# print(book.find("h3").find("a")["ti... | [
"makhanya.mzili@gmail.com"
] | makhanya.mzili@gmail.com |
0ff8b707234a1ca0f9f6545c2a2a81e78061d016 | a48eaa4419b87c011abdee1eebfd04b469f4417b | /.history/ghostpost/models_20200210194514.py | 6e30172547ebdc65f4aca769b0575aa72372211a | [] | no_license | Imraj423/ghostpost | 6418d6c9561528ac8c31dd70d8aae7fac4c77cca | 4edc559eb1f9ef0d11aae78e2b1dbd5c4903ddb5 | refs/heads/master | 2021-01-02T13:32:58.032239 | 2020-02-11T23:21:31 | 2020-02-11T23:21:31 | 239,644,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | from django.db import models
from django.utils import timezone
class ghostPost(models.Model):
message = models.CharField(max_length=280)
time = models.DateTimeField(default=timezone.now)
like = models.IntegerField(default=0)
dislike = models.IntegerField(default=0)
is_Boast = models.BooleanField(
... | [
"dahqniss@gmail.com"
] | dahqniss@gmail.com |
bcd73e2c410197d8acf9939ea8cc23d1fff8e9fe | b73ce9da9ddf21e59444b36d0b747994072f42da | /tests/html_parser.py | af2feee2a62d712a60506d9076cf8a291d3e0b0f | [
"MIT"
] | permissive | manga-py/providers | de68017205850f5d90869464aa41b1691dfca235 | 1ad9f74d1e672f62070632f77fc74e66d35d0e85 | refs/heads/master | 2020-07-28T17:29:07.923115 | 2020-05-23T08:27:22 | 2020-05-23T08:27:22 | 209,479,291 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,443 | py | import unittest
from lxml.html import HtmlElement
from manga_py.providers.exceptions import *
from manga_py.providers.utils.html_parser import HtmlParser
from ._test_variables import TestVariables
class TestHtmlParser(unittest.TestCase, TestVariables):
def test_parser(self):
html = HtmlParser.parse(self... | [
"sttv-pc@mail.ru"
] | sttv-pc@mail.ru |
ecc7bc3853d20d63778c3f3b2e9797f155087c66 | 0dcdf4d1e0d83e9af30369c5d7899f1ea069ead5 | /project/backend/main/models.py | 52ac188bfe05ccc30abb43c1bb2fe4e97623f310 | [
"MIT"
] | permissive | senavs/website-hosting | a4684aef35943ee3635237f9b99d7efe89cc6161 | b38589ca4478d9ca0189d0bfcedcbd854de7eacc | refs/heads/master | 2023-05-12T11:43:28.230688 | 2020-05-29T15:19:36 | 2020-05-29T15:19:36 | 264,193,522 | 1 | 0 | MIT | 2023-05-01T21:40:34 | 2020-05-15T12:56:05 | HTML | UTF-8 | Python | false | false | 2,021 | py | import sqlite3
from sqlite3 import ProgrammingError
from typing import Iterable
# NOT USING ORM BECAUSE OF THE PROJECT REQUIREMENTS
class Database:
_connection = _cursor = None
__tablename__ = None
__tablecolumns__ = []
def __init__(self, url: str):
self.url = url
def __enter__(self):
... | [
"sena.matheus14@gmail.com"
] | sena.matheus14@gmail.com |
127dd90853c25dbea635b9dd8408f5b3bdcf5419 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02641/s218012358.py | 150b550e08d6d7ff5fea6bdc3c1c73415536a324 | [] | 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 | 735 | py | from sys import stdin
readline = stdin.readline
def i_input(): return int(readline().rstrip())
def i_map(): return map(int, readline().rstrip().split())
def i_list(): return list(i_map())
def main():
X, N = i_map()
if N == 0:
print(X)
exit()
P = i_list()
p = list(map(lambda x: abs(x - X... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
175bf5483a2bdabcdb51e0f86efdccc41148535b | c15847d7c689d45aa7273e608ea447e28f1dfff6 | /performance_testing/jmeter/cancel_running_jobs.py | e645fd6420384b57448a43010e86b29305a60ef8 | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/bigquery-utils | 1b9ae6cff5aaa25b7312c4393551352066e0aa53 | 2e30dc06ef6452d3d1b6cdc5a468732a2327d11c | refs/heads/master | 2023-09-03T07:08:37.783915 | 2023-08-11T16:51:04 | 2023-08-11T16:51:04 | 201,975,309 | 906 | 269 | Apache-2.0 | 2023-09-07T11:43:23 | 2019-08-12T17:12:09 | Java | UTF-8 | Python | false | false | 1,156 | py | # Copyright 2020 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 agreed to in writing, s... | [
"noreply@github.com"
] | GoogleCloudPlatform.noreply@github.com |
bd787adc4fb245d2acb71f579c985593fe27e6d8 | b7e1d227d41542bf20f92d08bb0d453058cf6d19 | /search/urls.py | 1c810a86e3ed3a21dba7ab31f2b6f0dd6f3cd470 | [] | no_license | rusrom/django-ecommerce | dfa35bdb2832abf4077dd0883ec0e5e79ffa9662 | aebef77713ab7c1c2118d5c190deee5ccfbd3cb9 | refs/heads/master | 2020-08-04T23:36:09.610480 | 2019-10-22T14:00:04 | 2019-10-22T14:00:04 | 212,315,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | from django.conf.urls import url
from .views import SearchListView
urlpatterns = [
url(r'^$', SearchListView.as_view(), name='list'),
]
| [
"rusrom@guyfawkes.33mail.com"
] | rusrom@guyfawkes.33mail.com |
0850525da95f116617b72ae302c4e47e6613f311 | 5d4504fe2a4881d20669d2a19392c7ac0d9b2831 | /Prerequisites/Python27/Lib/site-packages/esphome/components/sensor/max6675.py | 0ea383d4f693857d29a8459d19d278f8d2e144e2 | [] | no_license | lanbing8023/esphome-tools | 5c98f513b768f71742dc68ad68271e22652db9ea | 6b641e2dcb35130432f2409c50e03ff93af5ceec | refs/heads/master | 2020-05-02T13:24:19.744788 | 2019-03-11T02:25:57 | 2019-03-11T02:25:57 | 177,983,108 | 1 | 1 | null | 2019-03-27T11:48:47 | 2019-03-27T11:48:47 | null | UTF-8 | Python | false | false | 1,494 | py | import voluptuous as vol
from esphome import pins
from esphome.components import sensor, spi
from esphome.components.spi import SPIComponent
import esphome.config_validation as cv
from esphome.const import CONF_CS_PIN, CONF_ID, CONF_NAME, CONF_SPI_ID, \
CONF_UPDATE_INTERVAL
from esphome.cpp_generator import Pvaria... | [
"imhsaw@gmail.com"
] | imhsaw@gmail.com |
3bcef533264cc999482acad54ede4c319059a45c | 38c677ab6ad24a70319ca0c3b952e597e62991d1 | /hackbright_web.py | 7d365aa03731539222261baff7d67bca228a8647 | [] | no_license | dmcdekker/project-tracker-flask | b24ce0a6c0e53ec7b596876d9a53096f492ee285 | fe7fd68c9d1988d16bffad3ce45421aa334688ef | refs/heads/master | 2020-03-13T03:35:24.274671 | 2018-04-25T03:41:00 | 2018-04-25T03:41:00 | 130,946,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | """A web application for tracking projects, students, and student grades."""
from flask import Flask, request, render_template
import hackbright
app = Flask(__name__)
@app.route("/student")
def get_student():
"""Show information about a student."""
github = request.args.get('github')
first, last, git... | [
"denisemdekker@gmail.com"
] | denisemdekker@gmail.com |
6b97d89ed87820245834127c27c74873a0e8da46 | 29881fa0c087f3d3ce0e27fb51309384266203e1 | /listings/migrations/0008_listing_expiration_date.py | 83b7fc387dda027d9abffaaa66e3772326f0ed97 | [] | no_license | aidant842/mymo | 0e5ec2a5c73b6755d994467e4afba10141f449ea | 877e7a38198d1b5effc6c3a63ad12e7166c20a77 | refs/heads/master | 2023-07-17T15:30:21.350974 | 2021-08-24T12:43:18 | 2021-08-24T12:43:18 | 340,033,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # Generated by Django 3.1.6 on 2021-02-23 11:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('listings', '0007_auto_20210222_1610'),
]
operations = [
migrations.AddField(
model_name='listing',
name='expiration_... | [
"aidant842@gmail.com"
] | aidant842@gmail.com |
3c558cd0e27631a53814488e91e71d01604fee41 | 6b6f2ebcc9fbf7518ec998e1d8d914dd875742d7 | /djblets/mail/utils.py | 5e37af0c35710562a82c3b0cbc9f3279caf60a13 | [] | no_license | pombredanne/djblets | da89e0398fb44250b09e7201c940e54cffbebcb3 | 9c4e4a1e6fa71d59b4f555c6ec5699616eb19335 | refs/heads/master | 2022-03-02T00:00:21.921658 | 2022-02-08T11:30:56 | 2022-02-08T11:30:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,312 | py | """General utility functions for working with e-mail."""
from email.utils import escapesre, parseaddr, specialsre
from django.conf import settings
def build_email_address(email, full_name=None):
"""Build an e-mail address for a To/CC/BCC field from a user's information.
Args:
email (unicode):
... | [
"christian@beanbaginc.com"
] | christian@beanbaginc.com |
0dc21621af4cce33fbdc36b818eb44f102674aca | 838d23e9590bc855926628d0f7b4ffe73e108565 | /Python_Programs/Madlibs_generator.py | 6729ad7eb3eb4a0bd5cb64dd8890f7d84a433a8c | [] | no_license | ArnabBasak/PythonRepository | ca475b1bc728ede1e033c54f40392f5b4c3494d4 | 388478fd33c4ed654eb6b1cba5e0cbdcfb90cf0e | refs/heads/master | 2021-07-15T17:05:47.435677 | 2020-07-17T09:09:56 | 2020-07-17T09:09:56 | 84,456,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,847 | py | """
3. Mad Libs Generator
The Goal: Inspired by Summer Son’s Mad Libs project with Javascript.
The program will first prompt the user for a series of inputs a la Mad Libs.
For example, a singular noun, an adjective, etc. Then, once all the information
has been inputted, the program will take that data and place ... | [
"arnabbasak11@gmail.com"
] | arnabbasak11@gmail.com |
e8b8fdcaab85cea4620b71da164f18fd7dbe4449 | 947e71b34d21f3c9f5c0a197d91a880f346afa6c | /ambari-server/src/main/resources/common-services/FALCON/0.5.0.2.1/package/scripts/service_check.py | ef4585594bb4b167cfabe3c48136d2e3bc2bfe32 | [
"Apache-2.0",
"MIT",
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"OFL-1.1",
"MS-PL",
"AFL-2.1",
"GPL-2.0-only",
"Python-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | liuwenru/Apache-Ambari-ZH | 4bc432d4ea7087bb353a6dd97ffda0a85cb0fef0 | 7879810067f1981209b658ceb675ac76e951b07b | refs/heads/master | 2023-01-14T14:43:06.639598 | 2020-07-28T12:06:25 | 2020-07-28T12:06:25 | 223,551,095 | 38 | 44 | Apache-2.0 | 2023-01-02T21:55:10 | 2019-11-23T07:43:49 | Java | UTF-8 | Python | false | false | 2,076 | py | """
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this ... | [
"ijarvis@sina.com"
] | ijarvis@sina.com |
f9aa49ceb8dcba436595b48509f035bc2bdb19d5 | 6daf9fe45d498ab0d9c765ee094bca55e5c14291 | /polyaxon/polyaxon/config_settings/logging.py | f7a9ad2b70c05984062122943c0546f3e0302a97 | [
"MIT"
] | permissive | vaer-k/polyaxon | 7b23628093f017852735c893cf0a862cc983911e | da13c95d23999145763626f836f9be40a6e8f965 | refs/heads/master | 2020-03-13T08:19:15.744002 | 2018-04-25T10:37:39 | 2018-04-25T10:37:39 | 131,041,646 | 0 | 0 | null | 2018-04-25T17:32:05 | 2018-04-25T17:32:05 | null | UTF-8 | Python | false | false | 1,828 | py | import os
from polyaxon.utils import ROOT_DIR
LOG_DIRECTORY = ROOT_DIR.child('logs')
if not os.path.exists(LOG_DIRECTORY):
os.makedirs(LOG_DIRECTORY)
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'standard': {
'format': '[%(asctime)s] %(levelname)s... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
89f9ff1fc57d19bfc0ba90652c5632f79ae10a15 | 1f626975077725c2d6fa364a4ba530675566d6e0 | /userHandling/urls.py | 0b00f7539a6ad0671af093574b0d0b192e3910d2 | [] | no_license | Nsokol44/Carthago | 54a92acfcceef94feda4c3750f6cb469fd8fd571 | b5dd0c14c05cb21b059ac48ff0b6416c5194c203 | refs/heads/master | 2023-02-17T02:36:46.413918 | 2021-01-19T20:33:44 | 2021-01-19T20:33:44 | 331,069,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | from django.urls import path, include
from . import views
urlpatterns = [
path('', views.index, name='user-home'),
path('register/', views.register, name='register'),
path('user_login/', views.user_login, name='user_login'),
path('user_logout/', views.user_logout, name='user_logout'),
path('profi... | [
"nsokol@nicholass-mbp.lan"
] | nsokol@nicholass-mbp.lan |
4723274435f75a11c268f333e216e32fd69a877d | eb0f13155a6c97a561e4df66f8c96f25b3587eb7 | /api/sktkr.py | 5f3313eb06461bf94d6137a07f2892163df44169 | [] | no_license | jaehyek/stock-analysis | 3005cdf9a118fa78f854fa8215eda837abf4e75d | 2f78dacc9aee4254b958ab928ab913c4f3007979 | refs/heads/master | 2020-04-20T07:08:00.829939 | 2017-10-27T10:16:32 | 2017-10-27T10:16:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,521 | py | """
sktkr.py
This script should use sklearn to learn from stock market data.
"""
import io
import pdb
import os
import flask
import datetime as dt
import flask_restful as fr
import numpy as np
import pandas as pd
import sqlalchemy as sql
import sklearn.linear_model as skl
# modules in the py f... | [
"verystrongjoe@gmail.com"
] | verystrongjoe@gmail.com |
c36737d70f36cd5e2a9ae0a8957a169c2ed18c6c | 8417564be258bf1b8ed1c75cf8cdbcea346239b1 | /venv/bin/pip3.5 | 26454f64bd409142cbde634ad3a4aa6107b1ac24 | [] | no_license | rdahal35/djangoproject | abebe56f7e5be2a45fb656b030aed2b9c9c6e201 | 8aa0d967018d6eb4097235135661cda2c46d67a3 | refs/heads/master | 2021-09-09T23:02:17.107653 | 2018-03-20T05:40:26 | 2018-03-20T05:40:26 | 125,965,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | 5 | #!/home/rupesh/python/django/yetanotherproject/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"rdahal35@gmail.com"
] | rdahal35@gmail.com |
cbb1f4d634b5c2931e92070446640ee4d89d33d8 | efd55bc63da8ab6ee964ec82bd0b761fd36107cc | /leetcode/number-of-enclaves.py | ee0c5737871c26a66fb05b99c26e3ff45578e1bb | [] | no_license | gsantam/competitive-programming | f9a2c9999470eeae9ef4aada6af43b91a65fcb50 | 0b208516a6ae3e72bc7b79ef0ac83dcbfa100496 | refs/heads/master | 2021-06-20T23:27:30.274275 | 2021-06-20T19:44:51 | 2021-06-20T19:44:51 | 162,201,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | class Solution:
def numEnclaves(self, A: List[List[int]]) -> int:
visited = set()
numEnclaves = 0
for i in range(len(A)):
for j in range(len(A[0])):
if (i,j) not in visited and A[i][j]==1:
can_visit_boundary = False
stack = ... | [
"santamaria.guille@gmail.com"
] | santamaria.guille@gmail.com |
f472551f1d884a042278fd5068b8812e440a9674 | f73bcada5ab8432d2af07b5cb7fd7a38109d3e3a | /.history/parser_20201108183309.py | ccfb07d5c586abb5736efc84264c3f2c979c39ba | [] | no_license | mariajbp/gedcomparser | 837bf4ae5628a81e535d233c7c35313c6d86d78c | 6fc55899e5a82c4071991ab94a344b64c014b84d | refs/heads/master | 2023-01-23T09:01:27.459597 | 2020-11-19T23:58:53 | 2020-11-19T23:58:53 | 310,900,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | #!/usr/bin/python3
#python3 parser.py input/bible.gedcom > test.txt
import sys
from re import *
filename = sys.argv[1].split('/')[1]
assetPath = "assets"
indPath = "individuals"
famPath = "families"
cssPath = "assets/gedcom.css"
def createIndi(ik,iv):
f = open('assets/individuals/'+ik+'.html', 'w')
f.writ... | [
"mariajbp00@gmail.com"
] | mariajbp00@gmail.com |
a9710d3e6cebed174b49ca7389a2ff5cedf15dbf | 33c23cb18917d6b1255fa45a4f1944f1774fdb99 | /scripts/local_lcs_pam_250.py | 0b29540cf2ff0ac610c6d0b89c4448edfd3265f0 | [] | no_license | sjuvekar/Bioinformatics | ff0c0f4d4b77c322ce59cd98ae0036d71305710f | 97bf341f2b8b63b7eba78e736be6703a2f651e90 | refs/heads/master | 2020-05-17T00:18:18.056611 | 2013-12-11T02:46:34 | 2013-12-11T02:46:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | #!/usr/bin/env python
from util.lcs_util import LCSUtil
import sys
if __name__ == "__main__":
f = open(sys.argv[1])
dna = LCSUtil(f.readline().strip())
dna.parse_score_matrix("../matrices/PAM250.txt")
other_dna = LCSUtil(f.readline().strip())
(best_score, seq1, seq2) = dna.graph_based_local_alignme... | [
"sjuvekar@gmail.com"
] | sjuvekar@gmail.com |
a2785bd0b41bd5bb7bb9d3b20b2e2922d476bae4 | a9f38bb28ff9bd04b151d86c653cde9f46768c7c | /medium/validateBST.py | ce4596ddfbf18317b96c151cb041324fd72f9669 | [] | no_license | Xynoclafe/leetcode | 02388516b10b8ee6bec6ee1b91ab5681c3254d33 | 4a80f02683e7fc14cb49c07170651ea3eeb280ac | refs/heads/master | 2020-12-01T21:05:44.656581 | 2020-02-02T09:05:32 | 2020-02-02T09:05:32 | 230,770,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def isValidBST(self, root: TreeNode) -> bool:
def inOrderT(root, inOrder):
if root == None:
... | [
"gokulprem.94@gmail.com"
] | gokulprem.94@gmail.com |
1323bf6ec05675b2462147830b71f4051ac71fc7 | 1dc67a30f9af553243088668d51bc4e75e87d83d | /pythonNet/udp_client.py | 2d2eeb35ecd220d4b54e3db4f2dd9be943735345 | [] | no_license | houyinhu/AID1812 | 00db45b3e8905bd069b31f2e7689f83bca3fa61f | 8eeb9f06ed9f4e742d480354ef0e336dfe8c2f17 | refs/heads/master | 2020-04-27T16:33:57.275890 | 2019-04-10T01:09:51 | 2019-04-10T01:09:51 | 174,486,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | from socket import *
#服务器地址
host = '127.0.0.1'
port = 9999
addr = (host,port)
#创建套接字
sockfd = socket(AF_INET,SOCK_DGRAM)
#收发消息
while True:
#发送消息
data = input("Msg>>")
if not data:
break
sockfd.sendto(data.encode(),addr)
#接受消息
msg,addr = sockfd.recvfrom(1024)
print("Receive from ... | [
"ahu@163.com"
] | ahu@163.com |
a39c4901cd3ea3b970eac16df6e9449edf83b9bf | ed0780889408c9968f3c987fbace61aa11770ba1 | /rythmize/__init__.py | 7fbe776402cfcb70ac2e582492b9d2840232a719 | [] | no_license | maleksal/rythmize-api | b45af58c594e882dbbe248a479d6f88064332cf4 | 6d538a7eae617c32b5405c8c92f1cd4f7f42ce3c | refs/heads/main | 2023-07-18T18:40:54.718307 | 2021-09-13T14:14:17 | 2021-09-13T14:14:17 | 304,356,537 | 5 | 1 | null | 2020-11-04T13:43:10 | 2020-10-15T14:43:15 | Python | UTF-8 | Python | false | false | 875 | py | """
Create flask application.
"""
import os
from flask import Flask
from .admin import admin_settings
from .api.v1.views import api_views
from .extensions import cors, db, guard, ma, mail
from .models.user import User
def create_app(config_env):
"""Initiate app using Flask Factory Pattern."""
app = Flask(_... | [
"malek.salem.14@gmail.com"
] | malek.salem.14@gmail.com |
433a20c2b321ceee12bcc5ba041c9f6638a6c4b4 | e2a6cc522daca1a0060644fcc487b684a0849c34 | /ecommerce_project/login_app/forms.py | ad20e0f8b1d8ef135c0e16ae8659bb72fb9fe0b8 | [] | no_license | Tanzin-Ul-Islam/Django_Ecommerce_sslcommerz | 0c341ab0f045479a8cd7fce6a736ebfa62db55c4 | fdec49a5c4ed7e943d4e7c8778c8f254117f87cd | refs/heads/main | 2023-02-08T17:19:11.283296 | 2020-12-29T22:02:31 | 2020-12-29T22:02:31 | 321,987,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | from django.forms import ModelForm
from login_app.models import User, Profile
from django.contrib.auth.forms import UserCreationForm
class ProfileForm(ModelForm):
class Meta:
model = Profile
exclude = ('user',)
class SignUpForm(UserCreationForm):
class Meta:
model = User
fields... | [
"tanzin.cse@gmail.com"
] | tanzin.cse@gmail.com |
dd8412c8a6aece59b5d524a5c1c11c537bc38c52 | fc29ccdcf9983a54ae2bbcba3c994a77282ae52e | /Leetcode/325-presum.py | c3e5f9dbbe27aeaad335dcc81cdb202360b980a3 | [] | no_license | linnndachen/coding-practice | d0267b197d9789ab4bcfc9eec5fb09b14c24f882 | 5e77c3d7a0632882d16dd064f0aad2667237ef37 | refs/heads/master | 2023-09-03T19:26:25.545006 | 2021-10-16T16:29:50 | 2021-10-16T16:29:50 | 299,794,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | from typing import List
class Solution:
def maxSubArrayLen(self, nums: List[int], k: int) -> int:
memo = {}
res = 0
cur_sum = 0
memo[cur_sum] = -1
for idx, val in enumerate(nums):
cur_sum += val
if cur_sum - k in memo:
res... | [
"lchen.msc2019@ivey.ca"
] | lchen.msc2019@ivey.ca |
b7a63f283bc4352d3165fd8aae7a005711aa608d | c97b9ae1bf06757ba61f90905e4d9b9dd6498700 | /venv/Lib/site-packages/tensorflow/core/protobuf/data/experimental/snapshot_pb2.py | 6ff5b17b88d56e9937049ac3adbb5748da83bf01 | [] | no_license | Rahulk1p/image-processor | f7ceee2e3f66d10b2889b937cdfd66a118df8b5d | 385f172f7444bdbf361901108552a54979318a2d | refs/heads/main | 2023-03-27T10:09:46.080935 | 2021-03-16T13:04:02 | 2021-03-16T13:04:02 | 348,115,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:6ddffc53da063702a6f6211385bdd679c42227bb1dd87be76feeacb69fc30bb6
size 10684
| [
"rksc.k1p@gmail.com"
] | rksc.k1p@gmail.com |
583cfa8145a469e7dbf7f5fa01e42d36462ea762 | c5d6e21744f10c6e57d58b57bba2763b82a9726b | /Bimestre_04_Aula_04/02_letras.py | bed4bf61752730b5ca1c49735df58909d70d1e6b | [] | no_license | valeriacavalcanti/ALP-2020-R | bf32af707d49db650deb6d122a1abdf58d94ae4f | 62e0be861ad7439b99ae5d0b0e14d97c887424c7 | refs/heads/main | 2023-05-05T02:05:00.128872 | 2021-06-04T10:30:05 | 2021-06-04T10:30:05 | 316,784,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | frase = input('Frase: ')
letras = []
for s in frase:
if ((s >= 'a' and s <= 'z') or (s >= 'A' and s <= 'Z')) and (s not in letras):
letras.append(s)
print(letras)
| [
"valeria.cavalcanti@ifpb.edu.br"
] | valeria.cavalcanti@ifpb.edu.br |
e922ca8c459ceb36f136a75e1fe68b947faf0553 | 90d3af65fc9900f2abb7eaa7631646856e115da3 | /COMP9021/challenge/merge_strings.py | 09d6d075032614f7aafc9a7756415ff50498952b | [] | no_license | Tim-hyx/UNSW-Courses | d414b79b6c5b428be12456ba85e1757ac871535b | b7031ea9ac833b5a396e7938ef73cc335a2e37b7 | refs/heads/main | 2023-07-10T19:48:34.731340 | 2021-08-10T02:39:14 | 2021-08-10T02:39:14 | 300,894,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | # Written by Eric Martin for COMP9021
def can_merge(string_1, string_2, string_3):
if not string_1:
return string_2 == string_3
if not string_2:
return string_1 == string_3
if string_1[0] == string_3[0]\
and can_merge(string_1[1 :], string_2, string_3[1 :]):
return True
... | [
"noreply@github.com"
] | Tim-hyx.noreply@github.com |
510d52809fb94163286af1dd16c5f0d892dc29df | 3b98ee18977177e10b57e6162a03204e3774d3b8 | /Kirk_Byers_Nornir_Automation/env/lib/python3.8/site-packages/nornir_napalm/plugins/tasks/__init__.py | f48b5b83218e80cf28db8c5fb893eb17186ed306 | [] | no_license | mattmiller87/practice | 0a3d1cae1283abb683dfab0af86e6c569a6104e1 | 9655a8020038e0f6dfe8df842867debac0fcb1e3 | refs/heads/master | 2022-06-23T23:47:50.350379 | 2022-06-14T13:30:51 | 2022-06-14T13:38:56 | 51,970,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from .napalm_cli import napalm_cli
from .napalm_configure import napalm_configure
from .napalm_get import napalm_get
from .napalm_ping import napalm_ping
from .napalm_validate import napalm_validate
__all__ = (
"napalm_cli",
"napalm_configure",
"napalm_get",
"napalm_ping",
"napalm_validate",
)
| [
"mattmiller87@gmail.com"
] | mattmiller87@gmail.com |
1684baab9978a790c1a1abaa5ba07d46c9297150 | 1798bed996931a9e7b6c9a469f86e24589fa9cf0 | /huxley/api/tests/test_committee.py | 14041809495b2be4aecd91ede104035ddcb95cdd | [
"BSD-3-Clause"
] | permissive | joannejqi/huxley | 8eae38af706b4f5d714736c99741541d2c3aae73 | b4b5cac213c9605599900eca8ed0225086a5cf4c | refs/heads/master | 2020-05-29T08:41:22.712756 | 2016-10-02T22:18:12 | 2016-10-02T22:18:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,822 | py | # Copyright (c) 2011-2015 Berkeley Model United Nations. All rights reserved.
# Use of this source code is governed by a BSD License (see LICENSE).
from huxley.api import tests
from huxley.api.tests import auto
from huxley.utils.test import TestCommittees, TestUsers
class CommitteeDetailGetTestCase(auto.RetrieveAPIA... | [
"k.mehta@berkeley.edu"
] | k.mehta@berkeley.edu |
acf4f07c5b846474dd3390e18f33eb6453daf203 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/dominator_20200827125530.py | 4033c37b5502fead050650b44dcd3b8bd2988b5c | [] | 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 | 450 | py | def leader(A):
# create a dictionary the element that occurs more than n//2 times
# once I find it I return the index
store = {}
candidate = -1
for i in A:
if i in store:
store[i] +=1
else:
store[i] = 1
for i in store:
if store[i] > (len(A) //... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
0fe855a596925a8feaac09b26bd6830c252b6375 | d996edcd595c565c5725a16286ce8d338af67246 | /src/rl/environments/bandit.py | 40ded8fedcd9633048d32e37660a86d830ceaa5b | [] | no_license | preddy5/dltemplate | fbbfce7660c451495e255cf8d8437e4b4e207f9c | 77b04b767cbd4914e0a3d3609c645e475aabcc43 | refs/heads/master | 2020-04-28T19:37:04.893001 | 2019-03-13T13:35:04 | 2019-03-13T13:35:04 | 175,517,056 | 1 | 1 | null | 2019-03-13T23:59:40 | 2019-03-13T23:59:39 | null | UTF-8 | Python | false | false | 3,429 | py | """
From https://courses.edx.org/courses/course-v1:Microsoft+DAT257x+2T2018/course/ (errors and redundant code included ;)
"""
import numpy as np
import sys
# Interface
class Environment(object):
def reset(self):
raise NotImplementedError('Subclasses must override reset.')
def actions(self):
... | [
"markmo@me.com"
] | markmo@me.com |
a89a60b286af90a01447471f18579f1512a3c20b | a8314fb4e71a229f2288ca0588bbb3ebd58b7db0 | /leet/merge_two_sorted_lists/main.py | 810455adabdede95f2ff4ba1f28c025393049b90 | [] | no_license | blhwong/algos_py | 6fc72f1c15fe04f760a199535a0df7769f6abbe6 | 9b54ad6512cf0464ecdd084d899454a99abd17b2 | refs/heads/master | 2023-08-30T17:45:51.862913 | 2023-07-24T18:56:38 | 2023-07-24T18:56:38 | 264,782,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | from data_structures.list_node import ListNode
class Solution:
def mergeTwoLists(self, l1: ListNode, l2: ListNode) -> ListNode:
curr1 = l1
curr2 = l2
head = None
tail = None
def add_to_tail(val):
nonlocal head
nonlocal tail
if not head:
... | [
"brandon@yerdle.com"
] | brandon@yerdle.com |
88748958f155fdf6f5309640b3a89f748bad225e | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/model_control/detailed/transf_Logit/model_control_one_enabled_Logit_MovingAverage_Seasonal_Second_SVR.py | 14fcfd600f9d3e0f16af66b34160eb3958b35e58 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 163 | py | import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['Logit'] , ['MovingAverage'] , ['Seasonal_Second'] , ['SVR'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
712e14f4ca6830112d3e199b7a2dddaf97f50512 | 9cc1b58d0319308da98187d071295b2fabf1f080 | /0608/a0608_03_matplotlib模組試用2.py | 97333bfaef57ef352a284ad83d82ab346c07fd2f | [
"MIT"
] | permissive | Arwen0905/Python_Test | 60d1dee383c9cf27df6b93cfde7884c91092229c | c75357e4354a684a9fae41f751dae60d4cf0716c | refs/heads/master | 2023-01-13T13:14:55.355898 | 2020-10-31T18:52:07 | 2020-10-31T18:52:07 | 265,150,874 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | import matplotlib.pyplot as plt
import random
# list_x1 = [1,5,7,9,13,16]
# list_y1 = [15,50,80,40,70,50]
# list_x2 = [2,6,8,11,14,16]
# list_y2 = [10,40,30,50,80,60]
list_x1 = []
list_y1 = []
list_x2 = []
list_y2 = []
for i in range(4):
list_x1.append(random.randint(1,50))
list_y1.append(random.randint(1,50))... | [
"qq23378452@gmail.com"
] | qq23378452@gmail.com |
3f9e0de70db659c1bc01acd9909894dc74a0c1a2 | a87eed5b49858ee547c2363a9d29a5c625db254f | /examples/log_requests.py | 035cc4e95d5243acbcfef0c810012b8089ee290d | [
"BSD-2-Clause"
] | permissive | parkerhancock/requests-cache | 3a58d8829eba27796dd551d98d93237f24fd2179 | e3ae526cba37a4ea2d8a48b05aaeff062847c644 | refs/heads/master | 2023-05-31T11:59:29.964100 | 2021-07-09T21:01:11 | 2021-07-09T21:01:11 | 371,452,485 | 1 | 0 | BSD-2-Clause | 2021-07-09T14:03:50 | 2021-05-27T17:25:43 | Python | UTF-8 | Python | false | false | 1,522 | py | #!/usr/bin/env python3
"""
An example of testing the cache to prove that it's not making more requests than expected.
"""
from contextlib import contextmanager
from logging import basicConfig, getLogger
from unittest.mock import patch
import requests
from requests_cache import CachedSession
from requests_cache.sessio... | [
"jordan.cook@pioneer.com"
] | jordan.cook@pioneer.com |
85ed8f1963ad348e607ad90fca7242976a2638a6 | eb99769b7c9e0eb1cf3b88878934a400ba42f0bf | /users/migrations/0002_auto_20180614_1023.py | 7649e59641c40a952777371d5d47701aa6f2a3bf | [] | no_license | Levalife/petsterr2.0 | 3657b200b9e236b81896f4ac104932e85517ceb3 | 43d20e65362596d72942fe624c29fd4f84d90f9a | refs/heads/master | 2023-01-13T04:58:23.496527 | 2018-09-13T09:50:48 | 2018-09-13T09:50:48 | 203,134,329 | 0 | 0 | null | 2023-01-05T21:55:18 | 2019-08-19T08:48:32 | Python | UTF-8 | Python | false | false | 3,743 | py | # Generated by Django 2.0.6 on 2018-06-14 10:23
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('countries', '0003_auto_20180614_1023'),
('users', '0001_initial'),
]
operatio... | [
"levushka14@gmail.com"
] | levushka14@gmail.com |
b58bc1f53f284b177d9a168c3cd8522e9ce5c134 | 30d02ec6dd309dced011d266ca40bace293fb23e | /20210315/swapping_nodes_in_a_linked_list.py | 6c72e9f8fb965b8d2a1629cd4d2d42b7e2144379 | [] | no_license | jyeoniii/algorithm | b72f5e9f7fe63098c251bcc1585787ba39ca750c | 7d80e27aec8fbac936911ee78a92c47b00daa3ba | refs/heads/master | 2023-04-15T01:39:41.149528 | 2021-04-22T13:55:58 | 2021-04-22T13:55:58 | 316,533,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,747 | py | # https://leetcode.com/explore/challenge/card/march-leetcoding-challenge-2021/589/week-2-march-8th-march-14th/3671/
from common.common_data import ListNode
class Solution:
def swapNodes(self, head: ListNode, k: int) -> ListNode:
length = 0
node, node1 = head, None
while node:
... | [
"jaykim9438@gmail.com"
] | jaykim9438@gmail.com |
745625739eb2a5d142639ae759a2c01bc73b0535 | 69da8d0f4d5d50b40019959a83dda09aa75f6dd3 | /test/test_columndatatypegetter.py | 19b486d3dce2c01e583932793a1daac2d5f241ce | [
"MIT"
] | permissive | Peter-32/neatdata | 62e8fbccd28257ec7e533eeec1cd5f579ae93247 | 8796ca9f027ad727440b2f11479ad5ab22aa8e09 | refs/heads/master | 2021-05-10T09:52:34.488575 | 2018-03-31T23:12:29 | 2018-03-31T23:12:29 | 118,937,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,276 | py | import unittest
import pandas as pd
import numpy as np
from neatdata.neatdata import *
class TestColumnDataTypeGetter(unittest.TestCase):
def testColumnDataTypeGetter_Execute(self):
# Assemble
now = pd.datetime.now()
trainX = pd.DataFrame({'col1': [1,1,1,1,1,1,1],
... | [
"peter@impactradius.com"
] | peter@impactradius.com |
634bc45cb7e7a4fac71119db55fdd5b876c9f2c1 | d2a2546165b3db6295a3f21972dda8ab9aab7846 | /src/vehicles/witch_hill_dump.py | 1c97fe495c9bea288903b47daf6afdd2b767a4a8 | [] | no_license | andythenorth/road-hog | bab12b133dd674f0e6d7ae87498675f8da96b982 | 1800d57d4ce904e7041f24646c393b37903d9466 | refs/heads/main | 2022-09-26T19:57:31.006800 | 2022-09-17T10:09:37 | 2022-09-17T10:09:37 | 214,848,659 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | from road_vehicle import DumpHauler, DieselRoadVehicle
consist = DumpHauler(id='witch_hill_dump',
base_numeric_id=500,
name='Witch Hill',
road_type='HAUL',
power=900,
speed=50, # dibbled up above RL for game balan... | [
"mail@andythenorth.co.uk"
] | mail@andythenorth.co.uk |
79ad6dc22c43fed47a393c0aff8caff6d7af35e4 | f93ecb6738037629d6a7f81ccdc278a0e6051859 | /backend/users/migrations/0002_auto_20210107_1422.py | 0fcc43097aae6dd692bacb76114aaf83f58efae8 | [] | no_license | crowdbotics-apps/rntest-23713 | 5b30bda09e0023387c8f831655fc2c61178e54e9 | 1e08218f2b705815a63bba73a00590c439543e0d | refs/heads/master | 2023-02-10T01:12:56.843111 | 2021-01-07T15:52:33 | 2021-01-07T15:52:33 | 327,614,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | # Generated by Django 2.2.17 on 2021-01-07 14:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course', '0001_initial'),
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
e0576df71c2522cdb2051d37f75b5bdada967a89 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v10/services/services/audience_service/transports/base.py | ff56552e7c1a9f7d86489c08a7f4d73273e0a941 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 5,929 | 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"
] | GerhardusM.noreply@github.com |
e7d8a1682099ac7153d8ad000c1e50c2359043a1 | c87397b08516625c178040e736cf87e61b227fa5 | /inversioncount.py | 73a7f1595a4acf8fc7b6152a498cb1a0cc991c25 | [] | no_license | sainihimanshu1999/HackerRank-Solution | 26cb839aeb46c373643d5ad347a348103c1a147e | ad1e9e450474782b06add3c0c66108e3890d56ec | refs/heads/master | 2022-12-24T07:16:48.576461 | 2020-09-11T15:16:34 | 2020-09-11T15:16:34 | 271,944,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the countInversions function below.
def countInversions(arr):
n = len(arr)
temp = [0]*n
return _mergeSort(arr,temp,0,n-1)
def _mergeSort(arr,temp,left,right):
count = 0
if left<right:
mid = (left+right)//... | [
"sainihimanshu.1999@gmail.com"
] | sainihimanshu.1999@gmail.com |
69cc6cdd46138f0cab03ad3c1137e1b4b13e2da9 | b3d552675b36cb88a1388fcfc531e497ad7cbee9 | /day2/filter_demo/filter_demo/views.py | 096b4b76668d64379b9b12eb6c60b5e53333f08f | [] | no_license | gaohj/1902_django | 3cea1f0935fd983f25c6fd832b103ac5165a2e30 | 822af7b42120c6edc699bf97c800887ff84f5621 | refs/heads/master | 2022-12-11T10:02:50.233398 | 2019-11-26T08:33:38 | 2019-11-26T08:33:38 | 209,241,390 | 2 | 0 | null | 2022-12-08T07:28:24 | 2019-09-18T07:05:48 | Python | UTF-8 | Python | false | false | 733 | py | from django.shortcuts import render
from datetime import datetime
def greet(word):
return "hello world %s" % word
def index(request):
context = {
'greet':greet
}
return render(request,'index.html',context=context)
def add_view(request):
context = {
'value1': ['1','2','3','4'],
... | [
"gaohj@126.com"
] | gaohj@126.com |
fac49fce5a9dca3eb4fba19fc3f0b99240d3b0d7 | 4bf344f5069a0048b7ee4fb49dc9a1126256f2ee | /fotalora_project/settings.py | 48ec2c322f17cbee166e3cbc7f38246c16bcca96 | [] | no_license | rikicop/fotalora | 1377881f866990ad96a90b3d3add04583c6a9175 | 4313bfce6423bcd6cdd79850e5c3975ae42b9de3 | refs/heads/main | 2023-04-12T02:22:05.124849 | 2021-05-15T23:07:32 | 2021-05-15T23:07:32 | 345,458,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,870 | py |
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = 'j1v0z5+s9%9_iaczr^8#!y%!xcmta93p3y_afjyor7w=^pf^%9'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = [... | [
"ruperto1@protonmail.com"
] | ruperto1@protonmail.com |
9f430d239d4708d95d76a6d4db2165837fcbc7e6 | 94bfb1346a9ce4cf6ca8bfeeb5194b7a467731a6 | /aclark/db/migrations/0017_profile_twitter_username.py | b51796a7afd925ff83b1d5063aa2f2333263afca | [
"MIT"
] | permissive | aclark4life/aclarknet-best-pro | 4006cad37c2eec166a98a73e988b9b490a10e5cb | e256bfdd63ad4445bf0a75ef0b91f6e1fd2479ea | refs/heads/master | 2023-03-01T09:10:04.041913 | 2020-12-01T18:40:07 | 2020-12-01T18:40:07 | 140,634,961 | 0 | 0 | MIT | 2021-02-10T01:57:38 | 2018-07-11T22:49:33 | CSS | UTF-8 | Python | false | false | 398 | py | # Generated by Django 2.1.9 on 2019-06-14 15:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("db", "0016_auto_20190614_1208")]
operations = [
migrations.AddField(
model_name="profile",
name="twitter_username",
f... | [
"aclark@aclark.net"
] | aclark@aclark.net |
9da5dce08297733c59ac76e87bfeff418f8cd12d | 3a9379132ef3ebb5ab9ae67a3baea146006381e6 | /Pc_06_Beautiful Soup/pc_02_基本用法.py | 328e49540567d5e34da008278433b7fa3527d567 | [] | no_license | ahaoao/PySpider | 9c8280affcee27985105a09ea354ac77773d77a6 | 9c32bd56a8b198050f3b467fe233a3699de73ecf | refs/heads/master | 2020-08-09T21:29:37.666947 | 2019-10-10T12:09:03 | 2019-10-10T12:09:03 | 214,172,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | from bs4 import BeautifulSoup
import requests
url = 'http://www.baidu.com/'
html = requests.get(url)
soup = BeautifulSoup(html.text, 'lxml')
# 调用prettify()方法,这个方法可以 把解析的字符串以标准的缩进格式输出
# 对于不标准的HTML字符串BeautifulSoup可以自动更正格式。这一步不是由prettify做的,而是由BeautifulSoup初始化时完成的
print(soup.prettify())
print(soup.script.string)
# soup.s... | [
"18985242014@163.com"
] | 18985242014@163.com |
565efacfb179f927cd8af26c61ae0c3ba3ef8487 | 81d0bfe1262008587ddf5ac12ae034d6922b9747 | /.history/Smart/__init___20201119002524.py | cbb9b10af0ff19c067a3b2a07463887dced7e82c | [] | no_license | elvinyeka/Smart-Mobile | 525fffac14b8c460e85002bbf154bf54b4a341fe | a32f557306ae1bfe3ae01f5a8beef93727cfbc47 | refs/heads/master | 2023-06-09T09:52:18.446572 | 2021-07-06T11:35:34 | 2021-07-06T11:35:34 | 313,988,596 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SECRET_KEY'] = 'mysecretkey'
app.config['SQLALCHEMY_FATABASE_URI'] = 'sqlite:///smart.db'
db = SQLAlchemy(app)
from Smart.admin import routes | [
"elvinyeka@gmail.com"
] | elvinyeka@gmail.com |
5d3c950baf2810efddb7193b9a250d54b794cb01 | 6a6d8c0c8ddd6f5a1c03788f35320dd4b82314ea | /yamtbx/dataproc/cbf.py | f0cfd76d63abd9e9a3ee424e9184619b4ec59abc | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"MIT"
] | permissive | nsls-ii-mx/yamtbx | b817a131a8f6f515db99bc1743f81218997ac4ed | 311cf5a20e27a035a9e89c2abcb3c7d5e3684d67 | refs/heads/master | 2021-01-11T12:05:38.166937 | 2017-01-24T16:26:44 | 2017-01-24T16:26:44 | 76,574,177 | 1 | 0 | null | 2016-12-15T16:00:06 | 2016-12-15T16:00:06 | null | UTF-8 | Python | false | false | 3,840 | py | """
(c) RIKEN 2015. All rights reserved.
Author: Keitaro Yamashita
This software is released under the new BSD License; see LICENSE.
"""
import os
import pycbf
import numpy
from cbflib_adaptbx import cbf_binary_adaptor, CBFWriteAdaptor
def load_cbf_as_numpy(filein, quiet=True):
assert os.path.isfile(filein)
... | [
"keitaroyam@users.noreply.github.com"
] | keitaroyam@users.noreply.github.com |
0ade154f6e8c21659fa6a191193b26eca83f5fed | d439cfe7ae0b01026ba1a821fa2ab853ccee9600 | /bi_eval/negativePointer1.py | 5164723a9738a64080ea3830beee70725268479a | [] | no_license | luofang0212/synyi_test | 6e16a7d52aab8aba39605e09df1a4115bd7af39e | 386d1c7a72bd7eae8d16c64492cd0ca3bc6cd775 | refs/heads/master | 2023-08-29T17:30:23.307048 | 2021-11-03T08:10:01 | 2021-11-03T08:10:01 | 411,960,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from bi_eval.score_color import to_color
'''
负向指标-情况1
当(参考值/实际值)>=150% ,
则指标得分=分值权重满分*150%
否则指标得分= (参考值/实际值)*分值权重满分
'''
# 实际值
actual_value = 200.76
# 参考值
reference_value = 32
# 分值
score = 100
# 分值权重
score_weight = 0.4
# 分值权重满分:指标分值
full_score = score * ... | [
"warm_homel@163.com"
] | warm_homel@163.com |
5787255ed323fe6e376304ba1c7501341403c07f | 720668c26680d91db9e19cca9a9e348ec8f615ee | /app/snippets/serializers/users.py | a79228232b8b1679fbb934783f51016ae39dbbca | [] | no_license | orca9s/drf-tutorial | a619f4669d5cf38d5450e19f27491ddaa0fbe4b3 | 4a214a51b94e7449ad16e061e3b799e215059955 | refs/heads/master | 2020-03-23T07:41:01.865456 | 2018-08-22T12:18:04 | 2018-08-22T12:18:04 | 141,285,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | from django.contrib.auth import get_user_model
from rest_framework import serializers
User = get_user_model()
__all__ = (
'UserListSerializer',
)
class UserBaseSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = (
'pk',
'username',
)
c... | [
"sang93423@gmail.com"
] | sang93423@gmail.com |
66f36110ab14cc56a6425df036cd827d82a1dd07 | 81c85850747f97ccc6ed36e3e0a859b99ef38fe8 | /agesprot/settings.py | 6630d034f511e8d362388af3c9ce8257d623e610 | [] | no_license | agesprot1/agesprot | f5047447a37ea8e92b4ffa2d72ae7814d0af8950 | 34c14a176bca5523999d27d5b9f695a6fac9df96 | refs/heads/master | 2021-01-20T22:11:18.686295 | 2016-08-23T22:38:57 | 2016-08-23T22:38:57 | 61,495,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,306 | py | """
Django settings for agesprot project.
Generated by 'django-admin startproject' using Django 1.9.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
... | [
"alka65@hotmail.com"
] | alka65@hotmail.com |
ee7b9a746e26d3d7ca43bc6c61e95f16d6ebf222 | e9c3e8f6ae05b0144237d01671f9a02404c43154 | /miltiple_leds_blink.py | 82014aa46d4c8b36a31d58522a17bd32d2b2ee2b | [] | no_license | vtt-info/micropython-stm32-examples | b836fe8a54119fcfdd95046d4edae043a156b695 | b6bbcb98a23b615914a015c7cbdedd550f5807ed | refs/heads/master | 2022-07-27T17:38:31.202661 | 2020-05-13T10:57:20 | 2020-05-13T10:57:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | # File: miltiple_leds_blink.py
# Date: 2020-05-12
import utime as time
from machine import Pin, Timer
from micropython import const
import pyb
LED_ON = const(0)
LED_OFF = const(1)
pin_names = ['PB7', 'PB8', 'PB9']
leds = []
timers = []
def timer_cb(t):
for i in range(len(leds)):
if t is timers[i]:
... | [
"noreply@github.com"
] | vtt-info.noreply@github.com |
0546778d3f2fa010ce9c2c93f6bc71b9f51e646d | 28dbe47aba287ed94ef7bba734203736bcc06249 | /.history/dmac_20200622205638.py | 77543d6f6b94646db2f428cbd9cca2864dcb43d5 | [] | no_license | ntung88/Trading_Algorithms | 242fd816b19df95e02e9fcd8c5c91c862d2ede40 | d96488b1754e3751f739d9c3f094a8f8dc54a0a9 | refs/heads/master | 2022-11-19T16:04:07.800344 | 2020-07-17T21:14:10 | 2020-07-17T21:14:10 | 276,239,640 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,030 | py | import yfinance as yf
import numpy as np
from scipy.stats import norm
import pandas as pd
from pandasgui import show
from scipy.optimize import minimize, LinearConstraint
def clean_data(data):
incomplete_idxs = False
for col in data.columns:
incomplete_idxs |= np.isnan(data[col])
return data[~incom... | [
"nathantung@Nathans-MacBook-Pro.local"
] | nathantung@Nathans-MacBook-Pro.local |
860f69580f038a5ee95e9bb3716a5de3706cd5e9 | 22b93005b05aa4cbfa6287c42e07244b9bf83be9 | /examples/evaluation/evaluate_on_binary_classifier.py | 401e318d6e536120fd59d628d4797c48f373b8c1 | [
"Apache-2.0"
] | permissive | dbczumar/mlflow | 63ede1f21966def17ded0da9c8e92a207b34b90d | e293a73b510c924cbca50b6337b6d6f9fd9f8f1b | refs/heads/master | 2023-08-31T23:40:55.475707 | 2023-07-15T04:22:18 | 2023-07-15T04:22:18 | 138,797,518 | 1 | 3 | Apache-2.0 | 2023-08-23T23:01:08 | 2018-06-26T21:51:19 | Python | UTF-8 | Python | false | false | 1,138 | py | import xgboost
import shap
import mlflow
from mlflow.models import infer_signature
from sklearn.model_selection import train_test_split
# Load the UCI Adult Dataset
X, y = shap.datasets.adult()
# Split the data into training and test sets
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.33, rando... | [
"noreply@github.com"
] | dbczumar.noreply@github.com |
86f7dca124eb48e1a49eadf8555a03606c97d20a | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_206/1234.py | 642dcec803933335fa83ea5efbed092fd01d0f03 | [] | 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,236 | py | import sys
def compute_velocity(destination, horses, case):
horses.sort(reverse=True)
worst_time = (destination - horses[0][0]) / horses[0][1] # time = space / velocity
for horse in horses:
todo = destination - horse[0]
time = todo / horse[1]
if time > worst_time:
worst... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
8fcc98ef1e17399e656b2982f4f3df049be9a227 | 4fd7e936dd38213a74f19abd760cc2b5f2c9be3f | /119-guild-incorrectly-importing-flags-from-other-modules/test.py | ad3831b26d04ee89bf89cde77a645ab19b3aed9c | [
"Apache-2.0"
] | permissive | guildai/issue-resolution | 8eae7c74ffd71f018e62d7374ac173671e81c0be | 7fc5f6dac9090c7a7838715e99cef2e8d9867729 | refs/heads/master | 2023-08-04T00:44:29.549711 | 2023-07-31T18:42:46 | 2023-07-31T18:43:44 | 200,896,019 | 0 | 3 | null | 2023-07-03T08:13:20 | 2019-08-06T17:29:37 | Python | UTF-8 | Python | false | false | 231 | py | import argparse
import submod # Unused but triggers the bug. See submod.py
p = argparse.ArgumentParser()
p.add_argument("--foo", default=123)
if __name__ == "__main__":
args = p.parse_args()
print("foo: %s" % args.foo)
| [
"g@rre.tt"
] | g@rre.tt |
0fbb084607b6a8f4c9a5e8d59df82a86c66aefe8 | 5b58a332c6bea0688d196aabedfc8ccc49bdd134 | /experiments/models_angles_10s/train.py | ed7fba7dc84e9805e65f5d67ac01dc274ec22035 | [] | no_license | ver228/classify_strains | 5420c2b3ea8e93b6ba46900c385f52f664f1cbd7 | dc61e7431410e25ab7c2da0acb6d090cc2ebaabb | refs/heads/master | 2021-09-20T08:52:14.505868 | 2018-08-07T12:26:22 | 2018-08-07T12:26:22 | 108,448,619 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,703 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 17 10:43:03 2017
@author: ajaver
"""
import os
import sys
import time
import torch
from torch import nn
#Be sure to use abspath linux does not give the path if one uses __file__
_BASEDIR = os.path.dirname(os.path.abspath(__file__))
src_dir = os.pa... | [
"ajaver@MRC-8791.local"
] | ajaver@MRC-8791.local |
df90a8b291201afd2ac6f43b22b4e233d8ae03ba | 185f30795be9a8fec6539fe17753fb909e258e4c | /ljy_16并发编程/ljy_06守护进程.py | 4bc8faf01e00183b143fd3a907f0a7d528374fa2 | [] | no_license | OPBrother/LearningPython | bd375430ce013abd9a4279f60e5f9457e965bdf7 | 9d264acb269a6191f7ec49abba25c98002f4fcd1 | refs/heads/main | 2023-03-31T06:47:43.071370 | 2021-04-12T07:09:16 | 2021-04-12T07:09:16 | 350,307,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | """
守护进程:父进程活着子进程活着,父进程死亡子进程死亡,该子进程就是守护进程
"""
from multiprocessing import Process
import time
def task(name):
print("%s总管正在活着" % name)
time.sleep(3)
print("%s总管正在死亡" % name)
if __name__ == '__main__':
p = Process(target=task, args=("egon", ))
p.daemon = True # 将p设置成守护进程,这句一定要放在start前面,否则报错
... | [
"2276720277@qq.com"
] | 2276720277@qq.com |
e3bf33f81a6bf24febb67c78fecdd9915a355ad3 | b6d475893a3d5a83d17c4219eaa2c154d1f77ec6 | /app/auth/views.py | af6e8155eb39d7642ebc5d16fafcbb90bec1f4ba | [
"MIT"
] | permissive | MungaiKeren/Pitch-It | 6de28bac0ef7392952bfe2e9df6ec40b2a4962a8 | ae0d85ea9437da4aacadc297e9e0a20ae955debf | refs/heads/master | 2020-07-25T10:09:52.369506 | 2019-10-02T06:46:20 | 2019-10-02T06:46:20 | 208,254,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | from flask import render_template,request,redirect, url_for, flash
from . import auth
from ..models import User
from .forms import RegistrationForm,LoginForm
from .. import db
from flask_login import login_user,logout_user,login_required
# from ..email import mail_message
@auth.route('/login',methods=['GET','POST'])
... | [
"wambukeren@gmail.com"
] | wambukeren@gmail.com |
7a7f0c99c26ddd39486ccc9e7cac0ca8934dce27 | e41651d8f9b5d260b800136672c70cb85c3b80ff | /Notification_System/temboo/Library/Facebook/Actions/General/Follows/ReadFollows.py | 91b6517f195a642d85b17b6b03768d222d7f5d93 | [] | no_license | shriswissfed/GPS-tracking-system | 43e667fe3d00aa8e65e86d50a4f776fcb06e8c5c | 1c5e90a483386bd2e5c5f48f7c5b306cd5f17965 | refs/heads/master | 2020-05-23T03:06:46.484473 | 2018-10-03T08:50:00 | 2018-10-03T08:50:00 | 55,578,217 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,265 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# ReadFollows
# Retrieves one or more follow actions.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this fi... | [
"shriswissfed@gmail.com"
] | shriswissfed@gmail.com |
3d592a84a2929f37cce6ce6273455084be52287f | f80ef3a3cf859b13e8af8433af549b6b1043bf6e | /pyobjc-framework-Cocoa/PyObjCTest/test_nsdebug.py | a28db7783a27caf49e4e9f84f4f5836d944f21a2 | [
"MIT"
] | permissive | ronaldoussoren/pyobjc | 29dc9ca0af838a56105a9ddd62fb38ec415f0b86 | 77b98382e52818690449111cd2e23cd469b53cf5 | refs/heads/master | 2023-09-01T05:15:21.814504 | 2023-06-13T20:00:17 | 2023-06-13T20:00:17 | 243,933,900 | 439 | 49 | null | 2023-06-25T02:49:07 | 2020-02-29T08:43:12 | Python | UTF-8 | Python | false | false | 1,110 | py | import Foundation
from PyObjCTools.TestSupport import TestCase
class TestNSDebug(TestCase):
def testFunctions(self):
self.assertResultIsBOOL(Foundation.NSIsFreedObject)
Foundation.NSRecordAllocationEvent
Foundation.NSFrameAddress
Foundation.NSReturnAddress
Foundation.NSCoun... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
82fe38e752875c45d8e077fbd4e2bd5dd55b4f04 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_middleweights.py | 56d926d6a9b798ce9d565d446c1f67605078abf6 | [
"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 | 280 | py |
from xai.brain.wordbase.nouns._middleweight import _MIDDLEWEIGHT
#calss header
class _MIDDLEWEIGHTS(_MIDDLEWEIGHT, ):
def __init__(self,):
_MIDDLEWEIGHT.__init__(self)
self.name = "MIDDLEWEIGHTS"
self.specie = 'nouns'
self.basic = "middleweight"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
2fba743f49ec0a3a286e945e1e913510556c9323 | d7f2007f2f9d87b314f59027d591226152a8aa8b | /pcaps/dnsreduce.py | 3451f328624af2ebbde081bac998cc094e0876a0 | [] | no_license | jwde/comp116-jdestories | ad824d44c54cabfe4546113dfac113338e329a1f | 8b0756f13e79c73b8da9e345788017dbda6a6a70 | refs/heads/master | 2021-01-18T13:20:36.410966 | 2015-12-15T22:26:49 | 2015-12-15T22:26:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | import fileinput
import re
lines = []
for line in fileinput.input():
lines.append(line)
for i in range(len(lines)):
if not i == 0:
match = re.search('.* (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}).*', lines[i])
if match:
ip = match.group(1)
print "\t".join([ip, lines[i - 1][18:]])
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
250f0548ad501d762e33ffc702fc874c85f97b85 | fdec477002fb0c5f013faf369d2a1e782172a1d6 | /COVID19/Vaccine/views.py | 4ac499c5b50e3f84443b7b97adaadf63287c01d4 | [] | no_license | aimiranarzhigitova/API_projects | 19fb416479e5a76dab760f38621e643e2db609cb | 8256cc1bc8dc939453c61a39215e89dbd96fecb1 | refs/heads/master | 2023-05-16T08:52:51.209458 | 2021-06-06T09:44:53 | 2021-06-06T09:44:53 | 374,322,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,644 | py | from collections import OrderedDict
from django.http import JsonResponse
from rest_framework.response import Response
from rest_framework.generics import ListAPIView, ListCreateAPIView, RetrieveUpdateDestroyAPIView
from rest_framework.filters import SearchFilter
from rest_framework.pagination import PageNumberPaginati... | [
"aymira.narzhigitova@gmail.com"
] | aymira.narzhigitova@gmail.com |
9e7b09a6a4c2d1b2618300fb8c999147a2987994 | 700f9f9e319ebd26d2557d64ea3827808dfad2f5 | /tests/fixtures/test_references_json/content_16_expected.py | 44ae2665689e10ebe81b405d34d6a9fb9c33332b | [
"MIT"
] | permissive | elifesciences/elife-tools | 1b44e660e916a82ef8ff64dd5a6ee5506e517359 | bc16e7dd5d6245077e39f8561b99c9acd510ddf7 | refs/heads/develop | 2023-03-06T08:37:47.424282 | 2023-02-20T20:40:49 | 2023-02-20T20:40:49 | 30,274,058 | 13 | 11 | MIT | 2023-02-20T20:40:50 | 2015-02-04T01:14:41 | Python | UTF-8 | Python | false | false | 2,083 | py | from collections import OrderedDict
expected = [
OrderedDict(
[
("type", "unknown"),
("id", u"bib11"),
("date", u"2006"),
(
"authors",
[
OrderedDict(
[
("t... | [
"gnott@starglobal.ca"
] | gnott@starglobal.ca |
9beb538b5dcf7efc3b834e8a9a8cf283d7bb8f56 | f3d7aad9fae3275f232cdfd6417f1c9c8a610cc1 | /titlesFotos.py | 33d0eeb575494eab64b8877cc711de14be6bc006 | [] | no_license | LKingJ23/Python_Flask_Headlines | 7b4a8c0f675e7e92cab29e99737ef487239a276e | 886ca997846dcc82ed31033468e35d9958b1061b | refs/heads/master | 2020-03-17T12:21:07.545431 | 2018-05-15T23:56:58 | 2018-05-15T23:56:58 | 133,584,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | from lxml import etree
import urllib2
ns={"Atom" : "http://www.w3.org/2005/Atom"}
parser=etree.XMLParser()
tree=etree.parse(urllib2.urlopen('https://api.flickr.com/services/feeds/photos_public.gne?tags=sevilla'),parser)
for node in tree.xpath('//Atom:entry/Atom:title', namespaces=ns) :
print node.text
| [
"lkingj23@gmail.com"
] | lkingj23@gmail.com |
87ff49ec6b62039abc4b66959c36345ef52853ab | 19bc4d44dc7303e23a6949b1bc7b98b65bcf80e9 | /python/Hypothesis_Testing_with_Python/Experimental_Design/Sample_Size_Determination_with_Simulation/introduction.py | c3366c4c4a904b84707b4f9e2198df81eb5a06b7 | [] | no_license | henry1034/Challenge-Project-of-CodeCademy | c66190ff3a318e22f263fcf78344632773065c24 | 61ebe84696cec120393acca62b4fce4bdea0fb30 | refs/heads/master | 2023-07-04T01:04:16.978374 | 2021-07-29T17:27:56 | 2021-07-29T17:27:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | import pandas as pd
from scipy.stats import chi2_contingency
data = pd.read_csv("ab_data.csv")
print(data.head())
# calculate contingency table here
ab_contingency = pd.crosstab(data.Web_Version, data.Purchased)
print(ab_contingency)
# run your chi square test here
pval = chi2_contingency(ab_contingency)[1]
print(pv... | [
"noreply@github.com"
] | henry1034.noreply@github.com |
d4f4358369b0e45816e7faef51d89207e706197f | 6ed86bcacca9d065251171a0b53498d630a3b340 | /src/edrn/labcas/ui/views/_metadata.py | d2541bd601b050ff06a6233d1794ae1919ebb079 | [] | no_license | EDRN/edrn.labcas.ui | 595f56b60a72632d1b816d2414a6887f0099e70a | 54a5c947d1a93d73c13b33517e3f1fd0acaec3b5 | refs/heads/master | 2021-01-24T07:12:40.324545 | 2020-03-12T19:49:45 | 2020-03-12T19:49:45 | 38,981,139 | 1 | 0 | null | 2018-02-22T20:18:12 | 2015-07-12T22:55:12 | Python | UTF-8 | Python | false | false | 4,148 | py | # encoding: utf-8
from edrn.labcas.ui import PACKAGE_NAME
from edrn.labcas.ui.interfaces import IBackend
from edrn.labcas.ui.utils import (
LabCASWorkflow, re_python_rfc3986_URI_reference, LabCASCollection, createSchema, addIdentifiersForStringFields,
ID_NUMBER_HUNTER
)
from pyramid.httpexceptions import HTTPF... | [
"kelly@seankelly.biz"
] | kelly@seankelly.biz |
41d226f467c29b6749b5ff10392a729eccb01326 | 015efe8cf8e2740d76a8d0b378f1e75de182103a | /test/unitTestSuite.py | c3c6bfc137471219de330689fae11f42a4c88238 | [
"MIT"
] | permissive | Samakwa/PyGeodesy | d6dbe7f825ee1858cd58e677aae37fd6c60570ee | 4a5b6ac584c12bafc243d08dfc18d872707126d0 | refs/heads/master | 2020-03-28T04:11:51.548133 | 2018-09-05T17:35:01 | 2018-09-05T17:35:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,680 | py |
# -*- coding: utf-8 -*-
# Module to run all PyGeodesy tests as python setup.py test
from glob import glob
from os.path import abspath, dirname, join
import sys
import unittest
_test_dir = dirname(abspath(__file__))
# extend sys.path to include the ../.. directory
if _test_dir not in sys.path: # Python 3+ ModuleNo... | [
"mrJean1@Gmail.com"
] | mrJean1@Gmail.com |
bb4072ebe6c3e4a99fb1a57b8d0f722c97f38521 | 3e276ce46afcdaf365fd62b45ceba19327535f14 | /src/libs/github/request.py | 183377038e90b8e73a10a612875176a72e106be5 | [
"MIT"
] | permissive | 17Y9E81/QQ-GitHub-Bot | 1ca28ccc4b1a2bbbbb24419271389599dcd8ceb4 | 35c20d28aafaedc1813c6213ede9f2f51e56d5a2 | refs/heads/master | 2023-07-13T12:26:33.201661 | 2021-08-25T09:17:20 | 2021-08-25T09:17:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,030 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@Author : yanyongyu
@Date : 2021-03-09 17:34:53
@LastEditors : yanyongyu
@LastEditTime : 2021-06-15 22:14:45
@Description : None
@GitHub : https://github.com/yanyongyu
"""
__author__ = "yanyongyu"
import base64
import urllib.parse
fro... | [
"yanyongyu_1@126.com"
] | yanyongyu_1@126.com |
2759d8c95ba6f43470bfd97c99a7dbf69b9fdb76 | 077de1b3c5b1e5531e96f999be95a63c02a0208a | /yabgp/config.py | 6db8b9fa05bb91bc46dd9943570b1090f96d741a | [
"Apache-2.0"
] | permissive | unixian97/yabgp | 5171f3dfa9070fbf91bd2a34fad6d4f32b0b9534 | 1b6752376a43f3c2958ead0afbf3f33ec311ddbd | refs/heads/master | 2021-01-24T18:12:31.133442 | 2017-02-10T08:10:14 | 2017-02-10T08:10:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,436 | py | # Copyright 2015 Cisco Systems, Inc.
# 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 requi... | [
"xiaoquwl@gmail.com"
] | xiaoquwl@gmail.com |
9debf401bbd7759e2274873f21dbb4f2e291d155 | 892a20e473b51538a1297842c05e3dddc13d55d7 | /indigo_pl/toc.py | 5c61df032672fce31ffa1e95f6bbdf97b5ac11ae | [] | no_license | epforgpl/pl-indigo | 1eaa5662ed287610bc80bec8c3b363a036ea6de7 | 2722f65c27572c935b838979defcd1b282499419 | refs/heads/master | 2021-06-27T17:06:10.208890 | 2019-05-02T15:32:31 | 2019-05-02T15:32:31 | 143,410,269 | 1 | 1 | null | 2019-05-02T15:32:33 | 2018-08-03T09:52:39 | Python | UTF-8 | Python | false | false | 860 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from indigo.analysis.toc.base import TOCBuilderBase
from indigo.plugins import plugins
@plugins.register('toc')
class TOCBuilderPL(TOCBuilderBase):
locale = ('pl', 'pol', None)
toc_elements = ["article", "chapter", "conclusions", "coverpage", "... | [
"greg@kempe.net"
] | greg@kempe.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.