blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7c851f6cf3c45e4effa984c2a42fc8551f5c800e | a40950330ea44c2721f35aeeab8f3a0a11846b68 | /INTERACTIONS_V1/INTERACTION2/AppSBC/UI/UI.py | d3fdd88cbfb7142e29190f9222894fe2a9977d87 | [] | no_license | huang443765159/kai | 7726bcad4e204629edb453aeabcc97242af7132b | 0d66ae4da5a6973e24e1e512fd0df32335e710c5 | refs/heads/master | 2023-03-06T23:13:59.600011 | 2023-03-04T06:14:12 | 2023-03-04T06:14:12 | 233,500,005 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 35,377 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'UI.ui'
#
# Created by: PyQt5 UI code generator 5.15.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, Qt... | [
"[email protected]"
] | |
e3c0dd3d0f3fb8f62c81edfefc318ee91b956d48 | 50a601c7a3ded91d7e7a989f9334594a2ea2e714 | /eComSite/eComSite/settings.py | cbcde1e78b8d403c00352f71a613dd7581c4c452 | [] | no_license | YitayalT/django-projects | 4f809347bdb5439a753a1e87d2da3664cd82296a | 987b0bfaf2d200a067304af257ffc49f4210690f | refs/heads/main | 2023-07-06T20:08:13.854384 | 2021-08-10T12:11:11 | 2021-08-10T12:11:11 | 376,379,620 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,257 | py | """
Django settings for eComSite project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathli... | [
"[email protected]"
] | |
3f06472b82640d70daa49eb6ce3f5df05671bb86 | afde7c617c377412d838cc8795fd6243ef5b329a | /djangoapp/src/djangoapp/settings.py | 913aa81a1216c482685cef63a3d853b1f5ce4c45 | [] | no_license | YangYijian/CS411_project | 1391a12aa83c356ec38b23189bc35219a6f07c8c | 04451fccfd70d18796db97ea43738f343a65fe6b | refs/heads/master | 2022-11-25T11:56:56.946681 | 2020-07-24T03:36:17 | 2020-07-24T03:36:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,289 | py | """
Django settings for djangoapp project.
Generated by 'django-admin startproject' using Django 2.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
... | [
"[email protected]"
] | |
054064211e3ee583ffcdc3963c1eace5582ed820 | addb660d485b60c793187ce7e6da7d095692956a | /main.py | d6e6abd3f2164a5ad1d801317de91f7a9d110ac0 | [] | no_license | RowanAI/JetsonPythonCamera | c29fc3746d7a089e3695e2f57bb63f4ae80e5a5f | 4174965914f0ba5938fe24db48b554ee484a9d41 | refs/heads/master | 2020-04-17T18:53:36.781950 | 2019-01-21T17:10:53 | 2019-01-21T17:10:53 | 166,845,571 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,121 | py | #!/usr/bin/env python
import sys
import argparse
import cv2
import numpy as np
import camera
def parse_cli_args():
parser = argparse.ArgumentParser()
parser.add_argument("--video_device", dest="video_device",
help="Video device # of USB webcam (/dev/video?) [-1 for Jetson]",
... | [
"[email protected]"
] | |
78b580625bf05f9a4e3f617d22606d8993dc1471 | 07c27cbba56ffb1f2e391d2aaceefba039f68667 | /bin/svg.py | 0f7e900113122f37f95eb346261053c090c4287c | [] | no_license | rheiland/tool4nanobio | beb3914ad23638bb856454832c83ab3c6535ae86 | e872ae02e7df784bcde0481b30c6d97a0ae3a517 | refs/heads/master | 2020-04-25T17:11:52.995649 | 2020-01-16T11:32:47 | 2020-01-16T11:32:47 | 172,938,698 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 13,242 | py | # SVG (Cell Plot) Tab
import os
from ipywidgets import Layout, Label, Text, Checkbox, Button, HBox, VBox, Box, \
FloatText, BoundedIntText, BoundedFloatText, HTMLMath, Dropdown, interactive, Output
from collections import deque
import xml.etree.ElementTree as ET
import matplotlib.pyplot as plt
import matplotlib.col... | [
"[email protected]"
] | |
6b59d53ff5dca12c2cf49ecda84be12a1c60a12c | a3644ed207867df4d78a04af39ac3e26f86f9012 | /ibvp/language/symbolic/util.py | cf587104d319938fea973aba507443ccc906a896 | [
"MIT"
] | permissive | ibvp/ibvp | 006887be85a37ac4da51664d5fec9244c446cacd | c758b150cbd822bd17444499bea29c53b0606327 | refs/heads/master | 2022-05-07T02:17:46.232332 | 2022-03-20T19:34:13 | 2022-03-20T19:34:13 | 21,990,116 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,418 | py | from __future__ import division
from __future__ import absolute_import
from six.moves import range
__copyright__ = "Copyright (C) 2010-2013 Andreas Kloeckner"
__license__ = """
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Softwa... | [
"[email protected]"
] | |
99f3dea40c103f391f5bbedf2c955812f133372f | 51253a1765ed005a8804b7bf1b6372429f94a020 | /calculate.py | 293d04cdf75a8d63db1a5b87dc0823716b7c1751 | [] | no_license | xly135846/MEGC2021 | b766d3ae295c238c305ae3f7fa0d8056f1ae9ba0 | 83bf61440aca980fb11e789dc3dfd47be78db81d | refs/heads/main | 2023-06-26T23:15:14.433211 | 2021-07-12T14:10:36 | 2021-07-12T14:10:36 | 384,604,569 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,000 | py | import numpy as np
from scipy import signal
from utils.utils import *
def cal_TP(left_count_1, label):
result = []
for inter_2 in label:
temp = 0
for inter_1 in left_count_1:
if cal_IOU(inter_1, inter_2)>=0.5:
temp += 1
result.append(temp)
r... | [
"[email protected]"
] | |
06683c64c9c082713d0b286d60bf3d006bef3569 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/NicolasHug_Surprise/Surprise-master/examples/grid_search_usage.py | f915af8c2eff0478eb4c7a991024a2a4e4aa1ff3 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 1,150 | py | """
This module describes how to manually train and test an algorithm without using
the evaluate() function.
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from surprise import GridSearch
from surprise import SVD
from surprise import Dataset
param_gri... | [
"[email protected]"
] | |
b4fd30ba3e9eec7528a1c2334b4650b1dacbdb00 | 6bd93b73213dd97e6e9529db6d7eecdb0504697d | /GoDigital_Python_Codes/command_line3.py | c24de0ae40d597420fe8c15ab992d2fd0ae6e462 | [] | no_license | patiltushar9820/Python_Code | 02e9558e63068823008645892e944894c1a31e62 | b8f1abc448ba738cab6763000f57ba3e9fc2a376 | refs/heads/main | 2023-08-16T13:35:05.532766 | 2021-09-24T10:57:49 | 2021-09-24T10:57:49 | 407,141,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | #
def f(c):
return c
#>>> c=[1,2,3]
#>>> e=f(c)
#>>> e is c
#output - True | [
"[email protected]"
] | |
c8401e8e3188c1d22ddcee1a2d85035f8bdfab43 | de0ea898d18e4faf383d230cf2542335bfa166d5 | /library/views.py | 877c529b48ed090292c6dd4c1e2631133c9a939e | [] | no_license | msadour/book_API | 86121341e66249b51835e5e1c842c8fdde26ba6c | 81477c242647c95897a05ad892bc3e11542defa7 | refs/heads/master | 2022-12-09T16:33:12.027427 | 2020-01-22T13:25:45 | 2020-01-22T13:25:45 | 231,387,598 | 0 | 0 | null | 2022-12-07T23:21:19 | 2020-01-02T13:28:36 | HTML | UTF-8 | Python | false | false | 989 | py | # -*- coding: utf-8 -*-
"""
Views.
"""
from __future__ import unicode_literals
from rest_framework import viewsets
from rest_framework import permissions
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.permissions import IsAuthenticated
from .permissions imp... | [
"[email protected]"
] | |
b92633e12fb23ac3c35e53dc6e02df1e2b10293d | 65c867757636a41827724853f32ad64103e07a6a | /lpthw/ex44e.py | bd1d22d80d9ac14d59a8d6cc741304dab93fb509 | [] | no_license | joshmarte/GH_Projects | 25799880bf6f7c637045623704244ccd4c158705 | 04977b8376bec54440da58473259dbe66cd70c3c | refs/heads/master | 2021-05-17T18:46:55.533734 | 2020-03-29T00:47:48 | 2020-03-29T00:47:48 | 250,925,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | # Composition
class Other(object):
def override(self):
print("OTHER override()")
def implicit(self):
print("OTHER implicit()")
def altered(self):
print("OTHER altered()")
class Child(object):
def __init__(self):
self.other = Other()
def implicit(self):
... | [
"[email protected]"
] | |
0359e9366c572e840e6a924176a959c6c328847d | e3c8f786d09e311d6ea1cab50edde040bf1ea988 | /Incident-Response/Tools/grr/grr/server/grr_response_server/gui/selenium_tests/report_test.py | 1175096622c718b20aa9b0c66c5f1c953997a6f7 | [
"Apache-2.0",
"MIT"
] | permissive | foss2cyber/Incident-Playbook | d1add8aec6e28a19e515754c6ce2e524d67f368e | a379a134c0c5af14df4ed2afa066c1626506b754 | refs/heads/main | 2023-06-07T09:16:27.876561 | 2021-07-07T03:48:54 | 2021-07-07T03:48:54 | 384,988,036 | 1 | 0 | MIT | 2021-07-11T15:45:31 | 2021-07-11T15:45:31 | null | UTF-8 | Python | false | false | 4,588 | py | #!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from absl import app
from selenium.webdriver.common import keys
from grr_response_core.lib import rdfvalue
from grr_response_server import data_store
from grr_response_server.gui import... | [
"[email protected]"
] | |
5c6f9daae5340369857d3b1d744fe2d8252f0966 | 352aed8d9ea6b95122aaad4c738580c0d3f197af | /algorithm/recursion/TreeNode.py | b0db0e55b3418a7de408beab9fe28915b9f05dc2 | [] | no_license | zexiangzhang/algorithmAndDataStructure | 39c1fa000b8daff2076069a6316d34b699a5187f | c90b7a090d2da63cb45053d7792b44ecb03a063f | refs/heads/master | 2021-06-15T20:15:18.815648 | 2021-03-08T04:09:26 | 2021-03-08T04:09:26 | 164,974,065 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
def print_tree(tree: TreeNode):
if not tree:
return []
result_list = []
cur_layer = [tree]
count = 0
while cur_layer:
cur_list = []
... | [
"[email protected]"
] | |
663ab0f3c355a22523a5bd0aca9f2b4efb5dc25c | 60d72b2bd72841c0530492d5ae8f98f83629b9ab | /gestaoprocessos/migrations/0001_initial.py | 66baa355b0fee9894aab1369d200ca9f35a3155d | [] | no_license | RobertaHauser/intranet-iso9001 | e782be2a9e2bd9736fda03950d711a2400b3185b | 2396e3a20a27f91f490518664328396484b033c5 | refs/heads/master | 2023-08-20T08:46:36.588201 | 2021-10-21T00:42:18 | 2021-10-21T00:42:18 | 415,255,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | # Generated by Django 3.2.8 on 2021-10-19 15:26
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='tab_sgq_001',
fields=[
('id', models.BigAut... | [
"[email protected]"
] | |
73f941ce41d59714ed7a1e39befe32cf6890c32e | 2bd18a28000b13fd4e22fbc17319d777947c057c | /tools/fetch_revealjs.py | 05ef8be5acf092cef0c69e9210b802ede67b6417 | [
"MIT"
] | permissive | fabianhauser/sphinx-revealjs | ead224501addc3e727c07d578c0e1d9daf0d7f0f | 30ca019ce33352d64729689b2607b2127423f45f | refs/heads/master | 2020-12-28T08:48:22.429885 | 2019-12-22T08:14:09 | 2019-12-22T08:14:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,588 | py | #!/use/bin/env python
"""Fetch and sync reveal.js resources
"""
import shutil
import sys
from pathlib import Path
from urllib.request import urlretrieve
import tarfile
def validate_dir_state(target: Path) -> bool:
expected = [
'sphinx_revealjs',
]
actually = all([(target / e).exists() for e in exp... | [
"[email protected]"
] | |
2bc16a886262ae8cd45018ab9ec20e829eb79aed | 99652a257737e98e40e973a0ea63c797470f5e67 | /network/edit_network.py | 4dda84f679b2d96fd6b634d877c2e76dd93e52ce | [
"MIT"
] | permissive | jrg1381/sm_asr_console | 56180e6c4620e2f3969128127fc05045cf8e6099 | 47c4090075deaaa7f58e9a092423a58bc7b0a30f | refs/heads/master | 2022-12-24T17:24:28.415196 | 2019-07-25T16:52:42 | 2019-07-25T16:52:42 | 153,685,493 | 2 | 0 | MIT | 2021-06-01T22:51:44 | 2018-10-18T20:46:40 | Python | UTF-8 | Python | false | false | 2,700 | py | # encoding: utf-8
import npyscreen
import curses
from error_handler import error_handler
from swagger_client import ManagementApi
from swagger_client.models import ManagementIpAddressInfo
class NetworkSubMenuList(npyscreen.MultiLineAction):
def __init__(self, *args, **keywords):
super(NetworkSubMenuList, ... | [
"[email protected]"
] | |
bc42ef0c5dad5b26427a4460ec6e632112b7a11b | d11bfe38cf1e775ae39ad51ef0d8c3fbf246eea5 | /examples/data_collector.py | c2dd54f76c55a09f8bc669869a4563d55da11def | [
"MIT"
] | permissive | Bit4QU4/pyomyo | 733aff9c8de7de79f702a55f80a6d37c6f3ad09c | f5407888819324029a024451e46a80a5ead64a0a | refs/heads/main | 2023-08-24T04:23:22.757705 | 2021-10-05T14:07:44 | 2021-10-05T14:07:44 | 415,192,537 | 0 | 0 | MIT | 2021-10-09T03:35:26 | 2021-10-09T03:35:25 | null | UTF-8 | Python | false | false | 1,475 | py | # Simplistic data recording
import time
import multiprocessing
import numpy as np
import pandas as pd
from pyomyo import Myo, emg_mode
def data_worker(mode=emg_mode.FILTERED, seconds=15, filepath="data_gather.csv"):
collect = True
# ------------ Myo Setup ---------------
m = Myo(mode=mode)
m.connect()
myo_data... | [
"[email protected]"
] | |
b58f1c2677efc0f912848a4f36547d99e1449cb4 | 680929c3bd7ccd8169f412dcd80dea9f4b10f3ed | /authentication/scripts/query.py | 522408c9f1cdc0f8b03d77d6ac95afdc0dd39e7f | [] | no_license | vivekverma080698/University-Management-System | 8e710f692b99028f46b3412743d24998635e2ce8 | 7e31ff5371b4376d0178e2d6163dbf9ad9a1720b | refs/heads/master | 2020-05-17T04:31:46.596919 | 2019-04-26T03:51:45 | 2019-04-26T03:51:45 | 181,276,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | import os
import django
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'EMSystem.settings')
django.setup()
from authentication.models import AuthTable, Department, Employee, Faculty, Director, Hod, Registrar, Ccfs, Staff, Post, AssistRegistrar
def receive(request):
print(request.POST['a'])
receive() | [
"[email protected]"
] | |
d699aa415671a09c0d3cb6f790fbd8d199a1e504 | 7b6377050fba4d30f00e9fb5d56dfacb22d388e1 | /numericalFunctions/ptwXY/Python/Test/UnitTesting/convolution/convolution.py | 23e1f84ea78f302c6955c15e21ec6115a7eb5cc4 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | LLNL/fudge | 0a4fe8e3a68b66d58e42d1f4d209ea3f713c6370 | 6ba80855ae47cb32c37f635d065b228fadb03412 | refs/heads/master | 2023-08-16T21:05:31.111098 | 2023-08-01T22:09:32 | 2023-08-01T22:09:32 | 203,678,373 | 21 | 4 | NOASSERTION | 2023-06-28T20:51:02 | 2019-08-21T23:22:20 | Python | UTF-8 | Python | false | false | 3,194 | py | # <<BEGIN-copyright>>
# Copyright 2022, Lawrence Livermore National Security, LLC.
# See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: BSD-3-Clause
# <<END-copyright>>
import os
from numericalFunctions import pointwiseXY_C
if( 'CHECKOPTIONS' in os.environ ) :
options = os.environ['CHECK... | [
"[email protected]"
] | |
5fce91bfbfe482e6893a7b74cbdac1ae14de5a2f | b68a11a2f0e978bce191999b9c66192abef2d47a | /src/optimize_anchor.py | 10049d5279ecbc8b7043e0c78034a973583ebb22 | [
"MIT"
] | permissive | cppxaxa/chainer-object-detection | e860349daabab29b32c3f894d2263523cb0bb1b9 | c662a9df05c969123e7eb687b4bda2ae28671b2b | refs/heads/master | 2021-06-24T21:14:27.179037 | 2017-09-06T03:43:10 | 2017-09-06T03:43:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,877 | py | import argparse
import json
import numpy as np
import os
import six
def parse_args():
parser = argparse.ArgumentParser('Optimize anchor boxes')
parser.add_argument('dataset_dir', type=str, help='Dataset directory path')
parser.add_argument('box_num', type=int, help='Number of boxes')
parser.add_argume... | [
"[email protected]"
] | |
e854ed4a3386c854b4fb23ef278a885098c04eaf | 2b49bf0b7b9a62eb665cb0da9a86d7c65433f8a2 | /Additional/206.Reverse Linked List.py | 06f7ef7c083a993eeb7cd52a2f6ada4422dd50d7 | [] | no_license | samuel871211/My-python-code | f7472fff671437d6181b91d36a77e24eb04678c6 | 3120cfb6ccaeade969dd0ea0ff335b4a5789ba74 | refs/heads/master | 2023-03-04T13:48:37.658549 | 2023-02-28T06:16:52 | 2023-02-28T06:16:52 | 210,172,178 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def reverseList(self, head: ListNode) -> ListNode:
a = []
while head != None:
a.append(head.val)
head = head.next
if len(a) == 0:
return None
... | [
"[email protected]"
] | |
4e6aad964d91dfc7d6221094475cf15efc7717ec | bdaf0a03348208b79b0986b00acf731293b7f297 | /SourceCodes/createPklCancer.py | d4791c64298f4681c758973baee453a7a280986f | [] | no_license | mutual-ai/Empirical-study-of-Supervised-Learning-Algorithms | 2855afa8c4820422a7018703509b21a4e90777f8 | b5f0e41940dcc68befaa3d4276b1c5ff8aa3a599 | refs/heads/master | 2020-05-27T05:53:23.970946 | 2017-02-08T23:13:45 | 2017-02-08T23:13:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | from numpy import genfromtxt
import gzip, six.moves.cPickle as cPickle
from glob import glob
import numpy as np
import pandas as pd
import csv
import math
#Data = dir_to_dataset("C:\Users\Divya Chopra\Downloads\breast-cancer-wisconsin.csv")
# Data and labels are read
Data = np.genfromtxt('C:\h\imagesFile.csv', delimi... | [
"[email protected]"
] | |
05a82e0894bf03670de9e8fdcc9e6f9ac9414455 | 322935e44777b28dc1153e2fb94f3b23b7669a83 | /train_values.py | 0f94cebd36a615f5e4432cc368cd028639a142bc | [
"Apache-2.0"
] | permissive | Neuraxio/seq2seq-signal-prediction | 96ac2711aac2a2d1273b80a3b0589697ef0c2faa | 740c4429d9f578a2d03b29b4ac14b6e2cc2015bc | refs/heads/master | 2021-07-15T22:12:38.492832 | 2020-05-22T18:47:20 | 2020-05-22T18:47:20 | 136,780,255 | 1 | 0 | null | 2018-06-10T04:55:01 | 2018-06-10T04:55:01 | null | UTF-8 | Python | false | false | 535 | py | def plot_metrics(metric_name, train_values, metric_validation, exercice_number):
print('last mse train: {}'.format(train_values[-1]))
print('best mse train: {}'.format(min(mse_train)))
mse_validation = 0
print('last mse validation: {}'.format(mse_validation[-1]))
print('best mse validation: {}'.for... | [
"[email protected]"
] | |
38742a88ba0c5c08377e5077d759c8ccdcd8e974 | 70de99ce6c74255df7126143e18be3ebf542a215 | /src/pubmed.py | 5c981b27f1437ae096dbd69d3f146070b52cfaee | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | NETESOLUTIONS/bibliometrics | 1c9c1675a165b4facabe70c8b74d0668e43911c0 | 7bf2ef874c1573ea764cdb1a4838a66ddd083d9b | refs/heads/master | 2021-01-11T05:54:03.427396 | 2016-05-09T00:05:44 | 2016-05-09T00:05:44 | 54,979,564 | 0 | 0 | null | 2016-05-09T00:05:44 | 2016-03-29T13:49:05 | Python | UTF-8 | Python | false | false | 9,965 | py | from io import BytesIO
import re
from itertools import count
import requests
import requests_cache
import lxml.etree
import lxml.html
from util import has_keys, xpath_str, xpath_strs
def _split_range(n, m):
'''Given a range [0,m], return
an iterator of ranges ([0,n], [n,2n], [2n, 3n], ..., [in, m]).
Example: _sp... | [
"[email protected]"
] | |
f3c90002c2a47d94fde1e5a1d4ba57adb52a7550 | 8e1e4382a7a013d6629de59c4d49746028c42e08 | /london/data/London/extras/make.py | d9d870ba727d1904a5a4b2e7ee043a74d969816f | [] | no_license | smckane/Pubtran-London | 56c48d30b1fcb170c77aeec0fc7d7df7f95a6ec9 | a2f7011cbfb19a071e02e52f80362622b30d199b | refs/heads/master | 2020-04-10T03:28:28.759720 | 2012-01-30T16:04:09 | 2012-01-30T16:04:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,254 | py | #!/usr/bin/env python
# coding=UTF-8
def findStation(station, stops):
if station in stops: return station
if station + ' Underground Station' in stops: return station + ' Underground Station'
if station.replace(' and ', ' & ') in stops: return station.replace(' and ', ' & ')
if station + ' (Central Line)' in stops... | [
"[email protected]"
] | |
1c7c9c9ea04789b3d3a412a11d1d58d9df296e09 | b757f90af4e022e470e2c85461866eb9e992c7d9 | /shared_utils/load_json_data.py | 496935666a7523e54e15631d931ac0f514d9ddf1 | [] | no_license | mermi/events-pipeline | a985ddd6c857dece97a84997fc937f031cd2d83b | 737d34db1fa1188695cb37ddc22472a0109844a8 | refs/heads/main | 2023-05-01T23:03:46.027667 | 2021-05-26T20:10:04 | 2021-05-26T20:10:04 | 370,645,906 | 1 | 0 | null | 2021-05-25T12:59:44 | 2021-05-25T10:00:41 | Shell | UTF-8 | Python | false | false | 721 | py | import logging
from sqlalchemy import create_engine
import json
from pandas.io.json import json_normalize
from shared_utils.dag_utils.utils import get_query as get_query
logger = logging.getLogger(f'logging_steps')
def create_table(conn, create_query):
cur=conn.cursor()
cur.execute(create_query)
conn.c... | [
"[email protected]"
] | |
661d6ab3aa7204d4ba70040676e93983eadf0b35 | 60ce2ef142dab58a092fc928136c6609127b2f5d | /async_instagram_private_api/core/repository.py | cd6ec09d157e2f80815b8c9360d353e88f09ee57 | [] | no_license | daymos92/async_instagram_private_api | be1270f7e89ec735411234c9e190c162fc160ce1 | 080b31cc4d74727df6df34865edbb371d31feb67 | refs/heads/master | 2022-12-10T23:01:31.169650 | 2020-09-10T18:18:54 | 2020-09-10T18:18:54 | 290,125,150 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from abc import ABC
class Repository(ABC):
def __init__(self, client):
self.client = client
| [
"[email protected]"
] | |
904ddc6a110c928eecd9ed053afa3bf80f4931a3 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/25/usersdata/98/11884/submittedfiles/av1_3.py | e38e0f0784c64456ff7dcadb762460593411b8a4 | [] | 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 | 274 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
a=int(input('Digite o valor de a: '))
b=int(input('Digite o valor de b: '))
i=1
cont=0
c=0
while True:
if a%i==0 and b%i==0:
cont=cont+1
c=i
i=i+1
if i==a or i==b:
break | [
"[email protected]"
] | |
ed0e092db1e23abf296cbfe26bfe5ec704a4c85b | 220a814958d0d9ffaee98f6247d5c1a39b91e28a | /capstone/settings.py | db270d27a4c5bb3e632de58d2b8b108bc48d4bf6 | [] | no_license | MalteHildebrandt/MyRepository | f1c9e579b37a2c7f48d1344f282b9957d6088686 | 91bc1e8191db9adc470fcb0f2cb4a13596c1444f | refs/heads/master | 2021-09-28T19:37:43.416941 | 2021-04-18T16:07:00 | 2021-04-18T16:07:00 | 235,188,964 | 0 | 0 | null | 2021-09-22T19:52:32 | 2020-01-20T20:06:26 | Python | UTF-8 | Python | false | false | 3,652 | py | """
Django settings for workforce project.
Generated by 'django-admin startproject' using Django 3.1.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathl... | [
"[email protected]"
] | |
111a8f8f01d47e8e86aaac97e070c4623db3f485 | ada61d2d0b227a0d428c237ebc6df87137a5f8b3 | /third_party/skia/common/third_party/externals/boto/tests/unit/ec2/test_connection.py | c4dfa7a22b6af09616ac6214ff0e3d365869e53d | [
"BSD-3-Clause",
"MIT"
] | permissive | lineCode/libui-1 | 240b22f8ed542e6dc3d623b465d1170b8cb03b31 | 53e01ad28601aa0fb7b050a39185b46de0bd99fa | refs/heads/master | 2021-01-24T16:48:40.299172 | 2015-11-19T01:46:28 | 2015-11-19T01:46:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,389 | py | #!/usr/bin/env python
import httplib
from datetime import datetime, timedelta
from mock import MagicMock, Mock
from tests.unit import unittest
from tests.unit import AWSMockServiceTestCase
import boto.ec2
from boto.regioninfo import RegionInfo
from boto.ec2.blockdevicemapping import BlockDeviceType, BlockDeviceMappi... | [
"[email protected]"
] | |
c000191d786acda270210cf979a5fac23c9b5af0 | 479057ecbf4ea2885ba10175887dec025458d7e8 | /dvc/executor.py | e2becc48d330399a77f96077b8d2fab50ec45233 | [
"Apache-2.0"
] | permissive | benzei/dvc | e863859ffdad781c92a8705bdade6a62de01fc98 | fa12ef632a74e6e6b92edbd582319e03ca937738 | refs/heads/master | 2021-06-24T23:46:43.807485 | 2017-09-05T16:44:33 | 2017-09-05T16:44:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py | import subprocess
from dvc.exceptions import DvcException
class ExecutorError(DvcException):
def __init__(self, msg):
DvcException.__init__(self, msg)
class Executor:
@staticmethod
def exec_cmd(cmd, stdout_file=None, stderr_file=None, cwd=None, shell=False):
stdout, stdout_fd = Executor... | [
"[email protected]"
] | |
d3d070c644f324b81f6c492f4cc9cd6582068417 | 5ac7bdec90c21a3da8fd5a1a684a80d202c30e8d | /openstack_dashboard/nikola_auth/views.py | 0f546a5d895bbcf30071ebe64326aa76c07ed578 | [
"Apache-2.0"
] | permissive | AlexOugh/horizon | 185aba38551ee15732a12f9690203d5383e03f70 | bda2a59aad7637f45211db37235ab18323e20b25 | refs/heads/master | 2021-01-16T18:45:36.289172 | 2015-02-10T23:58:16 | 2015-02-10T23:58:16 | 30,272,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,771 | py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | [
"[email protected]"
] | |
23977d7878d871d7821160290ecdd4b6d6fd5e51 | 28c3a979f155bedabf72bd9e7284361a9bbdb762 | /flaskr/flaskr/flaskr.py | 8cba07b80b840050834787537326b7217e779c52 | [] | no_license | beinnor/misc-python | 33b194f6199bbef533a75de71ae5c8a6d9343e14 | 6a4409b8a20e55d6b44f5480f342cd2e8bfeb6a1 | refs/heads/master | 2021-06-04T20:58:46.955449 | 2018-04-14T23:46:28 | 2018-04-14T23:46:28 | 129,562,703 | 0 | 0 | null | 2021-04-20T17:22:54 | 2018-04-14T23:46:01 | Python | UTF-8 | Python | false | false | 2,660 | py | # all the imports
import os
import sqlite3
from flask import Flask, request, session, g, redirect, url_for, abort, \
render_template, flash
app = Flask(__name__) # create the application instance :)
app.config.from_object(__name__) # load config from this file, flaskr.py
# load default config and override-config ... | [
"[email protected]"
] | |
ff975e89943e61a080b93fd3e0356b80d1223b49 | 12258001571bd504223fbf4587870960fa93a46d | /mud/Spirit-0.4.7/spirit/__init__.py | a39206389c749ccbde799c5f371bf90e6be804da | [
"MIT"
] | permissive | Nik0las1984/mud-obj | 0bd71e71855a9b0f0d3244dec2c877bd212cdbd2 | 5d74280724ff6c6ac1b2d3a7c86b382e512ecf4d | refs/heads/master | 2023-01-07T04:12:33.472377 | 2019-10-11T09:10:14 | 2019-10-11T09:10:14 | 69,223,190 | 2 | 0 | null | 2022-12-26T20:15:20 | 2016-09-26T07:11:49 | Python | UTF-8 | Python | false | false | 88 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
__version__ = '0.4.7'
| [
"[email protected]"
] | |
265bacf4d9b77ac8cf00788613c415a06b5d30a5 | a8f6397d9eafbde47f0f98e10f0bdc1388c5267a | /apps/users/__init__.py | 6d50ec4556fd78576ad2bcf2ab64abe00f05ece3 | [] | no_license | wangruiyy/MxOnline | 52d5ff4d0a3488d00ba56782d63db4808af5b19f | ad93d58498e9a747173f42514e638a4920b2fc02 | refs/heads/master | 2021-04-03T06:27:06.407996 | 2018-03-10T13:14:15 | 2018-03-10T13:14:15 | 124,655,346 | 0 | 0 | null | 2018-03-10T13:14:16 | 2018-03-10T12:51:49 | null | UTF-8 | Python | false | false | 68 | py | # -*- coding:utf-8 -*-
default_app_config = 'users.apps.UsersConfig' | [
"[email protected]"
] | |
15b7110630874d11b613c384a2932880406f7171 | 8064d8f659683aef4864fc97a096fa346c1b73d3 | /main.py | 57f8c27f1b0b1b316052315793e1bf711319fa2b | [] | no_license | Mabedin00/polygons | 6546469068d8d9a72596db01f51d925b932bd19f | f886459b3f482c92e0fa6ea815945c4777ace0ed | refs/heads/master | 2021-05-17T01:55:55.976589 | 2020-03-29T16:47:11 | 2020-03-29T16:47:11 | 250,565,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from display import *
from draw import *
from parser_s import *
from matrix import *
import math
screen = new_screen()
color = [ 0,191,255]
edges = []
polygons = []
transform = new_matrix()
parse_file( 'script', edges, polygons, transform, screen, color )
| [
"[email protected]"
] | |
87d8617072a506c92696bd2d28771c0581767428 | cc578cec7c485e2c1060fd075ccc08eb18124345 | /cs15211/FlattenNestedListIterator.py | a0f0bfde784f7bd127acc87b7ee70a319e0c47be | [
"Apache-2.0"
] | permissive | JulyKikuAkita/PythonPrac | 18e36bfad934a6112f727b4906a5e4b784182354 | 0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c | refs/heads/master | 2021-01-21T16:49:01.482561 | 2019-02-07T06:15:29 | 2019-02-07T06:15:29 | 91,907,704 | 1 | 1 | Apache-2.0 | 2019-02-07T06:15:30 | 2017-05-20T18:12:53 | Python | UTF-8 | Python | false | false | 5,253 | py | __source__ = 'https://leetcode.com/problems/flatten-nested-list-iterator/'
# https://github.com/kamyu104/LeetCode/blob/master/Python/flatten-nested-list-iterator.py
# Time: O(n), n is the number of the integers.
# Space: O(h), h is the depth of the nested lists.
#
# Description: Leetcode # 341. Flatten Nested List Ite... | [
"[email protected]"
] | |
961a831640d66bdb4e7113ccbc8e41fd17b88923 | a61263850fe63de61ec3004519f0d9aa69f104ac | /python_Algorithm/battle19/TaxiFee.py | e10f3b4d5de684c4e63460e0d62861c606b5a984 | [] | no_license | Kimhyeonsuk/Programmers_Python | dd0e13ef6690cfab0c46a7c8b07a5f3b40175071 | cc5687c8db2cfa098602829dec3acbf17c5c2177 | refs/heads/master | 2023-07-16T22:30:29.457419 | 2021-09-02T10:40:56 | 2021-09-02T10:40:56 | 355,876,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | def solution(n, s, a, b, fares):
answer = 1e9
board = [[1e9 for _ in range(n + 1)] for _ in range(n + 1)]
for fare in fares:
board[fare[0]][fare[1]] = fare[2]
board[fare[1]][fare[0]] = fare[2]
for i in range(1, n + 1):
board[i][i] = 0
for k in range(1, n + 1):
for i ... | [
"[email protected]"
] | |
2660a093f4d3a91fac5365d58cf4d25ec3dfc0a2 | 352fc6108f4fe5a778b9d89e3a11781542ac6a5e | /buhgalteria/main.py | 09c2b3eada27990c486db7f6a8846a8d18fdde01 | [] | no_license | Iusar/pro_python_1 | 6419681fb7670fa5d4335a986282e4b6518e4b30 | 401dcabea014e5e824f23b5fb7bad9b01bc29968 | refs/heads/main | 2023-07-26T08:53:49.486999 | 2021-09-13T15:49:38 | 2021-09-13T15:49:38 | 403,737,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | import application.salary as sal
import application.db.people as pers
import datetime as d
# Основная программа
def main(number):
print(f'{sal.person_salary(pers.find_person(number))} время запроса {d.datetime.now()}')
pass
# Запуск программы
if __name__ == '__main__':
main(1)
| [
"[email protected]"
] | |
e50e19db7754f252118d5e3c69541abe67d0fdab | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/42/usersdata/69/21660/submittedfiles/jain.py | 34c02d431af79001b4eb9414ce0115cad59ff0fc | [] | 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 | 1,090 | py | # -*- coding: utf-8 -*-
from __future__ import division
import funcoes
'''
ENTRADA TESTE
f = 0.2
dH = 5
L = 3250
Q = 0.005
g = 9.81
v = 0.000001
e = 0.00006
k = 10
A saida para esta entrada é aproximadamente: 0.1247 (D) e 0.0224 (f)
'''
f = 0.2
dH = input('Digite a perda de carga: ')
L = input('Digite o comprimento d... | [
"[email protected]"
] | |
cd75f8dcb615ca8df8600ef455e587f1fa3c3a1b | 0abe2fc7fa3509a28fac6446c9f8be3fcf3a2047 | /example_vehicle.py | 0c7c999e327688810ff2953306d4db18b70be13c | [] | no_license | cheng-zilong/PyiLQR | 1bd70e5ebabdc28e63d3576101ad6a9d4e2e10bc | 211fd8793795213171676e6aa64c7bfb5bb3f9be | refs/heads/master | 2023-01-14T10:54:54.252112 | 2020-11-19T05:13:19 | 2020-11-19T05:13:19 | 306,287,914 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17,765 | py | #%%
import numpy as np
import sympy as sp
import scipy as sci
import time as tm
from scipy import io
from iLQRSolver import DynamicModel, ObjectiveFunction, BasiciLQR, AdvancediLQR, Logger
from loguru import logger
from datetime import datetime
import torch
from torch import nn, optim
from torch.autograd.functional imp... | [
"[email protected]"
] | |
b7626825dc0410ead2b494a5a21db36f16d6b4a1 | 6088e13467554ee0dc90f7964dabfd53661b4b99 | /compare_other/darkflow_train.py | fc1709189420610caa6c38da2f880fa7b8bf6c59 | [] | no_license | chadrick-kwag/yolov2-fromscratch | 186f7da39806526e1957dc575221567b590c8c54 | 6cdbd1d75116c5aac39a5cb0dd134b26e084c832 | refs/heads/master | 2020-03-11T12:24:16.312566 | 2018-06-28T15:57:40 | 2018-06-28T15:57:40 | 129,996,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,053 | py | import tensorflow.contrib.slim as slim
import pickle
import tensorflow as tf
from ..yolo.misc import show
import numpy as np
import os
import math
def expit_tensor(x):
return 1. / (1. + tf.exp(-x))
def loss(self, net_out):
"""
Takes net.out and placeholders value
returned in batch() func above,
to bu... | [
"[email protected]"
] | |
b991927ecdb38b810321296465c42532c63cc33a | c64bafe65cfb67823e90cd78035131b7234fb356 | /LabWork2/tests/logger/TestLoggerMethods.py | 7989984af405c8a96db4c48d5ee5c21436b8ea98 | [] | no_license | AlexFridman/EHI | 7e5144953501554d89499b2edf82d9527a6a4605 | ab75bdf9d3760acd6c63bbe1968f2cd9ca140db2 | refs/heads/master | 2020-05-29T12:32:26.853925 | 2015-12-25T17:08:37 | 2015-12-25T17:08:37 | 44,743,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | __author__ = 'AlexF'
import unittest
from LabWork2.code.logger.logger import Logger
class TestLoggerMethods(unittest.TestCase):
def test_logging(self):
class SimpleClass(Logger):
def test(self, x, y=5):
return x + y
obj = SimpleClass()
obj.test(5)
log... | [
"[email protected]"
] | |
2a4b17daaced9ba578fabcf45c20f80bffa9da09 | 9010a33df4badfcaa3f87493e4e1281a86760bb9 | /Rest/tutorial/snippets/migrations/0003_auto_20181108_1726.py | 1794f728919b0e4dfee215eed271608ef526343a | [] | no_license | DjangoJwa/About_Django | bae8cc7690d6db84653b89d567a390d82de473a4 | c249b91a2da4e7de2c498f8941fbefc9ee5c0bfe | refs/heads/master | 2020-04-04T23:08:21.658167 | 2018-11-21T11:17:01 | 2018-11-21T11:17:01 | 155,361,782 | 0 | 0 | null | 2018-10-30T09:54:04 | 2018-10-30T09:54:04 | null | UTF-8 | Python | false | false | 686 | py | # Generated by Django 2.1.2 on 2018-11-08 08:26
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('snippets', '0002_auto_20181108_1724'),
]
operations = [
migrations.AlterFi... | [
"[email protected]"
] | |
b59043f0adb0bd245f3edc8572fc324e3dbc3732 | 2dc3904c6935db8e3a5d77a855368faeb9f0932c | /code4step3/unet_model.py | 86e8ef82573796296c521d5a8935eb8a746db4a6 | [
"MIT"
] | permissive | yukeyi/MCDS-Capstone | 470f64cd09d7332bcae4b4abee9a75c489e391e9 | f7ce48fc5d3f5f96c1f29556585ed2338683c7d2 | refs/heads/master | 2020-04-23T00:54:28.652993 | 2019-12-16T01:23:41 | 2019-12-16T01:23:41 | 170,796,148 | 0 | 0 | MIT | 2019-04-23T13:28:30 | 2019-02-15T03:27:39 | Jupyter Notebook | UTF-8 | Python | false | false | 2,570 | py | import torch
import torch.nn as nn
from model_util import conv_trans_block_3d, maxpool_3d, conv_block_2_3d, conv_block_3_3d, conv_block_4_3d
class UnetGenerator_3d(nn.Module):
def __init__(self, in_dim, out_dim, num_filter):
super(UnetGenerator_3d, self).__init__()
self.in_dim = in_dim
se... | [
"[email protected]"
] | |
99e71c6c12890b685bb63664cdf01f707beae10a | 1e127a1f29f34bfee095235e731aff898750cd8c | /execute_bilstm_conditional.py | c7b3f12640412d4f3767dc77d901a7017f69fe7d | [] | no_license | malvika-hp/stance-detection-in-news | 2dd5c6cff18740d1d638ad6a05a4262171651d90 | f870db3c78b3cc4755eeac91cd1e54f2649ff009 | refs/heads/master | 2020-04-20T03:28:03.004676 | 2019-03-26T00:30:57 | 2019-03-26T00:30:57 | 168,599,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,016 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
######
# Execution script for the conditional LSTM with attention
# Based on starter code from PS3-CS224n
######
## General libraries
import tensorflow as tf
import numpy as np
import random
from tensorflow import keras
## Our Own Code
from BILSTM_conditional import LSTMC... | [
"[email protected]"
] | |
3d5170d0177d9b2a83b3013b2a1a0b64a23a880d | af88074068528f5f807b810f6718133d3c544ad3 | /easy/1342/numberOfSteps.py | b367e077ce784819caedd66bf70b85df980cda3f | [
"Apache-2.0"
] | permissive | ozashu/leetcode | 377e787055826da02867f967b5d2469820577f3a | c3989b197c0574af25d4b893bfda84ebbec94db7 | refs/heads/master | 2020-04-06T08:55:18.962627 | 2020-04-02T14:58:52 | 2020-04-02T14:58:52 | 157,321,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | class Solution:
def numberOfSteps(self, num: int) -> int:
i = 0
while num > 0:
if num % 2 == 0:
num /= 2
i += 1
else:
num -= 1
i += 1
return i
if __name__ == '__main__':
ns = Solution()
print(ns... | [
"[email protected]"
] | |
edf8538fd32c1becb17b39f2cd1cc4dae63a0763 | 652b72b566a84dbd0e667a86759ec5ee793219e0 | /App/carmanager/admin.py | 76a53766630651aae2e3a31a0b00cfa2fd7d7c65 | [] | no_license | RaisaKulakovska/Some-Django-Project | 05a9b0ef376751fbe6d25f2d5d06471bfd84e6be | 9f42e8a739180fd31adca55ebd559539f59f466c | refs/heads/master | 2021-04-03T12:07:13.132940 | 2020-03-31T11:16:17 | 2020-03-31T11:16:17 | 248,351,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from django.contrib import admin
from .models import CarManager
admin.site.register(CarManager)
| [
"[email protected]"
] | |
59e17142d32ca19041f681400af2b2f13474c48c | 9e4f426b1b09fe37433ecb2a88ac08b3bcd525a5 | /modules/roblox.py | d1a4a53c1856caa2812b3a5573b55b6d506cfc41 | [] | no_license | gusxyz/PyVer | a7e635679fbd8542c679f1107af9e45bd6f756a0 | 23e460bd50e790f322c989b5d31d243e9aee90f9 | refs/heads/master | 2023-01-22T14:36:42.766233 | 2019-12-13T07:59:57 | 2019-12-13T07:59:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | import json,bs4,requests
class robloxUser():
def __init__(self,id):
self.id = id
def getStatus(self):
request = requests.get('https://roblox.com/users/' + self.id + '/profile')
pageData = bs4.BeautifulSoup(request.text, features='html.parser')
hiddenData = pageData.find('div', {'data-profileuserid' : self.... | [
"[email protected]"
] | |
3110e22e2cd31de927f5d7e9bd160edb5ac1ccdf | ccfe64ba6d63f2668a7338398a020c0b64172e0e | /firestore.py | eb0e9de70e108a40fbdb3dfb8d535b82bb14096a | [] | no_license | saad277/Python-Firebase | dd31580b367647e3fe48b87299504082aa152c7a | fb1b753da808d7bcb1a5f843acf2c8c206cd4979 | refs/heads/master | 2021-05-20T09:06:52.232643 | 2020-04-28T20:00:11 | 2020-04-28T20:00:11 | 252,214,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | #pip install firebase_admin
import firebase_admin
from firebase_admin import credentials
from firebase_admin import firestore
cred=credentials.Certificate("service_account.json")
firebase_admin.initialize_app(cred)
db=firestore.client();
ref=db.collection("food");
docs=ref.stream()
data=[]
for doc in docs... | [
"[email protected]"
] | |
3b12aa23f81a807198b89b5e8f7d0a2eec9c9ecd | 1419418226b6ba0f510649daaf62b71554cc2284 | /amatrice/project_GPS_M5.3_M5.8.py | 5aabd4ea3ee678dc37aff80268eb4ebefda90005 | [] | no_license | shineusn/mylife | 2ef48a777e39be2ef746c3dad16ea963d5b23e5e | 61dfa72d9047551746d26b7fe01fb5c2f1f0657a | refs/heads/master | 2020-03-22T13:44:42.422127 | 2018-02-13T18:09:43 | 2018-02-13T18:09:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | from matplotlib import pyplot as plt
from numpy import genfromtxt,argmin,array,zeros,ones,where,linspace,r_
from matplotlib.ticker import MultipleLocator
g=genfromtxt('/Users/dmelgar/Amatrice2016/GPS/Cosismico_26Oct2016_GPS_GdL_V1.dat')
insar=genfromtxt(u'/Users/dmelgar/Amatrice2016/InSAR/M5.3-M5.8/Italy_T44/T44_Ital... | [
"[email protected]"
] | |
45548b72b1271b8770482dfa3c14105e12bc21b8 | adafa4f13a450ff4205241650f842e211781322c | /products/models.py | ec8f9260fabdf2719050db253a0dd80a77358751 | [] | no_license | GladkikhAnton/WebSitePractice | b5c6f7455b9f1b3621e637e6995292f07c8c0bff | 6884d7765fd016d1fd3c79e6e3f6dbfc17e6fee6 | refs/heads/master | 2021-03-23T17:08:21.277864 | 2020-03-15T13:29:22 | 2020-03-15T13:29:22 | 247,470,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,959 | py | from django.db import models
class TypeOfProduct(models.Model):
name = models.CharField(max_length=32, blank=True, null=True, default=None)
created = models.DateTimeField(auto_now_add=True, auto_now=False)
updated = models.DateTimeField(auto_now_add=False, auto_now=True)
def __str__(self):
retu... | [
"[email protected]"
] | |
d1da48f8ef3b8c05ad37267fa85ffbd06269ed62 | 666a8807cd96c3d7e2204e5fcb2d793eb0615071 | /src/proveedores/migrations/0001_initial.py | 141ba8b7ac2da6d3807fd985bb543590cea74f65 | [] | no_license | maritza05/Mystery-Cafeteria | 4b8a714164c5063ade18269f92d04816a48179e2 | 85238303d15df0630c18d6c1b9f8b3c4ae99080b | refs/heads/master | 2021-01-10T07:14:09.902376 | 2015-12-08T03:05:01 | 2015-12-08T03:05:01 | 47,043,914 | 0 | 0 | null | 2015-11-30T04:02:53 | 2015-11-29T00:00:08 | Python | UTF-8 | Python | false | false | 624 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Proveedor',
fields=[
('id', models.AutoField(ve... | [
"[email protected]"
] | |
e65db35788ca6456a7d6e19edf98c2b01ab8fe66 | 0194a80ffb16878cd7dea79d0ec55ebdaac69b1a | /airline_booking/class_example.py | 4b243b7161a13f46b3de7aaef7b399e4d2aecfde | [] | no_license | Hancullen/Building-Python-Web-Services | 9c758420a7872113e42981f16568499d312e72bc | 0323d3077c6d651e4a3c19f362567f7a907bdcf9 | refs/heads/master | 2020-06-08T18:54:05.695283 | 2019-07-01T21:20:06 | 2019-07-01T21:20:06 | 193,286,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | class Flight:
counter = 1
def __init__(self, origin, destination, duration):
#super(, self).__init__()
#keep track of id counter
self.id = Flight.counter
Flight.counter += 1
#keep track of passengers in this list
self.passengers = []
#details about flig... | [
"[email protected]"
] | |
7a4118e9b6ecbc2640cb45301060a4a5dd9cd48c | b932d5b0889d4466fb605455a40ec6ca5b4285ae | /00_workflows/parsl_demo/pi_test_queue.py | 6e62a31c3ff40a18a6099b89ec245554359a857a | [] | no_license | cszhz/CompPerfWorkshop-2021 | 54cde54e4dd50fe9aed8fb1eec3f5a2c86f63885 | f070d3290d5b50d98709523f3e73e26e57ace369 | refs/heads/main | 2023-06-11T02:02:53.828553 | 2021-07-06T23:36:27 | 2021-07-06T23:36:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,489 | py | import parsl
import os
from parsl.app.app import python_app
from parsl.config import Config
from parsl.providers import CobaltProvider
from parsl.launchers import AprunLauncher
from parsl.executors import HighThroughputExecutor, ThreadPoolExecutor
from parsl.addresses import address_by_hostname
MY_USER_PATH = '/home/... | [
"[email protected]"
] | |
5cfb25b5cea19947c08e86c583fd2f5d891fcf9f | 2109c75aaaad18ed202c2f258cfb42cadf402b6a | /boards/project/admin.py | 1a71238728019845b1aa582c135315a5dba5f152 | [] | no_license | Kartug/Python-projects | f23a36d5db307524f2a3e27f8235531c4bf9fa5b | 9361cdf503a06c4d14b258e0a07c718fec255714 | refs/heads/master | 2022-12-23T05:41:38.794027 | 2020-01-16T08:42:04 | 2020-01-16T08:42:04 | 187,950,399 | 0 | 0 | null | 2022-12-08T07:00:06 | 2019-05-22T02:44:42 | Python | UTF-8 | Python | false | false | 123 | py | from django.contrib import admin
from project.models import Board
admin.site.register(Board)
# Register your models here.
| [
"[email protected]"
] | |
a861a51696a1ce07f9eff6c8bb1d0344e618b511 | 3cadf60273e5e7ecede807d631d2c9b9e45499ad | /src/18_stuff/task02.py | d28f964b1cb2678dc24838eebe40832c175a7700 | [] | no_license | shamanengine/HackerRank | 78a4316713518601f4f0499626fbce8766e004df | 8f6c4afa0b6d1e1e934af6ba173c00eae249f42e | refs/heads/master | 2021-08-27T17:57:34.391358 | 2021-08-13T15:17:17 | 2021-08-13T15:17:17 | 143,048,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | '''
Given 2 numbers, provide number of all perfect squares between them
'''
import math
a, b = map(int, input().strip().split())
i = 0
for x in range(int(math.ceil(a ** (1 / 2))), b):
if x ** 2 <= b:
i += 1
# print(x)
else:
break
print(i)
'''
Input
1 50
25590 26590
9 49
Output
7
4
5... | [
"[email protected]"
] | |
9110dd05442c39c54177de9edcf5e4b53bd86be6 | cf2b2ae4ee4ebdd9bbc0b5677ce29fa0c7d20256 | /scripts/clustering/snippet/make_dv.py | d1a8a1a0a77761b91cea8f10b496ee0631211532 | [] | no_license | jaewookahn/adaptive_vibe_testing | 8cd2109ba87f10d1ba967c34f4ecb2fa29519e7d | d47b4a3262781d48dbf4f79355b65f7f44bb0a8f | refs/heads/master | 2021-01-19T09:42:08.566979 | 2013-12-27T05:25:08 | 2013-12-27T05:25:08 | 18,613,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | py | #!/usr/bin/python
import os, bsddb, string, sys
if len(sys.argv) < 3:
"Usage: command TOPICID MODE[db,gt,notes,all]"
sys.exit(1)
TOPICID = int(sys.argv[1])
MODE = sys.argv[2]
if MODE == 'db':
NEW_DV = True
else:
NEW_DV = False
gt_count = {40009:534, 40021:1454, 40048:733}
#
# build dv db
fp = os.popen("dump... | [
"[email protected]"
] | |
d84e02f5f2815a7f82b35a8daa0cb83b201fc09c | 6e1508ebdaf63b3afee10926bdf74ce9478f3508 | /kadanesalgorithm.py | 4ebc51ef1200e349f04a36b701abf97ccdb58046 | [] | no_license | dopeprogr4mmer/DSA | 5f2741a924bec9b6add7b4d92d207ec553576439 | 18f4bd93b264acfd4cfd91b9aa318bdf502d0339 | refs/heads/main | 2023-07-17T22:33:40.347653 | 2021-08-25T05:28:04 | 2021-08-25T05:28:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | <<<<<<< HEAD
<<<<<<< HEAD
import sys
=======
>>>>>>> d86366dc91ea42926b2be1e049e46fb03f518c05
=======
>>>>>>> d86366dc91ea42926b2be1e049e46fb03f518c05
def maxSubArraySum(a,size):
max_so_far = 0
max_ending_here = 0
for i in range(size):
<<<<<<< HEAD
<<<<<<< HEAD
#max_ending_here += ... | [
"[email protected]"
] | |
217b98f6b0ce25cdbad2d4b9d5143161e41191a2 | 3d170d63538c244008fb168642d7dfa9066f4478 | /django_tutorial/mysite/polls/models.py | d5d1e5adfe5ddf035946b0982d5fcf33b18e5c9f | [] | no_license | asidhu0/Hack-the-Hood | 51160de0f6b56bb5d1d62dbf87cdd22c65063fc0 | cd4acbf3aff1354830d10ca26d1b167f10698960 | refs/heads/main | 2023-06-20T09:28:35.711583 | 2021-07-08T17:48:47 | 2021-07-08T17:48:47 | 377,609,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | from django.db import models
from django.utils import timezone
import datetime
# Create your models here.
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __str__(self):
return self.question_text
def was_publi... | [
"[email protected]"
] | |
35df953227d832576b310a7c674b9aa7c5a59c17 | 37c38975875857cbd2401dabcfb5269e2e89e5e8 | /prac-mlc/.backups/MCL_Lori.py-1478953425359 | 1fd0956efa07bda0eb2f518ffd1312dea2578bb6 | [] | no_license | gimaik/ICC_C333_Robotics | 28efe9856996c6dc110dc3b5487fbeec75d5df73 | c2aaa881cc42322c19af6f3330b5050009daa378 | refs/heads/master | 2021-06-08T04:00:00.071369 | 2016-11-29T21:52:49 | 2016-11-29T21:52:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,621 | #!/usr/bin/env python
# Some suitable functions and data structures for drawing a map and particles
import time
import sys
import random
import math
import brickpi
import time
#ROBOTICS
interface = brickpi.Interface()
interface.initialize()
motors = [0, 1]
k_p = 480.0
k_i = 400.0
k_d = 5.0
LENGTH = 15.0 #15 FOR... | [
"[email protected]"
] | ||
b772e89cc0e4130a6b472f8b625cf5dabe9daced | c8f4d4d7d9b689d555acc3c902e96eb53b4a947c | /season-2/last-digit-of-a-huge-number.py | dc4beadb9be5d1350fa57e3cb32fbe7753d0f296 | [] | no_license | diesarrollador/Code-war--Code-logic | 3d7a2eb4611b16f7bc09d57fa3f2be4d79bfc050 | 55bb81b0667b4530fc75fa3d33fc3f36908b9f29 | refs/heads/master | 2023-06-08T01:42:02.260430 | 2021-07-04T17:15:34 | 2021-07-04T17:15:34 | 362,586,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | """ Para una lista dada [x1, x2, x3, ..., xn]
calcule el último dígito (decimal) de
x1 ^ (x2 ^ (x3 ^ (... ^ xn))). """
def last_digit(lst):
if lst:
re=1
for numero in lst[::-1]:
re=numero**(re if re<4 else re%4+4)
return re%10
else:
return 1
print(last_digit([2, 2, ... | [
"[email protected]"
] | |
3b95704664ddfd0e9322f66c1c9e5b22ff8ecd47 | b886d594fee149585d0ea2d8193a77e4a0c596b4 | /portfolio/migrations/0004_auto_20200529_0254.py | 9b5644a39b9af51a4be381592e52b44e03899d33 | [] | no_license | SathvikTumoju/SoftwareEngineeringProject | ab8cfae493267ac5c8c609b6b9a8ee55e4af193d | f3720331b479b87009bd82c3e32fffc4230c9505 | refs/heads/master | 2022-08-29T00:27:37.536325 | 2020-05-30T18:03:08 | 2020-05-30T18:03:08 | 268,075,458 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # Generated by Django 3.0.5 on 2020-05-28 21:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('portfolio', '0003_auto_20200529_0151'),
]
operations = [
migrations.RenameField(
model_name='contact',
old_name='des... | [
"[email protected]"
] | |
bb4ee3d130fd09e1f604855d82a3176e24481bfb | 7c084b1270e92bab5b6f96920d0f3d8ab91b114d | /116106000759_高鑫/primepath与unittest/read.py | deca86a68d16e6a432f58ade06fe7c9edb19fdcb | [] | no_license | 1206045748/homework | ee2f49c63e2ac1728ade21f45fee503c1dd05382 | 8d469d0131e8443f53b1ee5bc1d85f68974cb132 | refs/heads/master | 2021-01-25T11:28:55.476987 | 2017-06-10T09:56:24 | 2017-06-10T09:56:24 | 93,930,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | def compare(p1,p2,tt):
s1=""
s2=""
for i in p1:
s1=s1+str(i)+","
for j in p2:
s2=s2+str(j)+","
if(s1!=s2 and s1 in s2):
if(p1 not in tt):
tt.append(p1)
while True:
ten=None
try:
ten=input("输入:")
data = {}
with open('./case/case'+ten... | [
"[email protected]"
] | |
5778472994ed8b4be4ac116fa0b67a3d2d5488ec | 95b6cf15c6194c0acf9496b13a9c00020e00d4bd | /lecture4/flights/migrations/0002_auto_20200831_1320.py | cd50c5d8e4180b00da268d3fc5d50913596b830a | [
"MIT"
] | permissive | fedejimenez/CS50-django | 8eccacbbf51783cd86f1897bbd9396cf80ccb61d | 09c474fc2cf3df451a326b0ce5146d35d6e3844d | refs/heads/master | 2022-12-05T08:12:21.364915 | 2020-08-31T17:13:51 | 2020-08-31T17:13:51 | 286,286,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | # Generated by Django 3.1 on 2020-08-31 13:20
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('flights', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Airport',
f... | [
"[email protected]"
] | |
9d384db166816110a41e565ceeb8c4a3806b1678 | 64660496cb42060c84b4d89a125d443b91fbbbf2 | /kalman.py | a6f1baf5dba6bed27271330d6264b83daa80801e | [
"MIT"
] | permissive | mohamedsayed18/AI_for_Robotics | ae6ad6b8213e0493e3bef2b2e44a4ae45510b451 | a5a6f2360d32cfc32b2d6e8f02d16959e84fa216 | refs/heads/master | 2020-12-09T07:38:10.708555 | 2020-04-24T07:10:24 | 2020-04-24T07:10:24 | 233,239,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,281 | py | """
kalman filter assignment from AI_for_Robotics course
this solution is not based on the given code in the course but it applies the
same equations to solve the multidimension kalman filter challange
"""
import numpy as np
#let's define some variables we will need
# We are taking discite measurement so this variab... | [
"[email protected]"
] | |
d82bb2cd4bc68a63180a9488a7a2602cda047598 | 193ac8a9b2bd33dd73c179e96cc87494fe6d385f | /one/app1/urls.py | d259194bacba90b7d2df50ec6985c336b0954cdd | [] | no_license | sasan-gsm/django | c6f9ddb59ee70fcd40452a077b504090149f2e57 | 4f6c05a3fd116a5c77463440bd54175ac6708474 | refs/heads/master | 2020-06-25T01:15:03.364934 | 2019-07-27T10:31:54 | 2019-07-27T10:31:54 | 199,151,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | from django.conf.urls import url
from .views import PostList, post_detail
urlpatterns = [
url(r'ˆ$', PostList.as_view(), {'parent_template': 'base.html'}, name='app1_post_list'),
url(r'ˆ(?P<year>\d{4})/'
r'(?P<month>\d{1,2})/'
r'(?P<slug>[\w\-]+)/$',
post_detail, name='app1_post_detail'... | [
"[email protected]"
] | |
a0383062dd7b619a304a104fb57cf39cce1fcab4 | f0ab1869709fba67b57160f56b61a62a1ac149fa | /nn.py | 1e614c7683267990ee36b53a0416c4a96b4dd63a | [
"MIT"
] | permissive | tapionx/GeneticSnake | 8dd53bf94fc501e9f24333450e79d6671c6aeade | c373be31c1df8eb31d1349f32b0725592785bc4f | refs/heads/master | 2020-04-26T06:26:12.852625 | 2019-03-01T11:57:37 | 2019-03-01T11:57:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,377 | py | import numpy as np
from matplotlib import pyplot as plt
INPUTS = 5
HIDDEN = [4]
OUTPUTS = 3
LAYERS_DISTANCE = 250
NEURONS_DISTANCE = 100
RADIUS = 20
INPUT_COLOR = (0, 1, 0)
OUTPUT_COLOR = (1, 0, 1)
NEURON_COLOR = (1, 1, 1)
DROPOUT_COLOR = (1, 1, 0)
POSITIVE_WEIGHT = (1, 0, 0)
NEGATIVE_WEIGHT = (0, 0, 1)
class Neura... | [
"[email protected]"
] | |
8b09f2081747012fd399d46c268b02475956c0db | cde0ca62604340cdf907d257379c8c7771dd1655 | /Pandas tutorial_Iterations & Sorting.py | 7f9debbad0b489814f6a2d3b20c53d07bb154591 | [] | no_license | RishiNandhan/Pandas-Basics | 44def9e6856670622ce0b98f961cb80a149b892c | 9353b389712ebec1c312eb6bd77650764bba577a | refs/heads/master | 2023-07-05T09:25:48.355888 | 2021-08-12T01:43:44 | 2021-08-12T01:43:44 | 395,030,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | import numpy as np
import pandas as pd
df1=pd.DataFrame(data=np.random.rand(10,3),columns=['a','b','c'])
print(df1)
"""
Iteration on different object type:
1) Series- return the values
2) Dataframe- return the column name
3) Panel- return the item name
"""
for i in df1:
print("column name: "+i)
print("#####")
"""
... | [
"[email protected]"
] | |
33e0aee58930ad35e13facfe0a5c06af88da237d | c416ba6f84c52cffff34bde5e37ec09efca5f0c9 | /jicasurvey/settings.py | d60f1d0506b403f408f1be5e0cfb63f86d882e48 | [] | no_license | AashishGrg/Survey-jyca- | aa462320e6b40c93b9e6b8a2bb89d52cb1d4cdb7 | bdc657edee51a5ee71f1f26251fffedf676f7d1b | refs/heads/master | 2022-05-11T16:30:00.684891 | 2019-07-03T18:31:09 | 2019-07-03T18:31:09 | 195,107,528 | 0 | 0 | null | 2022-04-22T21:38:15 | 2019-07-03T18:27:20 | Python | UTF-8 | Python | false | false | 3,432 | py | """
Django settings for jicasurvey project.
Generated by 'django-admin startproject' using Django 2.2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os... | [
"[email protected]"
] | |
6c7b3931a3c0403baae08b707f913103da3c4399 | 4771e66c3e64cec4c7d3dcf3486843b5bfb22b76 | /Assignment1/mfcc.py | 42f9a8b046558de33c5daffa74274d9379867cf6 | [] | no_license | ameyagodbole/LS621-Spoken-Language-Systems | c108334eebb9e8692a395ac2d0ec477e20c57428 | 0f08735087f56b2da4629d9b354b44b2453b9e0e | refs/heads/master | 2021-05-05T00:08:07.546366 | 2018-10-28T05:21:28 | 2018-10-28T05:21:28 | 119,502,706 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,312 | py | # Copyright (c) 2006 Carnegie Mellon University
#
# You may copy and modify this freely under the same terms as
# Sphinx-III
"""Compute MFCC coefficients.
This module provides functions for computing MFCC (mel-frequency
cepstral coefficients) as used in the Sphinx speech recognition
system.
"""
__author__ = "David H... | [
"[email protected]"
] | |
3d7c5b4eb3d00606ff5abe8c11832193e7201eb5 | 4331b28f22a2efb12d462ae2a8270a9f666b0df1 | /.history/dvdstore/webapp/views_20190914163031.py | 980217ae2624c75216a4e349f8f403f3cc89970e | [] | no_license | ZiyaadLakay/csc312.group.project | ba772a905e0841b17478eae7e14e43d8b078a95d | 9cdd9068b5e24980c59a53595a5d513c2e738a5e | refs/heads/master | 2020-07-26T23:30:22.542450 | 2019-09-16T11:46:41 | 2019-09-16T11:46:41 | 200,703,160 | 0 | 0 | null | 2019-08-05T17:52:37 | 2019-08-05T17:52:37 | null | UTF-8 | Python | false | false | 10,234 | py | from django.shortcuts import render
from .models import DVD, Transaction, Customer
from django.core.paginator import EmptyPage,PageNotAnInteger, Paginator
from django.db.models import Q
from django.contrib.auth.models import User, auth
from django.shortcuts import render, redirect
from django.contrib import messages
fr... | [
"[email protected]"
] | |
5334784f4ec0721da7a057223fdb7a784998fc5d | f73c5a93e4ef0a058bbe0774b41b228baa3cb0d5 | /ParseScores.py | 2056fde130d176bb7307a13773a0baead8ae91f2 | [] | no_license | lukeboi/FTCScouting | dcbb4e73d62e8d4d54ddc717dc3b8c2276a7b00c | 2bdd445a416e71e37742d310fe3c6a018be42973 | refs/heads/master | 2021-05-31T21:30:12.554016 | 2016-03-13T18:07:12 | 2016-03-13T18:07:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,181 | py | #Code by Luke Farritor
#Project started on Mar 1, 2016
#Imports
import openpyxl
from openpyxl.cell import get_column_letter, column_index_from_string
#Pramaters
oldWb = "Scoring-System-Results(2).xlsx" #Downloaded Wb Name
oldSheetName = "Sheet1" #Sheet to get scores from
oldSheetRows = 2818 #Rows in old sheet ... | [
"[email protected]"
] | |
72d826befd48d579b5ffe05cdbba64e9680fe058 | 21fe1ec641f5a0ca022d877894ad1fa773719e59 | /python剑指offer/使用__new__实现单例模式.py | fc47c113aecdef206e4aca51e96ce19711df16e0 | [] | no_license | GDUTwuchao/leetcode_jianzhioffer | a1ab92c7e08a5b4df68a2ed605f4ec5921bab989 | a729d302c148825df73bd0fea3b7c724c3fa4968 | refs/heads/master | 2020-07-26T06:51:12.005080 | 2019-09-15T01:15:31 | 2019-09-15T01:15:31 | 208,569,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | class SingleTon(object):
_instance = {}
def __new__(cls, *args, **kwargs):
if cls not in cls._instance:
cls._instance[cls] = super(SingleTon, cls).__new__(cls, *args, **kwargs)
# print cls._instance
return cls._instance[cls]
class MyClass(SingleTon):
class_val = 22
... | [
"[email protected]"
] | |
0acb3d200d67237cbb9d25a85d82e766725b679e | cb2c146075c348f429886ca405b5146b21bab62a | /Trabalho02/et.py | cc651e59349bc86ebf87c6665d5e1046e8b414b9 | [] | no_license | matheussn/PythonORI | 3b007ce53bca28a8ecb3ba7e343962c0e9271d10 | 8a688556b16199c4620f48bec62465d7ecb55f25 | refs/heads/master | 2020-03-30T06:35:44.234675 | 2018-12-18T19:13:45 | 2018-12-18T19:13:45 | 150,873,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | import pickle
import nltk
if __name__ == '__main__':
sents = nltk.corpus.mac_morpho.tagged_sents()
et = nltk.tag.UnigramTagger(sents)
f = open('etiquetador', 'wb')
pickle.dump(et, f) | [
"[email protected]"
] | |
5883d09ca1625ede579f97714447d90e76b7713d | c3ae3c81000d5a1f6d2bc754e4610c972b923176 | /dav_app/migrations/0004_auto_20200816_1302.py | d40a3793a2645fd207e79802eb70fef45d42c31a | [] | no_license | Aniket1317/School-Management-System | e2551f766fc3bb2c863566d1d6962f5290dfadd4 | 0e2eb88a20e2361e1327ee9b955dd74886461db0 | refs/heads/master | 2022-12-06T08:32:40.837700 | 2020-09-02T03:04:59 | 2020-09-02T03:04:59 | 292,164,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | # Generated by Django 3.0.5 on 2020-08-16 07:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dav_app', '0003_auto_20200816_1301'),
]
operations = [
migrations.AlterField(
model_name='onlineclass',
name='c_date... | [
"[email protected]"
] | |
c4de4f95686f6d39c4a347e4462b601fbc2bd6d2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03828/s176803120.py | 3c09dd5cfe45d562d5aee2961335ac10dec7d7b7 | [] | 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 | 634 | py | from collections import Counter
MOD = 10 ** 9 + 7
def factorize(n):
""" Simple factorize
:param n: number to factorize
:return: list of factors
time complexity : O(n√n)
space complexity : O(n)
"""
factors = []
for i in range(2, n+1):
while n % i == 0:
n = n //... | [
"[email protected]"
] | |
3ab6dc1a4cc8e4eaed22794a34912223c44474b9 | 76aa6379086fd042d284435e7403765fdfae8302 | /examples/Demos/UR10/controller_manuell_custom.py | b60ec6e159affb28b646fb08f651cde61844bcd7 | [] | no_license | faichele/SofaROSConnector | 12449bdf2be4ca26146497f2b2e35bbd3e37035e | 7e7dcb16492003fdbc881df7b24842dd2d868a27 | refs/heads/master | 2020-06-05T18:30:25.101634 | 2020-01-31T13:47:24 | 2020-01-31T13:47:24 | 192,511,720 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,281 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import Sofa
import copy
import sys
import os
import time
from os.path import isfile, join
class robotJointController(Sofa.PythonScriptController):
def initGraph(self, node):
self.firstSteps = 2
self.executeMotion = False
self.steps=0
... | [
"[email protected]"
] | |
a2c079a98705ce6a129fe2a91296597395f2abee | afb2bdf8044e4c9ff09b1b8379efbc17867d8cc0 | /4parts/challenge/challenge2.py | e60f5117ceda493cf23d8d7097d1376bfa4b1068 | [] | no_license | ChenFu0420/leranpython | b2e364ff8d6730a3eb768b76f0369faa3367dfa2 | 52d0aa614d7fab19e17bbb696330a0330d3862b6 | refs/heads/master | 2020-05-29T19:46:24.020046 | 2019-09-25T09:17:10 | 2019-09-25T09:17:10 | 189,339,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | n = eval(input())
for i in range(n):
for j in range(0, n - i):
print(end=" ")
for k in range(2 * i + 1):
print("*",end="")
print() | [
"[email protected]"
] | |
29df8de6841dff50c70bc5aaa400bd5c1bfcd3d2 | cd4a46cfdd78524a3922fcdc8ec796c12516c32c | /2_passArgument/differentModes.py | 1f516381c428e6f0e8f7dd01e8713d82addfeb05 | [] | no_license | MuhammadMoustafa/Notes | 7b44cfa5b0b4602156d83955f0afbe04ffd74f92 | 717b751f4156c32f4c25152a4f8aab40f768758d | refs/heads/master | 2021-03-28T05:04:53.696767 | 2020-03-16T23:51:45 | 2020-03-16T23:51:45 | 247,839,419 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | #https://stackoverflow.com/questions/919680/can-a-variable-number-of-arguments-be-passed-to-a-function
#https://www.saltycrane.com/blog/2008/01/how-to-use-args-and-kwargs-in-python/
def parameters(a, b):
#print(locals())
return a, b
def defaultParameters(a, b, c=0):
print(locals())
def manyArgs(*arg):
... | [
"[email protected]"
] | |
8930cf37540fd3f8044646882fbdf1fbf4ed85da | e31077b1ba487140d7cb3730c8ea32c9d1c78ff6 | /post/migrations/0002_post.py | b032edb8b5d899d97e08e723688e6fcc4338fb62 | [] | no_license | devinAlex/django_learn | f714642e7c0b52a351c73551959fce8261d437f2 | fbe9cfe11f3ba0f4c8afb4eb0f0bdc8ddb2657ed | refs/heads/master | 2020-03-09T00:42:56.130419 | 2018-04-07T04:15:15 | 2018-04-07T04:15:15 | 128,495,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('post', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
... | [
"[email protected]"
] | |
d20dd5ea1f4d51da90a5c1f1bf792309df12b590 | b09290b62160cda81267b7986ebdeba42ba04c13 | /posts/views.py | 3f6bd5c3b39299d327de2ac0a49ef994184f7606 | [] | no_license | tanzeel0092/Django-Project | 2cc9859549592509b37afe123d270b5d406c768d | 8d005e74e4b3e07aa7cf1521838a57cf6c50b5e5 | refs/heads/main | 2023-07-08T02:47:58.650801 | 2021-08-17T19:58:12 | 2021-08-17T19:58:12 | 397,351,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from .models import Post
from .forms import PostForm
# Create your views here.
def index(request):
# If the method is POST
if request.method == 'POST':
form = PostForm(request.POST)
#If the form is va... | [
"[email protected]"
] | |
8cd7008808ed4e68c620662f0cb044447e6f4d45 | 5517c6ab30ba8f54595e658f4c971e2bdee67fd0 | /lesson_4/tests.py | a59d425d6931a7d6ab76beea365b553269755be2 | [] | no_license | martyni/pythonistas | ae7d71fdc22f4c4b54c3cefa579d3bdf3b12aba4 | fff3a822e3bed6a9f0d31e6b3117d52c597a9519 | refs/heads/master | 2020-04-03T21:24:33.446996 | 2018-10-31T16:30:47 | 2018-10-31T16:30:47 | 155,573,507 | 0 | 0 | null | 2018-10-31T16:36:15 | 2018-10-31T14:43:47 | Python | UTF-8 | Python | false | false | 852 | py | import unittest
from module import multiply_numbers, join_strings, age_in_years
from solution import multiply_numbers, join_strings, age_in_years #Uncomment this line for solution
class TestStringMethods(unittest.TestCase):
def test_multiply_numbers(self):
print
print "Testing multiply_numbers"
... | [
"[email protected]"
] | |
611ca1b0710e080956b3f0259d5042c17ada5814 | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/signalr/azure-mgmt-signalr/azure/mgmt/signalr/aio/operations/_usages_operations.py | aa1860efef37dbf2413c285639f2957501b5bfdb | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 5,150 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"[email protected]"
] | |
a51e4e5475b94e6166da433780dd9701e745454a | 42ed26d16ebb087b417b0bbc4b11ccd20707a522 | /book_1/chp09.8.py | 6dc8bdddd9550a5e1529733236e1fad27b6b24d1 | [
"MIT"
] | permissive | D-Mbithi/Real-Python-Course-Solutions | 12af04f482f164624243e355e8c30515ed4a383d | 6e743af5f9f40260df8d42b667b3535caed9db3b | refs/heads/master | 2023-02-10T17:35:16.755864 | 2019-07-02T11:08:54 | 2019-07-02T11:08:54 | 164,014,211 | 1 | 0 | MIT | 2023-02-02T06:30:21 | 2019-01-03T19:27:09 | Python | UTF-8 | Python | false | false | 22 | py | import os
import glob
| [
"[email protected]"
] | |
9e5b1b073c0e724704be0a80caf06b160652600f | abc1a497c41ddd8669c8c41da18af65d08ca54e4 | /try/recon/analize_recon_event.py | 94841cb3f10478d5f14b3da82297e1331ee0b6fd | [] | no_license | gerakolt/direxeno_privet | fcef5e3b654720e277c48935acc168472dfd8ecc | 75e88fb1ed44fce32fce02677f64106121259f6d | refs/heads/master | 2022-12-20T22:01:30.825891 | 2020-10-04T06:01:07 | 2020-10-04T06:01:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,176 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.colors as mcolors
import time
import os
import sys
pmts=np.array([0,1,4,7,8,15])
BGpath='/home/gerak/Desktop/DireXeno/190803/BG/EventRecon/'
path='/home/gerak/Desktop/DireXeno/190803/Co57/EventRecon/'
blw_cut=15
init_cut=20
chi2_cut=5000
left=0
righ... | [
"[email protected]"
] | |
ed7791ad961fa9dd1d63297906e9bc6fdf71ef7c | be84495751737bbf0a8b7d8db2fb737cbd9c297c | /tests/test_intersections/triangle2.py | 910e5c8217bcf254300859b37732a19f7136177f | [] | no_license | mario007/renmas | 5e38ff66cffb27b3edc59e95b7cf88906ccc03c9 | bfb4e1defc88eb514e58bdff7082d722fc885e64 | refs/heads/master | 2021-01-10T21:29:35.019792 | 2014-08-17T19:11:51 | 2014-08-17T19:11:51 | 1,688,798 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,283 | py |
from tdasm import Tdasm, Runtime
from renmas.maths import Vector3
from renmas.shapes import Triangle, intersect_ray_shape_array
from renmas.core import Ray
import random
import renmas.utils as util
import timeit
asm_structs = util.structs("ray", "triangle", "hitpoint")
SSE2_ASM = """
#DATA
"""
SSE2_ASM += asm_st... | [
"[email protected]"
] | |
974d749d361019cdd9d6bb1b34a159f82ee40042 | 5d6201c7da4f19bc92f003b98629a10bd62e2426 | /main/migrations/0002_auto_20151106_1447.py | 2124b4360f205d273ee5ba1b8c5961096578fe9e | [] | no_license | azul-cloud/travelblogwave | 35b24cf9550a544eeaeaa01d99b085930f5f410b | 8c5dba290723484c3832606e9da0deba642395de | refs/heads/master | 2021-01-21T05:01:11.100319 | 2016-05-30T12:25:25 | 2016-05-30T12:25:25 | 22,630,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='user',
name='username',
... | [
"[email protected]"
] | |
d42e96cade1e62edc396c7d0eacabec1d5079d75 | 987dca99da21542c6e2bd345d8d993bd2326a81f | /Prac07/guitarTest.py | 53eb6be7a4b92729e8677494b0c178f410d7c644 | [] | no_license | hamishorr/Practicals | 34debb5f48ebeeca6bf0f7a5248bcdaf5306a255 | ff01986bf9555850fe518adf97fbc9e55da827ac | refs/heads/master | 2020-05-21T20:30:12.565780 | 2016-10-24T01:14:10 | 2016-10-24T01:14:10 | 65,692,866 | 0 | 0 | null | 2016-09-22T02:33:55 | 2016-08-15T00:30:01 | Python | UTF-8 | Python | false | false | 423 | py | from Prac07.guitar import Guitar
print('My Guitars')
guitars = []
name = input("name:")
while name != "":
year = int(input("year:"))
cost = float(input("cost:"))
guitars.append(Guitar(name, year, cost))
print(guitars[-1])
name = input("name:")
for guitar in guitars:
if guitar.is_vintage():
... | [
"[email protected]"
] | |
f61f6687a10e639df6a581469c85482272216d40 | 62b183cd98a22950e95e0968295970b1bf093034 | /mrp_cost_report/report/__init__.py | b6b3bea5cf052d69305aca0b935dd3a76bb26d13 | [] | no_license | dbertha/odoo-addons | c0bb926cbfafa003d1afd75d2190d51d8def187f | 3681cbad05d5748198318fc1774be77b5f6b420e | refs/heads/master | 2020-12-24T08:31:14.970208 | 2017-03-17T18:51:53 | 2017-03-17T18:51:53 | 31,593,425 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import bom_cost | [
"[email protected]"
] | |
22eca2df01e9eef8496c7245dbe6266872cb0811 | d2f4c175851b06587d46a09b5d0c892c226f0ca6 | /pa_nmf.py | 18dfb7c4ef74b27000954a02a380231bb0413d6c | [] | no_license | stermart/SPOI-AE | 9b7ebc618aef38091ff8fee3bfdfba79349c86f5 | 37a28e089df8a40a85a797726bfd989d5c45d9b5 | refs/heads/main | 2023-04-14T18:13:58.091961 | 2023-02-10T17:21:15 | 2023-02-10T17:21:15 | 598,136,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | ## NMF
import numpy as np
import os
import pickle as pkl
from sklearn.decomposition import NMF
def obj(k_NMF=2, seeded=False, max_iters=200, verbose=False):
if not seeded:
return NMF(n_components=k_NMF, init="random", max_iter=max_iters, verbose=verbose)
else:
return NMF(n_compon... | [
"[email protected]"
] | |
76a29edd0e8bbc220e530784749c7239e7e13007 | 650772c1de39412ed293bdd9f28518d3e50b2ef0 | /transformations/color_demo.py | 4f726733b2310e4fb9232d6f0ae9d75b6b914973 | [] | no_license | tuftsceeo/Onshape-PLUS-Team | 2ecb62d40ba5349cad3ebd39368b771d95d88649 | 40bcd952ca7b84660615d8812c0e3ec3ce0211e6 | refs/heads/master | 2022-12-03T07:22:49.854357 | 2020-08-22T00:47:29 | 2020-08-22T00:47:29 | 285,607,231 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,350 | py | ###############################################################################
# Project name: Color Demo
# File name: color_demo.py
# Author: Therese (Teo) Patrosio @imnotartsy
# Date: 7/21/20
# Description: Connects spike bluetooth to onshape api for 7/23 demo
# History:
# Last modified by Teo 7/24/20
# (C) Tu... | [
"[email protected]"
] | |
249071385eb8a37ac3664c4808a6a142e2effe1c | 9a212f79dfc3ea2c7441bcfc92a6f6eeaf551947 | /training/mix_dicts.py | 9d33e899681127cdffddbea0468c5d2b6581f39d | [] | no_license | ptavaresh/python_snippets | 87a6b8938e7821d4c183305d26ba73ef5040ba02 | 464b3ef13accb1db9b8b0876e0508a746b0f115c | refs/heads/master | 2020-05-09T19:26:09.350513 | 2019-07-10T16:47:46 | 2019-07-10T16:47:46 | 181,378,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | dict1 = {1:1,2:2,3:3,4:4}
dict2 = {5:5,6:6,7:7,8:8}
dict3 = {**dict1, **dict2}
#dict3
#{1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8} | [
"pedro [email protected]"
] | pedro [email protected] |
8c9ed2c590e238e301a9e40e0b825621f0adc9fd | dad76c42edf331fe3c04d148401dce1736cc2601 | /to_do_list/tasks/helper_functions.py | bf10576b218ffbd09a9581375c8ae5b1fcddd496 | [
"MIT"
] | permissive | arnaudblois/to_do_list | 2bb5c8ffd606be612808ba3ab31d1a19e7779b89 | 07a9e443110d14271a59bd8ff1a2f55ac753ea9d | refs/heads/master | 2020-02-29T17:21:46.669980 | 2017-02-17T08:30:52 | 2017-02-17T08:30:52 | 82,172,054 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 958 | py | # -*- coding: utf-8 -*-
"""
Helper functions for the tasks app: calculate_reputation_gain and
give_reputation_reward.
"""
from .models import Profile, Task
from django.db.models import F
def calculate_reputation_gain(task):
"""
Calculate the reputation gained by completing a task. Currently based on
dif... | [
"[email protected]"
] | |
2f1822c341eee9ce51603373ad52b19f2fb18236 | 5dd18b8f6c1140bf91c4b1942125ea5f221e789c | /backend/app/routers/video.py | 6c472ae15dbc2a8212b67f0d044289ec08e94e7d | [
"MIT"
] | permissive | thanet-s/subme-selected-topics-project | 3509dbc2849d01ce8e8f10fb64c8c21afa46df78 | fac1630839c580bbd66b93f2dc9004c8637a7b15 | refs/heads/main | 2023-08-18T15:57:33.567669 | 2021-10-16T05:05:49 | 2021-10-16T05:05:49 | 410,764,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | from fastapi import Depends, APIRouter, HTTPException, status, Response, File, Form, UploadFile
from ..pydatic_models import User_Pydantic, Video_Pydantic, VideoCard_Pydantic
from ..models import Users, Video
from ..jwt import get_current_user, get_current_active_user
from typing import List
router = APIRouter(
pr... | [
"[email protected]"
] | |
f5e6065e2191f1f68e81fc65acc158143819626d | a884039e1a8b0ab516b80c2186e0e3bad28d5147 | /Livros/Livro-Introdução à Programação-Python/Capitulo 7/Exemplos 7/Listagem7_17.py | 69bd31b1f28fb805b79086213f580f796b1c8375 | [
"MIT"
] | permissive | ramonvaleriano/python- | 6e744e8bcd58d07f05cd31d42a5092e58091e9f0 | ada70918e945e8f2d3b59555e9ccc35cf0178dbd | refs/heads/main | 2023-04-10T14:04:24.497256 | 2021-04-22T18:49:11 | 2021-04-22T18:49:11 | 340,360,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | # Program: Listagem7_17.py
# Author: Ramon R. Valeriano
# Description:
# Developed: 18/05/2020 - 20:19
# Updated:
m = "Uma linha\nOutra Linhas\nE mais outra linha."
print(m)
print(m.splitlines())
| [
"[email protected]"
] | |
9f791105c2b2f0c2f16ac41f662ea6db976f3488 | ebdf7a55b3b935f2866e7693188117e9cf8f5417 | /createDataBase.py | c701f13b33a997b19c4c71304bd7ede7fca06148 | [] | no_license | superpiter19/Python-Scripts | 576f6f23d4a22e6ce72af9f3acb76f1d167e7a93 | 0c58f3c5b9c571d9125cf12ec45cc7a314f8eda9 | refs/heads/master | 2023-02-04T08:36:51.964900 | 2023-01-27T10:17:25 | 2023-01-27T10:17:25 | 53,940,315 | 0 | 0 | null | 2022-02-16T15:10:11 | 2016-03-15T11:50:32 | Python | UTF-8 | Python | false | false | 2,453 | py | import sqlite3
#MAIN
conn = sqlite3.connect('PiterBet.db')
c = conn.cursor()
conn.execute('pragma foreign_keys=ON')
# Create tables
c.execute('''CREATE TABLE TFederation
(id INTEGER PRIMARY KEY AUTOINCREMENT,name text NOT NULL UNIQUE)''')
c.execute('''CREATE TABLE TCompetition
... | [
"[email protected]"
] | |
89f125544944e622de6e320e5c6208ec3c790b7f | 938db19c64a54105ebdba84948a3c3a02a14b673 | /models.py | 9e843ff314bc768a8c7e920a8329d439ec2eb6de | [] | no_license | ProductionsAutrementDit/PortalSynonymPlugin | 894666ecfb61b99c9d28f4eb79d32d88407d4892 | 2663776169f26021b0415c8286fd7e59dbe0dba4 | refs/heads/master | 2021-01-10T22:38:16.514709 | 2017-04-26T10:00:51 | 2017-04-26T10:00:51 | 69,572,205 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | from django.db import models
class Synonym(models.Model):
value = models.CharField(max_length=255)
parent = models.ForeignKey("self", related_name="synonyms", max_length=100, on_delete=models.CASCADE, blank=True, null=True)
class Meta:
ordering = ['value']
class TagField(models.Model):
fi... | [
"[email protected]"
] | |
f970d26407f174a743bcb989cdae5fd18f1cf862 | 969ae96c883fa8aee938a03af40be54dad60f0ca | /query_scripts/intersect_base.py | 13528a869bc3f58b6e98c732106540b26f4a338d | [] | no_license | fuxmanlab/altered_TFBS | 1cd695c734cbbfd23b72c683ff9a531306144337 | 2cc4a3c95836b3f980764619597b37cd967091dc | refs/heads/master | 2022-11-19T06:42:35.100582 | 2020-07-28T14:58:02 | 2020-07-28T14:58:02 | 264,718,739 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,149 | py | # Base class for loading, saving, and querying the .bed and .vcf
# files
import useful
import tempfile
import os
import glob
import shutil
class IntersectBase(object):
''' Base class for intersecting .bed and .vcf files
with the alterome datafiles using Spark-SQL.'''
def __init__(self, filename, hado... | [
"[email protected]"
] | |
403fac664e7532d39cf7a726cf9165c6b7e21555 | fa461310d67a51dc0f473e54bd02c90c12c7f7dc | /Query understanding/demo1.py | a9f1754dc771f5deedea583220bd1d8b0d3f305b | [] | no_license | yangeryang/Ads-ranking- | 624cf215eda0837e0df738a7ec96d2811d053916 | 216c10fa49c52e0fbb913ef2a7d53cd92700d576 | refs/heads/master | 2020-05-22T05:23:33.137029 | 2019-05-12T16:36:27 | 2019-05-12T16:36:27 | 186,234,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | import sys
from pyspark import SparkContext
if __name__ == "__main__":
file = sys.argv[1] #raw train file
sc = SparkContext(appName="demo1")
data_uc = sc.textFile(file).map(lambda line: line.upper())
data_filt = data_uc.filter(lambda line: line.startswith("T"))
#data_uc...
data_filt.saveAsText... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.