hexsha
stringlengths
40
40
size
int64
2
991k
ext
stringclasses
2 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
208
max_stars_repo_name
stringlengths
6
106
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
33.5k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
208
max_issues_repo_name
stringlengths
6
106
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
16.3k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
208
max_forks_repo_name
stringlengths
6
106
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
6.91k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
991k
avg_line_length
float64
1
36k
max_line_length
int64
1
977k
alphanum_fraction
float64
0
1
da76b8e7a60829a673e0dbd6936d8376afde67d3
475
ex
Elixir
web/queries/bill_query.ex
aramisf/caravan
add305c70ee1ceb4a3dff9a7ed606a182e6f12d7
[ "MIT" ]
null
null
null
web/queries/bill_query.ex
aramisf/caravan
add305c70ee1ceb4a3dff9a7ed606a182e6f12d7
[ "MIT" ]
null
null
null
web/queries/bill_query.ex
aramisf/caravan
add305c70ee1ceb4a3dff9a7ed606a182e6f12d7
[ "MIT" ]
null
null
null
defmodule Caravan.BillQuery do use Caravan.BaseQuery alias Caravan.Repo alias Caravan.BillItem # TODO - I guess this should be on a BillItemQuery, not a BillQuery @doc """ Returns the total bill amount of `struct` with the sum of all its `items` amount """ def total_amount(struct) do query = fro...
25
75
0.648421
da773a30a79301856c63932f00bcc55e391e02e9
1,366
ex
Elixir
test/support/data_case.ex
ConnorRigby/lou
5fd68f99b72c82bd4cdd9a6ddeccbe967f7a74a1
[ "MIT" ]
1
2019-10-23T12:17:34.000Z
2019-10-23T12:17:34.000Z
test/support/data_case.ex
ConnorRigby/lou
5fd68f99b72c82bd4cdd9a6ddeccbe967f7a74a1
[ "MIT" ]
null
null
null
test/support/data_case.ex
ConnorRigby/lou
5fd68f99b72c82bd4cdd9a6ddeccbe967f7a74a1
[ "MIT" ]
null
null
null
defmodule Lou.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, it cannot be async. For this reason, every test run...
25.296296
77
0.675695
da7747ce008dde0696e123fbb12570a5271aac5b
679
ex
Elixir
lib/wifi_thermostat.ex
unsilo/wifi_thermostat
36329bcf2a95f76af40e620879c41c45acd597d6
[ "MIT" ]
null
null
null
lib/wifi_thermostat.ex
unsilo/wifi_thermostat
36329bcf2a95f76af40e620879c41c45acd597d6
[ "MIT" ]
null
null
null
lib/wifi_thermostat.ex
unsilo/wifi_thermostat
36329bcf2a95f76af40e620879c41c45acd597d6
[ "MIT" ]
null
null
null
defmodule WifiThermostat do @moduledoc """ Documentation for WifiThermostat. """ require Logger alias WifiThermostat.State def get_thermostats(api_key \\ nil) do State.get_thermostats(api_key) end def thermostat_subscribe(api_key) do Registry.register(WifiThermostat, api_key, []) if is_n...
24.25
89
0.746686
da77539529e3fa43e9627d02aaabffd932ff1c87
4,461
ex
Elixir
lib/livebook/delta/transformation.ex
aleDsz/livebook
3ad817ac69b8459b684ff8d00c879ae7787b6dcc
[ "Apache-2.0" ]
1,846
2021-04-13T14:46:36.000Z
2021-07-14T20:37:40.000Z
lib/livebook/delta/transformation.ex
aleDsz/livebook
3ad817ac69b8459b684ff8d00c879ae7787b6dcc
[ "Apache-2.0" ]
411
2021-07-15T07:41:54.000Z
2022-03-31T21:34:22.000Z
lib/livebook/delta/transformation.ex
aleDsz/livebook
3ad817ac69b8459b684ff8d00c879ae7787b6dcc
[ "Apache-2.0" ]
130
2021-04-13T15:43:55.000Z
2021-07-12T16:57:46.000Z
defmodule Livebook.Delta.Transformation do @moduledoc false # Implementation of the Operational Transformation concept for deltas. # # The transformation allows for conflict resolution in concurrent editing. # Consider delta `Oa` and delta `Ob` that occurred at the same time against the same text state `S`. ...
40.554545
102
0.686393
da7779c3f37c1ebbd6ec516111137f91885aaad8
349
exs
Elixir
priv/repo/seeds.exs
skatsuta/phoenix-json-api
1da16fc10cf1ce7bb5e47034755f5990bd7acb92
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
skatsuta/phoenix-json-api
1da16fc10cf1ce7bb5e47034755f5990bd7acb92
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
skatsuta/phoenix-json-api
1da16fc10cf1ce7bb5e47034755f5990bd7acb92
[ "MIT" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # PhoenixJsonApi.Repo.insert!(%SomeModel{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they will f...
29.083333
61
0.707736
da779dd3e65f99f354d66026c50019bacf971f29
4,449
exs
Elixir
priv/repo/seeds_large.exs
josephkabraham/ucx_ucc
0dbd9e3eb5940336b4870cff033482ceba5f6ee7
[ "MIT" ]
null
null
null
priv/repo/seeds_large.exs
josephkabraham/ucx_ucc
0dbd9e3eb5940336b4870cff033482ceba5f6ee7
[ "MIT" ]
null
null
null
priv/repo/seeds_large.exs
josephkabraham/ucx_ucc
0dbd9e3eb5940336b4870cff033482ceba5f6ee7
[ "MIT" ]
null
null
null
alias UcxUcc.Accounts alias UccChat.{Message, Channel} messages = [ "Give me some of that very fine food from that there box", "Once in a while I can see that you are in for a hard time", "When will you give me the key to your big red car", "What is the time over there when the hand is down", "Ask ...
36.768595
101
0.651607
da77d1ee853bc5e54d4ddc9a19a57b26ef23c7f1
81
ex
Elixir
lib/ex_appointment_web/views/user_settings_view.ex
amalgamated-tools/ex_appointment
095237f0bd6746afd8ec93d92540158aa1934075
[ "MIT" ]
1
2021-03-28T17:41:37.000Z
2021-03-28T17:41:37.000Z
lib/ex_appointment_web/views/user_settings_view.ex
amalgamated-tools/ex_appointment
095237f0bd6746afd8ec93d92540158aa1934075
[ "MIT" ]
null
null
null
lib/ex_appointment_web/views/user_settings_view.ex
amalgamated-tools/ex_appointment
095237f0bd6746afd8ec93d92540158aa1934075
[ "MIT" ]
null
null
null
defmodule ExAppointmentWeb.UserSettingsView do use ExAppointmentWeb, :view end
20.25
46
0.851852
da77f0383d4a5d568d2dc6cfd655c9217dac2993
3,140
exs
Elixir
test/glimesh_web/controllers/user_applications_test.exs
Darkhax-Forked/glimesh.tv
9566f0ec6909ecc5151f0e092f3e08b63d911fa8
[ "MIT" ]
1
2020-08-02T00:12:28.000Z
2020-08-02T00:12:28.000Z
test/glimesh_web/controllers/user_applications_test.exs
Darkhax-Forked/glimesh.tv
9566f0ec6909ecc5151f0e092f3e08b63d911fa8
[ "MIT" ]
null
null
null
test/glimesh_web/controllers/user_applications_test.exs
Darkhax-Forked/glimesh.tv
9566f0ec6909ecc5151f0e092f3e08b63d911fa8
[ "MIT" ]
null
null
null
defmodule GlimeshWeb.UserApplicationsTest do use GlimeshWeb.ConnCase alias Glimesh.Apps import Glimesh.AccountsFixtures setup :register_and_log_in_user @create_attrs %{ name: "some name", description: "some description", homepage_url: "https://glimesh.tv/", oauth_application: %{ redir...
29.622642
94
0.669108
da77f0781b2c5b7490b167363294132dbf2b37f7
2,257
ex
Elixir
lib/open_pantry/web/controllers/user_controller.ex
openpantry/open_pantry
27d898a65dd6f44b325f48d41bc448bb486d9c6f
[ "MIT" ]
41
2017-10-04T00:33:46.000Z
2021-04-09T01:33:34.000Z
lib/open_pantry/web/controllers/user_controller.ex
openpantry/open_pantry
27d898a65dd6f44b325f48d41bc448bb486d9c6f
[ "MIT" ]
74
2017-09-20T03:36:17.000Z
2018-11-20T20:46:16.000Z
lib/open_pantry/web/controllers/user_controller.ex
openpantry/open_pantry
27d898a65dd6f44b325f48d41bc448bb486d9c6f
[ "MIT" ]
12
2017-10-04T10:02:49.000Z
2021-12-28T22:57:20.000Z
defmodule OpenPantry.Web.UserController do use OpenPantry.Web, :controller alias Ecto.Query alias OpenPantry.Repo alias OpenPantry.User alias OpenPantry.Facility def index(conn, _params) do users = User |> Repo.filter_facility(conn) |> Repo.all render(conn, "index.html", users: users) end def...
27.864198
103
0.624723
da77f369484aa070dc14fb9a390336ed52035d86
13,647
ex
Elixir
lib/quaff_constants.ex
aruki-delivery/quaff
3538bec660642398537488377d57f5212b44414a
[ "Apache-2.0" ]
null
null
null
lib/quaff_constants.ex
aruki-delivery/quaff
3538bec660642398537488377d57f5212b44414a
[ "Apache-2.0" ]
null
null
null
lib/quaff_constants.ex
aruki-delivery/quaff
3538bec660642398537488377d57f5212b44414a
[ "Apache-2.0" ]
1
2019-12-03T15:46:32.000Z
2019-12-03T15:46:32.000Z
# Copyright 2014 Josh Burroughs <josh@qhool.com> # 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...
25.225508
97
0.578442
da77f9d9eedfbeb783ba1ac83eca549b508d9c8d
1,021
exs
Elixir
mix.exs
tavofigse/crayon
1c3081a8770325b57d36a5b3ae04a183cc87b08c
[ "MIT" ]
2
2019-04-28T04:40:00.000Z
2019-05-09T09:39:05.000Z
mix.exs
tavofigse/crayon
1c3081a8770325b57d36a5b3ae04a183cc87b08c
[ "MIT" ]
null
null
null
mix.exs
tavofigse/crayon
1c3081a8770325b57d36a5b3ae04a183cc87b08c
[ "MIT" ]
null
null
null
defmodule Crayon.MixProject do use Mix.Project def project do [ app: :crayon, version: "0.1.0", elixir: "~> 1.8", build_embedded: Mix.env == :prod, start_permanent: Mix.env() == :prod, description: description(), package: package(), deps: deps() ] end # ...
21.270833
87
0.561214
da781340b198a649bd8605a2786368d098728ddf
382
ex
Elixir
web/views/error_view.ex
rustedgrail/where_its_due
2140006ecfbe29e9d4ebc1895b147a76b5376fc3
[ "MIT" ]
null
null
null
web/views/error_view.ex
rustedgrail/where_its_due
2140006ecfbe29e9d4ebc1895b147a76b5376fc3
[ "MIT" ]
null
null
null
web/views/error_view.ex
rustedgrail/where_its_due
2140006ecfbe29e9d4ebc1895b147a76b5376fc3
[ "MIT" ]
null
null
null
defmodule WhereItsDue.ErrorView do use WhereItsDue.Web, :view def render("404.html", _assigns) do "Page not found" end def render("500.html", _assigns) do "Server internal error" end # In case no render clause matches or no # template is found, let's render it as 500 def template_not_found(_t...
21.222222
47
0.704188
da7823c03e526676d3a8a9a2f5b13145a5812935
387
ex
Elixir
lib/sugar.ex
pct/sugar
772aa993dec98f26355991168186f30745dbc756
[ "MIT" ]
374
2015-01-03T00:16:25.000Z
2022-02-02T21:08:48.000Z
lib/sugar.ex
pct/sugar
772aa993dec98f26355991168186f30745dbc756
[ "MIT" ]
44
2015-01-01T11:38:12.000Z
2020-11-18T19:48:01.000Z
lib/sugar.ex
pct/sugar
772aa993dec98f26355991168186f30745dbc756
[ "MIT" ]
34
2015-01-04T13:42:41.000Z
2020-07-18T17:27:27.000Z
defmodule Sugar do @moduledoc """ Web framework for Elixir, built on top of [Plug](https://github.com/elixir-lang/plug) ## Goals - Speed. Sugar shouldn't be slow and neither should your project. - Ease. Sugar should be simple because simple is easy to learn and use. - Effective. Sugar should aid developme...
32.25
97
0.723514
da782b36cf08aedc25f859bc883e273ef8854eef
3,732
exs
Elixir
test/cadet/courses/course_test.exs
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
27
2018-01-20T05:56:24.000Z
2021-05-24T03:21:55.000Z
test/cadet/courses/course_test.exs
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
731
2018-04-16T13:25:49.000Z
2021-06-22T07:16:12.000Z
test/cadet/courses/course_test.exs
source-academy/cadet
c447552453f78799755de73f66999e4c9d20383c
[ "Apache-2.0" ]
43
2018-01-20T06:35:46.000Z
2021-05-05T03:22:35.000Z
defmodule Cadet.Courses.CourseTest do alias Cadet.Courses.Course use Cadet.ChangesetCase, entity: Course describe "Course Configuration Changesets" do test "valid changesets" do assert_changeset( %{ course_name: "Data Structures and Algorithms", source_chapter: 1, ...
24.077419
95
0.55493
da7844be6f1f593ec408d2234d84e06b987ac9e2
227
exs
Elixir
config/dev.exs
bencoppock/bunyan
60337dbe71831f697d6e4588d92fcf99bb258269
[ "Apache-2.0" ]
7
2016-11-27T11:20:38.000Z
2021-05-03T23:59:13.000Z
config/dev.exs
bencoppock/bunyan
60337dbe71831f697d6e4588d92fcf99bb258269
[ "Apache-2.0" ]
null
null
null
config/dev.exs
bencoppock/bunyan
60337dbe71831f697d6e4588d92fcf99bb258269
[ "Apache-2.0" ]
null
null
null
use Mix.Config config :logger, compile_time_purge_level: :info # config :logger, :console, # format: "$message\n" config :bunyan, env_vars: [{"CUSTOM_ENV_VAR", "our_env_var"}], filter_parameters: ["password", "ssn"]
18.916667
48
0.696035
da785dca2eb65d66c5014f07486c50fa03e0de89
5,064
exs
Elixir
kousa/test/broth/_message/room/create_scheduled_test.exs
LeonardSSH/dogehouse
584055ad407bc37fa35cdf36ebb271622e29d436
[ "MIT" ]
9
2021-03-17T03:56:18.000Z
2021-09-24T22:45:14.000Z
kousa/test/broth/_message/room/create_scheduled_test.exs
ActuallyTomas/dogehouse
8c3d2cd1d7e99e173f0658759467a391c4a90c4e
[ "MIT" ]
12
2021-07-06T12:51:13.000Z
2022-03-16T12:38:18.000Z
kousa/test/broth/_message/room/create_scheduled_test.exs
ActuallyTomas/dogehouse
8c3d2cd1d7e99e173f0658759467a391c4a90c4e
[ "MIT" ]
4
2021-07-15T20:33:50.000Z
2022-03-27T12:46:47.000Z
defmodule BrothTest.Message.Room.CreateScheduledTest do use ExUnit.Case, async: true @moduletag :message alias Broth.Message.Room.CreateScheduled setup do future = DateTime.utc_now() |> DateTime.add(1, :second) {:ok, uuid: UUID.uuid4(), future: future} end describe "when you send an create_sched...
38.953846
98
0.516983
da78693bef49d3e6e17ba45a098e0512f25a56b4
153
ex
Elixir
lib/hl7/2.3/datatypes/cm_wvi.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.3/datatypes/cm_wvi.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
lib/hl7/2.3/datatypes/cm_wvi.ex
calvinb/elixir-hl7
5e953fa11f9184857c0ec4dda8662889f35a6bec
[ "Apache-2.0" ]
null
null
null
defmodule HL7.V2_3.DataTypes.Cmwvi do @moduledoc false use HL7.DataType, fields: [ channel_number: nil, channel_name: nil ] end
15.3
37
0.660131
da788df7ccab9d4bdc769ae55c13da8bb988cbbe
156
ex
Elixir
2016/day14/lib/day14/integers.ex
matt-thomson/advent-of-code
feff903151284240a9d3f0c84cdfe52d8d11ef06
[ "MIT" ]
null
null
null
2016/day14/lib/day14/integers.ex
matt-thomson/advent-of-code
feff903151284240a9d3f0c84cdfe52d8d11ef06
[ "MIT" ]
null
null
null
2016/day14/lib/day14/integers.ex
matt-thomson/advent-of-code
feff903151284240a9d3f0c84cdfe52d8d11ef06
[ "MIT" ]
null
null
null
defmodule Day14.Integers do @moduledoc """ Provides an infinite stream of integers. """ def stream do 0 |> Stream.iterate(&(&1 + 1)) end end
15.6
42
0.641026
da788f41d300e711c3c765b50c5d9f1e74f8107c
5,739
ex
Elixir
lib/new_relic.ex
simonprev/elixir_agent
56e6bf32259706ba45f3a158079f8e5a26f28b91
[ "Apache-2.0" ]
null
null
null
lib/new_relic.ex
simonprev/elixir_agent
56e6bf32259706ba45f3a158079f8e5a26f28b91
[ "Apache-2.0" ]
null
null
null
lib/new_relic.ex
simonprev/elixir_agent
56e6bf32259706ba45f3a158079f8e5a26f28b91
[ "Apache-2.0" ]
null
null
null
defmodule NewRelic do @moduledoc """ New Relic Agent - Public API """ @doc """ Set the name of the current transaction. The first segment will be treated as the Transaction namespace, and commonly contains the name of the framework. **Notes:** * At least 2 segments are required to light up the Tran...
30.205263
118
0.717198
da78a8f5c1e6049f49fbc6f1b88409f5d01ddd95
249
ex
Elixir
Chapter07/vocial-demo-chapter-7/lib/vocial.ex
PacktPublishing/Phoenix-Web-Development
a071392abe2a459be1896580446b006126c393bf
[ "MIT" ]
10
2018-05-13T14:53:05.000Z
2021-11-08T13:10:44.000Z
Chapter05/vocial-demo-0.5.0/lib/vocial.ex
PacktPublishing/Phoenix-Web-Development
a071392abe2a459be1896580446b006126c393bf
[ "MIT" ]
null
null
null
Chapter05/vocial-demo-0.5.0/lib/vocial.ex
PacktPublishing/Phoenix-Web-Development
a071392abe2a459be1896580446b006126c393bf
[ "MIT" ]
2
2019-04-23T10:54:33.000Z
2019-04-27T15:47:07.000Z
defmodule Vocial do @moduledoc """ Vocial keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
24.9
66
0.751004
da78c989c23618aecb437e6af83d38c48d9e3ae6
90
exs
Elixir
test/text_based_fps_web/views/page_view_test.exs
guisehn/elixir-text-based-fps
59a815da337309297f8b42ef3481277dd4d9b371
[ "MIT" ]
1
2022-03-02T12:18:07.000Z
2022-03-02T12:18:07.000Z
test/text_based_fps_web/views/page_view_test.exs
guisehn/elixir-text-based-fps
59a815da337309297f8b42ef3481277dd4d9b371
[ "MIT" ]
12
2021-05-31T21:41:09.000Z
2021-07-30T03:18:09.000Z
test/text_based_fps_web/views/page_view_test.exs
guisehn/elixir-text-based-fps
59a815da337309297f8b42ef3481277dd4d9b371
[ "MIT" ]
null
null
null
defmodule TextBasedFPSWeb.PageViewTest do use TextBasedFPSWeb.ConnCase, async: true end
22.5
43
0.844444
da78fd64cf6553a84939d63db49e6830ce3482bc
4,360
ex
Elixir
clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/task.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/task.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
clients/cloud_tasks/lib/google_api/cloud_tasks/v2beta2/model/task.ex
linjunpop/elixir-google-api
444cb2b2fb02726894535461a474beddd8b86db4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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...
65.074627
1,008
0.733028
da791eb44d30a50db2e40c0bd7bb1cc51a19af59
5,779
exs
Elixir
test/kaffe/config/consumer_test.exs
appcues/kaffe
07c62b575801600e2deada31aa288c4dab61f5a8
[ "MIT" ]
null
null
null
test/kaffe/config/consumer_test.exs
appcues/kaffe
07c62b575801600e2deada31aa288c4dab61f5a8
[ "MIT" ]
null
null
null
test/kaffe/config/consumer_test.exs
appcues/kaffe
07c62b575801600e2deada31aa288c4dab61f5a8
[ "MIT" ]
null
null
null
defmodule Kaffe.Config.ConsumerTest do use ExUnit.Case describe "configuration/0" do setup do consumer_config = Application.get_env(:kaffe, :consumer) |> Keyword.delete(:offset_reset_policy) |> Keyword.delete(:ssl) |> Keyword.put(:start_with_earliest_message, true) ...
31.237838
106
0.6534
da79251ab6181d9286c08159aee61741c8050b37
10,219
exs
Elixir
lib/elixir/test/elixir/base_test.exs
enokd/elixir
e39b32f235082b8a29fcb22d250c822cca98609f
[ "Apache-2.0" ]
1
2015-11-12T19:23:45.000Z
2015-11-12T19:23:45.000Z
lib/elixir/test/elixir/base_test.exs
enokd/elixir
e39b32f235082b8a29fcb22d250c822cca98609f
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/base_test.exs
enokd/elixir
e39b32f235082b8a29fcb22d250c822cca98609f
[ "Apache-2.0" ]
null
null
null
Code.require_file "test_helper.exs", __DIR__ defmodule BaseTest do use ExUnit.Case, async: true import Base test "encode16" do assert "" == encode16("") assert "66" == encode16("f") assert "666F" == encode16("fo") assert "666F6F" == encode16("foo") assert "666F6F62" == encode16("foob") ...
25.294554
107
0.627654
da7929a97ca43f40026f82e4843a7d8de8dd1056
156
ex
Elixir
socket_remotedata/web/controllers/page_controller.ex
mikeonslow/elm-socket-remotedata
8b5ee678f7f954c6b289f96b559d8ff5d648d474
[ "MIT" ]
1
2020-02-09T20:20:23.000Z
2020-02-09T20:20:23.000Z
socket_remotedata/web/controllers/page_controller.ex
mikeonslow/elm-socket-remotedata
8b5ee678f7f954c6b289f96b559d8ff5d648d474
[ "MIT" ]
null
null
null
socket_remotedata/web/controllers/page_controller.ex
mikeonslow/elm-socket-remotedata
8b5ee678f7f954c6b289f96b559d8ff5d648d474
[ "MIT" ]
null
null
null
defmodule SocketRemotedata.PageController do use SocketRemotedata.Web, :controller def index(conn, _params) do render conn, "index.html" end end
19.5
44
0.762821
da792dabbb908633365ab62ba720d89df906b2da
4,334
ex
Elixir
clients/iam/lib/google_api/iam/v1/model/service_account.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/iam/lib/google_api/iam/v1/model/service_account.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/iam/lib/google_api/iam/v1/model/service_account.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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 ...
43.34
130
0.696124
da795a96701ea8d5f932e0eef9a1871cf576c3ec
2,892
ex
Elixir
parkapp_server/lib/parkapp/auth/devices.ex
bitmaker-software/parkapp
39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310
[ "MIT" ]
2
2018-11-06T12:21:16.000Z
2018-11-21T10:20:17.000Z
parkapp_server/lib/parkapp/auth/devices.ex
bitmaker-software/parkapp
39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310
[ "MIT" ]
null
null
null
parkapp_server/lib/parkapp/auth/devices.ex
bitmaker-software/parkapp
39d9fd3cb8ab6bd1d54b776a5467eccf3b65f310
[ "MIT" ]
null
null
null
defmodule Parkapp.Auth.Devices do @moduledoc """ The Devices module contains the Device/DB communication related methods. """ alias Parkapp.Repo alias Parkapp.Auth.Device @doc """ Returns the list of devices. ## Examples iex> list_devices() [%Device{}, ...] """ def list_devices do ...
17.742331
74
0.61722
da795fb473ee6dc24b7d723c282f4c371eacf5a2
61,851
exs
Elixir
lib/elixir/test/elixir/kernel/expansion_test.exs
RyanBard/elixir
3e0f3b47cf26aa121470141b9a1aa55a366c066e
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/expansion_test.exs
RyanBard/elixir
3e0f3b47cf26aa121470141b9a1aa55a366c066e
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/expansion_test.exs
RyanBard/elixir
3e0f3b47cf26aa121470141b9a1aa55a366c066e
[ "Apache-2.0" ]
null
null
null
Code.require_file("../test_helper.exs", __DIR__) defmodule Kernel.ExpansionTarget do defmacro seventeen, do: 17 defmacro bar, do: "bar" end defmodule Kernel.ExpansionTest do use ExUnit.Case, async: false describe "__block__" do test "expands to nil when empty" do assert expand(quote(do: unquote(:__...
25.600579
164
0.524373
da79a7de782d3d4405a469bc937b28dde07644a0
223
exs
Elixir
examples/apps/w3c_trace_context_validation/config/config.exs
carsdotcom/elixir_agent
176567630003fa588dd24fb4de8bd6dc8d598d38
[ "Apache-2.0" ]
null
null
null
examples/apps/w3c_trace_context_validation/config/config.exs
carsdotcom/elixir_agent
176567630003fa588dd24fb4de8bd6dc8d598d38
[ "Apache-2.0" ]
null
null
null
examples/apps/w3c_trace_context_validation/config/config.exs
carsdotcom/elixir_agent
176567630003fa588dd24fb4de8bd6dc8d598d38
[ "Apache-2.0" ]
null
null
null
use Mix.Config config :w3c_trace_context_validation, http_port: 4002 config :new_relic_agent, app_name: "W3cTraceContextValidation", license_key: "license_key", trusted_account_key: "123", harvest_enabled: true
20.272727
40
0.789238
da79bf19ab79b9350803b86271da4eff8beaba61
4,914
exs
Elixir
test/lib/services/github/auth_test.exs
yknx4/opencov
dc961a41e29b41b0657bc2a64bb67350a65477b8
[ "MIT" ]
8
2021-08-22T10:37:57.000Z
2022-01-10T11:27:06.000Z
test/lib/services/github/auth_test.exs
yknx4/librecov
dc961a41e29b41b0657bc2a64bb67350a65477b8
[ "MIT" ]
109
2021-08-20T04:08:04.000Z
2022-01-03T07:39:18.000Z
test/lib/services/github/auth_test.exs
Librecov/librecov
dc961a41e29b41b0657bc2a64bb67350a65477b8
[ "MIT" ]
null
null
null
defmodule Librecov.Services.Github.AuthTest do use ExUnit.Case import Mock alias Librecov.Services.Github.Auth @installations_mocks [ %ExOctocat.Model.Installation{ access_tokens_url: "https://api.github.com/app/installations/18960408/access_tokens", account: %ExOctocat.Model.SimpleUser{ ...
32.543046
92
0.642043
da7a0e0679f5a6b33e825023529bde03eb5a209f
349
exs
Elixir
spec/spec_helper.exs
participateapp/participate-api
35dab43fc456f7e8b8c8479195562baad881aa44
[ "MIT" ]
3
2015-01-29T19:11:05.000Z
2015-10-19T02:12:02.000Z
spec/spec_helper.exs
participateapp/participate-api
35dab43fc456f7e8b8c8479195562baad881aa44
[ "MIT" ]
43
2015-05-31T00:28:45.000Z
2017-02-06T20:06:19.000Z
spec/spec_helper.exs
participateapp/participate-api
35dab43fc456f7e8b8c8479195562baad881aa44
[ "MIT" ]
2
2015-07-11T14:48:04.000Z
2015-07-13T06:51:37.000Z
Code.require_file("#{__DIR__}/phoenix_helper.exs") {:ok, _} = Application.ensure_all_started(:ex_machina) ESpec.start ESpec.configure fn(config) -> config.before fn -> Ecto.Adapters.SQL.Sandbox.checkout(ParticipateApi.Repo, []) end config.finally fn(_shared) -> Ecto.Adapters.SQL.Sandbox.checkin(Partic...
21.8125
63
0.727794
da7a1932ab72b625ef48ed739f8e6275041112ec
1,382
ex
Elixir
lib/doritos_web.ex
sean-clayton/doritos
384f47b2a1acddf67701b4f1bcf58e4b1a8a599f
[ "0BSD" ]
null
null
null
lib/doritos_web.ex
sean-clayton/doritos
384f47b2a1acddf67701b4f1bcf58e4b1a8a599f
[ "0BSD" ]
null
null
null
lib/doritos_web.ex
sean-clayton/doritos
384f47b2a1acddf67701b4f1bcf58e4b1a8a599f
[ "0BSD" ]
null
null
null
defmodule DoritosWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use DoritosWeb, :controller use DoritosWeb, :view The definitions below will be executed for every view, controller, ...
22.290323
69
0.68958
da7a2a296d47583d5f14f7e9638b108e66e05e30
52,314
ex
Elixir
lib/codes/codes_s70.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_s70.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_s70.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_S70 do alias IcdCode.ICDCode def _S7000XA do %ICDCode{full_code: "S7000XA", category_code: "S70", short_code: "00XA", full_name: "Contusion of unspecified hip, initial encounter", short_name: "Contusion of unspecified hip, initial encounter"...
40.148887
100
0.640192
da7a3ee43db007a162f68c2c8833aee662beca46
74
ex
Elixir
lib/moebius/command_batch.ex
KritR/moebius
fc242bfd474ed4c030487749fe0354469fa7d5b8
[ "BSD-3-Clause" ]
609
2015-10-13T23:42:14.000Z
2022-03-29T21:11:25.000Z
lib/moebius/command_batch.ex
KritR/moebius
fc242bfd474ed4c030487749fe0354469fa7d5b8
[ "BSD-3-Clause" ]
82
2015-10-20T02:18:00.000Z
2021-12-14T19:17:57.000Z
lib/moebius/command_batch.ex
KritR/moebius
fc242bfd474ed4c030487749fe0354469fa7d5b8
[ "BSD-3-Clause" ]
62
2015-10-20T01:14:15.000Z
2021-11-26T19:02:00.000Z
defmodule Moebius.CommandBatch do defstruct [ commands: [], ] end
12.333333
33
0.675676
da7a43b263f5d68c17e993a6fee9bfbcac540278
3,864
ex
Elixir
clients/logging/lib/google_api/logging/v2/model/list_log_entries_request.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/logging/lib/google_api/logging/v2/model/list_log_entries_request.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
null
null
null
clients/logging/lib/google_api/logging/v2/model/list_log_entries_request.ex
nuxlli/elixir-google-api
ecb8679ac7282b7dd314c3e20c250710ec6a7870
[ "Apache-2.0" ]
1
2020-11-10T16:58:27.000Z
2020-11-10T16:58:27.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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...
61.333333
469
0.753106
da7a43d42ab7a81122174527e066b24d3e02a4d9
2,045
ex
Elixir
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_priority_capabilities.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_priority_capabilities.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/remote_build_execution/lib/google_api/remote_build_execution/v2/model/build_bazel_remote_execution_v2_priority_capabilities.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.661017
160
0.764792
da7a508ee779424239cea7892f786b4b6e0020c6
221
ex
Elixir
E002-messaging-basics/lib/messaging_basics.ex
yurifrl/btw-samples-elixir
a1b6a5c6a1415a49e4987d1411f1b2be81eafce1
[ "BSD-3-Clause" ]
null
null
null
E002-messaging-basics/lib/messaging_basics.ex
yurifrl/btw-samples-elixir
a1b6a5c6a1415a49e4987d1411f1b2be81eafce1
[ "BSD-3-Clause" ]
null
null
null
E002-messaging-basics/lib/messaging_basics.ex
yurifrl/btw-samples-elixir
a1b6a5c6a1415a49e4987d1411f1b2be81eafce1
[ "BSD-3-Clause" ]
null
null
null
defmodule MessagingBasics do @moduledoc """ Documentation for MessagingBasics. """ @doc """ Hello world. ## Examples iex> MessagingBasics.hello :world """ def hello do :world end end
11.631579
36
0.615385
da7a51c16a21c3116b800786896b0edfb9456c7f
2,097
exs
Elixir
test/functional/parser/footnotes_test.exs
ZeLarpMaster/earmark
35c9661d6647059e507c0278347e21d92351c417
[ "Apache-1.1" ]
null
null
null
test/functional/parser/footnotes_test.exs
ZeLarpMaster/earmark
35c9661d6647059e507c0278347e21d92351c417
[ "Apache-1.1" ]
null
null
null
test/functional/parser/footnotes_test.exs
ZeLarpMaster/earmark
35c9661d6647059e507c0278347e21d92351c417
[ "Apache-1.1" ]
1
2020-03-31T19:53:15.000Z
2020-03-31T19:53:15.000Z
defmodule Functional.Parser.FootnotesTest do use ExUnit.Case, async: true alias Earmark.Block alias Earmark.Options describe "Defined" do @vanilla """ foo[^1] [^1]: bar baz """ test "Vanilla Footnote" do assert parse(@vanilla) == {[%Block.Para{attrs: nil, lnb: 1, lines: ["foo[^1]"]...
27.96
205
0.555079
da7a9803118f1d8fd49e84e6dfa77fcf8d04ea40
489
exs
Elixir
config/hipchat.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
1,003
2016-02-23T17:21:12.000Z
2022-02-20T14:39:35.000Z
config/hipchat.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
906
2016-02-22T22:54:19.000Z
2022-03-11T15:19:43.000Z
config/hipchat.exs
matusf/cog
71708301c7dc570fb0d3498a50f47a70ef957788
[ "Apache-2.0" ]
95
2016-02-23T13:42:31.000Z
2021-11-30T14:39:55.000Z
use Mix.Config config :cog, Cog.Chat.HipChat.Provider, api_root: System.get_env("HIPCHAT_API_ROOT") || "https://api.hipchat.com/v2", chat_host: System.get_env("HIPCHAT_CHAT_HOST") || "chat.hipchat.com", conf_host: System.get_env("HIPCHAT_CONF_HOST") || "conf.hipchat.com", api_token: System.get_env("HIPCHAT_API...
44.454545
79
0.760736
da7acecaeca9c8714edf029ef2977e42d2397cc3
84
exs
Elixir
test/offliner_web/views/layout_view_test.exs
adigitalmonk/offliner-ex
fb5254992ece9f193683a5d7d6385c2f7b740fe3
[ "MIT" ]
null
null
null
test/offliner_web/views/layout_view_test.exs
adigitalmonk/offliner-ex
fb5254992ece9f193683a5d7d6385c2f7b740fe3
[ "MIT" ]
null
null
null
test/offliner_web/views/layout_view_test.exs
adigitalmonk/offliner-ex
fb5254992ece9f193683a5d7d6385c2f7b740fe3
[ "MIT" ]
null
null
null
defmodule OfflinerWeb.LayoutViewTest do use OfflinerWeb.ConnCase, async: true end
21
39
0.833333
da7ad3119d88456c3a936918118aea429554f003
663
ex
Elixir
lib/wow_web/router.ex
DrPandemic/expressive-broker
66a8da94ede2c101db9e1841e17898b5bae5df49
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
lib/wow_web/router.ex
DrPandemic/expressive-broker
66a8da94ede2c101db9e1841e17898b5bae5df49
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
lib/wow_web/router.ex
DrPandemic/expressive-broker
66a8da94ede2c101db9e1841e17898b5bae5df49
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
defmodule WowWeb.Router do use WowWeb, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash plug :protect_from_forgery plug :put_secure_browser_headers end pipeline :api do plug :accepts, ["json"] end scope "/", WowWeb do pipe_through :bro...
20.090909
53
0.671192
da7aec502281b08b755755c5c3338a83f5caa52f
1,233
exs
Elixir
mix.exs
kianmeng/calendar
c910efc8ca5088dc401e367c1fac81748d13f671
[ "MIT" ]
442
2015-05-18T09:58:39.000Z
2022-02-15T19:56:41.000Z
mix.exs
kianmeng/calendar
c910efc8ca5088dc401e367c1fac81748d13f671
[ "MIT" ]
50
2015-06-04T19:10:56.000Z
2019-11-18T13:31:16.000Z
mix.exs
kianmeng/calendar
c910efc8ca5088dc401e367c1fac81748d13f671
[ "MIT" ]
47
2015-05-23T20:45:20.000Z
2021-12-23T08:32:58.000Z
defmodule Calendar.Mixfile do use Mix.Project @version "1.0.0" def project do [ app: :calendar, name: "Calendar", version: @version, elixir: "~> 1.4", consolidate_protocols: false, package: package(), description: description(), deps: deps(), docs: docs(...
20.55
120
0.567721
da7afd97d69a1e3f92e895d0eec3606884ba87ec
849
exs
Elixir
server/config/config.exs
Spectory/SpectoPusher
d1ea61dce43a87169381f04080a7d5829d5d09f9
[ "MIT" ]
null
null
null
server/config/config.exs
Spectory/SpectoPusher
d1ea61dce43a87169381f04080a7d5829d5d09f9
[ "MIT" ]
3
2018-05-23T20:07:41.000Z
2018-06-01T11:58:23.000Z
server/config/config.exs
Spectory/coyote
d1ea61dce43a87169381f04080a7d5829d5d09f9
[ "MIT" ]
1
2017-06-16T18:29:44.000Z
2017-06-16T18:29:44.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. use Mix.Config # Configures the endpoint config :coyote, CoyoteWeb.Endpoint, url: [host: "localhos...
35.375
86
0.757362
da7b03e01f9a89e1273045a81983ff9c495d7e8d
718
ex
Elixir
lib/simple_api_web/gettext.ex
miklt/api-simples
1344928f647d72fad76307228849532c9c76b473
[ "MIT" ]
null
null
null
lib/simple_api_web/gettext.ex
miklt/api-simples
1344928f647d72fad76307228849532c9c76b473
[ "MIT" ]
null
null
null
lib/simple_api_web/gettext.ex
miklt/api-simples
1344928f647d72fad76307228849532c9c76b473
[ "MIT" ]
null
null
null
defmodule SimpleApiWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import SimpleApiWeb.Gettext # Simple translation gettext("Here ...
28.72
72
0.681058
da7b65792f399252dd17ef2174a3ef89e473a727
3,454
ex
Elixir
lib/server/matchmaking.ex
skylerparr/playfab_ex
b6a049511bc3466cea5959797425bffc099239de
[ "MIT" ]
1
2021-12-21T14:22:12.000Z
2021-12-21T14:22:12.000Z
lib/server/matchmaking.ex
skylerparr/playfab_ex
b6a049511bc3466cea5959797425bffc099239de
[ "MIT" ]
null
null
null
lib/server/matchmaking.ex
skylerparr/playfab_ex
b6a049511bc3466cea5959797425bffc099239de
[ "MIT" ]
null
null
null
defmodule PlayfabEx.Server.Matchmaking do use Interface @doc """ Inform the matchmaker that a Game Server Instance is removed. [online docs](https://api.playfab.com/documentation/server/method/DeregisterGame) """ @spec deregister_game(map()) :: {:ok, map} | {:error, String.t} definterface deregister_gam...
46.053333
171
0.755935
da7bc6509d3d08021dc1a91efbb8a1057d91e337
524
exs
Elixir
mix.exs
xire28/try_nx
537005e6ecc7373de2aaeb754cf48e7303e12c72
[ "MIT" ]
null
null
null
mix.exs
xire28/try_nx
537005e6ecc7373de2aaeb754cf48e7303e12c72
[ "MIT" ]
null
null
null
mix.exs
xire28/try_nx
537005e6ecc7373de2aaeb754cf48e7303e12c72
[ "MIT" ]
null
null
null
defmodule TryNx.MixProject do use Mix.Project def project do [ app: :try_nx, version: "0.1.0", elixir: "~> 1.11", start_permanent: Mix.env() == :prod, deps: deps() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_appli...
18.714286
81
0.568702
da7bee3e1035c2e8cae227d782d422534658829b
82
exs
Elixir
test/goodbot_web/views/layout_view_test.exs
gurschitz/goodbot_phoenix
9b42edd2dbabc2d69f7e93a33f9a58c48b4a2203
[ "MIT" ]
null
null
null
test/goodbot_web/views/layout_view_test.exs
gurschitz/goodbot_phoenix
9b42edd2dbabc2d69f7e93a33f9a58c48b4a2203
[ "MIT" ]
null
null
null
test/goodbot_web/views/layout_view_test.exs
gurschitz/goodbot_phoenix
9b42edd2dbabc2d69f7e93a33f9a58c48b4a2203
[ "MIT" ]
null
null
null
defmodule GoodbotWeb.LayoutViewTest do use GoodbotWeb.ConnCase, async: true end
20.5
38
0.829268
da7bf276656f7f4a832fbc41d406bcdc2c37dac2
908
ex
Elixir
lib/salt_and_pepper/service/apns/payload.ex
PerishableDave/salt_and_pepper
cbcb2e7b4be3a7e128ae75729e8115a1a22e6410
[ "MIT" ]
null
null
null
lib/salt_and_pepper/service/apns/payload.ex
PerishableDave/salt_and_pepper
cbcb2e7b4be3a7e128ae75729e8115a1a22e6410
[ "MIT" ]
null
null
null
lib/salt_and_pepper/service/apns/payload.ex
PerishableDave/salt_and_pepper
cbcb2e7b4be3a7e128ae75729e8115a1a22e6410
[ "MIT" ]
null
null
null
defmodule SaltAndPepper.Service.APNS.Payload do defstruct alert: nil, badge: nil, sound: nil, content_available: nil, category: nil, user: %{} def serialize(payload) do {%{user: user}, aps} = Map.split(payload, [:user]) aps = aps |> Map.from_struct |> normalize_payload user |> Map.merge(%...
24.540541
96
0.59141
da7c2e7cc423cb7f81a1616fd15ecd41ae22f73a
415
exs
Elixir
examples/gen_tcp_server.exs
tlossen/elixir
38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b
[ "MIT" ]
1
2015-10-25T11:30:13.000Z
2015-10-25T11:30:13.000Z
examples/gen_tcp_server.exs
tlossen/elixir
38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b
[ "MIT" ]
null
null
null
examples/gen_tcp_server.exs
tlossen/elixir
38567f7f84bfce69a58c0be0ee6959cc7c6b3d6b
[ "MIT" ]
null
null
null
module Server def start {'ok, tcp} = GenTCP.listen(5678, ['binary, {'packet, 0}, {'active, false}]) {'ok, sock} = tcp.accept {'ok, bin} = recv(tcp, sock, []) 'ok = tcp.close IO.puts bin.to_s end private def recv(tcp, sock, bs) case tcp.recv(sock,0) match {'ok, b} recv(tcp, so...
18.863636
79
0.551807
da7c307da8558881cd0c94bff68f423d1dc18d06
1,454
exs
Elixir
config/dev.exs
sebbean/phoenix-trello
c698ef9bdd29553aff941cc1f31778ee09c974d6
[ "MIT" ]
1
2016-05-25T00:39:55.000Z
2016-05-25T00:39:55.000Z
config/dev.exs
sebbean/phoenix-trello
c698ef9bdd29553aff941cc1f31778ee09c974d6
[ "MIT" ]
null
null
null
config/dev.exs
sebbean/phoenix-trello
c698ef9bdd29553aff941cc1f31778ee09c974d6
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with brunch.io to recompile .js and .css sources. config :phoenix_trello, PhoenixTrello.Endpoint, http:...
29.673469
80
0.735901
da7c46ef17a3c2ccd6b7d30cfeb15bf12b07a331
1,521
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/error_value.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/error_value.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/sheets/lib/google_api/sheets/v4/model/error_value.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
29.823529
104
0.707429
da7c745e37f52bdbaf427917a5e5097e2ad813ac
1,826
exs
Elixir
clients/composer/mix.exs
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/composer/mix.exs
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/composer/mix.exs
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
27.253731
100
0.654436
da7c899146379b507454fc812681970886191ef5
1,850
ex
Elixir
clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_device_air_interface.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_device_air_interface.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/sas_portal/lib/google_api/sas_portal/v1alpha1/model/sas_portal_device_air_interface.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
37
225
0.748649
da7c8c193139749c60b92b92f49e2462a22e8fde
51,328
ex
Elixir
lib/phoenix_live_view.ex
aymanosman/phoenix_live_view
c6f20b7f3d6a42ae9e4b8588152862a465b81a43
[ "MIT" ]
null
null
null
lib/phoenix_live_view.ex
aymanosman/phoenix_live_view
c6f20b7f3d6a42ae9e4b8588152862a465b81a43
[ "MIT" ]
null
null
null
lib/phoenix_live_view.ex
aymanosman/phoenix_live_view
c6f20b7f3d6a42ae9e4b8588152862a465b81a43
[ "MIT" ]
null
null
null
defmodule Phoenix.LiveView do @moduledoc ~S''' LiveView provides rich, real-time user experiences with server-rendered HTML. The LiveView programming model is declarative: instead of saying "once event X happens, change Y on the page", events in LiveView are regular messages which may cause changes to it...
34.89327
140
0.679395
da7c9c1ea8692750320373950c0e45901fcd1f9d
214
exs
Elixir
priv/scripts/remove_owner.exs
Jks15063/hexpm
3d58dac138e1eeaf16c2ce07b6e6ffdcb0be0e7b
[ "Apache-2.0" ]
2
2020-03-01T18:23:33.000Z
2021-01-15T10:15:45.000Z
priv/scripts/remove_owner.exs
yitzackRabin/hexpm
5bf8c491e5aa764b2c60a3aab3e90f814eb3f471
[ "Apache-2.0" ]
3
2020-06-30T11:24:41.000Z
2020-08-05T15:47:34.000Z
priv/scripts/remove_owner.exs
yitzackRabin/hexpm
5bf8c491e5aa764b2c60a3aab3e90f814eb3f471
[ "Apache-2.0" ]
null
null
null
destructure [package, username_or_email], System.argv() package = Packages.get(package) user = Users.get(username_or_email, [:emails]) IO.inspect(Owners.remove(package, user, audit: {Users.get("admin"), "CLI"}))
30.571429
76
0.738318
da7cba6019477dc18f053e4fb772a9c2367e81d7
846
exs
Elixir
server/test/realtime_web/channels/auth/channels_authorization_test.exs
gustavoarmoa/realtime
e8075779ed19bfb8c22541dc1e5e8ea032d5b823
[ "Apache-2.0" ]
4,609
2019-10-25T12:28:35.000Z
2022-03-31T23:05:06.000Z
server/test/realtime_web/channels/auth/channels_authorization_test.exs
gustavoarmoa/realtime
e8075779ed19bfb8c22541dc1e5e8ea032d5b823
[ "Apache-2.0" ]
223
2019-09-27T03:21:45.000Z
2022-03-29T23:04:03.000Z
server/test/realtime_web/channels/auth/channels_authorization_test.exs
gustavoarmoa/realtime
e8075779ed19bfb8c22541dc1e5e8ea032d5b823
[ "Apache-2.0" ]
187
2019-10-27T07:44:15.000Z
2022-03-29T19:34:52.000Z
defmodule RealtimeWeb.ChannelsAuthorizationTest do use ExUnit.Case import Mock alias RealtimeWeb.{ChannelsAuthorization, JwtVerification} test "authorize/1 when token is authorized" do input_token = "\n token %20 1 %20 2 %20 3 " expected_token = "token123" with_mock JwtVerification, veri...
27.290323
85
0.689125
da7cd8b7fcaf926719c5b3ac3c4e0f7809d8fc8e
413
ex
Elixir
lib/codes/codes_p60.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_p60.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_p60.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_P60 do alias IcdCode.ICDCode def _P60 do %ICDCode{full_code: "P60", category_code: "P60", short_code: "", full_name: "Disseminated intravascular coagulation of newborn", short_name: "Disseminated intravascular coagulation of newborn", ...
25.8125
76
0.677966
da7d02659c3915d76251cf86a4c5fd41e72272f0
373
exs
Elixir
priv/repo/migrations/20180529192829_create_stars.exs
amymariparker/atom-style-tweaks
9f17b626e4a527d17d2da85ac575029b52fb6a25
[ "MIT" ]
14
2017-01-08T14:51:25.000Z
2022-03-14T09:23:17.000Z
priv/repo/migrations/20180529192829_create_stars.exs
amymariparker/atom-style-tweaks
9f17b626e4a527d17d2da85ac575029b52fb6a25
[ "MIT" ]
654
2017-05-23T22:55:21.000Z
2022-03-30T09:02:25.000Z
priv/repo/migrations/20180529192829_create_stars.exs
amymariparker/atom-style-tweaks
9f17b626e4a527d17d2da85ac575029b52fb6a25
[ "MIT" ]
4
2019-07-10T23:09:25.000Z
2020-02-09T12:14:00.000Z
defmodule AtomTweaks.Repo.Migrations.CreateStars do use Ecto.Migration def change do create table(:stars) do add(:user_id, references(:users, on_delete: :nothing, type: :binary_id)) add(:tweak_id, references(:tweaks, on_delete: :nothing, type: :binary_id)) timestamps() end create(un...
24.866667
80
0.691689
da7d03b901fa6394ab87036aba08f020ddbac34d
279
exs
Elixir
priv/repo/migrations/20220323002334_create_payment_method.exs
joabehenrique/rockelivery
02f83fe99df8e27d4e2a6270fecb39a521f2ceaf
[ "MIT" ]
1
2021-09-27T06:15:08.000Z
2021-09-27T06:15:08.000Z
priv/repo/migrations/20220323002334_create_payment_method.exs
joabehenrique/rockelivery
02f83fe99df8e27d4e2a6270fecb39a521f2ceaf
[ "MIT" ]
null
null
null
priv/repo/migrations/20220323002334_create_payment_method.exs
joabehenrique/rockelivery
02f83fe99df8e27d4e2a6270fecb39a521f2ceaf
[ "MIT" ]
1
2021-12-21T12:47:59.000Z
2021-12-21T12:47:59.000Z
defmodule Rockelivery.Repo.Migrations.CreatePaymentMethod do use Ecto.Migration def change do up_query = "CREATE TYPE payment_method AS ENUM ('money', 'credit_card', 'debit_card')" down_query = "DROP TYPE payment_method" execute(up_query, down_query) end end
25.363636
90
0.749104
da7d0481c71bdfcdfd8a9fd841b9d8182fdbe612
293
exs
Elixir
test/stripe/subscriptions/line_item_test.exs
mmmries/stripity_stripe
7bfaa2316f24a86fbbfc3cf140b1caff05f5ef9d
[ "BSD-3-Clause" ]
null
null
null
test/stripe/subscriptions/line_item_test.exs
mmmries/stripity_stripe
7bfaa2316f24a86fbbfc3cf140b1caff05f5ef9d
[ "BSD-3-Clause" ]
null
null
null
test/stripe/subscriptions/line_item_test.exs
mmmries/stripity_stripe
7bfaa2316f24a86fbbfc3cf140b1caff05f5ef9d
[ "BSD-3-Clause" ]
1
2021-12-01T21:49:27.000Z
2021-12-01T21:49:27.000Z
defmodule Stripe.LineItemTest do use Stripe.StripeCase, async: true describe "retrieve/2" do test "retrieves an invoice" do assert {:ok, %Stripe.Invoice{}} = Stripe.LineItem.retrieve("in_1234") assert_stripe_requested(:get, "/v1/invoices/in_1234/lines") end end end
26.636364
75
0.706485
da7d069025ea709b161ff876cecee15b04fc7914
709
ex
Elixir
lib/phx_pow_web/gettext.ex
brandedux/phoenix_authentication
a1a5758532a4ece73bfc7319f8c9235b070bd1fe
[ "MIT" ]
2
2019-09-25T22:02:59.000Z
2019-12-18T22:33:34.000Z
lib/phx_pow_web/gettext.ex
brandedux/phoenix_authentication
a1a5758532a4ece73bfc7319f8c9235b070bd1fe
[ "MIT" ]
null
null
null
lib/phx_pow_web/gettext.ex
brandedux/phoenix_authentication
a1a5758532a4ece73bfc7319f8c9235b070bd1fe
[ "MIT" ]
null
null
null
defmodule PhxPowWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import PhxPowWeb.Gettext # Simple translation gettext("Here is the...
28.36
72
0.67701
da7d165d5781e70b2fb7403049529b0e1847321d
4,149
exs
Elixir
test/transports_worker_test.exs
enzoqtvf/elixir-sippet
8f35eac41d6242b682446ec445229a694b4061d9
[ "BSD-3-Clause" ]
5
2018-08-02T15:41:23.000Z
2020-12-07T15:50:45.000Z
test/transports_worker_test.exs
team-telnyx/elixir-sippet
32de78b585132004edcb285b16c7bcd5d8f2afb6
[ "BSD-3-Clause" ]
null
null
null
test/transports_worker_test.exs
team-telnyx/elixir-sippet
32de78b585132004edcb285b16c7bcd5d8f2afb6
[ "BSD-3-Clause" ]
null
null
null
defmodule Sippet.Transports.Worker.Test do use ExUnit.Case, async: false alias Sippet.Transports.Worker, as: Worker import Mock test "incoming datagram, empty body" do with_mocks [ {Sippet.Transports.Pool, [], [check_in: fn _ -> :ok end] }, {Sippet.Transactions, ...
27.845638
77
0.56375
da7d1c549024e65bb435b1c89c6299270fd2b411
9,363
ex
Elixir
clients/cloud_build/lib/google_api/cloud_build/v1/model/build_trigger.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/cloud_build/lib/google_api/cloud_build/v1/model/build_trigger.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
clients/cloud_build/lib/google_api/cloud_build/v1/model/build_trigger.ex
MMore/elixir-google-api
0574ec1439d9bbfe22d63965be1681b0f45a94c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
77.380165
528
0.720175
da7d2f6c7a34042ee5708d7e425281a7cb4c5254
1,447
ex
Elixir
clients/content/lib/google_api/content/v2/model/location_id_set.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/content/lib/google_api/content/v2/model/location_id_set.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/content/lib/google_api/content/v2/model/location_id_set.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
30.787234
158
0.728404
da7d41f6409dd9d2ff4d99e4178429450b16c3ac
1,898
ex
Elixir
lib/cforum_web/controllers/admin/forum_controller.ex
campingrider/cforum_ex
cf27684c47d6dc26c9c37a946f1c729a79d27c70
[ "MIT" ]
null
null
null
lib/cforum_web/controllers/admin/forum_controller.ex
campingrider/cforum_ex
cf27684c47d6dc26c9c37a946f1c729a79d27c70
[ "MIT" ]
null
null
null
lib/cforum_web/controllers/admin/forum_controller.ex
campingrider/cforum_ex
cf27684c47d6dc26c9c37a946f1c729a79d27c70
[ "MIT" ]
null
null
null
defmodule CforumWeb.Admin.ForumController do use CforumWeb, :controller alias Cforum.Forums alias Cforum.Forums.Forum alias Cforum.Accounts.Setting def index(conn, _params) do forums = Forums.list_forums() render(conn, "index.html", forums: forums) end def new(conn, _params) do changeset = ...
31.114754
90
0.659642
da7d82a1cbac391d1b7adee0cef6e68e31b2ae43
1,381
ex
Elixir
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_get_sync_authorization_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_get_sync_authorization_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/apigee/lib/google_api/apigee/v1/model/google_cloud_apigee_v1_get_sync_authorization_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
28.770833
85
0.76756
da7d82bff98bd26b6888a78d4077b912780819c0
419
ex
Elixir
lib/ex_vmstats/backends/test_backend.ex
tongdao/ex_vmstats
bda37f23f8cb8dc9794a1cbbd44f9b9e1c65eba6
[ "Apache-2.0" ]
16
2015-11-11T16:24:59.000Z
2021-06-07T06:50:35.000Z
lib/ex_vmstats/backends/test_backend.ex
tongdao/ex_vmstats
bda37f23f8cb8dc9794a1cbbd44f9b9e1c65eba6
[ "Apache-2.0" ]
7
2015-11-22T22:32:29.000Z
2022-01-29T08:52:13.000Z
lib/ex_vmstats/backends/test_backend.ex
tongdao/ex_vmstats
bda37f23f8cb8dc9794a1cbbd44f9b9e1c65eba6
[ "Apache-2.0" ]
11
2015-11-11T09:19:13.000Z
2021-11-15T03:11:17.000Z
defmodule ExVmstats.TestBackend do require Logger def counter(value, metric) do Logger.info "counter #{inspect {value, metric}}" end def gauge(value, metric) do Logger.info "gauge #{inspect {value, metric}}" end def histogram(value, metric) do Logger.info "histogram #{inspect {value, metric}}...
22.052632
54
0.684964
da7d9cce275df3ad32f52c938c1bfe7c7a8265be
1,046
ex
Elixir
lib/live_view_google_maps/application.ex
data-twister/blog-phoenix-live-view-google-maps
13c7186219f9920962df161a093adf77f5ded69d
[ "MIT" ]
null
null
null
lib/live_view_google_maps/application.ex
data-twister/blog-phoenix-live-view-google-maps
13c7186219f9920962df161a093adf77f5ded69d
[ "MIT" ]
null
null
null
lib/live_view_google_maps/application.ex
data-twister/blog-phoenix-live-view-google-maps
13c7186219f9920962df161a093adf77f5ded69d
[ "MIT" ]
null
null
null
defmodule LiveViewGoogleMaps.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do children = [ # Start the Telemetry supervisor LiveViewGoogleMapsWeb.Telemetry, # Start the...
31.69697
76
0.730402
da7da1b3e6c5a1f63d60470e0381750b3052a35a
6,051
exs
Elixir
test/astarte_flow/blocks_test.exs
Pavinati/astarte_flow
82b6bee82e23907f7623a94a072239591b19b9d8
[ "Apache-2.0" ]
11
2020-01-30T17:44:35.000Z
2022-01-13T19:17:21.000Z
test/astarte_flow/blocks_test.exs
Pavinati/astarte_flow
82b6bee82e23907f7623a94a072239591b19b9d8
[ "Apache-2.0" ]
100
2020-02-11T10:01:35.000Z
2022-02-17T10:39:35.000Z
test/astarte_flow/blocks_test.exs
Pavinati/astarte_flow
82b6bee82e23907f7623a94a072239591b19b9d8
[ "Apache-2.0" ]
7
2020-01-30T11:33:20.000Z
2021-05-03T09:48:41.000Z
# # This file is part of Astarte. # # Copyright 2020 Ispirata Srl # # 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 appl...
27.630137
94
0.603537
da7da5d06340365f401a1a457d80d3346ac18f21
869
exs
Elixir
config/config.exs
wsmoak/my_app_726605
9f1808a0fa44ff28f95ad714ecb22a21650d093f
[ "MIT" ]
null
null
null
config/config.exs
wsmoak/my_app_726605
9f1808a0fa44ff28f95ad714ecb22a21650d093f
[ "MIT" ]
null
null
null
config/config.exs
wsmoak/my_app_726605
9f1808a0fa44ff28f95ad714ecb22a21650d093f
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. use Mix.Config # Configures the endpoint config :my_app_726605, MyApp_726605.Endpoint, url: [host:...
34.76
86
0.762946
da7dc22c739b500e2227146ca73c19978edb023f
1,172
ex
Elixir
lib/commodity_api/generic/base_artifacts_generate.ex
akdilsiz/commodity-cloud
08c366c9fc95fbb3565131672db4cc52f8b870c9
[ "Apache-2.0" ]
7
2019-04-11T21:12:49.000Z
2021-04-14T12:56:42.000Z
lib/commodity_api/generic/base_artifacts_generate.ex
akdilsiz/commodity-cloud
08c366c9fc95fbb3565131672db4cc52f8b870c9
[ "Apache-2.0" ]
null
null
null
lib/commodity_api/generic/base_artifacts_generate.ex
akdilsiz/commodity-cloud
08c366c9fc95fbb3565131672db4cc52f8b870c9
[ "Apache-2.0" ]
2
2019-06-06T18:05:33.000Z
2019-07-16T08:49:45.000Z
## # Copyright 2018 Abdulkadir DILSIZ # # 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...
30.051282
77
0.720137
da7dd1d61f952f84a6205b347303af19f0cf4b11
1,842
ex
Elixir
lib/tackle_box_cds/cds_hooks.ex
rgovaerts/tackle_box_cds_api
332cda4d576c469748677b9952a0d7fdf77d61c2
[ "MIT" ]
null
null
null
lib/tackle_box_cds/cds_hooks.ex
rgovaerts/tackle_box_cds_api
332cda4d576c469748677b9952a0d7fdf77d61c2
[ "MIT" ]
null
null
null
lib/tackle_box_cds/cds_hooks.ex
rgovaerts/tackle_box_cds_api
332cda4d576c469748677b9952a0d7fdf77d61c2
[ "MIT" ]
null
null
null
defmodule TackleBoxCds.CDSHooks do @moduledoc """ The CDSHooks context. """ import Ecto.Query, warn: false alias TackleBoxCds.Repo alias TackleBoxCds.CDSHooks.Service @doc """ Returns the list of services. ## Examples iex> list_services() [%Service{}, ...] """ def list_services d...
17.542857
62
0.604777
da7e3d48e5611d1194bfc6d15a7c9003b0c51efa
1,105
exs
Elixir
config/config.exs
gharnly/elastix
ca61872cf67c539e833f1e0b438f7c93c30e0974
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
config/config.exs
gharnly/elastix
ca61872cf67c539e833f1e0b438f7c93c30e0974
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2017-07-19T15:35:03.000Z
2017-07-19T15:35:03.000Z
config/config.exs
gharnly/elastix
ca61872cf67c539e833f1e0b438f7c93c30e0974
[ "Naumen", "Condor-1.1", "MS-PL" ]
4
2017-07-19T14:52:55.000Z
2021-01-20T16:11:19.000Z
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. use Mix.Config # This configuration is loaded before any dependency and is restricted # to this project. If another project depends on this project, this # file won't be loaded nor affect the paren...
42.5
74
0.733032
da7e58b75d23111c3f5bc20a2cdb8b8ffddc4c5d
2,588
ex
Elixir
clients/billing_budgets/lib/google_api/billing_budgets/v1beta1/model/google_cloud_billing_budgets_v1beta1_budget_amount.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/billing_budgets/lib/google_api/billing_budgets/v1beta1/model/google_cloud_billing_budgets_v1beta1_budget_amount.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
clients/billing_budgets/lib/google_api/billing_budgets/v1beta1/model/google_cloud_billing_budgets_v1beta1_budget_amount.ex
jechol/elixir-google-api
0290b683dfc6491ca2ef755a80bc329378738d03
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
43.133333
406
0.770479
da7e5b737caa66ff656c13316541c1a3b66734ee
699
exs
Elixir
priv/repo/migrations/20210624025154_create_search_results.exs
junan/elixir_google_scraper
d032f3a9d5a30e354f1e6d607434670334936630
[ "MIT" ]
null
null
null
priv/repo/migrations/20210624025154_create_search_results.exs
junan/elixir_google_scraper
d032f3a9d5a30e354f1e6d607434670334936630
[ "MIT" ]
25
2021-05-21T02:23:37.000Z
2021-07-09T09:22:32.000Z
priv/repo/migrations/20210624025154_create_search_results.exs
junan/elixir_google_scraper
d032f3a9d5a30e354f1e6d607434670334936630
[ "MIT" ]
null
null
null
defmodule ElixirGoogleScraper.Repo.Migrations.CreateSearchResults do use Ecto.Migration def change do create table(:search_results) do add(:top_ads_count, :integer, null: false, default: 0) add(:top_ads_urls, {:array, :string}) add(:total_ads_count, :integer, null: false, default: 0) ad...
33.285714
79
0.67525
da7e6b090252ff88f00284b40dd8916217028456
644
ex
Elixir
lib/tock/supervisor.ex
malomohq/tock
8cfa71a7dfbe857a1476fcb1bfa27e642f3bb598
[ "MIT" ]
null
null
null
lib/tock/supervisor.ex
malomohq/tock
8cfa71a7dfbe857a1476fcb1bfa27e642f3bb598
[ "MIT" ]
null
null
null
lib/tock/supervisor.ex
malomohq/tock
8cfa71a7dfbe857a1476fcb1bfa27e642f3bb598
[ "MIT" ]
null
null
null
defmodule Tock.Supervisor do @moduledoc false use DynamicSupervisor # # client # @spec start_link :: Supervisor.on_start() def start_link do DynamicSupervisor.start_link(__MODULE__, :ok, name: __MODULE__) end @spec start_server(Keyword.t()) :: DynamicSupervisor.on_start_child() def start_ser...
19.515152
71
0.686335
da7ea0f949ec1838f037e3329bbd9b706330a36e
247
ex
Elixir
lib/host.ex
xeejp/theme-boilerplate
fa1670507bb4004ef466e65405b03ab8e22c79c3
[ "MIT" ]
1
2016-12-05T14:14:32.000Z
2016-12-05T14:14:32.000Z
lib/host.ex
xeejp/theme-boilerplate
fa1670507bb4004ef466e65405b03ab8e22c79c3
[ "MIT" ]
null
null
null
lib/host.ex
xeejp/theme-boilerplate
fa1670507bb4004ef466e65405b03ab8e22c79c3
[ "MIT" ]
null
null
null
defmodule YourApplication.Host do def get_filter(data) do %{ _default: true, participants_number: "participantsNumber" } end def filter_data(data) do Transmap.transform(data, get_filter(data), diff: false) end end
19
59
0.692308
da7f38a54220bb6f237577d848f16185e70001c7
1,437
ex
Elixir
testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/ExclamationPointDotCallBlock.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
1,668
2015-01-03T05:54:27.000Z
2022-03-25T08:01:20.000Z
testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/ExclamationPointDotCallBlock.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
2,018
2015-01-01T22:43:39.000Z
2022-03-31T20:13:08.000Z
testData/org/elixir_lang/parser_definition/unmatched_expression_parsing_test_case/ExclamationPointDotCallBlock.ex
keyno63/intellij-elixir
4033e319992c53ddd42a683ee7123a97b5e34f02
[ "Apache-2.0" ]
145
2015-01-15T11:37:16.000Z
2021-12-22T05:51:02.000Z
!One.Two[three].(four) do end !One.Two[three].(four)(five) do end !One.Two.(three) do end !One.Two.(three)(four) do end !One.two[three].(four) do end !One.two[three].(four)(five) do end !One.two(three)(four).(five) do end !One.two(three)(four).(five)(six) do end !One.two.(three) do end !One.two.(three)(four) do end...
15.619565
40
0.566458
da7f6ce30d19e34d80d6525b263d1819c6601704
133
ex
Elixir
lib/nerves/neopixel/channel.ex
DisruptiveAngels/nerves_neopixel
712b2efc7bcd4dd0051f7791e16f786186d3377b
[ "MIT" ]
null
null
null
lib/nerves/neopixel/channel.ex
DisruptiveAngels/nerves_neopixel
712b2efc7bcd4dd0051f7791e16f786186d3377b
[ "MIT" ]
null
null
null
lib/nerves/neopixel/channel.ex
DisruptiveAngels/nerves_neopixel
712b2efc7bcd4dd0051f7791e16f786186d3377b
[ "MIT" ]
null
null
null
defmodule Nerves.Neopixel.Channel do defstruct [ pin: 0, count: 0, brightness: 0, data: [], invert: false, type: :bgr] end
22.166667
40
0.654135
da7f719990c4faf4b0c5d878081fe1100fa1a4b2
4,898
exs
Elixir
test/type_check/macros_test.exs
kkentzo/elixir-type_check
bec089445286e4a420d653276e7ba96dd1016876
[ "MIT" ]
291
2020-07-07T18:14:46.000Z
2022-03-29T22:36:48.000Z
test/type_check/macros_test.exs
kkentzo/elixir-type_check
bec089445286e4a420d653276e7ba96dd1016876
[ "MIT" ]
71
2020-07-07T11:50:37.000Z
2022-03-23T21:20:54.000Z
test/type_check/macros_test.exs
kkentzo/elixir-type_check
bec089445286e4a420d653276e7ba96dd1016876
[ "MIT" ]
12
2020-10-07T16:28:22.000Z
2022-02-17T16:31:05.000Z
defmodule TypeCheck.MacrosTest do use ExUnit.Case, async: true use ExUnitProperties import StreamData, only: [] import TypeCheck.Type.StreamData describe "doctests" do # Required for the unquote fragments example in the moduledoc: defmodule MetaExample do use TypeCheck people = ~w[joe ro...
27.516854
132
0.65292
da7fb7150e1792f8ae069aa3d29a6f4f9d1a94db
272
ex
Elixir
lib/application.ex
southgard/ex_isbndb
15682e3db21e84a598d42997c8609fb1cd74f5e1
[ "MIT" ]
null
null
null
lib/application.ex
southgard/ex_isbndb
15682e3db21e84a598d42997c8609fb1cd74f5e1
[ "MIT" ]
2
2022-03-24T22:29:34.000Z
2022-03-29T21:03:48.000Z
lib/application.ex
southgard/ex_isbndb
15682e3db21e84a598d42997c8609fb1cd74f5e1
[ "MIT" ]
null
null
null
defmodule ExIsbndb.Application do @moduledoc false use Application def start(_type, _args) do children = [ {Finch, name: IsbnFinch} ] opts = [strategy: :one_for_one, name: ExIsbndb.Supervisor] Supervisor.start_link(children, opts) end end
18.133333
62
0.6875
da7fdba9762cd753093ff2d44874f1fdc4a14a33
1,686
exs
Elixir
combo/exibee/config/config.exs
exineris/shp_challenge2021
2a5447af681259d0ea699b670cf079bd31315cd8
[ "Apache-2.0" ]
null
null
null
combo/exibee/config/config.exs
exineris/shp_challenge2021
2a5447af681259d0ea699b670cf079bd31315cd8
[ "Apache-2.0" ]
null
null
null
combo/exibee/config/config.exs
exineris/shp_challenge2021
2a5447af681259d0ea699b670cf079bd31315cd8
[ "Apache-2.0" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. import Config # Enable the Nerves integration with Mix Application.start(:nerves_bootstrap) config ...
28.1
82
0.759193
da7fdf0207608f9f57071fe2b92b4ab302704870
984
ex
Elixir
exercism/elixir/atbash-cipher/lib/atbash.ex
Tyyagoo/studies
f8fcc3a539cfb6d04a149174c88bf2208e220b96
[ "Unlicense" ]
null
null
null
exercism/elixir/atbash-cipher/lib/atbash.ex
Tyyagoo/studies
f8fcc3a539cfb6d04a149174c88bf2208e220b96
[ "Unlicense" ]
null
null
null
exercism/elixir/atbash-cipher/lib/atbash.ex
Tyyagoo/studies
f8fcc3a539cfb6d04a149174c88bf2208e220b96
[ "Unlicense" ]
null
null
null
defmodule Atbash do @doc """ Encode a given plaintext to the corresponding ciphertext ## Examples iex> Atbash.encode("completely insecure") "xlnko vgvob rmhvx fiv" """ @spec encode(String.t()) :: String.t() def encode(plaintext) do plaintext |> String.to_charlist() |> do_shift([]) |> E...
23.428571
69
0.593496
da7fe04ed37c102befc0a6fc5304cbd08239f3d0
653
exs
Elixir
apps/ssl_verify_hostname/package.exs
ulfl/setconcile
883dc819d38c9ad2a25c4dbb189eef6558926729
[ "Apache-2.0" ]
null
null
null
apps/ssl_verify_hostname/package.exs
ulfl/setconcile
883dc819d38c9ad2a25c4dbb189eef6558926729
[ "Apache-2.0" ]
null
null
null
apps/ssl_verify_hostname/package.exs
ulfl/setconcile
883dc819d38c9ad2a25c4dbb189eef6558926729
[ "Apache-2.0" ]
1
2021-03-25T23:50:55.000Z
2021-03-25T23:50:55.000Z
defmodule Hackney.Mixfile do use Mix.Project def project do [app: :ssl_verify_hostname, version: "1.0.5", description: description, package: package, fetch: fetch] end defp description do """ Hostname verification library for Erlang """ end defp package do [contrib...
21.064516
86
0.627871
da7fe23abbdc713577c65f2c6d4dd129ac5a2eca
8,863
exs
Elixir
test/glimesh_web/api/oauth_test.exs
coredreamstudios/glimesh.tv
736f4f03aa51a7fbcaaf276ffee2af470afc2fa7
[ "MIT" ]
328
2020-07-23T22:13:49.000Z
2022-03-31T21:22:28.000Z
test/glimesh_web/api/oauth_test.exs
coredreamstudios/glimesh.tv
736f4f03aa51a7fbcaaf276ffee2af470afc2fa7
[ "MIT" ]
362
2020-07-23T22:38:38.000Z
2022-03-24T02:11:16.000Z
test/glimesh_web/api/oauth_test.exs
coredreamstudios/glimesh.tv
736f4f03aa51a7fbcaaf276ffee2af470afc2fa7
[ "MIT" ]
72
2020-07-23T22:50:46.000Z
2022-02-02T11:59:32.000Z
defmodule GlimeshWeb.Api.OauthTest do use GlimeshWeb.ConnCase import Glimesh.AccountsFixtures import Glimesh.ApiFixtures describe "authorize oauth2" do setup [:register_and_log_in_user] setup %{conn: conn} do user = user_fixture() {:ok, app} = app_fixture(user, "http://localhost:8080/red...
29.445183
121
0.540562
da7fe7818869937019d93b4e53dc425038ef5ef8
1,915
ex
Elixir
lib/quadquizaminos/contests/contest_agent.ex
sparrell/quizquadaminos
6388252b7c32aa4101486cbf45d0d57d4e3a79da
[ "MIT" ]
1
2022-01-11T20:06:31.000Z
2022-01-11T20:06:31.000Z
lib/quadquizaminos/contests/contest_agent.ex
sFractal-Podii/quizquadaminos
4c9023b9c6212a92741b0f21d9eb05871aa73916
[ "MIT" ]
484
2021-02-15T18:43:40.000Z
2022-03-29T12:27:24.000Z
lib/quadquizaminos/contests/contest_agent.ex
sFractal-Podii/quizquadaminos
4c9023b9c6212a92741b0f21d9eb05871aa73916
[ "MIT" ]
8
2021-02-15T19:12:51.000Z
2021-12-15T03:02:46.000Z
defmodule Quadquizaminos.Contest.ContestAgent do @moduledoc """ Each contest spins up a dynamically supervised agent which contains the following information about the contest - time elapsed - status of the contest - contest name The agent can have the following statuses - running - paused - ...
23.641975
113
0.639687
da7ff99ccff287d1019c99c7df025dd77872564f
2,222
ex
Elixir
lib/extensions/invitation/plug.ex
foggy1/pow
c46cf4c4c2d59d10861783faa46f3979d54343a9
[ "MIT" ]
null
null
null
lib/extensions/invitation/plug.ex
foggy1/pow
c46cf4c4c2d59d10861783faa46f3979d54343a9
[ "MIT" ]
null
null
null
lib/extensions/invitation/plug.ex
foggy1/pow
c46cf4c4c2d59d10861783faa46f3979d54343a9
[ "MIT" ]
null
null
null
defmodule PowInvitation.Plug do @moduledoc """ Plug helper methods. """ alias Plug.Conn alias Pow.{Ecto.Context, Plug} alias PowInvitation.Ecto.Context, as: InvitationContext alias PowInvitation.Ecto.Schema @doc """ Creates a new invited user by the current user in the connection. """ @spec creat...
27.097561
92
0.642214
da802ba51dde7d6424e027f343cd58f3cc5a0b77
2,574
exs
Elixir
test/ex_chat_web/controllers/room_controller_test.exs
embik/ex_chat
08d83fe2076a96f9dad647fe509daec301b4965a
[ "Apache-2.0" ]
1
2017-12-28T12:49:19.000Z
2017-12-28T12:49:19.000Z
test/ex_chat_web/controllers/room_controller_test.exs
embik/ex_chat
08d83fe2076a96f9dad647fe509daec301b4965a
[ "Apache-2.0" ]
null
null
null
test/ex_chat_web/controllers/room_controller_test.exs
embik/ex_chat
08d83fe2076a96f9dad647fe509daec301b4965a
[ "Apache-2.0" ]
null
null
null
defmodule ExChatWeb.RoomControllerTest do use ExChatWeb.ConnCase alias ExChat.Chats @create_attrs %{name: "some name", public: true} @update_attrs %{name: "some updated name", public: false} @invalid_attrs %{name: nil, public: nil} def fixture(:room) do {:ok, room} = Chats.create_room(@create_attrs) ...
28.921348
77
0.643357
da806fb0eba4ea888c8b9d54c5f70396e9c25d9e
1,173
ex
Elixir
lib/sanbase_web/admin/billing/subscription.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
81
2017-11-20T01:20:22.000Z
2022-03-05T12:04:25.000Z
lib/sanbase_web/admin/billing/subscription.ex
rmoorman/sanbase2
226784ab43a24219e7332c49156b198d09a6dd85
[ "MIT" ]
359
2017-10-15T14:40:53.000Z
2022-01-25T13:34:20.000Z
lib/sanbase_web/admin/billing/subscription.ex
sitedata/sanbase2
8da5e44a343288fbc41b68668c6c80ae8547d557
[ "MIT" ]
16
2017-11-19T13:57:40.000Z
2022-02-07T08:13:02.000Z
defmodule SanbaseWeb.ExAdmin.Billing.Subscription do use ExAdmin.Register register_resource Sanbase.Billing.Subscription do action_items(only: [:show, :edit, :test]) query do %{ all: [preload: [:user, plan: [:product]]] } end index do column(:id, link: true) column...
22.557692
60
0.59335
da80998373f636600b1f0e5e531e51dd6abaf8dd
1,194
ex
Elixir
elixir_runtime/lib/mix/tasks/bootstrap.ex
Cobenian/aws-lambda-elixir-runtime
fb715968ff2c205c868fac8f30ca490a6694a29a
[ "MIT-0" ]
null
null
null
elixir_runtime/lib/mix/tasks/bootstrap.ex
Cobenian/aws-lambda-elixir-runtime
fb715968ff2c205c868fac8f30ca490a6694a29a
[ "MIT-0" ]
null
null
null
elixir_runtime/lib/mix/tasks/bootstrap.ex
Cobenian/aws-lambda-elixir-runtime
fb715968ff2c205c868fac8f30ca490a6694a29a
[ "MIT-0" ]
null
null
null
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 defmodule Mix.Tasks.Bootstrap do @moduledoc """ Generate a bootstrap script for the project in the release directory. This task will fail if it's run before `mix release`. """ use Mix.Task @runtime_...
22.961538
73
0.660804
da80b346f269c0f939ad8d08b9fb3ccd3d889def
790
ex
Elixir
broadway_test/handle_message.ex
kujua/blog-kujuahub-articles-code
1a65b1a481cbf5269a3f8846a5ac353937d45a2d
[ "Apache-2.0" ]
2
2019-05-25T13:25:33.000Z
2019-05-29T15:36:17.000Z
broadway_test/handle_message.ex
kujua/blog-kujuahub-articles-code
1a65b1a481cbf5269a3f8846a5ac353937d45a2d
[ "Apache-2.0" ]
null
null
null
broadway_test/handle_message.ex
kujua/blog-kujuahub-articles-code
1a65b1a481cbf5269a3f8846a5ac353937d45a2d
[ "Apache-2.0" ]
null
null
null
def handle_message(processor, message, context) do # create a Broadway message from the csv input updatedmessage = Transformer.transform_queue_message_to_model(message.data, []) |> Message.update_data(&process_data/1) # check the returned message status if we should push it to a certain batche...
39.5
81
0.740506
da80b952f1d0f84cc0ba7d62c6fc77d0ac79c3e6
11,741
ex
Elixir
lib/simple_pool/v1/worker_lookup_behaviour/worker_lookup_behaviour_default.ex
noizu/simple_pool
59251a3391ff82152a31626072955b95f83c18ee
[ "MIT" ]
12
2018-07-03T10:14:54.000Z
2020-04-07T02:04:39.000Z
lib/simple_pool/v1/worker_lookup_behaviour/worker_lookup_behaviour_default.ex
noizu/simple_pool
59251a3391ff82152a31626072955b95f83c18ee
[ "MIT" ]
1
2018-12-02T06:05:59.000Z
2018-12-02T06:05:59.000Z
lib/simple_pool/v1/worker_lookup_behaviour/worker_lookup_behaviour_default.ex
noizu/simple_pool
59251a3391ff82152a31626072955b95f83c18ee
[ "MIT" ]
2
2018-03-05T12:01:51.000Z
2018-07-03T10:15:04.000Z
#------------------------------------------------------------------------------- # Author: Keith Brings # Copyright (C) 2018 Noizu Labs, Inc. All rights reserved. #------------------------------------------------------------------------------- defmodule Noizu.SimplePool.WorkerLookupBehaviourDefault do require Logg...
43.007326
162
0.417682
da80bef2ed67f1221979a49d196ee999a8cbbae8
1,409
exs
Elixir
test/actions/fillable_test.exs
samueljseay/hound_page_object
5e21ae6a8ac04d8c3869b82c628e1ae00d5000c8
[ "MIT" ]
20
2016-07-02T10:10:43.000Z
2021-01-07T19:03:56.000Z
test/actions/fillable_test.exs
samueljseay/hound_page_object
5e21ae6a8ac04d8c3869b82c628e1ae00d5000c8
[ "MIT" ]
6
2016-12-31T22:31:22.000Z
2018-06-12T01:00:07.000Z
test/actions/fillable_test.exs
samueljseay/hound_page_object
5e21ae6a8ac04d8c3869b82c628e1ae00d5000c8
[ "MIT" ]
7
2016-09-02T15:07:20.000Z
2021-09-13T17:09:49.000Z
defmodule IndexPage do use PageObject visitable :visit, "http://localhost:4000/index.html" fillable :fill_email, "input[name='email']" value :email_value, "input[name='email']" fillable :fill_username, "input[name='username']" value :username_value, "input[name='username']" collection :things, item_sc...
22.015625
64
0.69198
da80c39b49bd9ea4c7558ee4fb3935d0d488df70
1,001
exs
Elixir
test/plugs/assign_current_user_test.exs
leonardocouy/accent
29fb324395ff998cc5cdc6947c60070ffabe647c
[ "BSD-3-Clause" ]
null
null
null
test/plugs/assign_current_user_test.exs
leonardocouy/accent
29fb324395ff998cc5cdc6947c60070ffabe647c
[ "BSD-3-Clause" ]
null
null
null
test/plugs/assign_current_user_test.exs
leonardocouy/accent
29fb324395ff998cc5cdc6947c60070ffabe647c
[ "BSD-3-Clause" ]
null
null
null
defmodule AccentTest.Plugs.AssignCurrentUser do use Accent.RepoCase use Plug.Test alias Accent.Repo alias Accent.User alias Accent.AccessToken alias Accent.Plugs.AssignCurrentUser @user %User{email: "test@test.com"} @token %AccessToken{revoked_at: nil, token: "1234"} defp call_plug(token) do :g...
21.297872
64
0.634366
da80e434543cf63c2e529e520481e4930d2df3b3
1,508
ex
Elixir
lib/oban/plugin.ex
stefanchrobot/oban
961015b92b9cae442d2834ad220a85ccdcc9da2d
[ "Apache-2.0" ]
null
null
null
lib/oban/plugin.ex
stefanchrobot/oban
961015b92b9cae442d2834ad220a85ccdcc9da2d
[ "Apache-2.0" ]
null
null
null
lib/oban/plugin.ex
stefanchrobot/oban
961015b92b9cae442d2834ad220a85ccdcc9da2d
[ "Apache-2.0" ]
null
null
null
defmodule Oban.Plugin do @moduledoc """ Defines a shared behaviour for Oban plugins. In addition to implementing the Plugin behaviour, all plugins **must** be a `GenServer`, `Agent`, or another OTP compliant module. ## Example Defining a basic plugin that satisfies the minimum behaviour: defmodule...
26
102
0.604775
da810dc9b97f00523fd47d8626060861d1dd466e
17,065
ex
Elixir
lib/cldr/backend/interval/date.ex
elixir-cldr/cldr_dates_times
04e9e14faa260e98f2d2fad302554c6fa17d9a5c
[ "Apache-2.0" ]
36
2019-07-26T18:08:04.000Z
2022-03-08T00:37:49.000Z
lib/cldr/backend/interval/date.ex
elixir-cldr/cldr_dates_times
04e9e14faa260e98f2d2fad302554c6fa17d9a5c
[ "Apache-2.0" ]
20
2019-06-12T07:44:57.000Z
2022-03-02T15:31:52.000Z
lib/cldr/backend/interval/date.ex
elixir-cldr/cldr_dates_times
04e9e14faa260e98f2d2fad302554c6fa17d9a5c
[ "Apache-2.0" ]
4
2020-05-29T08:42:08.000Z
2022-03-01T15:40:24.000Z
defmodule Cldr.Date.Interval.Backend do @moduledoc false def define_date_interval_module(config) do backend = config.backend config = Macro.escape(config) quote location: :keep, bind_quoted: [config: config, backend: backend] do defmodule Date.Interval do @moduledoc """ Interval ...
36.541756
100
0.578025
da813361115ac5acd79f2722bc7055f9e785d443
947
exs
Elixir
rel/config.exs
cloud8421/ada
384f5e5e85e95c4d5883298259e781cc0a54bd07
[ "MIT" ]
7
2019-05-11T12:14:48.000Z
2021-04-02T18:42:51.000Z
rel/config.exs
cloud8421/ada
384f5e5e85e95c4d5883298259e781cc0a54bd07
[ "MIT" ]
3
2019-05-11T08:01:47.000Z
2019-05-14T12:06:50.000Z
rel/config.exs
cloud8421/ada
384f5e5e85e95c4d5883298259e781cc0a54bd07
[ "MIT" ]
1
2021-01-06T14:57:32.000Z
2021-01-06T14:57:32.000Z
use Mix.Releases.Config, # This sets the default release built by `mix release` default_release: :default, # This sets the default environment used by `mix release` default_environment: :dev # For a full list of config options for both releases # and environments, visit https://hexdocs.pm/distillery/configurat...
28.69697
74
0.766631
da8136c3dde3ed88b06c117b9641220c5559e182
5,071
ex
Elixir
lib/he_broker/route_map.ex
HackerExperience/HEBroker
2a653a43b512c6392f55508dfc1be8463a845b31
[ "BSD-3-Clause" ]
5
2017-02-15T18:25:35.000Z
2018-03-29T16:36:31.000Z
lib/he_broker/route_map.ex
HackerExperience/HeBroker
2a653a43b512c6392f55508dfc1be8463a845b31
[ "BSD-3-Clause" ]
null
null
null
lib/he_broker/route_map.ex
HackerExperience/HeBroker
2a653a43b512c6392f55508dfc1be8463a845b31
[ "BSD-3-Clause" ]
null
null
null
defmodule HeBroker.RouteMap do @moduledoc """ This module implements a method of mapping consumer services to their subscribed topics so publishers can properly broadcast messages Each route is composed by a topic (the string that will be used to define which _services_ you want to send your message to. eg: ...
32.716129
100
0.631631
da813a8f2c127617633ad06c9e8204d00058fc37
360
exs
Elixir
priv/repo/seeds.exs
cjeich/MysteryNightServer
36f37187c67562ceb4d6383b0d22b43cbe504515
[ "Apache-2.0" ]
null
null
null
priv/repo/seeds.exs
cjeich/MysteryNightServer
36f37187c67562ceb4d6383b0d22b43cbe504515
[ "Apache-2.0" ]
null
null
null
priv/repo/seeds.exs
cjeich/MysteryNightServer
36f37187c67562ceb4d6383b0d22b43cbe504515
[ "Apache-2.0" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # MysteryNight.Repo.insert!(%MysteryNight.SomeModel{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as ...
30
61
0.713889
da8186ed3bced781216924c90c1fb2f5cfd8d0b5
1,153
ex
Elixir
lib/exreleasy/appups/apply_appup.ex
nicktime/exreleasy
12bb4ba1ca7343296fe8ae7718329423630d8fa8
[ "Apache-2.0" ]
12
2016-12-12T10:23:21.000Z
2019-03-14T15:38:48.000Z
lib/exreleasy/appups/apply_appup.ex
nicktime/exreleasy
12bb4ba1ca7343296fe8ae7718329423630d8fa8
[ "Apache-2.0" ]
9
2017-09-12T20:04:55.000Z
2019-03-04T10:40:18.000Z
lib/exreleasy/appups/apply_appup.ex
nicktime/exreleasy
12bb4ba1ca7343296fe8ae7718329423630d8fa8
[ "Apache-2.0" ]
4
2017-08-15T13:03:55.000Z
2019-03-04T09:45:04.000Z
defmodule Exreleasy.Appups.ApplyAppup do alias Exreleasy.{Release, ReleaseDir} alias Exreleasy.Appups.Appup alias Exreleasy.Appups.Storage @spec run(map) :: :ok | no_return def run(%{release_path: release_path, appup_path: appup_path}) do with {:ok, files} <- file_list_for(appup_path), :ok <- m...
28.825
105
0.684302