blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
repo_name
stringlengths
7
96
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
58 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
12.7k
662M
star_events_count
int64
0
35.5k
fork_events_count
int64
0
20.6k
gha_license_id
stringclasses
11 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
43 values
src_encoding
stringclasses
9 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
7
5.88M
extension
stringclasses
30 values
content
stringlengths
7
5.88M
authors
listlengths
1
1
author
stringlengths
0
73
6c92357915dcd8ff23b997d1555ab25e5573ab1f
115417ecd6c0e4c871d548d8df5c38875cc91a08
/blog/blog_api/viewsets.py
072e7ce987bd077d0490a236fdc39d149c360251
[]
no_license
idrissabanli/ecommerce_api_react_group
262f81ea34f0be819a5f32d2fdf88d4949b2368b
6a9c0c4ae394c3417d0a05bac9252cba53d56eb8
refs/heads/master
2022-12-25T13:16:38.326633
2022-01-25T08:55:57
2022-01-25T08:55:57
243,542,086
2
0
null
2022-12-08T03:41:52
2020-02-27T14:55:25
JavaScript
UTF-8
Python
false
false
509
py
from blog.models import Blog, Blogger from rest_framework import permissions from blog.blog_api.serializers import * from rest_framework.viewsets import ModelViewSet, ReadOnlyModelViewSet class BloggerViewSet(ModelViewSet): permission_classes = [permissions.AllowAny,] queryset = Blogger.objects.all() seri...
[ "idris.sabanli@gmail.com" ]
idris.sabanli@gmail.com
48b854181197dd32e477a33487d331b43ddbf2a4
e3cfab409afb5ff9a0b3812bf848be6ca9239cee
/pygeodesy/streprs.py
082d4e9a31b23b74f6c42cc529a3e56e69f00a14
[ "MIT" ]
permissive
mrJean1/PyGeodesy
565266a4f7f6cda5abe98e915bbd868f6cbe1760
eba35704b248a7a0388b30f3cea19793921e99b7
refs/heads/master
2023-08-23T13:58:20.069917
2023-08-20T18:50:45
2023-08-20T18:50:45
68,028,481
283
66
null
2022-04-09T00:40:52
2016-09-12T16:49:10
Python
UTF-8
Python
false
false
22,878
py
# -*- coding: utf-8 -*- u'''Floating point and other formatting utilities. ''' from pygeodesy.basics import _0_0, isint, islistuple, isscalar, isstr, _zip # from pygeodesy.constants import _0_0 from pygeodesy.errors import _AttributeError, _IsnotError, itemsorted, _or, \ _TypeError, _Val...
[ "mrJean1@Gmail.com" ]
mrJean1@Gmail.com
601313093805fa5b52a669f4aabdb2abb23443da
c4702d1a06640555829b367852138cc93ba4a161
/dym_report_control_bank_book/report/__init__.py
649ebd86e2fc758b147fe0472d1187289f512c42
[]
no_license
Rizalimami/dym
0ecadf9c049b22ebfebf92e4eab6eaad17dd3e26
af1bcf7b77a3212bc8a8a0e41e6042a134587ed4
refs/heads/master
2020-04-08T10:56:43.605698
2018-11-27T06:44:08
2018-11-27T06:44:08
159,287,876
0
2
null
null
null
null
UTF-8
Python
false
false
75
py
import dym_report_control_bank_book import dym_report_control_bank_book_xls
[ "rizal@portcities.net" ]
rizal@portcities.net
fbf38f59c9fbe582c839e6e470b99747c98c8744
de739e91015f33e3ba4b72c1585288c27a995698
/src/contacts/views.py
dbddb0926b146c0d87b98c156c839e6ff136a2b5
[]
no_license
bartoszper/Django-FullBackend-Home-s-App
771b2bab280938a1b56865fe5af8e73510504c45
e1059a4dc3b5d62c22de376104656234183c3789
refs/heads/main
2023-02-15T03:42:11.110947
2021-01-07T14:03:33
2021-01-07T14:03:33
324,780,597
0
0
null
null
null
null
UTF-8
Python
false
false
1,622
py
from django.shortcuts import render, redirect from django.contrib import messages from .models import Contact from django.core.mail import send_mail # Create your views here. def contact(request): if request.method =='POST': listing_id = request.POST['listing_id'] listing = request.POST['listing']...
[ "bartosz.perenc@gmail.com" ]
bartosz.perenc@gmail.com
4578ef9e5f77420c4060536efef1bb30511a1791
fcd4d1bd5d600167b1c7c426ede24eb24b93533c
/test/test_core.py
24f851bb81460fb4371fed69f30ae380ce262d51
[ "MIT" ]
permissive
flying-tiger/tec_util
ed3a0c754c82491263a6eebc0c8a1c086977dfb7
293c39d11f5f080d7b6c2e3ba5aeea7419e56023
refs/heads/master
2023-04-14T15:10:34.944183
2023-03-24T05:33:02
2023-03-24T05:33:02
97,327,361
3
3
null
null
null
null
UTF-8
Python
false
false
10,789
py
import math import tecplot as tp import tecplot.constant as tpc import tec_util import tempfile import test import unittest def load_and_replace(dataset_name): return tp.data.load_tecplot(dataset_name, read_data_option=tpc.ReadDataOption.Replace) class TestDifferenceDatasets(unittest.TestCase): ''' Unit tests...
[ "jeffrey.p.hill@nasa.gov" ]
jeffrey.p.hill@nasa.gov
0b07d60a906b142fe9a3afb10c3e60954ff00437
c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd
/google/cloud/resourcemanager/v3/resourcemanager-v3-py/google/cloud/resourcemanager_v3/services/projects/transports/grpc.py
b8b9c4703520260c1770ea86f373b20bcb2f9fdf
[ "Apache-2.0" ]
permissive
dizcology/googleapis-gen
74a72b655fba2565233e5a289cfaea6dc7b91e1a
478f36572d7bcf1dc66038d0e76b9b3fa2abae63
refs/heads/master
2023-06-04T15:51:18.380826
2021-06-16T20:42:38
2021-06-16T20:42:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
29,856
py
# -*- coding: utf-8 -*- # 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...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
5940e046c703f060ca753fc376250d9a4521d510
17044b6e4bc0c1e21721f0936784d674426905f6
/venv/bin/trial
c6574dda2adaafd7beac587085bcc2f0f9f4c506
[]
no_license
Moni1995/covid_info_scraper
2ed0f68f7bcd2a7dc81cb6af69cd5b292d443fee
9c4e246283c18846c59c2fcc77e2d681741a89d7
refs/heads/master
2021-04-09T18:20:04.895628
2020-04-07T21:11:55
2020-04-07T21:11:55
248,864,857
0
0
null
null
null
null
UTF-8
Python
false
false
247
#!/Users/moni/Desktop/spider/venv/bin/python # -*- coding: utf-8 -*- import re import sys from twisted.scripts.trial import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "monica.yiyuanweng@usask.ca" ]
monica.yiyuanweng@usask.ca
ba4e6bcc6fefc8c0f12f444e54eccfff3a42cd05
6c67574a224ac943fd37f12ff7511c64d788506a
/uiprog/streamlitdemo/tests/test_redshifts.py
29bc7ca95687630f2510aec49926b56ea999cd8a
[ "MIT" ]
permissive
colinleach/tinkerings
b0354d9c13b2ae0d71b2647f9508099cedde8ae0
38f1595dd11f5cb1ebe435f834cfde2d3c5b1899
refs/heads/master
2023-04-12T23:01:07.675844
2023-04-12T13:33:00
2023-04-12T13:33:00
229,802,539
0
0
MIT
2023-01-31T04:21:21
2019-12-23T18:19:27
Jupyter Notebook
UTF-8
Python
false
false
824
py
import numpy as np import astropy.units as u from astropy.units import Unit from pytest import approx from streamlitdemo import redshifts rs = redshifts.Redshifts() def test_init(): # currently 6 cosmologies, astropy may change this in future cosm_count = len(rs.cosmologies) assert cosm_count >= 6 ...
[ "colin.leach@comcast.net" ]
colin.leach@comcast.net
6e10852633ec27578c9b29311731fbc6a9728556
80f9b05dcbbc6ff543120e0755e38adf4db3cd73
/run_ner.py
eb3601d387e74aea2f27c7a89969648b9de98449
[ "Unlicense" ]
permissive
cacco-kozaka/ren-treb
9f7166a0e7d87d1a1d4d3b4fba44f685cd243900
5af167aca311f98a87065455969e3a3330d67542
refs/heads/main
2023-02-18T22:33:11.914179
2021-01-18T04:37:19
2021-01-18T04:37:19
330,552,255
0
0
null
null
null
null
UTF-8
Python
false
false
27,814
py
from __future__ import absolute_import, division, print_function import argparse import csv import json import logging import os import random import sys import numpy as np import torch import torch.nn.functional as F from pytorch_transformers import (WEIGHTS_NAME, AdamW, BertConfig, ...
[ "eric.c13@gmail.com" ]
eric.c13@gmail.com
05a365a39f280182d1f4070a9632757d8047cb8a
93e62e12c9e70f8adcb514692314fc7e3665b85b
/src/example/transmogrifier/importurban.py
1b959fdf9b48f4699634685459c1174a255de912
[]
no_license
jjaumotte/example.transmogrifier
4087a0a9f4c9966874b31017ddc1bd8fbec65ac7
c9ad6259d3cc199025fb907b647e52af58f7c18b
refs/heads/master
2021-01-14T13:58:16.445241
2016-07-18T08:38:24
2016-07-18T08:38:24
63,138,221
0
0
null
2016-07-12T07:53:33
2016-07-12T07:53:32
null
UTF-8
Python
false
false
1,208
py
from collective.transmogrifier.interfaces import ISectionBlueprint from collective.transmogrifier.interfaces import ISection from zope.interface import classProvides from zope.interface import implements from collective.transmogrifier.utils import Expression, Condition class ImportUrbanSection(object): classProv...
[ "julien.jaumotte@imio.be" ]
julien.jaumotte@imio.be
215444e18369626b84e7db4e1d0ed595cabc24ae
ddd69cbb6acab8c321cd667d48899c4a245003d6
/telemetry/telemetry/internal/platform/cast_platform_backend.py
211dbd4b2fc7027f72baf14e6f05564e45ce9b2e
[ "BSD-3-Clause" ]
permissive
hyl946/catapult
71895532b76dc7e6ad017f90cf3573f7aa0e5af2
22aa2610ecac1299d73eb94e1d82bb07edad62f1
refs/heads/main
2022-04-20T13:23:50.444266
2022-04-12T22:39:04
2022-04-13T00:42:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,102
py
# Copyright 2019 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. from __future__ import absolute_import import logging import platform try: from pexpect import pxssh # pylint: disable=import-error except ImportError as ...
[ "catapult-scoped@luci-project-accounts.iam.gserviceaccount.com" ]
catapult-scoped@luci-project-accounts.iam.gserviceaccount.com
6fdb000f918c40b42e6cb2b970ba10d123c1b355
267f9752460bc161af1f81eab822663b943618c0
/Lista2/Tester.py
5d340c9001af1bedb4ee70c7fe5873625094a23a
[]
no_license
damianKokot/TS
e9d610519f78ae7c8ce74209a16ae867924ee81b
0dd5e56df7d98db2c316a96a8de93aac6913cc80
refs/heads/master
2022-07-18T20:31:17.418208
2020-05-18T09:23:00
2020-05-18T10:30:39
256,575,803
0
0
null
null
null
null
UTF-8
Python
false
false
3,894
py
import networkx as nx from networkx.readwrite import json_graph import numpy as np import random from copy import deepcopy import json edgeSpeed = 0 def loadGraphModel(): with open('networkData', 'r') as networkFile: networkData = json.load(networkFile) graph = json_graph.node_link_graph(networkD...
[ "kokocik1213@gmail.com" ]
kokocik1213@gmail.com
529d1fdd77f81a07145c991e2bdee4399f9c54e6
67731d1c93094cf42cec62aefd277c8db4367e34
/nlp_submission_fadhelharizdzulfikar_v2.py
148e408bafb19173118e77a0a6bc276ecb9127c7
[]
no_license
Ndhel97/submissions_BPLM
2fad018ebed6f1cb37cf7a2452b8281dee2d1362
2a27b218777f96e551374628c7e2e20a912e17f1
refs/heads/master
2023-02-27T22:50:00.486240
2020-09-29T02:23:45
2020-09-29T02:23:45
337,601,367
0
0
null
null
null
null
UTF-8
Python
false
false
6,940
py
# -*- coding: utf-8 -*- """nlp-submission-fadhelharizdzulfikar_v2.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1wGOFvKiAkdLhV1KG9eMaqBujDrbT4c23 """ from google.colab import drive drive.mount('/content/drive') import pandas as pd df = pd.read...
[ "hariz.dz97@gmail.com" ]
hariz.dz97@gmail.com
f417d703c2a3646665254a487f6ff83029952ce2
13132aa50944d60c1d72f53cdc19e78172be2487
/src/tests/core/search/search_test.py
b66ad5001d3c85b9313a5e3ad80d131928009f7a
[]
no_license
mikemeko/6.01_Tools
c8cff53d05a52e25d4ccd370f778569246e6f5a1
95461a6f748b51b3d98d16ef9db37e051f3e6dd3
refs/heads/master
2021-03-24T09:46:50.169250
2014-02-10T02:56:58
2014-02-10T02:56:58
7,247,933
0
0
null
null
null
null
UTF-8
Python
false
false
1,125
py
""" Unittests for search.py. """ __author__ = 'mikemeko@mit.edu (Michael Mekonnen)' from core.search.search import a_star from core.search.search import Search_Node from unittest import main from unittest import TestCase class Test_Search_Node(Search_Node): """ S / \ / \ A B | / \ | / ...
[ "mikemeko@mit.edu" ]
mikemeko@mit.edu
5cc0cfd2cde036f6f550f6a6a8b808d5e20882fc
5fc21a604a8644edc8ad7414b0272fc2a3e67760
/master/inplace-config/templates/master.cfg.j2
4faa40c669d096a1a5b4c6173cf3ff2460965f11
[ "MIT" ]
permissive
jpic/ansible-buildbot
e66e18540942690ddd1054885a5b1752cbb8c449
b691306d3a5ca86a8b4e42643f1b20b11646bb0a
refs/heads/develop
2020-03-28T15:35:48.163276
2015-06-28T06:58:09
2015-06-28T06:58:09
65,032,559
0
0
null
2016-08-05T16:18:02
2016-08-05T16:18:01
null
UTF-8
Python
false
false
725
j2
# -*- python -*- # ex: set syntax=python: # {{ ansible_managed }} import os from buildbot.plugins import * from {{ buildbot_master_inplace_name }}.common import config, loaders from {{ buildbot_master_inplace_name }}.factories import reconfig reload(config) reload(loaders) reload(reconfig) cfg = config.BuildbotConfi...
[ "philipp.boehnke@hicknhack-software.com" ]
philipp.boehnke@hicknhack-software.com
fb078c5e35ee4a3abfc8bb8dce0c5cfb6e846091
8e127742a638a3c35d6ad002e34c736d3c84db97
/build/build_game_permutations/string_permutations.py
58d50fa21732a8a2cae9a62981b8c0ab4d356f67
[]
no_license
Adarsh2910/tictactoe
e4331ea0f1a9a71b19d51837211deb3fa807ec0f
597b465541e7658ae510bc04319d3f7ba2286c96
refs/heads/master
2020-03-26T06:10:18.006172
2018-08-13T14:43:48
2018-08-13T14:43:48
144,592,834
0
0
null
null
null
null
UTF-8
Python
false
false
766
py
#SOURCE: ## http://www.geeksforgeeks.org/write-a-c-program-to-print-all-permutations-of-a-given-string/ # Python program to print all permutations with # duplicates allowed def toString(List): return ''.join(List) # Function to print permutations of string # This function takes three parameters: # 1. String #...
[ "adarshbhalotia2910@gmail.com" ]
adarshbhalotia2910@gmail.com
352f49df71d8216ca3c17a3626f578b5ce858adf
cd1095198b723745882787215ffbe8b2475bf544
/US_Immigration_Trends/Model_Source.py
caf958328e8c8b10becf6eed31878be410864fc7
[]
no_license
krishns18/Data_Projects
e1a5d8b3a30b3e1e7a1e44af49d5f7685d76b8db
a2bdeb7fa107d2d3ccd111fe007f136d408fb8b7
refs/heads/master
2020-12-23T11:28:59.985931
2020-09-17T03:22:47
2020-09-17T03:22:47
237,136,452
1
0
null
null
null
null
UTF-8
Python
false
false
922
py
class ModelSource: def __init__(self,immi_trans,demog_trans,airport_clean): self.immi_trans = immi_trans self.demog_trans = demog_trans self.airport_clean = airport_clean def model_fact(self): # Function to model fact table immi_fact = self.immi_trans.join(self.d...
[ "10409934+krishns18@users.noreply.github.com" ]
10409934+krishns18@users.noreply.github.com
b948d559685a567428fab7d26c078d1cf6e55f8a
1002160fec10d11ded23ffe3b555cb382a3568ca
/PY4E/exercisesANS/ex7_1.py
731df58f14268b339349f92e46cfbf5d1cc4172c
[]
no_license
AREKKUSU-hyper/Python-Libraries
8358a1093f9083286dd02e263f6c9d11d5221bd3
07bada98d250d8370706294d78bce04c6b39b0e4
refs/heads/master
2022-11-17T02:13:59.933905
2020-06-28T09:26:43
2020-06-28T09:26:43
275,550,573
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
f=open("mbox.txt","r") # inp=f.read() # Reads the entire file into the variable inp as a string # print(len(inp)) # how many characters # print(inp[:10]) # 換行符號算一個字元 for line in f: line=line.rstrip() # 去掉文件中的分行符號(空白) if line.startswith("From"): # if not line.startswith("From"): # opposite # con...
[ "ettoday.alex@gmail.com" ]
ettoday.alex@gmail.com
26d4b5bda0b588df51d043b24e83719cc9ec940b
9953a5220d9811ede9760f4916c08b3bf8981eda
/src/model.py
0a48153f2b1233f08ef4ff5f15101c1264f3dfd8
[ "MIT" ]
permissive
sonalif/gpt-2
97450338dac1dddfa129c85aac62c9ecf6bf1ab3
e8969b13bcca554795bf06cc1b12bdd9a21bd63b
refs/heads/master
2023-05-30T15:22:01.278426
2020-02-12T21:39:46
2020-02-12T21:39:46
240,081,801
0
0
MIT
2023-05-22T22:17:08
2020-02-12T18:11:37
Python
UTF-8
Python
false
false
6,634
py
import numpy as np import tensorflow as tf from tensorflow.contrib.training import HParams #from hparams import HParams def default_hparams(): return HParams( n_vocab=0, n_ctx=1024, n_embd=768, n_head=12, n_layer=12, ) def shape_list(x): """Deal with dynamic shape ...
[ "sonali.fotedar@gmail.com" ]
sonali.fotedar@gmail.com
543c3b56bb2486234ee20e5aec6adb3ef20f7edf
939eec126d7bd9a46847c3a98be07b2fba2dc08f
/EigVal.py
d9d76a80a6b8e26e9cecd7d40f2c2426f3613086
[ "MIT" ]
permissive
OceanNuclear/Statistics
0fbfeed6bc25028fdb15f785239f9a8ca36b9354
6ae5d16c78b8c68f7504b2d6cbe7efd4914d8cb5
refs/heads/master
2021-08-03T06:58:16.328017
2021-07-26T15:02:31
2021-07-26T15:02:31
163,417,809
0
0
null
null
null
null
UTF-8
Python
false
false
1,242
py
import numpy as np import matplotlib.pyplot as plt import numpy.random as rn from numpy import array as ary from numpy import sqrt from numpy.linalg import svd, eig, eigvals, inv, pinv def set_offdiag(mat, triu, inplace=True): '''sets the off-diagonal elements of a symmetric matrix when the top triangle's ...
[ "annoyingamygdala@gmail.com" ]
annoyingamygdala@gmail.com
8de0766a8ba323676ac585c2f0a37b9c61c626fb
60de64366da69a2032612ef51bbdd3f7b880a538
/tests/test_wsdl_soap.py
9902c5a4bdb3fab5080d8f3d98a793337b20ec5c
[ "MIT", "BSD-3-Clause" ]
permissive
VertigoRay/python-zeep
52264b459ab19db89c5d0049dd679a2bafa77bca
1970e10d5c68a1944be721c95d917b23316e0891
refs/heads/master
2021-01-17T10:57:52.583089
2016-05-15T05:38:29
2016-05-15T05:38:29
58,754,770
0
0
null
2016-05-13T16:12:05
2016-05-13T16:12:04
null
UTF-8
Python
false
false
5,494
py
from collections import OrderedDict from lxml import etree from tests.utils import assert_nodes_equal, load_xml from zeep import xsd from zeep.wsdl import definitions, soap def test_document_message_serializer(): msg = soap.DocumentMessage( wsdl=None, name=None, operation=None, n...
[ "michael@mvantellingen.nl" ]
michael@mvantellingen.nl
3b7b299082fdbb74aaa5ba25f15669ec25330839
c1f33bfa0d9fdf04cb31fc5353a9a75766e09724
/batch_predict.py
b9c3796259d2c6bbb18e22a1b733945c296358c8
[ "Apache-2.0" ]
permissive
pantelisantonoudiou/deep-seizure-detect
151fe6a594f7e1eac676ed891163592fd1e4329c
040d746833f5d35172fe944da0798f4909770f9c
refs/heads/main
2023-03-29T08:57:43.482101
2021-03-27T16:18:09
2021-03-27T16:18:09
314,353,139
1
0
null
null
null
null
UTF-8
Python
false
false
5,579
py
# -*- coding: utf-8 -*- """ Created on Thu May 7 10:18:28 2020 @author: Pante """ ### ------------------------ IMPORTS -------------------------------------- ### import os, sys, tables, json # set tf verbosity to 2 os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import numpy as n...
[ "pantelis71@hotmail.com" ]
pantelis71@hotmail.com
dbe9ffb9b7edcdaa408e5678e10e269eb60b1c36
9923e30eb99716bfc179ba2bb789dcddc28f45e6
/openapi-generator/python/test/test_tagged_sensor.py
6d315d9a6115515245f7b517c20e6d325020b960
[]
no_license
silverspace/samsara-sdks
cefcd61458ed3c3753ac5e6bf767229dd8df9485
c054b91e488ab4266f3b3874e9b8e1c9e2d4d5fa
refs/heads/master
2020-04-25T13:16:59.137551
2019-03-01T05:49:05
2019-03-01T05:49:05
172,804,041
2
0
null
null
null
null
UTF-8
Python
false
false
6,422
py
# coding: utf-8 """ Samsara API # Introduction Samsara provides API endpoints for interacting with Samsara Cloud, so that you can build powerful applications and custom solutions with sensor data. Samsara has endpoints available to track and analyze sensors, vehicles, and entire fleets. The Samsara Cloud AP...
[ "greg@samsara.com" ]
greg@samsara.com
0adc5b2c1ea7a864c1215b5fab74dd2b88412ed9
cf6fd897717ba042bd0e0c3bbee62159eeafc819
/gyp_main.py
bd8b4413bc25e1e639ea179659cab2daec8c348d
[ "BSD-3-Clause" ]
permissive
graysonlang/gyp_slim
ab0fc03ab1ac8835915f6f40f3a35c4590cfa22d
2d278cdf0dbd3e4a46a7606fde54414d4177cf9d
refs/heads/master
2020-03-22T01:24:03.485459
2018-07-01T05:32:27
2018-07-01T05:32:27
139,299,293
0
0
null
null
null
null
UTF-8
Python
false
false
479
py
#!/usr/bin/env python # Copyright (c) 2009 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import sys sys.dont_write_bytecode = True # Make sure we're using the version of pylib in this repo, not one installed # elsewhe...
[ "grayson1@adobe.com" ]
grayson1@adobe.com
ec8719208c3860fbec7f8a287ab12049779c26ef
79b127f5fa03f57ddd1899bd06262414ffd07c92
/users/migrations/0006_auto_20200511_0053.py
12c577f12ca6ba9910ad2e3468e6ec43ad60b50d
[]
no_license
bruteforcerxx/ponzi
f423d6632bfd6d2f70b9b9972dd1c5d4b373f019
d326eb8324b07f81d54cbad17c3caabd76082656
refs/heads/master
2023-04-15T13:41:25.216493
2020-06-13T09:51:44
2020-06-13T09:51:44
263,668,586
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
# Generated by Django 3.0.6 on 2020-05-10 23:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0005_user_phone'), ] operations = [ migrations.AlterField( model_name='user', name='wallet_address', ...
[ "emeruchecole9@gmail.com" ]
emeruchecole9@gmail.com
b1eed5827c2b0b8e0557413e01f4c513746e7cf0
eaf468948a97ce53cd50a79e525df00546b3db1c
/blog/migrations/0001_initial.py
3ff4d30453c20225ea9f1bfa777338747186e541
[]
no_license
hamohambardzumyan99/6frameGIT
8ce16efdfbf2bc450fb9a3461529b29588cca4d3
8c1a87229b7687c27e1e70c7bb922ba53ad0e530
refs/heads/master
2020-12-30T14:45:04.077438
2017-05-25T07:04:41
2017-05-25T07:04:41
91,083,367
0
0
null
null
null
null
UTF-8
Python
false
false
1,208
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Free', fields=[ ('id', models.AutoField(verbose...
[ "hamohambardzumyan99@outlook.com" ]
hamohambardzumyan99@outlook.com
88030c1952cb064637b6fb1a271709fe38f46c1c
7af38f9b08cce1172e3416b9ebdd8284023d3c61
/src/viewprobe.py
0e48b051dc07f330ed1669fb4476c8a5c53fb638
[ "MIT" ]
permissive
HubBucket-Team/NetDissect
e03510934e01c962c6c86731b72c423edfcb6e20
23f345f0e4b0f45cd51c455948409d1a75f5b13a
refs/heads/release1
2020-12-30T11:16:03.600807
2017-05-08T11:11:53
2017-05-08T11:11:53
91,546,782
1
1
null
2017-05-17T07:31:21
2017-05-17T07:31:21
null
UTF-8
Python
false
false
18,776
py
''' viewprobe creates visualizations for a certain eval. ''' import glob import os import numpy import re import upsample import time import loadseg from scipy.misc import imread, imresize, imsave from loadseg import normalize_label import expdir class NetworkProbe: def __init__(self, directory, blobs=None): ...
[ "davidbau@mit.edu" ]
davidbau@mit.edu
11550ccfbab76dc93f527a2a7add9e008dc5a3fe
34ed69140f0e975c6d1bb2e2b10402aaf93aa8bc
/whole_img_dataset_builder.py
41200a768fbdaa9aae928b4e32d5457136c931cf
[]
no_license
evankozliner/transfer-learning-baseline
95cc86295bede84ec0590b5c8137964fd60f155b
90b50a2aa29662a0c6bb0f2e16669e23779d2276
refs/heads/master
2021-01-20T06:59:55.996851
2017-06-07T22:08:23
2017-06-07T22:08:23
89,946,337
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
""" Builds a simple whole image directory for the transfer learning script to sanity-check the problem """ import pandas as pd import shutil DATA_DIR = 'final/' OUTPUT_DIR = 'whole-img-dataset/' if __name__ == "__main__": gt = pd.read_csv('final.csv') for i, row in gt.iterrows(): if row['melanoma']: ...
[ "evankozliner@gmail.com" ]
evankozliner@gmail.com
ec409cd30676c7bfbf9b75859e532d178fcbe632
8c61c9d614d98e00f8ad243ff8f0fe2e9370dc62
/apps/order/models.py
7bb2591b8fd17959aa6cd92fa651bc6d3ea701c4
[]
no_license
Alovelyfish/ttsx
4e550ee2393c98f3de46934232b00e4aa7e9cdb7
1338aa984f8bd278e356415f89cd26cfac3f26c6
refs/heads/master
2022-11-20T20:45:53.461839
2020-07-24T02:41:39
2020-07-24T02:41:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,076
py
from django.db import models from db.base_model import BaseModel # Create your models here. class OrderInfo(BaseModel): '''订单模型类''' PAY_METHOD_CHOICES = ( (1, '货到付款'), (2, '微信支付'), (3, '支付宝'), (4, '银联支付') ) ORDER_STATUS_CHOICES = ( (1, '待支付'), (2, '待发货'...
[ "wuhan" ]
wuhan
0aa969c3e63c975bff86df4d81520f3f00465199
90a7e536e79d37204395d9d36dd7c5aaa786227c
/爬虫项目/LGZP.py
ea7dabcc4a5e0ce402d57de20226c45fc101c326
[]
no_license
jiashanliang/-
1ca9588771deb76defbfc73d0cbb4fc07f8d319f
17b9b7c182d01b94c3baf43e02c9f5a10ba55dc1
refs/heads/master
2020-04-10T17:04:23.320425
2018-12-11T02:50:37
2018-12-11T02:50:37
159,295,523
0
0
null
null
null
null
UTF-8
Python
false
false
3,299
py
import pymysql import requests import json # 接口 : https://www.lagou.com/jobs/positionAjax.json?needAddtionalResult=false from sqlalchemy.dialects.mssql import pymssql def Initialization(page): post_url = "https://www.lagou.com/jobs/positionAjax.json?needAddtionalResult=false" headers = { ...
[ "noreply@github.com" ]
noreply@github.com
b2bfe839dbda6707027eafc403910e3c91d305b5
048d697c2d7bcf0b32d7aaec87acbd930d7af800
/.ipynb_checkpoints/transforming-checkpoint.py
1c17a1ccfb53984affebac52ee20357c774564ea
[]
no_license
Radzsingh/DataflowPipeline
d081ce1ee3749e25929769c815c4774d25130404
07f045f9b973de8685d36714c96cfade3d6d0384
refs/heads/master
2023-03-27T16:08:33.730879
2021-03-27T23:48:18
2021-03-27T23:48:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,123
py
{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "historical-speaking", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Started Running\n" ] }, { "data": { "application/javascript": [ "\n", ...
[ "shashwatsagar7992@gmail.com" ]
shashwatsagar7992@gmail.com
99ce8996cc92d1351b1811d6b1e7745d244e1d03
c3668ccd84d108c0d22ca13309912c9afa257830
/testing/test.py
f760436ad510b18a5198415d5f3b6a262fc6e00c
[]
no_license
pratyush1687/LibraryManagementSystem
3c0f33a0f9b954dfffcf79603649e4e14e11e0ca
831d085b6f675d22adf0d9cd7001e3a11021f203
refs/heads/master
2021-01-20T01:51:55.990063
2017-10-25T13:16:52
2017-10-25T13:16:52
101,304,120
1
1
null
2017-10-25T13:14:08
2017-08-24T14:29:11
Python
UTF-8
Python
false
false
501
py
# import pickle # arr=[1,2,3,4] # p=[3,4,5,6] # f=open("try.dat", mode="w+") # pickle.dump(arr,f) # pickle.dump(p,f) # f.seek(0,0) # while True: # try: # obj=pickle.load(f) # obj[0]="ab" # pickle.dump(obj, f) # except EOFError: # # f.close() # break # f.seek(0,0) # while ...
[ "pratyush1687@gmail.com" ]
pratyush1687@gmail.com
1632e27cb7ff7a99f1399e810c48a01889bdea52
9d5305f5fc99f3e79fc3daf19049825ae7cab20e
/post/templates/migrations/0001_initial.py
5ae80a9bfed1c61183071e350f022d69351314ae
[]
no_license
Salwasalwa/mini_projet_djagno
f2dd385bb3eefde40d983e94b52a5355a7ddcdb4
90075975bf624d1d51c7c406588b4951e04589ca
refs/heads/master
2021-01-20T09:31:43.364445
2017-05-18T13:52:08
2017-05-18T13:52:08
90,259,469
0
1
null
null
null
null
UTF-8
Python
false
false
670
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-05-04 14:04 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Post', ...
[ "salwaoudad@gmail.com" ]
salwaoudad@gmail.com
c9d2ebc9232e0ecf7e9f0a67501dfb735983a292
719367fa61685cab1e36aa29a411e7a022171548
/src/try_load.py
c7d464a1aa21a7b49e39c1eb36418059556afb77
[ "BSD-3-Clause" ]
permissive
VinACE/san_mrc
3cdfea101e86fdba30cab7e808a489b89ca46cc6
e99cf73d3bc362d2566a93fe07de102bdd7a23d5
refs/heads/master
2021-10-10T04:10:53.682847
2021-09-30T13:34:22
2021-09-30T13:34:22
183,762,662
1
0
BSD-3-Clause
2019-04-27T11:09:54
2019-04-27T11:09:53
null
UTF-8
Python
false
false
635
py
# import sys # sys.path.append('/home/madhevan/Documents/py_packages') from src.batcher import BatchGen path = '../../dev-v1.1.json' batch_size = 10 gp = False tr = False #f = BatchGen(path,batch_size,gpu = gp,is_train = tr) import json with open(path, 'r', encoding='utf-8') as reader: # filter data = [] ...
[ "john.premkumar@objectfrontier.com" ]
john.premkumar@objectfrontier.com
7aa098561b45184b7e74065811dfaa8010e27a1a
14dc72b1762e6aae8550582fbdfd4c1f77581afa
/myfirstdjangoapp/urls.py
7fcdd91f37358b52d4176d7b857875fc22754162
[]
no_license
pysammie/myfirstdjangoapp
f346b940163eb02409cf15383ca1b06f93f1f75f
5c587a1cf301c58d8dd5f7c93458bfa5d7dbe5ca
refs/heads/main
2023-04-10T03:50:02.853184
2021-04-21T22:10:46
2021-04-21T22:10:46
360,318,438
0
0
null
null
null
null
UTF-8
Python
false
false
785
py
"""mynewproject URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
[ "you@example.com" ]
you@example.com
5f4b3fc502b3ae070b126bf2b1f104b62fb3c6eb
9e63ab3790065f8f2227c961d4ccc376bd20f02b
/src/data/dataset.py
58edfb21f48741315d87e6dfea8a38a7ffd779d7
[]
no_license
DanKing1903/cwi
758e602e1b44b28eff2156d98fa882faae867540
a0ca817a98da0f968f6f5cfdee4650198a3c837c
refs/heads/master
2020-03-21T09:59:43.899524
2018-11-22T08:05:32
2018-11-22T08:05:32
138,428,540
0
0
null
null
null
null
UTF-8
Python
false
false
6,256
py
"""Dataset Reader This module contains the class(es) and functions to read the datasets. """ import csv import pandas as pd import spacy import pickle from spacy.tokens import Doc class Dataset(object): """ Utility class to easily load the datasets for training, development and testing. """ def __i...
[ "noreply@github.com" ]
noreply@github.com
24ca41257924ee85e52bd59f9f29cc900200f81c
065e64fd345678771a7449eb093c85195286c071
/_test/stress_test.py
67d7e6cf87a09719d0084e88eea19757b779aa2e
[]
no_license
bluemellophone/gzc-client
de80e678fcbaaa7ab32c360265b7645b9ba5aa0e
46a2a8a4505f874c098bc73efedb50f4214e1451
refs/heads/master
2016-09-05T22:19:46.975038
2015-02-28T09:04:51
2015-02-28T09:04:51
29,980,718
2
0
null
null
null
null
UTF-8
Python
false
false
1,355
py
#!/usr/bin/env python import json import string import random import requests from os import listdir from os.path import join alphabet = string.ascii_lowercase def get_data(color, number, person): data = { 'car_color': color, 'car_number': number, 'person_letter': person, 'image...
[ "weideh@rpi.edu" ]
weideh@rpi.edu
987416f131ff62bd851ca65541449b4d3f48b845
e3c507d659e07225afff3dbd629f550463cf8d34
/blog/migrations/0001_initial.py
aad83807df822d2036e4e4b07946d759e711c627
[]
no_license
claudialgds/my-first-blog
a0a68cfe2156ef528ab02ab99df5ea281101ef82
22a815b71f2e5794c8c410c30daec391b0f2d618
refs/heads/master
2020-09-15T00:13:41.463963
2016-08-29T21:33:10
2016-08-29T21:33:10
66,882,528
0
0
null
null
null
null
UTF-8
Python
false
false
1,049
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-08-27 18:58 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True depen...
[ "claudia.l.g.santos@gmail.com" ]
claudia.l.g.santos@gmail.com
c22b66d7b9df25fc27b77fb4dcad7e9d471f51a8
191c95c78d348562f21fb114a12055bc2cb28da6
/sumsqrdig.py
b3d3948c8c449c239a18c78b88582f9a13a76378
[]
no_license
AbinayaKP/Set1
0936744e4d67da3751758ae6a5896aa98cfc9cac
887d3b2daeb2aa92772230359c29500a963121db
refs/heads/master
2020-04-20T07:44:44.530532
2019-06-06T11:03:36
2019-06-06T11:03:36
168,718,762
0
1
null
null
null
null
UTF-8
Python
false
false
56
py
x=raw_input() z=sum(int(i)**2 for i in str(x)) print(z)
[ "noreply@github.com" ]
noreply@github.com
6b60e2e9fbdaad89e59509bed877e18ac72d33c4
63bdf28fdc1cd225fad5aabb9c2b849a5740bb92
/pl186.py
941d987f4103e370a75d64667813ce4489128f66
[]
no_license
jyothi1998/python1
c7f9cee8ed85767c5f087b19402f1938592720a9
0abf487598e350b19100eacb56d4e7eab99cbad8
refs/heads/master
2020-03-27T02:57:49.722063
2018-12-17T05:18:04
2018-12-17T05:18:04
145,829,247
0
4
null
null
null
null
UTF-8
Python
false
false
83
py
str=raw_input() if(str in 'Vishal','Sundar'): print "yes" else: print "no"
[ "noreply@github.com" ]
noreply@github.com
412de84ef91a9b55ca6ed9b2e9535f117a1ec4e8
583e5a6c55d400b44f8ce8f936c8c232d90c6cb4
/setup.py
a9e0909b313e15b0014f04a51b1489e7eef10fd0
[ "MIT" ]
permissive
NickVoron/sandbox
aadbbc89576a7062eeda570a9390ecb6e144482c
86bbcd64c97de6d33fa35a6308291178aa964095
refs/heads/master
2021-01-22T14:54:58.759205
2017-09-24T15:54:14
2017-09-24T15:54:14
102,370,463
0
0
null
null
null
null
UTF-8
Python
false
false
1,906
py
#!/usr/bin/env python3 import subprocess, contextlib, logging, os, shutil, msbuild from pathlib import Path logging.basicConfig(level=logging.INFO) @contextlib.contextmanager def cwd(new_cwd): """Context manager for current working directory.""" old_cwd = Path.cwd() logging.info('Change cwd: %s', str(new...
[ "voronetskiy.nikolay@gmail.com" ]
voronetskiy.nikolay@gmail.com
9e15bdb8ad4adcd44dc951620563b54217ec1841
45d00c4b8c9464d3ecdcc370e7a33f04c41ec433
/_example/sdk/python/CarInformationAPILib/APIException.py
dce719b555543e696ee331afc6d984b82473f74a
[ "Apache-2.0", "MIT" ]
permissive
commonledger/accounting-api-sdks
6cac5373f17aae85032fb19947ea3f29fb07a57f
db078c2523ae60ba9a5b5d201d180b6dac69b996
refs/heads/master
2020-04-21T14:32:37.371655
2014-11-02T22:02:32
2014-11-02T22:02:32
26,002,106
0
1
null
2014-11-02T22:02:32
2014-10-31T04:32:44
Java
UTF-8
Python
false
false
869
py
''' CarInformationAPILib This file was automatically generated by APIMATIC BETA v2.0 on 11/01/2014 ''' class APIException(Exception): def __init__(self, reason , responseCode): ''' :param reason: String containing the reason for raising an exception :param code: The HTTP res...
[ "drew@commonledger.com" ]
drew@commonledger.com
33e50feaba3f5e4aa2db0651cf4fb18fcdcdda02
ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f
/PORMain/pirates/pvp/PVPInviter.py
0f67bb934799713dcb4996ee7f7dd4bea8e35126
[]
no_license
BrandonAlex/Pirates-Online-Retribution
7f881a64ec74e595aaf62e78a39375d2d51f4d2e
980b7448f798e255eecfb6bd2ebb67b299b27dd7
refs/heads/master
2020-04-02T14:22:28.626453
2018-10-24T15:33:17
2018-10-24T15:33:17
154,521,816
2
1
null
null
null
null
UTF-8
Python
false
false
15,768
py
from panda3d.core import TextNode from direct.gui.DirectGui import * from direct.task.Task import Task from direct.fsm import ClassicFSM from direct.fsm import State from direct.directnotify import DirectNotifyGlobal from otp.otpbase import OTPLocalizer from otp.otpbase import OTPGlobals from otp.uberdog.RejectCode imp...
[ "brandoncarden12345@gmail.com" ]
brandoncarden12345@gmail.com
3366215c57d1585842ec4e3e63f72078d46d1d4a
b25704097a87b2819600c92f8943596bfdf6794d
/villageapp/urls.py
79b9fef5c5018b4f8dc42cd65470129b0a8b81fd
[]
no_license
jarrishmakingsly/village-projects
ffefe849aad9194c73b44165246f015c87612747
85930b43bc230b00f1cb8a98e3ca855175847c1d
refs/heads/main
2023-04-20T08:54:21.017012
2021-05-04T13:25:56
2021-05-04T13:25:56
364,262,122
0
0
null
null
null
null
UTF-8
Python
false
false
221
py
from . import views from django.urls import path app_name = 'villageapp' urlpatterns = [ path('',views.index,name='index'), path('register_panchayath/',views.register_panchayath,name='register_panchayath') ]
[ "1ms17ec038@gmail.com" ]
1ms17ec038@gmail.com
3c7fd070d6df865841d2e2c6ee47e4586822f6aa
a1fbde85a164bd4c5025a46e37dbe48243875bf8
/07-one-dimensional-DP/rod_cutting.py
8e15cbe974d80569cbe3462b2a82fdd5cb755e4d
[]
no_license
Ventrosky/dynamic-programming
e6dfd3e2e5311eb1fd7427609772484116b55889
49b58fe3836e000366795042dcd9b04bb124daf2
refs/heads/master
2020-08-19T03:09:34.027872
2019-11-01T05:49:06
2019-11-01T05:49:06
215,870,046
1
0
null
null
null
null
UTF-8
Python
false
false
1,724
py
import sys from one_dimensional.util.stop_watch import start_watch, stop_watch_print def max_profit(l, p): if l == 0: return 0 max_p = -sys.maxsize for i in range(0, l): max_p = max(max_p, p[i] + max_profit(l - i - 1, p)) return max_p def max_profit_memo(l, p, cache): if l == 0:...
[ "ventrosky@gmail.com" ]
ventrosky@gmail.com
22cf9c8ffb50b58d453a62b9eaa8609878b54f08
82b946da326148a3c1c1f687f96c0da165bb2c15
/sdk/python/pulumi_azure_native/web/v20201201/web_app_instance_function_slot.py
1a7fe3db3da90cc3dad7d6bcb87d27e394f09544
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
morrell/pulumi-azure-native
3916e978382366607f3df0a669f24cb16293ff5e
cd3ba4b9cb08c5e1df7674c1c71695b80e443f08
refs/heads/master
2023-06-20T19:37:05.414924
2021-07-19T20:57:53
2021-07-19T20:57:53
387,815,163
0
0
Apache-2.0
2021-07-20T14:18:29
2021-07-20T14:18:28
null
UTF-8
Python
false
false
24,849
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __...
[ "noreply@github.com" ]
noreply@github.com
acea0b64fbbc0712fea0c97e0aaa0b47a570d546
87371f38a9d78ed24d7bb199e3ee31a5eb6b5276
/page/makepagemeta.py
216b50e3faabafdca25278c398d0a49791498f67
[ "MIT" ]
permissive
afcarl/20cgenres
d42969ff50670f8fa347d467fcdc712c0db4fbe6
98edee2745acd5f322afa7c49a2dea318901abe7
refs/heads/master
2020-03-21T06:33:26.186781
2016-08-05T18:13:39
2016-08-05T18:13:39
138,227,806
1
0
null
null
null
null
UTF-8
Python
false
false
7,093
py
#!/usr/bin/env python3 # Based on inferfromreaders. # We read volume metadata and produce page metadata, # confirming along the way that the number of pages # in our metadata matches the number in the json import csv, os, sys, shutil from collections import Counter import numpy as np import pandas as pd # import ut...
[ "tunder@illinois.edu" ]
tunder@illinois.edu
62e405f2d313ab45545521d60dc94e45b278395c
908eac70186d7d5e3066731ae73c4030e6d5c109
/Pertemuan6/DemoProgressBar/DemoQProgressBar.py
7d32916d34cf28efbc5843f80b0f892e154ffc5f
[]
no_license
rezafp01/GUI
1f5faf5b32299feff6e5efb8a915ddc1467e695f
e779a104bc3e19e6100790901c6682e69f042e28
refs/heads/master
2022-09-10T02:46:30.699978
2020-06-02T01:47:59
2020-06-02T01:47:59
268,673,894
0
0
null
null
null
null
UTF-8
Python
false
false
1,094
py
import sys from PyQt5.QtCore import * from PyQt5.QtWidgets import * class MainForm(QWidget): def __init__(self): super().__init__() self.initUI() def initUI(self): self.setGeometry(300, 300, 280, 150) self.setWindowTitle('Demo QProgressBar') self.show() self.pbar = QProgressBar(self) self.pbar.setGe...
[ "noblesvan@gmail.com" ]
noblesvan@gmail.com
0fabc77cc1c6a7e77f260c487a3f99fda50b6326
c4ea92cd16ed772bf623f521e6c117d286d3169c
/simple1/simpledu/handlers/front.py
69f8e9047168930eda917236976aec8f618025f6
[]
no_license
temprani/temprani
875adf871e5851a26f496ca4ad3ee0e753379bdc
e9e7e39b14b38a33fff330dbd4dde668b5fa0066
refs/heads/master
2020-04-10T22:57:32.878312
2019-02-28T07:40:04
2019-02-28T07:40:04
161,337,449
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
from flask import Blueprint, render_template from simpledu.models import Course front = Blueprint('front',__name__) @front.route('/') def index(): courses =Course.query.all() return render_template('index.html',courses=courses)
[ "wygmz8@163.com" ]
wygmz8@163.com
e2905bfdb23d2f11287df6794e7e7358e16c9393
0cb2db16abfafc325a865c0529f7d231165655b6
/hackerrank/algorithms/greedy/grid_challenge.py
0589e2b93ae0c48b981bef0ffa31a49b0e2419b6
[]
no_license
ExpLog/Challenger
a73e83ac920ea648d4962c12942d6d1089e28757
a53fe99f4bf9da0780cec21ae952b51374f8697f
refs/heads/master
2021-01-09T20:36:12.098535
2016-10-27T21:57:51
2016-10-27T21:57:51
60,499,064
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
def read_matrix(): n = int(input().strip()) matrix = [list(input().strip()) for i in range(n)] return matrix def col_sorted(matrix): n = len(matrix) for j in range(n): for i in range(1, n): if matrix[i-1][j] > matrix[i][j]: return False return True tests = i...
[ "lobo.fontoura@gmail.com" ]
lobo.fontoura@gmail.com
19611ed31b1eaf47bb29a4de4ea1ae6637f0cd45
f1bef7256b9ab78c1f2e86e7fb89d6f18acf8a82
/HW8/Driver.py
f64d515f38db951701e858edac0a1bfaa099d920
[]
no_license
waiwaikim/Algorithms
7695a6b0f41fbee5e9584623efa1f67d15db68ca
4d0b3c8064a4ac6354a4dd1f09ab785e404f3528
refs/heads/master
2020-11-28T10:28:01.901717
2018-11-24T17:18:02
2018-11-24T17:18:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
739
py
import sys from Solution import Solution def main(): if (len(sys.argv) < 2): print("Please provide the input filepath as the argument") sys.exit() input_file = sys.argv[1] graph = [] node = 0 # Reading and parsing the file with open(input_file, 'r') as file: for line i...
[ "waiwai.j.kim@gmail.com" ]
waiwai.j.kim@gmail.com
33244fa1af1fee5573f2c32603ec290fa5f45de1
a61906e0296c8e7a71474390026f279a99eaec7d
/AnalysisResults/manage.py
015fd37b6cb09e820246fc33cea271e8fc87515e
[]
no_license
Kamesh1993/ecanalysis
dfdb820e8c1c6d35747956a94f86fa4e7a230be4
80a15af4bcd099012fff90de7706476bf0eb7a45
refs/heads/master
2020-05-16T16:03:19.378078
2019-04-24T07:28:22
2019-04-24T07:28:22
183,148,596
0
0
null
null
null
null
UTF-8
Python
false
false
336
py
#!/usr/bin/env python """ Command-line utility for administrative tasks. """ import os import sys if __name__ == "__main__": os.environ.setdefault( "DJANGO_SETTINGS_MODULE", "AnalysisResults.settings" ) from django.core.management import execute_from_command_line execute_from_command...
[ "noreply@github.com" ]
noreply@github.com
cc6fc1662b4e1aea8588076e192231c0f0f06bfd
605847f7005661400a3753278e05be104f679b85
/8. List Comprenhension/simple list compreshension.py
24ad90cbd4e447cdeb9457078569d25bbcd92348
[]
no_license
kamalsingh-engg/udemy_courses_python
6923b48e3d1ee78cb0c9aa5dedc57d001dde28b1
96b29bb5475f459ac2f4d8180aef7f85efe8283d
refs/heads/master
2023-02-13T01:29:13.848719
2021-01-03T16:36:29
2021-01-03T16:36:29
296,244,994
0
0
null
null
null
null
UTF-8
Python
false
false
310
py
# this is the program for the simple list compreshansion # in which we can see the some modification and something with the for loop as here we can divided each element with # divided with 10 element temps = [12,34,56,67,78] new_temps = [] for temp in temps: new_temps.append(temp/10) print(new_temps)
[ "444kamalsingh@gmail,com" ]
444kamalsingh@gmail,com
9052d8eeee5292b0bcad8a3247ae22e23d75cb73
c8cf583664bcb5d3dec45f120e530108465d8fda
/modelexp/models/sas/_superballCSCoupled.py
071e94a0fcd9ace9c9b566168619dfa939d1fb3e
[ "MIT" ]
permissive
DomiDre/modelexp
c02324da765edd7afdb19137f792a0d08885805b
1ec25f71e739dac27716f9a8637fa6ab067499b9
refs/heads/master
2022-05-30T01:28:01.073861
2022-05-27T09:20:44
2022-05-27T09:20:44
130,115,633
0
0
MIT
2019-06-18T13:40:56
2018-04-18T20:02:52
Python
UTF-8
Python
false
false
2,968
py
from modelexp.models.sas import SAXSModel from fortSAS import superball_cs_coupled from numpy.polynomial.hermite import hermgauss from numpy.polynomial.legendre import leggauss class SuperballCSCoupled(SAXSModel): def initParameters(self): self.params.add('particleSize', 100) self.params.add('d', 20) se...
[ "homiedomi@gmail.com" ]
homiedomi@gmail.com
ee25728090ed11d3d00c80b6eeb6145349a3b9ef
3e6589ecd807f61ff27afdca74d79f53d2f3af68
/tests/client/test_proxy.py
d9894a0f8dc75f64b3918d24083dddee5aa74f69
[ "BSD-2-Clause" ]
permissive
elacuesta/python-scrapinghub
27e0cbc90f188b586f8e3e79e537e7183b4d8f67
06fe95cb9cb71a41571bc05f58e5e5e8ea78b040
refs/heads/master
2023-06-23T05:25:34.121179
2022-03-10T13:54:51
2022-03-10T13:54:51
125,394,178
0
0
NOASSERTION
2022-03-10T11:13:25
2018-03-15T16:15:02
Python
UTF-8
Python
false
false
1,854
py
import mock import pytest from scrapinghub.client.proxy import _format_iter_filters from scrapinghub.client.proxy import _ItemsResourceProxy def test_format_iter_filters(): # work with empty params assert _format_iter_filters({}) == {} # doesn't affect other params params = {'a': 123, 'b': 456} ...
[ "vshlapakov@gmail.com" ]
vshlapakov@gmail.com
d9d55a72e98e29e4039f89f49bac5a69f4cc2204
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_5/ddnami001/question2.py
ceb2fdb7f0f9cf771a033796bc3dadfd254515cb
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
1,078
py
#Amitha Doodnath #DDNAMI001 #14/04/2014 #Programme to simulate a vending machine cost=eval(input("Enter the cost (in cents):\n")) moneyIn=0 while moneyIn < cost: deposit=eval(input("Deposit a coin or note (in cents):\n")) moneyIn+=deposit change=moneyIn-cost #print(change) dollar=0 c25=0 c10=0 ...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
951aee3d2c72976bf9b533837c9957d5641c85bb
2ef5b78a1a750ee33d86f36bba176796163e3933
/demo26/scripts/generate_test_datas.py
f7b0284f2b57846a453c8b0b09421163ac2ab3c4
[]
no_license
LIZEJU/flask-demo
08f8419757dc4902239b89b3df9ea71ce918ad26
6ae201e3cc078b7a3fd18fb6d114b0b83f1b4b41
refs/heads/master
2020-09-27T05:58:09.742198
2020-01-30T11:04:41
2020-01-30T11:04:41
226,445,858
0
0
null
null
null
null
UTF-8
Python
false
false
1,938
py
# -*- coding:utf-8 -*- # Author: 李泽军 # Date: 2020/1/26 10:07 PM # Project: flask-demo import os import json from random import randint from faker import Faker from simpledu.modes import db , User , Course, Chapter # 创建faker 工厂对象 fake = Faker() # 生成一个教师用户 def iter_users(): yield User( username='jack l...
[ "m18611694189@163.com" ]
m18611694189@163.com
95b7c972313c50df40993634568ef6963b13af42
89148db614d4b982b9bc2cbcc0773bfa8b7ff786
/tests/addProductTest.py
521f04391cdec153f399832602fc0c3e63a14750
[]
no_license
vaish222/mfscrmTest
e9a8cd1cffd0cef71ed16c191b54044d553c7520
b019c1e8b4167aeef1d2855b5ab976bba906ea2b
refs/heads/master
2020-04-06T19:50:17.415576
2018-11-24T18:00:24
2018-11-24T18:00:24
157,751,408
0
0
null
null
null
null
UTF-8
Python
false
false
2,187
py
#Vaishali Goel import unittest import time from selenium import webdriver class addProductTest(unittest.TestCase): def setUp(self): self.driver = webdriver.Chrome() def test_add_product(self): user = "instructor" pwd = "instructor1a" driver = self.driver driver.maximi...
[ "vgoel@unomaha.edu" ]
vgoel@unomaha.edu
4314ae635541aafeba9d42e4454dcc044959abd0
8d8df0b09ea14903fec5cf0de0def074ab16c9b8
/myapi/migrations/0001_initial.py
2aef52ee7cb3a26bb1aa948309932ee7013dd0ff
[]
no_license
bhupender009sharma/milk-distributor
f90d47f2914d0559b958df0819fc13ced69788db
b5883ac6c528de0795881515492b20f0586c6cdd
refs/heads/main
2023-07-09T20:49:22.529473
2021-08-12T10:47:00
2021-08-12T10:47:00
395,286,449
0
0
null
null
null
null
UTF-8
Python
false
false
2,796
py
# Generated by Django 3.2.6 on 2021-08-03 05:50 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Customers', fields=[ ...
[ "bhupender009sharma@gmail.com" ]
bhupender009sharma@gmail.com
31a3234f46c1c3f2fe7b6251c7cf41483b7f6a65
8d3af1282c04bfdd4e8684474be6cd4a539ceb81
/Homeworks/HW-1.py
fc18ad8f9b50e2ecffa86c5ad657af34adef6bd6
[]
no_license
sriniavireddy/UCSD_BigData_2016
5c7fbbaabf6f3ffd9880eefeb3b2099dc0731d93
fcd28181f49ceb8c08fee76ee95a1053c5bcbddf
refs/heads/master
2021-01-18T01:10:55.146986
2016-05-15T05:17:11
2016-05-15T05:17:11
56,786,119
0
0
null
2016-05-15T05:17:12
2016-04-21T15:40:53
Jupyter Notebook
UTF-8
Python
false
false
1,603
py
#Name: Srinivas Avireddy # Email: saviredd@eng.ucsd.edu # PID: A53101356 from pyspark import SparkContext sc = SparkContext() import re import string textRDD = sc.newAPIHadoopFile('/data/Moby-Dick.txt', 'org.apache.hadoop.mapreduce.lib.input.TextInputFormat', ...
[ "maheshwar@maheshwars-mbp.dynamic.ucsd.edu" ]
maheshwar@maheshwars-mbp.dynamic.ucsd.edu
9e39ab3cc176f1ba7c324cf05e3fffd74413b407
4e7617ea978782741c85ef4beb20e21eb39fbec1
/Test4.py
0418729f17d3c14348c1b084e7c4b0912b3d9bdd
[]
no_license
Pattaraponggg/Programming
2c4f259b1d4aed25346c939ecdc954e7040ee789
0ed56faac07f65bb25f4c0b59ab3e659722895e6
refs/heads/master
2020-06-12T19:39:02.905181
2019-10-18T16:19:24
2019-10-18T16:19:24
194,404,521
0
0
null
null
null
null
UTF-8
Python
false
false
569
py
#!/usr/bin/env python # coding: utf-8 # In[4]: #4.จงเขียนโปรแกรมวนซ้ำโดยบังคับใช้คำสั่ง for ให้แสดงผลคูณแม่ ๒ for k in range(1): print(2,"*",1,"=",2) print(2,"*",2,"=",4) print(2,"*",3,"=",6) print(2,"*",4,"=",8) print(2,"*",5,"=",10) print(2,"*",6,"=",12) print(2,"*",7,"=",14) print(...
[ "noreply@github.com" ]
noreply@github.com
05d47706d13e2620da6a5a875214046f5759297f
866dee1b3d01b863c31332ec81330d1b5ef5c6fa
/openquake.hazardlib/openquake/hazardlib/gsim/drouet_2015_brazil.py
0167472402875787bd260b3108f6df2766043010
[ "MIT", "AGPL-3.0-only" ]
permissive
rainzhop/ConvNetQuake
3e2e1a040952bd5d6346905b83f39889c6a2e51a
a3e6de3f7992eac72f1b9883fec36b8c7fdefd48
refs/heads/master
2020-08-07T16:41:03.778293
2019-11-01T01:49:00
2019-11-01T01:49:00
213,527,701
0
0
MIT
2019-10-08T02:08:00
2019-10-08T02:08:00
null
UTF-8
Python
false
false
10,453
py
# -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (C) 2015-2016 GEM Foundation # # OpenQuake is free software: you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the Licen...
[ "rainzhop@gmail.com" ]
rainzhop@gmail.com
ff0707ebc435e47ab9158e5c3e2aa41285ec26d8
ead629ba15f3e3c314edf239cb6aeed45ddb2f61
/lianjia/lianjia/spiders/lianjiaSz.py
df3dc74cab372e77720f2fb27f4ce48debf451eb
[]
no_license
cqu1012/WebSpider
2b0bfef52f92886fa2e6b018d7e0eb03178af015
5e83542241ead79864ca6402849e2d3dc25d7c0a
refs/heads/master
2021-10-22T08:11:15.101032
2019-03-09T07:05:43
2019-03-09T07:05:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,601
py
# -*- coding: utf-8 -*- import scrapy import re #使用分布式写法 from lianjia.items import LianjiaItem from scrapy_redis.spiders import RedisSpider #lpush lianjia:start_urls https://sz.lianjia.com/zufang/pg1rt200600000002/ #set lianjia:start_urls https://sz.lianjia.com/zufang/pg1rt200600000002/ class LianjiaszSpider(RedisSpide...
[ "425086207@qq.com" ]
425086207@qq.com
3168b0f779902de00ad73ac085d18405f5b646c6
dbc755cca2f10aa669c2b770e5e38611575031c1
/example/updated/behaviors.py
50669596a636ac037d840ce6efddb50671f0078a
[]
no_license
zenweasel/django-model-behaviors-example
88345ec806ace9e625e84d8ae3e1c6e359d9702c
d0038a9f7947c2591fecfa98d0494547eaec937d
refs/heads/master
2020-12-31T03:41:03.699193
2013-06-01T06:42:42
2013-06-01T06:42:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,728
py
from django.db import models from django.contrib.auth.models import User from model_utils.managers import PassThroughManager from .querysets import PublishableQuerySet, AuthorableQuerySet class Permalinkable(models.Model): slug = models.SlugField() class Meta: abstract = True def get_u...
[ "kevinastone@gmail.com" ]
kevinastone@gmail.com
d7e2a9c33bc7b4f1705fbbd5194992afd68f6127
236f1e8fb21ede4d72b5e397786945582eab915a
/timelogger/urls.py
6df4c27b16efa06ec0a72c27d20fedb541169cbf
[]
no_license
shotijohan/time-logging
24ab044ed780c5e34b61a090db902f9ed323a132
d7261064a0a26cfb81e8ff5e044980fac6f70c13
refs/heads/master
2020-07-14T00:41:27.830399
2017-06-27T05:14:19
2017-06-27T05:14:19
94,295,322
0
0
null
null
null
null
UTF-8
Python
false
false
817
py
from django.conf.urls import url from .views import Login, TimeInTimeOutHandler from .views import Register from .views import Logout from .views import API urlpatterns = [ url(r'^$', Login.as_view(), name='index'), url(r'^register', Register.as_view(), name='register'), url(r'^register-member', Register....
[ "johhanjohndennismartin@gmail.com" ]
johhanjohndennismartin@gmail.com
edd3d69bf4477b28424f4f09443d1a6f4b00fafe
05e6c528cb252245b4e41bb39d010b427d002746
/tests/test_topology.py
88d9e9116b40cef765b9edee55abdedc04d54f3a
[]
no_license
gdaneels/6tisch-new-ReSF
b529cb5f2b5efbf8e9c851c449fc01770a290a36
e669bddf2c932326b82b372b6eb7a072a84fb938
refs/heads/main
2022-12-29T21:05:50.053671
2020-10-18T16:49:47
2020-10-18T16:49:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
583
py
""" \brief Tests for TopologyCreator Factory \author Yasuyuki Tanaka <yasuyuki.tanaka@inria.fr> """ import SimEngine.Topology as Topology def test_create_random_topology_1(settings): settings() assert isinstance(Topology.Topology([]), Topology.RandomTopology) def test_create_random_topology_2(settings): ...
[ "glenn.daneels@uantwerpen.be" ]
glenn.daneels@uantwerpen.be
7b69ac95fe4eb4d1b71290b2a73c3f15e71e885a
d571d407cfda435fcab8b7ccadb1be812c7047c7
/examples/tensorboard/nested.py
b7c6df93916a72fa3dc3b5903a942a8fbc2d13cd
[ "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
guildai/guildai
2d8661a2a6bf0d1ced6334095c8bf5a8e391d8af
149055da49f57eaf4aec418f2e339c8905c1f02f
refs/heads/main
2023-08-25T10:09:58.560059
2023-08-12T20:19:05
2023-08-12T20:19:05
105,057,392
833
86
Apache-2.0
2023-08-07T19:34:27
2017-09-27T18:57:50
Python
UTF-8
Python
false
false
350
py
import tensorboardX with tensorboardX.SummaryWriter("foo") as w: w.add_scalar("a", 1.0, 1) w.add_scalar("a", 2.0, 2) with tensorboardX.SummaryWriter("foo/bar") as w: w.add_scalar("a", 3.0, 3) w.add_scalar("a", 4.0, 4) with tensorboardX.SummaryWriter("foo/bar/baz") as w: w.add_scalar("a", 5.0, 5) ...
[ "g@rre.tt" ]
g@rre.tt
30f9220b765956c3736dcde82c9cc8d27e983f04
b50f0d3b4a7cac4ad33c23654c330655ed740930
/pythonx/python_function_expander/ultisnipsaide/px/cursor/__init__.py
512d278a8b0605a8002271f9b927dd9893883015
[ "MIT" ]
permissive
ColinKennedy/vim-python-function-expander
869c8025a948ee48ca8aac758001c4c2b8765218
7fbaac0bdb6316177c85284052694175a2819638
refs/heads/master
2020-04-04T13:04:28.664537
2019-10-07T00:15:57
2019-10-07T00:15:57
155,947,699
22
0
MIT
2018-11-07T18:36:40
2018-11-03T03:50:14
Python
UTF-8
Python
false
false
715
py
# coding=utf8 import re import vim def get(): return from_vim(vim.current.window.cursor) def set(cursor): vim.current.window.cursor = to_vim(cursor) def get_adjusted(): (line, column) = get() if vim.eval('mode()') != 'i': return (line, column + 1) else: return (line, column) ...
[ "colinvfx@gmail.com" ]
colinvfx@gmail.com
083a5b0c421eb59429cbdf13f0339347fa57c6c7
36d83f9cdc9cea663e9a6bf5478812c49d6d4971
/new/forms.py
912faae3195c3da2b41dec0fd3f6655ccd188820
[]
no_license
Anas-Darwish-SB/django-the-day-news
9eec63c10a341f8f6dc182aa91a8658a14954b28
bdb14b704bf0b69f8ff85c643793e6abd9cf88bd
refs/heads/main
2023-03-24T03:22:24.005753
2021-03-16T05:01:16
2021-03-16T05:01:16
348,074,008
0
0
null
null
null
null
UTF-8
Python
false
false
264
py
from django import forms from .models import News, Category class NewsForm(forms.ModelForm): class Meta: model = News fields = '__all__' class CategoryForm(forms.ModelForm): class Meta: model = Category fields = '__all__'
[ "Silver.Bullet.A.SB@gmail.com" ]
Silver.Bullet.A.SB@gmail.com
47d3e3490fe59455b27844024bf9970b5fa53982
ae23f3cbe903d7e39c1747c7d2a28cbe5ed8d2bb
/1/Exercise1.py
1e6dfd5b50447974c592d2802faac57bfc06138e
[]
no_license
steinarc/Sanntidsprogrammering-Exercises
e3b4c2289761d01e971082a1d040ca4484e76c5d
27f8b2e36aae4bd39e38ed1c914bd3d5426b0dca
refs/heads/master
2021-01-11T11:18:11.767625
2017-03-17T10:15:45
2017-03-17T10:15:45
78,627,426
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
import threading import time i = 0 def someThreadFunction1(): global i for x in range (0,1000000): i = i + 1 def someThreadFunction2(): global i for x in range (0, 1000000): i = i - 1 def main(): global i someThread1 = threading.Thread(target = someThreadFunction1) some...
[ "noreply@github.com" ]
noreply@github.com
0f01a2a77659430427724586a974a95a50818b14
cd336e0b7fbd83bda52c5452cab25a187b4e24a2
/preview.py
c2b5fbba763eb2a1e43f88273e9cff154661d0ce
[]
no_license
atorman/piCamera
828a2608f75884e4c84cb4713917044d768f7de4
96d57518e78d86722f0063d3da122ef265bcca52
refs/heads/master
2023-03-16T06:38:56.988694
2021-03-05T20:34:54
2021-03-05T20:34:54
344,908,035
1
0
null
null
null
null
UTF-8
Python
false
false
858
py
# Test script for using a rasberry pi camera # more here: https://projects.raspberrypi.org/en/projects/getting-started-with-picamera from picamera import PiCamera, Color from os import system import datetime from time import sleep import numpy as np effect = np.array(['solarize', 'emboss', 'colorswap', 'cartoon', 'oi...
[ "atorman@gmail.com" ]
atorman@gmail.com
27cdb7a3d462e40e7ee9c8f59c8423c6d90c0a1f
a19a5306c29267994f42fc5f3ec5b10c35a8dedf
/lnumber.py
7b9f61a53cb0de73df37f6c007a8c6fcabe34a09
[]
no_license
csaranbalaji/Guvi
ec604b093106c007268cad70b26d59deb9d7376e
559e389d770f33a53e61c4e0ff1aa4f0d61d852b
refs/heads/master
2021-06-23T07:10:18.253846
2017-08-29T13:31:12
2017-08-29T13:31:12
95,778,759
0
0
null
null
null
null
UTF-8
Python
false
false
67
py
s=raw_input().strip().split() s.sort() s.reverse() print ''.join(s)
[ "csaranbalaji@gmail.com" ]
csaranbalaji@gmail.com
6cb2fd0bc1f295cdc7cc1b00f7b2bfbe9afb356c
d8deb202df3cd4222c642c5c4412652461c4ebb5
/backend/back_office_15184/settings.py
5575a47e87ff63b30bc68d351602f6664a202efc
[]
no_license
crowdbotics-apps/back-office-15184
1770eb660bd198768a2690bbb58145a70f5f899a
7dca6056d171e402a7c9f91488a2b815f5077d54
refs/heads/master
2023-01-29T13:29:11.195837
2020-03-29T16:00:52
2020-03-29T16:00:52
251,072,394
0
0
null
2023-01-24T01:48:34
2020-03-29T16:00:01
JavaScript
UTF-8
Python
false
false
5,803
py
""" Django settings for back_office_15184 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ im...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
ccbe2ea2e2f57bac89f8d8c74ec0a7372656992c
d2a70f4228fe42f89d54bb2091741c934d4d5f5a
/entregableDjango/gestionNoticias/admin.py
5ba6fba33fb59e734717b3c760218c95a4127698
[]
no_license
morolok/AII
9aa12e27b1eb9b62aaec8e9f4f56df8a489aa380
2bbdc282cf6f6fbc00bbe16470dceb891c132d2a
refs/heads/master
2023-08-15T08:35:23.407354
2021-10-05T19:17:34
2021-10-05T19:17:34
242,849,953
1
0
null
null
null
null
UTF-8
Python
false
false
205
py
from django.contrib import admin from gestionNoticias.models import Autor, Fuente, Noticia # Register your models here. admin.site.register(Autor) admin.site.register(Fuente) admin.site.register(Noticia)
[ "carlosmatauniversidad@gmail.com" ]
carlosmatauniversidad@gmail.com
e8c64dbd9200cd63a46de802d536e53edc756c06
22c5fc7dd52149ebd4338a487ae9ab0db0e43f01
/monai/transforms/utility/dictionary.py
fb3d88a0ba180a732df1b25d2ac37103a9703a2d
[ "Apache-2.0" ]
permissive
precision-medicine-um/MONAI-Deep_Learning
3d3f547dd9815152561a6853f8d4727b0e5ca4c4
d94c4d3a2c465717ba3fae01b7acea7fada9885b
refs/heads/master
2022-12-28T07:04:07.768415
2020-10-17T13:11:56
2020-10-17T13:11:56
305,346,962
3
0
Apache-2.0
2022-12-27T15:44:13
2020-10-19T10:30:07
Python
UTF-8
Python
false
false
21,673
py
# Copyright 2020 MONAI Consortium # 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" ]
noreply@github.com
7f0ed5bfb86883201842207f74bfd612e2da804f
c2f4d3892dec8859d7795a1bce4bfe0e5c85e9b9
/StudentskaSluzbaConsole/FakultetPrikazObican/rs/uns/ftn/fakultet/prikaz_obican.py
b3a84bd0c57319b65d562092bdacf0427f58ddbb
[]
no_license
unsftn/SOK-primeri
517423d6e60ab7ce7576fe1cbcefdf10f642b2f2
a90ab5e6867e5bb14c0aa6690c57424282f88008
refs/heads/master
2021-05-04T07:13:49.239755
2016-12-13T06:43:45
2016-12-13T06:43:45
70,586,070
1
0
null
null
null
null
UTF-8
Python
false
false
448
py
from rs.uns.ftn.studentska.sluzba.services.fakultet import FakultetPrikazBase class FakultetPrikazObican(FakultetPrikazBase): def identifier(self): return "FakultetPrikazObican" def name(self): return "Prikaz samo naziva fakulteta" def prikazati_fakultete(self, lista_fakulteta): ...
[ "ivkovicszeljko@gmail.com" ]
ivkovicszeljko@gmail.com
98be9ef6212d83414b73189c6c2d2fa7f6c99add
db1f67ee43986019df2edf622ee5ad617e3a08c6
/ML/SVM-Support_Vector_Machine/what_whey.py
62df6ac272e33d3028195b554a77094e54b53c47
[]
no_license
RafaelGoulartB/learning-machine-learning
61dcd0428429d68c52f70330ceb241cdbf6ab724
e3d77be195186f1b5c771513f75d7675bd6cf2dc
refs/heads/master
2021-09-27T18:05:17.352268
2018-11-10T13:00:36
2018-11-10T13:00:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
830
py
# Packages for analysis import pandas as pd import numpy as np from sklearn import svm recipes = pd.read_csv('Iso-vs-Con.csv') #Specific input models ingredients = recipes[['Carb','Protein']].as_matrix() #Creat a list sorted with Carb and Protein type_label = np.where(recipes['Type']=='Concentrado', 0, 1) #If Type =...
[ "rafagoulartb@gmail.com" ]
rafagoulartb@gmail.com
891a67ea8b42a8d19fc90a9867adb2f20065b0a6
9fe6c602622625dc598c90b33208660aec0d9305
/scripts/test/run_unittests.py
965877e40c4edaa524f420a6b5cdf3a7f47b01d7
[ "BSD-3-Clause" ]
permissive
mmocny/devtools-frontend
efc55015ffd8900bbc76e7f2d392be04fdfb8032
4b644f76915b1dd9f7a039b0c6c7811198776cc6
refs/heads/master
2022-12-13T13:07:55.137491
2020-08-19T00:52:02
2020-08-19T17:02:58
288,804,874
0
0
BSD-3-Clause
2020-08-19T18:17:13
2020-08-19T18:17:13
null
UTF-8
Python
false
false
3,692
py
#!/usr/bin/env python # # Copyright 2019 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. """ Run unit tests on a pinned version of chrome. """ import os import platform import re from subprocess import Popen import sys imp...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
5e23fa117afbbafd120a6171ec70a82428e5c1e7
a25223f5be818b549323e8232c31a606fcca275a
/work/lib_learn/threading_demo.py
a43f663e14785bff3331cff64b38037fa4b71d61
[]
no_license
Jsonming/workspace
4ef1119606b3c138ff9594b3e0cf16de8077e28d
2ac1b07d85deeb611600f5e64083c4eb0688fdb4
refs/heads/master
2020-06-13T04:23:15.492080
2020-03-31T10:34:30
2020-03-31T10:34:30
194,531,923
1
0
null
null
null
null
UTF-8
Python
false
false
718
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/12/11 11:15 # @Author : yangmingming # @Site : # @File : threading_demo.py # @Software: PyCharm from threading import Thread import time """ Python中使用线程有两种方式:函数或者用类来包装线程对象。 函数式:调用thread模块中的start_new_thread()函数来产生新线程 thread.start_new_thread ( func...
[ "ymmbjcz@126.com" ]
ymmbjcz@126.com
de29935be8c92874d76f532ba472260e179f3885
d4beed3fb9c04ab10857a0ea582a10611d27a913
/ABC_from001to100/ABC066/c.py
10c5c0f60347f41bf83314233e2fb4b506ae7357
[]
no_license
jjitch/AtCoder
f797923556441d1fb9c8563614edff5a9c3f4c6f
54ea96fbd1dfd8741f53d35dbcb5e59fcc2d794e
refs/heads/master
2023-08-22T02:32:55.137339
2021-10-11T17:18:08
2021-10-11T17:18:08
292,009,390
0
0
null
null
null
null
UTF-8
Python
false
false
260
py
from collections import deque n = int(input()) a_s = list(map(int, input().split())) d = deque() for i in range(n): if i % 2 == 0: d.append(a_s[i]) else: d.appendleft(a_s[i]) if n%2==1: d.reverse() print(' '.join(map(str, d)))
[ "junnosuke_08@icloud.com" ]
junnosuke_08@icloud.com
ef644fd83609cab01e950f379bfe1760ba929b57
dfd48ac5cdcf7b964b6f1eb67230d3427366b3dd
/2. Image processing/opencv_image_processing.py
7e9dc95210474f18a2e072cc5dda221c11743b31
[]
no_license
ujhoang/computer-vision
f5344164f7c772e154b57892ad2fc8eb337a8c71
90676379b0397ee232bc1f78dbf8d2b9f194d6be
refs/heads/master
2020-12-21T20:30:09.209795
2020-03-22T18:01:35
2020-03-22T18:01:35
236,548,943
0
0
null
null
null
null
UTF-8
Python
false
false
2,990
py
# importing packages import cv2, imutils import time import matplotlib.pyplot as plt name="./images/uj.jpg" #loading the image, images are stored as (height, width, dimension) image = cv2.imread(name) (h, w, d) = image.shape print("width={}, height={}, dimension={}".format(w,h,d)) cv2.imshow("Image", image) cv2.wait...
[ "yoojehoang@gmail.com" ]
yoojehoang@gmail.com
b435a28b080aada90a007675590ff6531adf2c14
5c05866275988edb7cf31d096569e83c3e1138e1
/career/models.py
da570f73439fa3e7b2838c364f1885ed4ce06f1f
[]
no_license
kljopu/fixo-back-fork
3203952a8a72c67f545c7d30cd42b0b8df2d790c
bd7b116f2d7c01655e02b30a6b07bf913d0bf0cc
refs/heads/master
2022-12-15T03:17:55.829477
2020-09-14T05:36:24
2020-09-14T05:36:24
295,312,045
0
0
null
null
null
null
UTF-8
Python
false
false
574
py
from django.db import models from utils.models import TimeStampModel class Service(TimeStampModel): corrector = models.ForeignKey("accounts.Corrector", on_delete=models.CASCADE) name = models.CharField(max_length=2000) service_description = models.CharField(max_length=2000) image = models.URLField(max...
[ "kljopuu@gmail.com" ]
kljopuu@gmail.com
b9e53559090239af7ea0299aa3616f5a7fea2643
02cc235dcbfc9f3d645b9905d1bf19a8d746420b
/amazon/amazon_bu/mapper_rdf copy.py
a1b0e03ab3060e1ab0008246bc0ba999426460fa
[]
no_license
manzikki/hadooprdf
9300b7186c5b86fabeac367278824f9cdf9b1c0e
d7bec4323e3ee0f9a199239f4dfaed70bb00d020
refs/heads/master
2020-04-12T19:00:14.654709
2019-03-01T09:13:50
2019-03-01T09:13:50
162,696,817
0
0
null
null
null
null
UTF-8
Python
false
false
532
py
#!/usr/bin/env python """A more advanced Mapper, using Python iterators and generators.""" import sys import rdflib def main(separator='\t'): # input comes from STDIN (standard input) g = rdflib.Graph() g.load(sys.stdin) q = g.query('SELECT ?a WHERE { ?a hip:hasContinent hip:Asia }', initN...
[ "tapio.niemi@gmail.com" ]
tapio.niemi@gmail.com
1227ba925d1a893df632f37cec27a2fdf940ba58
bd2057543881ae2b64c37f295df036567ef53f3d
/bonds/migrations/0005_auto_20170307_1711.py
072e4944b7d3d052363c2562b66dd8de8f5b6b2a
[ "MIT" ]
permissive
reddress/bondtracker
fccad222df9733345988500489a9ef6a7997c2f4
432f2ed1962cf0019fb5ebdabad8354a123088c8
refs/heads/master
2021-04-28T15:39:50.829990
2019-03-08T20:05:11
2019-03-08T20:05:11
121,995,258
0
0
null
null
null
null
UTF-8
Python
false
false
422
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-07 20:11 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('bonds', '0004_auto_20170307_0022'), ] operations = [ migrations.AlterModelOptions( ...
[ "heitorchang@gmail.com" ]
heitorchang@gmail.com
8f18834b8d94f9186ba897a70ec8fcb25f13f461
bf2a9f9284bee1d75da497dba8cfd69cf1cf001b
/subliminal/plugins/TheSubDB.py
6c7588d4ed5b8dff2b9ef06ada49e982b410d277
[]
no_license
mrcrabby/subliminal
eb668f29a34e22ef98fe3647def0a7514a6b5142
f3292c2916e53cdbe393ce4d31e56c5bf2089d20
refs/heads/master
2021-01-18T10:16:03.246677
2011-10-08T17:44:14
2011-10-08T17:44:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,735
py
# -*- coding: utf-8 -*- # # Subliminal - Subtitles, faster than your thoughts # Copyright (c) 2008-2011 Patrick Dessalle <patrick@dessalle.be> # Copyright (c) 2011 Antoine Bertin <diaoulael@gmail.com> # # This file is part of Subliminal. # # Subliminal is free software; you can redistribute it and/or modify it under # ...
[ "diaoulael@gmail.com" ]
diaoulael@gmail.com
51aa44dcaa7e5c3afc095422120d33f9cd7d4158
2fad894e9e041fc98c0ec2641480cbbaf3034764
/ood_special_method.py
dcf0a0c7d8e9ee2f2693a27ec47cc73a0ea79ee2
[]
no_license
mohammadasim/python-course
04698e19a90d5d5dec715a9b640c78da3cc0e4a7
688617ded71ff1c025bdcd25caefba5b6d4665fb
refs/heads/master
2021-04-30T04:39:16.023071
2018-08-02T16:16:53
2018-08-02T16:16:53
121,540,215
0
0
null
null
null
null
UTF-8
Python
false
false
871
py
# When we create a list object and pring the list, we will get the list object containing the list. However if I create a book object # using this book class what we will get is the object in memory. Behind the scene the pring object gets the string representation of the # book object and prints that. So inorder to en...
[ "mohammad.ayub@harpercollins.co.uk" ]
mohammad.ayub@harpercollins.co.uk
d4d778b9a2b0dad95e29227cf48aad56ae424e50
ff4244bace9897d2ff9f32748e3e51d5d7df2f90
/setup.py
ceec156f2cad4aa8a067f405d37a231b9c3a0c47
[ "MIT" ]
permissive
kouzapo/altrobot
d3c8e3efe4002d415ebe0b09f1aa4e39883c7fcd
4d31701bbd47c29acbc9ba2b65c2cb84b2b88d94
refs/heads/master
2021-08-02T19:32:13.600302
2021-07-24T09:20:26
2021-07-24T09:20:26
213,660,071
3
4
MIT
2021-01-22T18:11:22
2019-10-08T14:08:10
Python
UTF-8
Python
false
false
767
py
#!/usr/bin/env python3 import setuptools with open('README.md', 'r', encoding = 'utf-8') as f: long_description = f.read() setuptools.setup( name = 'altrobot', version = '0.0.1', author = 'Apostolos Anastasios Kouzoukos', author_email = 'kouzoukos97@gmail.com', description = 'A backtesting li...
[ "kouzoukos97@gmail.com" ]
kouzoukos97@gmail.com
a136480a9e699fc70d57d1c9205dde7c20f919bb
b5ac08012751057a410951890eab0b13f1e30e42
/users/migrations/0005_auto_20190509_0446.py
7780f17ee8f4127c013895fc7746d7e1189e9312
[]
no_license
TheSuperiorStanislav/practice-django-utilities_stats
1934062df07333efdb0753f4a3d9f0f398453afc
93b8b32eedc63dc0c425f49e7f8f666808a4b885
refs/heads/master
2023-04-29T19:35:50.928377
2022-04-28T04:42:54
2022-04-28T04:42:54
185,186,204
0
1
null
2023-04-21T22:10:06
2019-05-06T11:48:10
Python
UTF-8
Python
false
false
447
py
# Generated by Django 2.2.1 on 2019-05-09 04:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0004_auto_20190430_1305'), ] operations = [ migrations.AlterField( model_name='utilitiesuser', name='email'...
[ "stasontos2@hotmail.com" ]
stasontos2@hotmail.com
f66c3193943c46902e71914540ea3d2d9ef152cc
bb8c36271b45ba80b0b2074d7704bb2c0e9839be
/home/forms.py
0d3dc760d6d5598369cce1073a05879924dbd71c
[]
no_license
alexeysorok/learn_django_specialist_2020
f0df4fe1ad8c3ee8e038e5f4df39168185654f80
cb08f0a61b32f2c59d995cdb4d956207b8980b74
refs/heads/master
2020-12-08T20:51:07.239868
2020-01-10T17:09:09
2020-01-10T17:09:09
233,091,636
0
0
null
null
null
null
UTF-8
Python
false
false
149
py
from django import forms class LoginForm(forms.Form): login = forms.CharField(label='login') password = forms.CharField(label='password')
[ "alexe@W10SSD" ]
alexe@W10SSD
4db691364a9d81a959c8bcf57a843628ce0d0c64
b73d4b5f169a2a43b0e7e29da369e701028663d9
/Event_Listeners/main.py
02c58865cee50c9e30f789f94421bca7e1ae7137
[ "BSD-3-Clause" ]
permissive
yash-agrawal20/Python-Project
3824b93e2fb02bb93919b439a9d472486c4d821e
29780c4741daf2ef299cc3cb93b88b851f270f51
refs/heads/main
2023-09-03T07:00:47.232547
2021-09-23T06:31:54
2021-09-23T06:31:54
406,480,236
1
0
null
null
null
null
UTF-8
Python
false
false
616
py
#Using Event Listeners #Date: 14-09-2021 import turtle as t my_turtle = t.Turtle() def move_forward(): my_turtle.forward(50) def move_backward(): my_turtle.backward(50) def move_clockwise(): my_turtle.right(30) def move_counter_clockwise(): my_turtle.left(30) def clear_screen(): my_turtle.res...
[ "yash.online2002@gmail.com" ]
yash.online2002@gmail.com
91c956e0bced4cf8c7ac59bc5f8f643ceb4d0a72
cd52f86c04e10bdf6cda9539ace5c518209c72b1
/ocr_main.py
c14ae83eccbbaae5a7ec23e9bbde9f237bde5d7b
[]
no_license
TonyChouZJU/SimuOCR
033a5d3b717fbab49b509332ba96581aaad048bf
794a875cef6be61fe6662e8fa0b6de9cbcb4517e
refs/heads/master
2021-01-11T17:27:32.831039
2017-01-23T05:23:48
2017-01-23T05:23:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,593
py
#coding=utf-8 import _init_paths import sys import os import subprocess import pickle import numpy as np import subprocess import matplotlib.pylab as plt import cv2 import json from font_effects import FontsEffects ''' backcolor is using with label:'福' xc:transparent -annotate 0x0 '福' ''' def parse_fonts_list(fonts...
[ "whzyb323@gmail.com" ]
whzyb323@gmail.com
6b13a3be85c021acb5f723df9c5da292421f2649
363670e1c658045f7145c12d64a0b70aaa24662f
/BusyLoop/__init__.py
2723459c0bb7277739c30bf077c1d1479db0ca88
[]
no_license
fortune/azure-functions-sample-in-python
609ce8c4a564ce1dfb3707686eb20a03b31e6119
cf301fdb990e3efb4f84326c5788212e20d2207d
refs/heads/master
2022-12-10T11:51:07.350793
2019-08-22T06:16:22
2019-08-22T06:16:22
173,325,622
1
0
null
2022-12-08T01:39:20
2019-03-01T15:33:57
Python
UTF-8
Python
false
false
385
py
import logging import os, time import azure.functions as func def main(req: func.HttpRequest) -> func.HttpResponse: logging.info('Python HTTP trigger function processed a request.') pid = os.getpid() start_time = time.time() while True: if time.time() - start_time > 3: ...
[ "fortunefield@gmail.com" ]
fortunefield@gmail.com
f62a38f0d528e475c40d662e31ce90855a495fae
58f6e51e0da894dd04d2a6cec7736719611f6df6
/aorta_detection/addSRM/merge_dl_srm.py
2e47a3b81b8ee97c1233e137a6191f84616f4d69
[]
no_license
RitaOlenchuk/bachelor_thesis
9e45f36cc42a741caac7b0eda54e64dc9fb1f8e4
1dfb7972fcf6f7c04780e2a65668fbe2773575f1
refs/heads/master
2020-06-27T17:44:34.170761
2020-04-27T21:15:07
2020-04-27T21:15:07
200,010,889
0
1
null
2019-08-05T08:18:29
2019-08-01T08:33:46
Jupyter Notebook
UTF-8
Python
false
false
2,436
py
import numpy as np from PIL import Image import imageio from matplotlib import pyplot as plt img_path = '/Users/rita/Uni/bachelor_thesis/DL/2_outfile.png' img = Image.open(img_path) img = np.array(img, dtype=np.float32) img = img / np.max(np.max(img)) print(set(img.flatten())) img [img < 0.3] = 0 selParts = (img > 0.3...
[ "olenchuk.m@icloud.com" ]
olenchuk.m@icloud.com
5d1ae22b5fa8aff66aa85311dfd7724f3d15d47c
a26c2e7ed5adc0ac0971182d1715ccba258ba88d
/Flask_package/main_route.py
cb39358184e7d5bb13396342e876365a7d7a0b87
[]
no_license
LalithaPrasad/ERMS_Falcon_Angular
6af39833beb9aa24df8f60a57894361829c6d981
2d4c4b6e46edaa039eacde119602fdb28f010755
refs/heads/master
2022-05-30T03:21:23.705641
2020-05-04T03:47:01
2020-05-04T03:47:01
261,074,448
0
0
null
null
null
null
UTF-8
Python
false
false
123
py
from Flask_package import app @app.route("/", methods=["GET"]) def index(): return app.send_static_file("index.html")
[ "lalithaprasad@Lalithas-MacBook-Air.local" ]
lalithaprasad@Lalithas-MacBook-Air.local
e656fa42de5a5ea7295f63e5901d7b38a56bc1b3
5db6e9e2d3d2892e51cd8d90fb1a319ca6ee92e7
/Streaming/capture_send.py
9eb773a61267da274c9216e7fdd0370a464af0cc
[ "MIT" ]
permissive
rprabhuh/SDNDDoS
e27c6bce7a3bb483c2bda5ea3f53c28638c3ebe7
91a23c0b817999bce5b07359681c5b2dddf89b9d
refs/heads/master
2021-01-20T20:56:36.874380
2015-01-14T07:41:53
2015-01-14T07:41:53
24,749,134
3
5
null
2014-10-15T00:50:26
2014-10-03T06:41:46
Lua
UTF-8
Python
false
false
1,125
py
#!/usr/bin/env python import socket from scapy.all import * # prepare the listening connection TCP_IP = '127.0.0.1' #TCP_PORT = int(sys.argv[-1]) TCP_PORT = 3000 BUFFER_SIZE = 1024 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind((TCP_IP, TCP_PORT)) s.listen(20) conn, addr = s.accept() print 'Connection...
[ "rprabhu@ufl.edu" ]
rprabhu@ufl.edu
e3bb201ac79fa6cc8dd092ae3b68e430b7375067
772915fc1d85ba50892d6aadcff9d5d55e1a62b5
/11_Standart_library/task_11_02_01_Logging_app/code/main.py
ec061b93687234d23dc72cf568661d9275562cd4
[]
no_license
dolphin-in-a-coma/python-course
eb90b9797e4ef397acd1577b30c31e372ffb6ed7
c5dd67c3e699a62eb5f9594bc13dabbed830fecc
refs/heads/master
2020-04-15T19:24:53.277011
2019-01-09T22:48:04
2019-01-09T22:48:04
164,948,718
2
0
null
null
null
null
UTF-8
Python
false
false
3,337
py
# ПРОБЛЕМА ВКЛЮЧЕНИЯ!!!!!!!!! import datetime import platform from settings import Settings def get_last_run_info(settings, launch_dt): """Вернуть кортеж вида: ( Количество запусков программы, Количество секунд с последнего запуска, Информация о платформе ). Если программа не была за...
[ "eugenartemovich@gmail.com" ]
eugenartemovich@gmail.com
ee8ffd4568bff2eeceefd329d0b1ea1cae90f7de
2a3c0d083fa73d89e3ca9a86928a98f738c07055
/pydb/pydb/__init__.py
0361e2125f60781f20cf377afbd47dcdce65233e
[]
no_license
hacchuu0119/pip_packages
8ebef92f9196c57aedb4e9cb60ec3623f534c10f
e79ee0ca6f76d7ebce33d0de02280cd58ea809f7
refs/heads/master
2020-08-29T08:25:25.911142
2019-12-17T07:44:50
2019-12-17T07:44:50
217,981,027
3
0
null
2019-11-07T03:00:38
2019-10-28T06:34:33
Python
UTF-8
Python
false
false
1,781
py
from .connection import Connection CONNECTION_MYSQL = None def setup_connection_instance_mysql(): global CONNECTION_MYSQL CONNECTION_MYSQL = Connection() def _get_connection_instance_mysql(): if not CONNECTION_MYSQL: setup_connection_instance_mysql() return CONNECTION_MYSQL def mysql(use...
[ "kudokana33@gmail.com" ]
kudokana33@gmail.com
ae00f2a571e93364b014c7430ef774d27668efb1
eaf00759ebec00f930c936b0beacc4b65cee6452
/7.0/ursa_product_customizations/product.py
17bd1ad0934adc534465c6ade5a61bc7bb1cb01e
[]
no_license
alephobjects/ao-openerp
b73bbeedc2149b08a946660aeb6d78f4eafa3698
3a0d7ddb85d497b4f576678370a1fbbfd71379f4
refs/heads/master
2020-04-12T03:53:47.210221
2016-07-27T09:44:24
2016-07-27T09:44:24
15,320,631
3
5
null
null
null
null
UTF-8
Python
false
false
1,769
py
# -*- coding: utf-8 -*- ############################################################################## # # Ursa Information Systems # Author: Balaji Kannan # Copyright (C) 2013 (<http://www.ursainfosystems.com>). # # This program is free software: you can redistribute it and/or modify # it under the term...
[ "bkannan@ursainfosystems.com" ]
bkannan@ursainfosystems.com
8823a2139da983b787778dd99adf5495845f9d38
3c397042e7fa0d7d4fa25cd75f0d10babd9f933f
/lab_8/mysite/mysite/settings.py
7e02b37905d7097f51689bd92ff721a407afe78c
[]
no_license
StepanIonov/RIP_lab
f34f2a95fb8ddcfeeb703efd7088320f40ac1fc5
0fefaf77d664ed404d791422658a062fc3e9201c
refs/heads/master
2023-02-20T12:38:33.389360
2021-01-18T10:13:24
2021-01-18T10:13:24
295,768,234
1
0
null
null
null
null
UTF-8
Python
false
false
3,094
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 3.1.4. 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 pathlib ...
[ "42943755+StepanIonov@users.noreply.github.com" ]
42943755+StepanIonov@users.noreply.github.com
06c458fbca9c45c83e062349ed1b4c3d1ba8b0bd
af34f6e3cb1d0bc783dc354b295f81d9a15120be
/pytorchocr/postprocess/fce_postprocess.py
ae4633fbea17091db90456cbe9eaffc81c2b655d
[ "Apache-2.0" ]
permissive
znsoftm/PaddleOCR2Pytorch
1785a820a1361b556963ef3d986161aebefd387a
947674812acaeaa62d2ad56a17a135c9a0582f31
refs/heads/main
2023-07-05T22:49:30.358494
2023-04-16T06:04:04
2023-04-16T06:04:04
356,120,953
0
0
Apache-2.0
2021-04-09T03:20:42
2021-04-09T03:20:42
null
UTF-8
Python
false
false
8,040
py
""" This code is refer from: https://github.com/open-mmlab/mmocr/blob/v0.3.0/mmocr/models/textdet/postprocess/wrapper.py """ import cv2 import torch import numpy as np from numpy.fft import ifft from pytorchocr.utils.poly_nms import poly_nms, valid_boundary def fill_hole(input_mask): h, w = input_mask.shape ...
[ "chenxi.liu@sophgo.com" ]
chenxi.liu@sophgo.com